
:root {
  --paper: #EBF0ED; --card: #F7FAF8; --card2: #F0F4F2; --ink: #13212A; --ink2: #4A5A61; --ink3: #5F6E72;
  --rule: #C7D2CE; --rule2: #DCE4E1;
  --accent: #8C1D3C; --accent-ink: #FFFFFF; --accent-soft: #F3E3E8;
  --stamp: #0F6E68; --stamp-soft: #DCEDEA; --gold: #9C7020;
  --good: #2B7A4E; --bad: #B0362B; --warn: #A8730F; --loss: #2C2F3A;
  --grid-lo: #E3E8E6; --grid-hi: #0F6E68;
  --shadow: 0 1px 0 rgba(19,33,42,.04), 0 8px 24px -12px rgba(19,33,42,.18);
  --f-display: 'Hahmlet', 'Noto Serif KR', 'Apple SD Gothic Neo', serif;
  --f-body: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', 'IBM Plex Sans KR', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --tg-land: #CBD5D1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1316; --card: #141D21; --card2: #1A2428; --ink: #E1E9E6; --ink2: #A3B2AF; --ink3: #8A9A96;
    --rule: #2A383D; --rule2: #1D282C;
    --accent: #E2678A; --accent-ink: #1B0910; --accent-soft: #3A1C26;
    --stamp: #4CC0AF; --stamp-soft: #12302D; --gold: #D9AF59;
    --good: #5CC38B; --bad: #F07B6B; --warn: #E2B04C; --loss: #C9CDD8;
    --grid-lo: #1B2629; --grid-hi: #4CC0AF;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    --tg-land: #253237;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0D1316; --card: #141D21; --card2: #1A2428; --ink: #E1E9E6; --ink2: #A3B2AF; --ink3: #8A9A96;
  --rule: #2A383D; --rule2: #1D282C;
  --accent: #E2678A; --accent-ink: #1B0910; --accent-soft: #3A1C26;
  --stamp: #4CC0AF; --stamp-soft: #12302D; --gold: #D9AF59;
  --good: #5CC38B; --bad: #F07B6B; --warn: #E2B04C; --loss: #C9CDD8;
  --grid-lo: #1B2629; --grid-hi: #4CC0AF;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  --tg-land: #253237;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--paper); color: var(--ink); }
body { font-family: var(--f-body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.lbl { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); font-weight: 600; }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: 20px; }
@media (max-width: 520px) { .wrap { padding-inline: 16px; } }

#intro { position: relative; padding-block: 40px 64px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.heroside { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kicker { font-family: var(--f-mono); font-size: 12px; color: var(--stamp); letter-spacing: .02em; }
.kicker .nw { white-space: nowrap; }
#certFields .nw { display: inline-block; max-width: 100%; word-break: keep-all; overflow-wrap: anywhere; }
.hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(64px, 12vw, 168px); line-height: .92; letter-spacing: -.03em; margin: 12px 0 clamp(24px, 3vw, 44px); text-wrap: balance; }
.hero h1 .frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; font-size: .42em; line-height: 1; margin-left: .08em; }
.hero h1 .frac b { border-bottom: .06em solid var(--accent); padding: 0 .1em .06em; color: var(--accent); }
.hero h1 .frac i { font-style: normal; padding-top: .08em; }
.lede { font-size: 18px; color: var(--ink2); max-width: 34em; margin: 0; text-wrap: pretty; }
.counter { margin-top: 28px; display: flex; gap: 28px; flex-wrap: wrap; }
.counter div { display: flex; flex-direction: column; }
.counter strong { font-family: var(--f-display); font-size: 34px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.counter span { font-size: 13px; color: var(--ink3); }
.odds { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 20px 22px; box-shadow: var(--shadow); }
.odds h2 { font-family: var(--f-display); font-size: 20px; margin: 0 0 4px; font-weight: 600; }
.odds p.sub { margin: 0 0 14px; font-size: 13px; color: var(--ink3); text-wrap: pretty; }
.orow { display: grid; grid-template-columns: 8.5em 1fr 3.4em; gap: 10px; align-items: center; font-size: 14px; padding-block: 3px; }
.orow .bar { height: 8px; background: var(--rule2); border-radius: 1px; overflow: hidden; }
.orow .bar i { display: block; height: 100%; background: var(--stamp); }
.orow .v { text-align: right; font-family: var(--f-mono); font-size: 13px; color: var(--ink2); }
.opts { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-end; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: var(--card); }
.seg button { flex: 1 1 auto; border: 0; background: none; padding: 9px 14px; font-size: 14px; color: var(--ink2); }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.optgroup { display: flex; flex-direction: column; gap: 8px; }
.optgroup .hint { font-size: 12.5px; color: var(--ink3); max-width: 24em; }
.erayr { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink2); }
.erayr label { white-space: nowrap; }
.erayr .sel { padding-block: 7px; min-width: 7.5em; }
.feed li.hist .x { color: var(--ink2); font-size: 14px; border-left: 2px solid var(--rule); padding-left: 8px; }
.feed li.hist .a::after { content: ' ◆'; color: var(--ink3); font-size: 9px; vertical-align: 2px; }
.cta { display: inline-flex; align-items: center; gap: 12px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 4px; padding: 16px 28px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; box-shadow: var(--shadow); }
.cta:hover { filter: brightness(1.06); }
.ghost { background: transparent; border: 1px solid var(--rule); color: var(--ink); border-radius: 4px; padding: 12px 18px; font-size: 15px; }
.ghost:hover { border-color: var(--ink3); }
.ghost.sm { padding: 6px 12px; font-size: 13px; line-height: 1.35; }
.ctarow { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.opts .ctarow { align-items: stretch; }
.notes { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--rule); padding-top: 24px; }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } }
.notes h3 { font-size: 14px; margin: 0 0 6px; }
.notes p { margin: 0; font-size: 13.5px; color: var(--ink2); }
.pastlives { margin-top: 28px; }
.lookback { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; }
.lookback li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.lookback small { color: var(--ink3); font-size: 12px; }
.pastlives h3 > span:first-child { white-space: nowrap; }
.pl-hint { margin: -2px 0 14px; font-size: 13.5px; color: var(--ink2); word-break: keep-all; }
.pl-store { display: flex; align-items: center; gap: 10px 14px; margin: -6px 0 16px; padding: 10px 12px; border: 1px dashed var(--rule); border-radius: 6px; }
.pl-store p { flex: 1; margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink2); word-break: keep-all; }
.pl-store button { flex: none; padding: 7px 12px; font-size: 13px; }
@media (max-width: 480px) { .pl-store { flex-direction: column; align-items: stretch; } .pl-store button { align-self: flex-start; } }
.a2-tip { display: flex; align-items: center; gap: 10px 14px; margin: -8px 0 16px; padding: 10px 12px; border-radius: 6px; background: var(--stamp-soft); }
.a2-tip p { flex: 1; margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink2); word-break: keep-all; }
.a2-tip p b { color: var(--ink); font-weight: 600; }
.a2-act { display: flex; gap: 8px; flex: none; }
.a2-tip .a2-go { border-color: var(--stamp); color: var(--stamp); font-weight: 600; }
@media (max-width: 480px) { .a2-tip { flex-direction: column; align-items: stretch; } .a2-act { align-self: flex-start; } }
.a2-top { margin: 12px 0 14px; max-width: 640px; border: 1px solid var(--stamp); flex-wrap: wrap; }
.a2-top[hidden] { display: none; }
.a2-end { margin: 18px 0 6px; }
.a2-ic { width: 40px; height: 40px; border-radius: 10px; flex: none; }
@media (max-width: 480px) { .a2-top { flex-direction: row; align-items: center; } .a2-top p { flex: 1 1 200px; } .a2-top .a2-act { flex-basis: 100%; } }
.a2-steps { margin: 14px 0 0; padding-left: 22px; line-height: 1.7; }
.a2-steps li { margin: 4px 0; }
.a2-note { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink2); word-break: keep-all; }
.mv .mv-h { margin: 20px 0 6px; font-size: 14.5px; }
.mv .mv-what { margin: 0; font-size: 14px; color: var(--ink); word-break: keep-all; }
.mv .mv-hint { margin: 0; font-size: 13.5px; color: var(--ink2); word-break: keep-all; }
.mv .mv-in { display: flex; gap: 8px; margin: 10px 0 0; }
.mv .mv-in input { flex: 1; min-width: 0; max-width: 220px; font-size: 16px; font-family: var(--f-mono); letter-spacing: .06em; }
.mv .mv-code { margin: 14px 0 0; font-family: var(--f-mono); font-size: 26px; letter-spacing: .12em; color: var(--ink); user-select: all; -webkit-user-select: all; }
.mv .mv-btns { flex-wrap: wrap; }
.pl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule2); }
.pl { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule2); }
.pl-x { flex: 1; min-width: 0; }
.pl-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pl-h b { font-family: var(--f-display); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.pl-h span { font-size: 13px; color: var(--ink2); }
.pl-c { font-size: 13px; color: var(--ink3); margin-top: 2px; }
.pl-q { display: block; margin-top: 4px; font-family: var(--f-display); font-size: 14px; color: var(--stamp); quotes: '“' '”'; word-break: keep-all; }
.pl-open { flex: none; font: inherit; font-size: 13px; line-height: 1.2; padding: 8px 12px; border: 1px solid var(--stamp); border-radius: 999px; background: transparent; color: var(--stamp); white-space: nowrap; }
.pl-open:hover, .pl-open:focus-visible { background: var(--stamp-soft); }
.pl-more { margin-top: 12px; font-size: 14px; padding: 8px 14px; }
.pl-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.pl-edit button { font-size: 13.5px; padding: 8px 14px; }
.pl-edit .pl-hint { flex-basis: 100%; margin: 0; font-size: 13px; }
.pl-del { flex: none; font: inherit; font-size: 13px; line-height: 1.2; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink2); white-space: nowrap; }
.pl-del[data-sure], #pastAll[data-sure] { border-color: var(--stamp); color: var(--paper); background: var(--stamp); }
.pastopen { all: unset; cursor: pointer; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--stamp); }
.pastopen:hover, .pastopen:focus-visible { color: var(--stamp); }
.pastopen:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
.tblwrap { overflow-x: auto; }

#roll { min-height: 100%; display: grid; place-items: center; padding-block: 40px; }
.roller { text-align: center; min-height: 70vh; min-height: 70svh; display: flex; flex-direction: column; justify-content: center; }
.roller .country { font-family: var(--f-display); font-size: clamp(44px, 9vw, 110px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; min-height: 1.1em; }
.roller .meta { font-family: var(--f-mono); color: var(--ink3); font-size: 13px; margin-top: 10px; }
.cert { width: min(720px, 100%); background: var(--card); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cert .band { background: var(--accent); color: var(--accent-ink); padding: 12px 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cert .band b { font-family: var(--f-display); font-size: 18px; font-weight: 600; }
.cert .band span { font-family: var(--f-mono); font-size: 12px; opacity: .85; }
.cert .body { padding: 22px; position: relative; }
.cert h2 { font-family: var(--f-display); font-size: clamp(30px, 5vw, 44px); margin: 0; line-height: 1.15; font-weight: 700; }
.cert .story { margin: 12px 0 18px; font-size: 16px; color: var(--ink2); text-wrap: pretty; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; border-top: 1px dashed var(--rule); padding-top: 16px; }
@media (max-width: 560px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fields div { min-width: 0; }
.fields b { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; text-wrap: balance; }
.certmap { margin: 14px 0 0; }
.certmap canvas { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.certmap figcaption { margin-top: 6px; text-align: center; font-size: 13px; color: var(--ink2); }
.lifemap { margin: 0; padding: 4px 22px 20px; border-top: 1px dashed var(--rule); }
.lifemap canvas { display: block; width: 100%; max-width: 640px; height: auto; margin: 10px auto 0; }
.lifemap figcaption { max-width: 640px; margin: 8px auto 0; font-size: 13.5px; color: var(--ink2); line-height: 1.6; display: flex; flex-direction: column; gap: 2px; text-wrap: pretty; }
.lifemap figcaption b { color: var(--ink); font-weight: 600; }
.lifemap .lm-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; }
.lifemap .lm-k { display: inline-flex; align-items: center; gap: 6px; }
.lifemap .lm-k i { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--stamp); }
.lifemap .lm-k i.lm-trip { border-top: 1.5px dashed var(--ink2); }
@media (max-width: 560px) { .lifemap { padding: 2px 14px 16px; } }
.cert .odds-line { margin-top: 16px; padding: 12px 14px; background: var(--stamp-soft); border-radius: 3px; font-size: 13.5px; color: var(--ink); }
.cert .foot { padding: 0 22px 22px; display: flex; justify-content: flex-end; }
.certpace { margin: 12px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink2); word-break: keep-all; }
.guilloche { position: absolute; inset: 0; color: var(--stamp); opacity: .09; pointer-events: none; }

.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; padding-block: 10px; flex-wrap: wrap; }
.brand { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.brand em { font-style: normal; color: var(--accent); }
.agebox { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 200px; }
.agebox .age { font-family: var(--f-display); font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.agebox .age small { font-size: 18px; font-weight: 500; margin-left: 2px; }
.agebox .yr { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 4px; }
.agebox .yr .t { font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog { height: 4px; background: var(--rule2); border-radius: 2px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.speed { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.speed button { border: 1px solid var(--rule); background: var(--card); border-radius: 3px; padding: 6px 10px; font-size: 13px; font-family: var(--f-mono); min-width: 40px; }
.speed button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.speed .ff { font-family: var(--f-body); }
.speed #pauseQ[aria-pressed="true"] { background: var(--card); color: inherit; border-color: var(--rule); }
.speed #pauseQ[aria-pressed="false"] { color: var(--ink3); }
.speed { position: relative; }
.speedhint { position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; margin: 0; width: max-content; max-width: min(300px, calc(100vw - 32px));
  background: var(--ink); color: var(--paper); font-size: 13.5px; line-height: 1.45; padding: 9px 12px; border-radius: 8px; box-shadow: var(--shadow); word-break: keep-all; pointer-events: none; }
.speedhint::before { content: ''; position: absolute; top: -6px; left: calc(var(--ax, 120px) - 6px); border: 6px solid transparent; border-top: 0; border-bottom-color: var(--ink); }
.speed button.hl { box-shadow: 0 0 0 2px var(--accent); }
.fohint { margin: 4px 0 8px; padding: 8px 11px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 13.5px; line-height: 1.45; word-break: keep-all; }
.mb-fo.hl { box-shadow: 0 0 0 2px var(--accent); }
@media (prefers-reduced-motion: no-preference) { .mb-fo.hl { animation: hlpulse 1.2s ease-in-out 3; } }
@media (prefers-reduced-motion: no-preference) { .speed button.hl { animation: hlpulse 1.2s ease-in-out 3; } }
@keyframes hlpulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 35%, transparent); } }
.morebtn { display: none; }
.more { display: contents; }
.sps { display: contents; }
.speed .ffsh { display: none; }
.speed .more .mo { display: none; }
.p-fam { scroll-margin-top: 64px; }
.life { display: grid; grid-template-columns: 320px minmax(0, 1fr) 340px; gap: 20px; padding-block: 20px 60px; align-items: start; }
@media (max-width: 1180px) { .life { grid-template-columns: 320px minmax(0, 1fr); } .col3 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 800px) { .life { grid-template-columns: 1fr; } .col3 { grid-template-columns: 1fr; } }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 16px; min-width: 0; }
.panel > h3 { margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.panel > h3 .lbl { font-size: 11px; }
.idcard { position: relative; overflow: hidden; padding: 0; }
.idcard .top { background: var(--accent); color: var(--accent-ink); padding: 8px 14px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; }
.idcard .in { position: relative; padding: 14px 14px 10px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
.portrait { width: 64px; height: 80px; border: 1px solid var(--rule); border-radius: 2px; background: var(--card2); display: grid; place-items: center; overflow: hidden; }
.portrait svg { width: 100%; height: 100%; }
.portrait canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.idcard .nm { font-family: var(--f-display); font-size: 22px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.idcard dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 8px 0 0; font-size: 13px; }
.idcard dt { color: var(--ink3); font-size: 12px; }
.idcard dd { margin: 0; overflow-wrap: anywhere; }
.mrz { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--ink2); padding: 8px 14px 12px; border-top: 1px dashed var(--rule); position: relative; white-space: nowrap; overflow: hidden; }
.qdots { display: inline-flex; gap: 3px; vertical-align: middle; }
.qdots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink3); }
.qdots i.on { background: var(--ink); border-color: var(--ink); }
.stat { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) 2.2em; gap: 10px; align-items: center; font-size: 13.5px; padding-block: 4px; }
.stat .bar { height: 10px; background: var(--rule2); border-radius: 1px; overflow: hidden; position: relative; }
.stat .bar i { position: absolute; inset: 0 auto 0 0; transition: width .5s ease; }
.stat .v { text-align: right; font-family: var(--f-mono); font-size: 13px; }
.stat.flash .bar { box-shadow: 0 0 0 2px var(--accent-soft); }
.money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; border-top: 1px dashed var(--rule); padding-top: 12px; }
.money b { display: block; font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.money small { color: var(--ink3); font-size: 12px; display: block; }
.spend { margin-top: 10px; }
.spend .sbar { display: flex; height: 8px; border-radius: 1px; overflow: hidden; background: var(--rule2); }
.spend .sbar i { display: block; height: 100%; }
.spend .keys { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--ink2); margin-top: 6px; }
.spend .keys span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 1px; background: var(--c); vertical-align: -1px; }
.fam { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.fam .row { display: flex; justify-content: space-between; gap: 10px; }
.fam .row span:first-child { color: var(--ink3); }
.fam .row span:last-child { text-align: right; overflow-wrap: anywhere; }
.fam .gone { text-decoration: line-through; color: var(--ink3); }
.fam .exn { color: var(--ink3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.25; text-align: left; }
.chip small { font-size: 11px; color: var(--ink3); }
.chip[aria-pressed="true"] { background: var(--stamp); border-color: var(--stamp); color: var(--paper); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .8; }
.status { font-size: 14px; color: var(--ink2); margin-bottom: 10px; }
.status b { color: var(--ink); font-weight: 600; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; overscroll-behavior: contain; }
.feedmore { display: none; }
@media (max-width: 800px) {
  #feed { max-height: none; overflow: visible; }
  #feed.all { max-height: min(55vh, 480px); overflow-y: auto; overscroll-behavior-y: auto; border-top: 1px solid var(--rule2); border-bottom: 1px solid var(--rule2); }
  #feed:not(.all) > li:nth-child(n+7) { display: none; }
  .p-feed .feedmore { display: block; margin: 12px auto 2px; padding: 9px 16px; min-height: 38px; font-size: 14px; }
}
.feed li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule2); font-size: 14.5px; animation: in .4s ease; }
@keyframes in { from { background: var(--stamp-soft); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .feed li { animation: none; } .stat .bar i { transition: none; } }
.feed .a { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); padding-top: 3px; }
.feed .x { min-width: 0; }
.feed .f { display: block; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink3); margin-top: 3px; line-height: 1.45; }
.feed .f::before { content: '자료 '; color: var(--stamp); font-weight: 600; }
html[lang="en"] .feed .f::before { content: 'Data '; }
html[lang="ja"] .feed .f::before { content: '資料 '; }
.feed .fa { font-size: 12px; font-weight: 400; color: var(--ink3); margin-left: 6px; word-break: keep-all; }
.feed li.big .x { font-weight: 600; }
.feed li.hasfx, #feed li.tap { cursor: pointer; }
.feed .stb { display: none; }
#feed li.open .stb { display: flex; width: fit-content; margin: 6px 0 0; padding: 5px 10px; font: inherit; font-size: 12.5px; font-weight: 400; line-height: 1.2; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink2); }
#feed li.open .stb[aria-pressed="true"] { border-color: var(--gold); color: var(--ink); }
.stlist { list-style: none; margin: 10px 0 0; padding: 0; }
.stlist li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--rule); }
.stlist .a { flex: none; min-width: 3.4em; color: var(--ink3); font-size: 13px; }
.stlist .x { flex: 1; font-size: 14px; line-height: 1.45; }
.stlist .stx { flex: none; padding: 6px 10px; font: inherit; font-size: 12.5px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink2); cursor: pointer; }
.feed li.starred .a::before { content: '★ '; color: var(--gold); font-size: 10px; }
.p-feed h3 .sth { white-space: nowrap; }
.feed .fxk { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink3); margin-left: 5px; opacity: .7; vertical-align: 1px; font-weight: 400; }
.feed .fx { display: none; font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; color: var(--ink2); margin-top: 3px; }
.feed li.open .fx { display: block; }
.feed li.open .fxk { opacity: 0; }
.feed li.bad .x { color: var(--bad); }
.feed li.loss .x { font-weight: 600; }
.feed li.loss .a::after { content: ' †'; }
.feed li.ms .x { color: var(--stamp); }
.feed li.dec .x { color: var(--ink2); font-size: 13px; }
.feed li.dec .x::before { content: '▸ '; color: var(--accent); }
.feed li.dec .dq { color: var(--ink3); }
.feed li.dec .dq::after { content: ' · '; }
.feed li.death .x { font-family: var(--f-display); font-size: 17px; font-weight: 700; }
.grid10 { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.grid10 .c { aspect-ratio: 1; border-radius: 2px; background: var(--rule2); position: relative; font-size: 0; max-width: 100%; }
.grid10 .c.cur { outline: 2px solid var(--accent); outline-offset: -1px; }
.grid10 .c.le { box-shadow: inset 0 0 0 1px var(--ink3); }
.grid10 .c .m { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; font-family: var(--f-mono); color: var(--paper); font-weight: 600; }
.grid10 .c.dead { background: var(--loss) !important; }
.grid10 .c.dead .m { color: var(--paper); }
.gridkey { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink3); margin-top: 8px; gap: 8px; flex-wrap: wrap; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink3); margin-top: 6px; }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 4px; }
.chart svg { width: 100%; height: auto; display: block; }
.stats dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 0; font-size: 13px; }
.stats dt { color: var(--ink2); }
.stats dd { margin: 0; text-align: right; font-family: var(--f-mono); font-size: 12.5px; }
.stats .src { margin-top: 10px; font-size: 11px; color: var(--ink3); line-height: 1.5; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 12px; padding: 6px 8px; border-radius: 3px; max-width: 240px; line-height: 1.4; }

