.sudoku-banner { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.6rem; border:1px solid #bd92ff45; border-radius:1.5rem; margin-bottom:1.5rem; background:radial-gradient(ellipse at right,#9d57c155,transparent 65%),linear-gradient(120deg,#283e50,#263146); }
.sudoku-banner h2 { font-size:clamp(2rem,5vw,3rem); margin:.6rem 0 .2rem; }
.sudoku-banner p { color:#d7e6f1; }
.sudoku-banner img { width:clamp(90px,18vw,140px); height:auto; border-radius:1rem; box-shadow:0 10px 35px #060a1580; }
.sudoku-workspace { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr); gap:2rem; }
.sudoku-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; color:#c6d9e5; }
.sudoku-board { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); aspect-ratio:1; max-width:560px; border:3px solid #8168b1; border-radius:14px; overflow:hidden; box-shadow:0 20px 45px #05081080,0 0 30px #ab77f01a; background:#fff2d9; }
.sudoku-cell { min-width:0; padding:0; border:0; border-right:1px solid #b8acc4; border-bottom:1px solid #b8acc4; background:#fff7e8; color:#7547a0; font:650 clamp(16px,3.8vw,28px)/1 "Segoe UI",sans-serif; cursor:pointer; aspect-ratio:1; position:relative; }
.sudoku-cell.is-given { color:#27364e; font-weight:800; background:#eee7db; }
.sudoku-cell.is-related { background:#e3e6f7; }
.sudoku-cell.is-same { background:#d6c8ef; }
.sudoku-cell.is-selected { background:#acdaf0; box-shadow:inset 0 0 0 3px #316f9a; }
.sudoku-cell.is-error { color:#b6294d; background:#ffe0e0; }
.sudoku-cell:focus-visible { outline:3px solid #3646b5; outline-offset:-4px; z-index:1; }
.sudoku-notes { display:grid; grid-template-columns:repeat(3,1fr); width:100%; height:100%; padding:3px; font-size:clamp(8px,1.5vw,12px); color:#516584; }
.sudoku-notes span { display:flex; align-items:center; justify-content:center; }
.sudoku-digits { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:5px; max-width:560px; margin:1rem 0; }
.sudoku-digits button { padding:10px 0; border:1px solid #a39aff60; border-radius:9px; background:linear-gradient(150deg,#5362a3,#334775); color:#fff; font:700 20px "Segoe UI",sans-serif; cursor:pointer; box-shadow:0 4px 0 #18263f; }
.sudoku-digits button:active { transform:translateY(2px); box-shadow:0 2px 0 #18263f; }
.sudoku-guide { padding:1.2rem; border-radius:1.2rem; background:linear-gradient(140deg,#1d2e40,#25243d); }
.sudoku-guide h3 { font-size:1.8rem; margin:1rem 0; }
.sudoku-guide p { color:#bac9dd; line-height:1.7; margin-bottom:1rem; }
.sudoku-guide-card { padding:1rem; border:1px solid #a19cf44a; border-radius:1rem; margin:1.4rem 0; background:#8992ff12; }
.sudoku-guide-card strong { color:#dfff8a; }
.sudoku-game [data-notes][aria-pressed="true"] { background:#405e79; color:#dfff8a; }
@media(max-width:760px) { .sudoku-workspace { grid-template-columns:1fr; } .sudoku-board { width:100%; } .sudoku-banner { padding:1rem; } .sudoku-toolbar { flex-wrap:wrap; } }
@media(prefers-reduced-motion:reduce) { .sudoku-digits button:active { transform:none; } }
.blocks-banner { background:radial-gradient(ellipse at right,#db724e55,transparent 65%),linear-gradient(120deg,#24463f,#27304a); }
.falling-banner { background:linear-gradient(120deg,#295469,#2c3d59); }
.flight-banner { background:linear-gradient(120deg,#44627d,#554269); }
.flight-lift { width:100%; margin-top:1rem; min-height:50px; touch-action:manipulation; }
.flight-game canvas { touch-action:manipulation; }
.pisti-banner { background:linear-gradient(120deg,#20443c,#393149); }
.pisti-banner-suits { font:700 clamp(40px,8vw,70px) Georgia,serif; color:#dce9ef; white-space:nowrap; }
.pisti-banner-suits span { color:#f598ac; }
.pisti-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr); gap:1.5rem; align-items:start; }
.batak-players { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; margin-bottom:1rem; }
.batak-player { padding:.6rem; border:1px solid #81b79955; border-radius:.75rem; color:#d0e9df; }
.batak-player.is-turn { background:#f9dc8330; border-color:#ffdf91; }
.batak-player strong { font-size:.8rem; display:block; }.batak-player span { font-size:.7rem; }
.batak-contract { font-size:.85rem; color:#ffe1a1; line-height:1.7; margin-bottom:1rem; }
.batak-bid-form { display:flex; flex-wrap:wrap; align-items:end; gap:.8rem; margin-block:1rem; color:#d9eee1; }
.batak-bid-form[hidden] { display:none; }.batak-bid-form label { font-size:.85rem; }.batak-bid-form select { display:block; margin-top:.5rem; }
.batak-trick { display:flex; flex-wrap:wrap; justify-content:center; gap:.8rem; min-height:155px; padding:1rem 0; border-block:1px solid #b5e5cc30; }
.batak-trick-slot { display:flex; flex-direction:column; align-items:center; gap:.5rem; }.batak-trick-slot small { color:#d5eadd; font-size:.7rem; }
.batak-trick-slot .pisti-card { width:65px; height:95px; flex:none; }.batak-trick-slot .pisti-card-suit { font-size:30px; padding-top:32px; }
.batak-hand { display:grid !important; grid-template-columns:repeat(auto-fit,minmax(54px,1fr)); gap:.5rem; }
.batak-hand .pisti-card { width:100%; max-width:90px; height:100px; }.batak-hand .pisti-card-suit { font-size:30px; padding-top:35px; }
.batak-hand button:disabled { opacity:.45; }
.backgammon-banner { background:linear-gradient(120deg,#5e493d,#2b3e4e); }
.backgammon-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr); gap:1.5rem; align-items:start; }
.backgammon-scroll { overflow-x:auto; border-radius:1rem; box-shadow:0 12px 35px #00000055; }
.backgammon-board { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:2px; padding:12px; min-width:510px; border:10px solid #805c43; border-radius:1rem; background:linear-gradient(100deg,#ddba8e,#b98d66); }
.backgammon-point { position:relative; height:170px; min-width:0; padding:0; border:0; background:none; cursor:pointer; }
.backgammon-point::before { content:''; position:absolute; left:2px; right:2px; height:150px; background:#843f38; clip-path:polygon(0 0,100% 0,50% 100%); top:0; }
.backgammon-point.is-sand::before { background:#f3d8a6; }
.backgammon-point.is-bottom::before { top:auto; bottom:0; transform:rotate(180deg); }
.backgammon-point:nth-child(6),.backgammon-point:nth-child(18) { border-right:3px solid #8b593b; }
.backgammon-point-number { position:absolute; left:0; right:0; bottom:0; font-size:11px; color:#35291f; font-weight:700; }
.backgammon-point.is-bottom .backgammon-point-number { bottom:auto; top:0; }
.backgammon-checker { position:absolute; z-index:1; left:50%; transform:translateX(-50%); top:calc(4px + var(--stack)*24px); width:32px; height:32px; border-radius:50%; display:grid; place-items:center; font-size:13px; font-weight:800; border:2px solid #ffffff50; box-shadow:0 3px 4px #241a1c70,inset 0 0 0 3px #ffffff20; }
.backgammon-point.is-bottom .backgammon-checker { top:auto; bottom:calc(4px + var(--stack)*24px); }
.backgammon-checker.is-white { background:radial-gradient(circle at 35% 30%,#fffced,#cfbd9b); color:#50392c; }.backgammon-checker.is-black { background:radial-gradient(circle at 35% 30%,#687184,#22293b); color:#fff; }
.backgammon-point.is-selected { background:#346a9c55; border-radius:8px; }.backgammon-point.is-target { outline:3px solid #aff0b2; outline-offset:-3px; border-radius:8px; }.backgammon-point:focus-visible { outline:3px solid #255b83; outline-offset:-3px; }
.backgammon-bar { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin:1rem 0; }.backgammon-bar span { color:#b9cbdc; font-size:.8rem; }
.backgammon-dice { display:flex; gap:.6rem; align-items:center; min-height:65px; }.backgammon-dice>span { font-size:50px; line-height:1; color:#ffe9bd; text-shadow:0 4px 10px #00000060; }.backgammon-dice small { color:#c4d8e1; }
.backgammon-moves { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem; }.backgammon-moves .button { font-size:.8rem; }
.chess-banner { background:linear-gradient(120deg,#38566f,#4e405c); }
.chess-board { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); aspect-ratio:1; max-width:560px; border:9px solid #263c51; border-radius:1rem; overflow:hidden; box-shadow:0 14px 35px #04081180; }
.chess-square { position:relative; border:0; padding:0; min-width:0; aspect-ratio:1; cursor:pointer; touch-action:manipulation; }
.chess-square.is-light { background:#d8d7bf; }.chess-square.is-dark { background:#54768a; }
.chess-square.is-last { box-shadow:inset 0 0 0 3px #f9d56d80; }.chess-square.is-selected { background:#83bdbc; }.chess-square.is-target::after { content:''; position:absolute; inset:35%; background:#1b644aa0; border-radius:50%; z-index:2; box-shadow:0 0 0 3px #d1f1d170; }
.chess-square.is-check { background:#c97786; }.chess-square:focus-visible { outline:3px solid #7a3fc9; outline-offset:-3px; z-index:3; }
.chess-piece { display:block; width:86%; height:88%; margin:auto; filter:drop-shadow(0 3px 2px #10243680); }
.chess-piece svg { width:100%; height:100%; stroke-width:1.2; stroke-linejoin:round; }.chess-piece.is-w svg { fill:#fff7dd; stroke:#475066; }.chess-piece.is-b svg { fill:#253548; stroke:#c0ced5; }.chess-piece .piece-detail { fill:none; stroke-width:2; }.chess-piece.is-w .piece-eye { fill:#253548; }.chess-piece.is-b .piece-eye { fill:#fff7dd; }
.chess-coordinate { position:absolute; bottom:1px; right:3px; color:#243b50; font:700 clamp(7px,1.4vw,10px) system-ui; }.chess-square.is-dark .chess-coordinate { color:#e6eadb; }
.chess-promotion { display:flex; flex-wrap:wrap; gap:.5rem; padding:1rem; margin-top:1rem; background:#384963; border-radius:1rem; }.chess-promotion[hidden] { display:none; }.chess-promotion strong { width:100%; }
.chess-history { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding-left:1.5rem; gap:.4rem 1.5rem; color:#c4d4e3; font-size:.85rem; max-height:230px; overflow:auto; margin:1rem 0; }
@media(max-width:950px) { .backgammon-layout { grid-template-columns:1fr; } }
.pisti-table { padding:1.3rem; border:8px solid #705547; border-radius:2rem; background:radial-gradient(ellipse at center,#34715b,#1d493f 75%); box-shadow:inset 0 0 55px #0c2b2390,0 15px 40px #070b1470; }
.pisti-playerline { display:flex; align-items:center; justify-content:space-between; gap:1rem; color:#c8e3d5; font-size:.75rem; letter-spacing:.08em; margin-bottom:1rem; }
.pisti-playerline strong { color:#ffe7a4; font-size:1rem; letter-spacing:0; }
.pisti-cpu-hand { display:flex; justify-content:center; gap:.5rem; min-height:85px; margin-bottom:1rem; }
.pisti-card-back { display:flex; align-items:center; justify-content:center; width:56px; height:80px; border:3px solid #ded7bf; border-radius:7px; background:repeating-linear-gradient(45deg,#304966,#304966 5px,#405d7c 5px,#405d7c 10px); color:#e9e0c4; font:700 24px Georgia,serif; box-shadow:0 5px 8px #00000030; }
.pisti-center { display:grid; grid-template-columns:1fr 1.5fr 1fr; align-items:center; gap:.75rem; min-height:200px; padding:1rem 0; border-block:1px solid #b5e5cc30; }
.pisti-deck { display:flex; flex-direction:column; gap:.6rem; align-items:center; color:#c9e4db; }
.pisti-deck small { font-size:.7rem; text-align:center; }
.pisti-pile { text-align:center; color:#d5eadd; font-size:.75rem; }
.pisti-pile [data-pile] { display:flex; justify-content:center; margin-bottom:.6rem; min-height:120px; align-items:center; }
.pisti-capture-note { display:flex; flex-direction:column; gap:.5rem; text-align:center; color:#b5d9c7; font-size:.65rem; }
.pisti-capture-note strong { font-size:1.5rem; color:#ffe2a3; }
.pisti-card { position:relative; display:block; flex:0 1 90px; width:90px; height:124px; padding:0; border:1px solid #d2c9b8; border-radius:10px; background:linear-gradient(145deg,#fffdf2,#eee6d5); box-shadow:0 7px 12px #092f2999; font-family:Georgia,serif; }
.pisti-card.is-red { color:#b63151; }.pisti-card.is-black { color:#223447; }
.pisti-card-corner { position:absolute; top:7px; left:8px; font-size:17px; font-weight:700; line-height:1; white-space:pre-line; }
.pisti-card-corner.is-bottom { top:auto; left:auto; bottom:7px; right:8px; transform:rotate(180deg); }
.pisti-card-suit { display:block; text-align:center; font-size:42px; padding-top:40px; }
.pisti-hand { display:flex; justify-content:center; gap:.65rem; min-height:124px; }
.pisti-hand button { cursor:pointer; touch-action:manipulation; }
.pisti-hand button:hover:not(:disabled) { outline:3px solid #ffdf87; outline-offset:2px; }
.pisti-hand button:focus-visible { outline:3px solid #ffc978; outline-offset:3px; }
.pisti-hand button:disabled { cursor:default; opacity:.8; }
.pisti-turn { text-align:center; padding:1rem; color:#ffedae; font-weight:700; min-height:55px; }
.pisti-table-status { font-size:.85rem; color:#d0e8dc; text-align:center; line-height:1.6; min-height:3rem; margin-top:1.25rem; }
.pisti-empty { display:grid; place-items:center; width:90px; height:124px; border:2px dashed #9fd3b64a; border-radius:10px; color:#c3dfd0; }
@media(max-width:850px) { .pisti-layout { grid-template-columns:1fr; } }
@media(max-width:480px) { .pisti-table { padding:.8rem; border-width:5px; border-radius:1.5rem; } .pisti-hand { gap:.4rem; } .pisti-hand .pisti-card { flex-basis:62px; height:101px; } .pisti-hand .pisti-card-suit { font-size:30px; padding-top:35px; } .pisti-center { gap:.4rem; } .pisti-capture-note { font-size:.6rem; } .pisti-card-corner { font-size:15px; left:5px; } }
.falling-workspace { display:grid; grid-template-columns:minmax(240px,414px) minmax(220px,1fr); gap:2rem; justify-content:center; }
.falling-game canvas { display:block; width:100%; height:auto; max-height:70vh; object-fit:contain; border-radius:1rem; box-shadow:0 16px 40px #04081170; }
.falling-controls { display:flex; gap:.5rem; margin-top:1rem; }
.falling-controls button { flex:1; min-width:0; min-height:48px; padding:.5rem; border:1px solid #83cfcf55; border-radius:.75rem; background:#264754; color:#e8f8f6; font-size:1.2rem; cursor:pointer; touch-action:manipulation; }
.falling-next { display:grid; width:max-content; gap:4px; padding:1rem; margin-bottom:1rem; border-radius:1rem; background:#12263b; min-height:70px; }
.falling-next span { width:26px; height:26px; border-radius:5px; box-shadow:inset 0 3px 0 #ffffff40,inset 0 -3px 0 #00000020; }
@media(max-width:760px) { .falling-workspace { grid-template-columns:1fr; } .falling-game canvas { max-height:62vh; } .falling-workspace .sudoku-guide { margin-top:.5rem; } }
.blocks-hud { display:flex; justify-content:space-between; gap:1rem; padding:.8rem 1rem; background:#162438; border-radius:1rem; margin-bottom:1rem; color:#b7ccdb; font-size:.75rem; letter-spacing:.08em; }
.blocks-hud strong { display:block; color:#ffe8a1; font-size:1.7rem; letter-spacing:0; }
.blocks-board { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:5px; padding:12px; aspect-ratio:1; max-width:560px; background:linear-gradient(145deg,#284658,#152c3e); border:2px solid #588480; border-radius:1.25rem; box-shadow:0 18px 45px #04081180,inset 0 0 30px #6bccab15; }
.blocks-cell { min-width:0; padding:0; aspect-ratio:1; border:1px solid #7196a225; border-radius:7px; background:#0f223288; cursor:pointer; touch-action:manipulation; }
.block-color-1 { background:linear-gradient(135deg,#ffe788,#eda642); }
.block-color-2 { background:linear-gradient(135deg,#a7f0d3,#42b7a0); }
.block-color-3 { background:linear-gradient(135deg,#d4b9ff,#8f69d6); }
.block-color-4 { background:linear-gradient(135deg,#ffbcae,#e27286); }
.block-color-5 { background:linear-gradient(135deg,#a9dfff,#529bdf); }
.block-color-6 { background:linear-gradient(135deg,#e3f395,#a5c55b); }
.blocks-cell[class*="block-color"] { border-color:#ffffff50; box-shadow:inset 0 3px 0 #ffffff45,inset 0 -3px 0 #00000025; }
.blocks-cell.is-preview { background:#7bccb077; border:2px dashed #b6ffe5; }
.blocks-cell.is-blocked { outline:2px solid #ff96a5; outline-offset:-3px; }
.blocks-cell:focus-visible { outline:3px solid #fff0aa; outline-offset:-3px; }
.blocks-tray { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; max-width:560px; margin:1rem 0; }
.blocks-tray>button { display:flex; align-items:center; justify-content:center; min-height:112px; padding:.7rem; border:2px solid #5b6e8c; border-radius:1rem; background:#1c2c41; color:#9ae6c1; cursor:pointer; font-size:1.8rem; }
.blocks-tray>button[aria-pressed="true"] { border-color:#e7d99a; background:#34464f; box-shadow:0 0 18px #e7d99a20; }
.blocks-tray>button:disabled { opacity:.4; cursor:default; }
.blocks-piece { display:grid; gap:3px; width:max-content; }
.blocks-piece>span { display:block; width:clamp(16px,3.5vw,24px); aspect-ratio:1; border-radius:4px; box-shadow:inset 0 2px 0 #ffffff50; }
.blocks-piece>.block-empty { background:none; box-shadow:none; }
@media(max-width:480px) { .blocks-board { gap:3px; padding:7px; } .blocks-cell { border-radius:4px; } .blocks-tray>button { min-height:100px; padding:.45rem; } }
