@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap";:root{font-family:DM Sans,sans-serif;color:#f7f7fb;background:#10151e;font-synthesis:none}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}h1,h2,p{margin:0}:focus-visible{outline:2px solid #ff959b;outline-offset:3px}.site-shell{min-height:100vh;background:radial-gradient(circle at 12% 16%,#1c2935 0,transparent 36%),#10151e}.game-shell{background:radial-gradient(circle at 74% 12%,rgba(var(--active-rgb),.12),transparent 38%),#10151e}.site-header{display:flex;align-items:center;justify-content:space-between;max-width:1300px;height:84px;padding:0 36px;margin:auto;border-bottom:1px solid #ffffff17}.logo{display:flex;align-items:center;gap:12px;font:700 25px Space Grotesk,sans-serif;letter-spacing:-1.5px}.logo>span:last-child span,.header-divider,.site-footer span{color:#ff6875}.logo-icon{position:relative;display:block;width:29px;height:29px;border:2px solid #ff6875;border-radius:8px;transform:rotate(-12deg)}.logo-icon i{position:absolute;width:5px;height:5px;border-radius:50%;background:#ff6875}.logo-icon i:nth-child(1){top:4px;left:4px}.logo-icon i:nth-child(2){top:4px;right:4px}.logo-icon i:nth-child(3){bottom:4px;left:4px}.logo-icon i:nth-child(4){bottom:4px;right:4px}.header-note{color:#9099aa;font-size:10px;font-weight:800;letter-spacing:2px}.header-actions{display:flex;align-items:center;gap:24px}.setup-link{padding:8px 0;border:0;background:none;color:#c8d1de;font-size:12px;font-weight:700}.setup-link:hover{color:#fff;text-decoration:underline}.header-divider{margin:0 8px}.site-footer{padding:24px 15px 30px;color:#818c9d;font-size:10px;font-weight:800;letter-spacing:1.7px;text-align:center}.site-footer span{margin:0 7px}.kicker{display:flex;align-items:center;gap:10px;color:#ff8991;font-size:11px;font-weight:800;letter-spacing:2px}.kicker span{width:19px;height:2px;background:currentColor}.setup-card,.game-panel,.box-explorer{border:2px solid #384354;border-radius:28px;background:linear-gradient(145deg,#293140,#202734 65%,#1c2330);box-shadow:inset 3px 3px 5px #ffffff12,inset -5px -6px 10px #0b101c75,10px 14px 26px #05080ec9}.start-button,.primary-action{border:2px solid #ff9198;border-radius:15px;background:linear-gradient(145deg,#ff8189,#f45262);color:#21191d;font-weight:800;box-shadow:inset 3px 3px 4px #ffffff58,inset -5px -6px 8px #b62f4573,6px 9px 15px #090d18ab;transition:transform .15s,box-shadow .15s,filter .15s}.start-button:hover,.primary-action:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-2px)}.start-button:active,.primary-action:active:not(:disabled){transform:translateY(2px);box-shadow:inset 4px 5px 8px #a8293b75,inset -2px -2px 5px #ffffff35}.welcome-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,480px);align-items:start;gap:clamp(40px,7vw,130px);max-width:1300px;padding:70px 36px;margin:auto}.welcome-intro{padding-top:50px}.welcome-intro h1{margin:23px 0 22px;font:700 clamp(46px,5.2vw,76px)/1.08 "Space Grotesk",sans-serif;letter-spacing:-4px}.welcome-intro h1 em{color:#ff6875;font-style:normal}.welcome-intro>p{max-width:500px;color:#aeb7c5;font-size:16px;line-height:1.75}.preview-art{width:min(100%,330px);aspect-ratio:1;padding:22px;margin-top:52px;border:2px solid #3d4957;border-radius:32px;background:linear-gradient(145deg,#2c3747,#1a2330);box-shadow:inset 3px 3px 6px #ffffff16,inset -6px -7px 12px #0a0f1bad,9px 14px 22px #05080fc9;transform:rotate(-3deg)}.preview-grid{position:relative;width:100%;height:100%;overflow:hidden;border:2px solid #56667a;border-radius:10px;background:#1b2531}.preview-grid:before{position:absolute;z-index:2;inset:0;content:"";background:linear-gradient(90deg,#58697e 2px,transparent 2px),linear-gradient(#58697e 2px,transparent 2px);background-size:25% 25%;pointer-events:none}.preview-square{position:absolute;width:25%;height:25%}.preview-square.red{top:25%;left:0;background:#ff5d67}.preview-square.blue{top:50%;left:25%;background:#58a6ff}.preview-square.yellow{top:25%;left:50%;background:#ffd35a}.preview-square.green{top:50%;left:50%;background:#70dd9b}.setup-card{padding:32px;border-radius:32px}.setup-card h2{font:700 31px Space Grotesk,sans-serif;letter-spacing:-1px}.setup-card>p{margin-top:5px;color:#a9b3c1;font-size:13px}.form-section{margin-top:24px}.segmented{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border:2px solid #3b4654;border-radius:15px;background:#171d28;box-shadow:inset 4px 5px 8px #080d18a6,inset -2px -2px 5px #ffffff0c}.segmented button{min-width:0;padding:10px 4px;border:0;border-radius:9px;background:transparent;color:#aeb8c6;font-size:14px;font-weight:800;transition:transform .15s,box-shadow .15s,background .15s}.segmented button.selected{background:linear-gradient(145deg,#465265,#333d4e);color:#fff;box-shadow:inset 2px 2px 3px #ffffff25,inset -3px -4px 6px #11182787,3px 4px 8px #080c18a8}.player-fields{display:grid;gap:9px;margin-top:14px}.player-field{display:flex;align-items:center;gap:12px;min-height:72px;padding:9px 13px;border:2px solid #445164;border-radius:15px;background:linear-gradient(145deg,#303b4c,#252e3d);box-shadow:inset 2px 2px 3px #ffffff12,inset -3px -4px 7px #11172270,4px 6px 10px #0a0d17a3}.player-field:focus-within{border-color:var(--player-color)}.color-picker{position:relative;flex:none}.player-badge{display:grid;flex:none;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:10px;background:var(--player-color);color:#15202d;font:700 18px Space Grotesk,sans-serif;box-shadow:inset 2px 2px 3px #ffffff48,inset -3px -3px 5px #0004,3px 4px 7px #080c16a0}.player-badge:hover{filter:brightness(1.12)}.color-popover{position:absolute;z-index:5;bottom:calc(100% + 12px);left:-8px;display:grid;grid-template-columns:repeat(2,1fr);gap:5px;width:162px;padding:8px;border:1px solid #66758a;border-radius:13px;background:#1b2430;box-shadow:4px 9px 20px #080c18d9}.color-popover:after{position:absolute;top:100%;left:20px;width:12px;height:12px;border-right:1px solid #66758a;border-bottom:1px solid #66758a;background:#1b2430;content:"";transform:translateY(-7px) rotate(45deg)}.color-choice{display:flex;align-items:center;gap:5px;min-width:0;padding:6px 4px;border:1px solid transparent;border-radius:7px;background:#2d3949;color:#eef2f7;font-size:10px;font-weight:700}.color-choice:hover,.color-choice[aria-pressed=true]{border-color:#aab8c9;background:#3b4b5f}.color-choice-swatch{width:14px;height:14px;flex:none;border-radius:4px}.player-label{display:flex;flex:1;align-items:center;min-width:0}.player-label input{width:100%;height:48px;padding:0;border:0;outline:none;background:transparent;color:#fff;font:700 18px Space Grotesk,sans-serif;text-align:center}.edit-symbol{width:42px;color:#c4ceda;font-size:21px;text-align:center}.reroll{padding:12px 2px 0;border:0;background:none;color:#b6bfcb;font-size:14px;font-weight:700}.reroll:hover{color:#fff}.grid-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.grid-presets button{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;min-height:64px;padding:12px 4px;border:2px solid #445164;border-radius:15px;background:linear-gradient(145deg,#303b4c,#252e3d);color:#fff;box-shadow:inset 2px 2px 3px #ffffff12,inset -3px -4px 7px #11172270,4px 6px 10px #0a0d17a3;transition:transform .15s,box-shadow .15s,border-color .15s}.grid-presets button:hover,.segmented button:hover,.explorer-buttons button:hover{transform:translateY(-2px)}.grid-presets button:active,.segmented button:active,.explorer-buttons button:active{transform:translateY(1px)}.grid-presets button.selected{border-color:#ff7881;background:linear-gradient(145deg,#624047,#443039);box-shadow:inset 2px 2px 4px #ffffff24,inset -4px -4px 7px #21131996,5px 7px 11px #080b15ba}.grid-presets strong{font:700 16px Space Grotesk,sans-serif}.grid-presets small{color:#a6b1bf;font-size:9px;font-weight:800;letter-spacing:1px}.grid-presets button.selected small{color:#ffb5b9}.custom-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.number-field>span:first-child{display:block;margin-bottom:6px;color:#b6bfcb;font-size:11px;font-weight:700}.number-controls{display:flex;align-items:center;overflow:hidden;border:2px solid #445164;border-radius:15px;background:#1b2430;box-shadow:inset 4px 5px 8px #080d18a6,inset -2px -2px 5px #ffffff0c}.number-controls button{width:36px;height:40px;border:0;background:none;color:#e1e7ef;font-size:18px}.number-controls button:hover:not(:disabled){background:#344255}.number-controls input{width:100%;min-width:0;border:0;outline:none;background:none;color:#fff;font-weight:800;text-align:center;appearance:textfield}.number-controls input::-webkit-inner-spin-button,.number-controls input::-webkit-outer-spin-button{margin:0;appearance:none}.form-error{margin-top:14px;color:#ffafb5;font-size:12px}.start-button{width:100%;min-height:58px;margin-top:25px;font:700 19px Space Grotesk,sans-serif}.setup-footnote{display:block;margin-top:13px;color:#9ca8b8;font-size:10px;text-align:center}.game-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(305px,360px);grid-template-rows:auto auto 1fr;grid-template-areas:"board heading" "board scores" "board actions";align-items:start;gap:17px 24px;max-width:1700px;min-height:calc(100dvh - 84px);padding:24px 28px 36px;margin:auto}.game-main.finished{grid-template-rows:auto 1fr;grid-template-areas:"board heading" "board actions"}.game-heading{grid-area:heading;min-width:0;padding:14px 3px 4px}.game-heading h1{margin:13px 0 7px;font:700 clamp(30px,2.5vw,39px)/1.12 "Space Grotesk",sans-serif;letter-spacing:-1.5px;overflow-wrap:anywhere}.game-heading p{color:#b0bac8;font-size:12px;line-height:1.5}.winner-heading-crown{display:inline-block;margin-right:10px;font-size:.64em;vertical-align:.08em}.game-counter{display:block;margin-top:15px;font:700 22px Space Grotesk,sans-serif;white-space:nowrap}.game-counter small{color:#a8b3c2;font:800 10px DM Sans,sans-serif;letter-spacing:1px}.score-strip{grid-area:scores;display:flex;flex-direction:column;gap:10px}.score-card{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:78px;padding:13px 16px 13px 42px;border:2px solid #455166;border-radius:20px;background:linear-gradient(145deg,#303a4b,#242d3b);box-shadow:inset 2px 2px 4px #ffffff19,inset -4px -5px 8px #1017258f,5px 8px 13px #080b15ab}.score-card.active{border-color:var(--player-color);background:linear-gradient(145deg,rgba(var(--player-rgb),.34),rgba(var(--player-rgb),.11)),#27303e;box-shadow:inset 2px 2px 4px #ffffff27,inset -4px -5px 8px #11172366,5px 8px 14px #080b16b8}.score-color-box{position:absolute;left:15px;top:50%;width:17px;height:17px;border-radius:5px;background:var(--player-color);box-shadow:inset 2px 2px 3px #ffffff5c,inset -2px -2px 3px #0003,2px 3px 5px #080c16a3;transform:translateY(-50%)}.score-card-name{flex:1;min-width:0;font:700 19px/1.16 Space Grotesk,sans-serif;text-align:center;overflow-wrap:anywhere}.score-number{flex:none;min-width:2ch;font:700 30px/1 Space Grotesk,sans-serif;text-align:right}.game-panel{grid-area:board;display:flex;flex-direction:column;min-height:580px;height:calc(100dvh - 130px);overflow:hidden}.board-topline,.board-bottomline{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 22px;color:#aab5c4;font-size:10px;font-weight:800;letter-spacing:1px}.board-topline{border-bottom:1px solid #465468}.board-bottomline{border-top:1px solid #465468;font-size:11px;font-weight:500;letter-spacing:0}.board-label{color:#e5e9ef}.board-label-icon{margin-right:9px;color:#ff8991;font-size:15px}.game-actions,.end-controls{grid-area:actions;margin-top:26px}.game-actions,.end-actions{display:flex;flex-direction:column;gap:10px}.game-actions button,.end-actions button{width:100%;min-height:54px;padding:13px 18px;font:700 16px Space Grotesk,sans-serif}.secondary-action{border:2px solid #495668;border-radius:15px;background:linear-gradient(145deg,#343f50,#27313f);color:#f0f3f7;box-shadow:inset 2px 2px 4px #ffffff18,inset -4px -5px 8px #101723a1,5px 7px 12px #080c15a8;transition:transform .15s,box-shadow .15s}.secondary-action:hover:not(:disabled){background:linear-gradient(145deg,#414e60,#303b4c);transform:translateY(-2px)}.secondary-action:active:not(:disabled){transform:translateY(2px);box-shadow:inset 4px 5px 8px #101723a1}.box-explorer{padding:17px}.explorer-title strong{font:700 17px Space Grotesk,sans-serif}.explorer-title span{display:block;margin:6px 0 15px;color:#aab5c4;font-size:11px;line-height:1.45}.explorer-buttons{display:flex;flex-direction:column;gap:9px}.explorer-buttons button{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;min-height:48px;padding:10px 13px;border:2px solid #495668;border-radius:15px;background:linear-gradient(145deg,#343f50,#27313f);color:#f4f5f8;font:700 15px Space Grotesk,sans-serif;box-shadow:inset 2px 2px 4px #ffffff18,inset -4px -5px 8px #101723a1,5px 7px 12px #080c15a8;transition:transform .15s,box-shadow .15s}.explorer-buttons button.selected{border-color:var(--player-color);box-shadow:0 0 0 1px var(--player-color),5px 7px 12px #080c15a8}.explorer-buttons button strong,.explorer-crown{color:var(--player-color);font-size:19px}.explorer-name{display:inline-flex;align-items:center;gap:7px;min-width:0;text-align:left;overflow-wrap:anywhere}.end-actions{margin-top:12px}.confetti{position:fixed;z-index:10;inset:0;overflow:hidden;pointer-events:none}.confetti i{position:absolute;top:-20px;left:var(--left);width:9px;height:15px;background:var(--color);opacity:.9;transform:rotate(var(--rotate));animation:confetti-fall var(--duration) linear var(--delay) infinite}@keyframes confetti-fall{to{transform:translate3d(80px,105vh,0) rotate(720deg)}}.board-viewport{display:flex;flex:1;align-items:center;justify-content:center;min-height:0;padding:10px;margin:13px;overflow:auto;border:2px solid #111824;border-radius:22px;background:linear-gradient(145deg,#101723,#192230);box-shadow:inset 8px 9px 17px #060a12e0,inset -5px -6px 12px #3441547a;scrollbar-color:#536176 #192533}.board{display:block;flex:none;width:100%;height:100%;margin:auto;touch-action:manipulation}.board-surface{fill:#192230}.box-fill{opacity:1}.edge-visible{stroke:#6f7d90;stroke-width:2.8;stroke-linecap:round;pointer-events:none;transition:opacity .15s,stroke-width .15s}.edge.taken .edge-visible{stroke:#f5f6f8;stroke-width:5}.edge.open .edge-visible{opacity:0}.edge.open:hover .edge-visible,.edge.open:focus-within .edge-visible{stroke:var(--edge-color);stroke-width:6;opacity:1}.edge-hit{stroke:transparent;stroke-width:27;cursor:pointer;outline:none}.dot{fill:#faf9f7;stroke:#192230;stroke-width:2;pointer-events:none}.last-line-glow{stroke-width:13;stroke-linecap:round;pointer-events:none;animation:line-flash 2.2s ease-out forwards}@keyframes line-flash{0%,18%,38%{opacity:1;stroke-width:15}10%,28%,48%{opacity:.25;stroke-width:7}to{opacity:0;stroke-width:6}}@media(max-width:900px){.welcome-layout{grid-template-columns:1fr;gap:38px;max-width:660px;padding-top:35px}.welcome-intro{padding-top:0}.preview-art{display:none}.setup-card{max-width:540px;width:100%}.game-main,.game-main.finished{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"heading" "scores" "board" "actions";gap:16px;max-width:800px;min-height:0;padding:30px 20px 50px}.game-main.finished{grid-template-areas:"heading" "board" "actions"}.game-heading{padding:0}.score-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.score-strip.players-3{grid-template-columns:repeat(3,minmax(0,1fr))}.score-strip.players-4{grid-template-columns:repeat(4,minmax(0,1fr))}.score-card{padding:11px 9px 11px 34px}.score-color-box{left:10px;width:14px;height:14px}.score-card-name{font-size:clamp(14px,2.3vw,19px)}.score-number{font-size:clamp(22px,3vw,30px)}.game-panel{display:block;height:auto;min-height:0}.board-viewport{justify-content:flex-start;height:auto;overflow:auto}.board{height:auto}.game-actions,.end-controls{margin-top:0}.game-actions,.end-actions{flex-direction:row}.game-actions button,.end-actions button{width:50%}}@media(max-width:620px){.site-header{height:68px;padding:0 18px}.logo{font-size:22px}.header-note{display:none}.welcome-layout{padding:34px 17px 55px}.welcome-intro h1{font-size:clamp(39px,10vw,56px);letter-spacing:-2.8px}.welcome-intro>p{font-size:14px}.setup-card{padding:23px 19px}.segmented button{font-size:12px}.player-field{min-height:66px}.player-badge{width:38px;height:38px;font-size:17px}.player-label input{font-size:17px}.edit-symbol{width:38px}.game-main,.game-main.finished{padding:28px 13px 50px}.game-counter{font-size:21px}.score-strip{gap:6px}.score-strip.players-4{grid-template-columns:repeat(2,minmax(0,1fr))}.score-card{min-height:70px;gap:5px;padding:10px 8px 10px 27px;border-radius:12px}.score-color-box{left:8px;width:12px;height:12px}.score-card-name{font-size:15px}.score-number{font-size:23px}.game-panel{border-radius:18px}.board-viewport{padding:9px;margin:8px;border-radius:14px}.board-topline,.board-bottomline{padding:12px 13px}.board-bottomline{display:block;line-height:1.5}.board-bottomline span+span{display:block;margin-top:4px}.game-actions button,.end-actions button{padding:13px 7px;font-size:14px}}@media(prefers-reduced-motion:reduce){.confetti i,.last-line-glow{animation:none}}