.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(10, 18, 22, .52); display: grid; place-items: start center; padding: 16px; overflow-y: auto; }
.scrim > * { margin-block: auto; }
div.dec { width: min(560px, 100%); background: var(--card); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); overflow: hidden; animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(8px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dec { animation: none; } }
.dec .hd { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: .03em; }
.dec .bd { padding: 18px; }
.dec .hd > span:last-child { display: flex; align-items: center; gap: 10px; }
.decmin { font: 500 12.5px var(--f-body); letter-spacing: 0; color: var(--ink2); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 10px; min-height: 30px; white-space: nowrap; }
.decmin:hover { border-color: var(--accent); color: var(--ink); }
.decpeek { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 45; width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; background: var(--card); border: 1px solid var(--accent); border-radius: 8px; box-shadow: 0 18px 40px -16px rgba(19,33,42,.45); }
.decpeek[hidden] { display: none; }
.decpeek .dp-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.decpeek .dp-t b { font-size: 14px; }
.decpeek .dp-t small { color: var(--ink3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.decpeek .cta { flex: none; padding: 10px 14px; font-size: 14px; }
.dec h2 { font-family: var(--f-display); font-size: 26px; line-height: 1.25; margin: 0 0 8px; font-weight: 700; text-wrap: balance; }
.dec p { margin: 0 0 12px; color: var(--ink2); }
.dec p.dec-fa { margin: -6px 0 12px; font-size: 12.5px; color: var(--ink3); word-break: keep-all; }
.dec .fact { font-family: var(--f-mono); font-size: 12px; color: var(--ink2); background: var(--stamp-soft); border-left: 3px solid var(--stamp); padding: 8px 10px; margin-bottom: 14px; line-height: 1.5; }
.dec .ch { display: flex; flex-direction: column; gap: 8px; animation: decArm .7s ease-out both; }
@keyframes decArm { from { opacity: .45; } to { opacity: 1; } }
.dec .ch button { text-align: left; border: 1px solid var(--rule); background: var(--paper); border-radius: 3px; padding: 12px 14px; display: grid; grid-template-columns: 1.6em minmax(0, 1fr); gap: 2px 10px; }
.dec .ch button:hover { border-color: var(--accent); }
.dec .ch button .k { grid-row: span 2; font-family: var(--f-mono); font-size: 12px; color: var(--ink3); padding-top: 2px; }
.dec .ch button b { font-weight: 600; }
.dec .ch button small { color: var(--ink3); font-size: 12.5px; }
.dec .ch button.lock { cursor: default; border-style: dashed; background: transparent; color: var(--ink3); }
.dec .ch button.lock:hover { border-color: var(--rule); }
.dec .ch .chg { border: 1px solid var(--rule); background: var(--paper); border-radius: 3px; padding: 12px 14px; display: grid; grid-template-columns: minmax(1.6em, auto) minmax(0, 1fr); gap: 2px 10px; }
.dec .ch .chg > .k { grid-row: span 3; font-family: var(--f-mono); font-size: 12px; color: var(--ink3); padding-top: 2px; white-space: nowrap; }
.dec .ch .chg > b { font-weight: 600; }
.dec .ch .chg > small { color: var(--ink3); font-size: 12.5px; }
.dec .ch .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dec .ch .chips button { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; }
.dec .ch button.lock b { font-weight: 500; }

#dead { padding-block: 32px 64px; }
.dcert { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.dcert .band { background: var(--loss); color: var(--paper); padding: 12px 22px; display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; }
.dcert .body { padding: 24px 22px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; position: relative; }
@media (max-width: 860px) { .dcert .body { grid-template-columns: 1fr; } }
.dcert h1 { font-family: var(--f-display); font-size: clamp(34px, 6vw, 58px); line-height: 1.08; margin: 0 0 6px; font-weight: 700; text-wrap: balance; }
.dcert .span { font-family: var(--f-mono); color: var(--ink2); font-size: 14px; }
.dcert .cause { margin-top: 18px; font-size: 18px; }
.dcert .cause b { color: var(--accent); }
.dcert .ctx { margin-top: 10px; color: var(--ink2); font-size: 14.5px; text-wrap: pretty; }
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; align-content: start; }
.summary div { border-top: 1px solid var(--rule); padding-top: 8px; min-width: 0; }
.summary b { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.summary small { display: block; margin-top: 2px; color: var(--ink3); font-size: 12px; line-height: 1.45; }
.summary .wide { grid-column: 1 / -1; }
.after { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 860px) { .after { grid-template-columns: 1fr; } }
.owns span { display: block; font-size: 13px; color: var(--ink2); line-height: 1.5; margin-top: 2px; }
.invnote { flex-basis: 100%; font-size: 12px; color: var(--ink3); line-height: 1.5; }
.lifelog { grid-column: 1 / -1; }
.morelife { grid-column: 1 / -1; }
.morelife > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 2px 0; list-style: none; }
.morelife > summary::-webkit-details-marker { display: none; }
.morelife > summary .ml-t::before { content: '▸ '; color: var(--ink3); }
.morelife[open] > summary .ml-t::before { content: '▾ '; }
.morelife > summary .ml-t { font-family: var(--f-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.morelife > summary .ml-s { font-size: 13px; color: var(--ink3); }
.morelife[open] > summary { margin-bottom: 14px; }
.ml-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.ml-in > .panel { margin: 0; padding: 0; border: 0; background: none; }
.ml-in > .kidslife, .ml-in > .estate { grid-column: 1 / -1; }
@media (max-width: 860px) { .ml-in { grid-template-columns: 1fr; } }
.lifelog .decs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.lifelog .decs button { font: 12px var(--f-mono); color: var(--ink2); background: none; border: 1px solid var(--rule2); border-radius: 999px; padding: 8px 12px; min-height: 34px; cursor: pointer; }
.lifelog .decs button:hover, .lifelog .decs button:focus-visible { color: var(--ink); border-color: var(--ink3); }
.feed.full li { animation: none; }
.feed li.gapnote .x { color: var(--ink3); font-size: 13px; }
.moments { list-style: none; margin: 0; padding: 0; }
.moments li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule2); font-size: 14px; }
.moments .a { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); padding-top: 2px; }
.estate .moments li { grid-template-columns: minmax(0, 1fr) auto; }
.estate .moments .a { order: 2; text-align: right; white-space: nowrap; font-size: 13px; color: var(--ink); }
.estate .ctx { margin: 0 0 8px; }
.endbtns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
[hidden] { display: none !important; }

@media (max-width: 800px) {
  .life { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
  .col, .col3 { display: contents; }
  .p-feed { order: 1; } .p-focus { order: 2; } .p-stats { order: 3; } .p-id { order: 4; } .p-fam { order: 5; } .p-comps { order: 6; } .p-grid { order: 7; } .p-chart { order: 8; } .p-cty { order: 9; }
}
@media (max-width: 560px) {
  .topbar .brand { display: none; }
  .topbar .wrap { gap: 8px 12px; }
  .agebox .age { font-size: 34px; }
  .speed button { padding: 6px 8px; min-width: 0; min-height: 34px; font-size: 12.5px; white-space: nowrap; }
  .speed { flex-wrap: nowrap; }
  .speed .fftx { display: none; } .speed .ffsh { display: inline; }
  .speed .morebtn { display: inline-flex; align-items: center; justify-content: center; position: relative; min-width: 36px; font-size: 16px; line-height: 1; }
  .speed .morebtn.on::after { content: ''; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--stamp); }
  .more { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; flex-direction: column; align-items: stretch; gap: 4px; min-width: 200px; padding: 8px; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 18px 40px -16px rgba(19,33,42,.35); }
  .more.open { display: flex; }
  .speed .more button { text-align: left; padding: 11px 12px; font-size: 15px; }
  .speed .more .mo { display: block; }
  .sps { display: inline-flex; }
  .speed .sps button { border-radius: 0; margin-left: -1px; min-width: 31px; padding: 6px 0; font-size: 12px; letter-spacing: -.02em; }
  .speed .sps button:first-child { border-radius: 3px 0 0 3px; margin-left: 0; }
  .speed .sps button:last-child { border-radius: 0 3px 3px 0; }
  .speed .sps button[aria-pressed="true"] { position: relative; z-index: 1; }
}
@media (min-width: 400px) and (max-width: 560px) { .speed .sps button { min-width: 36px; font-size: 12.5px; } }
@media (max-width: 420px) { .speed #pauseBtn .pzl { display: none; } .speed #pauseBtn { min-width: 36px; } }
@media (max-width: 350px) { .speed { gap: 3px; } .speed button { padding: 6px 6px; font-size: 12px; } .speed .morebtn { min-width: 30px; }
  .speed .sps button { min-width: 26px; padding: 6px 0; font-size: 11.5px; } .sps .x { display: none; } }

.warnline { margin: 14px 0 0; font-size: 13px; color: var(--ink3); }
.betabar { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--rule); border-radius: 4px; font-size: 14px; color: var(--ink2); }
.betabar .ghost { padding: 8px 14px; font-size: 14px; }
.legal { margin: 10px 2px 0; font-size: 13px; color: var(--ink3); }
.legal a { color: var(--ink2); display: inline-block; padding: 8px 2px; }
.legal.biz { margin-top: 0; font-size: 12px; }
.legal .lnk { background: none; border: 0; padding: 8px 2px; font: inherit; color: var(--ink2); text-decoration: underline; cursor: pointer; }
.edu .fbin { display: none; }
.fbnote { margin: 12px 0 0; font-size: 12.5px; color: var(--ink3); line-height: 1.55; }
.fbnote a { color: var(--ink2); }
.sheet-x { border: 0; background: none; color: var(--ink2); font-family: var(--f-body); font-size: 13px; padding: 2px 4px; }
.fbtypes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fbtypes button { border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; }
.fbtypes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field textarea, .field input { font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 10px 12px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field textarea:focus, .field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ctxbox { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink2); background: var(--stamp-soft); padding: 8px 10px; border-radius: 3px; line-height: 1.5; overflow-wrap: anywhere; margin-bottom: 14px; }
.sheetact { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sheetact .cta { font-size: 16px; padding: 12px 20px; text-decoration: none; }
.sheetact small { color: var(--ink3); font-size: 12.5px; flex-basis: 100%; }
.cl { list-style: none; margin: 0; padding: 0; }
.cl > li { padding: 10px 0; border-bottom: 1px solid var(--rule2); }
.cl > li b { font-family: var(--f-display); font-size: 17px; }
.cl > li span { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); margin-left: 8px; }
.cl ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink2); font-size: 14px; }
.sharebox { margin-top: 20px; }
.sharetext { margin: 0 0 14px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--rule2); border-radius: 3px; font-size: 15px; line-height: 1.65; white-space: pre-wrap; user-select: all; -webkit-user-select: all; }
.sharebox .endbtns { margin-top: 0; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px; font-size: 14px; max-width: calc(100vw - 32px); box-shadow: var(--shadow); }
body { word-break: keep-all; overflow-wrap: break-word; }
.hero h1 { word-break: keep-all; }
.mrz, .ctxbox, .fields b, .idcard dd, .summary b { word-break: normal; }

.cert .foot { gap: 10px; flex-wrap: wrap; }
.sharebox { margin: 20px 0 0; }
.sharegrid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 700px) { .sharegrid { grid-template-columns: 1fr; } .cardprev { max-width: 360px; } }
.cardprev { padding: 0; border: 1px solid var(--rule); background: var(--card2); border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; width: 100%; display: grid; place-items: center; color: var(--ink3); font-size: 13px; box-shadow: var(--shadow); }
.cardprev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cardprev:hover { border-color: var(--accent); }
.cardimg { display: block; max-width: 100%; max-height: 62vh; width: auto; margin: 0 auto 14px; border-radius: 4px; box-shadow: var(--shadow); }
.sh-lead { margin: 0 0 12px; color: var(--ink2); font-size: 15px; word-break: keep-all; }
.cardimg.sh-card { max-height: 44vh; }
.cardimg.ms-og { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--card2); }
.sh-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-acts .cta { grid-column: 1 / -1; justify-content: center; flex-direction: column; gap: 2px; font-size: 17px; padding: 12px 16px; text-decoration: none; }
.sh-acts .cta small { font-size: 12.5px; font-weight: 400; opacity: .85; }
.sh-acts .ghost { text-align: center; justify-content: center; padding: 11px 10px; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; }
.sh-note { display: block; margin-top: 10px; color: var(--ink3); font-size: 12.5px; line-height: 1.5; word-break: keep-all; }
.sh-note-in { display: block; margin: 0 0 12px; }
.sh-note-l { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.sh-note-in textarea { display: block; width: 100%; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 10px 12px; resize: vertical; min-height: 64px; }
.sh-note-in textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.sh-note-in textarea::placeholder { color: var(--ink3); }
.sh-note-in small { display: block; margin-top: 5px; color: var(--ink3); font-size: 12.5px; }
.sh-prevd { margin: 12px 0 14px; }
.sh-prevd summary { cursor: pointer; color: var(--ink2); font-size: 14px; padding: 6px 0; }
.sh-prevd .sharetext { margin: 6px 0 0; font-size: 14px; }
.sharehint { display: block; margin-top: 10px; color: var(--ink3); font-size: 12.5px; }
.sharebox .endbtns { margin-top: 0; }

.shopbtn { width: 100%; padding: 9px 12px; font-size: 14px; margin-top: 2px; }
.shopbtn small { color: var(--ink3); font-size: 12px; }
.shop { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.shopitem { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--rule); background: var(--paper); border-radius: 3px; padding: 10px 12px; }
.shopitem:hover:not(:disabled) { border-color: var(--accent); }
.shopitem:disabled { opacity: .5; cursor: default; }
.shopitem .sn { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: 14.5px; }
.shopitem .sp { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }
.shopitem small { font-weight: 400; font-family: var(--f-body); font-size: 12px; color: var(--ink3); }
.shopgrp { border: 1px solid var(--rule); background: var(--paper); border-radius: 3px; padding: 10px 12px; }
.shopgrp .sn { display: flex; flex-direction: column; font-weight: 600; font-size: 14.5px; }
.shopgrp .sn small { font-weight: 400; font-size: 12px; color: var(--ink3); }
.shopgrp .fbtypes { margin: 8px 0 0; }
.shopgrp .fbtypes button small { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); margin-left: 2px; }
.shopgrp .fbtypes button:disabled { opacity: .5; cursor: default; }
.shopgrp .fbtypes button:hover:not(:disabled) { border-color: var(--accent); }
.shopmore, .shopset { margin-top: 10px; border-top: 1px solid var(--rule); }
.shopmore > summary, .shopset > summary { cursor: pointer; padding: 10px 2px; min-height: 40px; font-weight: 600; font-size: 14px; color: var(--ink2); }
.shopset > summary small { font-weight: 400; font-size: 12px; color: var(--ink3); margin-left: 4px; }
.shopmore[open] > summary, .shopset[open] > summary { margin-bottom: 4px; }
#sheet .bd { max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; }
.shopend { display: flex; justify-content: center; margin-top: 14px; }

