/* RANK ATLAS — ゲーム横断 個人成績表 */
:root {
  --paper: #F1EDE3;
  --paper-hi: #F8F5EE;
  --paper-lo: #E5DFD1;
  --ink: #15130F;
  --ink-2: #47423A;
  --ink-3: #6B6458;
  --rule: rgba(21, 19, 15, .12);
  --rule-2: rgba(21, 19, 15, .26);
  --shu: #E03A1E;
  --shu-ink: #C2301A;
  --shu-soft: rgba(224, 58, 30, .1);
  --shu-deep: #C9331B;
  --shu-bright: #FF5B3D;
  --night: #11100E;
  --night-2: #1B1916;
  --night-3: #2A2722;
  --night-ink: #EFEAE0;
  --night-dim: #A39C8F;
  --night-rule: rgba(239, 234, 224, .1);
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --grotesk: "Archivo", "Zen Kaku Gothic New", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: clamp(16px, 4.2vw, 64px);
  --max: 1440px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; }
::selection { background: var(--shu); color: #fff; }
.report-intro, .footer-notes li { word-break: auto-phrase; text-wrap: pretty; }
.atlas-section { content-visibility: auto; }
.atlas-section { contain-intrinsic-size: auto 1100px; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--paper); text-decoration: none; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip-link:focus { transform: none; }
.noscript { padding: 24px var(--pad); }
.display { font-family: var(--mincho); font-weight: 800; font-feature-settings: "palt"; letter-spacing: -.01em; line-height: 1.16; word-break: auto-phrase; text-wrap: balance; }
.mono-label { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.grain {
  position: fixed; inset: 0; z-index: 120; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.2 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 0; background: transparent;
  font: 700 14px/1 var(--gothic); letter-spacing: .06em; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: scaleY(1); }
.btn-icon { width: 14px; height: 14px; flex: none; transition: transform .5s var(--ease); }
.btn:hover .btn-icon { transform: translateX(2px) rotate(90deg); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid::before { background: var(--shu-deep); }
.btn--solid:hover { border-color: var(--shu-deep); color: #fff; }
.btn--block { width: 100%; }
.btn[data-state="done"] { background: transparent; color: var(--ink); }
.btn[data-state="done"]::before { background: var(--ink); }
.btn[data-state="done"]:hover { color: var(--paper); border-color: var(--ink); }
.btn[data-state="done"] .btn-icon { transform: rotate(45deg); opacity: 0; width: 0; margin-left: -12px; }

.link-btn { padding: 4px 0; border: 0; background: none; font: 700 13px/1.4 var(--gothic); letter-spacing: .04em; color: var(--ink); background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .45s var(--ease), color .3s; }
.link-btn:hover { background-size: 100% 1px; color: var(--shu-ink); }
.link-btn.is-quiet { color: var(--ink-3); font-weight: 500; }

.seg { display: inline-flex; border: 1px solid currentColor; }
.seg button { min-height: 40px; padding: 0 16px; border: 0; background: none; font: 500 13px/1 var(--gothic); letter-spacing: .04em; color: inherit; opacity: .62; transition: background .35s var(--ease), color .35s, opacity .35s; }
.seg button + button { border-left: 1px solid currentColor; }
.seg button:hover { opacity: 1; }
.seg button[aria-pressed="true"] { opacity: 1; background: var(--ink); color: var(--paper); font-weight: 700; }
.dark-zone .seg button[aria-pressed="true"] { background: var(--night-ink); color: var(--night); }

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; gap: 32px; padding: 0 max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  color: var(--ink);
  transition: transform .6s var(--ease), background-color .4s, color .4s, box-shadow .4s;
}
.site-header.is-scrolled { background: rgba(241, 237, 227, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--rule); }
.site-header.is-dark { color: var(--night-ink); }
.site-header.is-dark.is-scrolled { background: rgba(17, 16, 14, .78); box-shadow: 0 1px 0 var(--night-rule); }
.site-header.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; transition: transform 1s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-180deg); }
.brand-word { font: 800 19px/1 var(--grotesk); font-stretch: 78%; letter-spacing: .02em; }
.brand-word b { font-weight: 400; }

.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 0; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.site-nav a i { font: 500 10px/1 var(--mono); font-style: normal; opacity: .55; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.issue { font: 500 11px/1 var(--mono); letter-spacing: .06em; opacity: .7; white-space: nowrap; }
.menu-toggle { display: none; }


/* ---------- picker ---------- */

.picker { position: absolute; left: 0; top: calc(100% + 10px); z-index: 30; display: flex; flex-direction: column; width: min(440px, 86vw); overflow: hidden; background: var(--paper-hi); border: 1px solid var(--ink); box-shadow: 8px 8px 0 -1px var(--paper), 8px 8px 0 0 var(--ink), 0 30px 60px -20px rgba(21, 19, 15, .35); font-size: 14px; line-height: 1.4; animation: picker-in .35s var(--ease); scrollbar-width: thin; }
.picker:focus { outline: none; }
.picker[hidden] { display: none; }
@keyframes picker-in { from { opacity: 0; transform: translateY(-6px); } }
.picker--rank { width: min(400px, 86vw); }
.picker--game { width: min(520px, 90vw); }
.pk-list { overflow: auto; overscroll-behavior: contain; padding: 6px 0; scrollbar-width: thin; }
.pk-list:focus { outline: none; }
.pk-search-wrap { display: flex; flex: none; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-bottom: 1px solid var(--ink); }
.pk-search-icon svg { display: block; width: 15px; height: 15px; }
.pk-search { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 500; }
.pk-search:focus { outline: none; }
.pk-search::placeholder { color: var(--ink-3); font-weight: 400; }
.pk-empty { padding: 22px 18px; font-size: 13px; color: var(--ink-3); }
.pk-group { padding-bottom: 4px; }
.pk-tier { position: sticky; top: -6px; z-index: 1; display: block; padding: 10px 18px 6px; background: var(--paper-hi); font: 500 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.pk-option { display: grid; align-items: center; gap: 14px; padding: 9px 18px; cursor: pointer; transition: background-color .2s; }
.picker--rank .pk-option { grid-template-columns: minmax(0, 1fr) auto 72px; }
.picker--game .pk-option { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 10px 18px; }
.pk-option:hover, .pk-option.is-active { background: var(--paper-lo); }
.pk-option[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.pk-option[aria-selected="true"] small, .pk-option[aria-selected="true"] .pk-range, .pk-option[aria-selected="true"] .pk-side { color: rgba(241, 237, 227, .7); }
.pk-rank { font: 800 16px/1.3 var(--mincho); }
.pk-range { font: 500 11px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.pk-bar { position: relative; height: 6px; background: var(--rule); }
.pk-bar i { position: absolute; top: 0; bottom: 0; background: var(--shu); }
.pk-art { width: 30px; height: 40px; }
.pk-main { display: grid; min-width: 0; }
.pk-main b { font-size: 14px; }
.pk-main small { overflow: hidden; font-size: 11px; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.pk-side { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--shu-ink); white-space: nowrap; }

/* ---------- share ---------- */

.share { display: flex; align-items: stretch; border: 1px solid var(--ink); }
.share-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px; border: 0; background: none; font: 700 13px/1 var(--gothic); letter-spacing: .04em; color: var(--ink); text-decoration: none; white-space: nowrap; transition: color .4s var(--ease); }
.share-btn + .share-btn { border-left: 1px solid var(--rule-2); }
.share-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease); }
.share-btn:hover { color: var(--paper); }
.share-btn:hover::before { transform: scaleY(1); }
.share-btn svg { width: 14px; height: 14px; flex: none; }

/* art frames */
.art { position: relative; display: block; overflow: hidden; background: var(--paper-lo); }
.art img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease), transform 1s var(--ease), filter .6s; }
.art.is-loaded img { opacity: 1; }
.art.is-icon img { object-fit: contain; padding: 22%; }
.art { container-type: inline-size; }
.art.is-type { display: grid; place-items: center; background: linear-gradient(160deg, #E9E2D2, #D3CAB6); color: var(--ink); }
.art.is-type::before { content: ""; position: absolute; inset: 7%; border: 1px solid rgba(21, 19, 15, .3); }
.art.is-type::after { content: ""; position: absolute; left: 7%; right: 7%; bottom: 7%; height: 3px; background: var(--shu); }
.art-type { position: relative; writing-mode: vertical-rl; font: 800 24cqw/1.05 var(--mincho); letter-spacing: .04em; font-feature-settings: "palt"; white-space: nowrap; }
.art.is-type[data-len="5"] .art-type, .art.is-type[data-len="6"] .art-type { font-size: 18cqw; }
.art.is-type[data-len="7"] .art-type, .art.is-type[data-len="8"] .art-type { font-size: 15cqw; }


/* ---------- score slip ---------- */

.slip { position: relative; background: var(--paper-hi); border: 1px solid var(--ink); box-shadow: 10px 10px 0 -1px var(--paper), 10px 10px 0 0 var(--ink); }
.slip-head { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--ink); font: 500 11px/1.2 var(--mono); letter-spacing: .12em; }
.slip-rows > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); border-bottom: 1px solid var(--rule-2); }
.slip-rows dt { display: flex; align-items: center; padding: 10px 16px; border-right: 1px solid var(--rule-2); font-size: 12px; color: var(--ink-2); letter-spacing: .1em; }
.slip-rows dd { display: flex; align-items: center; min-height: 48px; padding: 8px 18px; font-weight: 700; padding-right: 120px; }
.slip-subject { gap: 12px; line-height: 1.35; }
.slip-subject b { display: block; font-size: 15px; }
.slip-subject small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.slip-rank { font-family: var(--mincho); font-size: 20px; font-weight: 800; }

