/* V3 layout retained. The game has its own deep-blue/navy palette, independent of site red. */
.site-header{background:#fff}.game-directory{background:#fff}.game-tile{background:#fff}.network-card{background:#fff}.faq{background:#fff}.game-directory,.game-tile,.network-card,.faq{border-color:#e3e7ec}.welcome h1 em{color:#ce2442}.game-shell{border:1px solid #1b3349;border-radius:19px;background:#143d59;box-shadow:0 14px 40px #152e461b,0 3px 0 #e3e9e8}.game-top{background:#172d43;padding:17px 22px;border-bottom:1px solid #ffffff0b}.game-brand{color:#d4ebdb}.game-brand strong{font-size:15px;color:#fff;font-weight:700;letter-spacing:0}.scoreboard{gap:24px;color:#acbecd;font-size:11px}.scoreboard b{font-size:16px;color:#f6fafc;font-weight:750;font-variant-numeric:tabular-nums}.toolbar{background:#203b52;padding:11px 15px;gap:7px;border-top:0;border-bottom:1px solid #162b3e}.toolbar button svg{width:17px;height:17px}#game-shell .toolbar button{min-height:41px;min-width:38px;padding:10px 12px;border-radius:10px;background:#2e4b63;color:#edf5fb;border:1px solid #577087;font-size:12px;box-shadow:none}#game-shell .toolbar button:hover{background:#3d5e78;border-color:#91adbf}#game-shell .toolbar button:disabled{opacity:.38;cursor:default}#game-shell .toolbar button[data-action=new]{background:#f4f9fc;color:#24465f;border-color:#f4f9fc;font-weight:750}#game-shell .toolbar button[data-action=fullscreen]{background:#2b80da;color:white;border-color:#559bec;font-weight:800;box-shadow:0 3px 0 #16518e}#game-shell .toolbar button[data-action=fullscreen]:hover{background:#397fe0}#game-shell .toolbar button[data-action=fullscreen] span,#game-shell .toolbar button[data-action=share] span,#game-shell .toolbar button[data-action=new] span{display:inline}#game-shell .toolbar button[data-action=hint]{background:#31576a;border-color:#6e9bab;color:#f2fcff}#game-shell .toolbar button[aria-pressed=true]:not([data-action=fullscreen]){background:#477762;border-color:#96c6aa}.board-scroll{background:#174a67}.board{background-color:#17693e;background-image:radial-gradient(ellipse at 50% 20%,#3f995a55,transparent 85%),url('/assets/images/felt.webp');background-blend-mode:soft-light}.board[data-table=blue]{background-color:#174a67;background-image:radial-gradient(ellipse at 50% 15%,rgba(74,166,207,.32),transparent 72%),url('/assets/images/felt.webp');background-blend-mode:soft-light}.board[data-table=blue] .pile{border-color:#b9d9e34d;background:#092b422b;color:#cae6ee8f}.board[data-table=blue] .pile-caption{color:#dcecf2}.board[data-table=midnight]{background-color:#1b2c43}.pile{border:1px solid #c6e0ca42;background:#0c392725;box-shadow:inset 0 2px 8px #062a2918;color:#c5dfc87d}.pile-caption{color:#d2e4d3;font-size:10px;letter-spacing:0}.card{background:#fff;border-radius:6px;box-shadow:0 1px 2px #071d2b80,0 3px 7px #09283b3d}.card img{object-fit:fill}.card .card-back{background-color:#234c76;border:3px solid #f8fbff;background-image:repeating-linear-gradient(45deg,transparent 0 5px,#bdd8ec25 5px 6px),repeating-linear-gradient(-45deg,transparent 0 5px,#bdd8ec25 5px 6px);box-shadow:inset 0 0 0 1px #153b61}.card .card-back:after{background:#173c61;border-color:#b9d0df;color:#e5f2fb;box-shadow:0 0 0 3px #ffffff12;border-radius:35%;inset:15%}.card[data-back=red] .card-back{background-color:#7e3341}.card[data-back=red] .card-back:after{background:#602b38}.card[data-back=emerald] .card-back{background-color:#286953}.card[data-back=emerald] .card-back:after{background:#194b3c}.card[data-back=dark] .card-back{background-color:#263343}.card[data-back=dark] .card-back:after{background:#1b2635}.compact-card[data-face=up] .card-index{background:#fff;color:#101419;font-family:Arial,sans-serif}.card-index.red{color:#d90927!important}.game-bottom{background:#172d43;color:#c0d1dd;padding:13px 19px;font-size:12px;border-top:1px solid #ffffff0c}.keyboard-note{color:#92adbf;font-size:10px}.game-shell.won .game-top{background:#245340}#game-shell .hint-guide button{background:#d1e8db;color:#225d42}.game-shell:fullscreen,.game-shell.fallback-fullscreen{border:0;background:#174a67;box-shadow:none}
/* All game dialogs use white surfaces, clear hierarchy and quiet green actions. */
#game-dialog{background:#fff;color:#19364b;border:1px solid #d5e2e8;border-radius:23px;width:min(480px,calc(100% - 32px));padding:31px;box-shadow:0 25px 95px #0a223752;max-height:90dvh}#game-dialog::backdrop{background:#10283a8c;backdrop-filter:blur(3px)}#game-dialog h2{font-size:27px;line-height:1.25;letter-spacing:-.6px;color:#18394b;margin:18px 28px 12px 0}#game-dialog .dialog-copy{font-size:15px;line-height:1.8;color:#627786}#game-dialog .dialog-actions{display:flex;gap:11px;margin-top:25px;padding-top:23px;border-top:1px solid #e5edf1}#game-dialog .dialog-actions .btn{flex:1;justify-content:center;text-align:center;font-size:14px;padding:13px 18px;min-height:47px;border:1px solid #cadbe4;background:#f4f8fa;color:#35596d;border-radius:11px;box-shadow:none;font-weight:750}#game-dialog .dialog-actions .btn:first-child{background:#167352;color:white;border-color:#167352;box-shadow:0 3px 0 #0c5139}#game-dialog .dialog-actions .btn:first-child:hover{background:#105f43}#game-dialog .dialog-close{position:absolute;top:22px;right:22px;width:32px;height:32px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:#eef4f7;color:#617a8c;font-size:24px;line-height:1}#game-dialog .dialog-close:hover{background:#e0ebf0;color:#254d65}.dialog-badge{width:55px;height:55px;display:grid;place-items:center;background:linear-gradient(145deg,#d8efe3,#eaf6f0);border:1px solid #cae2d5;border-radius:15px}.dialog-badge svg{width:41px;height:41px;stroke:none}#game-dialog button:focus-visible{outline:2px solid #388aca;outline-offset:3px}#game-dialog .dialog-copy select{background:#f8fbfc;border:1px solid #c4d8e2;color:#315468;border-radius:10px;font-size:14px}#game-dialog .dialog-copy label{color:#416575;font-size:13px}
#game-dialog.share-dialog{width:min(590px,calc(100% - 26px))}.share-panel>p{margin-top:0}.social-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}.social-option{display:flex;flex-direction:column;align-items:center;justify-content:start;gap:9px;text-align:center;padding:16px 7px;border:1px solid #dce7ed;border-radius:14px;background:#fff;color:#294b61;font-size:12px;font-weight:700;min-height:112px}.social-option:hover{background:#f1f7fa;border-color:#9abfd2}.social-logo{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--social-color);color:#fff}.social-logo svg{width:26px;height:26px;fill:currentColor;stroke:none}.social-option small{font-size:9px;color:#738b99;font-weight:500}.share-link-row{display:flex;gap:8px;margin:16px 0}.share-link-row input{min-width:0;flex:1;border:1px solid #cbdde6;border-radius:9px;padding:11px;font-size:12px;background:#f7fbfc;color:#547184}.share-link-row button,.embed-options button,.native-share{border:0;border-radius:9px;background:#1e668a;color:#fff;font-size:12px;font-weight:750;padding:12px}.native-share{width:100%;background:#ebf4f8;color:#246181}.share-status{color:#287254;font-size:12px;min-height:16px;margin-bottom:0}.embed-options{margin-top:21px;padding-top:17px;border-top:1px solid #e0eaf0}.embed-options summary{font-size:13px;cursor:pointer;font-weight:750;color:#315f78}.embed-options p{font-size:12px;color:#6d8797}.embed-options textarea{display:block;width:100%;margin:12px 0;padding:12px;border:1px solid #c5dbe7;border-radius:10px;resize:vertical;background:#f7fbfd;font:11px/1.6 monospace;color:#385f77}.embed-page{margin:0;background:#174a67}.embed-page #main{width:100%;padding:0;margin:0}.embed-page .page-heading{display:none}.embed-page .game-layout{max-width:none;width:100%;margin:0}.embed-page .game-shell{border-radius:0;border:0;box-shadow:none}.embed-page .game-bottom{font-size:10px}
@media(max-width:750px){.game-top{padding:13px}.game-brand strong{display:none}.scoreboard{gap:18px;font-size:11px}.scoreboard b{font-size:14px}.toolbar{padding:9px;gap:6px}#game-shell .toolbar button{padding:9px;min-width:36px;min-height:40px;font-size:11px}#game-shell .toolbar button[data-action=new] span{display:none}#game-shell .toolbar button[data-action=share] span{display:inline}.pile-caption{font-size:8px}.game-shell{border-radius:14px}.game-bottom{font-size:11px;padding:12px}.card .card-back{border-width:2px}#game-dialog{padding:25px}#game-dialog h2{font-size:24px}#game-dialog .dialog-copy{font-size:14px}#game-dialog .dialog-actions .btn{font-size:13px;padding:12px 15px}.social-option{padding:13px 4px;font-size:10px;min-height:102px}.social-logo{width:36px;height:36px}.social-logo svg{width:23px;height:23px}.social-grid{gap:8px}}
@media(max-width:430px){#game-shell .toolbar button{padding:8px;min-width:33px;font-size:10px}#game-shell .toolbar button[data-action=hint] span{display:none}#game-shell .toolbar button[data-action=fullscreen] span,#game-shell .toolbar button[data-action=share] span{display:inline;font-size:10px}.toolbar{gap:5px}.scoreboard{gap:12px}.scoreboard b{font-size:13px}.game-shell{margin-inline:-5px}.pile-caption{font-size:7px}.share-link-row{flex-wrap:wrap}.share-link-row input{flex-basis:100%}.share-link-row button{width:100%}.social-option{font-size:9px}.social-option small{font-size:8px}#game-dialog .dialog-actions{flex-wrap:wrap}.dialog-badge{width:49px;height:49px}#game-dialog h2{font-size:23px}}
