:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #292c25;
  background: var(--paper);
  --paper: #edf4d9;
  --ink: #292c25;
  --muted: #505746;
  --accent: #53782d;
  --position: 12.5%;
  --zone-0: #5a8435;
  --zone-1: #9b791c;
  --zone-2: #ba612b;
  --zone-3: #ad3f38;
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); transition: background-color .32s ease; }
button, input, a { touch-action: manipulation; }
button, input { font: inherit; }
button, a { color: inherit; }
button { -webkit-appearance: none; appearance: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.app { width: min(100%, 480px); min-height: 100svh; margin-inline: auto; padding: max(18px, env(safe-area-inset-top)) 28px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.toolbar { height: 48px; display: flex; align-items: center; gap: 12px; }
.icon-button { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; padding: 10px; border: 1px solid #292c2524; border-radius: 50%; background: transparent; text-decoration: none; transition: background .15s, transform .15s; }
.icon-button:hover { background: #ffffff55; }
.icon-button:active { transform: scale(.94); }
.icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.slider-cut { stroke: var(--paper); stroke-width: 5; }
.wordmark { font-size: 12px; font-weight: 750; line-height: 1.05; letter-spacing: -.04em; }
.wordmark-dot { color: var(--accent); }
.toolbar-actions { margin-left: auto; display: flex; gap: 8px; }
main { flex: 1; display: flex; flex-direction: column; }
.introduction { padding-top: clamp(24px, 4.2svh, 44px); }
.eyebrow { margin: 0; color: var(--muted); font: 9px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .15em; }
h1 { font: 400 clamp(36px, 10vw, 47px)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.055em; margin: 12px 0 0; }
h1 em { color: var(--accent); font-weight: 400; }
.instrument { position: relative; display: flex; flex-direction: column; margin-top: clamp(12px, 2svh, 24px); }
.end-symbol { width: 50px; height: 40px; margin-left: calc(74% - 25px); display: grid; place-items: center; }
.end-symbol svg { width: 43px; height: 39px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.heart { color: #47752a; transform: rotate(-8deg); }
.heart .sketch { opacity: .6; stroke-width: 1.3; }
.skull { color: #914740; transform: rotate(6deg); }
.skull svg { height: 42px; }
.skull ellipse { fill: currentColor; stroke: none; }
.gauge { position: relative; height: clamp(265px, 43svh, 450px); margin-block: 10px; }
.zones { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(4, 1fr); }
.zone { position: relative; display: flex; gap: 10px; align-items: center; width: 59%; min-height: 44px; padding: 0; border: 0; text-align: left; background: transparent; }
.zone-dot, .guide-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.zone-dot { opacity: .35; transition: opacity .2s, transform .2s; }
.zone:nth-child(1) { color: var(--zone-0); }
.zone:nth-child(2) { color: var(--zone-1); }
.zone:nth-child(3) { color: var(--zone-2); }
.zone:nth-child(4) { color: var(--zone-3); }
.zone-copy { display: flex; flex-direction: column; min-width: 0; }
.zone-title { color: var(--ink); font-size: clamp(17px, 5.1vw, 23px); letter-spacing: -.045em; line-height: 1.2; opacity: .8; transition: opacity .2s; }
.zone-caption { color: var(--muted); font-size: 11px; line-height: 1.4; margin-top: 5px; max-width: 175px; }
.zone.selected .zone-title { opacity: 1; font-weight: 650; }
.zone.selected .zone-caption { opacity: 1; }
.zone.selected .zone-dot { opacity: 1; transform: scale(1.35); }
.ruler { position: absolute; inset: 0; pointer-events: none; }
.rail { position: absolute; top: 0; bottom: 0; left: calc(74% - 3px); width: 6px; border-radius: 8px; background: linear-gradient(#77c342 0%, #a5c74b 23%, #dcba47 40%, #e99546 58%, #df7152 76%, #ce3935 100%); box-shadow: inset 0 0 0 1px #0000000d; }
.ticks { position: absolute; inset: 0; }
.tick { position: absolute; left: calc(74% - 16px); width: 7px; height: 1px; background: #292c2545; transform: translateY(-.5px); }
.divider { position: absolute; left: 0; right: calc(26% - 26px); height: 1px; background: #292c2522; }
.divider::after { content: ""; position: absolute; right: 0; width: 52px; height: 1px; background: #292c2575; }
.divider-one { top: 25%; }
.divider-two { top: 50%; }
.divider-three { top: 75%; }
.handle { position: absolute; z-index: 1; left: 74%; top: var(--position); width: 90px; height: 48px; display: flex; justify-content: center; align-items: center; gap: 6px; border: 1px solid #ffffff17; border-radius: 15px; transform: translate(-50%, -50%); background: #30332c; box-shadow: 0 5px 0 #171b1522, 0 9px 15px #30332c24, inset 0 1px 1px #ffffff28; transition: top .16s cubic-bezier(.22, 1, .36, 1), box-shadow .15s, width .15s; }
.handle span { display: block; width: 2px; height: 16px; border-radius: 2px; background: #b9bdae; box-shadow: 1px 0 1px #00000055; }
.gauge.dragging .handle { width: 94px; box-shadow: 0 3px 0 #171b1522, 0 7px 12px #30332c24, inset 0 1px 1px #ffffff28; }
.gauge-input { position: absolute; left: calc(74% - 55px); top: -20px; width: 110px; height: calc(100% + 40px); margin: 0; opacity: 0; cursor: grab; writing-mode: vertical-lr; direction: ltr; touch-action: none; }
.gauge-input:active { cursor: grabbing; }
.gauge:has(.gauge-input:focus-visible) .handle { outline: 2px solid var(--ink); outline-offset: 5px; }
.check-in-footer { margin-top: auto; padding-top: 18px; text-align: center; }
.drag-hint { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: var(--ink); margin: 0; }
.drag-hint svg { width: 13px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.quiet-note { margin: 10px 0 0; font: 10px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--muted); }
.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; }
.sheet { width: min(100% - 24px, 456px); max-height: calc(100svh - 48px); margin: auto auto max(12px, env(safe-area-inset-bottom)); padding: 20px 26px 28px; border: 1px solid #292c2524; border-radius: 26px; color: var(--ink); background: #fbfaf5; overscroll-behavior: contain; box-shadow: 0 16px 70px #1d281f26; }
.sheet::backdrop { background: #222b2045; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.sheet[open] { animation: enter .22s ease-out; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-header .icon-button { width: 38px; height: 38px; padding: 8px; }
.sheet h2 { font: 400 31px/1.12 Georgia, "Times New Roman", serif; letter-spacing: -.045em; margin: 13px 0 16px; }
.sheet-intro { font-size: 14px; line-height: 1.6; margin: 0 0 24px; color: #50554b; }
.level-guide { display: grid; gap: 20px; }
.level-guide h3 { display: flex; align-items: center; gap: 9px; font-size: 15px; margin: 0 0 6px; font-weight: 650; }
.level-guide p { font-size: 13px; line-height: 1.6; margin: 0; color: #5b6055; }
.dot-0 { color: var(--zone-0); }.dot-1 { color: var(--zone-1); }.dot-2 { color: var(--zone-2); }.dot-3 { color: var(--zone-3); }
.sheet-footnote { border-top: 1px solid #292c251a; padding-top: 18px; margin: 24px 0 0; font-size: 11px; line-height: 1.6; color: #65695e; }
.language-options { border: 0; padding: 0; margin: 28px 0 0; }
.language-options legend { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.language-options label { display: flex; align-items: center; gap: 12px; position: relative; min-height: 54px; padding: 0 15px; margin-bottom: 7px; border: 1px solid #292c2522; border-radius: 12px; cursor: pointer; font-size: 14px; }
.language-options label:has(:checked) { background: #edf0e3; border-color: #7b8862; }
.language-options input { position: absolute; opacity: 0; }
.language-options label:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.language-check { margin-left: auto; visibility: hidden; }
:checked ~ .language-check { visibility: visible; }
.haptics-option { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin: 24px 0; cursor: pointer; }
.preference-label, .preference-caption { display: block; }
.preference-label { font-size: 13px; font-weight: 600; }
.preference-caption { font-size: 11px; color: #5b6055; margin-top: 5px; line-height: 1.5; }
#haptics { -webkit-appearance: none; appearance: none; flex-shrink: 0; margin: 0; width: 46px; height: 28px; border: 1px solid #65695e; border-radius: 20px; background: #d8d9d1; position: relative; cursor: pointer; }
#haptics::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .15s; }
#haptics:checked { background: #5e7742; border-color: #5e7742; }
#haptics:checked::after { transform: translateX(18px); }
.privacy-note { font-size: 12px; line-height: 1.7; color: #50554b; margin: 25px 0 6px; }
.storage-note, .install-note { font-size: 11px; line-height: 1.65; color: #65695e; margin: 0; }
.install-note { border-top: 1px solid #292c251a; padding-top: 16px; margin-top: 20px; }
.noscript { font-size: 12px; line-height: 1.5; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 700px) { .app { max-height: 1000px; padding-top: 28px; padding-bottom: 26px; } .sheet { margin-bottom: auto; } }
@media (max-width: 370px) { .app { padding-inline: 20px; } .wordmark { font-size: 11px; } .toolbar { gap: 8px; } .toolbar-actions { gap: 6px; } .zone-title { font-size: 18px; } .zone-caption { font-size: 10px; } .zone { gap: 7px; } }
@media (max-height: 740px) { .introduction { padding-top: 18px; } h1 { font-size: 36px; } .instrument { margin-top: 8px; } .gauge { height: max(225px, 38svh); margin-block: 4px; } .end-symbol { height: 32px; } .end-symbol svg { height: 33px; } .check-in-footer { padding-top: 12px; } }
@media (max-height: 570px) and (min-width: 600px) { .app { width: min(100%, 740px); min-height: 100svh; } main { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0 25px; } .introduction { align-self: center; } .instrument { grid-column: 2; grid-row: 1 / 3; margin-top: 0; } .gauge { height: max(215px, 53svh); } .check-in-footer { grid-column: 1; align-self: end; padding-bottom: 20px; text-align: left; } .drag-hint { justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (forced-colors: active) { .handle { background: ButtonFace; border: 2px solid ButtonText; } .handle span, .rail, .tick, .divider { background: ButtonText; } }