.sel { font: inherit; font-size: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 9px 12px; max-width: 260px; }
.guard { flex-basis: 100%; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 14px 16px; font-size: 14.5px; }
.guard p { margin: 0 0 10px; }
.guard .ctarow .ghost, .guard .ctarow .cta { font-size: 14px; padding: 9px 14px; }
.fine { margin: 18px 0 0; font-size: 12.5px; color: var(--ink3); max-width: 70em; }
.homecmp { margin-top: 10px; padding: 12px 14px; border: 1px dashed var(--rule); border-radius: 3px; font-size: 13.5px; color: var(--ink2); }
.homecmp b { color: var(--ink); }
.certcomps { margin-top: 16px; }
.certcomps ul, .comps { list-style: none; margin: 0; padding: 0; }
.certcomps li, .comps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--rule2); font-size: 13.5px; align-items: baseline; }
.certcomps li b, .comps .cn { font-weight: 600; }
.certcomps li span, .comps .cs { color: var(--ink2); text-align: right; }
.comps .cn small { display: block; font-weight: 400; color: var(--ink3); font-size: 12px; }
.comps .cs { font-size: 12.5px; max-width: 14em; text-wrap: balance; }
.comps li.gone .cn { color: var(--ink3); }
.comps li.gone .cs { color: var(--ink3); }
.certcomps .lbl { display: block; margin-bottom: 4px; }
.certcomps p { margin: 8px 0 0; font-size: 13px; color: var(--ink3); }
.feed li.warm .x { color: var(--ink); }
.feed li.warm .a::after { content: ' ·'; color: var(--gold); }
.money .flow ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; }
.money .flow li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-bottom: 1px dotted var(--rule2); }
.money .flow li span { color: var(--ink2); min-width: 0; }
.money .flow b { display: inline; font-family: inherit; font-size: 13px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money .flow b.neg { color: var(--bad); } .money .flow b.pos { color: var(--good); }
.feed li.ledger .x { color: var(--ink2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.feed li.note .x { font-family: var(--f-display); font-size: 15.5px; color: var(--stamp); }
.feed li.comp .x { color: var(--ink2); font-style: italic; }
.feed li.comp .a::after { content: ' †'; }
.dec .q { font-family: var(--f-display); font-size: 19px; line-height: 1.45; color: var(--ink); margin: 6px 0 10px; text-wrap: pretty; }
.dec textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 10px 12px; margin-bottom: 12px; resize: vertical; }
.dec textarea:focus, .farewell textarea:focus, .sel:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.dec .dec-name { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.dec .dec-name span { flex: none; font-size: 13.5px; color: var(--ink2); }
.dec .dec-name input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 9px 12px; }
.dec .dec-name input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.dec.pause .hd { color: var(--stamp); }
.dcert .story { margin: 14px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 40em; text-wrap: pretty; }
.farewell { margin-top: 20px; }
.fwrow { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.fwrow textarea { flex: 1 1 320px; min-width: 0; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 10px 12px; resize: vertical; }
.fwrow .cta { font-size: 16px; padding: 12px 22px; }
.farewell .homecmp { margin-top: 14px; }
.lives5 { list-style: none; margin: 0; padding: 0; }
.lives5 li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule2); }
.lives5 .ca { font-family: var(--f-display); font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--stamp); }
.lives5 li.me .ca { color: var(--accent); }
.lives5 b { font-weight: 600; }
.lives5 p { margin: 4px 0 0; font-size: 14px; color: var(--ink2); }
.works-l { list-style: none; margin: 0; padding: 0; }
.works-l li { padding: 12px 0; border-bottom: 1px solid var(--rule2); }
.works-l li:first-child { padding-top: 2px; }
.works-l b { display: block; font-weight: 600; }
.works-l p { margin: 4px 0 0; font-size: 14px; color: var(--ink2); line-height: 1.55; }
.works-l .wk-o { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 6px; color: var(--ink); }
.works-l .wk-o + p { margin-top: 8px; font-size: 13px; }
.works-l .wk-o > span:first-child { font-size: 12px; color: var(--ink3); margin-right: 2px; }
.works-l .wk-o a { color: var(--stamp); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 2px 0; }
.works-l .wk-dot { color: var(--ink3); }
.works .wk-note { display: block; margin-top: 10px; font-size: 12px; color: var(--ink3); }
.lives5note { margin: 12px 0 0; font-size: 14px; color: var(--ink2); }
.journal { list-style: none; margin: 0; padding: 0; }
.journal li { padding: 10px 0; border-bottom: 1px solid var(--rule2); }
.journal small { display: block; color: var(--ink3); font-size: 12.5px; }
.journal q { font-family: var(--f-display); font-size: 16px; quotes: '“' '”'; }
.deadstack { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.lookpan ul, .kidslife ul { list-style: none; margin: 0; padding: 0; }
.lookpan li { padding: 9px 0; border-bottom: 1px solid var(--rule2); font-family: var(--f-display); font-size: 16px; line-height: 1.6; }
.kidslife li { padding: 10px 0; border-bottom: 1px solid var(--rule2); }
.lookpan li:last-child, .kidslife li:last-child { border-bottom: 0; }
.kidslife .kh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.kidslife .kh small { color: var(--ink3); font-size: 12.5px; }
.kidslife p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink2); }
.egg { display: inline-block; margin-right: 6px; padding: 1px 7px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.5; vertical-align: 1px; white-space: nowrap; }
.eggpan { border-color: var(--gold); }
.eggpan ul { list-style: none; margin: 0; padding: 0; }
.eggpan li { padding: 10px 0; border-bottom: 1px solid var(--rule2); font-size: 15px; line-height: 1.6; }
.eggpan li:last-child { border-bottom: 0; }
.eggpan li .a { color: var(--ink3); font-size: 12.5px; margin-right: 8px; }
.eggpan .eggnote { margin: 8px 0 0; font-size: 12.5px; color: var(--ink3); }
.deadstack > .panel { margin: 0; }
.homecmp table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.homecmp th { font-weight: 600; font-size: 12px; color: var(--ink3); text-align: right; padding: 0 0 6px 10px; }
.homecmp th:first-child, .homecmp td:first-child { text-align: left; padding-left: 0; }
.homecmp td { text-align: right; padding: 4px 0 4px 10px; border-top: 1px solid var(--rule2); font-variant-numeric: tabular-nums; }
.homecmp td:last-child { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) {
  .certcomps li { grid-template-columns: 1fr; gap: 2px; }
  .certcomps li span { text-align: left; }
  .comps .cs { max-width: 11em; }
}
.pnote { font-family: var(--f-display); color: var(--stamp); min-width: 12em; }
a.ghost { display: inline-flex; align-items: center; text-decoration: none; }
a.ghost[hidden] { display: none; }
.dec .ch button.auto { border-color: var(--accent); background: var(--accent-soft); }
.autobar { height: 3px; background: var(--rule2); margin-top: 14px; border-radius: 2px; overflow: hidden; }
.autobar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.autonote { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--ink2); }
.autonote .ghost, .autoon { white-space: nowrap; flex: 0 0 auto; }
.autoon { display: block; margin: 12px auto 0; }
.musicbtn { font-size: 14px; padding: 10px 14px; }
.vol { width: 84px; height: 24px; margin: 0 4px; accent-color: var(--stamp); vertical-align: middle; cursor: pointer; }
.speed .more .vol { width: auto; margin: 0 12px 6px; }
.musicbtn[aria-pressed="true"], .speed [data-music][aria-pressed="true"] { border-color: var(--stamp); color: var(--stamp); }
.speed [data-music][aria-pressed="true"] { background: var(--stamp-soft); }
.tg-bg { position: relative; z-index: 0; }
.tg-bg canvas { display: block; width: 100%; cursor: pointer; }
@media (min-width: 901px) {
  #intro { overflow-x: hidden; overflow-x: clip; }
  .tg-bg { margin-right: calc((min(100vw, 1320px) - 100vw) / 2 - 20px);
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
}
@media (max-width: 900px) {
  #intro { padding-top: 0; }
  .hero { grid-template-columns: 1fr; gap: 0; }
  .heroside { display: contents; }
  .herotext { position: relative; z-index: 1; }
  .tg-bg { order: -1; overflow: hidden; margin: 0 -20px -40px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 70%, transparent 100%); }
  .tg-bg canvas { width: 110%; margin-left: -12%; }
  .odds { margin-top: 28px; }
}
@media (max-width: 700px) { .tg-bg canvas { width: 140%; margin-left: -29%; } }
@media (max-width: 520px) { .tg-bg { margin-inline: -16px; } }
.tg-tip { position: absolute; z-index: 5; width: 170px; padding: 8px 10px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.5; pointer-events: none; }
.tg-tip small { color: var(--ink2); }
.herotext { min-width: 0; }
.tg-live { margin-top: 22px; max-width: 34em; }
.tg-live.wait[hidden] { display: block !important; visibility: hidden; height: 4.4em; }
.tg-now { margin: 0; display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; line-height: 1.55; color: var(--ink); word-break: keep-all; }
.tg-dot { flex: none; position: relative; top: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: tgpulse 2.6s ease-out infinite; }
@keyframes tgpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .tg-dot { animation: none; } }
.tg-feed { margin: 4px 0 0 19px; min-height: 1.5em; font-size: 13.5px; line-height: 1.5; color: var(--stamp); word-break: keep-all; }
.together { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); }
.together h2 { font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 12px; }
.tg-where { margin: 0 0 16px; font-size: 14px; color: var(--ink2); }
.tg-where .lbl { display: block; margin-bottom: 2px; }
.tg-list { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.tg-where b { color: var(--ink); font-weight: 600; }
.tg-tot { font-size: 14.5px; line-height: 1.65; word-break: keep-all; }
.tg-sum { margin: 0 0 12px; max-width: 46em; }
.tg-tab { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tg-tab th { padding: 0 0 6px 12px; font-size: 12px; font-weight: 600; color: var(--ink3); text-align: right; white-space: nowrap; }
.tg-tab td { padding: 7px 0 7px 12px; border-top: 1px solid var(--rule2); text-align: right; vertical-align: top; line-height: 1.35; }
.tg-tab th:first-child, .tg-tab td:first-child { padding-left: 0; text-align: left; }
.tg-tab td small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink3); }
.tg-note { margin: 10px 0 0; font-size: 13px; color: var(--ink2); text-wrap: pretty; }
@media (min-width: 901px) {
  .together { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-rows: auto auto auto auto 1fr; column-gap: 56px; align-items: start; }
  .together > *, .tg-tot > * { grid-column: 1; }
  .tg-tot { display: contents; }
  .tg-tab { grid-column: 2; grid-row: 1 / 6; }
}
.community { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); }
.community h2 { font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; }
.cm-sub { margin: 0 0 12px; color: var(--ink2); line-height: 1.6; word-break: keep-all; }
.cm-post { padding: 14px 0; border-top: 1px solid var(--rule2); }
.cm-post:first-child { border-top: 0; padding-top: 4px; }
.cm-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.cm-h b { font-family: var(--f-display); font-size: 17px; }
.cm-h span { font-size: 13px; color: var(--ink2); }
.cm-h time { margin-left: auto; font-size: 12px; color: var(--ink3); }
.cm-story { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink2); word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.cm-story.open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.cm-text { margin: 8px 0 0; font-size: 15.5px; line-height: 1.65; word-break: keep-all; white-space: pre-wrap; }
.cm-f { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cm-rem { font: inherit; font-size: 13px; line-height: 1.2; display: inline-flex; align-items: center; min-height: 32px; padding: 6px 14px; border: 1px solid var(--accent); color: var(--accent); background: transparent; border-radius: 999px; cursor: pointer; }
.cm-rem[aria-pressed="true"] { background: var(--accent-soft); cursor: default; }
.cm-note { font-size: 12.5px; color: var(--ink2); }
.cm-f .cm-act { margin-left: auto; padding: 4px 10px; font-size: 12px; color: var(--ink2); }
.cm-empty { color: var(--ink2); font-size: 14px; margin: 4px 0; }
#cmOpen, #cmMore { margin-top: 12px; }
@media (min-width: 901px) {
  #cmPrev { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
  #cmPrev .cm-post:first-child { border-top: 1px solid var(--rule2); padding-top: 14px; }
  #cmPrev .cm-empty { grid-column: 1 / -1; }
}
.cm-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; line-height: 1.6; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); resize: vertical; }
.cm-prev { margin: 0 0 10px; font-size: 14px; color: var(--ink2); }
.cm-prev b { color: var(--ink); }
.cm-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cm-row small { flex: 1; font-size: 12.5px; color: var(--ink2); line-height: 1.5; word-break: keep-all; }
.cm-msg { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--bad); word-break: keep-all; }
.cm-msg.ok { color: var(--good); }
.feedmoney { display: none; }
@media (max-width: 800px) {
  .feedmoney { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: -4px 0 12px; padding: 8px 10px; background: var(--paper); border: 1px solid var(--rule2); border-radius: 3px; font-size: 13px; color: var(--ink2); }
  .feedmoney b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
  .feedmoney small { font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
  .feedmoney .fm-bt { margin-left: auto; display: flex; gap: 6px; align-self: center; }
  .feedmoney .fm-more { padding: 7px 12px; font-size: 12.5px; }
}
.tgline { margin: -4px 0 10px; font-size: 13px; color: var(--stamp); word-break: keep-all; }
.oddsmore { margin-top: 12px; }
.friendline { margin: 14px 0 18px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--card); font-size: 15px; line-height: 1.65; word-break: keep-all; max-width: 640px; }
.totop { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 29; padding: 9px 15px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 13.5px; box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.totop.on { visibility: visible; opacity: 1; transform: none; }
.totop.lift { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) { .totop { transition: none; } }
.introfoot { display: flex; gap: 10px; position: fixed; z-index: 30; transition: transform .2s ease, opacity .2s ease; }
@media (min-width: 701px) {
  #intro { padding-bottom: 120px; }
  .introfoot { left: 50%; bottom: 20px; transform: translateX(-50%); padding: 10px; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 18px 40px -16px rgba(19,33,42,.35); }
  .introfoot.off { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
  .introfoot .cta { padding: 13px 48px; font-size: 17px; }
  .introfoot .ghost { white-space: nowrap; }
}
@media (max-width: 700px) {
  #intro { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .lede { font-size: 17px; }
  .opts { gap: 24px; }
  .optgroup { flex: 1 1 100%; min-width: 0; }
  .optgroup .hint { max-width: none; }
  .seg { display: flex; }
  .seg button { flex: 1 1 0; padding-inline: 8px; }
  .sel { width: 100%; max-width: none; }
  .introfoot { left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--rule); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.25); }
  .introfoot.off { transform: translateY(110%); box-shadow: none; }
  .introfoot .cta { flex: 1 1 auto; justify-content: center; }
  .introfoot .ghost { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #roll { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .cert .foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--rule); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.25); flex-wrap: nowrap; }
  .cert .foot .ghost { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cert .foot .cta { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 440px) { #certHome2 .chl { display: none; } #certHome2 { padding-inline: 12px; } }
@media (max-width: 440px) { .cert .foot { gap: 8px; } #certHome2 { flex: none; } .cert .foot .ghost { padding-inline: 10px; }
  .cert .foot .cta { padding: 14px 14px; font-size: 17px; justify-content: center; white-space: nowrap; } }

.p-scene { padding: 0; overflow: hidden; }
.scene { aspect-ratio: 32 / 10; background: var(--stamp-soft); }
.scene canvas { display: block; width: 100%; height: 100%; image-rendering: crisp-edges; image-rendering: pixelated; }
.scenecap { margin: 0; padding: 10px 16px 12px; line-height: 1.55; word-break: keep-all; }
.after .flow { grid-column: 1 / -1; }
.flowgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 760px) { .flowgrid { grid-template-columns: 1fr; } }
.flowt { font-size: 14px; font-weight: 600; margin-bottom: 4px; } .flowt small { display: block; font-weight: 400; font-size: 12px; color: var(--ink3); margin-top: 2px; }
.lchart { position: relative; touch-action: pan-y; outline: none; border-radius: 3px; max-width: 460px; }
.lchart:focus-visible { box-shadow: 0 0 0 2px var(--stamp); }
.lchart svg { display: block; width: 100%; height: auto; }
.lf-tick { font: 10px var(--f-mono); fill: var(--ink3); }
.lf-grid { stroke: var(--rule2); stroke-width: 1; } .lf-zero { stroke: var(--ink2); stroke-width: 1; opacity: .6; }
.lf-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; } .lf-nat { stroke: var(--stamp); } .lf-world { stroke: var(--ink3); stroke-width: 1.6; stroke-dasharray: 4 3; }
.lf-area { fill: var(--stamp); opacity: .10; } .lf-dot { fill: var(--stamp); stroke: var(--card); stroke-width: 2; } .lf-cross { stroke: var(--ink2); stroke-width: 1; opacity: .5; }
.ftip { position: absolute; top: 4px; background: var(--card); border: 1px solid var(--rule); border-radius: 3px; box-shadow: var(--shadow); padding: 6px 9px; font-size: 12px; color: var(--ink2); pointer-events: none; white-space: nowrap; }
.ftip b { color: var(--ink); font-weight: 600; }
.lchart svg.lf-lane { margin-top: 2px; }
.lf-seg { stroke: var(--card); stroke-width: 1; } .lf-sa { fill: var(--stamp); opacity: .16; } .lf-sb { fill: var(--stamp); opacity: .30; }
.lf-iv-cash { fill: var(--ink3); opacity: .22; } .lf-iv-stock { fill: var(--stamp); opacity: .30; } .lf-iv-property { fill: var(--gold); opacity: .38; }
.lf-iv-bond { fill: var(--ink3); opacity: .34; } .lf-iv-mix { fill: var(--stamp); opacity: .18; } .lf-iv-trade { fill: var(--bad); opacity: .16; }
.lf-iv-debt { fill: var(--bad); opacity: .24; } .lf-iv-loan { fill: var(--accent); opacity: .22; }
.lf-segt { font: 10px var(--f-body); fill: var(--ink); }
.flowtable td.lf-wk { text-align: left; color: var(--ink2); }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--ink3) 0 4px, transparent 4px 7px); }
.flowtable { margin-top: 12px; font-size: 13px; } .flowtable summary { cursor: pointer; color: var(--ink2); }
.flowtable table { border-collapse: collapse; width: 100%; margin-top: 8px; font-variant-numeric: tabular-nums; }
.flowtable td, .flowtable th { padding: 4px 6px; border-bottom: 1px solid var(--rule2); text-align: right; } .flowtable td:first-child, .flowtable th:first-child { text-align: left; }
.flowtable th { font-size: 11.5px; color: var(--ink3); font-weight: 600; }
@media (max-width: 800px) { .p-scene { order: 0; } }
.minibar { display: none; }
@media (max-width: 800px) {
  .minibar { display: flex; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--tbh, 64px)); z-index: 15; order: 0; align-items: center; gap: 10px; margin: -6px 0 -4px; padding: 7px 10px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 6px 14px -12px rgba(0,0,0,.5); }
  .mb-st { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .mb-i { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 4px; font-size: 11.5px; color: var(--ink2); min-width: 0; }
  .mb-i .mb-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mb-i b { font: 600 12.5px var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
  .mb-i .mb-b { grid-column: 1 / -1; height: 3px; margin-top: 3px; border-radius: 2px; background: var(--rule2); overflow: hidden; }
  .mb-i .mb-b i { display: block; height: 100%; border-radius: 2px; }
  .mb-fo { flex: 0 0 auto; min-width: 0; max-width: 45%; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; }
  .mb-fo .mb-fl { color: var(--ink3); font-size: 11.5px; flex: none; }
  .mb-fo b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .mb-fo .mb-ar { flex: none; color: var(--ink3); font-size: 11px; }
  .mb-fo[aria-expanded="true"] { border-color: var(--accent); }
  .mb-pick { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 16; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; box-shadow: var(--shadow); max-height: 60vh; overflow: auto; }
}
  .mb-sh { flex: none; min-height: 36px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12.5px; white-space: nowrap; }
@media (max-width: 400px) { .mb-fo .mb-fl { display: none; } .minibar { gap: 7px; } .mb-sh { padding: 6px 8px; } }
@media (max-width: 350px) { .minibar { gap: 6px; padding: 6px 8px; } .mb-st { gap: 5px; } .mb-fo .mb-fl { display: none; } }
@media (max-width: 440px) { .mb-i { grid-template-columns: minmax(0, 1fr); } .mb-i .mb-n { font-size: 10.5px; line-height: 1.25; } }
.fo-shop { display: none; margin: 12px 0 0; }
@media (min-width: 801px) { .fo-shop:not([hidden]) { display: block; } }
@media (max-width: 800px) { :lang(en) .mb-i { grid-template-columns: minmax(0, 1fr); } :lang(en) .mb-i .mb-n { font-size: 10.5px; line-height: 1.25; } }
@media (max-width: 420px) { :lang(en) .mb-fo .mb-fl { display: none; } }
.langsw { position: absolute; top: 12px; right: max(16px, calc((100% - 1320px) / 2 + 20px)); z-index: 5; display: flex; align-items: center; gap: 2px;
  padding: 3px 3px 3px 10px; background: var(--card); border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow); color: var(--ink2); font-size: 13.5px; }
.langsw svg { margin-right: 4px; flex: none; }
.langsw a { padding: 10px 14px; border-radius: 999px; color: var(--ink2); text-decoration: none; font-weight: 500; line-height: 1; }
.langsw a:hover { color: var(--ink); background: var(--rule2); }
.langsw a[aria-current="page"] { background: var(--ink); color: var(--paper); font-weight: 600; }
@media (max-width: 560px) { .langsw a { padding: 10px 8px; font-size: 13.5px; } .langsw svg { display: none; } }
html[lang="ja"] { --f-display: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', 'Noto Serif CJK JP', serif;
  --f-body: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', 'Noto Sans JP', 'Noto Sans CJK JP', Meiryo, system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', ui-monospace, Menlo, monospace; }
