/* ==========================================================================
   select.css: "Select your game" (#games > #selectRoot). Built by select.js.
   One cabinet frame (the stage) + a 3x3 select grid + the wild card bar.
   Everything is scoped to .sel-*.
   ========================================================================== */

.sel-root { position: relative; }
.sel-deck { display: grid; gap: clamp(22px, 3vw, 52px); }
.sel-left, .sel-right { min-width: 0; }

/* ── Stage: the cabinet screen ─────────────────────────────────────────── */
.sel-stage { position: relative; isolation: isolate; }

/* ambient spill from the screen onto the ink (the cover art, heavily blurred) */
.sel-glow {
  position: absolute;
  inset: 8% 4% -6%;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
}
.sel-glow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(54px) saturate(1.35);
  opacity: 0;
  transition: opacity 1s var(--ease-out);
  will-change: opacity;
}
.sel-glow img.is-on { opacity: 1; }

.sel-cab {
  position: relative;
  padding: 7px 7px 0;
  background: #070605;
  border: 1px solid var(--line-2);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, .95), 6px 6px 0 rgba(0, 0, 0, .5);
}
/* registration marks on the bezel corners */
.sel-cab::before {
  --c: rgba(239, 230, 214, .5);
  content: '';
  position: absolute;
  inset: -10px;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) left top / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 16px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px 16px no-repeat;
}
.sel-cab.is-shake { animation: selShake .32s steps(1) both; }
@keyframes selShake {
  0% { transform: translate(6px, -3px); }
  20% { transform: translate(-5px, 3px); }
  40% { transform: translate(3px, 2px); }
  60% { transform: translate(-2px, -1px); }
  80% { transform: translate(1px, 1px); }
  100% { transform: none; }
}

.sel-scr {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  touch-action: pan-y; /* horizontal swipes come to JS, vertical scroll stays native */
  -webkit-user-select: none;
  user-select: none;
}
.sel-slides { position: absolute; inset: 0; z-index: 0; }
.sel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-out) .16s, visibility 0s linear .5s, translate .4s var(--ease-out);
}
.sel-slide.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s var(--ease-out), visibility 0s, translate .4s var(--ease-out);
}
.sel-scr.is-drag .sel-slide { transition: none; }
.sel-slide.is-enter { animation: selEnter 1.2s var(--ease-out) both; }
.sel-slide.is-slam { animation: selSlam .55s var(--ease-snap) both; }
@keyframes selEnter { from { transform: scale(1.06); } to { transform: none; } }
@keyframes selSlam {
  0% { opacity: 1; transform: scale(1.32); filter: brightness(2.6) contrast(1.3); }
  45% { filter: brightness(1.25); }
  100% { opacity: 1; transform: none; filter: none; }
}
.sel-slide > img,
.sel-slide > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.sel-video { opacity: 0; transition: opacity .6s var(--ease-out); }
.sel-video.has-frame { opacity: 1; }

/* stills reel: slow Ken Burns crossfade */
.sel-still { opacity: 0; transition: opacity 1.5s var(--ease-io); will-change: opacity, transform; }
.sel-still.is-on { opacity: 1; }
.sel-still.is-kb { animation: selKb 7.6s cubic-bezier(.3, .1, .6, 1) forwards; }
.sel-slide:not(.is-on) .sel-still,
.sel-cab.is-idle .sel-still,
.sel-cab[data-mode="paused"] .sel-still { animation-play-state: paused; }
@keyframes selKb {
  from { transform: translate(var(--kx0), var(--ky0)) scale(var(--ks0)); }
  to { transform: translate(var(--kx1), var(--ky1)) scale(var(--ks1)); }
}

/* CRT: scanlines + vignette, and a burst of static on channel change */
.sel-scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 50%, transparent 58%, rgba(0, 0, 0, .5) 100%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px);
}
.sel-static {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  mix-blend-mode: screen;
}
.sel-static.is-on { animation: selStatic .28s steps(1) both; }
@keyframes selStatic {
  0% { opacity: .5; background-position: 0 0; }
  33% { opacity: .32; background-position: 60px -40px; }
  66% { opacity: .14; background-position: -30px 70px; }
  100% { opacity: 0; }
}

