/* Forge TK skin: the shared table-kit pieces (games/table-kit.js: .tk root, .tk-bar, .tk-note, .tk-btn, .tk-cell,
   .tk-paper, .tk-set, inputs) in the dark forge finish: lit, layered, tactile.
   Presentation only. No width, height, padding, margin, gap or border width changes on board pieces, so
   forge-board-fit.js measures every board exactly as before.
   "#play#play" doubles the id on purpose: it outranks the older paper rules (several use !important with
   #play.screen.game.on) without touching their files. Per-game board skins (forge-board-skins.css: Go, Four in a
   Row, Reversi, Mancala, Dominoes) are excluded below so they keep their own look. */

#play#play #stage .tk{
  --tks-ink:#fff1d7;
  --tks-ink2:#ecdcbf;
  --tks-ember:#ff8a2b;
  --tks-rim:rgba(231,197,106,.34);
  --tks-hot:rgba(255,138,43,.82);
  --tks-ui:"Saira",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  /* forged steel: lit top bevel over a dark bronze body */
  --tks-steel:linear-gradient(180deg,#40352b 0%,#2e261f 46%,#221b16 54%,#1a1410 100%);
  --tks-steel-hi:linear-gradient(180deg,#504032 0%,#392d23 46%,#2a2019 54%,#201813 100%);
  /* ember-lit: selected / toggled on */
  --tks-lit:linear-gradient(180deg,#86491a 0%,#613212 48%,#4a250c 54%,#381b09 100%);
  /* obsidian slot: empty board cells */
  --tks-slot:linear-gradient(180deg,#2c2620 0%,#1f1a16 55%,#17130f 100%);
  /* dark plate: panels inside the board */
  --tks-plate:radial-gradient(130% 80% at 50% 0%,rgba(255,150,70,.10),rgba(255,150,70,0) 58%),linear-gradient(180deg,#2b231d 0%,#1d1814 62%,#17130f 100%);
}

/* ================= top bar: the turn / score read-out as a HUD strip ================= */
#play#play #stage .tk > .tk-bar{
  border-bottom-color:rgba(231,197,106,.24)!important;
  background:linear-gradient(90deg,rgba(255,138,43,.12),rgba(255,138,43,.03) 55%,rgba(255,138,43,0))!important;
  border-radius:12px 12px 0 0;
}
#play#play #stage .tk > .tk-bar .tk-meta{
  font-family:var(--tks-ui)!important;
  font-weight:700!important;
  letter-spacing:.03em!important;
  color:#ffd9a0!important;
  text-shadow:0 1px 0 rgba(0,0,0,.6),0 0 12px rgba(255,138,43,.30);
}
#play#play #stage .tk > .tk-bar .tk-meta:not(:empty)::before{
  content:"";display:inline-block;width:7px;height:7px;margin:0 9px 2px 3px;vertical-align:middle;
  background:linear-gradient(135deg,#ffd27a,#ff8a2b);transform:rotate(45deg);border-radius:1px;
  box-shadow:0 0 8px rgba(255,138,43,.75);
}

/* ================= hint / status note ================= */
#play#play #stage .tk > .tk-note{
  background:linear-gradient(180deg,rgba(48,38,29,.94),rgba(28,22,17,.94))!important;
  color:#ffeccb!important;
  border-left-color:var(--tks-ember)!important;
  box-shadow:inset 0 1px 0 rgba(255,230,190,.08),inset 0 0 0 1px rgba(231,197,106,.16),0 6px 16px rgba(0,0,0,.30)!important;
  text-shadow:0 1px 0 rgba(0,0,0,.45);
}
#play#play #stage .tk > .tk-note:empty{background:transparent!important;border-left-color:transparent!important;box-shadow:none!important}

/* The play shell's status line under a tk game is hidden (it repeated the note): forge-play-fullscreen.css. */

/* ================= panels: paper slips become dark forged plates ================= */
#play#play #stage .tk .tk-paper{
  background:var(--tks-plate)!important;
  color:var(--tks-ink)!important;
  border-color:rgba(231,197,106,.30)!important;
  box-shadow:inset 0 1px 0 rgba(255,230,190,.10),inset 0 0 0 1px rgba(0,0,0,.30),0 10px 26px rgba(0,0,0,.42)!important;
}
#play#play #stage .tk .tk-paper :is(.tk-title,.tk-meta,.tk-note){color:var(--tks-ink)!important}
#play#play #stage .tk > .tk-set{
  background:var(--tks-plate)!important;
  color:var(--tks-ink)!important;
  box-shadow:inset 0 0 0 1px rgba(231,197,106,.20),inset 0 1px 0 rgba(255,230,190,.08),0 8px 18px rgba(0,0,0,.35)!important;
}
#play#play #stage .tk > .tk-set b{color:#ffd9a0}
#play#play #stage .tk > .tk-set label{color:var(--tks-ink2)}

