/* /xompetitor.com/parchis/style.css | Parchís V8.14 accessible pegs and step countdown */
/* Sensei Gizmo: Good friends make every roll a winning roll. */
:root{
  --navy:#101d38;--ink:#1c314d;--gold:#ffcb70;--paper:#fff9ef;
  --red:#ef786c;--blue:#5c9ddb;--yellow:#f1c65e;--green:#60c69b;
}
*{box-sizing:border-box}
html{min-width:320px}
body{margin:0;background:#101d38;color:#fff;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.44;cursor:not-allowed}
button:focus-visible,input:focus-visible{outline:3px solid #ffdb89;outline-offset:3px}
[hidden]{display:none!important}
.app{min-height:100svh;position:relative;overflow:hidden;background:radial-gradient(ellipse 75% 60% at 90% 0%,#234367aa,transparent 80%),radial-gradient(ellipse 50% 40% at 0% 90%,#23546c88,transparent 90%),#101d38}
.ambient{position:absolute;pointer-events:none;filter:blur(80px);opacity:.1;border-radius:50%}
.a1{background:#53c6ac;width:460px;height:460px;top:25%;left:-230px}
.a2{background:#f9c767;width:450px;height:450px;right:-250px;bottom:0}
.header{position:relative;z-index:2;max-width:1380px;margin:auto;padding:25px clamp(16px,4vw,55px);display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:12px;border:0;background:none;color:#fff;padding:0;font-size:24px;line-height:1;text-align:left;font-weight:1000;letter-spacing:-1px}
.brand small{display:block;margin-top:5px;font-size:8px;color:#ffd184;letter-spacing:2.1px}
.brand-icon{background:#ffcf78;color:#243650;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;transform:rotate(-8deg);font-size:29px;box-shadow:0 8px 20px #0003}
.nav{display:flex;align-items:center;gap:9px}
.online{color:#c8d9eb;font-size:10px;letter-spacing:1.5px;font-weight:900;margin-right:11px}
.online i,.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#5de5b1;box-shadow:0 0 0 4px #5de5b121,0 0 14px #5de5b1;margin-right:8px}
.nav button{background:#ffffff10;color:#fff;border:1px solid #ffffff30;padding:10px 13px;border-radius:12px;font-size:12px;font-weight:800}
.nav button:hover{background:#ffffff20}
.landing{position:relative;z-index:1;max-width:1310px;min-height:calc(100svh - 155px);padding:42px clamp(18px,5vw,65px) 85px;margin:auto;display:grid;grid-template-columns:1fr 1.06fr;align-items:center;gap:clamp(35px,7vw,110px)}
.hero h1{font-size:clamp(51px,5.7vw,84px);letter-spacing:-3.9px;line-height:1.06;font-weight:1000;margin:20px 0}
.hero h1 em{font-style:normal;color:#ffd184}
.hero>p{font-size:16px;max-width:475px;line-height:1.7;color:#bdccde}
.eyebrow,.kicker{color:#f4c981;font-weight:900;letter-spacing:2px;font-size:10px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:25px 0 30px}
.chips span{padding:9px 12px;border-radius:25px;font-size:11px;font-weight:800;background:#ffffff10;border:1px solid #ffffff23;color:#dfebf2}
.entry-card{background:#ffffff10;border:1px solid #ffffff2c;backdrop-filter:blur(12px);padding:23px;border-radius:23px;box-shadow:0 25px 45px #0002;max-width:468px}
label{font-size:10px;font-weight:900;color:#d8e4ee;letter-spacing:1.5px;display:block;margin-bottom:9px}
input{color:#21324c;width:100%;height:49px;border:1px solid #ffffff26;background:#fffaf1;border-radius:11px;padding:0 14px;font-size:15px}
input::placeholder{color:#9ea4ac}
.primary{display:flex;width:100%;min-height:50px;align-items:center;justify-content:center;gap:11px;background:linear-gradient(#ffdc96,#ffc05d);color:#29354a;border:0;border-radius:12px;font-weight:1000;letter-spacing:.5px;font-size:13px;box-shadow:0 4px 0 #ad7939,0 10px 25px #c9872b30;margin-top:13px}
.primary:not(:disabled):hover{filter:brightness(1.07)}
.primary:not(:disabled):active{transform:translateY(3px);box-shadow:0 1px 0 #ad7939}
.divider{display:flex;align-items:center;gap:13px;color:#96a7b9;letter-spacing:1px;font-weight:900;font-size:11px;margin:22px 0}
.divider span{height:1px;background:#ffffff30;flex:1}
.join-row{display:flex;gap:10px}
.room-input{max-width:175px;font-weight:900;letter-spacing:2px;text-align:center;text-transform:uppercase}
.outline{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;color:#fff;font-weight:850;font-size:12px;background:#ffffff12;border:1px solid #ffffff42;border-radius:11px;padding:10px}
.outline:hover{background:#ffffff25}
.error{padding:11px 13px;border:1px solid #ff9c9c68;background:#b7353540;color:#ffe0e0;border-radius:12px;font-size:12px;margin-top:12px;line-height:1.45}
.hero-art{position:relative;min-width:0;display:grid;place-items:center;padding:50px 0}
.hero-art>.board-outer{width:min(95%,535px);transform:rotate(-7deg);box-shadow:0 31px 75px #0007,0 6px 0 #d4b98f;position:relative;z-index:2}
.orbit{position:absolute;width:99%;aspect-ratio:1;border:1px dashed #f6ce825a;border-radius:50%}
.art-label{position:absolute;top:1%;left:7%;color:#fbd994;font-weight:900;letter-spacing:2px;font-size:11px;transform:rotate(-8deg)}
.floating-die{position:absolute;z-index:3;font-size:75px;color:#ffe3a3;line-height:1;text-shadow:0 7px 10px #0006}
.die-1{top:0;right:-1%;transform:rotate(20deg)}
.die-2{bottom:0;left:0;transform:rotate(-20deg)}
.art-foot{position:absolute;bottom:-1%;right:0;color:#daba82;letter-spacing:1.6px;font-size:9px;font-weight:900}
/* On the landing page, the board is artwork: pegs and colors take center stage. */
.hero-art .safe-star{opacity:.42;filter:grayscale(.25)}
.hero-art .preview-stack{width:6.2%;height:6.2%}
.board-outer{width:100%;background:linear-gradient(145deg,#fff9ef,#f2e2ca);border:4px solid #e8d6b7;box-shadow:0 20px 45px #0004,inset 0 0 0 2px #fff;padding:11px 11px 9px;border-radius:23px}
.board-grid{position:relative;display:grid;grid-template-columns:repeat(8,minmax(0,1fr)) repeat(3,minmax(0,2.666667fr)) repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr)) repeat(3,minmax(0,2.666667fr)) repeat(8,minmax(0,1fr));aspect-ratio:1;overflow:hidden;border:3px solid #35475d;border-radius:9px;background:#fffef6;box-shadow:0 5px 14px #50432a29}
.sq{position:relative;min-width:0;min-height:0;border:1px solid #e4d7c4;background:#f7eddc;display:grid;place-items:center}
.sq.yard{border:0}
.yard-red{background:#ed7772}.yard-blue{background:#65a7e6}.yard-yellow{background:#f4c745}.yard-green{background:#4ac78c}
.sq.track{background:#fffef6;border:1px solid #c8c3bb}
.sq.lane-red{background:#ec5b55}.sq.lane-blue{background:#358fe0}.sq.lane-yellow{background:#f4c745}.sq.lane-green{background:#4ac78c}
.sq.start-red{background:#ec5b55}.sq.start-blue{background:#358fe0}.sq.start-yellow{background:#f4c745}.sq.start-green{background:#4ac78c}
.sq.safe{background:#bcb8c1;border-color:#9d969f}
.sq.center{background:#f9efda;border:0}
.safe-star{font-size:clamp(10px,1.4vw,19px);color:#77717e;line-height:1;text-shadow:0 1px 0 #eee8ef}
.track-number{font-family:system-ui,-apple-system,sans-serif;font-size:clamp(5px,.65vw,8px);font-weight:600;color:#969eaa;line-height:1;opacity:.6}
.sq.start .track-number{color:#fff;font-weight:700;opacity:.55}
.home-plaque{position:absolute;width:33.333333%;height:33.333333%;z-index:2;pointer-events:none;display:grid;place-items:center;border:4px solid #fff9eccc;border-radius:5px;box-shadow:inset 0 2px 12px #0002,inset 0 0 0 2px #0001}
.home-blue{--home-dark:#236aaa;top:0;left:0;background:linear-gradient(135deg,#73bcf2,#358fe0)}
.home-yellow{--home-dark:#bd8e18;top:0;right:0;background:linear-gradient(135deg,#ffe18b,#f4c745)}
.home-green{--home-dark:#21845f;bottom:0;right:0;background:linear-gradient(135deg,#9ae5bf,#4ac78c)}
.home-red{--home-dark:#b63f3d;bottom:0;left:0;background:linear-gradient(135deg,#f39a92,#ec5b55)}
.home-disc{position:absolute;width:80%;height:80%;border:5px solid #fffaf3;border-radius:50%;background:linear-gradient(145deg,#fffcf6,#f2e8d7);box-shadow:0 3px 9px #0003,inset 0 0 0 3px var(--home-dark)}
.home-hole{position:absolute;z-index:1;width:21%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;border:2px solid var(--home-dark);background:#e9dac1;box-shadow:inset 0 2px 3px #0003,0 1px 0 #fff}
.home-hole.h1{left:31.25%;top:31.25%}.home-hole.h2{left:68.75%;top:31.25%}
.home-hole.h3{left:31.25%;top:68.75%}.home-hole.h4{left:68.75%;top:68.75%}
.center-art{position:absolute;top:33.333333%;left:33.333333%;width:33.333333%;height:33.333333%;z-index:3;pointer-events:none;display:block;background:#fffdf8;border:1px solid #8b7465;box-shadow:0 0 0 1px #776c60a0}
.center-art svg{display:block;width:100%;height:100%}
.token-stack{position:absolute;left:var(--token-x);top:var(--token-y);transform:translate(-50%,-50%);width:5.8%;height:5.8%;z-index:5;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;align-content:center;pointer-events:none}
.token-stack.base-stack{width:6.6%;height:6.6%}
.token-stack.finished-stack{width:4.65%;height:4.65%;pointer-events:none}
.token-stack.finished-stack .token{width:96%;height:96%;border-color:#fff9e7;box-shadow:0 1px 4px #0008,0 0 0 1px #1b304d88}
.token{width:94%;height:94%;border:1.5px solid #fff;color:#fff;border-radius:50%;box-shadow:0 2px 0 #0005,0 3px 4px #0004;display:grid;place-items:center;font-size:clamp(11px,1.25vw,15px);font-weight:1000;line-height:1;padding:0;pointer-events:none;text-shadow:0 1px 2px #000,0 0 3px #061a2a;letter-spacing:-.4px;
  background:radial-gradient(circle at 50% 50%,#18344f 0 53%,var(--piece-color,#499bd6) 56% 76%,var(--piece-glow,#a6d9fd) 100%)}
.token-red,.mini-red{background:radial-gradient(circle at 34% 20%,#ffb3a8,#e65752 70%,#b53e44)}
.token-blue,.mini-blue{background:radial-gradient(circle at 34% 20%,#a9dafa,#428cd4 70%,#1b5d9b)}
.token-yellow,.mini-yellow{background:radial-gradient(circle at 34% 20%,#fff3ac,#edb638 70%,#b98429)}
.token-green,.mini-green{background:radial-gradient(circle at 34% 20%,#b4f6cb,#4cba87 70%,#208c65)}
.token-red{--piece-color:#e14b4b;--piece-glow:#ffb8ad}
.token-blue{--piece-color:#277fcc;--piece-glow:#addbff}
.token-yellow{--piece-color:#ecb12a;--piece-glow:#ffe19c}
.token-green{--piece-color:#2baf7a;--piece-glow:#a7eac7}
/* The color remains unmistakable on the rim, but the number sits on navy. */
.token-stack .token{background:radial-gradient(circle at 50% 50%,#18344f 0 53%,var(--piece-color,#499bd6) 56% 76%,var(--piece-glow,#a6d9fd) 100%)}
.token-stack .token.in-base{background:radial-gradient(circle at 27% 20%,var(--piece-glow,#a6d9fd),var(--piece-color,#499bd6) 67%,#1b3d57 100%);font-size:clamp(16px,2vw,19px);color:#102d49;text-shadow:0 1px 0 #ffffffa6;-webkit-text-stroke:.3px #102d49}
.token.choose{pointer-events:auto;cursor:pointer;animation:glow .9s infinite alternate;box-shadow:0 0 0 3px #fff,0 0 14px #ffe775,0 3px 4px #0004;opacity:1;touch-action:manipulation}
.token.in-base.choose{position:relative}
.token.in-base.choose::after{content:"";position:absolute;inset:-7px;border-radius:50%}
.token-stack.n2 .token{width:60%;height:60%;margin:-6%}
.token-stack.n3,.token-stack.n4{width:10.4%;height:10.4%;gap:0}
.token-stack.n3 .token,.token-stack.n4 .token{width:50%;height:50%;margin:0;font-size:clamp(9px,1.05vw,13px)}
.token-stack.n5 .token{width:34%;height:34%;margin:0}
.board-stamp{text-align:center;padding:9px 0 0;color:#866e50;font-weight:1000;letter-spacing:1.5px;font-size:9px}
.board-stamp span{color:#d39e56}
@keyframes glow{to{filter:brightness(1.35)}}
.dice-dock{margin:14px auto 12px;max-width:650px;background:linear-gradient(145deg,#2d4d71,#1d334f);border:1px solid #809bb26b;border-radius:20px;padding:15px 17px 17px;box-shadow:0 14px 30px #0004}
.dice-dock-tag{font-size:10px;letter-spacing:1.8px;color:#ffd18b;font-weight:1000;margin-bottom:11px}
.dice-dock-main{display:flex;align-items:center;gap:18px}
.die-button{flex:none;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:4px;width:86px;height:86px;border:2px solid #fff;border-radius:17px;padding:15px;background:linear-gradient(145deg,#fffefa,#e8e7e0);box-shadow:0 7px 0 #abb6bd,0 12px 20px #0005;transform:rotate(-5deg);transition:transform .16s ease,filter .16s ease}
.die-button:disabled{opacity:1;cursor:default}
.die-button.ready{cursor:pointer;animation:dieGlow 1.2s ease-in-out infinite alternate}
.die-button.ready:active{transform:rotate(5deg) translateY(5px);box-shadow:0 3px 0 #abb6bd}
.pip{width:100%;height:100%;background:#274361;border-radius:50%;box-shadow:inset 0 1px 2px #0005}
.pip.p1{grid-area:1/1}.pip.p2{grid-area:1/2}.pip.p3{grid-area:1/3}.pip.p4{grid-area:2/1}.pip.p5{grid-area:2/2}.pip.p6{grid-area:2/3}.pip.p7{grid-area:3/1}.pip.p8{grid-area:3/2}.pip.p9{grid-area:3/3}
.dice-dock-copy{min-width:0;flex:1}.dice-dock-copy strong{font-size:clamp(13px,2vw,17px);color:#fff7e8;font-weight:1000;letter-spacing:.3px}
.dice-dock-copy p{margin:4px 0 8px;color:#bcd0e4;font-size:12px;line-height:1.4}
.roll-cta{background:linear-gradient(#ffdb95,#ffbe56);color:#20374f;border:0;border-radius:10px;padding:10px 15px;font-weight:1000;font-size:12px;box-shadow:0 3px 0 #ac792e;margin-top:1px}
.roll-cta:active{transform:translateY(3px);box-shadow:none}
.dice-status{font-weight:900;letter-spacing:1.1px;font-size:9px;color:#ffd492}
@keyframes dieGlow{from{filter:brightness(1)}to{filter:brightness(1.12);box-shadow:0 7px 0 #abb6bd,0 0 22px #ffd48299}}
.game-layout{position:relative;z-index:1;max-width:1240px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(315px,.75fr);gap:30px;margin:auto;padding:12px clamp(16px,4vw,48px) 75px}
.board-col{min-width:0}
.board-col .board-outer{max-width:650px;margin:0 auto}
.board-col>.panel{max-width:650px;margin:12px auto}
.board-top{max-width:650px;display:flex;justify-content:space-between;align-items:center;margin:0 auto 15px;font-size:11px;color:#b9d5e1;font-weight:900;letter-spacing:1px}
.board-top button{background:none;border:0;color:#dce3ed;font-weight:800;font-size:13px}
.board-note{color:#aabfd1;text-align:center;font-size:11px;line-height:1.5;margin:13px auto;max-width:650px}
.sidebar{min-width:0;display:flex;flex-direction:column;gap:14px;padding-top:29px}
.room-card{background:linear-gradient(120deg,#29486a,#223752);padding:19px 20px;border-radius:21px;border:1px solid #6e86a050;text-align:center;box-shadow:0 12px 30px #0003}
.room-card small{display:block;color:#ffd590;font-size:10px;font-weight:1000;letter-spacing:2.5px}
.room-card strong{display:block;margin:7px auto 13px;font-size:clamp(30px,3vw,42px);font-weight:1000;letter-spacing:5px}
.room-card button{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff9ed;border:0;width:100%;padding:12px 13px;color:#24364f;border-radius:10px;font-size:12px;font-weight:900}
.room-card p{font-size:11px;color:#c0d3df;margin:11px 0 0}
.panel{background:linear-gradient(145deg,#ffffff15,#ffffff08);border:1px solid #ffffff29;border-radius:20px;padding:21px;box-shadow:0 11px 30px #0002}
.panel h2{font-size:24px;letter-spacing:-.8px;line-height:1.15;margin:10px 0}
.muted{color:#b8c7d8;font-size:13px;line-height:1.58;margin:7px 0 16px}
.join-seat{margin-top:17px}
.wait-note{display:flex;align-items:center;gap:9px;border-radius:10px;background:#bfa35d21;color:#f0d5a0;padding:13px;font-weight:800;font-size:12px}
.turn-head{display:flex;align-items:center;gap:11px;margin:15px 0}
.turn-head h2{margin:0;font-size:21px}
.turn-head p{color:#aebed0;font-size:12px;margin:5px 0 0}
.turn-dot{width:29px;height:29px;flex:none;border-radius:50%;border:4px solid #ffffffa0;box-shadow:0 2px 5px #0004}
.dot-red{background:var(--red)}.dot-blue{background:var(--blue)}.dot-yellow{background:var(--yellow)}.dot-green{background:var(--green)}
.move-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:15px}
.move-options button{display:flex;align-items:center;justify-content:center;gap:8px;background:#ffffff17;color:#fff;border:1px solid #ffffff38;border-radius:11px;padding:12px 8px;font-size:12px;font-weight:900}
.move-options button:hover{background:#ffffff28}
.mini{width:23px;height:23px;border-radius:50%;border:2px solid #fff}
.players-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.players-head h3{margin:0;font-size:17px}
.players-head span{color:#a4b9d0;font-size:11px}
.player{display:flex;align-items:center;gap:10px;padding:9px 7px;border-radius:12px}
.player.active{background:#ffffff17}
.avatar{width:36px;height:36px;flex:none;border:2px solid #ffffff92;border-radius:12px;display:grid;place-items:center;color:#fff;font-weight:950}
.avatar-red{background:#df6d64}.avatar-blue{background:#5095d7}.avatar-yellow{background:#e9b647}.avatar-green{background:#4cb58c}
.player-data{flex:1;min-width:0}
.player-data strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.player-data small{color:#aabed2;font-size:9px;font-weight:900;letter-spacing:.7px}
.piece-count{color:#c0cadd;font-size:11px;font-weight:900}
.feed{padding:14px 16px;border-left:3px solid #edc481;background:#ffffff12;border-radius:0 12px 12px 0}
.feed small{color:#fbd69a;letter-spacing:1.6px;font-size:10px;font-weight:900}
.feed p{color:#dce6ee;font-size:13px;line-height:1.5;margin:7px 0 0}
.winner{text-align:center}
.trophy{font-size:50px}
.winner h2{font-size:30px}
.footer{position:relative;z-index:1;max-width:1370px;margin:auto;padding:19px clamp(18px,4vw,55px) 29px;display:flex;align-items:center;justify-content:space-between;gap:9px;border-top:1px solid #ffffff16;color:#899eb6;font-size:9px;font-weight:900;letter-spacing:2px}
.footer span:first-child{color:#d3ba84}
.modal{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:20px;background:#081323dc;backdrop-filter:blur(9px)}
.dialog{background:#203752;color:#fff;border:1px solid #ffffff45;box-shadow:0 23px 75px #0007;border-radius:24px;width:min(100%,465px);max-height:90svh;overflow:auto;padding:27px}
.dialog h2{font-size:26px;margin:9px 0 20px}
.dialog ol{padding:0;list-style:none;display:grid;gap:13px}
.dialog li{display:flex;align-items:flex-start;gap:13px;font-size:13px;line-height:1.55;color:#dae6ee}
.dialog li b{display:grid;place-items:center;width:25px;height:25px;border:1px solid #fbd08388;border-radius:8px;color:#ffd689;flex:none}
.toast{position:fixed;z-index:30;left:50%;bottom:23px;transform:translateX(-50%);white-space:nowrap;background:#fff7e8;color:#203650;border-radius:14px;padding:13px 19px;box-shadow:0 16px 40px #0007;font-weight:900;font-size:12px}
@media(max-width:970px){.landing{grid-template-columns:1fr;gap:15px;max-width:720px;padding-top:22px}.hero-art{max-width:540px;margin:auto;width:100%}.game-layout{grid-template-columns:1fr;max-width:730px;gap:0}.sidebar{padding-top:10px}}
@media(max-width:580px){
  .header{padding:18px 15px}.brand{font-size:21px}.brand-icon{width:37px;height:37px;font-size:25px}.online{display:none}.nav button{font-size:11px;padding:9px}
  .landing{padding:28px 17px 65px}.hero h1{font-size:clamp(43px,11vw,63px);letter-spacing:-2.4px}.hero>p{font-size:14px}.chips{gap:6px}.chips span{font-size:10px;padding:8px 9px}
  .entry-card{padding:17px}.hero-art{padding:35px 5px 45px}.hero-art>.board-outer{width:90%}.floating-die{font-size:50px}.art-foot{font-size:8px}
  .game-layout{padding:8px 9px 50px}.board-outer{border-width:3px;border-radius:15px;padding:7px 7px 6px}.board-grid{border-width:2px;border-radius:6px}.board-stamp{font-size:7px;padding-top:7px}.safe-star{font-size:10px}.track-number{font-size:5px}.token{font-size:clamp(10px,2.9vw,13px);border-width:1.5px}
  .home-plaque{border-width:2px}.home-disc{border-width:3px}.home-hole{border-width:1.5px}.center-art{border-width:1px}
  .dice-dock{padding:13px 14px 15px;border-radius:16px;margin-top:12px}.dice-dock-main{gap:15px}.die-button{width:77px;height:77px;padding:13px;border-radius:14px;gap:3px}.dice-dock-copy strong{font-size:13px}.dice-dock-copy p{font-size:11px}
  .sidebar{gap:12px}.room-card{padding:15px}.room-card strong{font-size:35px}.panel{padding:18px}.footer{font-size:8px;padding:19px 16px 25px}
}
@media(prefers-reduced-motion:reduce){.token.choose,.die-button.ready{animation:none}}

/* /xompetitor.com/parchis/style.css — V8 preserves two dice, chat, rule modes and medals */
/* Sensei Gizmo: Good friends make every roll a winning roll. */
.mode-picker{display:flex;flex-direction:column;gap:9px;margin-bottom:20px;padding:12px;background:#152a44;border-radius:13px;border:1px solid #8eb8cd45;color:#f4f7ff}
.mode-picker strong{font-size:11px;color:#ffd68a;letter-spacing:1px}
.mode-picker label{font-size:12px;line-height:1.4;display:flex;align-items:center;gap:8px;text-transform:none;letter-spacing:0;font-weight:650}
.mode-picker input{accent-color:#ffd17b;min-width:17px;min-height:17px}
.dice-pair{display:flex;gap:13px;flex:none;align-items:center;justify-content:center}
.dice-pair .die-button{width:76px;height:76px;padding:12px;transform:rotate(-6deg);pointer-events:none}
.dice-pair .die-button:nth-child(2){transform:rotate(7deg)}
.die-button.rolling{animation:rollingDice .42s ease-in-out infinite alternate}
.die-button.rolling:nth-child(2){animation-direction:alternate-reverse}
@keyframes rollingDice{0%{transform:rotate(-22deg) translateY(-6px) scale(.94)}50%{transform:rotate(12deg) translateY(5px) scale(1.04)}100%{transform:rotate(24deg) translateY(-3px) scale(.96)}}
/* A striped bridge sits behind the two pegs; the old emoji covered them. */
.roadblock{position:absolute;transform:translate(-50%,85%);z-index:4;width:clamp(20px,3.5vw,27px);height:8px;
  border:1px solid #fff8c7;border-radius:3px;pointer-events:none;
  background:repeating-linear-gradient(135deg,#f5bd4f 0 5px,#203b56 5px 10px);
  box-shadow:0 1px 4px #07172e9c}
.token-stack{z-index:6}
.token-stack.n2{width:11.2%;height:6%;flex-wrap:nowrap;gap:1px}
.token-stack.n2 .token{width:50%;height:96%;margin:0;font-size:clamp(10px,1.1vw,14px);flex:1}
.token-stack .token{box-shadow:0 0 0 1.5px #193652,0 2px 7px #071e38a8}
.token-stack .token.selected{z-index:3;outline:3px solid #ffdc7c;outline-offset:1px;
  box-shadow:0 0 0 3px #fff9e4,0 0 14px 5px #f9c66688}
.sq.track .track-number{color:#82909e;font-weight:600}
.sq.safe .safe-star{color:#555a6b;text-shadow:0 1px 0 #fff}
.move-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(124px,1fr));gap:8px}
.move-options button{min-height:47px;text-align:left;border-radius:12px;border:1px solid #78b3ea66;background:#263f61;color:#fff;font-weight:850;padding:10px;line-height:1.4;font-size:11px;transition:background .12s}
.move-options button:hover,.move-options button.target-move{background:#365c87;outline:2px solid #ffcb70}
.release-help{display:grid;gap:10px;margin-top:13px;padding:13px;border:1px solid #9ac9ee60;
  border-radius:14px;background:#1a3957;color:#dfeffb}
.release-help p{margin:0;color:#dceaf7;font-size:12px;line-height:1.5}
.release-help button{min-height:45px;border:1px solid #ffd68b;border-radius:10px;
  background:linear-gradient(#ffdd9c,#f6bf59);color:#1e3851;font-weight:1000;font-size:12px}
.release-help button:disabled{opacity:.65}
.moving-token{position:absolute!important;z-index:40;transform:translate(-50%,-50%);width:5%;height:5%;pointer-events:none;transition:left .08s linear,top .08s linear;display:flex;justify-content:center;align-items:center}
.chat-panel{overflow:hidden}
.chat-toggle{border:0;background:none;color:#ffd591;font-weight:950;letter-spacing:.5px;width:100%;text-align:left;padding:2px 0 10px}
.chat-messages{display:flex;flex-direction:column;gap:9px;max-height:226px;min-height:76px;overflow-y:auto;overscroll-behavior:contain;padding:7px 2px}
.chat-bubble{background:#1a314e;border:1px solid #a3d1ed2c;padding:9px 11px;border-radius:12px;display:flex;flex-direction:column;gap:3px;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.chat-name{font-size:10px;letter-spacing:.4px;text-transform:uppercase}
.chat-red{color:#ff9791}.chat-blue{color:#99cfff}.chat-yellow{color:#ffda7b}.chat-green{color:#92edbc}
.chat-empty{font-size:12px;color:#a9c3db;text-align:center;padding:22px 8px}
.chat-compose{display:flex;gap:8px;margin-top:12px}
.chat-compose input{width:100%;min-width:0;background:#172b45;border:1px solid #7898b755;border-radius:12px;padding:12px;color:#fff;font-size:13px}
.chat-compose button{border:0;border-radius:11px;padding:0 16px;background:#f3c978;color:#19324a;font-weight:900}
.podium{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;width:100%;margin:16px 0}
.podium-place{border:1px solid #ffd48e5e;background:#2e4565;border-radius:15px;padding:14px 8px;display:flex;flex-direction:column;align-items:center;gap:5px;word-break:break-word}
.podium-place strong{font-size:30px}.podium-place span{font-size:12px;font-weight:950}.podium-place small{color:#ffce76;font-weight:950}
@media(max-width:730px){
  .header{gap:5px}.nav{gap:4px}.nav button{padding:7px 8px;font-size:10px}.online{display:none}
  .dice-dock-main{gap:12px;align-items:center}
  .dice-pair{gap:8px}.dice-pair .die-button{width:59px;height:59px;gap:2px;padding:9px;border-radius:12px;box-shadow:0 4px 0 #a6b3c1,0 8px 16px #0005}
  .dice-dock-copy strong{font-size:12px}.dice-dock-copy p{font-size:10px;margin:4px 0}
  .roll-cta{padding:9px 10px;font-size:11px}
  .roadblock{font-size:11px}
}
@media(max-width:370px){.dice-pair .die-button{width:48px;height:48px;padding:7px}.dice-pair{gap:6px}.nav button{padding:6px 7px}}
@media(prefers-reduced-motion:reduce){.die-button.rolling,.moving-token{animation:none!important;transition:none!important}}

.dice-pair{background:none;border:0;padding:0;cursor:pointer}
.dice-pair:disabled{opacity:1;cursor:default}
.dice-pair:focus-visible{outline:3px solid #ffcb70;outline-offset:5px;border-radius:9px}

/* Playable board: normal size, or user-controlled pan/zoom on small screens. */
.board-view{width:100%;max-width:650px;margin:0 auto}
.board-view.zoomed{max-height:min(72svh,690px);overflow:auto;border:2px solid #77b1d990;
  border-radius:17px;padding:7px;background:#102844;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
.board-view.zoomed .board-outer{min-width:620px;max-width:none;margin:0}
.board-tools{display:flex;align-items:center;justify-content:flex-end;gap:14px}
.board-tools button{padding:8px 10px;border:1px solid #90b5d36e;border-radius:10px;
  background:#2b4a68;color:#f7e5c2;font-size:11px;letter-spacing:0;font-weight:900}
.board-tools>span{white-space:nowrap}

/* Tap a highlighted peg, then choose the actual die and number of squares. */
.die-choice-panel{max-width:650px;margin:12px auto 16px;padding:14px;border:1px solid #f6cf8485;
  border-radius:18px;background:linear-gradient(140deg,#233e5d,#132b46);color:#fff;
  box-shadow:0 12px 27px #07152849}
.die-choice-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.die-choice-heading .mini{flex:none;width:30px;height:30px;border:3px solid #fff}
.die-choice-heading>div{flex:1;min-width:0}
.die-choice-heading small{display:block;color:#ffdb92;font-size:9px;font-weight:900;letter-spacing:1px}
.die-choice-heading strong{display:block;font-size:13px;margin-top:3px}
.die-choice-heading>button{flex:none;width:34px;height:34px;border-radius:9px;border:1px solid #adc6dc66;
  background:#ffffff18;color:#fff;font-size:23px}
.die-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.die-choice{min-width:0;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px;
  border:1px solid #b1dcff75;border-radius:13px;background:#355779;color:#fff;min-height:68px}
.die-choice:not(:disabled):active{background:#416992;transform:scale(.98)}
.die-choice:disabled{opacity:.66;cursor:not-allowed}
.die-choice .die-button{width:45px;height:45px;border-radius:9px;padding:8px;gap:2px;flex:none;
  box-shadow:0 3px 0 #9caab6,0 5px 10px #0004;transform:rotate(-5deg)}
.die-choice>span:last-child{display:flex;flex-direction:column;gap:3px;text-align:left;min-width:0}
.die-choice>span:last-child strong{font-size:12px;line-height:1.15}
.die-choice>span:last-child small{font-size:9px;color:#cfe0ed;line-height:1.1}
.die-choice.special-choice{grid-column:1/-1;background:#f6d28c;color:#243950;min-height:52px;font-size:13px}
.die-choice-panel>p{font-size:11px;color:#c8d9e9;line-height:1.4;margin:11px 1px 0}

/* V8.5: Choose the rolled die right at the selected peg, without scrolling. */
.peg-menu{position:absolute;z-index:35;pointer-events:auto;left:clamp(27%,var(--peg-x),73%);top:var(--peg-y);
  transform:translate(-50%,calc(-100% - 23px));width:max-content;min-width:148px;max-width:73%;
  padding:8px;border:2px solid #ffe09a;border-radius:14px;
  background:linear-gradient(150deg,#1c4164f5,#132e4cf7);color:#fff;
  box-shadow:0 9px 22px #091d32b5,0 0 0 2px #fff6}
.peg-menu.below{transform:translate(-50%,23px)}
.peg-menu::after{content:"";position:absolute;bottom:-10px;left:calc(50% - 8px);
  width:14px;height:14px;transform:rotate(45deg);background:#153450;border-right:2px solid #ffe09a;border-bottom:2px solid #ffe09a}
.peg-menu.below::after{top:-10px;bottom:auto;transform:rotate(225deg)}
.peg-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:7px;
  padding:0 1px 7px;font-size:10px;font-weight:950;white-space:nowrap;letter-spacing:.15px}
.peg-menu-heading button{width:25px;height:24px;flex:none;border:1px solid #a8c5df80;
  border-radius:7px;background:#ffffff17;color:#fff;font-size:16px;line-height:1}
.peg-menu-choices{display:flex;justify-content:center;flex-wrap:wrap;gap:6px}
.peg-menu-choice{min-width:48px;min-height:47px;flex:1;display:flex;flex-direction:column;
  justify-content:center;align-items:center;gap:2px;padding:5px 7px;border:1px solid #ffe2a2;
  border-radius:10px;background:linear-gradient(#ffe19b,#ffc867);color:#1a3752;
  box-shadow:0 3px 0 #9d662c;font-weight:1000;line-height:1;touch-action:manipulation}
.peg-menu-choice strong{font-size:17px}
.peg-menu-choice small{font-size:8px;color:#2e4d65;font-weight:900;white-space:nowrap}
.peg-menu-choice:active{transform:translateY(2px);box-shadow:0 1px 0 #9d662c}
.peg-menu-choice:disabled{opacity:.6}

/* V8 · XOMPANION-inspired glass surfaces, accessibility and mobile safe areas. */
.header{padding-top:max(20px,calc(18px + env(safe-area-inset-top, 0px)))}
.footer{padding-bottom:max(25px,calc(18px + env(safe-area-inset-bottom, 0px)))}
.entry-card,.panel,.room-card,.dice-dock,.nav button,.timer-settings{
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
}
.entry-card,.panel{box-shadow:inset 0 1px #ffffff2a,0 15px 40px #07122530}
.nav button,.outline{transition:background .18s ease,transform .12s ease}
.nav button:active,.outline:active{transform:scale(.96)}
.mode-picker input[type=radio]{width:17px;height:17px;flex:none;margin:0}
.mode-picker label{color:#e4ecf5}
.clock-strip{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin:8px auto 14px;max-width:650px}
.clock-strip>div{min-width:120px;display:flex;gap:10px;align-items:center;justify-content:center;padding:11px 17px;
  border:1px solid #d7ecff47;border-radius:15px;background:linear-gradient(140deg,#ffffff1e,#ffffff08);
  color:#dbeffd;font-weight:850;font-size:12px;text-align:center}
.clock-strip strong{font-variant-numeric:tabular-nums;color:#ffdb91;font-size:18px;letter-spacing:1px}
.clock-strip strong.clock-urgent{color:#ff8585;animation:clockWarn .65s alternate infinite}
@keyframes clockWarn{to{opacity:.45}}
.timer-settings{padding:15px;border-radius:16px;background:#102844a8;border:1px solid #7ba7d346;margin:14px 0;color:#fff}
.timer-settings>strong{display:block;color:#ffe0a4;letter-spacing:.8px;font-size:11px}
.timer-settings>p{font-size:11px;color:#b7d2ea;margin:8px 0 12px}
.timer-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}
.timer-field{display:flex;flex-direction:column;gap:7px;color:#d5e7fc;letter-spacing:.5px;font-size:10px;margin:0}
.timer-field select{width:100%;max-width:100%;min-height:44px;border-radius:10px;border:1px solid #bbd0e35e;background:#e8f3ff;
  color:#193852;font:inherit;font-size:13px;letter-spacing:0;padding:9px 12px}
.timer-field select:disabled{opacity:.7}
.match-actions{padding:15px;display:grid;gap:10px}
.match-actions button{min-height:44px;font-size:12px;font-weight:900;border-radius:11px;padding:11px 14px}
.match-actions .quiet-action{color:#d5e5f5;border:1px solid #bed4e546;background:#ffffff0c}
.match-actions .danger{color:#ffc6c6;border:1px solid #ff929282;background:#b53b3b32}
.match-actions .danger:hover{background:#b53b3b65}
.captured-token{position:absolute!important;z-index:44;width:5%;height:5%;pointer-events:none;
  transform:translate(-50%,-50%) rotate(0) scale(1.15);
  transition:left .68s cubic-bezier(.2,.75,.26,1),top .68s cubic-bezier(.2,.75,.26,1),transform .68s ease}
.capture-burst,.block-burst{position:absolute;z-index:45;transform:translate(-50%,-50%);pointer-events:none;
  white-space:nowrap;font-size:clamp(13px,3vw,23px);font-weight:1000;color:#fff4b9;text-shadow:0 2px 6px #172334}
.capture-burst{animation:captureBoom .95s ease-out both}
.block-burst{animation:dropBlock 1.06s cubic-bezier(.24,.7,.5,1) both;filter:drop-shadow(0 4px 4px #1116)}
@keyframes captureBoom{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}22%{opacity:1;transform:translate(-50%,-115%) scale(1.3)}100%{opacity:0;transform:translate(-50%,-210%) scale(.9)}}
@keyframes dropBlock{0%{opacity:0;transform:translate(-50%,-430%) rotate(-22deg) scale(1.6)}35%{opacity:1;transform:translate(-50%,-104%) rotate(12deg)}58%{transform:translate(-50%,-150%) rotate(-8deg)}100%{opacity:0;transform:translate(-50%,-105%)}}
.footer a{color:#9fdffd;text-decoration:none;font-weight:950;letter-spacing:1.1px}
.footer a:hover{text-decoration:underline}

/* Follow the device's appearance unless the player explicitly overrides it. */
html[data-theme="light"] body{background:#e3f1fd;color:#142a46}
html[data-theme="light"] .app{background:radial-gradient(ellipse 75% 50% at 5% 0%,#a8d8f4c7,transparent 75%),
  radial-gradient(ellipse 65% 70% at 95% 100%,#bbddffc4,transparent 80%),#e7f1fa}
html[data-theme="light"] .brand,html[data-theme="light"] .nav button{color:#1a3953}
html[data-theme="light"] .brand small{color:#5d718b}
html[data-theme="light"] .online,html[data-theme="light"] .eyebrow{color:#255f8a}
html[data-theme="light"] .hero h1,html[data-theme="light"] .panel h2,
html[data-theme="light"] .players-head h3,html[data-theme="light"] .player-data strong{color:#152d49}
html[data-theme="light"] .hero h1 em{color:#257fbb}
html[data-theme="light"] .hero>p,html[data-theme="light"] .muted,
html[data-theme="light"] .turn-head p,html[data-theme="light"] .board-note,
html[data-theme="light"] .player-data small,html[data-theme="light"] .piece-count{color:#4b637a}
/* Light glass needs dark ink: pale labels and disabled buttons disappeared. */
html[data-theme="light"] .landing .entry-card{background:#fffffff0;border-color:#a2c0d5}
/* Keep the rules box LIGHT when its letters are DARK. Both radio options
   remain fully legible instead of disappearing against the navy panel. */
html[data-theme="light"] .mode-picker{
  background:#e6f0f8;
  border:1px solid #a3bfd2;
  color:#1d3851;
  box-shadow:inset 0 1px 0 #fff,0 2px 9px #315a7b0c;
}
html[data-theme="light"] .entry-card label,
html[data-theme="light"] .mode-picker label{color:#263f58}
html[data-theme="light"] .mode-picker strong{color:#805512}
html[data-theme="light"] .divider{color:#405b72}
html[data-theme="light"] .divider span{background:#acc1d1}
html[data-theme="light"] input::placeholder{color:#52677c;opacity:1}
html[data-theme="light"] .primary:disabled{opacity:.77;color:#28374a}
html[data-theme="light"] .outline:disabled{opacity:1;background:#e6f0f8;color:#405f79;border-color:#a4c1d4}
html[data-theme="light"] .art-label{color:#82551a;text-shadow:0 1px 0 #fff7}
html[data-theme="light"] .art-foot{color:#75541d}
html[data-theme="light"] .release-help{background:#e9f3fb;color:#223f58;border-color:#9bbdd6}
html[data-theme="light"] .release-help p{color:#274962}
html[data-theme="light"] .entry-card,html[data-theme="light"] .panel,
html[data-theme="light"] .nav button,html[data-theme="light"] .clock-strip>div,
html[data-theme="light"] .chips span{background:#ffffffb8;border-color:#6b97b444;color:#243d57}
html[data-theme="light"] .entry-card>label,html[data-theme="light"] .clock-strip>div{color:#204261}
html[data-theme="light"] .panel .kicker{color:#2c6c96}
html[data-theme="light"] .turn-dot{border-color:#dce8f2}
html[data-theme="light"] .board-top button{color:#315a7e}
html[data-theme="light"] .board-top{color:#315a7e}
html[data-theme="light"] .clock-strip strong{color:#a46a0f}
html[data-theme="light"] .footer{color:#5c7190;border-color:#7b9bb130}
html[data-theme="light"] .footer a{color:#1d699a}
html[data-theme="light"] .match-actions .quiet-action{background:#e5eff9;color:#274562;border-color:#a9bfd0}
html[data-theme="light"] .chat-toggle{color:#245779}
html[data-theme="light"] .chat-bubble{color:#e6f0ff}
html[data-theme="light"] .chat-empty{color:#476984}
html[data-theme="light"] .player.active{background:#bcdafa66}
/* V8.2.1: Keep information and danger actions legible on light glass.
   Sensei Gizmo: A clear view makes every move a little easier. */
html[data-theme="light"] .feed{background:#ffffffa8;border-color:#c08a36}
html[data-theme="light"] .feed small{color:#835612}
html[data-theme="light"] .feed p{color:#27435e}
html[data-theme="light"] .match-actions .danger{
  background:#ffe2e2;color:#8e2630;border:1px solid #da8388
}
html[data-theme="light"] .match-actions .danger:not(:disabled):hover{background:#ffd0d0}
html[data-theme="light"] .outline{
  color:#234b6a;background:#edf6fd;border-color:#91b5d2
}
html[data-theme="light"] .outline:not(:disabled):hover{background:#dceffa}
html[data-theme="light"] .footer span:first-child{color:#866019}
html[data-theme="light"] .error{color:#842b35;background:#fff0ee;border-color:#db8b90}
html[data-theme="light"] .wait-note{background:#fff2cd;color:#765319}
html[data-theme="light"] .board-tools button{background:#d8e9f5;color:#214767;border-color:#9cb6c8}
html[data-theme="light"] .board-view.zoomed{background:#e5f2fa}
html[data-theme="light"] .die-choice-panel{background:#ffffffde;color:#203954;border-color:#d8aa55}
html[data-theme="light"] .die-choice-heading small{color:#926224}
html[data-theme="light"] .die-choice-heading>button{color:#27425b;background:#ebf4fa;border-color:#9db9cf}
html[data-theme="light"] .die-choice{background:#e6f2fc;color:#1e415d;border-color:#88b0d0}
html[data-theme="light"] .die-choice:disabled{opacity:.6}
html[data-theme="light"] .die-choice>span:last-child small{color:#48637b}
html[data-theme="light"] .die-choice.special-choice{background:#ffdfa0;color:#31445b}
html[data-theme="light"] .die-choice-panel>p{color:#435d75}
@media(max-width:580px){
  .board-view:not(.zoomed) .board-outer{width:calc(100% - 10px);margin-inline:auto;padding:4px 4px 5px}
  .sq.track .track-number{font-size:clamp(4.5px,1.1vw,5.7px);opacity:.55}
  .board-tools>span{display:none}
  .board-tools button{font-size:10px;padding:8px}
  .die-choice-panel{padding:12px}
  .die-choice{gap:7px;padding:8px}
  .die-choice .die-button{width:39px;height:39px;padding:7px}
  .die-choice>span:last-child strong{font-size:11px}
}
@media(max-width:530px){
  .header{gap:6px;padding-left:11px;padding-right:11px}
  .brand{font-size:17px;gap:6px}.brand-icon{width:33px;height:33px;font-size:22px}
  .brand small{font-size:7px;letter-spacing:1px}
  .nav{gap:4px}.nav button{min-width:35px;min-height:36px;padding:7px!important;font-size:11px!important}
  .timer-fields{grid-template-columns:1fr}
  .clock-strip{gap:6px}.clock-strip>div{flex:1;min-width:115px;padding:8px 10px}
}
@media(prefers-reduced-motion:reduce){.captured-token{transition:none}.capture-burst,.block-burst,.clock-urgent{animation:none!important}}
.landing-extras{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:13px 0;max-width:468px}
.landing-extras small{font-size:10px;color:#a9c7dd;line-height:1.3}
.install-link{border:1px solid #9ac4ec69;border-radius:13px;background:#35658a39;color:#e2f5ff;padding:12px 13px;font-weight:850;font-size:12px;flex:none}
.language-panel{max-width:468px;margin-top:16px;padding:16px;border-radius:16px;border:1px solid #96c9ed47;background:#0f2a49aa;color:#d9e9f6}
.language-panel summary{cursor:pointer;font-size:12px;font-weight:950}
.language-panel>strong{display:block;margin-top:15px;font-size:11px;letter-spacing:.6px;color:#ffdd9a}
.language-panel>p{font-size:12px;color:#b1c8d9}
.language-request{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:14px 0}
.language-request input{min-width:0;height:41px;font-size:12px}
.language-request button,.language-vote button{border:1px solid #f5d08a55;border-radius:10px;background:#f8d58e;color:#26435b;font-weight:900;font-size:11px;padding:10px}
.language-vote{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 2px;border-bottom:1px solid #ffffff18;font-size:12px}
.language-vote small{color:#fbd38a}
html[data-theme="light"] .install-link{color:#194766;background:#dcefff}
html[data-theme="light"] .landing-extras small{color:#526e84}
html[data-theme="light"] .language-panel{background:#ffffffc5;color:#1f415e}
html[data-theme="light"] .language-panel>strong{color:#1b5a84}

/* V8.8: Game pieces must dominate printed track numbers, in BOTH appearances. */
.board-grid .token:disabled{opacity:1;filter:none;cursor:default}
.token-stack{width:7.1%;height:7.1%;z-index:8}
.token-stack.base-stack{width:8%;height:8%}
.token-stack.n2{width:13.4%;height:7.1%;gap:2px}
.token-stack.n2 .token{font-size:clamp(11px,1.75vw,16px);height:96%}
.token-stack.n3,.token-stack.n4{width:12%;height:12%}
.token-stack .token{
  color:#fff;
  font-size:clamp(13px,2.65vw,19px);
  font-weight:1000;
  -webkit-text-stroke:.3px #fff;
  text-shadow:0 2px 2px #00142b,0 0 4px #00142b;
  border:2px solid #fff5d6;
  box-shadow:0 0 0 2px #132940,0 3px 7px #061629bf;
  background:radial-gradient(circle at 48% 48%,#11283d 0 51%,var(--piece-color,#499bd6) 54% 77%,var(--piece-glow,#a6d9fd) 100%);
}
.token-stack .token.in-base{
  color:#fff;
  font-size:clamp(16px,3.4vw,25px);
  text-shadow:0 1px 3px #07182d,0 0 4px #061629;
  -webkit-text-stroke:.45px #fff;
  border-color:#fff7dc;
}
.token.choose{
  box-shadow:0 0 0 3px #fffef2,0 0 0 5px #d89824,0 0 17px 4px #ffe484,0 3px 6px #061629;
  animation:glow .9s infinite alternate;
}
.token-stack .token.selected{
  outline:3px solid #ffc649;
  outline-offset:3px;
  box-shadow:0 0 0 4px #fff,0 0 20px 5px #ffc649;
}
.hero-art .preview-stack{width:7.3%;height:7.3%}
.sq.track .track-number{color:#56616a;opacity:.37;font-weight:600;font-size:clamp(4px,.56vw,7px)}
.sq.start .track-number{color:#fff;opacity:.30}
.roadblock{z-index:5;transform:translate(-50%,138%);width:clamp(17px,3.15vw,25px);height:6px}
.moving-token,.captured-token{
  width:7.1%!important;height:7.1%!important;
  background:radial-gradient(circle at 48% 48%,#11283d 0 51%,var(--piece-color,#499bd6) 54% 77%,var(--piece-glow,#a6d9fd) 100%);
  color:white;border:2px solid #fff5d6;font-size:clamp(13px,2.65vw,19px);
  text-shadow:0 2px 2px #00142b;
  box-shadow:0 0 0 2px #132940,0 3px 7px #061629bf;
}
.moving-token{transition:left .095s linear,top .095s linear}
.bonus-dock{
  display:inline-flex;margin-top:7px;padding:6px 10px;border-radius:9px;
  background:#ffe3a4;color:#1c3954;border:1px solid #fff5d4;
  font-size:11px;font-weight:1000;letter-spacing:.4px;box-shadow:0 3px 0 #9c6520;
}
.reward-burst{
  position:absolute;z-index:48;pointer-events:none;white-space:nowrap;
  transform:translate(-50%,-50%);
  padding:7px 9px;background:#173953;color:#ffe7a5;border:2px solid #fff4cd;
  border-radius:11px;font-size:clamp(10px,2.5vw,16px);font-weight:1000;
  box-shadow:0 4px 14px #081929a0;animation:rewardRise 1.15s ease-out both;
}
@keyframes rewardRise{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.6)}
  19%{opacity:1;transform:translate(-50%,-150%) scale(1.18)}
  65%{opacity:1;transform:translate(-50%,-175%) scale(1)}
  100%{opacity:0;transform:translate(-50%,-255%) scale(.96)}
}
.move-fallback{margin-top:9px;border-top:1px solid #7596b336;padding-top:11px}
.move-fallback summary{cursor:pointer;color:#c9ddeb;font-size:11px;font-weight:800;line-height:1.45}
.move-fallback[open] summary{color:#ffdb92}
.move-fallback .move-options{margin-top:12px}

/* Saturated home corners closer to their matching colored finish triangles. */
.home-blue{background:linear-gradient(145deg,#60b6f0,#318ad5)}
.home-yellow{background:linear-gradient(145deg,#ffdf75,#f4bf34)}
.home-green{background:linear-gradient(145deg,#7bdeb0,#3fbf86)}
.home-red{background:linear-gradient(145deg,#f58a81,#e95550)}
.home-hole{background:#d6d4c4;box-shadow:inset 0 3px 6px #152a4469,0 1px 0 #fff8}

/* Strong foreground ink on light glass: no disappearing labels or options. */
html[data-theme="light"] .landing .mode-picker label,
html[data-theme="light"] .landing .entry-card label{color:#173451;opacity:1}
html[data-theme="light"] .landing .mode-picker strong{color:#795018}
html[data-theme="light"] .language-panel summary,
html[data-theme="light"] .language-panel>p{color:#274e6b}
html[data-theme="light"] .language-vote small{color:#805115}
html[data-theme="light"] .language-vote{border-bottom-color:#8badc650}
html[data-theme="light"] .move-fallback summary{color:#244d6c}
html[data-theme="light"] .move-fallback[open] summary{color:#795114}
html[data-theme="light"] .move-options button{background:#dcebf8;color:#143958;border-color:#8eafcb}
html[data-theme="light"] .move-options button:hover{background:#c3e1f9}
@media(max-width:580px){
  .token-stack{width:7.8%;height:7.8%}
  .token-stack.base-stack{width:8.6%;height:8.6%}
  .token-stack.n2{width:14%;height:7.8%}
  .token-stack .token{font-size:clamp(12px,3.2vw,15px)}
  .token-stack.n2 .token{font-size:11px}
  .sq.track .track-number{font-size:4.5px;opacity:.31}
  .peg-menu-choice{min-height:47px;min-width:52px}
  .peg-menu-choice strong{font-size:20px}
  .moving-token,.captured-token{width:7.8%!important;height:7.8%!important}
}
@media(prefers-reduced-motion:reduce){.reward-burst{animation:none!important}}

/* V8.9 — each peg fits its own track square. Wide, horizontal runs have tall
   cells, so a two-peg bridge stacks vertically. Vertical runs do the opposite.
   This preserves all 68 original squares and leaves adjacent squares visible. */
.token-stack{width:4.35%;height:4.35%;z-index:8}
.token-stack.base-stack{width:6.2%;height:6.2%}
.token-stack.finished-stack{width:4.3%;height:4.3%}
.token-stack.n2.long-vertical{
  width:4.15%;height:9.05%;display:flex;flex-direction:column;flex-wrap:nowrap;gap:1px
}
.token-stack.n2.long-vertical .token{
  width:98%;height:49%;margin:0;flex:none;font-size:clamp(9px,1.7vw,13px)
}
.token-stack.n2.long-horizontal{
  width:9.05%;height:4.15%;display:flex;flex-direction:row;flex-wrap:nowrap;gap:1px
}
.token-stack.n2.long-horizontal .token{
  width:49%;height:98%;margin:0;flex:none;font-size:clamp(9px,1.7vw,13px)
}
.token-stack.n3,.token-stack.n4{width:9.5%;height:9.5%}
.token-stack .token{
  border:1.5px solid #fff7dc;
  font-size:clamp(10px,1.95vw,14px);
  box-shadow:0 0 0 1px #132940,0 2px 4px #061629b8
}
.token-stack .token.in-base{
  font-size:clamp(16px,2.35vw,21px);
  border-width:1.5px
}
.token.choose{
  box-shadow:0 0 0 2px #fffef2,0 0 0 3px #d89824,0 0 9px 1px #ffe484;
}
.token-stack .token.selected{
  outline:2px solid #ffc649;outline-offset:2px;
  box-shadow:0 0 0 2px #fff,0 0 11px 2px #ffc649
}
.hero-art .preview-stack{width:4.8%;height:4.8%}
.roadblock{transform:translate(-50%,170%);height:4px;width:clamp(13px,2.45vw,20px)}
.moving-token,.captured-token{
  width:4.4%!important;height:4.4%!important;
  font-size:clamp(10px,1.95vw,14px);
  border-width:1.5px
}

.dice-left{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:6px}
.dice-left>span{
  display:block;flex-basis:100%;color:#ffdd98;font-size:11px;font-weight:1000;
  letter-spacing:.6px;line-height:1.2
}
.dice-left strong{
  display:grid;place-items:center;width:37px;height:37px;min-width:37px;
  border-radius:9px;background:#ffe4a5;border:1px solid #fff7d7;
  color:#163651;font-size:21px;line-height:1;font-weight:1000;
  box-shadow:0 3px 0 #9f7235
}
.dice-left .dice-none{color:#314b61;background:#d9e7f1;box-shadow:none}
@media(max-width:580px){
  .token-stack{width:4.4%;height:4.4%}
  .token-stack.base-stack{width:6.1%;height:6.1%}
  .token-stack.n2.long-vertical{width:4.15%;height:9.05%}
  .token-stack.n2.long-horizontal{width:9.05%;height:4.15%}
  .token-stack .token{font-size:clamp(10px,2.6vw,12px)}
  .token-stack.n2.long-vertical .token,.token-stack.n2.long-horizontal .token{font-size:10px}
  .token-stack .token.in-base{font-size:16px}
  .moving-token,.captured-token{width:4.4%!important;height:4.4%!important}
}

/* /xompetitor.com/parchis/style.css — V8.11 movement countdown.
   Sensei Gizmo: Keep the action readable, not the screen crowded. */
.move-step-countdown{
  position:absolute;
  z-index:65;
  display:grid;
  place-items:center;
  width:clamp(33px,6.2vw,44px);
  height:clamp(33px,6.2vw,44px);
  transform:translate(-50%,-50%);
  border:3px solid #ffffff;
  border-radius:13px;
  background:#102a47;
  color:#ffffff;
  font-size:clamp(20px,3.7vw,27px);
  font-weight:1000;
  font-variant-numeric:tabular-nums;
  line-height:1;
  text-shadow:0 1px 1px #091b2d;
  box-shadow:0 2px 0 #071b2b,0 5px 14px #0a234e9c;
  pointer-events:none;
  transition:left .135s linear,top .135s linear;
}
.move-step-countdown[data-color="red"]{border-color:#ff9695}
.move-step-countdown[data-color="blue"]{border-color:#a5dbff}
.move-step-countdown[data-color="yellow"]{border-color:#ffdb75}
.move-step-countdown[data-color="green"]{border-color:#9af1ba}
@media(prefers-reduced-motion:reduce){.move-step-countdown{transition:none}}

/* V8.11 — high-contrast pieces, legible square boundaries, and an uncluttered
   iPhone dice dock. The underlying 19x19 board / 68-square path is unchanged.
   Sensei Gizmo: A move should be easy to SEE before it is easy to win. */
.sq.track{border-color:#9eaaa9}
.sq.track .track-number{color:#596775;opacity:.34;font-weight:700}
.board-grid .token-stack .token:not(.in-base){
  color:#fff;-webkit-text-stroke:0;text-shadow:0 1px 2px #081728,0 0 2px #081728;
  border:1.5px solid #fff8e8;
  box-shadow:0 0 0 1.5px #142e4c,0 2px 4px #04152fa8
}
.board-grid .token-stack .token-red:not(.in-base),.board-grid .moving-token.token-red{
  background:radial-gradient(circle at 30% 20%,#ffb5a7 0%,#ed5953 45%,#b8333f 100%)
}
.board-grid .token-stack .token-blue:not(.in-base),.board-grid .moving-token.token-blue{
  background:radial-gradient(circle at 30% 20%,#b4e2ff 0%,#4498d7 48%,#2164a8 100%)
}
.board-grid .token-stack .token-yellow:not(.in-base),.board-grid .moving-token.token-yellow{
  background:radial-gradient(circle at 30% 20%,#fff3af 0%,#efc03f 49%,#bd891e 100%);
  color:#152d48;text-shadow:0 1px 0 #fff9e5
}
.board-grid .token-stack .token-green:not(.in-base),.board-grid .moving-token.token-green{
  background:radial-gradient(circle at 30% 20%,#c6f6d5 0%,#45bc84 46%,#207a59 100%)
}
.board-grid .token-stack .token.selected{
  outline:2px solid #ffd26c;outline-offset:2px;
  box-shadow:0 0 0 2px #fff,0 0 10px 2px #ffcf62
}
.board-grid .token-stack .token.choose{touch-action:manipulation}
.dice-dock-title{display:flex;align-items:center;gap:8px;min-height:21px}
.dice-turn-dot{width:16px;height:16px;border-width:2px;box-shadow:0 1px 3px #0007}
.dice-relaxed{display:inline-block;margin-left:6px;letter-spacing:0;
  padding:2px 6px;border:1px solid #f3d69c7d;border-radius:7px;color:#ffe5aa;
  font-size:14px;line-height:1;vertical-align:middle}
.move-assist-panel{padding:12px 16px;margin-top:8px!important}
.move-assist-panel .move-fallback{border-top:0;padding-top:0;margin-top:0}
.move-assist-panel .move-fallback summary{min-height:35px;display:flex;align-items:center}
.board-tools button{min-height:44px;padding:9px 13px}
.nav button{min-height:44px}
.peg-menu-choice:focus-visible,.peg-menu-choice.gamepad-focus{
  outline:3px solid #ffffff;outline-offset:2px;
  box-shadow:0 0 0 5px #e5a13e,0 4px 10px #061d39c7
}
.move-step-countdown{
  width:34px;height:35px;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:0;border:2px solid #172f4a;border-radius:8px;
  background:#ffe1a0;color:#172b43;text-shadow:none;
  font-size:18px;line-height:.98;box-shadow:0 2px 0 #a27529,0 3px 9px #101d38a8
}
.move-step-countdown strong{font-size:18px;line-height:1;font-variant-numeric:tabular-nums}
.move-step-countdown small{margin-top:2px;font-size:6px;letter-spacing:.3px;font-weight:1000}
.move-step-countdown[data-color="red"]{border-color:#b93540}
.move-step-countdown[data-color="blue"]{border-color:#2368a9}
.move-step-countdown[data-color="yellow"]{border-color:#a47517}
.move-step-countdown[data-color="green"]{border-color:#207c53}
html[data-theme="light"] .nav button{background:#ffffffc9;border-color:#8dacbf6b;color:#1b3953}
html[data-theme="light"] .move-assist-panel{background:#f7fbffeb;color:#193451}
@media(max-width:580px){
  .nav button{min-height:44px!important;padding:7px 8px!important}
  .board-tools button{min-height:44px;padding:8px 12px}
  .board-grid .token-stack .token:not(.in-base){font-size:clamp(10px,2.8vw,13px)}
  .board-grid .token-stack.n2 .token:not(.in-base){font-size:clamp(9px,2.3vw,11px)}
  .move-step-countdown{width:31px;height:32px}
  .move-step-countdown strong{font-size:17px}
}
@media(max-width:360px){
  .header{flex-wrap:wrap;gap:9px}
  .nav{width:100%;justify-content:space-between}
  .nav button{flex:1}
}

/* /xompetitor.com/parchis/style.css — V8.12 spectator seats and separate chats
   Sensei Gizmo: Two conversations, one table, everyone belongs. */
.spectator-settings .kicker,.watch-join .kicker{margin-bottom:10px}
.spectator-check{display:flex!important;align-items:center;gap:10px;margin:12px 0;
  font-size:14px;font-weight:850;line-height:1.35;cursor:pointer}
.spectator-check input{width:21px;height:21px;flex-shrink:0;accent-color:#5bafdb}
.spectator-check input:disabled{opacity:.6}
.spectator-settings p{font-size:12px;line-height:1.55;margin:12px 0 0}
.watch-join{display:grid;gap:12px}
.watch-join h3{font-size:22px;margin:0}
.watch-join p{font-size:13px;line-height:1.5;margin:0}
.watch-join input{min-height:46px;width:100%;padding:12px;border-radius:12px;border:1px solid #9bb5cd;
  color:#172b45;background:#ffffff}
.watch-join label{font-size:12px;font-weight:900;letter-spacing:.7px}
.watch-join button{min-height:46px}
.viewer-status{display:flex;flex-direction:column;gap:8px}
.viewer-status strong{color:#f9d99a;font-size:15px}
.viewer-status p{font-size:13px;line-height:1.5;margin:2px 0;color:var(--muted,#c2d1df)}
.viewer-status button{min-height:43px}
.spectator-chat{border-left:3px solid #80bbe5}
.game-chat{border-left:3px solid #eec878}
.chat-name.chat-viewer{color:#9bd8fc}
.chat-toggle{min-height:42px;touch-action:manipulation}
.chat-toggle:focus-visible{outline:3px solid #ffd591;outline-offset:2px}
html[data-theme='light'] .spectator-settings p,
html[data-theme='light'] .viewer-status p,
html[data-theme='light'] .watch-join p{color:#34516b}
html[data-theme='light'] .spectator-check{color:#173b5b}
html[data-theme='light'] .viewer-status strong{color:#174e7f}
html[data-theme='light'] .chat-name.chat-viewer{color:#175f8a}
html[data-theme='light'] .chat-compose input{background:#fff;color:#162e4b;border-color:#91abc3}
html[data-theme='light'] .chat-compose input::placeholder{color:#526a83}
/* Keep shareable room codes readable in BOTH modes—even on navy cards. */
.room-card strong,html[data-theme="light"] .room-card strong{
  color:#ffffff!important;text-shadow:0 2px 7px #07182e99;
}
html[data-theme="light"] .room-card small{color:#ffdd9e}
.spectator-settings .spectator-check{letter-spacing:0;font-size:14px;margin-bottom:11px;color:inherit}
.viewer-status .quiet-action{background:#e9f3ff;color:#173957;border:1px solid #92b3cf;
  border-radius:10px;padding:11px 14px;font-size:13px;font-weight:850}
html[data-theme="light"] .timer-settings label,
html[data-theme="light"] .timer-settings strong,
html[data-theme="light"] .timer-settings p{color:#ffffff}
html[data-theme="light"] .timer-settings select{background:#e8f2fd;color:#193a57}


/* /xompetitor.com/parchis/style.css — V8.13 computer seat controls.
   Sensei Gizmo: The dice play fair; the competitors bring the challenge. */
.bot-seat-field{display:flex;flex-direction:column;gap:5px;margin-top:8px;max-width:310px}
.bot-seat-field span{font-size:10px;font-weight:900;letter-spacing:.4px;color:#c9e3f9}
.bot-seat-field select{appearance:auto;width:100%;min-height:42px;border:1.5px solid #86a6c5;border-radius:10px;
  background:#17304e;color:#fff;font-weight:800;font-size:14px;padding:7px 10px;cursor:pointer}
.bot-seat-field select:focus-visible{outline:3px solid #f8cd81;outline-offset:2px}
.bot-seat-field select:disabled{opacity:.7}
html[data-theme='light'] .bot-seat-field span{color:#274d70}
html[data-theme='light'] .bot-seat-field select{background:#fff;color:#17304e;border-color:#6894be}
@media(max-width:460px){.bot-seat-field{max-width:100%}.player:has(.bot-seat-field){align-items:flex-start}}

/* V8.13 — Put computer seats where the host makes lobby decisions. */
.bot-settings{background:rgba(101,163,214,.13);border:1px solid rgba(143,190,233,.30);
  border-radius:15px;padding:14px;margin:15px 0}
.bot-settings>strong{display:block;font-weight:950;letter-spacing:1px;font-size:12px;color:#f8d494}
.bot-settings>p{font-size:12px;line-height:1.45;color:#c5d6e8;margin:6px 0 12px}
.bot-seat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.bot-seat-grid .bot-seat-field{display:grid;grid-template-columns:auto 1fr;align-items:center;max-width:none;
  margin:0;background:rgba(4,17,36,.12);border-radius:10px;padding:8px}
.bot-seat-grid .bot-seat-field select{grid-column:span 2}
.bot-color-icon{display:inline-block!important;font-size:19px!important;line-height:1!important;
  text-shadow:0 1px 3px #13243d}
.bot-color-red{color:#f46c69!important}.bot-color-blue{color:#46a8ef!important}
.bot-color-yellow{color:#f6c751!important}.bot-color-green{color:#43c88c!important}
html[data-theme='light'] .bot-settings{background:#e7f3fc;border-color:#9dbfd9}
html[data-theme='light'] .bot-settings>strong{color:#17496e}
html[data-theme='light'] .bot-settings>p{color:#35546e}
html[data-theme='light'] .bot-seat-grid .bot-seat-field{background:#f6fbff;border:1px solid #b7cedf}

/* /xompetitor.com/parchis/style.css — V8.13.1 selectable day/night control
   Sensei Gizmo: Two skies, one place for friends to play. */
.theme-switch{
  display:inline-flex;align-items:center;flex:none;gap:3px;padding:3px;
  border-radius:14px;border:1px solid #9bbdd17c;
  background:#172f4a;box-shadow:inset 0 1px 3px #0003;
}
.nav .theme-switch .theme-choice{
  position:relative;display:grid;place-items:center;flex:none;
  width:43px;height:43px;min-width:43px;min-height:43px;
  margin:0;padding:0!important;border:2px solid transparent;
  border-radius:10px;font-size:19px!important;line-height:1;
  transition:border-color .15s,box-shadow .15s,filter .15s;
}
.nav .theme-switch .theme-day{
  background:linear-gradient(145deg,#bfeafe,#7ccaf4);color:#173954;
}
.nav .theme-switch .theme-night{
  background:linear-gradient(145deg,#2d507e,#132746);color:#f4f8ff;
}
.nav .theme-switch .theme-choice[aria-pressed="true"]{
  border-color:#fff7df;box-shadow:0 0 0 2px #f1c66e,0 1px 8px #0005;
  filter:saturate(1.16);z-index:1;
}
.nav .theme-switch .theme-choice[aria-pressed="true"]::after{
  content:'✓';display:grid;place-items:center;
  position:absolute;top:-6px;right:-5px;width:15px;height:15px;
  font-size:10px;font-weight:1000;line-height:1;color:#142a44;
  background:#fff8dd;border:1px solid #346188;border-radius:50%;
}
.nav .theme-switch .theme-choice[aria-pressed="false"]{filter:saturate(.8) brightness(.86)}
.nav .theme-switch .theme-choice:focus-visible{outline:3px solid #fff2b9;outline-offset:3px}
html[data-theme="light"] .theme-switch{background:#b9d9eb;border-color:#7aaaca;box-shadow:0 2px 7px #214c7430}
html[data-theme="light"] .nav .theme-switch .theme-day{background:linear-gradient(145deg,#d0f3ff,#64c7f5);color:#153552}
html[data-theme="light"] .nav .theme-switch .theme-night{background:linear-gradient(145deg,#41648c,#192d50);color:#fff}
@media(max-width:430px){
  .header{flex-wrap:wrap;gap:9px 5px}
  .header .brand{flex:none}
  .header .nav{margin-left:auto;gap:4px;flex-wrap:nowrap}
  .nav .theme-switch .theme-choice{width:39px;height:42px;min-width:39px;min-height:42px;font-size:17px!important}
  .nav .theme-switch{padding:2px;gap:2px}
}
@media(max-width:385px){
  .header .nav{width:100%;justify-content:flex-end}
  .header .brand{margin-right:auto}
}
@media(prefers-reduced-motion:reduce){.nav .theme-switch .theme-choice{transition:none}}
/* The site theme must also apply to text fields: no pale yellow inputs. */
html[data-theme="light"] input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]){
  background:#f7fcff;color:#152f4b;border:1.5px solid #8db3cd;
}
html[data-theme="light"] input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"])::placeholder{color:#4a6780;opacity:1}
html[data-theme="dark"] input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]){
  background:#192e4c;color:#f5f9ff;border:1.5px solid #6583a4;
}
html[data-theme="dark"] input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"])::placeholder{color:#b3c5d9;opacity:1}

/* V8.14 guided tutorial entry */
.tutorial-landing-link{margin-top:15px}.tutorial-start-link{display:flex;align-items:center;justify-content:center;min-height:50px;text-align:center;padding:13px;border-radius:13px;border:2px solid #84c4e8;color:#eafaff;background:linear-gradient(120deg,#1f6288,#174368);font-size:13px;font-weight:950;text-decoration:none;box-shadow:0 8px 23px #0002}.tutorial-start-link:hover,.tutorial-start-link:focus-visible{filter:brightness(1.18);outline-offset:2px}html[data-theme="light"] .tutorial-start-link{background:#e3f3fe;color:#153957;border-color:#5698c7}

.tutorial-landing-link{max-width:468px;margin:-9px 0 20px}
