:root{--paper:#f7f5ee;--ink:#252c29;--muted:#747972;--line:#dddfd4;--coral:#dd654c;--teal:#397a71;--lime:#dce87f}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,sans-serif}button,select{font:inherit;color:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid var(--teal);outline-offset:4px}button:disabled{opacity:.45;cursor:default}header,main,footer{max-width:1460px;margin:auto}header{height:94px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 48px}.brand{font-family:'Avenir Next',system-ui,sans-serif;font-size:23px;font-weight:700;display:flex;align-items:center;gap:10px;letter-spacing:-1px}.brandmark{font-size:38px;line-height:1;color:var(--coral)}.edition{font-size:13px;color:var(--muted);margin-left:5px;font-weight:400;letter-spacing:0}nav{display:flex;gap:30px;align-items:center;font-size:13px}.textbutton{background:none;border:0;padding:6px 0;font-size:13px}.textbutton span{margin-left:12px}main{padding:0 48px}.intro{display:flex;justify-content:space-between;align-items:center;padding:47px 0 41px}.eyebrow,.section-label{font-size:10px;letter-spacing:1.7px;font-weight:700}.dot{display:inline-block;height:6px;width:6px;background:var(--coral);border-radius:50%;margin-right:6px}h1{font-family:'Avenir Next',system-ui,sans-serif;font-size:clamp(40px,4.1vw,61px);line-height:1.04;letter-spacing:-3px;margin:18px 0}p{line-height:1.6}.intro p{color:var(--muted);font-size:14px;margin-bottom:0}.intro-note{display:flex;align-items:center;gap:20px;transform:rotate(-7deg);margin-right:44px}.intro-note>span{font-family:'Avenir Next',system-ui,sans-serif;font-weight:500;font-size:104px;line-height:1;letter-spacing:-9px;-webkit-text-stroke:1px #b3b9a8;color:transparent}.intro-note>div{font-size:9px;line-height:1.6;letter-spacing:1.5px}.game-layout{display:grid;grid-template-columns:230px minmax(320px,1fr) 240px;gap:30px;border-top:1px solid var(--line);padding-top:28px}.section-label{color:var(--muted);font-size:9px}h2{font-family:'Avenir Next',system-ui,sans-serif;letter-spacing:-.6px;font-size:20px;font-weight:500}.setup h2,.inspector h2{margin:12px 0 24px}.fieldlabel{display:block;font-size:11px;font-weight:700;margin:22px 0 9px}select{width:100%;background:transparent;border:1px solid #cbd0c3;border-radius:5px;padding:12px;font-size:12px}.variants{display:grid;gap:7px}.variant{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--line);background:transparent;padding:13px 11px;border-radius:5px}.variant.selected{background:#e9eddb;border-color:#a9b39b}.varianticon{font-size:26px;width:24px;text-align:center}.variant strong{display:block;font-size:12px;font-weight:600}.variant small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.radio{width:12px;height:12px;border:1px solid #b7bdaf;border-radius:50%;margin-left:auto}.selected .radio{border:3px solid #e9eddb;background:var(--ink);outline:1px solid var(--ink)}.fine{font-size:11px;color:var(--muted);line-height:1.6}.tiny{font-size:9px;color:var(--muted);line-height:1.6}.primary,.secondary{border-radius:5px;padding:13px 16px;border:0;font-weight:500;font-size:12px;display:flex;justify-content:space-between;align-items:center}.primary{background:var(--ink);color:#fff}.primary:hover{background:#405047}.secondary{border:1px solid #aab5a1;background:transparent}.full{width:100%}.arena{position:relative;min-width:0;background:#eef0e6;border:1px solid #dce1d2;border-radius:9px;padding:20px 22px 0;overflow:hidden;display:flex;flex-direction:column}.arena-top{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:1px;color:var(--muted)}.pill{padding:5px 8px;background:#e0e5d5;border-radius:3px;color:#586250;font-size:8px;font-weight:700}.turnline{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:26px}.turnline h2{margin:0;font-size:22px}.playerdot{width:8px;height:8px;border-radius:50%;background:var(--coral)}#turnHint{text-align:center;font-size:11px;color:var(--muted);margin:8px 0 0;min-height:18px}.board{position:relative;width:100%;aspect-ratio:520/340;max-width:620px;margin:8px auto 0;flex-shrink:0}.hex{position:absolute;width:18.8%;height:33.3%;border:0;background:transparent;padding:0;transform:translate(-50%,-50%);isolation:isolate;color:#7c8573;opacity:1!important}.hex::before{content:'';position:absolute;inset:0;background:#d3dbc7;clip-path:polygon(50% 0,94% 25%,94% 75%,50% 100%,6% 75%,6% 25%);z-index:-2}.hex::after{content:'';position:absolute;inset:1.3px;background:#f8f9f1;clip-path:polygon(50% 0,94% 25%,94% 75%,50% 100%,6% 75%,6% 25%);z-index:-1;transition:background .18s}.hex:not(:disabled):hover::after,.hex:focus-visible::after{background:#e1ebbe}.hex:focus-visible{outline:none;filter:drop-shadow(0 0 3px #224f41)}.hex .hexid{font-family:'Avenir Next',system-ui,sans-serif;font-size:17px;font-weight:500}.hex small{display:block;font-size:9px;margin-top:2px}.hex.owner0::after{background:var(--coral)}.hex.owner1::after{background:var(--teal)}.hex.owner0::before{background:#bf523d}.hex.owner1::before{background:#28665c}.hex.owner0,.hex.owner1{color:white}.hex.last::after{background:var(--lime)}.hex.last::before{background:#97a34c}.hex.last{color:#39411e}.hex.neighbor::before{background:var(--ink)}.hex.neighbor::after{inset:3px}.arena-bottom{margin-top:auto;border-top:1px solid #d9dece;display:flex;align-items:center;justify-content:space-between;padding:17px 0;font-size:9px;letter-spacing:.5px}.arena-bottom>span{display:flex;align-items:center;gap:6px}.arena-bottom b{margin-right:13px;font-weight:500}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}.coral{background:var(--coral)}.teal{background:var(--teal)}.inspector .muted{font-size:12px;line-height:1.7;margin-top:-9px}.muted{color:var(--muted)}.pressure-card{border:1px solid var(--line);padding:18px;border-radius:6px;margin:20px 0 24px}.pressure-head{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;margin-bottom:19px}.pressure-head>span:last-child{color:var(--coral);font-size:18px;line-height:12px}.pressure-row{display:flex;justify-content:space-between;align-items:center;font-size:12px}.pressure-row strong{font-size:21px;font-family:'Avenir Next',system-ui,sans-serif;font-weight:500}.pressure-row strong span{font-size:10px;color:var(--muted);font-family:system-ui,-apple-system,sans-serif}.bar{height:4px;background:#e8e9e0;border-radius:4px;margin:8px 0 16px}.bar>div{height:100%;border-radius:4px;transition:width .2s;width:0}#bar0{background:var(--coral)}#bar1{background:var(--teal)}#riskText{margin:0;font-size:10px;color:var(--muted)}.recent-head{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--muted)}.recent-caption{font-size:10px;color:var(--muted);margin:9px 0}#recentResults{list-style:none;padding:0;margin:0}#recentResults li{padding:13px 0;border-bottom:1px solid var(--line)}#recentResults .empty-results{font-size:11px;color:var(--muted);line-height:1.7;border:0}.game-result-heading{font-size:11px;font-weight:600}.game-result-scores{display:flex;justify-content:space-between;gap:12px;margin:8px 0;font-family:'Avenir Next',system-ui,sans-serif;font-size:17px}.teal-score{color:var(--teal)}.coral-score{color:var(--coral)}.game-result-note{font-size:9px;color:var(--muted)}.bottom-rule{display:flex;align-items:center;gap:20px;margin:28px 0 35px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.asterisk{font-size:40px;color:var(--coral)}.bottom-rule p{font-size:12px;color:var(--muted);max-width:570px;margin:0}.bottom-rule b{color:var(--ink)}.game-tag{margin-left:auto;font-size:9px;letter-spacing:1.5px;line-height:1.7;color:var(--muted);text-align:right}footer{display:flex;justify-content:space-between;gap:15px;padding:0 48px 25px;font-size:10px}footer .muted{margin-left:12px}.result{border-top:1px solid #d1d9bf;padding:10px 0;text-align:center;font-size:12px;line-height:1.6}dialog{max-width:470px;width:calc(100% - 32px);padding:35px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#1e292a80;backdrop-filter:blur(4px)}dialog h2{font-size:30px}dialog li,dialog p{font-size:13px;line-height:1.7}dialog ol{padding-left:18px}dialog li{margin-bottom:10px}.close{position:absolute;right:15px;top:10px;border:0;background:none;font-size:26px}.doc{max-width:820px;padding:50px 28px}.doc h1{font-size:48px}.doc h2{font-size:25px;margin-top:40px}.doc p,.doc li{font-size:14px;line-height:1.8}.doc code{background:#e5e8db;padding:2px 5px;border-radius:3px;overflow-wrap:anywhere}.doc a{text-decoration:underline}.doc .download{display:inline-flex;text-decoration:none;gap:24px;margin-top:10px}
@media(min-width:1450px){.game-layout{grid-template-columns:250px minmax(400px,1fr) 260px;gap:38px}.board{margin:20px auto}.arena{min-height:500px}}@media(max-width:1080px){header,footer{padding-left:28px;padding-right:28px}main{padding:0 28px}.game-layout{grid-template-columns:190px minmax(290px,1fr);gap:24px}.inspector{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 30px}.inspector>.section-label,.inspector>h2,.inspector>.muted{grid-column:1}.inspector>.section-label{margin-top:20px}.inspector>h2{margin:8px 0 12px}.pressure-card{grid-column:2;grid-row:1/5;margin:0}.recent-head,.recent-caption,#recentResults{grid-column:1}.intro-note{margin-right:10px}.arena{min-height:480px}.board{margin-top:35px}}@media(max-width:650px){header{height:76px;padding:0 20px}.brand{font-size:20px}nav{gap:12px}nav a{display:none}main{padding:0 20px}.intro{padding:30px 0}.intro h1{font-size:44px;letter-spacing:-2px}.intro p{font-size:12px}.intro-note{display:none}.eyebrow{font-size:8px}.game-layout{display:flex;flex-direction:column;gap:24px;padding-top:24px}.setup{order:2}.arena{order:1;min-height:380px;padding:17px 14px 0}.inspector{order:3;display:block}.board{margin:12px auto}.arena-bottom{padding:15px 0}.turnline{margin-top:22px}.variants{grid-template-columns:repeat(3,1fr);gap:7px}.variant{display:block;padding:12px 8px;text-align:center}.varianticon{display:block;margin:auto auto 8px}.variant small{font-size:9px}.variant .radio{display:none}.setup h2{margin-bottom:14px}.setup>.fieldlabel{margin-top:16px}.pressure-card{margin-top:20px}.bottom-rule{gap:12px}.game-tag{display:none}footer{padding:0 20px 25px;display:block;font-size:9px}footer a{display:block;margin-top:12px}.desktop{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Twenty-one cells, six triangular rows. Numbers are the placed values. */
.board{aspect-ratio:520/450;max-width:620px;margin:10px auto}
.hex{width:16.4%;height:19.5%}.hex .hexid{font-size:24px}.hex small{font-size:8px}.hex em{position:absolute;right:19%;top:22%;font-size:8px;font-style:normal;font-weight:700}
.hex.owner0::after{background:var(--teal)}.hex.owner0::before{background:#28665c}.hex.owner1::after{background:var(--coral)}.hex.owner1::before{background:#bf523d}
.playerdot{background:var(--teal)}#bar0{background:var(--teal)}#bar1{background:var(--coral)}
.number-track{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #d9dece;padding:13px 0;gap:10px;font-size:8px;color:var(--muted);letter-spacing:.6px}.number-track b{font-size:14px;color:var(--ink);margin-left:5px}#sequence{display:flex;gap:5px}#sequence span{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;font-size:10px;background:#e2e7d9;color:#5f6957}#sequence .used{opacity:.4}#sequence .current{background:var(--ink);color:#fff}.arena-bottom{margin-top:0}.arena{justify-content:space-between}.hex.last::after{background:var(--lime)}.hex.last::before{background:#97a34c}.hex.neighbor::before{background:var(--ink)}
@media(max-width:650px){.hex .hexid{font-size:19px}.hex small{font-size:6px}.hex em{font-size:6px;right:14%;top:24%}.number-track{letter-spacing:0;font-size:7px}#sequence{gap:3px}#sequence span{width:17px;height:17px;font-size:9px}.variants{grid-template-columns:repeat(2,1fr)}.variant{display:flex;text-align:left;gap:9px}.varianticon{margin:0}.variant small{font-size:10px}.arena{min-height:0}.turnline h2{font-size:20px}.arena-bottom b{margin-right:7px}}

.tap-controls{margin:15px auto 0;max-width:380px;text-align:center}.tap-controls label{display:inline-flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;min-height:36px}.tap-controls input{width:17px;height:17px;accent-color:var(--teal)}.tap-controls span{display:block;font-size:10px;color:var(--muted);line-height:1.5}.tap-status{min-height:3.2em;font-size:11px;text-align:center;line-height:1.6;margin:10px 0 0;color:var(--ink)}.hex{touch-action:manipulation}.hex.selected-cell::before{background:var(--teal)}.hex.selected-cell::after{inset:4px;background:#dce87f}.hex.selected-cell{color:var(--ink)}.confirm-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:22px}.confirm-actions button{min-height:44px}.tap-status[hidden]{display:block;visibility:hidden}

.site-credit{display:block;margin-top:10px;line-height:1.7}.site-credit a{display:inline;text-decoration:underline}html{scroll-behavior:smooth}

[hidden]{display:none!important}


/* Stillstone: locally generated glazed ceramic faces on actual placed stones. */
.hex.owner0::after{background:#245c54 url('./jade.webp') center/100% 100% no-repeat;}
.hex.owner1::after{background:#a64936 url('./coral.webp') center/100% 100% no-repeat;}
.hex.owner0 .hexid,.hex.owner1 .hexid{font-weight:750;text-shadow:0 1px 3px #142d2b;}
.hex.owner0 small,.hex.owner1 small{font-weight:650;text-shadow:0 1px 2px #142d2b;}
.arena{background:linear-gradient(160deg,#f0f1e8,#e7ecde);box-shadow:0 8px 30px #3846380b;}
.hex.owner0,.hex.owner1{filter:drop-shadow(0 2px 1px #33443325);}
@media(max-width:650px){.intro{padding:22px 0 24px}.intro h1{font-size:40px}.brand{font-size:18px}header{gap:12px}.textbutton{min-height:44px}.tap-controls label{min-height:44px}.hex{touch-action:manipulation}.hex .hexid{font-size:19px}.setup .primary{min-height:44px;}}

.tap-status[hidden]{display:block!important;visibility:hidden;}
.doc pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6;}
@media(min-width:651px){header{height:70px}.intro{padding:20px 0 24px}.intro h1{font-size:40px;letter-spacing:-1.8px;margin:12px 0}.intro p{font-size:13px;margin:0}.intro-note>span{font-size:76px}.board{max-width:430px}.setup h2{margin:10px 0 14px}.setup .fieldlabel{margin:16px 0 7px}.setup .variant{padding:9px 10px}.setup .variant small{font-size:9px;margin-top:2px}.setup .fine{margin:10px 0}.setup .tiny{margin:8px 0}}
