:root { color-scheme: light; font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; color: #274551; background: #edf3f3; font-synthesis: none; --ink: #274551; --teal: #347b82; --muted: #627c83; --line: #cbdcde; --coral: #bf674f; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 15% 8%, #fff9eea6, transparent 48%), #edf3f3; }
button, input { font: inherit; } button { cursor: pointer; -webkit-tap-highlight-color: transparent; } button:disabled { cursor: default; opacity: .45; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #bb7046; outline-offset: 4px; }
[hidden] { display: none !important; }
.app { width: min(900px, calc(100% - 48px)); margin: auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 0 19px; }
.eyebrow { margin: 0; color: #607c83; font: 700 9px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .16em; }
.eyebrow span { padding-left: 14px; color: #80989d; }
h1 { margin: 6px 0 4px; font: 600 36px/1.25 "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .07em; }
h1 span { display: inline-block; padding-left: 14px; color: #64989e; font-size: 24px; vertical-align: middle; }
.tagline { margin: 0; font-size: 11px; color: #74888e; letter-spacing: .13em; }
.quiet-button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: transparent; font-size: 12px; }.quiet-button:hover { background: #fff8; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 276px; align-items: start; gap: 36px; }.play-column { min-width: 0; }
.rink-hud, .rink-shell, .status { width: min(100%, max(320px, calc((100svh - 243px) * .73684))); margin-inline: auto; }
.rink-hud { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 4px 10px; }
.throw-count { display: flex; align-items: center; gap: 10px; white-space: nowrap; }.throw-count small { font-size: 10px; color: var(--muted); }.throw-count b { font: 500 28px/1 Georgia, serif; }.throw-count em { font: 400 11px/1 sans-serif; color: var(--muted); }
.brush-meter { width: 143px; }.brush-meter > div:first-child { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 5px; font-size: 11px; }.brush-meter b { font: 600 16px/1 ui-monospace, monospace; }.brush-meter small { font: 400 10px/1 sans-serif; }
.meter-track { height: 4px; overflow: hidden; background: #d4e0e1; border-radius: 9px; }.meter-track i { display: block; width: 100%; height: 100%; background: var(--teal); transform-origin: left; }
.rink-shell { position: relative; padding: 5px; border: 1px solid #aec8cd; border-radius: 18px; background: #cadcdf; box-shadow: 0 14px 30px #354e5812, inset 0 0 0 2px #e8f1f2; }
canvas { display: block; width: 100%; height: auto; border-radius: 12px; touch-action: none; user-select: none; outline: none; }canvas:focus-visible { outline: 3px solid #bb7046; outline-offset: 4px; }
.status { min-height: 36px; margin-block: 0; padding: 10px 4px 0; font-size: 11px; line-height: 1.65; color: #52747e; }
.pause-layer { position: absolute; inset: 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border-radius: 12px; background: #e6f0e9b8; backdrop-filter: blur(3px); }.pause-layer > span { font: 600 28px/1.5 "Yu Mincho", serif; }.pause-layer button { width: 65%; }
.control-column { min-width: 0; padding-top: 7px; }.shot-card { padding: 17px 0 20px; border-top: 1px solid var(--line); }
h2 { margin: 10px 0 13px; font: 600 27px/1.5 "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .025em; }
.shot-card > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.aim-controls { margin-top: 17px; }.aim-controls label { display: block; margin-bottom: 12px; }.aim-controls label > span { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }.aim-controls label b { font-weight: 500; color: var(--teal); }
input[type="range"] { display: block; width: 100%; height: 30px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.primary-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 46px; padding: 12px 17px; border: 1px solid #2e6a71; border-radius: 4px; color: #f0f8f7; background: var(--teal); font-size: 12px; font-weight: 600; }.primary-button:hover { background: #2a666d; }.primary-button:active { transform: translateY(1px); }
.brush-guide { margin-top: 24px; padding: 22px 14px; text-align: center; border: 1px dashed #a5c5c9; background: #e1edef; }.brush-symbol { display: inline-block; color: #548f96; font-size: 28px; transform: rotate(-20deg); }.brush-guide p { font-size: 11px; line-height: 1.9; }.brush-guide small { font-size: 10px; line-height: 1.8; color: var(--muted); }
.score-card { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.score-heading { display: flex; justify-content: space-between; align-items: center; }.score-heading > span { font-size: 12px; }.score-heading span small { display: block; margin-top: 3px; font-size: 9px; color: var(--muted); }.score-heading > b { font: 500 28px/1 Georgia, serif; }.score-heading b small { font: 400 11px/1 sans-serif; }
.zone-key { display: flex; justify-content: space-between; gap: 5px; margin: 17px 0 10px; }.zone-key > span { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }.zone-key i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; font: 600 14px/1 Georgia, serif; font-style: normal; }.zone-one { background: #c3dce4; color: #385e6f; }.zone-three { background: #accdce; color: #386d70; }.zone-five { background: #dbac95; color: #7f432f; }
.score-card > p { margin: 9px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.85; }
.pocket-key { display: flex; align-items: center; gap: 9px; padding: 9px; background: #dce7ed; border: 1px dashed #8cabb8; border-radius: 4px; }.pocket-key b { color: #42687a; font: 600 24px/1 Georgia, serif; }.pocket-key span { color: #42687a; font-size: 10px; line-height: 1.8; }
.score-parts { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 10px; color: var(--muted); }.score-parts b { margin-left: 5px; color: var(--ink); font-size: 13px; }.score-parts > span:last-child b { color: #896529; }
.bonus-key { display: grid; gap: 6px; margin: 12px 0 16px; padding: 11px; border: 1px solid #d7c59a; border-radius: 4px; background: #fff4d7; color: #795d2e; font-size: 11px; line-height: 1.8; }.bonus-key small { font-size: 9px; color: #826e4a; }
.result-parts { margin: 0 0 16px; padding: 12px 0; border-block: 1px solid #d4dfd9; }.result-parts span { flex: 1; }.result-parts b { display: block; margin: 7px 0 0; font: 500 26px/1 Georgia, serif; }
.best-line { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 10px; color: var(--muted); }.best-line b { color: var(--ink); font: 500 18px/1 Georgia, serif; }
.retry-button { width: 100%; min-height: 44px; margin-top: 9px; border: 0; color: var(--teal); background: transparent; font-size: 11px; }.retry-button:hover { background: #dce8e8; }.footnote { margin: 5px 0; color: #71898e; font-size: 9px; line-height: 1.8; text-align: center; }
footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--line); font: 500 8px/1.5 ui-monospace, monospace; letter-spacing: .12em; color: #78939a; }
dialog { width: min(420px, calc(100% - 28px)); max-height: calc(100svh - 30px); padding: 0; border: 1px solid #b9cbca; border-radius: 8px; color: var(--ink); background: #f6f7ef; box-shadow: 0 24px 90px #213c4a38; }dialog::backdrop { background: #203f5266; backdrop-filter: blur(3px); }.dialog-inner { padding: 30px; }.dialog-inner h2 { font-size: 31px; margin: 10px 0 13px; }.dialog-lead { font-size: 12px; color: var(--muted); }
.how-to { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 20px; }.how-to li { position: relative; padding-left: 37px; margin: 17px 0; counter-increment: step; }.how-to li::before { position: absolute; top: 0; left: 0; content: "0" counter(step); color: #7a9c9e; font: 500 20px/1.2 Georgia, serif; }.how-to b { display: block; margin-bottom: 5px; font-size: 12px; }.how-to span { display: block; font-size: 11px; line-height: 1.85; color: var(--muted); }
.rule-note { padding: 13px 0; border-top: 1px dashed #ccd7d0; font-size: 10px; line-height: 1.85; color: var(--muted); }details { margin: 0 0 19px; color: var(--muted); font-size: 10px; line-height: 1.8; }summary { cursor: pointer; padding: 8px 0; min-height: 34px; }
.result-inner { text-align: center; }.result-inner h2 { font-size: 30px; }.result-score { margin: 12px 0; }.result-score b { font: 500 91px/1 Georgia, serif; letter-spacing: -.06em; }.result-score span { padding-left: 10px; font-size: 15px; }.result-best { min-height: 18px; margin: 10px 0 20px; font-size: 12px; color: var(--coral); }.result-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 18px; }.result-breakdown > div { padding: 10px 3px; border: 1px solid #d4dfd9; background: #eaf0eb; font-size: 10px; }.result-breakdown b { display: block; margin-top: 5px; font: 500 23px/1 Georgia, serif; }.result-breakdown small { font: 400 10px/1 sans-serif; }.result-inner .quiet-button { width: 100%; margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.result-breakdown { grid-template-columns: repeat(5, minmax(0, 1fr)); }.result-breakdown > div:first-child { background: #dce7ed; border-color: #9bb4c1; }.result-breakdown small { display: block; margin-top: 4px; }
@media (min-width: 721px) and (max-height: 800px) {
  .page-header { padding: 15px 0; }h1 { font-size: 30px; }.shot-card { padding: 11px 0 14px; }.shot-card h2 { font-size: 23px; margin: 6px 0 7px; }.aim-controls { margin-top: 10px; }.aim-controls label { margin-bottom: 5px; }.score-card { padding: 12px 0; }.zone-key { margin-top: 10px; }footer { margin-top: 10px; }
}
@media (max-width: 720px) {
  .app { width: min(440px, calc(100% - 28px)); }.page-header { padding: 17px 0 16px; }h1 { font-size: 28px; }h1 span { font-size: 19px; padding-left: 8px; }.eyebrow { font-size: 8px; letter-spacing: .09em; }.eyebrow span { display: none; }.tagline { font-size: 10px; }.quiet-button { padding: 8px 10px; }
  .game-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }.rink-hud, .rink-shell, .status { width: 100%; }.rink-hud { padding-bottom: 10px; }.rink-shell { border-radius: 15px; }.status { min-height: 37px; padding-top: 9px; font-size: 10px; }
  .control-column { padding-top: 0; }.shot-card { padding: 16px 0; }.shot-card h2 { font-size: clamp(20px, 6vw, 24px); line-height: 1.4; }.shot-card h2 br, .shot-card > p br { display: none; }.shot-card > p:not(.eyebrow) { margin-top: 8px; }.aim-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; margin-top: 14px; }.aim-controls > button { grid-column: 1 / -1; }.primary-button { min-height: 48px; }.brush-guide { margin-top: 15px; padding: 12px; }.brush-guide p { margin: 4px 0 8px; }.score-card { padding-top: 14px; }.footnote { margin-top: 8px; }footer { margin-top: 22px; }
  .dialog-inner { padding: 24px; }.dialog-inner h2 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media (max-width: 720px) { .position-control { grid-column: 1 / -1; } }
@media (max-width: 400px) { .dialog-inner { padding: 20px; }#help-title { font-size: 25px; line-height: 1.45; } }
.shot-card > p.prediction-note { margin-top: 12px; font-size: 10px; line-height: 1.8; }.line-key { display: inline-block; margin-right: 10px; }.line-key::before { content: ""; display: inline-block; width: 17px; margin-right: 5px; border-top: 2px solid #ab6048; vertical-align: middle; }.line-key.after::before { border-top-style: dashed; }
.shot-card > p.prediction-note br { display: initial; }
