.catalog-other {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--border, #ded9ce);
  border-radius: 15px;
  background: color-mix(in srgb, var(--wash, #f7e6d9) 55%, transparent);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.18s ease;
}
.catalog-other:hover {
  border-color: var(--accent);
  background: var(--wash, #f7e6d9);
}
.catalog-other:active {
  transform: scale(0.995);
}
.catalog-other-ic {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--panel, #fff);
  border: 1px solid var(--border, #ded9ce);
  color: var(--accent);
}
.catalog-other-tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.catalog-other-tx b {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.catalog-other-tx small {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-other-go {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.og-page,
.og-detail {
  width: min(100%, 1050px);
  margin-inline: auto;
  display: grid;
  gap: clamp(16px, 3vw, 26px);
}

.og-page button,
.og-detail button {
  -webkit-tap-highlight-color: transparent;
}

.gx-navbar[data-area="centered"] {
  padding: 0;
}
.gx-navbar[data-area="centered"] .gx-navbar-row {
  width: 100%;
}
.gx-main :is(.og-page, .og-detail) > .og-back {
  display: none;
}
#og-title:focus {
  outline: none;
}

.og-page :is(h2, p),
.og-detail :is(h2, h3, p, figure) {
  margin: 0;
}

.og-back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 42px;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
}

.og-back svg {
  transform: rotate(180deg);
}
.og-head h2,
.og-game-intro h2 {
  font-size: clamp(27px, 5vw, 42px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.og-head p,
.og-game-intro p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.og-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

[data-other-theme="delta"],
#dialog[data-other-booking="delta"] {
  --og-ink: #f3f9f3;
  --og-dim: #bccec1;
  --og-panel: #15231e;
  --og-accent: #b6ef83;
  --og-border: #406452;
  --og-radius: 8px;
  --og-order-button: #25483a;
}

[data-other-theme="tft"],
#dialog[data-other-booking="tft"] {
  --og-ink: #f8f0ff;
  --og-dim: #dfcdee;
  --og-panel: #2d2048;
  --og-accent: #ffb9ed;
  --og-border: #7857a0;
  --og-radius: 20px;
  --og-order-button: #5b327d;
}

[data-other-theme="honor"],
#dialog[data-other-booking="honor"] {
  --og-ink: #25364e;
  --og-dim: #4c5d76;
  --og-panel: #f4f0ee;
  --og-accent: #465d93;
  --og-border: #d5c8b8;
  --og-radius: 14px;
  --og-order-button: #344c7b;
}

[data-other-theme="custom"],
#dialog[data-other-booking="custom"] {
  --og-ink: var(--text);
  --og-dim: var(--muted);
  --og-panel: var(--panel);
  --og-accent: var(--accent);
  --og-border: var(--border);
  --og-radius: 14px;
}

.og-game {
  min-width: 0;
  display: grid;
  align-content: start;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--og-border);
  border-radius: var(--og-radius);
  background: var(--og-panel);
  color: var(--og-ink);
  text-align: left;
  transition:
    box-shadow 180ms ease,
    translate 180ms ease;
}

.og-game-image,
.og-poster-img,
.og-order-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.og-game-label {
  align-self: stretch;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.og-game-label b {
  display: block;
  color: var(--og-ink);
  font-size: 18px;
}
.og-game-label small {
  display: block;
  margin-top: 4px;
  color: var(--og-dim);
  font-size: 12px;
}
.og-game-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--og-accent) 15%, transparent);
  color: var(--og-accent);
}

.og-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 13px 24px;
  padding: clamp(15px, 3vw, 23px);
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
  color: var(--text);
}

.og-custom label b,
.og-custom label span {
  display: block;
}
.og-custom label span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.og-custom > div {
  flex: 1 1 280px;
  max-width: 460px;
  display: flex;
  gap: 8px;
}
.og-custom input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
}
.og-custom button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--wash);
  color: var(--text);
  font-size: 13px;
}

.og-feature {
  display: grid;
  align-items: center;
  background: var(--og-panel);
  color: var(--og-ink);
  border: 1px solid var(--og-border);
  border-radius: var(--og-radius);
  overflow: hidden;
}

.og-game-intro {
  padding: clamp(17px, 4vw, 30px);
}
.og-game-intro p {
  color: var(--og-dim);
}
.og-poster {
  position: relative;
  align-self: stretch;
  background: var(--og-panel);
}
.og-poster figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 38px;
  padding: 0 12px;
  background: var(--og-panel);
  color: var(--og-dim);
  border-top: 1px solid var(--og-border);
  font-size: 11px;
}

.og-poster figcaption a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  color: var(--og-accent);
}
.og-modes h3 {
  margin-bottom: 12px;
  font-size: 19px;
}
.og-modes > div {
  display: grid;
  gap: 9px;
}
.og-mode {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  text-align: left;
  background: var(--og-panel);
  color: var(--og-ink);
  border: 1px solid var(--og-border);
  border-radius: var(--og-radius);
  transition:
    border-color 180ms ease,
    translate 180ms ease;
}

.og-mode-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--og-accent);
  background: color-mix(in srgb, var(--og-accent) 13%, transparent);
  border-radius: var(--og-radius);
}

.og-mode-copy b {
  display: block;
  color: var(--og-ink);
  font-size: 16px;
}
.og-mode-copy small {
  display: block;
  margin-top: 4px;
  color: var(--og-dim);
  font-size: 12px;
  line-height: 1.5;
}
.og-mode-action {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--og-accent);
  font-size: 12px;
  white-space: nowrap;
}