.slip-scores { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule-2); }
.score { padding: 14px 18px 18px; min-width: 0; }
.score + .score { border-left: 1px solid var(--rule-2); }
.score-label { font-size: 12px; letter-spacing: .1em; color: var(--ink-2); }
.score-value { display: flex; align-items: baseline; gap: 4px; margin-top: 10px; font-family: var(--grotesk); font-stretch: 68%; font-weight: 750; font-size: clamp(64px, 6.6vw, 112px); line-height: .84; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-value.is-long { font-size: clamp(52px, 5vw, 84px); }
.score-pre { align-self: flex-end; margin-right: 4px; font: 700 14px/1 var(--gothic); letter-spacing: .06em; }
.score-unit { font-size: .3em; font-weight: 600; letter-spacing: 0; }

.bell { padding: 12px 18px 8px; border-bottom: 1px solid var(--rule-2); }
.bell svg { width: 100%; height: auto; overflow: visible; }
.bell-curve { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.bell-base, .bell-tick { stroke: var(--ink); stroke-width: 1; }
.bell-label { font: 500 10px var(--mono); fill: var(--ink-3); text-anchor: middle; }
.bell-hatch { fill: var(--shu); }
.bell-mark-line { stroke: var(--shu); stroke-width: 1.6; }
.bell-dot { fill: var(--shu); stroke: var(--paper-hi); stroke-width: 2; }
.bell-you { font: 700 10px var(--gothic); fill: var(--shu-ink); letter-spacing: .08em; }

.slip-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; min-height: 60px; padding: 10px 18px 12px; font: 500 11px/1.5 var(--mono); color: var(--ink-3); }
#slip-range { white-space: nowrap; }
.score-value.is-xlong { font-size: clamp(40px, 3.8vw, 64px); }

.stamp { position: absolute; top: 46px; right: 18px; width: 104px; height: 104px; mix-blend-mode: multiply; opacity: .9; transform: rotate(-14deg); pointer-events: none; }
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp-ink { stroke: var(--shu); fill: var(--shu); }
.stamp-ink circle, .stamp-ink path { fill: none; }
.stamp-ink text { stroke: none; text-anchor: middle; }
.stamp-top { font: 800 11.5px var(--grotesk); font-stretch: 80%; letter-spacing: .06em; }
.stamp-date { font: 700 15px var(--mono); letter-spacing: .02em; }
.stamp-bottom { font: 700 17px var(--gothic); letter-spacing: .04em; }
.stamp.is-pressed { animation: repress .55s var(--ease) both; }
@keyframes repress { 0% { transform: rotate(-14deg) scale(1.22); opacity: 0; } 60% { transform: rotate(-14deg) scale(.97); opacity: .95; } 100% { transform: rotate(-14deg) scale(1); opacity: .9; } }
.is-swapped { animation: swap .6s var(--ease) both; }
@keyframes swap { from { opacity: 0; transform: translateY(.45em); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); } }

