:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  color: #214c60;
  background: #f6faf9;
  --muted: #5e7e8a;
  --line: #c8dde3;
  --serif: "Noto Serif JP", "Yu Mincho", Georgia, serif;
  --number: "Jost", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 100% 0,#d9eff4,transparent 55%),radial-gradient(ellipse at 0 100%,#e5eef1,transparent 45%),#f6faf9; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #297ca1; outline-offset: 5px; }
h1:focus { outline: none; }
.paper-grid { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(#8eb4c144 .7px,transparent 1px) 0 0 / 22px 22px; mask-image: linear-gradient(transparent,#000 65%,transparent); }
.page { position: relative; width: min(100% - 48px,480px); margin: 0 auto; padding: max(28px,env(safe-area-inset-top)) 0 max(24px,env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: #497282; font: 400 10px/1.4 var(--number); letter-spacing: .22em; }
.greeting { padding-top: 36px; }
.eyebrow { margin: 0; font: 300 19px/1.5 var(--number); letter-spacing: .06em; }
h1 { margin: 3px 0 14px; font: 400 46px/1.45 var(--serif); letter-spacing: -.04em; }
h1 span { margin-left: 8px; font-size: 16px; letter-spacing: .04em; }
p { line-height: 1.9; }
.lead { margin: 0; font-size: 12px; color: var(--muted); }
.line-study { display: block; width: 100%; height: auto; margin: 12px 0 22px; overflow: hidden; }
.line-study .guide { stroke: #9ec5d0; stroke-width: .6; }
.line-study .wash { stroke: #92d2dd; stroke-width: 8; opacity: .55; }
.line-study .line { stroke: #297ca1; stroke-width: 1.5; }
.line-study .ring { stroke: #739ba7; stroke-width: .8; }
.piece-entry { display: block; padding: 22px 24px 0; background: #fffefabf; border: 1px solid #bdd5df; border-radius: 3px 22px 3px 3px; box-shadow: 0 14px 40px #345c7010; }
.entry-top { display: flex; justify-content: space-between; align-items: center; }
.entry-number { display: block; font: 400 10px/1.6 var(--number); letter-spacing: .17em; color: #5a7e8d; }
.entry-arrow { font: 300 24px/1 var(--number); color: #5c8c9f; }
.piece-entry h2 { margin: 12px 0 8px; font: 500 25px/1.6 var(--serif); letter-spacing: .01em; }
.piece-entry p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.entry-action { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid var(--line); color: #216b88; font-size: 12px; }
.entry-action>span:last-child { font-size: 22px; }
.toki-entry { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 5px; margin-top: 6px; border-bottom: 1px solid var(--line); }
.toki-entry-title { display: block; margin-top: 5px; font: 400 15px/1.8 var(--serif); }
footer { margin-top: 28px; color: #6e8893; text-align: center; font: 300 10px/1.8 var(--number); letter-spacing: .09em; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--muted); font-size: 11px; }
.toki-heading { padding-top: 28px; text-align: center; }
.toki-heading .eyebrow { font-size: 11px; letter-spacing: .2em; }
.toki-heading h1 { margin: 14px 0 16px; font-size: 32px; }
.toki-heading p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.toki-time { display: grid; place-items: center; min-height: 178px; padding: 28px 0 12px; }
.toki-view { display: flex; flex-direction: column; align-items: center; }
.layers { flex-direction: row; align-items: baseline; justify-content: center; gap: 16px; }
.layers>div { display: flex; flex-direction: column; align-items: center; }
.toki-num { font: 300 62px/1.2 var(--number); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.toki-num.total { font-size: clamp(35px,11vw,68px); letter-spacing: -.025em; }
.toki-unit { color: var(--muted); font: 300 12px/2 var(--number); letter-spacing: .12em; }
.toki-sep { color: #b3cbd4; font: 300 30px/1 var(--number); }
.toki-since { margin: 6px 0 24px; text-align: center; color: var(--muted); font: 300 12px/1.8 var(--number); letter-spacing: .1em; }
.toki-modes { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; padding: 4px; margin: auto; border: 1px solid #d2e2e6; border-radius: 30px; background: #e7f0f1; }
.toki-modes button { min-height: 44px; min-width: 80px; padding: 9px 15px; border: 0; border-radius: 25px; background: transparent; color: var(--muted); font: 400 12px/1 var(--number); letter-spacing: .1em; cursor: pointer; }
.toki-modes button[aria-pressed=true] { color: #215d76; background: #fffefa; box-shadow: 0 2px 6px #214c6010; }
.toki-footnote { margin-top: 40px; padding-top: 19px; border-top: 1px solid var(--line); }
.studio-link { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 52px; padding: 12px 18px; border: 1px solid #b3ceda; border-radius: 3px 14px 3px 3px; background: #fffefa99; color: #216b88; font-size: 12px; }
.no-script { font-size: 12px; }
@media (min-width: 761px) {
  .page { padding-top: 48px; }
  .greeting { padding-top: 50px; }
  .line-study { margin-bottom: 26px; }
}
@media (max-width: 360px) {
  .page { width: calc(100% - 36px); }
  .piece-entry { padding-inline: 18px; }
  .layers { gap: 10px; }
  .toki-num { font-size: 54px; }
  .toki-modes button { min-width: 72px; padding-inline: 12px; }
}
@media (hover:hover) {
  .piece-entry:hover, .studio-link:hover { border-color: #6a9caf; background: #fffefa; }
  .toki-entry:hover { color: #19769b; }
}
@media (prefers-reduced-motion:no-preference) {
  .screen { animation: arrive .45s ease-out both; }
  .piece-entry, .studio-link { transition: border-color .2s, background .2s; }
  @keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