html[lang="ja"] .hero h1 { letter-spacing: -.01em; }
html[lang="ja"] body, html[lang="ja"] body * { word-break: normal !important; line-break: strict; }
html[lang="ja"] .ku .ku-url { word-break: break-all !important; }
.themebtn { border: 0; background: none; color: var(--ink2); font: inherit; font-size: 15px; line-height: 1; padding: 9px 11px; margin-left: 2px; border-radius: 999px; cursor: pointer; }
.themebtn:hover { color: var(--ink); background: var(--rule2); }
@media (min-width: 561px) { .speed .more .themebtn2 .tbl { display: none; } }
.hero-memo { margin-top: 26px; max-width: 620px; }
.hm-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 8px; font-family: var(--f-mono); font-size: 12px; color: var(--ink3); }
.hm-all { border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; padding: 6px 0; }
.hm-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-card { display: grid; gap: 4px; text-align: left; padding: 0 0 9px; border: 1px solid var(--rule2); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; }
.hm-card:hover { border-color: var(--accent); }
.hm-card canvas { width: 100%; height: auto; aspect-ratio: 192 / 60; image-rendering: pixelated; display: block; margin-bottom: 4px; }
.hm-card b { font-size: 13.5px; font-weight: 600; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-card small { font-size: 11.5px; color: var(--ink3); padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .hero-memo { margin-top: 18px; } .hm-row { gap: 8px; } .hm-card b { font-size: 12.5px; padding: 0 7px; } .hm-card small { display: none; } }
.ctahint { font-size: 13px; color: var(--ink3); }
@media (min-width: 801px) {
  .opts .ctarow { flex-basis: 100%; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--rule2); }
  .opts .ctarow #startBtn { font-size: 20px; padding: 16px 52px; }
}
@media (max-width: 800px) { .ctahint { flex-basis: 100%; } }
html[lang="en"] .stat { grid-template-columns: 6.6em minmax(0, 1fr) 2.2em; }
.stathelp { margin: 6px 0 2px; font-size: 13px; color: var(--ink2); }
.stathelp summary { cursor: pointer; color: var(--ink3); padding: 6px 0; min-height: 32px; }
.stathelp ul { margin: 4px 0 6px; padding-left: 0; list-style: none; }
.stathelp li { margin: 4px 0; line-height: 1.5; }
.stathelp li b { color: var(--ink); margin-right: 6px; font-weight: 600; }
.stathelp p { margin: 0 0 4px; color: var(--ink3); line-height: 1.5; }
html[lang="en"] .orow { grid-template-columns: 9.5em 1fr 3.4em; }
html[lang="en"] :where(dd, td, th, li, .row > span, .orow > span, .summary b, .money b, .fields b, #tgTip, .status, .scenecap)::first-letter { text-transform: uppercase; }
html[lang="en"] .cl > li::first-letter { text-transform: none; }

.ending { position: fixed; inset: 0; z-index: 80; background: #0e1113; color: #ece6da; display: flex; align-items: center; justify-content: center;
  padding: 56px 16px 48px; overflow-y: auto; opacity: 0; transition: opacity 1.2s ease; cursor: pointer; }
.ending.on { opacity: 1; }
.end-stage { width: min(560px, 100%); margin: auto; text-align: center; }
.end-skip { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; background: none; border: 1px solid rgba(255,255,255,.22); color: #cfc8bc;
  border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.end-skip:hover, .end-skip:focus-visible { border-color: rgba(255,255,255,.5); color: #fff; }
.end-hint { position: fixed; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; font-size: 12px; color: #77716a; pointer-events: none; }
.ending .fade { opacity: 0; transition: opacity 1s ease; }
.ending .fade.in { opacity: 1; }
.ending .fade.quick { transition-duration: .3s; }
.end-big { font-family: var(--f-display); font-size: clamp(30px, 9vw, 44px); font-weight: 700; margin: 0 0 18px; letter-spacing: -.01em; }
.end-sub { font-size: 16px; line-height: 1.75; color: #cfc8bc; margin: 6px 0; word-break: keep-all; min-height: 1.75em; }
.end-pic { position: relative; width: 100%; aspect-ratio: 192 / 60; border-radius: 4px; overflow: hidden; background: #181d20; box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); }
.end-pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; transition: opacity .9s ease, transform 3.6s ease-out; transform: scale(1.0); }
.end-pic canvas.show { opacity: 1; transform: scale(1.035); }
.end-age { font-family: var(--f-mono); font-size: 13px; letter-spacing: .18em; color: #a59f95; margin: 22px 0 8px; min-height: 1.4em; }
.end-text { font-family: var(--f-display); font-size: clamp(17px, 4.6vw, 21px); line-height: 1.65; margin: 0 auto; max-width: 30em; min-height: 3.3em; word-break: keep-all; }
.end-text.note { color: #f0dfb5; }
.end-pic + .end-text { margin-top: 24px; }
.ending:focus { outline: none; }
.end-strip { display: flex; gap: 1px; height: 5px; margin: 26px auto 0; }
.end-strip span { flex: 1; background: rgba(255,255,255,.07); border-radius: 1px; transition: background .5s ease; }
.end-strip span.lit { background: var(--c); }
.end-epi { cursor: default; }
.end-name { font-family: var(--f-display); font-size: clamp(28px, 7.5vw, 38px); font-weight: 700; margin: 0; }
.end-years { font-family: var(--f-mono); color: #a59f95; letter-spacing: .12em; margin: 8px 0 26px; }
.end-line { margin: 8px 0; line-height: 1.7; color: #e2dccf; word-break: keep-all; }
.end-quote { margin: 22px auto 0; max-width: 26em; font-family: var(--f-display); font-size: 17px; line-height: 1.6; color: #f0dfb5; word-break: keep-all; }
.end-quote small { display: block; font-family: var(--f-mono); font-size: 11.5px; color: #8b857c; margin-top: 8px; letter-spacing: .05em; }
.end-close { margin: 30px 0 26px; font-family: var(--f-display); font-size: clamp(17px, 4.6vw, 20px); color: #f4ecd8; word-break: keep-all; }
.end-done { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ending, .ending .fade, .end-pic canvas, .end-strip span { transition: none; } .end-pic canvas.show { transform: none; } }

.keep { margin-top: 20px; border-left: 3px solid var(--stamp); }
.kp-lead { margin: 0 0 10px; line-height: 1.6; word-break: keep-all; }
.kp-note { margin: 10px 0; padding: 8px 10px; font-size: 13.5px; line-height: 1.6; color: var(--ink2); background: var(--card2); border-radius: 4px; word-break: keep-all; }
.keep.on { background: var(--card2); }
.keep.flash { animation: kpFlash 2.6s ease-out 1; }
@keyframes kpFlash { 0%, 35% { box-shadow: 0 0 0 3px var(--stamp); } 100% { box-shadow: 0 0 0 3px transparent; } }
.kp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 2px 0 14px; }
@media (max-width: 920px) { .kp-tiles, .kp-tiles.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kp-tile { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 0 0 14px; overflow: hidden; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.kp-tile:hover { border-color: var(--stamp); box-shadow: 0 6px 18px -10px rgba(0,0,0,.45); }
.kp-tile:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
.kp-tile > b, .kp-sub, .kp-go { margin: 0 14px; }
.kp-tile > b { margin-top: 6px; font-family: var(--f-display); font-size: 17px; font-weight: 700; }
.kp-sub { font-size: 13px; line-height: 1.5; color: var(--ink2); word-break: keep-all; }
.kp-go { justify-self: start; align-self: end; margin-top: 4px; padding: 6px 14px; border-radius: 999px; background: var(--stamp); color: var(--paper); font-size: 13.5px; font-weight: 600; }
.kp-tiles.pv .kp-go { background: none; color: var(--stamp); box-shadow: inset 0 0 0 1px var(--stamp); }
.kp-tile.armed .kp-go { background: var(--accent); }
.kp-vis { position: relative; display: grid; place-items: center; height: 136px; overflow: hidden; }
.kp-vis img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.kp-film .kp-vis { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.14) 0 6px, rgba(0,0,0,0) 6px 14px) 7px 0 / 6px 100% no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.14) 0 6px, rgba(0,0,0,0) 6px 14px) calc(100% - 7px) 0 / 6px 100% no-repeat, radial-gradient(ellipse at 50% 40%, #2a2f38, #121418 75%); }
.kv-phone { position: relative; width: 62px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 7px; background: #000; box-shadow: 0 0 0 2px #30343c, 0 12px 22px rgba(0,0,0,.55); }
.kv-phone i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -9px 0 0 -5px; border-left: 15px solid rgba(255,255,255,.92); border-top: 9px solid transparent; border-bottom: 9px solid transparent; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.kp-album .kp-vis { background: #e3d7bd; }
.kv-book { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 80px; height: 110px; padding: 11px 7px 8px; border-radius: 2px 4px 4px 2px; background: radial-gradient(ellipse at 40% 30%, #31504d, #1b2e2d 78%); box-shadow: inset 5px 0 0 rgba(0,0,0,.25), 3px 3px 0 #efe6d2, 4px 4px 0 rgba(0,0,0,.12), 0 12px 20px -6px rgba(0,0,0,.45); }
.kv-win { width: 100%; padding: 2px; background: #e8ddc6; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.kv-win img { height: auto; }
.kv-name { font-family: var(--f-display); font-size: 9px; font-weight: 700; line-height: 1.15; color: #e2c88f; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kp-memo .kp-vis { background-color: var(--hp-bg, #F2E4CF); background-image: radial-gradient(var(--hp-bg2, #E8D3B6) 1.4px, transparent 1.6px), radial-gradient(var(--hp-bg2, #E8D3B6) 1.4px, transparent 1.6px); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.kv-house { display: grid; justify-items: center; width: 132px; margin-top: 6px; filter: drop-shadow(0 6px 8px rgba(60,40,20,.25)); }
.kv-roof { display: block; width: 0; height: 0; border-left: 72px solid transparent; border-right: 72px solid transparent; border-bottom: 30px solid var(--hp-acc, #B9682F); margin-bottom: -1px; }
.kv-room { display: block; width: 120px; padding: 5px; background: #FFFBF3; border-radius: 0 0 4px 4px; }
.kv-room img { height: auto; }
.kv-frame { width: 96px; margin-bottom: 20px; padding: 5px; background: var(--mat, #f2eee5); box-shadow: 0 0 0 1px var(--frh, #3b2d20), 0 0 0 3px var(--fr, #3b2d20), 0 10px 16px rgba(0,0,0,.45); }
.kv-frame img { height: auto; }
.kp-book .kp-vis { background: radial-gradient(ellipse at 50% 30%, #d9cdb6, #b9a888 80%); }
.kv-doc { position: relative; display: flex; flex-direction: column; gap: 6px; width: 84px; height: 110px; padding: 10px 9px; background: #FBF8F2; border-radius: 1px; rotate: -3deg; box-shadow: 5px 4px 0 -1px #efe8da, 5px 4px 0 0 rgba(0,0,0,.12), 0 12px 20px -6px rgba(0,0,0,.4); }
.kv-dn { font-family: var(--f-display); font-size: 9px; font-weight: 700; line-height: 1.15; color: #1E1B16; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kv-doc svg { width: 100%; height: 26px; border-bottom: 1px solid #DED6C8; }
.kv-doc polyline { fill: none; stroke: #9C7020; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.kv-doc i { display: block; height: 3px; border-radius: 2px; background: #DED6C8; }
.kv-doc i:nth-of-type(2) { width: 82%; } .kv-doc i:nth-of-type(3) { width: 64%; }
.kv-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 1px, rgba(0,0,0,0) 1px 44px), linear-gradient(var(--fl1, #45372a), var(--fl4, #261d16)); box-shadow: 0 -2px 0 rgba(0,0,0,.3); }
@media (max-width: 640px) {
  .kp-tiles { grid-template-columns: 1fr; gap: 10px; }
  .kp-tile { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 0; padding: 0; }
  .kp-vis { grid-row: 1 / 4; height: 100%; min-height: 128px; }
  .kp-tile > b { margin-top: 12px; }
  .kp-go { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .keep.flash { animation: none; box-shadow: 0 0 0 3px var(--stamp); } .kp-tile { transition: none; } }
.kp-hero { display: grid; grid-template-columns: 228px minmax(0, 1fr); grid-template-areas: "tr head" "tr body"; grid-template-rows: auto 1fr; column-gap: 30px; align-items: start; margin: 4px 0 16px; padding: 24px;
  border-radius: 12px; color: #f2ece0; background: radial-gradient(ellipse 60% 80% at 18% 40%, #343a47, rgba(52,58,71,0) 70%), radial-gradient(ellipse at 80% 0, #2a2420, rgba(42,36,32,0) 60%), #15171c; }
.kp-hero.nopic { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "body"; }
.kp-head { grid-area: head; align-self: end; padding-top: 10px; }
.kp-body { grid-area: body; }
.kp-hero > .kp-trailer { grid-area: tr; }
.kp-trailer { position: relative; display: block; width: 100%; padding: 0 0 30px; border: 0; background: none; color: #f6dfae; font: inherit; cursor: pointer; }
.kp-trailer canvas { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; background: #0b0c0f; box-shadow: 0 0 0 3px #262a32, 0 0 0 4px #4b505b, 0 26px 40px -12px rgba(0,0,0,.75); }
.kp-play { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.42); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.kp-play::after { content: ''; position: absolute; left: 11px; top: 8px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.kp-tcap { position: absolute; left: 0; right: 0; bottom: 2px; font-size: 13px; font-weight: 600; text-align: center; }
.kp-tcap::before { content: '▶ '; font-size: 11px; }
.kp-trailer:hover canvas, .kp-trailer:focus-visible canvas { box-shadow: 0 0 0 3px #262a32, 0 0 0 4px #f6dfae, 0 26px 40px -12px rgba(0,0,0,.75); }
.kp-trailer:focus-visible { outline: none; }
.kp-kick { margin: 0 0 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: #dcb878; }
.kp-big { margin: 0 0 18px; font-family: var(--f-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.22; font-weight: 700; color: #fff6e3; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.kp-road { margin: -6px 0 18px; font-size: 14px; line-height: 1.6; color: rgba(242,236,224,.8); word-break: keep-all; }
.kp-road b { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 600; color: #fff6e3; }
.keep.on .kp-road { margin: 4px 0 12px; color: var(--ink2); }
.keep.on .kp-road b { color: var(--ink); }
.kp-gets { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.kp-gets li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.55; color: rgba(242,236,224,.82); word-break: keep-all; }
.kp-gets li::before { content: ''; position: absolute; left: 3px; top: .42em; width: 10px; height: 5px; border-left: 2px solid #e6c27d; border-bottom: 2px solid #e6c27d; transform: rotate(-45deg); }
.kp-gets b { margin-right: 7px; color: #fff6e3; }
.kp-try { margin: 0 0 8px; font-size: 12.5px; color: rgba(242,236,224,.62); }
.kp-tiles.mini { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.kp-tiles.mini .kp-tile { grid-template-columns: none; grid-template-rows: auto auto auto; gap: 4px; padding: 0 0 10px; color: #f2ece0; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.kp-tiles.mini .kp-tile:hover { border-color: #f6dfae; }
.kp-tiles.mini .kp-vis { grid-row: auto; height: 82px; min-height: 0; }
.kp-tiles.mini .kp-sub { display: none; }
.kp-tiles.mini .kp-tile > b { margin: 4px 10px 0; font-size: 14px; }
.kp-tiles.mini .kp-go { margin: 2px 10px 0; padding: 3px 10px; font-size: 12.5px; color: #f6dfae; background: none; box-shadow: inset 0 0 0 1px rgba(246,223,174,.55); }
.kp-tiles.mini .kv-phone { width: 40px; border-radius: 5px; }
.kp-tiles.mini .kv-phone i { margin: -6px 0 0 -3px; border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; }
.kp-tiles.mini .kv-book, .kp-tiles.mini .kv-doc { transform: scale(.66); }
.kp-tiles.mini .kv-frame { width: 72px; margin-bottom: 18px; }
.kp-tiles.mini .kv-house { width: 92px; margin-top: 2px; }
.kp-tiles.mini .kv-roof { border-left-width: 46px; border-right-width: 46px; border-bottom-width: 18px; }
.kp-tiles.mini .kv-room { width: 80px; padding: 3px; }
.kp-tiles.mini .kv-floor { height: 16px; }
.keep.pitch .kp-buy .cta { padding: 13px 24px; font-size: 16.5px; }
.kp-pass { position: relative; margin: 0 0 14px; padding: 14px 20px 14px 28px; border-radius: 10px; background: var(--card2);
  background-image: radial-gradient(circle at 0 50%, var(--card) 9px, transparent 10px), radial-gradient(circle at 100% 50%, var(--card) 9px, transparent 10px);
  box-shadow: inset 0 0 0 1px var(--rule); }
.kp-pass::before { content: ''; position: absolute; left: 12px; top: 12px; bottom: 12px; border-left: 2px dashed var(--rule2); }
.kp-pt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 8px; }
.kp-pt b { font-family: var(--f-display); font-size: 18px; color: var(--stamp); }
.kp-pt span { font-size: 13px; color: var(--ink2); }
.kp-pl { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.kp-pl li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.5; word-break: keep-all; }
.kp-pl li::before { content: '•'; position: absolute; left: 4px; color: var(--stamp); }
.kp-others { margin: 0 0 18px; }
.kp-others p { margin: 0 0 8px; font-size: 13px; color: var(--ink2); }
.kp-orow { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.kp-o { flex: 0 0 150px; display: grid; gap: 5px; padding: 0; border: 0; background: none; text-align: left; font: inherit; font-size: 12.5px; color: var(--ink2); cursor: pointer; }
.kp-o canvas { width: 100%; height: auto; aspect-ratio: 192 / 60; image-rendering: pixelated; border-radius: 4px; box-shadow: 0 0 0 1px var(--rule); }
.kp-o span, .kp-o small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-o small { margin-top: -3px; font-size: 12px; color: var(--ink3); }
.kp-o:hover span { color: var(--ink); }
.kp-hero.fold { display: block; }
.kp-hero.fold .kp-head { padding-top: 0; }
.kp-hero.fold .kp-big { margin-bottom: 8px; }
.kp-more > summary { cursor: pointer; padding: 8px 0 0; font-size: 14px; font-weight: 600; color: #f6dfae; }
.kp-more[open] > summary { margin-bottom: 16px; }
.kp-moreg { display: grid; grid-template-columns: 228px minmax(0, 1fr); column-gap: 30px; align-items: start; }
.kp-hero.nopic .kp-moreg { grid-template-columns: minmax(0, 1fr); }
.kp-more .kp-others { margin: 18px 0 0; }
.kp-more .kp-others p, .kp-more .kp-o, .kp-more .kp-o small { color: rgba(242,236,224,.8); }
@media (max-width: 640px) {
  .kp-hero.fold { padding-bottom: 14px; }
  .kp-more > summary { text-align: center; }
  .kp-moreg { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .kp-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "tr" "body"; row-gap: 16px; margin: 4px -6px 14px; padding: 20px 16px 18px; }
  .kp-head { padding-top: 0; text-align: center; }
  .kp-trailer { width: min(206px, 60vw); margin: 0 auto; }
  .kp-big { font-size: 24px; margin-bottom: 0; }
  .kp-road { margin: 12px 0 0; }
  .kp-tiles.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .kp-tiles.mini .kp-tile { grid-template-columns: none; padding: 0 0 9px; }
  .kp-tiles.mini .kp-vis { height: 72px; }
  .kp-tiles.mini .kp-tile > b { margin: 4px 8px 0; font-size: 13px; }
  .kp-tiles.mini .kp-go { margin: 2px 8px 0; padding: 3px 8px; font-size: 12px; }
  .kp-o { flex-basis: 132px; }
  .keep.pitch .kp-buy .cta { flex: 1 1 100%; }
}
.kp-buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kp-buy small { font-size: 12.5px; color: var(--ink2); word-break: keep-all; }
.kp-buy small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.kp-buy a.cta, .kp-buy a.ghost { text-decoration: none; text-align: center; }
.kp-more { margin: 12px 0 0; font-size: 13.5px; color: var(--ink2); word-break: keep-all; }
.kp-more p { margin: 0; flex: 1 1 100%; }
.kp-have { margin-top: 12px; font-size: 13.5px; }
.kp-have summary { cursor: pointer; color: var(--ink2); }
.kp-have p { margin: 8px 0; color: var(--ink2); word-break: keep-all; }
.kp-row { display: flex; gap: 8px; flex-wrap: wrap; }
.kp-row input { flex: 1 1 200px; min-width: 0; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); }
.kp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.kp-acts button.armed { border-color: var(--accent); color: var(--accent); }
.kp-memrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 12px; }
.kp-memrow .cta.sm { padding: 8px 18px; font-size: 14.5px; gap: 6px; }
.kp-made { margin: 0 0 4px; }
.kp-mt { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink2); }
.kp-mi { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: stretch; margin: 0 0 10px; overflow: hidden; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; }
.kp-mi .kp-vis { grid-row: auto; height: auto; min-height: 112px; }
.kp-mi .kv-phone { width: 46px; border-radius: 5px; }
.kp-mi .kv-phone i { margin: -6px 0 0 -3px; border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; }
.kp-mi .kv-book { transform: scale(.72); }
.kp-mi .kv-house { width: 92px; margin-top: 2px; }
.kp-mi .kv-roof { border-left-width: 46px; border-right-width: 46px; border-bottom-width: 18px; }
.kp-mi .kv-room { width: 82px; padding: 3px; }
.kp-mi .kv-frame { width: 74px; margin-bottom: 18px; }
.kp-mi .kv-floor { height: 16px; }
.kp-mx { min-width: 0; padding: 12px 14px; }
.kp-mx > b { font-family: var(--f-display); font-size: 16px; font-weight: 700; }
.kp-md { margin: 3px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink2); word-break: keep-all; }
.kp-md b { color: var(--ink); font-weight: 600; }
.kp-mi .kp-memrow { gap: 6px; margin: 10px 0 0; }
.kp-mi .kp-memrow .cta.sm { padding: 7px 14px; font-size: 14px; }
.kp-mi a.ghost { text-decoration: none; }
@media (max-width: 420px) { .kp-mi { grid-template-columns: 84px minmax(0, 1fr); } .kp-mi .kv-house { width: 76px; } .kp-mi .kv-roof { border-left-width: 38px; border-right-width: 38px; } .kp-mi .kv-room { width: 68px; } .kp-mi .kv-frame { width: 62px; } .kp-mx { padding: 10px 12px; } }
.km .km-rows { display: grid; gap: 4px; }
.km .kp-style { margin: 0; padding: 12px 0; border-top: 1px solid var(--rule); }
.km .km-rows + .km-note, .km .km-rows + .km-acts { border-top: 1px solid var(--rule); padding-top: 12px; }
.km-note { margin: 4px 0 12px; font-size: 13.5px; line-height: 1.6; color: var(--ink2); word-break: keep-all; }
.km-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; }
.km-acts a.ghost { text-decoration: none; }
.km-acts .km-rm { margin-left: auto; color: var(--ink2); }
.kp-promise { flex: 1 1 220px; margin: 0; padding-left: 12px; border-left: 2px solid var(--stamp); font-size: 14px; line-height: 1.5; color: var(--ink); word-break: keep-all; }
.kp-refund { margin: 14px 0 0; font-size: 13px; color: var(--ink2); word-break: keep-all; }
.kp-refund a { color: var(--stamp); text-underline-offset: 2px; }
.kp-msg { margin: 10px 0 0; font-size: 13.5px; color: var(--stamp); min-height: 0; word-break: keep-all; }
.kp-msg:empty { display: none; }
.kp-msg.bad { color: var(--bad); }
.ku .kp-row { margin: 12px 0 0; }
.ku .ku-url { margin: 12px 0 0; padding: 10px; font-family: var(--f-mono); font-size: 13px; word-break: break-all; overflow-wrap: anywhere; background: var(--card2); border-radius: 4px; user-select: all; -webkit-user-select: all; }
.ku .ku-mail { font-family: inherit; font-size: 14px; line-height: 1.6; word-break: keep-all; }
.ku .kp-row a.cta, .ku .kp-row a.ghost { text-decoration: none; text-align: center; }
.kp-msg .ghost.sm { margin: 6px 0 0 6px; padding: 3px 10px; font-size: 12.5px; color: var(--ink); }
.ku .ku-how { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink2); word-break: keep-all; }
.film-in { width: min(380px, 100%); margin: auto; text-align: center; cursor: default; }
.film-in canvas, .film-in video, .film-in .film-pic { width: min(320px, 78vw); aspect-ratio: 9 / 16; height: auto; border-radius: 6px; background: #000; box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); display: block; margin: 0 auto; }
.film-msg { color: #cfc8bc; font-size: 14px; line-height: 1.6; margin: 16px 0 10px; word-break: keep-all; }
.film-bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.film-bar i { display: block; height: 100%; width: 100%; background: #4CC0AF; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.film-bar.wait i { animation: filmWait 1.4s ease-in-out infinite; }
@keyframes filmWait { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .film-bar.wait i { animation: none; } }
.film-in video { width: auto; height: min(569px, 56vh); max-width: 78vw; }
.film-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.film-acts .ghost { color: #ece6da; border-color: rgba(236,230,218,.35); text-decoration: none; }
.film-acts .ghost:hover { border-color: #ece6da; }
.film-acts .cta { text-decoration: none; }
.film-acts .film-tz { flex: 1 0 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; border-color: #f0dfb5; color: #f0dfb5; }
.film-acts .film-tz small { font-size: 12.5px; opacity: .8; }
.hp-bx { display: grid; grid-template-columns: minmax(118px, 180px) 1fr; gap: 16px; align-items: center; margin: 0 0 16px; padding: 12px; background: var(--hp-card); border: 1px solid var(--hp-line); border-radius: 10px; }
.hp-bxv { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 9 / 16; }
.hp-bxv canvas { width: 100%; height: 100%; display: block; }
.hp-bxv .kp-play { left: 50%; top: 50%; right: auto; transform: translate(-50%, -50%); width: 44px; height: 44px; transition: opacity .3s; }
.hp-bxv .kp-play::after { left: 17px; top: 13px; border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }
.hp-bx.on .kp-play { opacity: 0; }
.hp-bxv:focus-visible { outline: 2px solid var(--hp-acc); outline-offset: 2px; }
.hp-bxk { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--hp-acc); }
.hp-bxt h3 { margin: 2px 0 4px; font-family: var(--f-display); font-size: 21px; line-height: 1.3; color: var(--hp-ink); }
.hp-bxs { margin: 0; font-size: 14px; color: var(--hp-ink2); }
.hp-bxn { margin: 8px 0 12px; font-size: 13.5px; line-height: 1.6; color: var(--hp-ink2); word-break: keep-all; }
.hp-bxt .ghost.sm { color: var(--hp-ink); border-color: var(--hp-line); }
.ph-in { width: min(560px, 100%); margin: auto; text-align: center; cursor: default; }
.ph-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; -webkit-overflow-scrolling: touch; }
.ph-row img { flex: 0 0 auto; width: min(300px, 74vw); height: auto; aspect-ratio: 4 / 5; scroll-snap-align: center; border-radius: 4px; box-shadow: 0 16px 40px -18px rgba(0,0,0,.8); -webkit-touch-callout: default; }
.ph-row:focus-visible { outline: 2px solid #f0dfb5; outline-offset: 2px; }
.kp-sns { margin: 6px 0 16px; padding: 16px 14px 14px; border-radius: 12px; color: #f2ece0;
  background: radial-gradient(ellipse 70% 90% at 12% 0, #30363f, rgba(48,54,63,0) 70%), radial-gradient(ellipse 60% 70% at 100% 100%, #2b2520, rgba(43,37,32,0) 70%), #15171b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.sn-head { margin: 0 0 12px; }
.sn-h { margin: 0; font-family: var(--f-display); font-size: 19px; font-weight: 700; line-height: 1.3; color: #fff6e3; }
.sn-lead { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: #b7afa2; word-break: keep-all; }
.sn-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 150px); justify-content: start; gap: 10px; }
.sn-row.four { grid-auto-columns: minmax(104px, 164px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin; }
.sn-card { display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start; }
.sn-main { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 0; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sn-frame { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: #0b0c0f; box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 14px 24px -12px rgba(0,0,0,.85); transition: transform .18s ease, box-shadow .18s ease; }
.sn-main:hover .sn-frame { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(246,223,174,.55), 0 18px 28px -12px rgba(0,0,0,.9); }
.sn-main:focus-visible { outline: none; }
.sn-main:focus-visible .sn-frame { outline: 2px solid #f6dfae; outline-offset: 2px; }
.sn-main > b { margin-top: 7px; font-family: var(--f-display); font-size: 14.5px; font-weight: 700; line-height: 1.3; color: #fff6e3; }
.sn-sub { margin-bottom: 7px; font-size: 12px; line-height: 1.4; color: #a8a095; word-break: keep-all; }
.sn-go { align-self: flex-start; margin-top: auto; padding: 5px 12px; border-radius: 14px; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: #1c1912; background: #f0dfb5; }
.sn-card.soft .sn-go { color: #f0dfb5; background: none; box-shadow: inset 0 0 0 1px rgba(240,223,181,.6); }
.sn-again { align-self: flex-start; margin-top: 5px; padding: 2px 0; font: inherit; font-size: 12px; color: #c9c1b4; background: none; border: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sn-chip { position: absolute; right: 6px; bottom: 6px; z-index: 2; padding: 2px 7px; border-radius: 999px; font: 600 11px/1.4 var(--f-mono); color: #fff; background: rgba(0,0,0,.62); }
.sn-done { position: absolute; left: 6px; top: 6px; z-index: 2; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; color: #0f2f2b; background: #9be3d6; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.sn-frame img { display: block; image-rendering: pixelated; }
.sn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sn-phone { position: absolute; inset: 0; display: block; }
.sn-phone img { width: 100%; height: 100%; object-fit: cover; }
.sn-phone::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,0) 40%, rgba(0,0,0,0) 62%, rgba(0,0,0,.45)); }
.sn-ttl { position: absolute; left: 0; right: 0; top: 17%; z-index: 1; display: grid; justify-items: center; gap: 2px; padding: 0 6px; text-align: center; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.75); }
.sn-ttl b { font-family: var(--f-display); font-size: 13px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.sn-ttl small { font: 500 9.5px var(--f-mono); letter-spacing: .04em; opacity: .85; }
.sn-play { position: absolute; left: 50%; top: 57%; z-index: 1; width: 0; height: 0; margin: -10px 0 0 -6px; border-left: 17px solid rgba(255,255,255,.92); border-top: 10px solid transparent; border-bottom: 10px solid transparent; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.sn-cookie .sn-frame { background: radial-gradient(ellipse at 50% 42%, #3a352d, #121110 82%); }
.sn-print { position: absolute; left: 9%; right: 9%; top: 27%; display: block; padding: 5px 5px 17px; background: #fbf8f1; rotate: -4deg; box-shadow: 0 12px 18px -6px rgba(0,0,0,.75); }
.sn-print img { width: 100%; aspect-ratio: 92 / 60; object-fit: cover; }
.sn-print em { position: absolute; right: 9px; bottom: 20px; font: 600 8.5px var(--f-mono); font-style: normal; color: #ff9a3c; text-shadow: 0 0 4px rgba(255,120,40,.9); }
.sn-photos .sn-frame { background: radial-gradient(ellipse at 50% 30%, #f6efe0, #e2d6bd 85%); }
.sn-fan { position: absolute; inset: 0; display: block; }
.sn-fan span { position: absolute; left: 13%; width: 74%; padding: 4px; background: #fbf8f1; box-shadow: 0 6px 12px -4px rgba(60,40,20,.5); }
.sn-fan span:nth-child(1) { top: 13%; rotate: -8deg; }
.sn-fan span:nth-child(2) { top: 37%; rotate: 5deg; }
.sn-fan span:nth-child(3) { top: 61%; rotate: -3deg; }
.sn-fan img { width: 100%; aspect-ratio: 92 / 60; object-fit: cover; }
.sn-memo .kp-vis { position: absolute; inset: 0; height: auto; background-color: var(--hp-bg, #F2E4CF); background-image: radial-gradient(var(--hp-bg2, #E8D3B6) 1.4px, transparent 1.6px), radial-gradient(var(--hp-bg2, #E8D3B6) 1.4px, transparent 1.6px); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.sn-memo .kv-house { width: 84px; margin-top: 0; }
.sn-memo .kv-roof { border-left-width: 44px; border-right-width: 44px; border-bottom-width: 18px; }
.sn-memo .kv-room { width: 78px; padding: 3px; }
@media (min-width: 641px) { .sn-row { grid-auto-columns: minmax(0, 164px); } .sn-memo .kv-house { width: 118px; } .sn-memo .kv-roof { border-left-width: 62px; border-right-width: 62px; border-bottom-width: 25px; } .sn-memo .kv-room { width: 108px; padding: 4px; } }
@media (prefers-reduced-motion: reduce) { .sn-frame { transition: none; } .sn-main:hover .sn-frame { transform: none; } }
.kp-longt { margin-top: 2px; }
.kp-tiles.lite { gap: 10px; margin: 0 0 14px; }
.kp-tiles.lite .kp-vis { height: 112px; }
.kp-tiles.lite .kp-tile > b { font-size: 15.5px; }
.kp-tiles.lite .kp-sub { font-size: 12.5px; }
.kp-tiles.lite .kp-go { padding: 5px 12px; font-size: 13px; border-radius: 14px; }
@media (max-width: 640px) {
  .kp-tiles.lite { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kp-tiles.lite .kp-tile { grid-template-columns: none; grid-template-rows: auto auto 1fr auto; gap: 4px; padding: 0 0 11px; }
  .kp-tiles.lite .kp-vis { grid-row: auto; height: 86px; min-height: 0; }
  .kp-tiles.lite .kp-tile > b, .kp-tiles.lite .kp-sub, .kp-tiles.lite .kp-go { margin-left: 10px; margin-right: 10px; }
  .kp-tiles.lite .kp-tile > b { margin-top: 4px; font-size: 14.5px; }
  .kp-tiles.lite .kp-sub { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .kp-tiles.lite .kp-go { margin-bottom: 0; padding: 4px 10px; font-size: 12.5px; }
  .kp-tiles.lite .kv-phone { width: 40px; border-radius: 5px; }
  .kp-tiles.lite .kv-phone i { margin: -6px 0 0 -3px; border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; }
  .kp-tiles.lite .kv-book, .kp-tiles.lite .kv-doc { transform: scale(.66); }
  .kp-tiles.lite .kv-frame { width: 72px; margin-bottom: 18px; }
  .kp-tiles.lite .kv-house { width: 92px; margin-top: 2px; }
  .kp-tiles.lite .kv-roof { border-left-width: 46px; border-right-width: 46px; border-bottom-width: 18px; }
  .kp-tiles.lite .kv-room { width: 80px; padding: 3px; }
  .kp-tiles.lite .kv-floor { height: 16px; }
}
.film-cap { flex: 1 0 100%; margin: 6px 0 0; padding: 10px 12px; text-align: left; font-size: 13px; line-height: 1.55; color: #cfc8bc; background: rgba(255,255,255,.06); border-radius: 4px; word-break: keep-all; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.film-acts + .film-msg, .film-acts .film-msg { flex: 1 0 100%; margin: 6px 0 0; font-size: 13px; }
.film { cursor: default; }
.bookov { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: #2b2826; padding: 0 0 48px; }
.bk-bar { position: sticky; top: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: #2b2826; color: #eee; font-size: 14px; }
.bk-bar > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-btns { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; max-width: 860px; margin: 4px auto 10px; padding: 0 14px; }
.bk-btns .ghost { color: #eee; border-color: rgba(255,255,255,.4); }
.bk-bar .ghost { color: #eee; border-color: rgba(255,255,255,.4); }
.bk-note, .bk-msg { max-width: 860px; margin: 0 auto 12px; padding: 0 16px; color: #cfc8bc; font-size: 12.5px; text-align: center; word-break: keep-all; }
.bk-msg { color: #f6dfae; } .bk-msg:empty { display: none; }
.bk-host { display: block; max-width: 920px; margin: 0 auto; border-radius: 4px; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
@media print { html.book-open body > *:not(#book) { display: none !important; } html.book-open, html.book-open body { background: #fff !important; }
  .bookov { position: static; overflow: visible; padding: 0; background: #fff; } .bk-bar, .bk-btns, .bk-note, .bk-msg { display: none !important; } .bk-host { box-shadow: none; max-width: none; } }
.album { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: #2b2826; padding: 0 12px 48px; }
.al-bar { position: sticky; top: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 4px; background: #2b2826; color: #eee; font-size: 14px; }
.al-btns { display: flex; gap: 8px; }
.al-bar .ghost { color: #eee; border-color: rgba(255,255,255,.4); }
.al-note { color: #cfc8bc; font-size: 12.5px; text-align: center; margin: 0 0 14px; word-break: keep-all; }
.al-pages { display: grid; gap: 24px; justify-items: center; }
.al-page { --ink: #283349; --corner: #2b2622; position: relative; width: min(520px, 100%); aspect-ratio: 148 / 210; overflow: hidden; container-type: inline-size; color: #2c2722; font-family: var(--f-body);
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(255,250,238,.22), rgba(0,0,0,0) 75%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"), var(--al-paper, #e8ddc6); box-shadow: 0 16px 36px -16px rgba(0,0,0,.75); }
.al-page::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 6%; background: linear-gradient(90deg, rgba(70,45,20,.2), rgba(70,45,20,0)); pointer-events: none; }
.al-in { position: absolute; inset: 0; padding: 10cqw 8.5cqw 9cqw 10cqw; font-size: 3.1cqw; line-height: 1.5; }
.album, .al-page { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hw { font-family: 'Nanum Pen Script', var(--f-body); font-weight: 400; color: var(--ink); }
.al-pn { position: absolute; bottom: 4.4cqw; left: 0; right: 0; text-align: center; font-family: var(--f-mono); font-size: 2.2cqw; color: rgba(70,55,40,.5); }
.al-cover { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"), repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, rgba(0,0,0,0) 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.1) 0 1px, rgba(0,0,0,0) 1px 3px), radial-gradient(ellipse at 42% 30%, var(--al-cloth1, #31504d), var(--al-cloth2, #1b2e2d) 78%); }
.al-cover::after { width: 7%; background: linear-gradient(90deg, rgba(0,0,0,.4), rgba(255,255,255,.07) 45%, rgba(0,0,0,0)); }
.al-cover .al-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 13cqw 11cqw 10cqw 13cqw; color: var(--al-foil, #d9be86);
  box-shadow: inset 0 0 0 3.4cqw rgba(0,0,0,0), inset 0 0 0 3.7cqw var(--al-foil-line, rgba(217,190,134,.5)), inset 0 0 0 4cqw rgba(0,0,0,.18); }
.al-ctitle { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 4cqw; letter-spacing: .32em; padding-left: .32em; text-shadow: 0 .2cqw 0 rgba(0,0,0,.45); }
.al-window { width: 60cqw; margin: 10cqw 0 9cqw; padding: 2.4cqw; background: var(--al-paper, #e8ddc6); box-shadow: inset 0 .6cqw 1.4cqw rgba(0,0,0,.5), 0 0 0 .5cqw rgba(0,0,0,.28), 0 0 0 .8cqw rgba(217,190,134,.28); }
.al-window img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.al-window.empty { aspect-ratio: 92 / 60; }
.al-cover h1 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 8.6cqw; line-height: 1.1; color: var(--al-foil-hi, #e4ca91); text-shadow: 0 .25cqw 0 rgba(0,0,0,.5), 0 -.12cqw 0 rgba(255,240,200,.22); overflow-wrap: anywhere; text-wrap: balance; }
.al-cyrs { margin: 2.6cqw 0 0; font-family: var(--f-mono); font-size: 3cqw; letter-spacing: .2em; color: var(--al-foil, #d9be86); opacity: .85; }
.al-cfoot { margin: auto 0 0; font-family: var(--f-display); font-size: 2.8cqw; color: var(--al-foil, #d9be86); opacity: .66; }
.pf { position: relative; margin: 0; }
.ph { position: relative; background: #fbf9f4; padding: 1.7cqw; box-shadow: 0 .4cqw 1cqw rgba(50,35,20,.3), 0 0 0 .1cqw rgba(0,0,0,.05); }
.ph img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.ph.land::after, .ph.pano::after { content: ''; position: absolute; inset: -.8cqw; pointer-events: none; filter: drop-shadow(0 .2cqw .2cqw rgba(0,0,0,.3));
  background: linear-gradient(135deg, var(--corner) 50%, rgba(0,0,0,0) 50%) top left / 5cqw 5cqw no-repeat, linear-gradient(225deg, var(--corner) 50%, rgba(0,0,0,0) 50%) top right / 5cqw 5cqw no-repeat,
    linear-gradient(45deg, var(--corner) 50%, rgba(0,0,0,0) 50%) bottom left / 5cqw 5cqw no-repeat, linear-gradient(315deg, var(--corner) 50%, rgba(0,0,0,0) 50%) bottom right / 5cqw 5cqw no-repeat; }
.ph.sq { padding: 1.7cqw 1.7cqw 6.4cqw; }
.tape { position: absolute; z-index: 2; top: -2.3cqw; left: 50%; width: 15cqw; height: 4.4cqw; margin-left: -7.5cqw; rotate: -4deg; background: rgba(206,166,150,.74); box-shadow: 0 .1cqw .3cqw rgba(0,0,0,.12);
  clip-path: polygon(0 8%, 4% 0, 96% 0, 100% 10%, 97% 30%, 100% 50%, 97% 70%, 100% 90%, 96% 100%, 4% 100%, 0 92%, 3% 70%, 0 50%, 3% 30%); }
.ds { position: absolute; right: 3.6cqw; bottom: 2.9cqw; font-family: var(--f-mono); font-size: 2.3cqw; font-weight: 600; letter-spacing: .1em; color: #ff8b3d; text-shadow: 0 0 .6cqw rgba(255,120,40,.75); opacity: .9; }
.ph.sq .ds { bottom: 7.6cqw; }
.pf figcaption { margin: 2.2cqw .6cqw 0; font-size: 4.3cqw; line-height: 1.12; rotate: -.6deg; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.al-h { display: flex; align-items: baseline; justify-content: space-between; gap: 3cqw; margin: 0 0 5cqw; }
.al-h h2 { margin: 0; font-size: 9.4cqw; line-height: 1; rotate: -1deg; }
.al-h span { font-family: var(--f-mono); font-size: 2.5cqw; letter-spacing: .06em; color: rgba(70,55,40,.6); white-space: nowrap; }
.al-col { display: grid; grid-template-columns: 54fr 40fr; gap: 5.5cqw; align-items: start; }
.al-col .c1, .al-col .c2 { display: grid; gap: 6cqw; align-content: start; }
.al-col .c2 { padding-top: 6cqw; }
.al-ch .f1 { rotate: -1.6deg; }
.al-ch .f2 { rotate: 2.4deg; }
.al-ch .f3 { rotate: 1.4deg; }
.al-ch .c1 .al-card { rotate: -1.4deg; }
.al-ch.t1 .al-col { grid-template-columns: 1fr; }
.al-ch.t1 .f1 { width: 84%; justify-self: center; }
.al-ch > .al-in > .al-card { width: 68%; margin: 6cqw 0 0 auto; rotate: 1.2deg; }
.al-ch.t2 > .al-in > .al-card { margin-left: 2cqw; rotate: -1.2deg; }
.al-card { position: relative; padding: 5.6cqw 4cqw 2.4cqw; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 5.1cqw, rgba(92,130,186,.33) 5.1cqw 5.25cqw) 0 4.9cqw / 100% calc(100% - 4.9cqw) no-repeat, linear-gradient(to bottom, rgba(0,0,0,0) 4.1cqw, rgba(206,90,90,.5) 4.1cqw 4.35cqw, rgba(0,0,0,0) 4.35cqw), #fdfcf6; box-shadow: 0 .4cqw 1cqw rgba(50,35,20,.25); }
.al-card .tape { top: -2.2cqw; width: 12cqw; margin-left: -6cqw; rotate: 3deg; background: rgba(176,190,152,.78); }
.al-card p { margin: 0; font-size: 4.5cqw; line-height: 5.25cqw; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.al-card small { display: block; font-size: 2.3cqw; line-height: 5.25cqw; color: rgba(70,55,40,.6); text-align: right; }
.al-hwlist { list-style: none; margin: 3cqw 0 0; padding: 0; }
.al-hwlist li { font-size: 4.6cqw; line-height: 1.3; padding: 1.4cqw 0; border-bottom: .15cqw dashed rgba(40,51,73,.28); word-break: keep-all; }
.al-baby h2 { margin: 0 0 6cqw; font-size: 10.5cqw; line-height: 1; text-align: center; rotate: -1.2deg; }
.al-baby .b1 { width: 80%; margin: 0 auto 9cqw; rotate: 1.4deg; }
.al-fill { display: grid; gap: 3.6cqw; margin: 0; }
.al-fill div { display: flex; align-items: baseline; gap: 2.6cqw; }
.al-fill dt { flex: none; width: 19cqw; font-size: 2.8cqw; color: rgba(70,55,40,.72); }
.al-fill dd { flex: 1; min-width: 0; margin: 0; padding: 0 1cqw .5cqw; border-bottom: .28cqw dotted rgba(70,55,40,.45); font-size: 5.6cqw; line-height: 1.1; overflow-wrap: anywhere; }
.al-one { margin: 8cqw 2cqw 0; text-align: right; font-size: 5.4cqw; rotate: -1.5deg; }
.al-fun h2 { margin: 6cqw 0 10cqw; font-size: 10cqw; line-height: 1; text-align: center; }
.al-fun .pf { rotate: -.8deg; }
.al-fun .ph { background: #23201e; }
.al-fun .pf figcaption { margin-top: 5cqw; text-align: center; font-size: 5cqw; -webkit-line-clamp: 4; }
.al-att { margin: 3cqw 0 0; text-align: center; font-size: 4.4cqw; }
.al-epi .al-in { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.al-orn { margin: 0 0 4cqw; font-family: var(--f-display); font-size: 4cqw; color: #a88a52; }
.al-epi h1 { margin: 0; font-family: var(--f-display); font-size: 8cqw; line-height: 1.15; overflow-wrap: anywhere; }
.al-yrs { margin: 2cqw 0 5cqw; font-family: var(--f-mono); font-size: 2.8cqw; letter-spacing: .14em; color: rgba(70,55,40,.66); }
.al-epi p { margin: 1.2cqw 0; font-size: 3.2cqw; line-height: 1.6; word-break: keep-all; }
.al-epi blockquote { margin: 6cqw 0 0; font-size: 5.4cqw; line-height: 1.22; word-break: keep-all; }
.al-epi blockquote small { display: block; margin-top: 1.4cqw; font-family: var(--f-body); font-size: 2.3cqw; color: rgba(70,55,40,.62); }
.al-epi .al-fw { color: #6d3f22; }
.al-close { margin: 7cqw 0 0; font-family: var(--f-display); font-size: 3.6cqw; }
.al-glance h2 { margin: 0 0 6cqw; font-size: 9.4cqw; line-height: 1; rotate: -1deg; }
.al-letter { position: relative; margin: 0 0 6cqw; padding: 6cqw 5.5cqw 5cqw; background: #fbf9f3; rotate: .7deg; box-shadow: 0 .4cqw 1cqw rgba(50,35,20,.25); }
.al-letter .tape { left: 18%; }
.al-letter p { margin: 0; font-size: 2.8cqw; line-height: 1.7; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 14; -webkit-box-orient: vertical; overflow: hidden; }
.al-facts { display: grid; grid-template-columns: 20cqw minmax(0, 1fr); gap: 1.8cqw 3cqw; margin: 0 0 6cqw; font-size: 3cqw; line-height: 1.45; }
.al-facts dt { padding-top: .3cqw; font-size: 2.6cqw; color: rgba(70,55,40,.62); }
.al-facts dd { margin: 0; word-break: keep-all; }
.al-band { display: flex; align-items: flex-end; gap: .15cqw; height: 11cqw; border-bottom: .2cqw solid rgba(70,55,40,.3); }
.al-band i { flex: 1; min-width: 0; border-radius: .2cqw .2cqw 0 0; }
.al-cap { margin: 1.4cqw 0 0; font-size: 2.4cqw; color: rgba(70,55,40,.6); }
.al-page.al-rec { aspect-ratio: auto; overflow: visible; container-type: normal; }
.al-rec .al-in { position: static; padding: 40px 32px 36px 40px; font-size: 13px; }
.al-rec h2 { margin: 0 0 4px; font-family: var(--f-display); font-size: 22px; }
.al-rec h3 { margin: 20px 0 6px; font-family: var(--f-display); font-size: 15px; }
.al-sub { margin: 0 0 16px; font-family: var(--f-mono); font-size: 11px; color: #8a8072; }
.al-all, .al-src { list-style: none; margin: 0; padding: 0; }
.al-all { column-width: 200px; column-gap: 26px; }
.al-all li { display: grid; grid-template-columns: 3.3em minmax(0, 1fr); gap: 6px; padding: 2px 0; font-size: 11px; line-height: 1.5; word-break: keep-all; break-inside: avoid; }
.al-a { padding-top: 1px; font-family: var(--f-mono); font-size: 10px; color: #8a8072; }
.al-all li.key .al-a { color: #a0473d; }
.al-src li { padding: 2px 0; font-size: 10px; color: #6f665a; }
.al-rec .al-pn { display: none; }
.al-lock .al-in { display: flex; flex-direction: column; justify-content: center; }
.al-lock h2 { margin: 0 0 4cqw; font-size: 9cqw; line-height: 1.05; }
.al-lock p { margin: 3cqw 0; font-size: 3.2cqw; line-height: 1.6; word-break: keep-all; }
.album.pv .al-in::before { content: attr(data-pv); position: absolute; z-index: 3; top: 3.4cqw; right: 3.6cqw; padding: .3cqw 1.4cqw; border: .3cqw solid #a0473d; border-radius: .7cqw; rotate: 5deg; font-family: var(--f-mono); font-size: 2.4cqw; letter-spacing: .1em; color: #a0473d; background: rgba(255,255,255,.35); }
@media (min-width: 1120px) {
  .al-pages { grid-template-columns: repeat(2, 520px); column-gap: 0; row-gap: 36px; justify-content: center; }
  .al-pages > .al-cover, .al-pages > .al-rec { grid-column: 1 / -1; justify-self: center; }
  .al-pages > .al-page:nth-child(even)::after { left: auto; right: 0; background: linear-gradient(270deg, rgba(70,45,20,.24), rgba(70,45,20,0)); }
  .al-pages > .al-rec { width: 1040px; }
}
.album.t-calm { --al-paper: #e1e0da; --al-cloth1: #3a4d68; --al-cloth2: #1d2739; --al-foil: #cfd6e0; --al-foil-hi: #e6ebf2; --al-foil-line: rgba(207,214,224,.5); }
.album.t-mono { --al-paper: #efede8; --al-cloth1: #3b3b3b; --al-cloth2: #151515; --al-foil: #d4d4d4; --al-foil-hi: #ededed; --al-foil-line: rgba(212,212,212,.5); }
.album.t-mono .ph img, .album.t-mono .al-window img { filter: grayscale(1) contrast(1.06) !important; }
.album.t-mono .ds { color: #f2f2f2; text-shadow: 0 0 .5cqw rgba(0,0,0,.6); }
.album.t-mono .tape { background: rgba(190,190,190,.7); }
.album.t-clear { --al-paper: #f5f2ea; --al-cloth1: #e2ddcc; --al-cloth2: #c7bfa6; --al-foil: #5b4a2c; --al-foil-hi: #4a3b20; --al-foil-line: rgba(91,74,44,.45); }
.album.t-clear .al-cover h1, .album.t-clear .al-ctitle { text-shadow: none; }
.album.t-clear .ph img { filter: none !important; }
.album.cl-navy { --al-cloth1: #34466c; --al-cloth2: #182238; --al-foil: #d9be86; --al-foil-hi: #e4ca91; --al-foil-line: rgba(217,190,134,.5); }
.album.cl-wine { --al-cloth1: #6c2f3d; --al-cloth2: #3a141d; --al-foil: #dcc08a; --al-foil-hi: #e8cf98; --al-foil-line: rgba(220,192,138,.5); }
.album.cl-green { --al-cloth1: #31504d; --al-cloth2: #1b2e2d; --al-foil: #d9be86; --al-foil-hi: #e4ca91; --al-foil-line: rgba(217,190,134,.5); }
.album.cl-brown { --al-cloth1: #6a4a30; --al-cloth2: #382415; --al-foil: #e0c48c; --al-foil-hi: #ecd39d; --al-foil-line: rgba(224,196,140,.5); }
.album.cl-cream { --al-cloth1: #e8e2d0; --al-cloth2: #c9c0a6; --al-foil: #5b4a2c; --al-foil-hi: #4a3b20; --al-foil-line: rgba(91,74,44,.45); }
.album.cl-cream .al-cover h1, .album.cl-cream .al-ctitle { text-shadow: none; }
.album:is(.cl-navy, .cl-wine, .cl-green, .cl-brown) .al-cover h1 { text-shadow: 0 .25cqw 0 rgba(0,0,0,.5), 0 -.12cqw 0 rgba(255,240,200,.22); }
.album:is(.cl-navy, .cl-wine, .cl-green, .cl-brown) .al-ctitle { text-shadow: 0 .2cqw 0 rgba(0,0,0,.45); }
.al-ctitle.own { letter-spacing: .08em; padding-left: 0; font-size: 4.6cqw; line-height: 1.3; max-width: 100%; overflow-wrap: anywhere; text-wrap: balance; }
.al-ded .al-in { display: flex; align-items: center; justify-content: center; }
.al-dedw { margin: 0 4cqw; font-size: 7cqw; line-height: 1.3; text-align: center; rotate: -1.5deg; word-break: keep-all; overflow-wrap: anywhere; }
.cu-h { margin: 18px 0 8px; font-size: 14px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.cu-h small { font-weight: 400; color: var(--ink3); font-variant-numeric: tabular-nums; font-size: 12px; }
.cu-tabs { position: sticky; top: -18px; z-index: 2; display: flex; gap: 4px; margin: 12px -18px 0; padding: 8px 18px 0; background: var(--card); border-bottom: 1px solid var(--rule); }
.cu-tab { flex: 1; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink2); font: inherit; font-size: 14.5px; padding: 9px 4px 10px; cursor: pointer; }
.cu-tab[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--stamp); }
.cu canvas { display: block; image-rendering: pixelated; border-radius: 3px; background: var(--card2); }
.cu canvas.none { visibility: hidden; }
.cu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cu-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 4px 8px 6px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.cu-row canvas { width: 104px; height: auto; aspect-ratio: 192 / 60; margin-top: 3px; }
.cu-rh { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 30px; margin-top: -2px; }
.cu-row.ed { border-color: var(--stamp); box-shadow: inset 0 0 0 1px var(--stamp); }
.cu .cu-ra { margin: 0; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.cu-ra em { font-style: normal; font-size: 11px; padding: 0 5px; border-radius: 3px; background: var(--card2); color: var(--ink2); margin-left: 2px; }
.cu-ra em.own { background: var(--stamp-soft); color: var(--ink); }
.cu .cu-rx { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.cu-rb { display: flex; gap: 0; flex: none; }
.cu-ib { width: 32px; height: 30px; border: 1px solid transparent; border-radius: 50%; background: none; color: var(--ink2); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.cu-ib:hover { border-color: var(--rule); color: var(--ink); }
.cu-in { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); resize: vertical; }
.cu-row .cu-in { margin-top: 4px; font-size: 14px; }
.cu .cu-capb { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin: 6px 0 0; }
.cu-capb small { margin-right: auto; color: var(--ink3); font-size: 12px; font-variant-numeric: tabular-nums; }
.cu .cta.sm { padding: 6px 14px; font-size: 13px; }
.cu-stages { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cu-stg { flex: none; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 13.5px; padding: 6px 12px; cursor: pointer; }
.cu-stg b { display: inline-block; min-width: 18px; margin-left: 2px; padding: 0 5px; border-radius: 9px; background: var(--stamp); color: var(--paper); font-size: 11.5px; font-weight: 600; text-align: center; }
.cu-stg[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cu-all { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 2px; font-size: 13px; color: var(--ink2); cursor: pointer; }
.cu-browse { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cu-yr { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: start; padding-top: 10px; border-top: 1px solid var(--rule2, var(--rule)); }
.cu-yr canvas { width: 104px; height: auto; aspect-ratio: 192 / 60; position: sticky; top: 40px; }
.cu-ye { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cu .cu-ya { margin: 0; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.cu-ev { position: relative; text-align: left; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink2); font: inherit; font-size: 13.5px; line-height: 1.45; padding: 7px 34px 7px 10px; cursor: pointer; word-break: keep-all; overflow-wrap: anywhere; }
.cu-ev.key { color: var(--ink); }
.cu-ev::after { content: ''; position: absolute; right: 9px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink3); }
.cu-ev[aria-pressed="true"] { border-color: var(--stamp); box-shadow: inset 0 0 0 1px var(--stamp); color: var(--ink); }
.cu-ev[aria-pressed="true"]::after { background: var(--stamp) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: none; }
.cu .cu-none { margin: 10px 0 0; font-size: 13px; color: var(--ink3); }
.cu-covers { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cu-cv { flex: none; width: 96px; display: grid; gap: 4px; padding: 4px 4px 6px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.cu-cv canvas { width: 100%; height: auto; aspect-ratio: 192 / 60; }
.cu-cv span { font-size: 12px; color: var(--ink2); padding: 0 2px; }
.cu-cv.auto { place-items: center; min-height: 48px; font-size: 13px; }
.cu-cv[aria-pressed="true"] { border-color: var(--stamp); box-shadow: inset 0 0 0 1px var(--stamp); }
.cu-note, .cu .cu-note { margin: 6px 0 0; font-size: 12.5px; color: var(--ink3); word-break: keep-all; }
.cu .cm-sub { margin-bottom: 0; }
.cu-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cu-th { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.cu-th:has(i) { padding-left: 9px; }
.cu-th[aria-pressed="true"] { border-color: var(--stamp); box-shadow: inset 0 0 0 1px var(--stamp); }
.cu-th i { width: 18px; height: 18px; border-radius: 50%; }
.cu-th-warm i { background: linear-gradient(135deg, #d8a35c, #31504d); }
.cu-th-calm i { background: linear-gradient(135deg, #8fa6c2, #1d2739); }
.cu-th-mono i { background: linear-gradient(135deg, #e8e8e8, #222); }
.cu-th-clear i { background: linear-gradient(135deg, #fffaf0, #c7bfa6); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cu-cl-auto i { background: conic-gradient(#2b3a5c, #5a2633, #31504d, #5a3d27, #e2ddcc, #2b3a5c); }
.cu-cl-navy i { background: #2b3a5c; } .cu-cl-wine i { background: #5a2633; } .cu-cl-green i { background: #31504d; } .cu-cl-brown i { background: #5a3d27; }
.cu-cl-cream i { background: #e2ddcc; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cu .cu-more { margin: 10px 0 0; }
.cu-priv { margin-top: 18px; }
.cu-acts { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 4px; }
.cu button:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
@media (max-width: 380px) { .cu-row, .cu-yr { grid-template-columns: 84px minmax(0, 1fr); gap: 8px; } .cu-row canvas, .cu-yr canvas { width: 84px; } }
@media print {
  html.album-open body > *:not(#album) { display: none !important; }
  html.album-open, html.album-open body { background: #fff !important; }
  .album { position: static; overflow: visible; background: none; padding: 0; }
  .al-bar, .al-note, .album.pv { display: none !important; }
  .al-pages { display: block; }
  .al-page { width: 148mm; height: 210mm; aspect-ratio: auto; margin: 0; box-shadow: none; break-after: page; page-break-after: always; }
  .al-page:last-child { break-after: auto; page-break-after: auto; }
  .al-page.al-rec { page: rec; width: auto; height: auto; background: none; }
  .al-page.al-rec::after { display: none; }
  .al-rec .al-in { padding: 0; }
  .al-all { column-count: 2; column-width: auto; column-gap: 7mm; }
  @page { size: A5; margin: 0; }
  @page rec { size: A5; margin: 14mm 12mm 16mm; }
}
.memo { position: fixed; inset: 0; z-index: 75; overflow-y: auto; background: #0e1113; color: #ece6da; }
.memo[hidden] { display: none; }
.memo-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: rgba(14,17,19,.92); font-size: 13px; color: #a59f95; letter-spacing: .04em; z-index: 1; }
.memo-bar .ghost { color: #ece6da; border-color: rgba(255,255,255,.3); }
.memo-body { width: min(560px, 100%); margin: 0 auto; padding: 24px 16px 60px; text-align: center; }
.memo-wait { color: #a59f95; margin: 40px 0; }
.memo-pv { margin: 0 0 6px; padding: 8px 12px; border: 1px solid rgba(240,223,181,.35); border-radius: 4px; color: #f0dfb5; font-size: 13.5px; line-height: 1.55; word-break: keep-all; }
.ex-fr-gold { --fr: #a9853f; --fr2: #5a4219; --frh: #e8cb85; }
.ex-fr-black { --fr: #191817; --fr2: #000; --frh: #34312e; --mat: #f8f6f1; }
.ex-fr-white { --fr: #ebe6dc; --fr2: #a9a294; --frh: #fffdf7; }
.flame.off::before { left: 4.5px; top: 9px; width: 1px; height: 3px; border-radius: 0; background: #3b3129; animation: none; }
.memo-bar-r { display: flex; gap: 8px; align-items: center; flex: none; }
.memo-bar > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 10px; }
.memo-bar-r .ghost { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.memo-pv .ghost.sm { margin: 6px 0 0 6px; padding: 3px 12px; font-size: 12.5px; color: #f6e6bf; border-color: rgba(240,223,181,.5); }
.memo-bar .ghost[aria-pressed="true"] { border-color: #f0dfb5; color: #f0dfb5; }
.memo.hpm { --hp-bg: #F2E4CF; --hp-bg2: #E8D3B6; --hp-card: #FFFBF3; --hp-ink: #3B2E24; --hp-ink2: #7A6553; --hp-line: #E6D3BA; --hp-acc: #B9682F; --hp-tab: #F8ECDB;
  color: var(--hp-ink); background-color: var(--hp-bg); background-image: radial-gradient(var(--hp-bg2) 1.6px, transparent 1.8px), radial-gradient(var(--hp-bg2) 1.6px, transparent 1.8px);
  background-size: 24px 24px; background-position: 0 0, 12px 12px; }
.memo.hpm .memo-bar { background: color-mix(in srgb, var(--hp-card) 90%, transparent); color: var(--hp-ink2); border-bottom: 1px solid var(--hp-line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.memo.hpm .memo-bar .ghost, .hp .ghost { color: var(--hp-ink); border-color: color-mix(in srgb, var(--hp-ink) 28%, transparent); background: transparent; }
.memo.hpm .memo-bar .ghost[aria-pressed="true"] { border-color: var(--hp-acc); color: var(--hp-acc); }
.memo.hpm .memo-wait { color: var(--hp-ink2); }
.memo-body.hp { width: min(1000px, 100%); padding: 14px 12px 48px; text-align: left; }
.hp .memo-pv { margin: 0 0 12px; border-color: var(--hp-line); background: var(--hp-card); color: var(--hp-ink2); text-align: center; }
.hp .memo-pv .ghost.sm { color: var(--hp-ink); border-color: var(--hp-line); }
.hp-crumb { display: flex; align-items: flex-end; gap: 10px; margin: 2px 4px 12px; font-size: 14px; color: var(--hp-ink2); min-width: 0; }
.hp-crumb span { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.hp-crumb i { font-style: normal; opacity: .6; }
.hp-crumb b { font-family: var(--f-display); font-size: 18px; color: var(--hp-ink); }
.hp-home { flex: none; height: 30px; width: auto; image-rendering: pixelated; }
.hp-hk { padding: 0; border: 0; background: none; font: inherit; color: var(--hp-acc); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hp-grid { display: grid; gap: 14px; align-items: start; }
.hp-side, .hp-main { background: var(--hp-card); border: 1px solid var(--hp-line); border-radius: 16px; box-shadow: 0 1px 0 var(--hp-line), 0 14px 30px -22px rgba(40,30,20,.45); }
.hp-side { padding: 16px; }
.hp-id { display: flex; gap: 14px; align-items: center; }
.hp-face { flex: none; width: 84px; height: auto; aspect-ratio: 1; image-rendering: pixelated; border-radius: 12px; box-shadow: 0 0 0 3px var(--hp-card), 0 0 0 4px var(--hp-line); }
.hp-tt { margin: 0 0 4px; font-family: var(--f-display); font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--hp-acc); overflow-wrap: anywhere; }
.hp-id h1 { margin: 0; font-family: var(--f-display); font-size: 24px; line-height: 1.15; color: var(--hp-ink); overflow-wrap: anywhere; }
.hp-yrs { margin: 4px 0 0; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--hp-ink2); }
.hp-from { margin: 2px 0 0; font-size: 13.5px; color: var(--hp-ink2); }
.hp-road { margin: 14px 0 0; font-size: 15px; font-weight: 700; line-height: 1.45; word-break: keep-all; }
.hp-ded { margin: 12px 0 0; padding: 8px 12px; border-left: 3px solid var(--hp-acc); background: var(--hp-tab); border-radius: 0 8px 8px 0; font-family: var(--f-display); font-size: 15.5px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.hp-ded small { display: block; margin-top: 2px; font-family: var(--f-body); font-size: 11.5px; color: var(--hp-ink2); }
.hp-epi { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--hp-ink); word-break: keep-all; }
.hp-band { display: flex; align-items: flex-end; gap: 1px; height: 34px; margin: 16px 0 4px; border-bottom: 1px solid var(--hp-line); }
.hp-band i { flex: 1; min-width: 1px; border-radius: 1px 1px 0 0; }
.hp-bcap { margin: 0; font-size: 11.5px; color: var(--hp-ink2); }
.hp-altar { margin: 16px 0 0; padding: 18px 12px 14px; border-radius: 12px; text-align: center; color: #efe4cf;
  background: radial-gradient(ellipse 60% 55% at 50% 38%, rgba(242,181,68,.16), rgba(242,181,68,0) 70%), linear-gradient(#3b302a, #261f1b); }
.hp-alt-row { display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.hp-altar .memo-candles { align-items: flex-end; gap: 13px; min-height: 40px; margin: 0; }
.hp-altar .flame { height: calc(13px + var(--w, 14px)); transform: scale(1.25); transform-origin: center bottom; }
.hp-altar .flame::after { top: 12px; height: var(--w, 14px); background: linear-gradient(90deg, #d9d0bd, #f4eedf 45%, #cfc5b0); }
.hp-altar .flame:not(.off)::before { filter: drop-shadow(0 0 4px rgba(255,196,96,.9)); }
.hp-vase { flex: none; width: 34px; height: 41px; image-rendering: pixelated; }
.hp-shelf { height: 6px; margin: 0 6px; border-radius: 1px; background: linear-gradient(#6a5440, #3a2d22); }
.hp-altar .memo-cnote { margin: 12px 0 10px; font-size: 13px; color: rgba(239,228,207,.75); }
.hp-altar .cta:disabled { opacity: .55; cursor: default; }
.hp-main { min-width: 0; }
.hp-tabs { position: sticky; top: 52px; z-index: 2; display: flex; gap: 4px; padding: 8px 8px 0; background: var(--hp-tab); border-bottom: 1px solid var(--hp-line); border-radius: 16px 16px 0 0; overflow-x: auto; scrollbar-width: none; }
.hp-tabs::-webkit-scrollbar { display: none; }
.hp-tab { flex: 1 0 auto; margin-bottom: -1px; padding: 9px 12px 8px; border: 1px solid transparent; border-bottom: 0; border-radius: 11px 11px 0 0; background: none; font: inherit; font-size: 14.5px; color: var(--hp-ink2); cursor: pointer; white-space: nowrap; }
.hp-tab[aria-selected="true"] { background: var(--hp-card); border-color: var(--hp-line); color: var(--hp-ink); font-weight: 700; box-shadow: inset 0 3px 0 var(--hp-acc); }
.hp-tab:focus-visible, .hp-thumb:focus-visible, .hp-more:focus-visible, .hp-hk:focus-visible { outline: 2px solid var(--hp-acc); outline-offset: 2px; }
.hp-pane { padding: 16px 14px 20px; }
.hp-pane[hidden] { display: none; }
.hp-print { padding: 7px; background: var(--mat, #f2eee5); border-radius: 1px; box-shadow: 0 0 0 1px var(--frh, #6b5038), 0 0 0 5px var(--fr, #3b2d20), 0 0 0 6px var(--fr2, #1d160f), 0 10px 16px -8px rgba(0,0,0,.45); margin: 6px; }
.hp-print canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.hp-print.dark { background: #1f1d1c; box-shadow: 0 0 0 5px #121010, 0 0 0 6px #000, 0 10px 16px -8px rgba(0,0,0,.5); }
.hp-room-f { margin: 0; }
.hp-room-f figcaption { margin: 12px 2px 0; font-size: 13.5px; color: var(--hp-ink2); word-break: keep-all; }
.hp-room-f figcaption p { margin: 0; }
.hp .rm-acts .ghost { padding: 5px 12px; font-size: 13px; }
.hp-recent { display: grid; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--hp-line); }
.hp-recent h3 { margin: 0 0 8px; }
.hp-more { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--hp-ink); cursor: pointer; }
.hp-more span { color: var(--hp-acc); font-size: 17px; line-height: 1; }
.hp-thumbs { display: flex; gap: 10px; }
.hp-thumb { flex: 0 1 96px; display: grid; gap: 4px; padding: 5px 5px 4px; border: 0; border-radius: 2px; background: #fbf9f4; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 4px 10px -6px rgba(0,0,0,.35); font: inherit; font-size: 11.5px; color: #5a5048; cursor: pointer; }
.hp-thumb:nth-child(2) { transform: rotate(1.5deg); } .hp-thumb:nth-child(3) { transform: rotate(-1.2deg); }
.hp-thumb canvas { width: 100%; height: auto; image-rendering: pixelated; display: block; }
.hp-wl p { margin: 0; padding: 9px 2px 9px 22px; border-bottom: 1px dashed var(--hp-line); font-size: 14.5px; line-height: 1.5; word-break: keep-all; position: relative; }
.hp-wl p::before { content: ''; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle, #f2b544 30%, color-mix(in srgb, #f2b544 30%, transparent) 70%); }
.hp-wl p.me { color: var(--hp-acc); font-weight: 600; }
.hp-wl p.new { animation: memoIn .6s ease-out 1; }
.hp-wl p.none { color: var(--hp-ink2); border-bottom: 0; padding-left: 2px; }
.hp-wl p.none::before { display: none; }
.hp-wl.mini p { font-size: 13.5px; padding-top: 6px; padding-bottom: 6px; }
.hp-wl.mini p::before { top: 12px; }
.hp-gnote { margin: 0 0 10px; font-size: 13.5px; color: var(--hp-ink2); word-break: keep-all; }
.hp .memo-wq { margin: 18px 0 8px; font-size: 13.5px; font-weight: 700; color: var(--hp-ink); }
.hp .memo-wb { justify-content: flex-start; }
.hp .memo-w { border-color: var(--hp-line); color: var(--hp-ink); background: var(--hp-tab); }
.hp .memo-w:hover:not(:disabled) { border-color: var(--hp-acc); background: var(--hp-card); }
.hp-stage { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin: 22px 0 12px; padding: 7px 12px; border-left: 6px solid var(--st); border-radius: 4px 10px 10px 4px; background: color-mix(in srgb, var(--st) 16%, transparent); font-family: var(--f-display); font-size: 17px; }
.hp-album .hp-stage:first-child { margin-top: 0; }
.hp-stage span { font-family: var(--f-mono); font-size: 12px; color: var(--hp-ink2); }
.hp-prints { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px 16px; }
.hp-ph { margin: 0; scroll-margin: 110px; }
.hp-ph figcaption { margin: 10px 2px 0; font-size: 13.5px; line-height: 1.6; }
.hp-ph figcaption b { font-family: var(--f-display); font-size: 16px; margin-right: 6px; }
.hp-ph figcaption span { font-family: var(--f-mono); font-size: 11.5px; color: var(--hp-ink2); }
.hp-ph figcaption em { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--hp-tab); font-style: normal; font-size: 11px; color: var(--hp-acc); vertical-align: 1px; }
.hp-ph figcaption p { margin: 4px 0 0; word-break: keep-all; overflow-wrap: anywhere; }
.hp-ph.nt figcaption p, .hp-ph figcaption p.note { font-family: var(--f-display); font-size: 15px; }
.hp-endw { margin: 18px auto 6px; max-width: 34em; }
.hp-fun { margin: 0; }
.hp-fun figcaption { margin: 12px 2px 0; font-size: 14px; line-height: 1.6; word-break: keep-all; }
.hp-fun figcaption p { margin: 0 0 4px; }
.hp-fun figcaption .sub { font-size: 13px; color: var(--hp-ink2); }
.hp-plaque { margin: 22px auto 0; max-width: 520px; padding: 26px 22px; text-align: center; border-radius: 3px; color: #f1e2bd; text-shadow: 0 1px 0 rgba(0,0,0,.55);
  background: radial-gradient(circle at 12px 12px, #2a2015 2.5px, rgba(0,0,0,0) 3.5px), radial-gradient(circle at calc(100% - 12px) 12px, #2a2015 2.5px, rgba(0,0,0,0) 3.5px), radial-gradient(circle at 12px calc(100% - 12px), #2a2015 2.5px, rgba(0,0,0,0) 3.5px), radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #2a2015 2.5px, rgba(0,0,0,0) 3.5px), linear-gradient(150deg, #7a6240, #4c3b24 55%, #3a2c1a);
  box-shadow: inset 0 0 0 1px rgba(255,230,180,.22), inset 0 0 0 6px rgba(0,0,0,.12), 0 12px 22px -10px rgba(0,0,0,.55); }
.hp-plaque h2 { margin: 0; font-family: var(--f-display); font-size: 28px; color: #f7e9c6; overflow-wrap: anywhere; }
.hp-plaque .hp-yrs { margin: 6px 0 14px; color: rgba(241,226,189,.75); }
.hp-plaque p { margin: 5px 0; line-height: 1.65; word-break: keep-all; }
.hp-plaque blockquote { margin: 18px 0 0; font-family: var(--f-display); font-size: 16px; line-height: 1.6; color: #fbeccb; word-break: keep-all; }
.hp-plaque blockquote small { display: block; margin-top: 4px; font-family: var(--f-body); font-size: 11.5px; color: rgba(241,226,189,.7); }
.hp-acts { display: flex; justify-content: center; margin-top: 18px; }
.hp-last .memo-close { margin: 22px 0 0; text-align: center; font-size: 19px; color: var(--hp-ink); text-wrap: balance; }
.hp-foot { margin: 22px 0 0; text-align: center; }
.hp-foot .ex-born { margin: 0 auto 12px; max-width: 560px; padding: 18px 16px; border: 1px solid var(--hp-line); border-radius: 16px; background: var(--hp-card); }
.hp-foot .ex-born p { margin: 0 0 12px; font-size: 15px; word-break: keep-all; }
.hp-foot .ex-born .cta { padding: 12px 26px; font-size: 16px; }
.hp-sub { margin: 0 0 14px; font-size: 13px; color: var(--hp-ink2); }
.hp .memo-share .ghost, .hp .memo-links .ghost, .hm-ov .memo-links .ghost { color: var(--hp-ink); border-color: color-mix(in srgb, var(--hp-ink) 28%, transparent); background: transparent; }
.hp .memo-links .ghost.quiet { color: var(--hp-ink2); border-color: color-mix(in srgb, var(--hp-ink) 16%, transparent); }
@media (min-width: 560px) { .hp-recent { grid-template-columns: 1.2fr 1fr; } }
@media (max-width: 879px) {
  .hp-altar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 12px 14px 10px; text-align: left; }
  .hp-alt-row { grid-column: 1; justify-content: flex-start; border-bottom: 4px solid #4d3d2f; padding-bottom: 1px; }
  .hp-shelf { display: none; }
  .hp-altar .memo-candles { gap: 9px; min-height: 30px; justify-content: flex-start; }
  .hp-altar .flame { transform: scale(1); }
  .hp-vase { width: 24px; height: 29px; }
  .hp-altar .memo-cnote { grid-column: 1; margin: 6px 0 0; font-size: 12.5px; }
  .hp-altar .cta { grid-column: 2; grid-row: 1 / 3; padding: 10px 14px; font-size: 14.5px; }
  .hp-band { height: 26px; margin-top: 12px; }
}
@media (min-width: 880px) {
  .memo-body.hp { padding: 20px 20px 56px; }
  .hp-grid { grid-template-columns: 286px minmax(0, 1fr); }
  .hp-side { position: sticky; top: 64px; }
  .hp-id { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .hp-face { width: 100%; }
  .hp-tabs { position: static; }
  .hp-pane { padding: 20px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) { .hp-thumb { transform: none !important; } }
.hm-ov .memo-body.hm-body { width: min(1040px, 100%); text-align: left; }
.hm-head { text-align: center; margin: 8px 0 18px; }
.hm-head h1 { font-family: var(--f-display); font-size: clamp(28px, 6vw, 44px); margin: 4px 0 8px; color: var(--hp-ink); }
.hp-pre { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--hp-ink2); }
.hm-lead { margin: 0 auto; max-width: 560px; color: var(--hp-ink2); font-size: 14.5px; word-break: keep-all; }
.hm-ov .hm-rooms { display: flex; flex-wrap: wrap; justify-content: center; }
.hm-ov .hm-room { flex: 0 1 300px; }
.hm-ov .hm-door { background: var(--hp-card); border-color: var(--hp-line); border-radius: 14px; color: var(--hp-ink); }
.hm-ov .hm-door b { color: var(--hp-ink); }
.hm-ov .hm-door span, .hm-ov .hm-door small { color: var(--hp-ink2); }
.memo-candles { display: flex; justify-content: center; gap: 12px; min-height: 34px; margin: 28px 0 6px; }
.flame { display: block; width: 10px; height: 26px; position: relative; }
.flame::before { content: ''; position: absolute; left: 1px; top: 0; width: 8px; height: 13px; border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 50% 70%, #fff3c4, #f2b544 60%, rgba(242,181,68,0)); animation: flick 2.4s ease-in-out infinite; }
.flame::after { content: ''; position: absolute; left: 3px; top: 12px; width: 4px; height: 14px; background: #e9e2d2; border-radius: 1px; }
.flame.new::before { animation: flick 2.4s ease-in-out infinite, glow 1.2s ease-out 1; }
@keyframes flick { 0%, 100% { transform: scaleY(1) translateX(0); } 50% { transform: scaleY(.88) translateX(.5px); } }
@keyframes glow { from { filter: brightness(2); } to { filter: none; } }
.memo-cnote { color: #a59f95; font-size: 13px; min-height: 1.2em; margin: 0 0 18px; }
.memo-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.memo-acts .ghost { color: #ece6da; border-color: rgba(255,255,255,.3); }
.memo-acts .cta:disabled { opacity: .5; cursor: default; }
.memo-close { margin: 34px 0 20px; font-family: var(--f-display); color: #f4ecd8; word-break: keep-all; }
.memo-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: 13px; }
.memo-links .ghost { color: #ece6da; border-color: rgba(255,255,255,.3); }
.memo-links .ghost.quiet { color: #a59f95; border-color: rgba(255,255,255,.16); }
.memo-item { display: grid; gap: 2px; width: 100%; text-align: left; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--rule2); background: none; color: var(--ink); font: inherit; cursor: pointer; }
.memo-item b { font-family: var(--f-display); font-size: 16px; }
.memo-item span { font-size: 12.5px; color: var(--ink3); }
.memo-item small { font-size: 13px; color: var(--ink2); word-break: keep-all; }
.memo-fl { display: flex; gap: 6px; margin-top: 4px; }
.memo-fl .flame { transform: scale(.7); transform-origin: left top; }
@media (prefers-reduced-motion: reduce) { .flame::before { animation: none; } }
.memo-box h2 { margin-bottom: 6px; }
.memo-cards { display: grid; gap: 12px; }
.memo-card { display: grid; gap: 8px; width: 100%; text-align: left; padding: 0 0 10px; border: 1px solid var(--rule2); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; }
.memo-card:hover { border-color: var(--accent); }
.memo-card canvas { width: 100%; height: auto; aspect-ratio: 192 / 60; image-rendering: pixelated; display: block; }
.memo-card .mc-t { display: grid; gap: 2px; padding: 0 12px; }
.memo-card .mc-t:first-child { padding-top: 10px; }
.memo-card b { font-family: var(--f-display); font-size: 17px; }
.memo-card span { font-size: 12.5px; color: var(--ink3); }
.memo-card small { font-size: 13px; color: var(--ink2); word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.memo-card .memo-fl { min-height: 6px; }
.memo-card .mc-rd { color: var(--ink); font-weight: 600; }
.memo-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.memo-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.memo-filter select { flex: 1 1 180px; min-width: 0; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); }
.memo-news { margin: 12px 0 14px; padding: 10px 12px 10px 14px; border-left: 3px solid var(--gold); background: var(--card); font-size: 14.5px; line-height: 1.6; word-break: keep-all; max-width: 640px; display: grid; gap: 4px; }
.memo-news[hidden] { display: none; }
.memo-news .mn-l { display: block; }
.memo-news .flame { display: inline-block; vertical-align: -6px; margin-right: 8px; transform: scale(.8); }
.memo-news .mn-l a.ghost { display: inline-flex; margin-left: 6px; padding: 2px 10px; font-size: 12.5px; white-space: nowrap; vertical-align: 1px; }
.memo-news .mn-x { justify-self: start; margin-top: 4px; padding: 3px 10px; font-size: 12.5px; color: var(--ink2); }
@keyframes memoIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.memo-wq { margin: 14px 0 8px; font-size: 13px; color: #a59f95; }
.memo-wb { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.memo-w { font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(240,223,181,.35); background: transparent; color: #ece6da; cursor: pointer; }
.memo-w:hover:not(:disabled) { border-color: #f0dfb5; background: rgba(240,223,181,.08); }
.memo-w:disabled { opacity: .5; cursor: default; }
.memo-share { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 18px; }
.memo-share .ghost { color: #ece6da; border-color: rgba(255,255,255,.3); }
.cardimg.story { max-height: 70vh; }
.kp-cover { margin: 14px 0 0; }
.kp-cover p { margin: 0 0 8px; font-size: 14px; word-break: keep-all; }
.kp-cover small { color: var(--ink2); font-size: 12.5px; }
.kp-covs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.kp-cv, .ms-cv { flex: none; display: grid; gap: 4px; width: 132px; padding: 4px; border: 2px solid var(--rule2); border-radius: 6px; background: var(--card); color: var(--ink2); font: inherit; font-size: 12px; cursor: pointer; }
.kp-cv canvas, .ms-cv canvas { width: 100%; height: auto; aspect-ratio: 192 / 60; image-rendering: pixelated; display: block; border-radius: 3px; }
.kp-cv[aria-pressed="true"], .ms-cv[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); }
.ms-cv:disabled { opacity: .35; cursor: default; }
html.memo-open #sheet { z-index: 78; }
html.memo-open .toast { z-index: 79; }
.memo-card b { color: var(--ink); }
.memo-card .flame::after, .memo-news .flame::after { background: var(--gold); opacity: .55; }
.memo-car { position: relative; }
#memoPrev.memo-row { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: none; }
#memoPrev.memo-row::-webkit-scrollbar { display: none; }
#memoPrev.memo-row .memo-card { flex: 0 0 min(78%, 280px); scroll-snap-align: start; align-content: start; }
#memoPrev.memo-row .memo-card small { -webkit-line-clamp: 2; }
#memoPrev.memo-row .memo-more { flex-basis: min(46%, 200px); scroll-snap-align: end; }
#memoPrev .memo-more { align-content: center; justify-items: center; text-align: center; padding: 18px 12px; background: var(--card2); border-style: dashed; }
#memoPrev .memo-more .mc-t { padding: 0; justify-items: center; }
#memoPrev .memo-more b::after { content: ' →'; color: var(--accent); }
#memoPrev .cm-empty { flex: 1; }
.memo-car-b { position: absolute; top: 26px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule); background: var(--card); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.memo-car-b.l { left: -12px; } .memo-car-b.r { right: -12px; }
.memo-car-b:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .memo-car-b { display: none; } }

.kp-style { margin: 14px 0 0; }
.kp-style p { margin: 0 0 8px; font-size: 14px; word-break: keep-all; }
.kp-style small { color: var(--ink2); font-size: 12.5px; }
.kp-style .kp-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kp-stnow { font-size: 13px; color: var(--ink2); }
.ms-ed h4 { margin: 18px 0 6px; font-size: 14.5px; }
.ms-ed h4:first-child { margin-top: 0; }
.ms-note { margin: 0 0 8px; font-size: 12.5px; color: var(--ink2); word-break: keep-all; }
.ms-ed .chip { flex-direction: row; align-items: center; gap: 8px; border-radius: 8px; padding: 6px 10px; }
.ms-ed .chip > span { display: flex; flex-direction: column; }
.ms-ed .chip[aria-pressed="true"] { background: var(--card); border-color: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.ms-ed .chip[aria-pressed="true"] small { color: var(--ink3); opacity: 1; }
.ms-sw { position: relative; display: inline-flex; flex: none; width: 34px; height: 26px; border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.ms-sw b { flex: 1; }
.ms-sw b:last-child { position: absolute; left: 0; bottom: 0; width: 100%; height: 7px; }
.ms-fr { flex: none; width: 22px; height: 22px; background: var(--mat, #f2eee5); box-shadow: 0 0 0 1px var(--frh, #3b2d20), 0 0 0 4px var(--fr, #3b2d20), 0 0 0 5px var(--fr2, #1d160f); margin: 5px; }
.ms-fl { flex: none; width: 30px; height: 36px; image-rendering: pixelated; }
.cu-th.cu-ms { border-radius: 8px; padding: 6px 12px 6px 8px; text-align: left; }
.cu-ms > span { display: flex; flex-direction: column; line-height: 1.3; }
.cu-ms small { font-size: 11.5px; color: var(--ink3); }
.cu-ms canvas.ms-fl { background: none; border-radius: 0; }
.ms-mos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ms-mo { display: grid; gap: 3px; align-content: start; padding: 5px; border: 2px solid var(--accent); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.ms-mo canvas { width: 100%; height: auto; aspect-ratio: 192 / 60; image-rendering: pixelated; display: block; border-radius: 3px; }
.ms-mo small { color: var(--ink2); font-size: 11.5px; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.ms-mo[aria-pressed="true"] b::before { content: '✓ '; color: var(--accent); }
.ms-mo[aria-pressed="false"] { border-color: var(--rule2); opacity: .45; }
.ms-mo[aria-pressed="false"] canvas { filter: grayscale(1); }
#msLine { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); color: var(--ink); resize: vertical; }
.ms-cnt { margin: 4px 0 0; text-align: right; font-size: 12px; color: var(--ink3); font-family: var(--f-mono); }
.ms-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

.kp-have > summary, .flowtable > summary { padding: 8px 0; }
#fam .pwork { display: block; font-size: 12px; color: var(--ink2); margin-top: 1px; }
.fam .bond { color: var(--ink3); font-size: 12.5px; white-space: nowrap; }

.rm-ed { display: grid; gap: 10px; }
.rm-stage { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule), 0 8px 18px -12px rgba(0,0,0,.4); }
.rm-stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 192 / 108; image-rendering: pixelated; }
.rm-slots { position: absolute; inset: 0; }
.rm-slot { position: absolute; padding: 0; border: 1.5px dashed rgba(255,255,255,.75); border-radius: 3px; background: rgba(15,110,104,.06); box-shadow: 0 0 0 1px rgba(0,0,0,.18); cursor: pointer; }
.rm-slot[aria-pressed="true"] { border: 2px solid #fff; background: rgba(15,110,104,.22); box-shadow: 0 0 0 2px var(--stamp); }
.rm-slot.quiet { border-color: transparent; background: transparent; box-shadow: none; }
.rm-bal { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--ink2); flex-wrap: wrap; }
.rm-bal b { color: var(--ink); }
.rm-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rm-tabs::-webkit-scrollbar { display: none; }
.rm-tab { flex: none; border: 1px solid var(--rule); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.rm-tab[aria-selected="true"] { background: var(--stamp); border-color: var(--stamp); color: var(--paper); }
.rm-hint { margin: 2px 0 8px; font-size: 13px; color: var(--ink2); word-break: keep-all; }
.rm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.rm-it { display: grid; justify-items: center; gap: 3px; padding: 8px 6px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; text-align: center; min-width: 0; }
.rm-it[aria-pressed="true"] { border-color: var(--stamp); box-shadow: 0 0 0 2px var(--stamp); }
.rm-it .rm-pic { height: 48px; display: flex; align-items: center; justify-content: center; }
.rm-it img { image-rendering: pixelated; border-radius: 2px; }
.rm-it b { font-size: 12.5px; font-weight: 600; line-height: 1.25; word-break: keep-all; }
.rm-it small { font-size: 11px; color: var(--ink3); }
.rm-it.life small { color: var(--stamp); font-weight: 600; }
.rm-it.none .rm-pic { width: 36px; border: 1.5px dashed var(--rule); border-radius: 4px; height: 36px; margin: 6px 0; }
.rm-note { font-size: 30px; color: var(--stamp); }
.kp-roomb { display: block; margin: 2px 0 10px; padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; }
.kp-roomb:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
.kp-roomb .kp-roomcv { display: block; }
.kp-roomcv { width: min(100%, 260px); height: auto; aspect-ratio: 192 / 108; image-rendering: pixelated; border-radius: 4px; box-shadow: 0 0 0 1px var(--rule); }
.rm-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.hm-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 12px 0; }
.hm-room { display: grid; gap: 6px; justify-items: start; }
.hm-door { display: grid; gap: 8px; width: 100%; padding: 0 0 10px; text-align: left; border: 1px solid var(--rule2); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; }
.hm-door canvas { display: block; width: 100%; height: auto; aspect-ratio: 192 / 108; image-rendering: pixelated; }
.hm-door .mc-t { display: grid; gap: 2px; padding: 0 12px; }
.hm-door b { font-family: var(--f-display); font-size: 17px; color: var(--ink); }
.hm-door span { font-size: 12.5px; color: var(--ink3); }
.hm-door small { font-size: 13px; color: var(--ink2); word-break: keep-all; }
.hm-set { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule2); }
.hm-nm { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink2); }
.hm-nm input { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); }
.hm-pub { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; word-break: keep-all; }
.hm-pub input { margin-top: 3px; accent-color: var(--stamp); width: 18px; height: 18px; flex: none; }

.scenecap.tap { cursor: pointer; }
.scenecap.tap::after { content: ' ▾'; opacity: .6; }
.scenecap.tap[aria-expanded="true"]::after { content: ' ▴'; }
#scene { cursor: pointer; }
.scenewho { margin: -8px 0 0; padding: 0 16px 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink2); cursor: pointer; word-break: keep-all; }

@media (max-width: 480px) {
  .seg.seg4 { display: grid; grid-template-columns: 1fr 1fr; }
  .seg.seg4 button + button { border-left: 0; }
  .seg.seg4 button:nth-child(2n) { border-left: 1px solid var(--rule); }
  .seg.seg4 button:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.dtop { display: flex; justify-content: flex-end; margin: 14px 0 -6px; }
.dtop .ghost { padding: 6px 12px; font-size: 13px; }

.foldbtn { display: none; }
@media (max-width: 800px) {
  .foldbtn { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; min-width: 36px; min-height: 32px; padding: 0 8px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink2); font-size: 12px; }
  .foldbtn::after { content: '▾'; }
  .panel.folded .foldbtn::after { content: '▸'; }
  .panel.folded > :not(h3) { display: none !important; }
  .panel.folded h3 { margin-bottom: 0; }
  .panel.folded h3 .lbl { display: none; }
}
.dcert .suichelp { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--ink3); background: var(--card2); color: var(--ink2); font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.dcert .suichelp p + p { margin-top: 6px; }
.dcert .cause.quiet b { color: var(--ink); }
.edu #cardShareBtn, .edu #shareBtn, .edu #dfShare, .edu .sharebox .sh-note-in, .edu .sharebox .sharetext, .edu .sharebox .sharehint, .edu #community, .edu .cm-form { display: none !important; }
.edu [data-fb], .edu [data-help], .edu #clBtn, .edu #moveBtn, .edu #moveBtn2, .edu #a2Btn, .edu #a2Tip, .edu #a2Dead, .edu .betabar > span:first-child, .edu #birthCopyBtn, .edu #copyLinkBtn, .edu #howNote { display: none !important; }
.edutag { display: inline-block; padding: 0 7px; border: 1px solid var(--stamp); border-radius: 999px; font-weight: 600; }
.edubox p { margin: 0 0 10px; line-height: 1.6; }
.edubox .edusrc { font-family: var(--f-mono); font-size: 12px; color: var(--ink2); background: var(--stamp-soft); border-left: 3px solid var(--stamp); padding: 8px 10px; }
.edubox .eduq { font-weight: 600; }
.edubox small { display: block; margin-top: 6px; color: var(--ink3); }
.edunote { margin: 10px 0 14px; padding: 10px 12px; border-left: 3px solid var(--stamp); background: var(--stamp-soft); font-size: 14px; line-height: 1.6; color: var(--ink2); max-width: 40em; }
.edunote p { margin: 0; }
.edudet { margin-top: 8px; }
.edudet summary { cursor: pointer; font-weight: 600; color: var(--stamp); padding: 4px 0; }
.edudet p { margin: 6px 0 0; }
html { touch-action: manipulation; }
@media (hover: none) and (pointer: coarse) { input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; } }
.fbcount { margin: -4px 0 10px; font-size: 12px; color: var(--ink3); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.fbcount #fbCount { font-family: var(--f-mono); }
.fbcount #fbCount.near { color: var(--warn); font-weight: 600; }
.fbgo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; }
.edunote .labin { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.edunote .labin span { font-size: 13px; color: var(--ink3); }
.classcode { max-width: 9em; font-family: var(--f-mono); letter-spacing: .2em; font-size: 16px; }
#lab { padding-top: 18px; padding-bottom: 60px; }
.labhd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.labt { font-family: var(--f-display); font-size: 30px; margin: 14px 0 6px; letter-spacing: -.01em; }
.labsub { color: var(--ink2); margin: 0 0 14px; max-width: 46em; line-height: 1.6; }
.labtabs { flex-wrap: wrap; margin-bottom: 14px; }
.labp { margin-bottom: 14px; }
.labp > p { line-height: 1.6; max-width: 52em; margin: 0 0 10px; }
.labctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 8px; }
.labctl .cta { padding: 12px 22px; font-size: 16px; }
.labprog { font-size: 14px; color: var(--ink2); margin: 4px 0; min-height: 1.4em; }
.labwarn { color: var(--bad); }
.labq { margin: 12px 0 0; }
.labpick { font-weight: 600; margin: 4px 0 0; }
.labcopy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 0; }
.labcopy code { font-family: var(--f-mono); font-size: 15px; background: var(--card2); border: 1px solid var(--rule); border-radius: 4px; padding: 6px 10px; overflow-wrap: anywhere; }
.labcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.labcard { border: 1px solid var(--rule); border-radius: 4px; padding: 12px; background: var(--card2); min-width: 0; }
.labcard.wait { opacity: .7; }
.labcard .lc-c { font-family: var(--f-display); font-size: 19px; font-weight: 700; }
.labcard .lc-n { font-size: 13px; color: var(--ink2); margin: 2px 0 8px; }
.labcard .lc-w { font-size: 13px; color: var(--ink3); }
.labcard dl { margin: 0; font-size: 14px; }
.labcard dt { color: var(--ink3); font-size: 12px; margin-top: 7px; }
.labcard dd { margin: 1px 0 0; overflow-wrap: break-word; line-height: 1.45; }
.lc-log { margin-top: 10px; font-size: 13px; }
.lc-log summary { cursor: pointer; color: var(--stamp); font-weight: 600; padding: 4px 0; }
.lc-log ol { list-style: none; padding: 0; margin: 6px 0 0; max-height: 360px; overflow: auto; border-top: 1px solid var(--rule2); }
.lc-log li { padding: 5px 0; border-bottom: 1px solid var(--rule2); line-height: 1.5; }
.lc-log .a { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink3); margin-right: 4px; }
.lc-log .f { display: block; font-size: 12px; color: var(--ink3); margin-top: 2px; }
.lsec { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--rule2); }
.lsec h4 { margin: 0 0 8px; font-size: 15px; }
.labmap { width: 100%; max-width: 780px; height: auto; display: block; margin: 0 0 10px; }
.lrows { display: flex; flex-direction: column; gap: 6px; }
.lrow { display: grid; grid-template-columns: minmax(9em, 15em) minmax(80px, 1fr) 4.5em minmax(7em, 13em); align-items: center; gap: 4px 10px; font-size: 13.5px; }
.lrow .lt { color: var(--ink); }
.lrow .lv { font-family: var(--f-mono); text-align: right; font-weight: 600; }
.lrow .lr { font-size: 12px; color: var(--ink3); }
.lb { position: relative; height: 10px; background: var(--grid-lo); border-radius: 2px; }
.lb i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--stamp); border-radius: 2px; }
.lb b { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); }
.lnote { font-size: 12.5px; color: var(--ink3); margin: 8px 0 0; line-height: 1.5; }
.lhist { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin: 4px 0 8px; max-width: 560px; }
.lh { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; }
.lh i { display: block; background: var(--stamp); border-radius: 2px 2px 0 0; min-height: 1px; }
.lh span { font-size: 11px; color: var(--ink3); text-align: center; margin-top: 3px; white-space: nowrap; }
.labsrc { font-family: var(--f-mono); font-size: 12px; color: var(--ink2); background: var(--stamp-soft); border-left: 3px solid var(--stamp); padding: 8px 10px; margin: 16px 0 0; }
.labcode { font-family: var(--f-mono); font-size: 56px; font-weight: 600; letter-spacing: .18em; margin: 6px 0 10px; color: var(--accent); }
.labp > .hint { margin: 10px 0 0; font-size: 12.5px; color: var(--ink3); }
.labctl .seg button { white-space: nowrap; padding: 9px 12px; }
.labguide ol, .labguide ul { padding-left: 1.3em; line-height: 1.65; margin: 6px 0 12px; }
.labguide h4 { margin: 14px 0 4px; font-size: 15px; }
@media (max-width: 640px) {
  .labt { font-size: 24px; }
  .lrow { grid-template-columns: 1fr 4.2em; }
  .lrow .lb { grid-column: 1 / -1; grid-row: 2; }
  .lrow .lr { grid-column: 1 / -1; }
  .labcode { font-size: 44px; }
}
@media print {
  html.labprint body * { visibility: hidden; }
  html.labprint .labguide, html.labprint .labguide * { visibility: visible; }
  html.labprint .labguide { position: absolute; left: 0; top: 0; width: 100%; border: 0; background: #fff; color: #000; }
  html.labprint .labnoprint { display: none !important; }
}

.hero h1 em { font-style: normal; color: var(--accent); }