/* autoplay refused (iOS Low Power Mode) or Save-Data: a plain play button */
.sel-tap {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  display: none;
  place-items: center;
  color: var(--bone);
  background: rgba(12, 10, 8, .72);
  border: 2px solid var(--bone);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .55);
  -webkit-tap-highlight-color: transparent;
}
.sel-tap .ic { width: 30px; height: 30px; margin-left: 4px; }
.sel-cab.needs-tap .sel-tap { display: grid; }

/* control strip under the screen */
.sel-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-left: 6px;
  font-family: var(--f-pixel);
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fog);
}
.sel-strip-l { display: flex; align-items: center; gap: 12px; min-width: 0; white-space: nowrap; overflow: hidden; }
.sel-led { width: 8px; height: 8px; flex: none; background: var(--seal); box-shadow: 0 0 10px var(--seal); }
.sel-mode { color: var(--bone-2); }
.sel-count { color: var(--fog-2); }
.sel-cab[data-mode="attract"] .sel-led { animation: selBlink 1.1s steps(1) infinite; }
.sel-cab[data-mode="attract"] .sel-mode { color: var(--seal-hot); }
.sel-cab[data-mode="wild"] .sel-led { background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: selBlink .24s steps(1) infinite; }
.sel-cab[data-mode="wild"] .sel-mode { color: var(--gold); }
.sel-cab[data-mode="paused"] .sel-led { background: var(--fog-2); box-shadow: none; }
@keyframes selBlink { 50% { opacity: .15; } }
.sel-strip-r { display: flex; flex: none; }
.sel-sbtn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 44px;
  color: var(--bone-2);
  border-left: 1px solid var(--line);
  transition: color .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.sel-sbtn .ic { width: 18px; height: 18px; }
.sel-sbtn[aria-pressed="true"] { color: var(--gold); }
.sel-sbtn:active { background: rgba(239, 230, 214, .06); }
.sel-sbtn:focus-visible { outline-offset: -3px; }
@media (hover: hover) {
  .sel-sbtn:hover { color: var(--gold); background: rgba(239, 230, 214, .04); }
}

/* ── Info card under the stage ─────────────────────────────────────────── */
.sel-info { position: relative; min-width: 0; padding-top: clamp(20px, 2.2vw, 30px); }
.sel-probe { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; }
.sel-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font-family: var(--f-pixel);
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.sel-no { color: var(--seal-hot); }
.sel-genre { color: var(--bone-2); }

.sel-title {
  --logo-h: clamp(54px, 5.4vw, 82px);
  display: flex;
  align-items: flex-end;
  height: calc(var(--logo-h) * 1.14);
  margin: 14px 0 14px;
  container-type: inline-size; /* lets a display-type title shrink to a narrow card (iPad portrait) */
}
.sel-logo {
  position: relative;
  display: block;
  width: min(100%, calc(var(--logo-h) * var(--lk, 1) * var(--la, 3)));
  aspect-ratio: var(--la, 3);
}
.sel-logo img { position: absolute; max-width: none; height: auto; }
/* games without a logo get a title-card lockup: name in display type, subtitle + katakana in pixel type */
.sel-title-text { display: grid; justify-items: start; min-width: 0; }
.sel-title-main {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: min(calc(var(--logo-h) * .66), 11.5cqi);
  line-height: .96;
  letter-spacing: -.012em;
  color: var(--bone);
  white-space: nowrap;
}
.sel-title-sub {
  display: flex;
  align-items: baseline;
  gap: 1em;
  margin-top: calc(var(--logo-h) * .13);
  font-family: var(--f-pixel);
  font-size: clamp(11px, calc(var(--logo-h) * .18), 14px);
  line-height: 1.1;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bone-2);
  white-space: nowrap;
}
.sel-title-jp { letter-spacing: .18em; color: var(--seal-hot); }