/* ================= secondary buttons: forged steel =================
   Skipped: card buttons in a hand, inputs that carry the class, controller pads (forge-thumbsticks.js draws those),
   the Go board and domino tiles (forge-board-skins.css). A button whose game sets its own inline background (piano
   keys, coloured posts, map plots) keeps that colour and only gets the lighting and type. */
#play#play #stage .tk .tk-btn:not(.pri):not(input,textarea,select,.tk-hand > *,:has(.tk-card),html.fps-g-go .tk-grid > *,html.fps-g-domino [data-tile],[data-forge-thumbsticks] > *,[data-fbf-pad] > *,.forge-stick-primary-action,.forge-stick *){
  border-color:var(--tks-rim);
  font-family:var(--tks-ui)!important;
  font-weight:700!important;
  line-height:1.14; /* Georgia's normal line height: Saira's taller default would grow wrapped buttons */
  text-shadow:0 1px 0 rgba(0,0,0,.6);
  box-shadow:inset 0 1px 0 rgba(255,232,196,.18),inset 0 -2px 0 rgba(0,0,0,.30),0 3px 0 #0b0806,0 7px 14px rgba(0,0,0,.42)!important;
}
#play#play #stage .tk .tk-btn:not(.pri):not([style*="background"]):not(input,textarea,select,.tk-hand > *,:has(.tk-card),html.fps-g-go .tk-grid > *,html.fps-g-domino [data-tile],[data-forge-thumbsticks] > *,[data-fbf-pad] > *,.forge-stick-primary-action,.forge-stick *){
  background:var(--tks-steel)!important;
  color:var(--tks-ink)!important;
}
@media (hover:hover){
  #play#play #stage .tk .tk-btn:not(.pri):not(:disabled):not(input,textarea,select,.tk-hand > *,:has(.tk-card),html.fps-g-go .tk-grid > *,html.fps-g-domino [data-tile],[data-forge-thumbsticks] > *,[data-fbf-pad] > *,.forge-stick-primary-action,.forge-stick *):hover{
    border-color:var(--tks-hot);
    filter:none!important;
    box-shadow:inset 0 1px 0 rgba(255,232,196,.22),inset 0 -2px 0 rgba(0,0,0,.30),0 3px 0 #0b0806,0 0 0 1px rgba(255,138,43,.22),0 0 18px rgba(255,138,43,.24),0 7px 14px rgba(0,0,0,.42)!important;
  }
  #play#play #stage .tk .tk-btn:not(.pri):not(:disabled):not([style*="background"]):not(input,textarea,select,.tk-hand > *,:has(.tk-card),html.fps-g-go .tk-grid > *,html.fps-g-domino [data-tile],[data-forge-thumbsticks] > *,[data-fbf-pad] > *,.forge-stick-primary-action,.forge-stick *):hover{
    background:var(--tks-steel-hi)!important;
    color:#fff!important;
  }
}
#play#play #stage .tk .tk-btn:not(.pri):not(:disabled):not(input,textarea,select,.tk-hand > *,:has(.tk-card),html.fps-g-go .tk-grid > *,html.fps-g-domino [data-tile],[data-forge-thumbsticks] > *,[data-fbf-pad] > *,.forge-stick-primary-action,.forge-stick *):active{
  transform:translateY(2px);
  box-shadow:inset 0 1px 0 rgba(255,232,196,.12),inset 0 2px 6px rgba(0,0,0,.35),0 1px 0 #0b0806,0 3px 8px rgba(0,0,0,.4)!important;
}
/* selected / toggled on: ember-lit */
#play#play #stage .tk .tk-btn:not(.pri):not([style*="background"]):is([aria-pressed="true"],[aria-selected="true"],[aria-checked="true"],.on,.sel,.selected,.active,.is-on):not(input,textarea,select,.tk-hand > *,:has(.tk-card),html.fps-g-go .tk-grid > *,html.fps-g-domino [data-tile],[data-forge-thumbsticks] > *,[data-fbf-pad] > *,.forge-stick-primary-action,.forge-stick *){
  background:var(--tks-lit)!important;
  border-color:var(--tks-ember);
  color:#ffe7c6!important;
  box-shadow:inset 0 1px 0 rgba(255,214,160,.32),inset 0 0 0 1px rgba(255,160,80,.30),0 3px 0 #2a1306,0 0 18px rgba(255,138,43,.40),0 7px 14px rgba(0,0,0,.42)!important;
}
#play#play #stage .tk .tk-btn:not(.pri):disabled:not(input,textarea,select,.tk-hand > *,:has(.tk-card),html.fps-g-go .tk-grid > *,html.fps-g-domino [data-tile],[data-forge-thumbsticks] > *,[data-fbf-pad] > *,.forge-stick-primary-action,.forge-stick *){
  opacity:.5;
  filter:saturate(.5);
  box-shadow:inset 0 1px 0 rgba(255,232,196,.08),0 2px 0 #0b0806!important;
}