/* ---------- report (top) ---------- */

.report { padding: calc(var(--header-h) + clamp(28px, 4vw, 56px)) 0 clamp(64px, 7vw, 104px); }
.report-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 16px 32px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.report-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .25em; min-width: 0; font: 800 clamp(34px, 4.4vw, 60px)/1.15 var(--mincho); font-feature-settings: "palt"; letter-spacing: -.01em; }
.report-title { font: inherit; letter-spacing: inherit; }
.player { order: -1; display: inline-flex; align-items: baseline; gap: .2em; max-width: 100%; }
.player input { width: calc(var(--len, 3) * 1em + .2em); min-width: 2em; max-width: 8.5em; padding: 0 .05em; border: 0; border-bottom: 2px dashed var(--rule-2); background: none; font: inherit; letter-spacing: inherit; color: var(--ink); transition: border-color .3s; }
.player input:hover, .player input:focus { border-bottom-color: var(--shu); outline: none; }
.player-suffix { color: var(--ink-3); font-size: .62em; }
.report-meta { display: flex; gap: 18px; padding-bottom: 6px; font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; }
.report-share { display: flex; border: 1px solid var(--ink); }
.report-share .share-btn { min-height: 44px; padding: 0 14px; }
.share-btn:disabled { opacity: .35; cursor: not-allowed; }
.share-btn:disabled::before { display: none; }
.share-btn:disabled:hover { color: var(--ink); }
.report-intro { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.report-intro[hidden] { display: none; }

.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 420px); gap: clamp(28px, 4vw, 64px); margin-top: clamp(24px, 3vw, 40px); align-items: start; }
.report.is-empty .report-grid { grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 340px); }

.subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 42vw), 1fr)); gap: clamp(22px, 2.4vw, 34px) clamp(14px, 1.6vw, 22px); list-style: none; }
.subject { position: relative; min-width: 0; }
.subject-main { display: grid; gap: 4px; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.subject-cover { position: relative; display: block; margin-bottom: 8px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--paper-lo); box-shadow: 0 1px 0 rgba(21, 19, 15, .06), 0 16px 30px -18px rgba(21, 19, 15, .45); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.subject-art { position: absolute; inset: 0; }
.subject-art img { transition: transform 1s var(--ease), opacity .6s var(--ease); }
.subject:not(.subject--ghost) .subject-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 16, 14, .82) 0%, rgba(17, 16, 14, .35) 34%, transparent 58%); pointer-events: none; }
.subject-score { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; align-items: baseline; gap: 6px; color: #fff; }
.subject-score b { font: 750 clamp(38px, 3.6vw, 52px)/.9 var(--grotesk); font-stretch: 66%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.subject-score small { font-size: 11px; font-weight: 700; letter-spacing: .08em; opacity: .85; }
.subject-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.subject-rank { font: 800 13.5px/1.4 var(--mincho); color: var(--ink-2); }
.subject-main:hover .subject-cover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(21, 19, 15, .06), 0 26px 40px -20px rgba(21, 19, 15, .55); }
.subject-main:hover .subject-art img { transform: scale(1.04); }
.subject.is-current .subject-cover { outline: 2px solid var(--ink); outline-offset: 4px; }
.subject.is-linked .subject-cover { outline: 2px solid var(--shu); outline-offset: 4px; }
.subject-remove { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(248, 245, 238, .92); color: var(--ink); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--ease), background-color .3s; }
.subject-remove .icon svg { display: block; width: 12px; height: 12px; }
.subject:hover .subject-remove, .subject-remove:focus-visible { opacity: 1; transform: none; }
.subject-remove:hover { background: var(--ink); color: var(--paper); }
@media (hover: none) { .subject-remove { opacity: 1; transform: none; } }

