/* The hand-built cabinets share controls, but each keeps its own stage lighting. */
.game-shell.facelift-game { --cabinet-accent: #ffe273; --cabinet-rgb: 255,226,115; --cabinet-secondary: #77e5d4; border-color: rgba(var(--cabinet-rgb),.38); background: radial-gradient(circle at 50% -12%, rgba(var(--cabinet-rgb),.13), transparent 43%), #101423; box-shadow: 0 22px 65px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.07); }
.game-shell[data-game="snake"] { --cabinet-accent: #bdff82; --cabinet-rgb: 189,255,130; --cabinet-secondary: #6cdec4; }
.game-shell[data-game="galaga"] { --cabinet-accent: #8fcfff; --cabinet-rgb: 143,207,255; --cabinet-secondary: #ff8eb3; }
.game-shell[data-game="asteroids"] { --cabinet-accent: #a6a3ff; --cabinet-rgb: 166,163,255; --cabinet-secondary: #7be2e5; }
.game-shell[data-game="breakout"] { --cabinet-accent: #ffb7aa; --cabinet-rgb: 255,183,170; --cabinet-secondary: #ffe273; }
.game-shell[data-game="tictactoe"] { --cabinet-accent: #ffdc79; --cabinet-rgb: 255,220,121; --cabinet-secondary: #f59ba9; }
.game-shell[data-game="memory"] { --cabinet-accent: #bea9ff; --cabinet-rgb: 190,169,255; --cabinet-secondary: #88e0d4; }
.game-shell[data-game="pong"] { --cabinet-accent: #84f2df; --cabinet-rgb: 132,242,223; --cabinet-secondary: #ff8aa7; }
.game-shell[data-game="pool"] { --cabinet-accent: #90e6b3; --cabinet-rgb: 144,230,179; --cabinet-secondary: #f9d88a; }
.game-shell[data-game="cuppong"] { --cabinet-accent: #ffa59a; --cabinet-rgb: 255,165,154; --cabinet-secondary: #ffd878; }
.game-shell[data-game="tankbattle"] { --cabinet-accent: #c7e786; --cabinet-rgb: 199,231,134; --cabinet-secondary: #ffa792; }
.game-shell[data-game="whack"] { --cabinet-accent: #ffdb85; --cabinet-rgb: 255,219,133; --cabinet-secondary: #f7a6b0; }

.game-shell.facelift-game .game-root { gap: 16px; }
.game-shell.facelift-game .game-header { padding: 5px 7px 2px; align-items: center; }
.game-shell.facelift-game .game-header .eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 7px; color: var(--cabinet-accent); font-size: .68rem; letter-spacing: .15em; }
.game-shell.facelift-game .game-header .eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--cabinet-accent); transform: rotate(45deg); box-shadow: 0 0 14px var(--cabinet-accent); }
.game-shell.facelift-game .game-subcopy { max-width: 64ch; color: #c0c8d7; font-size: .86rem; line-height: 1.5; }
.game-shell.facelift-game .game-stage { border: 2px solid rgba(var(--cabinet-rgb),.48); border-radius: 14px; box-shadow: 0 0 0 5px rgba(var(--cabinet-rgb),.055), 0 20px 40px rgba(0,0,0,.23); }
.game-shell.facelift-game .game-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 55px rgba(0,0,0,.28); }
.game-shell.facelift-game .game-overlay { inset: 28px; border: 1px solid rgba(var(--cabinet-rgb),.38); border-radius: 15px; background: rgba(12,18,31,.88); box-shadow: 0 18px 50px rgba(0,0,0,.32); }
.game-shell.facelift-game .game-overlay strong { color: var(--cabinet-accent); }
.game-shell.facelift-game .game-overlay p { color: #d8dce7; }
.game-shell.facelift-game .mini-card { position: relative; overflow: hidden; min-height: 57px; padding: 12px 15px; border: 1px solid rgba(var(--cabinet-rgb),.2); border-radius: 11px; background: linear-gradient(140deg,rgba(var(--cabinet-rgb),.13),rgba(255,255,255,.035) 65%), #1a2031; }
.game-shell.facelift-game .mini-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,var(--cabinet-accent),transparent 80%); }
.game-shell.facelift-game .mini-card-label { margin-bottom: 5px; color: #bec7d8; font-size: .69rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.game-shell.facelift-game .mini-card-value { color: #fff9e9; font: 800 1.28rem/1.1 var(--title-font); }
.game-shell.facelift-game .mode-toolbar, .game-shell.facelift-game .pong-toolbar { gap: 7px; padding: 5px; border: 1px solid rgba(var(--cabinet-rgb),.14); border-radius: 12px; background: #0c111f; }
.game-shell.facelift-game .mode-toolbar .arcade-button, .game-shell.facelift-game .pong-toolbar .arcade-button { border-color: transparent; border-radius: 8px; background: transparent; box-shadow: none; color: #c6ccdb; }
.game-shell.facelift-game .mode-toolbar .arcade-button:hover, .game-shell.facelift-game .pong-toolbar .arcade-button:hover { border-color: rgba(var(--cabinet-rgb),.3); background: rgba(var(--cabinet-rgb),.1); color: #fff; }
.game-shell.facelift-game .mode-toolbar .is-active, .game-shell.facelift-game .pong-toolbar .is-active { border-color: var(--cabinet-accent) !important; background: var(--cabinet-accent) !important; color: #151b28 !important; transform: none; }
.game-shell.facelift-game .ttt-banner, .game-shell.facelift-game .memory-banner, .game-shell.facelift-game .whack-banner, .game-shell.facelift-game .tank-banner, .game-shell.facelift-game .cup-banner, .game-shell.facelift-game .pool-banner { border: 1px solid rgba(var(--cabinet-rgb),.22); border-left: 4px solid var(--cabinet-accent); border-radius: 9px; background: rgba(var(--cabinet-rgb),.075); color: #e5e8ee; font-weight: 700; }
.game-shell.facelift-game .multiplayer-panel, .game-shell.facelift-game .pong-net-panel, .game-shell.facelift-game .tank-controls, .game-shell.facelift-game .cup-controls, .game-shell.facelift-game .pool-controls { border-color: rgba(var(--cabinet-rgb),.2); border-radius: 12px; background: rgba(5,10,20,.45); }
.game-shell.facelift-game .match-code-display, .game-shell.facelift-game .pong-code-display { border-color: rgba(var(--cabinet-rgb),.3); background: radial-gradient(circle at top left,rgba(var(--cabinet-rgb),.15),transparent 65%),#0b1020; }
.game-shell.facelift-game .match-code-value, .game-shell.facelift-game .pong-code-value { color: var(--cabinet-accent); text-shadow: 0 0 22px rgba(var(--cabinet-rgb),.3); }
.game-shell.facelift-game .touch-button { border: 1px solid rgba(var(--cabinet-rgb),.34); border-radius: 10px; background: linear-gradient(180deg,rgba(var(--cabinet-rgb),.13),rgba(255,255,255,.03)); color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.1); }
.game-shell.facelift-game .touch-button:hover { background: rgba(var(--cabinet-rgb),.25); transform: translateY(-2px); }
.game-shell[data-game="snake"] .snake-controls { display: flex; justify-content: center; gap: 8px; margin-top: 5px; }
.game-shell[data-game="snake"] .snake-direction { width: clamp(54px,15vw,76px); min-height: 48px; border-color: rgba(189,255,130,.4); font: 900 1.35rem/1 var(--title-font); }

/* A smaller, more legible strategy board with pieces that feel drawn on. */
.game-shell[data-game="tictactoe"] .ttt-board { width: min(100%, 590px); margin-inline: auto; gap: 11px; }
.game-shell[data-game="tictactoe"] .ttt-grid { gap: 8px; padding: 8px; border: 2px solid #a47553; border-radius: 19px; background: #b58b60; box-shadow: 0 12px 0 #533e39, 0 20px 30px rgba(0,0,0,.28); }
.game-shell[data-game="tictactoe"] .board-button { position: relative; border: 0; border-radius: 10px; background: #f9eecf; color: #ce636c; box-shadow: inset 0 -6px rgba(87,63,49,.12); font-size: clamp(3rem,8vw,6rem); line-height: 1; text-shadow: 3px 4px 0 rgba(0,0,0,.12); transition: transform .15s ease,background .15s ease; }
.game-shell[data-game="tictactoe"] .board-button:not(:disabled):hover { transform: translateY(-3px); background: #fff6df; }
.game-shell[data-game="tictactoe"] .board-button.is-x { color: #ec786a; }
.game-shell[data-game="tictactoe"] .board-button.is-o { color: #4da3a3; }
.game-shell[data-game="tictactoe"] .board-button:disabled { opacity: 1; }

/* A physical little deck with an actual flip, rather than sixteen question marks. */
.game-shell[data-game="memory"] .memory-board { width: min(100%,690px); margin-inline: auto; gap: 10px; }
.game-shell[data-game="memory"] .memory-card { position: relative; aspect-ratio: 1.05; padding: 0; border: 0; border-radius: 12px; background: transparent; overflow: visible; perspective: 800px; transform: none; }
.game-shell[data-game="memory"] .memory-card:hover:not(:disabled) { transform: translateY(-4px); }
.game-shell[data-game="memory"] .memory-card:focus-visible { outline: 3px solid var(--cabinet-accent); outline-offset: 3px; }
.game-shell[data-game="memory"] .memory-card-flipper { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .42s cubic-bezier(.2,.75,.2,1); }
.game-shell[data-game="memory"] .memory-card.is-flipped .memory-card-flipper, .game-shell[data-game="memory"] .memory-card.is-matched .memory-card-flipper { transform: rotateY(180deg); }
.game-shell[data-game="memory"] .memory-card-back, .game-shell[data-game="memory"] .memory-card-front { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; border-radius: 12px; }
.game-shell[data-game="memory"] .memory-card-back { border: 2px solid #f0d99a; background: radial-gradient(circle at 50% 40%,#7d5fb1,#382a62 72%); box-shadow: inset 0 0 0 5px #372551,inset 0 0 0 7px rgba(255,227,161,.36),0 6px 0 #17122c; }
.game-shell[data-game="memory"] .memory-card-back::after { content: ''; position: absolute; inset: 14px; border: 1px dashed rgba(255,238,189,.46); border-radius: 6px; }
.game-shell[data-game="memory"] .memory-card-back i { color: #ffe29d; font: normal 3.5rem/1 var(--title-font); text-shadow: 0 3px #35224e; }
.game-shell[data-game="memory"] .memory-card-back b { margin-top: 3px; color: #fff4db; font-size: .62rem; letter-spacing: .22em; }
.game-shell[data-game="memory"] .memory-card-back small { position: absolute; right: 13px; bottom: 9px; color: rgba(255,240,199,.7); font-size: .65rem; }
.game-shell[data-game="memory"] .memory-card-front { transform: rotateY(180deg); border: 3px solid #fff5e3; background: linear-gradient(155deg,#fffaf0,#e6edf0); color: #283049; box-shadow: inset 0 -8px rgba(36,45,70,.09),0 6px 0 #52516d; }
.game-shell[data-game="memory"] .memory-card:nth-child(4n+2) .memory-card-front { background: linear-gradient(155deg,#fff5dc,#f8dacc); }
.game-shell[data-game="memory"] .memory-card:nth-child(4n+3) .memory-card-front { background: linear-gradient(155deg,#e7f8ef,#c9e5df); }
.game-shell[data-game="memory"] .memory-card:nth-child(4n+4) .memory-card-front { background: linear-gradient(155deg,#f4eaff,#ded1f6); }
.game-shell[data-game="memory"] .memory-card-glyph { color: #8059b0; font: normal clamp(2.3rem,6vw,4.5rem)/1 var(--title-font); }
.game-shell[data-game="memory"] .memory-card-word { margin-top: 8px; color: #26324a; font: 900 clamp(.64rem,1.5vw,1rem)/1 var(--title-font); letter-spacing: .08em; }
.game-shell[data-game="memory"] .memory-card.is-matched .memory-card-front { border-color: #6ccab2; box-shadow: inset 0 -8px rgba(53,129,108,.13),0 6px 0 #3a8a7b,0 0 18px rgba(108,202,178,.35); }

/* The targets finally have faces, burrows, and a gold variant. */
.game-shell[data-game="whack"] .whack-grid { width: min(100%,650px); margin-inline: auto; gap: 9px; }
.game-shell[data-game="whack"] .hole-button { position: relative; aspect-ratio: 1.24; border: 2px solid #6d9963; border-radius: 14px; background: linear-gradient(175deg,#a0cf82 0%,#78b16d 55%,#588e65 100%); box-shadow: inset 0 4px rgba(255,255,255,.2),0 5px 0 #284e4a; transform: none; }
.game-shell[data-game="whack"] .hole-button::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 20%,rgba(255,255,255,.2),transparent 30%),repeating-linear-gradient(105deg,transparent 0 29px,rgba(32,89,55,.08) 30px 31px); pointer-events: none; }
.game-shell[data-game="whack"] .hole-button:hover { transform: translateY(-2px); }
.game-shell[data-game="whack"] .hole-button:focus-visible { outline: 3px solid #ffe07e; outline-offset: 3px; }
.game-shell[data-game="whack"] .whack-hole { position: absolute; left: 12%; right: 12%; bottom: 8%; width: auto; height: 40%; border-radius: 50%; background: #292d32; box-shadow: inset 0 9px 12px #12191e,0 4px 0 #bcdd91; transform: none; opacity: 1; }
.game-shell[data-game="whack"] .whack-character { position: absolute; left: 27%; right: 27%; bottom: 14%; z-index: 2; width: auto; height: 66%; border-radius: 47% 47% 38% 38%; background: linear-gradient(90deg,#8c5b61,#c98d83 35%,#e0a395 65%,#9b6066); box-shadow: inset 0 5px rgba(255,241,216,.24),0 5px 10px rgba(34,23,28,.3); transform: translateY(155%) scale(.86); opacity: 1; transition: transform .19s cubic-bezier(.15,1.45,.5,1); }
.game-shell[data-game="whack"] .hole-button.is-up .whack-character { transform: translateY(0) scale(1); }
.game-shell[data-game="whack"] .whack-ear { position: absolute; top: -11%; width: 27%; height: 28%; border: 5px solid #b97c79; border-radius: 50%; background: #edb3aa; }
.game-shell[data-game="whack"] .whack-ear-left { left: 3%; transform: rotate(-18deg); }
.game-shell[data-game="whack"] .whack-ear-right { right: 3%; transform: rotate(18deg); }
.game-shell[data-game="whack"] .whack-face { position: absolute; top: 15%; left: 10%; width: 80%; height: 56%; border-radius: 48%; background: #f7d0ae; transform: none; opacity: 1; }
.game-shell[data-game="whack"] .whack-eye { position: absolute; top: 29%; width: 9%; height: 20%; border-radius: 50%; background: #292337; }
.game-shell[data-game="whack"] .whack-eye-left { left: 27%; }
.game-shell[data-game="whack"] .whack-eye-right { right: 27%; }
.game-shell[data-game="whack"] .whack-nose { position: absolute; top: 48%; left: 43%; width: 14%; height: 17%; border-radius: 50% 50% 60% 60%; background: #dc6d83; }
.game-shell[data-game="whack"] .whack-belly { position: absolute; bottom: 4%; left: 21%; width: 58%; height: 28%; border-radius: 50% 50% 35% 35%; background: rgba(255,226,193,.5); }
.game-shell[data-game="whack"] .whack-rim { position: absolute; left: 8%; right: 8%; bottom: 3%; z-index: 3; width: auto; height: 19%; border-radius: 50%; border-bottom: 11px solid #426d57; background: transparent; transform: none; opacity: 1; pointer-events: none; }
.game-shell[data-game="whack"] .whack-callout { position: absolute; top: 7%; right: 6%; z-index: 4; display: block; width: auto; height: auto; padding: 4px 7px; border-radius: 5px; background: #fff8d5; color: #39444a; font: 900 .62rem/1 var(--title-font); letter-spacing: .04em; transform: rotate(8deg) scale(0); opacity: 0; transition: transform .18s ease,opacity .18s ease; }
.game-shell[data-game="whack"] .hole-button.is-up .whack-callout { transform: rotate(8deg) scale(1); opacity: 1; }
.game-shell[data-game="whack"] .hole-button[data-type="gold"] .whack-character { background: linear-gradient(90deg,#b88432,#e8b84d 35%,#ffe186 65%,#b07b2f); }
.game-shell[data-game="whack"] .hole-button[data-type="gold"] .whack-ear { border-color: #d2a846; background: #ffe29b; }
.game-shell[data-game="whack"] .hole-button[data-type="gold"] .whack-callout { background: #ffdf6c; }
.game-shell[data-game="whack"] .hole-button[data-type="gold"] .whack-callout::before { content: '★ '; }

@media (max-width: 700px) {
  .game-shell.facelift-game { padding: 12px; }
  .game-shell[data-game="memory"] .memory-board { gap: 6px; }
  .game-shell[data-game="memory"] .memory-card-back i { font-size: 2.3rem; }
  .game-shell[data-game="memory"] .memory-card-back b { font-size: .47rem; }
  .game-shell[data-game="memory"] .memory-card-back small { display: none; }
  .game-shell[data-game="tictactoe"] .ttt-grid { gap: 5px; padding: 5px; }
  .game-shell[data-game="whack"] .whack-grid { gap: 5px; }
  .game-shell[data-game="whack"] .whack-ear { border-width: 3px; }
  .game-shell[data-game="whack"] .whack-callout { font-size: .48rem; }
}
@media (prefers-reduced-motion: reduce) {
  .game-shell[data-game="memory"] .memory-card-flipper, .game-shell[data-game="whack"] .whack-character, .game-shell[data-game="whack"] .whack-callout { transition-duration: .01ms; }
}