/* ================= primary buttons: one ember-gold finish and one type face everywhere ================= */
#play#play #stage .tk .tk-btn.pri:not(input,textarea,select,.tk-hand > *,:has(.tk-card),html.fps-g-go .tk-grid > *,html.fps-g-domino [data-tile],[data-forge-thumbsticks] > *,[data-fbf-pad] > *,.forge-stick-primary-action,.forge-stick *){
  font-family:var(--tks-ui)!important;
  font-weight:800!important;
  line-height:1.14;
  text-shadow:0 1px 0 rgba(255,240,200,.45);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(150,60,10,.30),0 3px 0 #8f441c,0 8px 18px rgba(0,0,0,.34),0 0 16px rgba(255,138,43,.18)!important;
}
#play#play #stage .tk .tk-btn.pri:not([style*="background"]):not(input,textarea,select,.tk-hand > *,:has(.tk-card),html.fps-g-go .tk-grid > *,html.fps-g-domino [data-tile],[data-forge-thumbsticks] > *,[data-fbf-pad] > *,.forge-stick-primary-action,.forge-stick *){
  color:#2a1606!important;
  border-color:#ffd99a;
  background:linear-gradient(170deg,#fff0b0 0%,#f6b552 48%,#e5822f 100%)!important;
}
#play#play #stage .tk .tk-btn.pri:not(:disabled):not(input,textarea,select,.tk-hand > *,:has(.tk-card),html.fps-g-go .tk-grid > *,html.fps-g-domino [data-tile],[data-forge-thumbsticks] > *,[data-fbf-pad] > *,.forge-stick-primary-action,.forge-stick *):active{
  transform:translateY(2px);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.35),inset 0 2px 6px rgba(150,60,10,.3),0 1px 0 #8f441c,0 4px 10px rgba(0,0,0,.3)!important;
}