.subject--skeleton { animation: none !important; }
.subject--skeleton .subject-cover { box-shadow: none; background: linear-gradient(100deg, var(--paper-lo) 40%, #EDE8DC 50%, var(--paper-lo) 60%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
.sk { font-style: normal; color: transparent; background: var(--paper-lo); }
@keyframes shimmer { to { background-position: -150% 0; } }
.subject--ghost .subject-art img { filter: grayscale(1) contrast(.9); opacity: .45; }
.subject--ghost .subject-main:hover .subject-art img { filter: grayscale(.2); opacity: .9; }
.ghost-plus { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper); transform: translate(-50%, -50%); transition: transform .5s var(--ease), background-color .3s; }
.ghost-plus svg { width: 26px; height: 26px; }
.subject--ghost .subject-main:hover .ghost-plus { transform: translate(-50%, -50%) scale(1.08); background: var(--shu-deep); }
.subject--ghost .subject-rank { font: 700 12.5px/1.4 var(--gothic); color: var(--shu-ink); }

.add-tile { display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 1.5px dashed var(--rule-2); background: transparent; color: var(--ink-2); transition: border-color .3s, background-color .4s var(--ease), color .3s; }
.add-plus svg { display: block; width: 34px; height: 34px; transition: transform .6s var(--ease); }
.add-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.add-tile:hover { border-style: solid; border-color: var(--ink); background: var(--ink); color: var(--paper); }
.add-tile:hover .add-plus svg { transform: rotate(90deg); }

.js .subject { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.js .subjects.is-instant .subject { animation: none; }
.subjects.is-instant .art img { opacity: 1; transition: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.subject.is-new { animation: pop .7s var(--ease) both; }
@keyframes pop { 0% { transform: scale(.9); opacity: 0; } 60% { transform: scale(1.02); opacity: 1; } 100% { transform: none; } }

.radar-panel { position: sticky; top: calc(var(--header-h) + 16px); padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--rule-2); }
.radar { position: relative; width: 100%; }
.radar svg { position: absolute; left: 0; top: 0; overflow: visible; }
.radar { aspect-ratio: 1 / 1.15; }
.radar-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 6px 10px; background: var(--paper); font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.radar-ring { fill: none; stroke: var(--rule-2); stroke-width: 1; }
.radar-ring.is-outer { stroke: var(--ink); }
.radar-ring.is-mid { stroke: var(--ink); stroke-dasharray: 3 5; }
.radar-spoke { stroke: var(--rule-2); stroke-width: 1; transition: stroke .3s; }
.radar-spoke.is-linked { stroke: var(--shu); }
.radar-tick { font: 500 10px var(--mono); fill: var(--ink-3); text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.radar-hatch-line { fill: var(--shu); }
.radar-tint { fill: rgba(224, 58, 30, .1); }
.radar-shape { fill: url(#radar-hatch); fill-opacity: .55; stroke: var(--shu); stroke-width: 2.2; stroke-linejoin: round; }
.radar-range { stroke: var(--shu); stroke-opacity: .45; stroke-width: 8; transition: stroke-opacity .3s; }
.radar-range.is-linked { stroke-opacity: .75; }
.radar-dot { fill: var(--paper); stroke: var(--shu); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease), fill .3s; }
.radar-dot.is-linked { fill: var(--shu); transform: scale(1.45); }
.radar-ghost { fill: rgba(21, 19, 15, .03); stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 5 6; }
.radar-label { position: absolute; display: flex; align-items: center; gap: 8px; width: max-content; transition: opacity .35s, transform .5s var(--ease); }
.radar-label.is-right { transform: translate(0, -50%); }
.radar-label.is-left { flex-direction: row-reverse; text-align: right; transform: translate(-100%, -50%); }
.radar-label.is-top { transform: translate(-50%, -100%); }
.radar-label.is-bottom { transform: translate(-50%, 0); }
.radar-label-text { display: grid; min-width: 0; line-height: 1.2; }
.radar-label.is-left .radar-label-text { justify-items: end; }
.radar-label.is-top .radar-label-text, .radar-label.is-bottom .radar-label-text { justify-items: center; text-align: center; }
.radar-game { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.radar-score { display: flex; align-items: baseline; gap: 4px; }
.radar-score b { font: 750 22px/1.05 var(--grotesk); font-stretch: 70%; letter-spacing: -.01em; }
.radar-label.is-compact .radar-game { font-size: 10.5px; }
.radar-label.is-compact .radar-score b { font-size: 17px; }
.radar-label.is-radial { align-items: baseline; gap: 6px; line-height: 1.2; white-space: nowrap; }
.radar-label.is-out-right { transform-origin: 0 50%; transform: translate(0, -50%) rotate(var(--rot)); }
.radar-label.is-out-left { transform-origin: 100% 50%; transform: translate(-100%, -50%) rotate(var(--rot)); }
.radar-label.is-radial .radar-game { font-size: 10px; font-weight: 500; color: var(--ink-3); }
.radar-label.is-radial .radar-score b { font-size: 14px; line-height: 1; }
.radar.is-focusing .radar-label:not(.is-linked) { opacity: .3; }
.radar.is-growing .radar-label, .radar.is-growing .radar-range { animation: radar-fade .9s var(--ease) .7s both; }
@keyframes radar-fade { from { opacity: 0; } }

/* ---------- detail ---------- */

.detail { padding: clamp(72px, 8vw, 120px) 0 clamp(72px, 8vw, 112px); border-top: 1px solid var(--rule-2); background: linear-gradient(var(--paper-hi), var(--paper) 40%); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.detail-main { display: grid; grid-template-columns: clamp(120px, 15vw, 220px) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px); align-items: start; }
.detail-cover { position: relative; aspect-ratio: 3 / 4; box-shadow: 0 30px 50px -28px rgba(21, 19, 15, .6); }
.detail-art { position: absolute; inset: 0; }
.detail-ask { min-width: 0; padding-top: 4px; }
.ask { display: grid; justify-items: start; gap: .15em; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.55; font-weight: 500; }
.ask-line { position: relative; display: flex; align-items: baseline; gap: .35em; min-width: 0; max-width: 100%; }
.ask-particle { flex: none; color: var(--ink-2); }
.field { position: relative; display: inline-flex; flex: 0 1 auto; align-items: center; gap: .32em; min-width: 0; max-width: 100%; padding: .02em .06em .04em; border-bottom: 2px solid var(--ink); font-weight: 700; cursor: pointer; transition: background-color .35s var(--ease), border-color .35s; }
.field:hover { background: var(--shu-soft); border-color: var(--shu); }
.field:has(select:focus-visible) { outline: 2px solid var(--shu); outline-offset: 4px; }
.field-value { min-width: 2em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: color .4s; }
.field-value.is-pending { color: var(--ink-3); font-weight: 500; }
.field-caret { width: .55em; height: .55em; flex: none; transition: transform .45s var(--ease); }
.field:hover .field-caret { transform: translateY(2px); }
.field select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; -webkit-appearance: none; appearance: none; }
.ask-line.is-open .field { background: var(--shu-soft); border-color: var(--shu); }
.ask-line.is-open .field-caret { transform: rotate(180deg); }
.detail-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px 14px; margin-top: clamp(24px, 3vw, 40px); }

.equivalents { grid-column: 1 / -1; margin-top: clamp(28px, 3vw, 44px); }
.block-title { padding-top: 14px; margin-bottom: 8px; border-top: 1px solid var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.eq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.eq { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 0; border: 0; border-bottom: 1px solid var(--rule-2); background: none; text-align: left; color: inherit; }
.eq::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--shu); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.eq:hover::after { transform: scaleX(1); }
.eq-art { width: 48px; height: 64px; }
.eq-body { display: flex; flex-direction: column; min-width: 0; }
.eq-game { overflow: hidden; font-size: 12px; color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
.eq.is-saved .eq-game::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--shu); vertical-align: 2px; }
.eq-rank-wrap { display: block; overflow: hidden; }
.eq-rank { display: block; overflow: hidden; font: 800 clamp(16px, 1.4vw, 20px)/1.35 var(--mincho); font-feature-settings: "palt"; white-space: nowrap; text-overflow: ellipsis; }
.eq-range { font: 500 12px/1.4 var(--mono); color: var(--ink-3); }
.more-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0; border: 0; border-bottom: 1px solid var(--rule-2); background: none; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink); transition: background-color .35s var(--ease), color .35s; }
.more-btn:hover { background: var(--ink); color: var(--paper); }
.more-btn[hidden] { display: none; }
.more-btn svg { width: 12px; height: 12px; transition: transform .45s var(--ease); }
.more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.shop { margin-top: clamp(56px, 6vw, 88px); }
.shop[hidden] { display: none; }
.shop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ink); }
.shop-head .block-title { padding-top: 0; border-top: 0; }
.pr { padding: 2px 7px; border: 1px solid var(--ink-3); font: 700 10px/1.3 var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.shop-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--rule-2); background: rgba(248, 245, 238, .6); text-decoration: none; transition: border-color .3s, background-color .4s var(--ease), transform .5s var(--ease); }
.shop-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; }
.shop-icon svg { width: 34px; height: 34px; }
.shop-text { display: grid; min-width: 0; line-height: 1.35; }
.shop-text b { font-size: 14.5px; }
.shop-text small { font-size: 11.5px; color: var(--ink-3); }
.shop-cta { margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--shu-ink); }
.shop-item:hover { border-color: var(--ink); background: var(--paper-hi); transform: translateY(-2px); }