.sel-logline {
  max-width: 36ch;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.3;
  color: var(--bone);
  text-wrap: balance;
}
.sel-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 16px;
}
.sel-note {
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fog);
}
.sel-demo.btn {
  --b-fg: var(--gold);
  gap: .5em;
  font-size: 13px;
  letter-spacing: .14em;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.sel-demo .ic-ext { width: 12px; height: 12px; }

.sel-info.is-swap .sel-meta,
.sel-info.is-swap .sel-logline,
.sel-info.is-swap .sel-status { animation: selUp .5s var(--ease-out) both; }
.sel-info.is-swap .sel-logline { animation-delay: .04s; }
.sel-info.is-swap .sel-status { animation-delay: .08s; }
@keyframes selUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sel-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 24px; }
.sel-enter .ic { transition: transform .25s var(--ease-out); }
@media (hover: hover) {
  .sel-enter:hover .ic { transform: translateX(4px); }
}
.sel-steam .ic-ext { width: 13px; height: 13px; opacity: .6; }
.sel-steam--wishlist { --b-fg: var(--gold); --b-bd: rgba(242, 177, 62, .55); }
.sel-steam--off { --b-fg: var(--fog); cursor: not-allowed; }
.sel-steam--off.is-denied { animation: selDeny .3s steps(1); }
@keyframes selDeny {
  0% { transform: translateX(-4px); }
  25% { transform: translateX(4px); }
  50% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
  100% { transform: none; }
}

/* ── The select grid ───────────────────────────────────────────────────── */
.sel-grid {
  display: grid;
  /* six half-columns: three cabinets on top, the next two centred beneath */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(20px, 1.9vw, 28px) clamp(12px, 1.2vw, 18px);
  padding-top: 12px;
}
.sel-tile {
  grid-column: span 2;
  position: relative;
  display: block;
  min-width: 0;
  color: var(--fog);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.sel-tile:focus-visible { outline: none; }
.sel-tile:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
.sel-tile-art {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3; /* Steam library capsules, shown whole */
  background: var(--ink-3);
  container-type: inline-size;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.sel-tile-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  /* full colour always; idle tiles just sit slightly back so the cursor tile pops */
  filter: brightness(.82) saturate(.95);
  transition: filter .38s var(--ease-out), transform .6s var(--ease-out);
}
.sel-tile-art::before { content: none; }
.sel-tile-art::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(239, 230, 214, .1);
  transition: border-color .3s;
}

