/* A different printed game poster for each world, with one shared game shelf. */
.game-cover-band { color: #fff; background: #111115; }
.game-cover-band:focus-visible { outline-offset: -3px; }
.cover-stage { touch-action: pan-y; }
.feature {
  --base: #382048; --panel: #2e173f; --edge: #8a629e; --ink: #fff9f3;
  --accent: #ffde96; --button-ink: #2a1928; --scene-opacity: .79;
  --show-height: clamp(360px,32vw,518px);
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--base); color: var(--ink);
}
.feature--duckshelf {
  --base: #ffd45b; --panel: #ffce45; --edge: #ffe8a2; --ink: #382512;
  --accent: #382512; --button-ink: #fff2cf; --scene-opacity: .79;
}
.feature--findchibi {
  --base: #92bedf; --panel: #afd9f6; --edge: #d7efff; --ink: #112d49;
  --accent: #163859; --button-ink: #effaff; --scene-opacity: .66;
}
.feature-scenery {
  position: absolute; z-index: -3; inset: 0 0 0 24%; overflow: hidden;
  mask-image: linear-gradient(90deg,transparent,#000 33%);
}
.feature-art { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 55% 46%; opacity: var(--scene-opacity); }
.feature--sudomort .feature-art { filter: saturate(.83) brightness(.87); }
.feature--sudomort .feature-scenery::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 66% 28%,#341d4461,transparent 68%); }
.feature--findchibi .feature-art { object-position: 50% 64%; }
.feature::before,.feature::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.feature::before {
  z-index: -2; background: linear-gradient(110deg,var(--panel) 36%,var(--edge) 95%);
  clip-path: polygon(0 0,50% 0,45.3% 48%,48.1% 48%,42.1% 100%,0 100%);
}
.feature::after {
  z-index: -1; opacity: .13;
  background: radial-gradient(currentColor .8px, transparent 1px) 0 0 / 7px 7px;
  mask-image: linear-gradient(108deg,transparent 24%,#000 43%,transparent 51%);
}
.feature-layout {
  position: relative; display: grid; grid-template-columns: 44% 56%; align-items: center;
  min-height: var(--show-height);
}
.feature-copy { grid-area: 1 / 1; min-width: 0; padding: 30px 18px 32px 0; }
.feature-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: clamp(14px,1.5vw,23px) !important;
  font: 650 11px/1.4 var(--text); color: var(--ink);
}
.feature-status {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid color-mix(in srgb,currentColor 36%, transparent);
  border-radius: 20px; padding: 4px 9px; text-transform: uppercase; font-size: 10px; letter-spacing: .075em;
}
.feature-status i { width: 6px; height: 6px; background: var(--ink); border-radius: 50%; }
.feature--sudomort .feature-status i { background: #b6efab; }
.feature-title { width: fit-content; max-width: 100%; }
.feature-title img { display: block; width: min(100%,clamp(265px,28vw,465px)); height: auto; }
.feature--duckshelf .feature-title img { width: clamp(135px,13vw,205px); }
.feature--findchibi .feature-title img { width: min(100%,clamp(225px,24vw,390px)); }
.feature-hook { font-size: clamp(17px,1.36vw,21px); line-height: 1.48; max-width: 31ch; margin-top: 15px !important; text-wrap: pretty; }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(14px,1.85vw,26px); margin-top: 20px; }
.feature-primary,.feature-secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; gap: 9px; font-size: 14px; font-weight: 650; }
.feature-primary { padding: 10px 16px; border-radius: 5px; background: var(--accent); color: var(--button-ink) !important; }
.feature-primary span { margin-left: 5px; font-size: 18px; line-height: 1; transition: transform .15s; }
.feature-primary:hover span { transform: translateX(3px); }
.feature-secondary:hover { text-decoration: underline; text-underline-offset: 4px; }
.play-mark { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.play-mark::after { content: ""; margin-left: 2px; border-left: 6px solid currentColor; border-block: 4px solid transparent; }
.feature-cast { grid-area: 1/2; position: relative; align-self: stretch; pointer-events: none; }
.feature-cast img { position: absolute; display: block; right: 15%; bottom: 0; height: 96%; width: auto; max-width: 90%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 10px #27162042); }
.feature--sudomort .feature-cast img { right: 30%; height: 104%; bottom: -9%; }
.feature--duckshelf .feature-cast img { height: 78%; bottom: 7%; right: 24%; }
.feature--findchibi .feature-cast img { height: 64%; bottom: 10%; right: 25%; }
.cover-bar { background: #18181d; color: #f7f4f1; }
.game-shelf { display: flex; gap: clamp(12px,2.5vw,40px); align-items: center; justify-content: center; padding-block: 10px; }
.game-tabs { display: flex; align-items: center; gap: 4px; }
.game-tab-divider { flex: none; color: #88848c; font: 400 16px/1 var(--text); user-select: none; }
.game-tab {
  display: flex; align-items: center; justify-content: flex-start; min-width: 0; gap: 9px;
  padding: 4px 10px 4px 5px; min-height: 44px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; text-align: left;
}
.game-tab img { display: block; flex: none; width: 36px; height: 36px; object-fit: contain; border-radius: 7px; }
.game-tab strong { font: 650 clamp(14px,1.2vw,18px)/1.2 var(--display); letter-spacing: -.032em; }
.game-tab:hover { background: #28282e; }
.game-tab[aria-current="true"] { background: #343137; border-color: #a89ca7; }
.game-cover-band[data-game-theme="duckshelf"] .game-tab[aria-current="true"] { border-color: #f7d66b; }
.game-cover-band[data-game-theme="findchibi"] .game-tab[aria-current="true"] { border-color: #a4d7f6; }
.shelf-arrow { width: 42px; height: 42px; padding: 0; flex: none; border: 1px solid #66616b; border-radius: 50%; background: transparent; font-size: 20px !important; }
.shelf-arrow:hover { background: #f4f0eb; color: #211b22; }
.game-cover-band[data-carousel-ready] .cover-stage { display: grid; }
.game-cover-band[data-carousel-ready] .feature { grid-area: 1/1; }
.game-cover-band[data-carousel-ready] .feature[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.game-cover-band:not([data-carousel-ready]) .feature + .feature { border-top: 1px solid #666; }

.trailer-dialog { position: fixed; border: 0; border-radius: 10px; width: fit-content; max-width: calc(100% - 30px); padding: 0; max-height: 88vh; max-height: 88dvh; overflow: visible; background: #141218; }
.trailer-dialog::backdrop { background: #100d16da; }
.trailer-dialog video { display: block; width: auto; max-width: 100%; height: auto; max-height: 88vh; max-height: 88dvh; border-radius: inherit; }
.trailer-close { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; z-index: 1; border: 1px solid #ffffff80; color: #fff !important; background: #18151dcc; border-radius: 50%; width: 42px; height: 42px; line-height: 1; font-size: 25px !important; }
.portal:has(.trailer-dialog[open]) { overflow: hidden; }
@media (min-width: 701px) and (max-width: 940px) {
  .feature-layout { grid-template-columns: 47% 53%; }
  .feature-actions { gap: 2px 12px; }
  .feature-primary,.feature-secondary { font-size: 12px; }
  .feature-copy { padding-right: 4px; }
}
@media (max-width: 700px) {
  .feature { --scene-height: clamp(200px,53vw,295px); }
  .feature-layout { grid-template-columns: 100%; grid-template-rows: var(--scene-height) auto; min-height: auto; }
  .feature-scenery { inset: 0 0 auto; height: var(--scene-height); mask-image: none; }
  .feature-art { object-position: center 44%; }
  .feature::before { top: var(--scene-height); background: linear-gradient(105deg,var(--panel) 45%,var(--base)); clip-path: none; }
  .feature::after { mask-image: linear-gradient(99deg,transparent 56%,#000 100%); top: var(--scene-height); }
  .feature-cast { grid-area: 1/1; width: 100%; overflow: hidden; }
  .feature-cast img,.feature--sudomort .feature-cast img { height: 124%; right: 15%; bottom: -30%; }
  .feature--duckshelf .feature-cast img { height: 90%; right: 24%; bottom: 3%; }
  .feature--findchibi .feature-cast img { height: 79%; right: 24%; bottom: 4%; }
  .feature-copy { grid-area: 2/1; padding: 16px 3px 19px; }
  .feature-meta { margin-bottom: 8px !important; gap: 9px; font-size: 11px; }
  .feature-status { padding: 2px 7px; font-size: 9px; }
  .feature-title img { width: 205px; }
  .feature--duckshelf .feature-title img { width: 90px; }
  .feature--findchibi .feature-title img { width: 184px; }
  .feature-hook { max-width: 44ch; margin-top: 8px !important; font-size: 15px; line-height: 1.42; }
  .feature-actions { margin-top: 10px; gap: 2px 15px; }
  .feature-primary,.feature-secondary { font-size: 12px; min-height: 42px; }
  .game-shelf { padding-block: 7px; gap: 8px; }
  .game-tabs { flex: 1; min-width: 0; justify-content: center; gap: 2px; }
  .game-tab { flex: 1; max-width: 93px; padding: 4px 2px; flex-direction: column; gap: 3px; justify-content: center; }
  .game-tab img { width: 28px; height: 28px; border-radius: 6px; }
  .game-tab strong { font-size: 12px; }
  .shelf-arrow { width: 36px; height: 40px; border-radius: 5px; }
}
@media (max-width: 360px) {
  .game-shelf { gap: 4px; }
  .feature-primary,.feature-secondary { font-size: 12px; }
  .feature-primary { padding-inline: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .game-cover-band[data-carousel-ready] .feature:not([hidden]) .feature-cast img { animation: reveal-cast .26s ease-out both; }
  @keyframes reveal-cast { from { opacity: 0; transform: translateX(9px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .feature-primary span { transition: none; }
}