/* ---------- titles ---------- */

.games-section { padding: clamp(80px, 9vw, 136px) 0; }
.section-title { font: 800 clamp(24px, 2.4vw, 32px)/1.3 var(--mincho); font-feature-settings: "palt"; }
.section-title .count { margin-left: 6px; font: 500 13px var(--mono); color: var(--ink-3); vertical-align: 4px; }
.games-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--ink); }
.search { display: flex; align-items: center; gap: 10px; width: min(320px, 100%); height: 42px; padding: 0 2px; border-bottom: 1px solid var(--ink); }
.search svg { width: 16px; height: 16px; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 16px; }
.search input:focus { outline: none; }
.search:focus-within { border-bottom-color: var(--shu); box-shadow: 0 1px 0 var(--shu); }
.catalog { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 18px; }
.title-card { display: grid; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.title-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; }
.title-art { position: absolute; inset: 0; }
.title-add { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 10px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; letter-spacing: .04em; transform: translateY(101%); transition: transform .45s var(--ease); }
.title-card:hover .title-add, .title-card:focus-visible .title-add { transform: none; }
.title-card:hover .title-art img { transform: scale(1.05); }
.title-name { font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.title-card.is-saved .title-name::before { content: "記入済み"; display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; color: var(--shu-ink); letter-spacing: .06em; }
.catalog.is-in .title-card { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.catalog-empty { grid-column: 1 / -1; padding: 40px 0; color: var(--ink-2); }

/* ---------- notes ---------- */


/* ---------- footer ---------- */

.site-footer { padding: 36px 0 40px; background: var(--night); color: var(--night-dim); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 16px 40px; }
.site-footer .brand { color: var(--night-ink); }
.footer-notes { display: grid; gap: 4px; list-style: none; font-size: 11.5px; line-height: 1.7; }
.footer-copy { font: 500 11px/1.7 var(--mono); white-space: nowrap; }

/* ---------- add sheet ---------- */

.sheet { width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 860px); padding: 0; border: 1px solid var(--ink); background: var(--paper-hi); color: var(--ink); box-shadow: 12px 12px 0 -1px var(--paper), 12px 12px 0 0 var(--ink); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .45s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px); } }
.sheet::backdrop { background: rgba(17, 16, 14, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; flex: none; height: 56px; border-bottom: 1px solid var(--ink); }
.sheet-head h2 { overflow: hidden; font: 800 18px/1.3 var(--mincho); text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.sheet-icon { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--ink); }
.sheet-icon[hidden] { visibility: hidden; display: grid; }
.sheet-icon svg { width: 15px; height: 15px; }
.sheet-icon:hover { color: var(--shu-ink); }
.sheet-step { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sheet-step[hidden] { display: none; }
.search--sheet { width: auto; margin: 14px 20px 0; flex: none; }
.add-games { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 14px; padding: 18px 20px 24px; overflow: auto; overscroll-behavior: contain; }
.add-game { display: grid; gap: 6px; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.add-art { aspect-ratio: 3 / 4; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.add-game:hover .add-art { transform: translateY(-3px); box-shadow: 0 14px 24px -14px rgba(21, 19, 15, .6); }
.add-game-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12px; font-weight: 700; line-height: 1.4; }
.add-game-done { font-size: 10.5px; font-weight: 700; color: var(--shu-ink); }
.add-empty { grid-column: 1 / -1; padding: 24px 0; font-size: 13px; color: var(--ink-3); }
.add-ranks { overflow: auto; overscroll-behavior: contain; padding: 0 0 16px; }
.rank-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: end; gap: 14px; padding: 14px 20px 12px; background: var(--paper-hi); border-bottom: 1px solid var(--rule-2); }
.rank-art { width: 54px; height: 72px; }
.rank-head small { display: block; font-size: 11px; color: var(--ink-3); }
.rank-head b { display: block; font-size: 15px; }
.rank-head-score { font: 500 10.5px var(--mono); color: var(--ink-3); }
.rank-group { padding-top: 4px; }
.rank-tier { padding: 12px 20px 4px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 48px; align-items: center; gap: 16px; width: 100%; min-height: 48px; padding: 8px 20px; border: 0; background: none; text-align: left; color: inherit; transition: background-color .2s; }
.rank-row:hover, .rank-row:focus-visible { background: var(--paper-lo); outline: none; }
.rank-row[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.rank-name { font: 800 16px/1.3 var(--mincho); }
.rank-bar { position: relative; height: 6px; background: var(--rule); }
.rank-bar i { position: absolute; top: 0; bottom: 0; background: var(--shu); }
.rank-score { font: 750 18px/1 var(--grotesk); font-stretch: 72%; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- toast ---------- */

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; display: flex; align-items: center; gap: 20px; max-width: calc(100vw - 32px); padding: 14px 18px 14px 20px; background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: 0 18px 40px rgba(17, 16, 14, .3); transform: translate(-50%, calc(100% + 40px)); transition: transform .6s var(--ease); pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); pointer-events: auto; }
.toast button { padding: 4px 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: #ffb4a3; font-weight: 700; font-size: 13px; white-space: nowrap; }

/* ---------- atlas ---------- */

.atlas-section { position: relative; background: var(--night); color: var(--night-ink); padding: clamp(64px, 7vw, 104px) 0 clamp(64px, 7vw, 96px); overflow: hidden; }
.atlas-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 20%, rgba(224, 58, 30, .1), transparent 70%); pointer-events: none; }

.atlas-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-bottom: 32px; }
.atlas-toolbar .section-title { color: var(--night-ink); }
.atlas-readout { margin-left: auto; }
.atlas-readout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 14px; color: var(--night-dim); }
.atlas-readout b { color: var(--night-ink); font-size: 15px; }
.zoom-hint { padding: 4px 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--shu-bright); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.zoom-hint:hover { color: var(--night-ink); }