/* ================= inputs and selects: dark recessed fields ================= */
#play#play #stage .tk :is(input:not([type]),input[type="text"],input[type="search"],input[type="number"],input[type="email"],input[type="tel"],textarea,select){
  background:linear-gradient(180deg,#0e0b09,#18130f)!important;
  color:var(--tks-ink)!important;
  border:1px solid rgba(231,197,106,.40)!important;
  border-radius:12px!important;
  min-height:44px;
  box-sizing:border-box;
  padding-inline:12px;
  font-family:var(--tks-ui)!important;
  font-weight:600;
  font-size:16px; /* 16 px keeps iOS Safari from zooming the page on focus */
  box-shadow:inset 0 2px 6px rgba(0,0,0,.6),inset 0 -1px 0 rgba(255,230,190,.06),0 1px 0 rgba(255,230,190,.08)!important;
  caret-color:var(--tks-ember);
}
#play#play #stage .tk select{
  -webkit-appearance:none;appearance:none;padding-right:34px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ff8a2b' stroke-width='2'/%3E%3C/svg%3E") right 12px center/12px 8px no-repeat,linear-gradient(180deg,#0e0b09,#18130f)!important;
}
#play#play #stage .tk select option{background:#1a1511;color:var(--tks-ink)}
#play#play #stage .tk :is(input,textarea)::placeholder{color:rgba(236,220,191,.62);opacity:1}
#play#play #stage .tk :is(input:not([type]),input[type="text"],input[type="search"],input[type="number"],input[type="email"],input[type="tel"],textarea,select):focus{
  border-color:var(--tks-ember)!important;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.6),0 0 0 3px rgba(255,138,43,.30),0 0 16px rgba(255,138,43,.22)!important;
}
#play#play #stage .tk :is(input,textarea,select):focus-visible{outline:2px solid #ffc56a;outline-offset:2px}
#play#play #stage .tk :is(input[type="checkbox"],input[type="radio"],input[type="range"],progress){accent-color:var(--tks-ember)}

/* ================= board cells: obsidian slots that light up ================= */
#play#play #stage .tk .tk-cell:where(:not(html:is(.fps-g-four,.fps-g-reversi,.fps-g-mancala,.fps-g-dots) *)){
  background:var(--tks-slot)!important;
  color:var(--tks-ink);
  border-color:rgba(231,197,106,.18)!important;
  font-family:var(--tks-ui)!important;
  text-shadow:0 1px 0 rgba(0,0,0,.6);
  box-shadow:inset 0 1px 0 rgba(255,236,200,.10),inset 0 -3px 6px rgba(0,0,0,.38),0 2px 0 rgba(0,0,0,.55),0 6px 12px rgba(0,0,0,.30)!important;
}
/* a cell you can play shows a faint warm rim even on touch screens (no hover there) */
#play#play #stage .tk button.tk-cell:where(:not(:disabled)):where(:not(html:is(.fps-g-four,.fps-g-reversi,.fps-g-mancala,.fps-g-dots) *)){
  border-color:rgba(255,170,90,.34)!important;
  box-shadow:inset 0 1px 0 rgba(255,236,200,.14),inset 0 0 0 1px rgba(255,170,90,.08),inset 0 -3px 6px rgba(0,0,0,.34),0 2px 0 rgba(0,0,0,.55),0 6px 12px rgba(0,0,0,.30)!important;
}
@media (hover:hover){
  #play#play #stage .tk button.tk-cell:where(:not(:disabled)):where(:not(html:is(.fps-g-four,.fps-g-reversi,.fps-g-mancala,.fps-g-dots) *)):hover{
    filter:none!important;
    border-color:var(--tks-hot)!important;
    box-shadow:inset 0 1px 0 rgba(255,236,200,.16),inset 0 0 16px rgba(255,138,43,.22),0 2px 0 rgba(0,0,0,.55),0 0 0 1px rgba(255,138,43,.30),0 0 16px rgba(255,138,43,.24)!important;
  }
}
#play#play #stage .tk button.tk-cell:where(:not(:disabled)):where(:not(html:is(.fps-g-four,.fps-g-reversi,.fps-g-mancala,.fps-g-dots) *)):active{
  transform:translateY(2px);
  box-shadow:inset 0 2px 8px rgba(0,0,0,.55),0 1px 0 rgba(0,0,0,.55)!important;
}
#play#play #stage .tk :is(.tk-cell,.tk-btn):focus-visible{outline:3px solid #ffc56a!important;outline-offset:3px}