.sel-tick {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  padding: 4px 6px 3px;
  font-family: var(--f-pixel);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff7ee;
  background: var(--seal);
}
.sel-tick--wishlist { color: #1a1206; background: var(--gold); }
.sel-tick--soon { color: var(--ink); background: var(--bone-2); }

.sel-tile-no,
.sel-go {
  position: absolute;
  z-index: 3;
  bottom: 6px;
  padding: 4px 5px 3px;
  font-family: var(--f-pixel);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .14em;
  white-space: nowrap;
}
.sel-tile-no { left: 6px; color: var(--bone-2); background: rgba(12, 10, 8, .74); }
.sel-go {
  right: 6px;
  display: none;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  color: #fff7ee;
  background: var(--seal);
}
.sel-go .ic { width: 8px; height: 8px; }

/* stamp rally: a small hanko on games you have visited */
.sel-seen {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 5px;
  display: none;
  place-items: center;
  width: 22px;
  height: 22px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  color: #fff4ea;
  background: var(--seal-deep);
  transform: rotate(-6deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}
.sel-tile.is-visited .sel-seen { display: grid; }

.sel-tile-title {
  display: block;
  margin-top: 10px;
  font-family: var(--f-pixel);
  font-size: 11.5px;
  line-height: 1.25;
  letter-spacing: .13em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s;
}

/* focused tile: full colour, lifted, wearing the cursor */
.sel-tile.is-cur .sel-tile-art {
  z-index: 2;
  transform: translateY(-6px);
  box-shadow: 0 28px 40px -20px rgba(0, 0, 0, .95), 0 0 0 1px rgba(240, 96, 63, .5);
}
.sel-tile.is-cur .sel-tile-art > img { filter: none; }
.sel-tile.is-cur .sel-tile-art::before { opacity: 0; }
.sel-tile.is-cur .sel-tile-art::after { border-color: transparent; }
.sel-tile.is-cur .sel-tile-title { color: var(--bone); }
.sel-tile.is-cur .sel-go { display: inline-flex; }
.sel-tile.is-go .sel-tile-art { transform: translateY(-2px) scale(.97); }
.sel-tile:focus-visible .sel-tile-art { box-shadow: 0 28px 40px -20px rgba(0, 0, 0, .95), 0 0 0 2px var(--gold); }
@media (hover: hover) {
  .sel-tile:not(.is-cur):hover .sel-tile-art > img { filter: none; }
  .sel-tile:not(.is-cur):hover .sel-tile-title { color: var(--bone-2); }
}

/* roulette: hops are fast, so the colour snaps */
.sel-root.is-rolling .sel-tile-art,
.sel-root.is-rolling .sel-tile-art > img,
.sel-root.is-rolling .sel-tile-art::before { transition-duration: .06s; }
.sel-root.is-rolling .sel-go { display: none; }

/* the 1P cursor: animated pixel corner brackets + tag */
.sel-cursor {
  position: absolute;
  z-index: 4;
  inset: -8px;
  pointer-events: none;
}
.sel-cursor.is-pop { animation: selPop .2s var(--ease-snap); }
@keyframes selPop { from { transform: scale(1.12); opacity: .3; } to { transform: none; opacity: 1; } }
.sel-cursor i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--seal-hot);
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .7));
  animation: selBracket .9s steps(1) infinite;
}
.sel-cursor i:nth-child(1) { left: 0; top: 0; border-width: 4px 0 0 4px; --bx: -3px; --by: -3px; }
.sel-cursor i:nth-child(2) { right: 0; top: 0; border-width: 4px 4px 0 0; --bx: 3px; --by: -3px; }
.sel-cursor i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 4px 4px; --bx: -3px; --by: 3px; }
.sel-cursor i:nth-child(4) { right: 0; bottom: 0; border-width: 0 4px 4px 0; --bx: 3px; --by: 3px; }
@keyframes selBracket { 50% { transform: translate(var(--bx), var(--by)); } }
.sel-cursor b {
  position: absolute;
  left: 14px;
  top: -13px;
  padding: 4px 6px 3px 7px;
  font-family: var(--f-pixel);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .06em;
  color: #fff7ee;
  background: var(--seal);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .7);
  animation: selTag .9s steps(1) infinite;
}
.sel-cursor b::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 100%;
  border-top: 5px solid var(--seal);
  border-right: 5px solid transparent;
}
@keyframes selTag { 50% { transform: translateY(-2px); } }
.sel-root.is-rolling .sel-cursor i,
.sel-root.is-rolling .sel-cursor b { animation: none; }
.sel-root.is-away .sel-cursor i,
.sel-root.is-away .sel-cursor b,
.sel-root.is-away .sel-led { animation-play-state: paused; }

/* wild card landing: white flash + hanko */
.sel-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: #fff;
  animation: selFlash .32s var(--ease-out) forwards;
}
@keyframes selFlash { from { opacity: .95; } to { opacity: 0; } }
.sel-hanko {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 44%;
  margin: -.5em 0 0 -.5em;
  font-size: clamp(40px, 46cqi, 78px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .55);
  pointer-events: none;
  animation: selStamp .34s var(--ease-snap) both;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='r'><feTurbulence baseFrequency='.8' numOctaves='2' seed='4'/><feComponentTransfer><feFuncA type='discrete' tableValues='1 1 1 1 1 1 1 0 1'/></feComponentTransfer></filter><rect width='90' height='90' filter='url(%23r)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='r'><feTurbulence baseFrequency='.8' numOctaves='2' seed='4'/><feComponentTransfer><feFuncA type='discrete' tableValues='1 1 1 1 1 1 1 0 1'/></feComponentTransfer></filter><rect width='90' height='90' filter='url(%23r)'/></svg>");
}
.sel-hanko.is-out { animation: selStampOut .5s var(--ease-io) forwards; }
@keyframes selStamp {
  0% { opacity: 0; transform: scale(2.6) rotate(-24deg); }
  55% { opacity: 1; transform: scale(.9) rotate(-6deg); }
  100% { opacity: 1; transform: rotate(-8deg); }
}
@keyframes selStampOut {
  from { opacity: 1; transform: rotate(-8deg); }
  to { opacity: 0; transform: rotate(-8deg) scale(1.06); }
}