.atlas-scroll { position: relative; }
.atlas { position: relative; --axis: 56px; --colgap: 6px; --colmin: 24px; }
.atlas-heads, .atlas-plot, .atlas-foot { display: grid; grid-template-columns: var(--axis) repeat(var(--cols, 25), minmax(var(--colmin), 1fr)); column-gap: var(--colgap); }
.atlas-corner { position: sticky; left: 0; z-index: 6; align-self: end; background: var(--night); font: 500 11px/1 var(--mono); color: var(--night-dim); }
.atlas-heads { align-items: end; padding-bottom: 14px; }
.atlas-head { display: grid; justify-items: center; align-content: end; gap: 9px; min-width: 0; padding: 0; border: 0; background: none; color: var(--night-dim); transition: color .3s; }
.atlas-art { width: 100%; aspect-ratio: 3 / 4; opacity: .5; filter: grayscale(.7); outline: 1.5px solid transparent; outline-offset: 2px; transition: opacity .4s, filter .4s, outline-color .3s; }
.atlas-head:hover .atlas-art, .atlas-head.is-base .atlas-art { opacity: 1; filter: none; }
.atlas-head.is-base .atlas-art { outline-color: var(--shu-bright); }
.atlas-head:hover, .atlas-head.is-base { color: var(--night-ink); }
.atlas-head-name { max-height: 96px; overflow: hidden; writing-mode: vertical-rl; font-size: 12px; font-weight: 700; letter-spacing: .05em; line-height: 1.1; white-space: nowrap; }