/* ================= scene tiles (games/forge-scene.js .fs-tiles inside a tk game) ================= */
/* white plastic tiles become lit steel; the game's chosen (.on, gold) and wrong (.bad, red) states keep theirs */
#play#play #stage .tk .fs-tiles > :not(.on):not(.bad){
  background:linear-gradient(180deg,rgba(70,57,45,.94) 0%,rgba(42,34,27,.95) 50%,rgba(27,22,17,.96) 100%)!important;
  color:var(--tks-ink)!important;
  text-shadow:0 1px 0 rgba(0,0,0,.6);
  box-shadow:inset 0 0 0 1px rgba(231,197,106,.32),inset 0 1px 0 rgba(255,232,196,.18),inset 0 -3px 0 rgba(0,0,0,.28),0 4px 0 #0b0806,0 10px 18px rgba(0,0,0,.40)!important;
}
#play#play #stage .tk .fs-tiles > :not(.on):not(.bad) small{color:var(--tks-ink2)}
@media (hover:hover){
  #play#play #stage .tk .fs-tiles > button:not(.on):not(.bad):not(:disabled):hover{
    box-shadow:inset 0 0 0 1px var(--tks-hot),inset 0 1px 0 rgba(255,232,196,.22),0 4px 0 #0b0806,0 0 18px rgba(255,138,43,.30),0 10px 18px rgba(0,0,0,.40)!important;
  }
}
#play#play #stage .tk .fs-tiles > button:focus-visible{outline:3px solid #ffc56a;outline-offset:3px}

/* ================= per game: state that lives on the cell ================= */

/* Tic-Tac-Toe: glowing ember X, ice-steel O */
html.fps-g-tictac #play#play #stage .tk .tk-cell{font-size:clamp(34px,10vw,60px)!important;font-weight:900!important;line-height:1!important}
html.fps-g-tictac #play#play #stage .tk .tk-cell[aria-label$=": empty"]{
  background:radial-gradient(circle at 50% 38%,rgba(255,190,120,.08),rgba(255,190,120,0) 62%),var(--tks-slot)!important}
html.fps-g-tictac #play#play #stage .tk .tk-cell[aria-label$=": X"]{
  color:#ff9a3d!important;text-shadow:0 0 14px rgba(255,138,43,.8),0 0 2px rgba(255,200,140,.9),0 3px 0 rgba(0,0,0,.6)!important;
  background:radial-gradient(circle at 50% 50%,rgba(255,138,43,.16),rgba(255,138,43,0) 65%),var(--tks-slot)!important}
html.fps-g-tictac #play#play #stage .tk .tk-cell[aria-label$=": O"]{
  color:#bfe4ff!important;text-shadow:0 0 14px rgba(120,190,255,.7),0 0 2px rgba(220,240,255,.9),0 3px 0 rgba(0,0,0,.6)!important;
  background:radial-gradient(circle at 50% 50%,rgba(120,190,255,.14),rgba(120,190,255,0) 65%),var(--tks-slot)!important}