/* 三角洲：横向指令行，视觉重心放在行动类型。 */
.og-detail[data-other-theme="delta"] .og-feature {
  grid-template-columns: 1.45fr 1fr;
}
.og-detail[data-other-theme="delta"] .og-modes > div {
  gap: 6px;
}
.og-detail[data-other-theme="delta"] .og-mode {
  border-left: 3px solid var(--og-border);
}
.og-detail[data-other-theme="delta"] .og-mode-lead {
  border-left-color: var(--og-accent);
}

/* 金铲铲：海报与棋盘式选择，三种玩法各有一张牌。 */
.og-detail[data-other-theme="tft"] .og-feature {
  grid-template-columns: 1.6fr 1fr;
  background: linear-gradient(145deg, #2b1e4c, #47235d);
}

.og-detail[data-other-theme="tft"] .og-modes > div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.og-detail[data-other-theme="tft"] .og-mode {
  grid-template-columns: 1fr;
  min-height: 178px;
  align-content: start;
}
.og-detail[data-other-theme="tft"] .og-mode:nth-child(2) {
  background: #3c2352;
}
.og-detail[data-other-theme="tft"] .og-mode:nth-child(3) {
  background: #2a2850;
}
.og-detail[data-other-theme="tft"] .og-mode-action {
  margin-top: auto;
}

/* 王者：浅色赛季封面，排位为主，其余玩法并列。 */
.og-detail[data-other-theme="honor"] .og-feature {
  grid-template-columns: 0.9fr 1.5fr;
  background: linear-gradient(128deg, #f1e4d4, #eaeefa);
}
.og-detail[data-other-theme="honor"] .og-game-intro h2 {
  font-family: "STSong", "Songti SC", "SimSun", serif;
}
.og-detail[data-other-theme="honor"] .og-modes > div {
  grid-template-columns: 1fr 1fr;
}
.og-detail[data-other-theme="honor"] .og-mode-lead {
  grid-column: 1 / -1;
  background: #283e64;
  --og-ink: #fff7ec;
  --og-dim: #e0e8f7;
  --og-accent: #eed8ae;
  --og-border: #546c98;
}

#dialog[data-other-booking] .og-order-banner {
  position: relative;
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 4px 0 19px;
  border: 1px solid var(--og-border);
  border-radius: var(--og-radius);
  background: var(--og-panel);
  color: var(--og-ink);
  overflow: hidden;
}

#dialog[data-other-booking] .og-order-banner > div {
  padding: 12px 12px 12px 0;
}
#dialog[data-other-booking="custom"] .og-order-banner {
  display: block;
  padding: 0 14px;
}
#dialog[data-other-booking] .og-order-banner b {
  display: block;
  font-size: 16px;
}
#dialog[data-other-booking] .og-order-banner p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--og-dim);
  line-height: 1.55;
}
#dialog[data-other-booking] .og-order-image {
  height: 100%;
}
#dialog[data-other-booking] .og-goal {
  padding: 0;
  border: 0;
  margin: 0 0 15px;
}
#dialog[data-other-booking] .og-goal legend {
  margin-bottom: 8px;
  font-weight: 650;
}
#dialog[data-other-booking] .og-goal > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
#dialog[data-other-booking] .og-goal label {
  position: relative;
  cursor: pointer;
}
#dialog[data-other-booking] .og-goal input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
}
#dialog[data-other-booking] .og-goal span {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
}
#dialog[data-other-booking] .og-goal input:checked + span {
  background: var(--og-panel);
  border-color: var(--og-border);
  color: var(--og-ink);
}
#dialog[data-other-booking] .og-goal input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#dialog[data-other-booking] .og-order-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 0 10px;
}
#dialog[data-other-booking] .og-extra {
  margin-top: 12px;
  padding: 0 12px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}
#dialog[data-other-booking] .og-extra > summary {
  min-height: 44px;
  padding-block: 11px;
  cursor: pointer;
  font-size: 13px;
}

:root
  #dialog[data-other-booking]:not([data-other-booking="custom"])
  .form-actions
  button.primary {
  background: var(--og-order-button);
  color: #fff;
}

@media (hover: hover) {
  .og-mode:hover,
  .og-game:hover {
    border-color: var(--og-accent);
    translate: 0 -2px;
  }
}

@media (max-width: 680px) {
  .og-games {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .og-game {
    grid-template-columns: minmax(118px, 43%) minmax(0, 1fr);
    align-items: stretch;
  }
  .og-game-image {
    height: 100%;
    min-height: 86px;
  }
  .og-game-label {
    padding: 10px 11px;
  }
  .og-game-label b {
    font-size: 16px;
  }
  .og-game-arrow {
    width: 28px;
    height: 28px;
  }
  .og-game-arrow svg {
    width: 15px;
  }
  .og-detail[data-other-theme] .og-feature {
    grid-template-columns: 1fr;
  }
  .og-detail[data-other-theme="tft"] .og-modes > div {
    grid-template-columns: 1fr 1fr;
  }
  .og-detail[data-other-theme="tft"] .og-mode-lead {
    grid-column: 1 / -1;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 86px;
    align-items: center;
  }
  .og-detail[data-other-theme="tft"] .og-mode-action {
    margin: 0;
  }
  .og-detail[data-other-theme="honor"] .og-mode:not(.og-mode-lead) {
    grid-template-columns: 1fr;
  }
  .og-mode {
    gap: 9px;
    padding: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .og-game,
  .og-mode {
    transition: none;
  }
}