.atlas-plot { position: relative; height: clamp(460px, 64vh, 660px); outline-offset: 8px; touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.atlas-plot.is-dragging { cursor: grabbing; }
.atlas-grid { position: absolute; inset: 0; pointer-events: none; }
.tick { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--night-rule); animation: tick-in .6s var(--ease) both; }
.tick em { position: sticky; left: 0; z-index: 5; display: inline-block; vertical-align: top; padding-right: 8px; background: var(--night); font: 500 10.5px/1 var(--mono); font-style: normal; color: var(--night-dim); transform: translateY(-50%); }
.tick.is-top em { color: var(--night-ink); }
@keyframes tick-in { from { opacity: 0; } }

.atlas-track { position: relative; grid-row: 1; height: 100%; }
.atlas-bar { position: absolute; inset: 0; overflow: hidden; background: var(--night-2); }
.band { position: absolute; left: 0; right: 0; box-shadow: inset 0 -1px 0 rgba(17, 16, 14, .5); transition: top .9s var(--ease), height .9s var(--ease), filter .3s; }
.band.is-tier { box-shadow: inset 0 -1px 0 rgba(17, 16, 14, .5), inset 0 1.5px 0 rgba(17, 16, 14, .95); }
.band.is-hover { filter: brightness(1.4); }
.band.is-hit { z-index: 3; background: var(--shu) !important; filter: none; box-shadow: 0 0 22px 2px rgba(224, 58, 30, .6); }
.band.is-hit.is-coarse { background: repeating-linear-gradient(-45deg, rgba(224, 58, 30, .62) 0 3px, rgba(224, 58, 30, .3) 3px 7px) !important; box-shadow: inset 0 0 0 1.5px var(--shu); }
.atlas-track.is-base .atlas-bar { box-shadow: 0 0 0 1.5px var(--night-ink); }

