:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172d43;background:#f3f6f9;font-synthesis:none;font-size:16px;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.36}button:focus-visible,select:focus-visible{outline:3px solid #2878d3;outline-offset:3px}button,select{touch-action:manipulation}button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;flex-shrink:0}
.app{max-width:1640px;margin:auto;min-height:100svh;padding:28px clamp(16px,3.3vw,52px) max(16px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:21px}.header{display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;gap:13px;align-items:center}.brand-mark{width:43px;height:43px;color:#28577c;flex-shrink:0}h1{font-size:24px;line-height:1.15;letter-spacing:-.8px;font-weight:700;margin:0}.brand p{margin:6px 0 0;color:#64798b;font-size:14px}
.segmented{display:flex;padding:4px;background:#e7edf2;border:1px solid #dde5eb;border-radius:12px;gap:2px}.segmented button{border:0;background:transparent;border-radius:8px;min-height:39px;padding:8px 15px;color:#536a7d;font-size:14px;font-weight:600;white-space:nowrap;display:flex;gap:7px;align-items:center;justify-content:center}.segmented button[aria-pressed=true]{background:white;color:#172d43;box-shadow:0 1px 4px #263d5416}.segmented button:hover:not([aria-pressed=true]){background:#ffffff70}
.whiteboard{background:white;border:1px solid #dce5ec;box-shadow:0 12px 40px #274b6b06;border-radius:19px;overflow:hidden;display:flex;flex-direction:column;flex:1;min-height:350px}.toolbar{display:flex;gap:15px;align-items:center;padding:14px 20px;border-bottom:1px solid #e6edf3;flex-wrap:wrap}.tool-controls{background:#f1f5f8;border-color:transparent}.tool-controls button[aria-pressed=true]{background:#172d43;color:white;box-shadow:none}.divider{height:28px;width:1px;background:#e1e8ef}.colors{display:flex;gap:4px}.color{border:2px solid transparent;background:transparent;width:36px;height:39px;border-radius:10px;display:grid;place-items:center;padding:7px}.color:before{content:"";width:20px;height:20px;border-radius:50%;background:var(--ink);box-shadow:inset 0 0 0 1px #0000000a}.color[aria-pressed=true]{border-color:var(--ink);background:#f1f5f8}.color[aria-pressed=true]:before{width:16px;height:16px}.weight-control{display:flex;align-items:center;gap:8px;color:#64798b;font-size:14px}.weight-control select{color:#243e53;border:1px solid #dce5ec;border-radius:8px;padding:9px 28px 9px 10px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%23536a7d' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;appearance:none;font-size:14px;min-height:39px}.actions{display:flex;gap:5px;margin-left:auto}.action{background:transparent;border:1px solid transparent;display:flex;align-items:center;justify-content:center;gap:8px;color:#39556c;border-radius:9px;padding:10px 12px;font-size:14px;min-height:42px;font-weight:550}.action:not(:disabled):hover{background:#edf3f7;border-color:#e2e9ef}
.rink-stage{position:relative;display:flex;align-items:center;justify-content:center;padding:20px 20px 28px;background:linear-gradient(180deg,#f9fbfd,#f1f6fa);min-height:280px;flex:1;overflow:hidden}.rink-stage svg{display:block;width:100%;height:100%;max-height:calc(100svh - 292px);min-height:250px;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair;overflow:hidden}.rink-stage svg.is-eraser{cursor:none}.view-caption{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:2.2px;font-weight:650;color:#8da1b2;pointer-events:none;white-space:nowrap}.board-footer{padding:14px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #e6edf3;color:#6a8092}.board-footer p{margin:0;font-size:13px;line-height:1.4}#save-status{color:#547565;white-space:nowrap}#save-status.warning{color:#95651f}.footnote{text-align:center;margin:0;color:#7c8e9d;font-size:12px;line-height:1.5}
@media(min-width:1100px){.rink-stage{padding:24px 32px 30px}.rink-stage svg{min-height:350px}.whiteboard{min-height:480px}}
@media(max-width:760px){.app{padding:18px 12px max(14px,env(safe-area-inset-bottom));gap:15px}.header{align-items:flex-start;flex-direction:column;gap:15px}.brand{gap:10px}.brand-mark{width:36px;height:36px}h1{font-size:22px}.brand p{font-size:13px;margin-top:4px}.view-controls{width:100%}.view-controls button{flex:1}.whiteboard{border-radius:14px;min-height:420px}.toolbar{padding:10px;gap:8px}.tool-controls button{padding:8px 11px}.divider{display:none}.colors{gap:1px}.color{width:34px}.weight-control{margin-left:auto}.weight-control>select{max-width:105px}.weight-control{font-size:0;gap:0}.actions{width:100%;border-top:1px solid #edf2f6;padding-top:6px;justify-content:flex-end;gap:6px}.action{padding:8px 12px;min-height:36px}.rink-stage{padding:10px 5px 28px;min-height:280px}.rink-stage svg{max-height:none;min-height:250px;height:100%;aspect-ratio:1040/465}.rink-stage.half svg{aspect-ratio:540/465}.board-footer{padding:12px;gap:7px;align-items:flex-start;flex-direction:column}.board-footer p{font-size:12px}.footnote{font-size:11px;padding:0 5px}}
@media(max-width:385px){.toolbar{gap:5px}.tool-controls button{padding:8px}.color{width:30px;padding:5px}.weight-control select{width:80px;font-size:12px;padding-left:6px}.tool-controls button svg{width:16px}.segmented button{font-size:13px}}
@media(max-height:560px) and (orientation:landscape){.app{padding:10px 14px;gap:8px}.header{flex-direction:row;align-items:center}.brand-mark{width:30px;height:30px}h1{font-size:19px}.brand p{display:none}.view-controls{width:auto}.view-controls button{min-height:32px;padding:5px 12px}.whiteboard{min-height:0;border-radius:12px}.toolbar{padding:6px 10px;flex-wrap:nowrap;gap:8px}.tool-controls button{min-height:32px;padding:5px 9px}.color{height:32px;width:30px}.weight-control select{min-height:32px;padding-top:5px;padding-bottom:5px}.actions{width:auto;margin-left:auto;border:0;padding:0}.action{min-height:32px;padding:5px 8px}.rink-stage{min-height:160px;padding:2px 12px 18px}.rink-stage svg{height:calc(100svh - 160px);min-height:160px;max-height:none}.view-caption{font-size:9px;bottom:5px}.board-footer{padding:7px 12px;flex-direction:row}.board-footer p{font-size:11px}.footnote{display:none}}
@media(prefers-reduced-motion:no-preference){button{transition:background .12s,border-color .12s,opacity .12s}}