/* ── Wild card bar ─────────────────────────────────────────────────────── */
.sel-wild {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  margin-top: 28px;
  padding: 10px 14px 10px 10px;
  font-family: var(--f-pixel);
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  color: #1a1206;
  background: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .55);
  overflow: hidden;
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
/* marquee bulbs top and bottom; they chase while the roulette spins */
.sel-wild::before,
.sel-wild::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  height: 3px;
  pointer-events: none;
  background: radial-gradient(circle at 1.5px 1.5px, rgba(26, 18, 6, .32) 1.4px, transparent 1.9px) 0 0 / 12px 3px repeat-x;
}
.sel-wild::before { top: 3px; }
.sel-wild::after { bottom: 3px; background-position: 6px 0; }
.sel-root.is-rolling .sel-wild::before,
.sel-root.is-rolling .sel-wild::after {
  background-image: radial-gradient(circle at 1.5px 1.5px, #fff8e6 1.4px, transparent 1.9px);
  animation: selChase .24s steps(1) infinite;
}
@keyframes selChase { 50% { background-position-x: 6px; } }
.sel-root.is-rolling .sel-wild::after { animation-direction: reverse; }
.sel-wild-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--gold);
  background: #1a1206;
}
.sel-wild-ic .ic { width: 20px; height: 20px; transition: transform .5s var(--ease-back); }
.sel-wild-t { min-width: 0; }
.sel-wild-sub { opacity: .66; }
.sel-key {
  margin-left: auto;
  padding: 5px 8px 4px;
  font-family: var(--f-pixel);
  font-size: 12px;
  line-height: 1;
  color: rgba(26, 18, 6, .78);
  border: 1.5px solid rgba(26, 18, 6, .45);
  box-shadow: 0 2px 0 rgba(26, 18, 6, .3);
}
.sel-key[data-k="pad"] { display: none; }
.sel-root[data-input="pad"] .sel-key[data-k="kb"] { display: none; }
.sel-root[data-input="pad"] .sel-key[data-k="pad"] { display: inline-block; border-radius: 50%; padding-inline: 7px; }
html.is-touch .sel-root:not([data-input="pad"]):not([data-input="keyboard"]) .sel-key { display: none; }
.sel-wild:active { transform: translate(2px, 2px); box-shadow: 0 0 0 rgba(0, 0, 0, .55); }
@media (hover: hover) {
  .sel-wild:hover { background: var(--gold-hot); border-color: var(--gold-hot); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0, 0, 0, .55); }
  .sel-wild:hover .sel-wild-ic .ic { transform: rotate(180deg); }
}
.sel-root.is-rolling .sel-wild { cursor: progress; transform: none; box-shadow: 4px 4px 0 rgba(0, 0, 0, .55); }
.sel-root.is-rolling .sel-wild-ic .ic { animation: selSpin .5s steps(4) infinite; }
@keyframes selSpin { to { transform: rotate(360deg); } }

