:root{--ink:#173f54;--water:#dceef1;--teal:#176884}
body{background:#f3f5f2;color:var(--ink)}.panel,.turnpanel{background:#fcfaf3}.sea-panel,.board{background:#dceef1}.sea-panel{border-color:#b8cdd0;padding-top:78px}.board>svg>rect:first-of-type{fill:#dceef1}#board>svg>rect[fill="url(#water)"]{opacity:.7}
#board>svg>path[stroke="#849f94"]{stroke:#6c99a8;opacity:.34}#board>svg>path[stroke="#b39d68"]{stroke:#6c99a8;opacity:.23}#board>svg>path[stroke="#7d9e87"]{stroke:#86adb5;opacity:.19}#board>svg>circle[fill="#89b4b7"]{fill:#729da9;opacity:.57}
.header-icon{display:inline-flex!important;align-items:center;justify-content:center;width:36px;min-width:36px;height:34px;padding:6px!important}.header-icon svg{width:22px;height:22px}.header-icon[hidden]{display:none!important}.tools{gap:5px}
#raceLeader{position:absolute;top:54px;left:5px;right:5px;height:23px;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:7px;padding:2px 6px;border:0;border-radius:4px;background:#f9fcf9d9;color:#234f64;font-size:10px;box-shadow:0 1px 3px #183f5514;overflow:hidden}#raceLeader>span{display:flex;align-items:center;gap:5px;min-width:0}#raceLeader b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#raceLeader i{width:7px;height:7px;min-width:7px;border-radius:50%}#raceLeader small{font-size:9px;white-space:nowrap;color:#59717c;overflow:hidden;text-overflow:ellipsis;max-width:49%}
.startwarning{top:78px}.active-turn-ring{fill:none;stroke:#176884;stroke-width:1.2;opacity:.65;animation:turn-beacon 1.7s ease-in-out infinite}.rounding-guides{opacity:1!important;stroke-width:4!important}.rounding-muted{opacity:.14}.rounding-relevant{opacity:.53}.rounding-relevant:hover{opacity:.7}#board .next-buoy>ellipse{fill:#127b9c;opacity:.28;animation:buoy-beacon 2s ease-in-out infinite}#board [data-player-ring]{filter:drop-shadow(0 1px 1px #173f5540)}#board [data-own-boat]{filter:drop-shadow(0 0 2px #f6dc82)}#board .move-dot{fill:#17658a;stroke:#fff;stroke-width:2}#board [data-x]:hover .move-dot,#board [data-x]:focus .move-dot{fill:#0b4968}
#board [data-finish-row] rect{fill:url(#dockWood);stroke:#a78f62}#board [data-finish-row] circle{fill:#a58a58}.turnpanel #actionToolbar>button{color:#20556b}.turnpanel #actionToolbar>button:hover:enabled,.turnpanel #actionToolbar>button[aria-expanded="true"]{background:#e6eff0}
#raceMoment{position:fixed;z-index:1000;left:50%;top:20%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;width:min(370px,calc(100vw - 30px));padding:19px 21px;box-sizing:border-box;border-radius:14px;background:#fbfcf6f5;border:1px solid #d4c18b;box-shadow:0 15px 45px #173e5540;pointer-events:none;animation:moment-in .3s cubic-bezier(.2,.8,.3,1)}#raceMoment[hidden]{display:none}#raceMoment.leaving{animation:moment-out .18s ease-in forwards}#raceMoment.start{background:#0b6754f5;border-color:#9bddbd;color:#fff}#raceMoment small{display:block;font-size:9px;letter-spacing:1.5px;font-weight:700;margin-bottom:5px}#raceMoment strong{display:block;font:700 23px Georgia,serif;line-height:1.15}#raceMoment div>span{display:block;font-size:11px;line-height:1.4;margin-top:7px}#raceMoment .moment-symbol{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:50%;background:#ecd48c;color:#715716}#raceMoment .moment-symbol svg{width:31px;height:31px}#raceMoment.start .moment-symbol{background:#ffffff20;color:#fff}#raceMoment.place-2 .moment-symbol{background:#dce4ea;color:#506878}#raceMoment.place-3 .moment-symbol{background:#edd0ae;color:#815e39}
.live-explainer{font-size:11px;line-height:1.5;color:#5e7680}.live-boat{display:grid;grid-template-columns:20px 39px minmax(0,1fr) auto;align-items:center;gap:7px;padding:11px 5px;border-bottom:1px solid #dae3df}.live-boat.is-own{background:#fff4d6;border-radius:6px}.live-rank{font-size:13px;font-weight:bold}.live-piece svg{display:block;width:39px;height:39px}.live-boat strong{font-size:13px}.live-boat small{display:block;font-size:10px;color:#657b83;margin-top:3px}.live-boat>b{font-size:11px;white-space:nowrap}.race-progress{display:flex;gap:3px;margin-top:7px}.race-progress i{height:4px;flex:1;background:#d8e3e4;border-radius:2px}.race-progress .passed{background:#37856b}.race-progress .now{background:#d5ab4a}.scoretable{font-variant-numeric:tabular-nums}.scoretable .nettotal{color:#176884}.raceresult{border-color:#c7dadd;background:#f8fbf7f2}
@keyframes turn-beacon{0%,100%{opacity:.3;stroke-width:1}50%{opacity:.9;stroke-width:2}}
@keyframes buoy-beacon{0%,100%{opacity:.2}50%{opacity:.5}}
@keyframes moment-in{from{opacity:0;transform:translate(-50%,12px) scale(.94)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@keyframes moment-out{to{opacity:0;transform:translate(-50%,-8px)}}
@media(max-width:700px) and (orientation:portrait){body.phone-portrait{background:#fcfaf3}body.phone-portrait>header{background:#fcfaf3}.sea-panel{padding-top:78px;border-color:#b8cdd0}.tools .header-icon{width:32px;min-width:32px;height:30px;min-height:30px}.tools .header-icon svg{width:20px;height:20px}#raceLeader{font-size:8px;gap:4px;height:23px}#raceLeader small{font-size:7px}.startclock{background:#e7f1ed}.startclock.started{color:#087658;background:#dcefe7}.right,.turnpanel{background:#fcfaf3}.turnpanel #actionToolbar>button{border-radius:6px;font-size:9px}.turnpanel #actionToolbar>button svg{width:25px;height:25px}.turnpanel #instruction{font-size:8px}#raceMoment{top:19%;padding:17px}#raceMoment strong{font-size:21px}.live-boat{grid-template-columns:18px 34px minmax(0,1fr) auto;gap:5px}.live-boat strong{font-size:12px}.live-piece svg{width:34px;height:34px}}
@media(prefers-reduced-motion:reduce){.active-turn-ring,#board .next-buoy>ellipse,#raceMoment,#raceMoment.leaving{animation:none!important}}
@media print{#raceLeader,#raceMoment{display:none!important}}


@media(min-width:701px),(orientation:landscape){.sea-panel{padding-top:0}#raceLeader{position:static;flex-shrink:0;margin:6px 8px;height:25px;min-height:25px}}