/* Lights Out: lit lamps glow amber, unlit ones sit dark */
html.fps-g-lights #play#play #stage .tk .tk-cell[aria-label$=" on"]{
  background:radial-gradient(circle at 50% 42%,#fff6cf 0%,#ffd76a 30%,#f5a032 68%,#c8661a 100%)!important;
  color:#5a2a00!important;text-shadow:0 1px 0 rgba(255,240,200,.6)!important;border-color:#ffe2a0!important;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.55),inset 0 -3px 6px rgba(150,60,0,.35),0 0 20px rgba(255,170,60,.65),0 3px 0 rgba(0,0,0,.5)!important}
html.fps-g-lights #play#play #stage .tk .tk-cell[aria-label$=" off"]{color:rgba(255,220,170,.45)!important}

/* Sliding puzzle: raised bronze tiles over a recessed empty slot */
html.fps-g-slide #play#play #stage .tk .tk-cell:not([aria-label="Tile empty"]){
  background:linear-gradient(180deg,#6a5038 0%,#4d3a29 50%,#3b2c1f 100%)!important;
  color:#ffe9c4!important;border-color:rgba(255,206,140,.45)!important;font-weight:800!important;
  box-shadow:inset 0 2px 0 rgba(255,226,180,.28),inset 0 -3px 0 rgba(0,0,0,.30),0 3px 0 #0d0906,0 8px 14px rgba(0,0,0,.45)!important}
html.fps-g-slide #play#play #stage .tk .tk-cell[aria-label="Tile empty"]{
  background:linear-gradient(180deg,#0c0a08,#15110e)!important;border-color:rgba(0,0,0,.5)!important;opacity:1!important;
  box-shadow:inset 0 4px 10px rgba(0,0,0,.75),0 1px 0 rgba(255,230,190,.06)!important}

/* Hangman: letters already guessed sink back */
html.fps-g-hangman #play#play #stage .tk .tk-cell:disabled{opacity:.34}

/* Dots and Boxes: the lines are glyphs on a transparent hit area; keep them clear of the slot finish */
html.fps-g-dots #play#play #stage .tk .tk-cell{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
@media (hover:hover){
  html.fps-g-dots #play#play #stage .tk button.tk-cell:not(:disabled):hover{background:rgba(255,138,43,.16)!important;box-shadow:0 0 12px rgba(255,138,43,.35)!important}
}

/* Bingo: number cells (tk-die) carry their state in the game's own colour; restore it in the forge palette */
html.fps-g-bingo #play#play #stage .tk .tk-die[style*="background:#145b55"]{
  background:linear-gradient(180deg,#8a4a18,#5a2d0e)!important;color:#ffe0ad!important;border:1px solid rgba(255,170,90,.55)!important;
  font-family:"Bungee",var(--tks-ui)!important;font-weight:400!important;text-shadow:0 2px 0 rgba(0,0,0,.5),0 0 10px rgba(255,138,43,.5)!important;
  box-shadow:inset 0 1px 0 rgba(255,214,160,.35),0 3px 0 #1c0d04,0 6px 12px rgba(0,0,0,.4)!important}
html.fps-g-bingo #play#play #stage .tk .tk-die[style*="background:#f8f1dd"]{
  background:var(--tks-slot)!important;color:var(--tks-ink)!important;border:1px solid rgba(231,197,106,.20)!important;
  font-family:var(--tks-ui)!important;text-shadow:0 1px 0 rgba(0,0,0,.6)!important;
  box-shadow:inset 0 1px 0 rgba(255,236,200,.10),inset 0 -3px 6px rgba(0,0,0,.38),0 2px 0 rgba(0,0,0,.55)!important}
html.fps-g-bingo #play#play #stage .tk .tk-die[style*="background:#256a51"]{
  background:radial-gradient(circle at 50% 45%,#ffb15c 0%,#ff8a2b 42%,#c4520f 72%,#2a1b10 74%,#1d1712 100%)!important;color:#fff!important;
  border:1px solid rgba(255,170,90,.6)!important;font-family:var(--tks-ui)!important;text-shadow:0 1px 2px rgba(80,25,0,.8)!important;
  box-shadow:inset 0 1px 0 rgba(255,236,200,.14),0 0 14px rgba(255,138,43,.45),0 2px 0 rgba(0,0,0,.55)!important}
html.fps-g-bingo #play#play #stage .tk .tk-die[style*="background:#e8bf64"]{
  background:linear-gradient(180deg,#fff2bf,#f2c14e 55%,#d98e22)!important;color:#2a1600!important;border:1px solid #fff0b8!important;
  font-family:var(--tks-ui)!important;text-shadow:none!important;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.6),0 0 20px rgba(255,200,90,.8),0 3px 0 #7a4512!important}

/* Block Puzzle: the piece previews on the (now dark) piece buttons glow amber like placed blocks */
html.fps-g-blocks #play#play #stage .tk .tk-btn span[style*="rgb(35, 66, 50)"]{
  background:linear-gradient(180deg,#ffd98a,#f0a640 55%,#c8701c)!important;border-radius:2px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 1px 2px rgba(0,0,0,.5)}
html.fps-g-blocks #play#play #stage .tk .tk-btn.pri span[style*="rgb(35, 66, 50)"]{
  background:linear-gradient(180deg,#5a2f10,#2a1606)!important;box-shadow:inset 0 1px 0 rgba(255,200,140,.3)}

/* Code Words: guess slots and pegs on the dark plate */
html.fps-g-codewords #play#play #stage .tk .tk-paper b[style*="background:#fff"]{
  background:linear-gradient(180deg,#0e0b09,#1a1410)!important;color:var(--tks-ink)!important;border-color:rgba(255,138,43,.6)!important;
  font-family:var(--tks-ui);box-shadow:inset 0 2px 5px rgba(0,0,0,.6),0 1px 0 rgba(255,230,190,.08)}
html.fps-g-codewords #play#play #stage .tk .tk-paper b[style*="background:#e7c56a"]{
  background:linear-gradient(180deg,#fff0b0,#f2c14e 55%,#d99a2a)!important;color:#2a1600!important;font-family:var(--tks-ui);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 0 12px rgba(255,200,90,.45),0 2px 0 #6a3c0c}
html.fps-g-codewords #play#play #stage .tk .tk-paper b[style*="background:#c4a574"]{
  background:linear-gradient(180deg,#c99a62,#8f6536)!important;color:#1e1206!important;font-family:var(--tks-ui);
  box-shadow:inset 0 1px 0 rgba(255,230,190,.4),0 2px 0 #3a2410}
html.fps-g-codewords #play#play #stage .tk .tk-paper b[style*="background:#efe6d8"]{
  background:var(--tks-slot)!important;color:rgba(255,241,215,.7)!important;font-family:var(--tks-ui);
  box-shadow:inset 0 0 0 1px rgba(231,197,106,.16),inset 0 -2px 4px rgba(0,0,0,.4)}

/* Dot Maze: the maze squares are tk-die spans; make them a dark maze with lit pellets */
html.fps-g-commander #play#play #stage .tk .tk-grid > .tk-die{
  background:var(--tks-slot)!important;color:#ffd27a!important;border:1px solid rgba(231,197,106,.18)!important;
  font-family:var(--tks-ui)!important;font-weight:800;text-shadow:0 0 10px rgba(255,170,60,.85),0 1px 0 rgba(0,0,0,.6);
  box-shadow:inset 0 1px 0 rgba(255,236,200,.08),inset 0 -3px 6px rgba(0,0,0,.4),0 2px 0 rgba(0,0,0,.5)!important}

/* Euchre: red suits stay red on the dark trump buttons */
html.fps-g-euchre #play#play #stage .tk .tk-row > .tk-btn[data-trump]:is([data-trump="H"],[data-trump="D"]):not(.pri){color:#ff7a66!important}

/* Cell boards get a dark tray behind them. Drawn with box-shadow and background only, so no size changes. */
html:is(.fps-g-tictac,.fps-g-slide,.fps-g-lights) #play#play #stage .tk .tk-board div:has(> .tk-cell){
  background:#0c0a08;border-radius:14px;
  box-shadow:0 0 0 6px #17120e,0 0 0 7px rgba(231,197,106,.30),0 16px 30px rgba(0,0,0,.5)}

/* ================= reduced motion ================= */
@media (prefers-reduced-motion:reduce){
  #play#play #stage .tk :is(.tk-btn,.tk-cell){transition:none!important}
  #play#play #stage .tk :is(.tk-btn,.tk-cell):active{transform:none!important}
}