/* ── Desktop + iPad landscape: stage left (60%), grid right (40%) ─────── */
@media (min-width: 1024px) {
  .sel-deck { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; }
  .sel-left, .sel-right { display: flex; flex-direction: column; }
  .sel-info { flex: 1 1 auto; display: flex; flex-direction: column; }
  .sel-actions { margin-top: auto; }
  .sel-wild { margin-top: auto; }
  .sel-grid { margin-bottom: 28px; }
}
/* shorter landscape screens (iPad landscape, small laptops): keep the whole deck in one view */
@media (min-width: 1024px) and (max-height: 860px) {
  .sel-info { padding-top: 16px; }
  .sel-title { --logo-h: clamp(50px, 4.8vw, 64px); margin-block: 8px 10px; }
  .sel-logline { font-size: clamp(18px, 1.55vw, 21px); }
  .sel-status { margin-top: 12px; }
  .sel-actions { padding-top: 16px; }
  .sel-actions .btn--lg { min-height: 52px; padding-block: 13px 12px; }
  .sel-grid { gap: 18px clamp(10px, 1.1vw, 16px); margin-bottom: 20px; }
  .sel-tile-title { margin-top: 8px; }
  .sel-wild { min-height: 54px; }
}

/* ── iPad portrait: stage across the top, grid + card below ───────────── */
@media (min-width: 700px) and (max-width: 1023.98px) {
  .sel-deck {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "stage stage"
      "grid  info"
      "grid  wild";
    column-gap: clamp(24px, 3.4vw, 36px);
    row-gap: 0;
  }
  .sel-left, .sel-right { display: contents; }
  .sel-stage { grid-area: stage; margin-bottom: 26px; }
  .sel-grid { grid-area: grid; align-self: start; }
  .sel-wild { grid-area: wild; margin-top: 12px; align-self: end; }
  .sel-info { grid-area: info; display: flex; flex-direction: column; padding-top: 12px; }
  .sel-title { --logo-h: 62px; margin-block: 14px; }
  .sel-logline { font-size: 21px; }
  .sel-status { margin-top: 14px; }
  .sel-status .chip { font-size: 11px; }
  .sel-actions { margin-top: auto; flex-direction: column; gap: 10px; }
  .sel-actions .btn { width: 100%; }
  .sel-actions .btn--lg { min-height: 52px; }
  .sel-demo.btn { order: -1; min-height: 44px; padding-block: 6px; } /* above Enter: the buttons stay put */
}

/* ── Phones: stage on top (edge to edge), card, grid, wild card ───────── */
@media (max-width: 699.98px) {
  .sel-deck { display: block; }
  .sel-stage { margin-inline: calc(var(--gutter) * -1); }
  .sel-glow { display: none; }
  .sel-cab { padding: 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; background: #070605; }
  .sel-cab::before { display: none; }
  .sel-strip { padding-left: var(--gutter); padding-right: max(0px, calc(var(--gutter) - 12px)); font-size: 10.5px; letter-spacing: .18em; }
  .sel-sbtn { width: 46px; height: 46px; }
  .sel-info { padding-top: 18px; }
  .sel-meta { font-size: 11px; letter-spacing: .16em; }
  .sel-title { --logo-h: 50px; margin: 12px 0 12px; }
  .sel-logline { font-size: 18px; max-width: none; }
  .sel-status { gap: 7px 8px; margin-top: 14px; align-content: flex-start; }
  .sel-status .chip { font-size: 11px; padding: 4px 8px 3px; letter-spacing: .1em; }
  .sel-note { font-size: 11px; }
  /* the demo link joins the button row (never a row of its own) so the card, and the grid under it, never jump */
  .sel-actions .sel-demo.btn { padding: 6px 2px 6px 4px; font-size: 12px; letter-spacing: .1em; }
  .sel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 18px; }
  .sel-actions.has-demo { grid-template-columns: 1fr 1fr auto; }
  .sel-actions .btn { min-height: 52px; padding: 10px 8px 9px; font-size: 13px; line-height: 1.1; letter-spacing: .06em; gap: .5em; white-space: normal; text-align: center; }
  .sel-actions .btn[hidden] { display: none; }
  .sel-steam .ic-ext { display: none; }
  .sel-right { margin-top: 34px; }
  .sel-grid { gap: 22px 10px; padding-top: 10px; }
  .sel-tile-title { margin-top: 8px; font-size: 10px; letter-spacing: .08em; }
  .sel-tick { padding: 3px 4px 2px; font-size: 8.5px; letter-spacing: .1em; }
  .sel-tile-no, .sel-go { bottom: 5px; font-size: 9px; letter-spacing: .1em; padding: 3px 4px 2px; }
  .sel-tile-no { left: 5px; }
  .sel-go { right: 5px; }
  .sel-tile.is-cur .sel-tile-no { display: none; }
  .sel-tile.is-cur .sel-tile-art { transform: translateY(-4px); }
  .sel-seen { top: 20px; right: 4px; width: 19px; height: 19px; font-size: 11px; }
  .sel-cursor { inset: -6px; }
  .sel-cursor i { width: 13px; height: 13px; }
  .sel-cursor i:nth-child(1) { border-width: 3px 0 0 3px; }
  .sel-cursor i:nth-child(2) { border-width: 3px 3px 0 0; }
  .sel-cursor i:nth-child(3) { border-width: 0 0 3px 3px; }
  .sel-cursor i:nth-child(4) { border-width: 0 3px 3px 0; }
  .sel-cursor b { left: 9px; top: -11px; font-size: 11px; padding: 3px 5px 2px 6px; }
  .sel-wild { margin-top: 26px; min-height: 58px; font-size: 14px; }
}