.atlas-ribbons { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.atlas-ribbons path { fill: rgba(224, 58, 30, .2); stroke: rgba(224, 58, 30, .6); stroke-width: 1; vector-effect: non-scaling-stroke; }
.atlas-line { position: absolute; left: 0; right: 0; z-index: 4; height: 0; border-top: 2px solid var(--shu); box-shadow: 0 0 22px 1px rgba(224, 58, 30, .7); pointer-events: none; transition: top .7s var(--ease); }
.atlas-line.is-out { border-top-style: dashed; box-shadow: none; }
.atlas-knob { position: sticky; left: 0; display: inline-block; vertical-align: top; padding: 6px 9px; border-radius: 99px; background: var(--shu-deep); color: #fff; font: 700 11.5px/1 var(--mono); white-space: nowrap; pointer-events: auto; cursor: grab; touch-action: none; transform: translateY(calc(-50% - 1px)); }
.atlas-knob::after { content: ""; position: absolute; inset: -12px -8px; }
.atlas.is-sweeping .atlas-line { top: 0 !important; }
.is-dragging .atlas-line, .is-dragging .strip-mark { transition-duration: .12s !important; transition-delay: 0s !important; }
.atlas-ghost { position: absolute; left: 0; right: 0; top: 0; z-index: 4; height: 0; border-top: 1px dashed rgba(239, 234, 224, .55); pointer-events: none; }
.atlas-ghost span { position: absolute; right: 0; top: 0; transform: translateY(-120%); font: 500 10.5px/1 var(--mono); color: var(--night-ink); }
.atlas-tip[hidden] { display: none; }
.atlas-tip { position: absolute; left: 0; top: 0; z-index: 7; display: grid; gap: 3px; padding: 10px 13px; background: var(--night-ink); color: var(--night); white-space: nowrap; pointer-events: none; box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
.atlas-tip b { font: 800 16px/1.3 var(--mincho); }
.atlas-tip span { font: 500 11px/1.3 var(--mono); color: #5b554b; }
.atlas-tip .tip-game { display: flex; align-items: center; gap: 8px; font-family: var(--gothic); font-weight: 700; color: var(--night); }

.atlas-foot { align-items: start; padding-top: 14px; }
.atlas-foot .atlas-corner { align-self: start; }
.atlas-foot-label { justify-self: center; max-height: 170px; overflow: hidden; writing-mode: vertical-rl; font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1.1; color: var(--shu-bright); white-space: nowrap; text-overflow: ellipsis; transition: color .3s; }
.atlas-foot-label.is-base { color: var(--night-ink); }

/* ---------- motion ---------- */

.slip { transition: transform .9s var(--ease); }
.slip.is-tilting { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
@media (prefers-reduced-motion: no-preference) { .js .stamp:not(.is-pressed) { opacity: 0; } }

.js .atlas .atlas-bar { clip-path: inset(0 0 100% 0); }
.js .atlas .atlas-line, .js .atlas .atlas-ribbons, .js .atlas .atlas-foot { opacity: 0; }
.js .atlas.is-in .atlas-bar { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease-io) calc(var(--i, 0) * 26ms); }
.js .atlas.is-in .atlas-line, .js .atlas.is-in .atlas-ribbons { opacity: 1; transition: opacity .5s .7s, top 1.4s var(--ease-io); }
.js .atlas.is-in .atlas-foot { opacity: 1; transition: opacity .8s 1.6s; }
.js .atlas.is-in.is-settled .atlas-line { transition: top .7s var(--ease); }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .catalog { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .report-grid, .report.is-empty .report-grid { grid-template-columns: minmax(0, 1fr); }
  .radar-panel { position: static; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--rule-2); }
  .radar-panel .radar { max-width: 520px; margin: 0 auto; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .slip { max-width: 640px; }
  .catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .add-games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header { gap: 16px; }
  .menu-toggle { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 8px 0; border: 0; background: none; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: inherit; }
  .menu-toggle-lines { position: relative; width: 20px; height: 8px; }
  .menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
  .menu-toggle-lines::before { top: 0; }
  .menu-toggle-lines::after { top: 6.5px; }
  .is-menu-open .menu-toggle-lines::before { top: 3.25px; transform: scaleX(.8) rotate(45deg); }
  .is-menu-open .menu-toggle-lines::after { top: 3.25px; transform: scaleX(.8) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 0; padding: 96px var(--pad) 48px; background: var(--paper); color: var(--ink); visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io), opacity .4s, visibility 0s .7s; }
  .is-menu-open .site-nav { visibility: visible; opacity: 1; clip-path: inset(0); transition: clip-path .7s var(--ease-io), opacity .2s; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule-2); font-family: var(--mincho); font-size: clamp(28px, 8vw, 44px); font-weight: 800; gap: 16px; }
  .site-nav a i { font-size: 11px; }
  .site-nav a::after { display: none; }
  .is-menu-open .site-header { color: var(--ink); background: transparent; box-shadow: none; backdrop-filter: none; }
  .is-menu-open body { overflow: hidden; }

  .report-head { grid-template-columns: minmax(0, 1fr) auto; }
  .report-name { grid-column: 1 / -1; }
  .report-meta { align-self: center; padding: 0; }
  .eq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 14px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }

  .atlas-scroll { margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 10px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--night-3) transparent; }
  .atlas { --axis: 40px; --colgap: 4px; --colmin: 30px; min-width: calc(var(--axis) + var(--cols, 25) * (var(--colmin) + var(--colgap))); }
  .atlas-plot { height: clamp(420px, 62vh, 540px); touch-action: manipulation; }
  .atlas-knob { padding: 5px 6px; font-size: 10px; }
  .atlas-head-name { font-size: 11px; }
  .atlas-foot-label { font-size: 11px; max-height: 150px; }
  .atlas-readout { flex-basis: 100%; margin-left: 0; }
}

@media (max-width: 560px) {
  :root { --header-h: 56px; }
  body { font-size: 15px; }
  .report { padding-top: calc(var(--header-h) + 20px); }
  .report-name { font-size: 30px; }
  .report-share .share-btn { min-height: 40px; padding: 0 12px; }
  .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .subject-score b { font-size: 40px; }
  .subject-name { font-size: 13.5px; }
  .detail-main { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .detail-ask { display: contents; }
  .ask { grid-column: 2; align-self: center; }
  .detail-actions { margin-top: 4px; }
  .ask { font-size: 20px; }
  .detail-actions { display: grid; grid-template-columns: minmax(0, 1fr); grid-column: 1 / -1; }
  .share { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .share-btn { justify-content: center; padding: 0 8px; }
  .btn { padding: 0 14px; font-size: 13px; }
  .slip { box-shadow: 6px 6px 0 -1px var(--paper), 6px 6px 0 0 var(--ink); }
  .slip-rows > div { grid-template-columns: 64px minmax(0, 1fr); }
  .slip-rows dt { padding: 10px 12px; font-size: 11px; }
  .slip-rows dd { padding: 8px 12px; }
  .stamp { width: 82px; height: 82px; top: auto; bottom: -20px; right: -8px; }
  .score { padding: 12px 12px 16px; }
  .score-value { font-size: 17vw; }
  .score-value.is-long { font-size: 13vw; }
  .score-value.is-xlong { font-size: 10vw; }
  .score-pre { font-size: 12px; }
  .bell, .slip-foot { padding-left: 12px; padding-right: 12px; }
  .slip-foot { grid-template-columns: minmax(0, 1fr); min-height: 84px; padding-right: 84px; }
  .eq-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { width: 100%; }
  .seg button { padding: 0 11px; }
  .tick em { font-size: 9.5px; }
  .sheet { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; box-shadow: none; }
  .add-games { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; padding: 16px; }
  .search--sheet { margin: 12px 16px 0; }
  .rank-row { grid-template-columns: minmax(0, 1fr) 64px 44px; padding: 8px 16px; }
  .rank-head { padding: 12px 16px; }
  .rank-tier { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