/* ── Phones: the "selected" bar above the thumb bar ───────────────────── */
.sel-peek { display: none; }
@media (max-width: 699.98px) {
  .sel-peek {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--thumb-h) + var(--safe-b));
    z-index: 480;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 9px max(10px, calc(var(--gutter) - 4px)) 9px var(--gutter);
    background: rgba(18, 14, 11, .97);
    border-top: 1px solid var(--line-2);
    box-shadow: 0 -20px 40px -16px rgba(0, 0, 0, .85);
    transform: translateY(calc(100% + var(--thumb-h) + var(--safe-b) + 8px));
    visibility: hidden;
    transition: transform .4s var(--ease-out), visibility 0s linear .4s;
  }
  .sel-peek.is-on { transform: none; visibility: visible; transition: transform .45s var(--ease-back), visibility 0s; }
}
.sel-peek-art {
  flex: none;
  width: 36px;
  height: 48px;
  overflow: hidden;
  box-shadow: 0 0 0 1.5px var(--seal-hot), 2px 2px 0 1.5px rgba(0, 0, 0, .6);
}
.sel-peek-art img { width: 100%; height: 100%; object-fit: cover; }
.sel-peek-t { display: grid; gap: 3px; flex: 1 1 auto; min-width: 0; }
.sel-peek-no {
  font-family: var(--f-pixel);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--seal-hot);
}
.sel-peek-no[data-status="wishlist"] { color: var(--gold); }
.sel-peek-no[data-status="soon"] { color: var(--bone-2); }
.sel-peek-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.15;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sel-peek-up {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--bone-2);
  border: 1px solid var(--line-2);
  -webkit-tap-highlight-color: transparent;
}
.sel-peek-up .ic { width: 18px; height: 18px; transform: rotate(180deg); }
.sel-peek-go.btn { flex: none; min-height: 44px; padding-inline: 14px; }

/* no-JS fallback list */
.sel .noscript-list { display: grid; gap: 10px; list-style: none; }
.sel .noscript-list a { text-decoration: underline; text-underline-offset: 4px; }

/* on-Steam badge: top-left corner of the capsule */
.sel-onsteam {
  position: absolute;
  z-index: 3;
  top: 6px;
  left: 6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: rgba(23, 26, 33, .88);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 2px 6px rgba(0, 0, 0, .6);
}
.sel-onsteam .ic { width: 18px; height: 18px; }
@media (max-width: 700px) {
  .sel-onsteam { width: 22px; height: 22px; top: 5px; left: 5px; }
  .sel-onsteam .ic { width: 15px; height: 15px; }
}

/* keep the capsule art clear: no catalogue number over the logos */
.sel-tile-no { display: none; }

/* no dev-tool furniture: no mode/count readout, no pause, no keyboard badges (keys still work) */
.sel-strip-l, .sel-sbtn[aria-pressed], .sel-key { display: none !important; }
.sel-strip { justify-content: flex-end; }
