/*tokens: 생성 — 고치지 않는다. 집은 spec/DESIGN.md 앞머리 · node scripts/design-tokens.js*/:root{--bg:#FBF7F2;--surface:#fff;--ink:#1A1626;--muted:#6E6480;--faint:#8A8299;--line:#E6DFEA;--border:var(--line);--soft:#F1ECFF;--soft-line:#DCD2FF;--soft-label:#7A6BB5;--accent:#C33BE8;--hot:#FF6A5B;--gold:#FFC94D;--coin:#FF9B2F;--money:#C25A1E;--money-soft:#EFFFF8;--chain:#4B2FBF;--chain-soft:#F1ECFF;--boost:#FFC94D;--error:#B3261E;--success:#136348;--success-bg:#EFFFF8;--warning:#7A5A22;--warning-bg:#FFF4E2;--warning-line:#F4DEB9;--danger:#B3261E;--danger-bg:#FFF6F4;--inverse:#fff;--inverse-muted:#F1ECFF;--inverse-line:rgba(255,255,255,.28);--glass:rgba(255,255,255,.1);--card-art-fallback:#EDE7F6;--art-text-scrim:rgba(0,0,0,.55);--art-scrim-top:rgba(27,29,36,.03);--art-scrim-bottom:rgba(27,29,36,.88);--skeleton:#EFE8DF;--scrim:rgba(26,22,38,.45);--quest-done:#F3EFF5;--text-caption:12px;--text-body:14px;--text-control:16px;--text-title:20px;--text-balance:26px;--text-hero:34px;--text-total:42px;--text-reward:74px;--leading-body:20px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--radius-small:6px;--radius-icon:7px;--radius-card:16px;--radius-large:20px;--radius-hero:28px;--radius-pill:99px;--touch:44px;--button-main:56px;--stroke:1px;--shadow:0 3px 14px rgba(26,22,38,.07);--shadow-card:0 2px 9px rgba(26,22,38,.05);--shadow-sheet:0 10px 24px rgba(26,22,38,.12);--motion-press:100ms;--motion-short:240ms;--motion-page:200ms;--motion-sheet-in:330ms;--motion-sheet-out:150ms;--motion-fly:350ms;--motion-fly-stagger:45ms;--motion-fly-settle:500ms;--motion-count:600ms;--motion-toast:240ms;--motion-toast-hold:3000ms;--motion-skeleton:1200ms;--motion-celebrate:720ms;--motion-wait:2000ms;--motion-ease:cubic-bezier(.2,.9,.3,1);--motion-ease-in:cubic-bezier(.4,0,1,1);--motion-ease-move:cubic-bezier(.4,0,.2,1)}/*/tokens*/*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Pretendard","Apple SD Gothic Neo",system-ui,sans-serif;letter-spacing:0}button{min-width:0;border:0;color:inherit;font:inherit;cursor:pointer;overflow-wrap:anywhere}h1,h2,h3,p{margin:0}.app-shell{display:grid;grid-template-columns:minmax(0,430px);justify-content:center;gap:24px;width:min(520px,calc(100vw - 28px));margin:0 auto;padding:24px 0}.app-shell.internal{grid-template-columns:minmax(0,430px) minmax(360px,1fr);width:min(1180px,calc(100vw - 28px))}.device{display:flex;flex-direction:column;min-height:790px;max-height:900px;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-hero);background:var(--bg)}.app-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);background:var(--surface)}.brand{display:flex;align-items:center;gap:10px;min-width:0}.top-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}.wallet{min-height:36px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--chain);font-weight:800}.top-balance img{width:34px;height:34px;border-radius:8px}.top-balance span,.top-balance small{display:block;color:var(--muted);font-size:var(--text-body);line-height:20px}.top-balance b{display:block;color:var(--ink);font-size:21px;line-height:1.05}.top-wallet{display:grid;grid-template-columns:18px auto;gap:5px;align-items:center;min-height:40px;padding:0 8px;color:var(--ink)}.top-wallet span{display:grid;place-items:center;width:18px;height:18px;border-radius:var(--radius-small);background:var(--soft);color:var(--chain);font-size:var(--text-body);line-height:20px}.screen{flex:1;min-height:0;overflow-y:auto;padding:16px 18px}.screen.home{display:flex;flex-direction:column;padding:16px 18px 0}.bottom-tabs{height:72px;display:grid;grid-template-columns:repeat(auto-fit,minmax(48px,1fr));gap:2px;padding:8px 10px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);flex:0 0 auto}.bottom-tabs button{display:grid;place-items:center;gap:5px;min-height:48px;border-radius:8px;background:transparent;color:var(--muted)}.bottom-tabs span{display:grid;place-items:center;width:20px;height:20px;border-radius:var(--radius-icon);background:var(--line);font-size:var(--text-body);font-weight:900;line-height:20px}.bottom-tabs b{font-size:var(--text-body);line-height:20px}.bottom-tabs .active{color:var(--ink);font-weight:900}.bottom-tabs .active span{background:linear-gradient(140deg,var(--hot),var(--accent));color:var(--surface)}.sync-alert{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--warning-line);background:var(--warning-bg);color:var(--warning);font-size:var(--text-body);font-weight:800;line-height:20px}.sync-alert b{color:#5A3F12}.sync-alert span{flex:1}.sync-alert.auth{border-color:#f4cfc8;background:#fff7f4;color:#7a463c}.sync-alert.auth b{color:var(--error)}.sync-alert button{min-height:34px;padding:0 12px;border-radius:var(--radius-pill);background:var(--ink);color:var(--surface);font-size:var(--text-body);font-weight:900;line-height:20px}.earn-feedback.ok,.reward-toast{border-color:rgba(40,192,138,.2);background:var(--success-bg);color:var(--success)}.consent-card,.consent-sheet{display:grid;gap:10px;margin-bottom:12px;padding:13px 15px;border:1px solid var(--warning-line);border-radius:var(--radius-card);background:var(--warning-bg)}.consent-card span,.consent-sheet span{color:var(--ink);font-size:var(--text-body);font-weight:900;line-height:20px}.consent-card b,.consent-sheet b{font-size:17px}.consent-card small,.consent-sheet small{color:var(--warning);font-size:var(--text-body);line-height:20px}.consent-card button,.consent-sheet button{min-height:40px;border-radius:12px;background:var(--ink);color:var(--surface);font-weight:900}.art{display:block;width:54px;height:58px;border-radius:10px;background:var(--cover-bg,linear-gradient(135deg,#2b2924,#17191f));background-position:center;background-size:cover}.hero-game-card,.play-stage,.art{--cover-bg:linear-gradient(155deg,var(--hot) 0%,var(--accent) 55%,#6E3BF0 100%);position:relative;overflow:hidden;isolation:isolate}.orbital,.orbit{--cover-bg:radial-gradient(circle at 48% 36%,rgba(255,255,255,.2) 0 8%,transparent 9% 20%),linear-gradient(155deg,var(--hot) 0%,var(--accent) 55%,#6E3BF0 100%)}.chef{--cover-bg:radial-gradient(circle at 68% 28%,rgba(255,255,255,.24),transparent 24%),linear-gradient(155deg,#E8492E,#F2A81D)}.survey{--cover-bg:linear-gradient(155deg,#245CFF,var(--accent))}.dragon{--cover-bg:linear-gradient(155deg,#301d1d,#8c2f25 48%,#F2A81D)}.garden{--cover-bg:linear-gradient(155deg,#173c34,#0E8A5F 58%,#F2A81D)}.hero-game-card:not([style]),.play-stage:not([style]){background:var(--cover-bg)}.money-wallet{margin:0;background:var(--surface);border-radius:22px;padding:16px 18px 15px;box-shadow:var(--shadow)}.money-row{display:flex;align-items:center;gap:10px}.money-coin{width:26px;height:26px;border-radius:50%;background:linear-gradient(140deg,var(--gold),var(--coin));flex:none}.money-row b{display:inline;font-size:var(--text-balance);font-weight:900;letter-spacing:-1px;font-variant-numeric:tabular-nums}.money-row button{margin-left:auto;padding:9px 15px;border-radius:var(--radius-pill);background:var(--ink);color:var(--surface);font-size:var(--text-body);font-weight:800;line-height:20px}.money-meter{margin-top:13px;height:7px;border-radius:var(--radius-pill);background:#EFE9E1;overflow:hidden}.money-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--coin),var(--gold))}.money-meta{display:flex;justify-content:space-between;gap:10px;margin-top:8px;color:var(--muted);font-size:var(--text-body);line-height:20px}.money-meta b,.money-meta strong{color:var(--ink);font-weight:800}.hero-game-card{flex:1;min-height:320px;margin-top:13px;padding:22px;border-radius:var(--radius-hero);background:var(--cover-bg);box-shadow:0 16px 32px rgba(110,59,240,.26);display:flex;flex-direction:column;justify-content:flex-end;color:var(--surface)}.card-ring{position:absolute;border-radius:50%;border:32px solid rgba(255,255,255,.13)}.card-ring.one{width:270px;height:270px;top:-80px;right:-80px}.card-ring.two{width:150px;height:150px;top:70px;left:-56px;border:20px solid rgba(255,255,255,.10)}.hero-game-card>span{position:relative;align-self:flex-start;margin-bottom:auto;padding:6px 13px;border-radius:var(--radius-pill);background:rgba(255,255,255,.24);font-size:var(--text-body);font-weight:800;line-height:20px}.hero-game-card b{position:relative;font-size:var(--text-hero);font-weight:900;letter-spacing:-1.2px;line-height:1.12}.hero-game-card button{position:relative;width:100%;height:56px;margin-top:16px;border-radius:18px;background:var(--surface);color:var(--ink);font-size:18px;font-weight:900;letter-spacing:-.4px}.home-game-chip{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;flex:1;min-height:88px;padding:12px 13px;border-radius:var(--radius-card);background:var(--surface);box-shadow:0 2px 9px rgba(26,22,38,.05);text-align:left}.home-game-chip .art{display:none}.home-game-chip b{font-size:var(--text-body);font-weight:800;letter-spacing:-.3px;overflow-wrap:anywhere;line-height:20px}.home-game-chip small{color:var(--muted);font-size:var(--text-body);line-height:20px}.home-game-chip strong{margin-top:4px;color:var(--ink);font-size:var(--text-body);font-weight:900;line-height:20px}@media(max-width:560px){.app-shell:not(.internal){width:100%;padding:0}.app-shell:not(.internal) .device{height:100dvh;min-height:100dvh;max-height:100dvh;border:0;border-radius:0}.screen.home{padding-top:16px}}

/* Approved home.html: intrinsic rows stay intact while the game face fills remaining space. */
.screen.home> :not(.hero-game-card){flex-shrink:0}
.screen.home .hero-game-card{flex:1 0 260px;min-height:260px}
.money-row>div{min-width:0;flex:1}
.money-row b,.money-row button{white-space:nowrap}
.money-row button{flex:none}
.home-game-chip{min-width:0}
.hero-game-card:not([style]){background:var(--cover-bg,linear-gradient(155deg,var(--hot) 0%,var(--accent) 55%,#6E3BF0 100%))}
.hero-game-card.orbital:not([style]){background:linear-gradient(155deg,var(--hot) 0%,var(--accent) 55%,#6E3BF0 100%)}

[data-notice-slot]{flex:none}.user-notice{padding:14px 18px;background:#fff4cc;color:#332800;border-bottom:1px solid #e3cf8c;overflow-wrap:anywhere}.user-notice strong{display:block;margin-top:8px}.user-notice p{max-height:120px;overflow:auto;white-space:pre-wrap;margin:6px 0 0}.user-notice button{min-height:44px;min-width:44px;float:right;border:0;border-radius:8px;padding:6px 12px;background:var(--surface);color:inherit}.security-alert{background:#ffe0dc;color:#3d0f0a;border-bottom:1px solid #e39a8c}.security-alert button{float:none;display:block;margin-top:10px;width:100%;background:#b3271a;color:var(--surface);font-weight:600}.security-alert [role=status]{display:block;margin-top:8px;font-size:var(--text-body);line-height:20px}

/* Account consent is reachable with a thumb, including its recovery action. */
.consent-card button,.consent-sheet button{min-height:44px}

/* Consumer-wide reading and touch contract from the September screen benchmark. */
.device button,.device summary{min-width:44px;min-height:44px}
.bottom-tabs{gap:8px}.bottom-tabs b{font-size:var(--text-caption);line-height:20px}.bottom-tabs span{font-size:var(--text-caption);line-height:20px}
/* 페르소나 검수 B3 (2026-10-04): big text never wraps the bar — one row of four, labels on one line (… when too long; the button keeps the full name), and below 240px (360px phone at 150%+) the side padding and gaps go so each tab stays ≥ --touch. */
.bottom-tabs{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}.bottom-tabs button{min-width:0;min-height:var(--touch);gap:var(--space-1);padding:0}.bottom-tabs b{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media(max-width:239px){.bottom-tabs{gap:0;padding-left:0;padding-right:0}}
/* 페르소나 검수 B4 (2026-10-04): a game start says "準備中…" on the pressed control at once (src/start-press.js), until the answer. */
[data-start-pending]{position:relative;cursor:progress}[data-start-pending]::after{content:attr(data-start-pending);position:absolute;inset:0;display:grid;place-items:center;border-radius:inherit;background:inherit;color:inherit;font-weight:900}:not(button)[data-start-pending]::after{inset:auto var(--space-2) var(--space-2);min-height:var(--touch);border-radius:var(--radius-pill);background:var(--ink);color:var(--inverse)}
.money-row b{white-space:normal;overflow-wrap:anywhere}.money-meta{flex-wrap:wrap}
.money-row button{padding:10px 15px}.money-meta strong,.home-game-chip strong{color:var(--ink)}
.hero-game-card>span,.hero-game-card>div>b{background:rgba(0,0,0,.55);color:var(--surface)}
.hero-game-card>div>b{display:table;padding:4px 8px;border-radius:8px;overflow-wrap:anywhere;max-width:100%}
.hero-game-card>span{font-size:var(--text-body);line-height:20px}.hero-game-card button{flex-shrink:0}
.home-game-chip strong{color:var(--ink)}
.device :is(.top-actions,.single-action,.settings-card,.passbook-actions,.result-next){gap:8px}
.device button:focus-visible,.device summary:focus-visible{outline:3px solid var(--chain);outline-offset:3px}


/* Home's subordinate regions stay compact; only the game has a full-width primary button. */
.home-summary{padding:4px 0 12px}.home-summary>small{display:block;color:var(--muted,#666);margin:8px 0}.home-summary p{font-size:13px}.home-summary .money-wallet{margin:0}.home-catalog-controls{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.home-catalog-controls [aria-pressed=true]{background:#222;color:var(--surface)}.home-game-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.hero-game-card p{font-size:var(--text-body);margin:8px 0;line-height:1.4}
.home-game-list .art{display:block;width:100%;height:80px;border-radius:10px;background-size:cover;background-position:center}
/* The built-in timing game has its own planet/ring illustration without a downloaded bitmap. */
.home-orbit-art{position:relative;flex:none;align-self:center;width:138px;height:94px;margin:26px 0 16px;border:3px solid #ffffff70;border-radius:50%;transform:rotate(-18deg)}.home-orbit-art:before{content:"";position:absolute;inset:9px 33px;border-radius:50%;background:radial-gradient(circle at 28% 25%,#ffe18a,#ff6b45 55%,#8f2f88);box-shadow:0 0 24px #ffd37c66}.home-orbit-art:after{content:"";position:absolute;top:2px;right:10px;width:16px;height:16px;border-radius:50%;background:white;box-shadow:0 0 16px var(--surface)}.home-orbit-art i{position:absolute;inset:-5px;border:7px solid transparent;border-bottom-color:#78ffc5;border-radius:50%}.screen.home .hero-game-card{min-height:360px;flex:0 0 auto}.hero-game-card>span{margin-bottom:4px}.home-orbit-art+span{position:absolute;top:22px;left:22px}.hero-game-card.orbital .home-orbit-art{margin-top:32px}
/* Closed details must remove child control boxes, including Chromium's cached content layout. */
.screen.home details:not([open])>:not(summary){display:none}

/* 640 높이 화면에서 게임 시작 버튼이 하단 메뉴 아래로 14px 밀려 있었다. 첫 화면에서
   시작을 못 누르면 홈이 아니다. 작은 화면에서는 그림과 여백만 줄이고 순서·내용은 그대로 둔다. */
@media (max-height:700px){
  .home-orbit-art{width:80px;height:48px;margin:2px 0 6px}
  .home-summary{padding:2px 0 6px}
  .home-summary>small{margin:4px 0}
  /* .screen.home .hero-game-card 가 flex:1 로 늘어난다. 같은 세기로 눌러야 먹힌다. */
  .screen.home .hero-game-card{gap:6px;padding:10px;flex:0 0 auto;min-height:200px}
  .screen.home .hero-game-card>div{gap:4px}
  .screen.home .hero-game-card button{min-height:48px;padding:10px 14px}
  /* 영어는 같은 뜻이 두 줄이 된다. 작은 화면에서만 제목을 줄여 시작 버튼을 지킨다. */
  .hero-game-card>div>b{font-size:var(--text-balance);line-height:30px}
  .hero-game-card>span{font-size:13px;line-height:18px}
}

/* B7 recovery must be legible before any deferred stylesheet arrives. */
.read-status{display:grid;gap:10px;padding:18px;margin:0 0 16px;background:var(--surface,var(--surface));border:1px solid var(--border,#e4e0d5);border-radius:var(--radius-card);color:var(--ink,#1b1d24);line-height:1.6;overflow-wrap:anywhere}
.read-status b{font-size:17px}.read-status p{margin:0;font-size:var(--text-body)}.read-status small{font-size:var(--text-caption);color:var(--muted,#6f6a61)}
.read-status button,.partner-goal button{min-height:44px;padding:10px 16px;border:1px solid var(--border,#e4e0d5);border-radius:10px;background:var(--surface,var(--surface));color:var(--ink,#1b1d24);font:inherit;font-weight:700;white-space:normal}
.read-status.loading{border-left:4px solid var(--chain,#245cff)}.read-status.failed{border-left:4px solid var(--danger)}.read-status.failed>b{color:var(--danger)}

.partner-goal .read-status{margin:12px 0 0}

/* External games need their milestone and launch action ahead of decorative artwork. */
.play-screen.external .play-stage{flex:0 0 auto;min-height:160px;padding:18px;margin-top:16px}
.partner-goal .read-status p{font-weight:400;margin:0}

/* Reward goals share the full-size balance; withdrawal distance remains readable below. */
.withdrawal-note{margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-size:var(--text-caption);line-height:1.6;color:var(--muted);text-align:left}
.passbook-top .withdrawal-note{color:#c9bfd9;border-color:#51485f}
/* Error recovery text and its next action each need readable mobile width. */
.sync-alert{flex-wrap:wrap}.sync-alert>b,.sync-alert>span,.sync-alert>p{flex:1 1 100%;min-width:0;margin:0;overflow-wrap:anywhere}.sync-alert button{min-height:44px}

/* Consumer kit — home/play/passbook/reward mockups, with benchmark §4 reading corrections.
   Decoration: accent/hot, gold/coin. Text: ink/muted; pale mockup greys are never small text. */
/* Shared primitives are deliberately available before a deferred screen can fail to load. */
.ui-card,.ui-state,.ui-empty,.ui-sheet{border:var(--stroke) solid var(--line);border-radius:var(--radius-card);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-card)}
.ui-card{padding:var(--space-4)}
.ui-state,.ui-empty,.ui-sheet{padding:var(--space-4);gap:var(--space-2);line-height:var(--leading-body);font-size:var(--text-body);overflow-wrap:anywhere}
.ui-state,.ui-empty{display:grid}.ui-state:empty{display:none}
.ui-state p,.ui-state small,.ui-empty span{color:var(--muted);font-size:var(--text-body)}
.ui-state.failed{color:var(--danger);border-color:var(--danger);background:var(--danger-bg)}
.ui-state.loading{border-inline-start:var(--space-1) solid var(--chain)}
.ui-warning{color:var(--warning);background:var(--warning-bg);border-color:var(--warning-line)}
.ui-row{padding:var(--space-3) var(--space-4);border-bottom:var(--stroke) solid var(--line);text-align:start;line-height:var(--leading-body)}
.ui-band{background:var(--soft);border-color:var(--soft-line);color:var(--chain)}
.ui-button{min-height:var(--touch);min-width:var(--touch);padding:var(--space-2) var(--space-3);border:var(--stroke) solid var(--line);border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);font-size:var(--text-body);font-weight:800;line-height:var(--leading-body)}
.ui-button.danger{background:var(--danger);color:var(--inverse);border-color:var(--danger)}
/* D120: a card-button keeps the card radius, not the pill. */
.ui-button.ui-card{border-radius:var(--radius-card);padding:var(--space-3);font-weight:inherit}
/* Home game list (시안 .gc). */
.home-game-chip{gap:var(--space-1);align-content:start}
.home-game-chip strong{margin-top:0}
.home-game-chip .chip-paid{color:var(--muted);font-size:var(--text-caption);line-height:16px}
.ui-button:disabled{opacity:.55;cursor:not-allowed}
.ui-button:focus-visible,.ui-disclosure>summary:focus-visible{outline:var(--space-1) solid var(--chain);outline-offset:var(--space-1)}
.ui-disclosure{display:block;background:var(--surface);color:var(--ink);border:var(--stroke) solid var(--line);border-radius:var(--radius-card);padding:0;overflow-wrap:anywhere;font-size:var(--text-body);line-height:var(--leading-body)}
.ui-disclosure>summary{display:flex;align-items:center;gap:var(--space-2);min-height:var(--touch);padding:var(--space-3);list-style:none;cursor:pointer;font-weight:800}
.ui-disclosure>summary::-webkit-details-marker{display:none}
.ui-disclosure>summary::after{content:'›';margin-inline-start:auto;flex:none;color:var(--chain);font-size:var(--text-title);transform:rotate(90deg)}
.ui-disclosure[open]>summary{border-bottom:var(--stroke) solid var(--line)}
.ui-disclosure[open]>summary::after{transform:rotate(-90deg)}
.ui-disclosure>:not(summary){margin:var(--space-3);color:var(--muted)}

.ui-amount,.ui-badge,.ui-row,.ui-disclosure,.screen{font-variant-numeric:tabular-nums}
.ui-sheet{box-shadow:var(--shadow-sheet);border-radius:var(--radius-large)}
.ui-divider{border:0;border-top:var(--stroke) solid var(--line);margin:var(--space-3) 0}
.ui-game{border:0;color:var(--inverse);border-radius:var(--radius-hero);background:var(--cover-bg)}
.home-summary.ui-card{padding:0;border:0;box-shadow:none;background:transparent}
.home-summary>small,.withdrawal-note{font-size:var(--text-body);line-height:var(--leading-body)}
.money-wallet{border:0}.hero-game-card.ui-game{padding:var(--space-5)}
@media(max-height:700px){.hero-game-card.ui-game{padding:var(--space-3)}}

.hero-game-card>div>p{width:fit-content;padding:var(--space-1) var(--space-2);border-radius:var(--radius-small);background:var(--art-text-scrim);color:var(--inverse)}
/* Shared hit areas also outrank legacy screen-specific compact button rules. */
.screen .ui-button{min-height:var(--touch);min-width:var(--touch)}

/* G1-C 6 (2026-09-23): muted icon glyph on the beige chip was 4.24:1; on white it is 5.53:1. */
.bottom-tabs button:not(.active) span{background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}

/* §Motion parts (spec/DESIGN.md, src/motion.js) — only transform/opacity move, every time is a --motion-* token.
   Reduced motion: every motion token becomes 0ms, so each part is instant (the toast still stays readable). */
@media (prefers-reduced-motion:reduce){:root{--motion-press:0ms;--motion-short:0ms;--motion-page:0ms;--motion-sheet-in:0ms;--motion-sheet-out:0ms;--motion-fly:0ms;--motion-fly-stagger:0ms;--motion-fly-settle:0ms;--motion-count:0ms;--motion-toast:0ms;--motion-skeleton:0ms;--motion-celebrate:0ms;--motion-wait:0ms}.sk::after{animation:none}}
/* press — scale on touch, spring back on release; no grey tap box */
.device :is(button,summary,[role=button]):not(.sheet-scrim),.sheet :is(button,summary){-webkit-tap-highlight-color:transparent;transition:transform var(--motion-press) var(--motion-ease)}
.device :is(button,summary,[role=button]):not(.sheet-scrim,:disabled):active,.sheet :is(button,summary):not(:disabled):active{transform:scale(.97);transition-duration:0s}
/* toast — one pill from the top */
.motion-toast{position:fixed;left:50%;top:auto;bottom:calc(96px + env(safe-area-inset-bottom));z-index:70;display:flex;align-items:center;gap:var(--space-2);width:max-content;max-width:min(calc(100vw - 32px),398px);padding:var(--space-3) var(--space-5) var(--space-3) var(--space-3);border-radius:var(--radius-pill);background:var(--ink);color:var(--inverse);font-size:var(--text-body);font-weight:800;line-height:var(--leading-body);box-shadow:var(--shadow-sheet);opacity:0;transform:translate(-50%,160%);transition:transform var(--motion-toast) var(--motion-ease-in),opacity var(--motion-toast) var(--motion-ease-in);pointer-events:none}
.motion-toast:lang(ko) span,.motion-toast:lang(ja) span{word-break:keep-all;overflow-wrap:anywhere}/* ko·ja 알림은 낱말·구두점 단위로 줄을 바꾼다(「포인/트」·「受け取りまし/た」, 일일 풀 검수 2026-10-05) */
.motion-toast.is-in{opacity:1;transform:translate(-50%,0);transition-timing-function:var(--motion-ease)}
.motion-toast i{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:var(--success);font-style:normal;font-size:var(--text-caption)}
/* sheet — up from the bottom; the screen behind only darkens */
.sheet-layer{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;justify-content:flex-end}
/* PC 너비(CJ 2026-11-06): the phone frame is narrower than the window — sheets and the reading pill stay inside the frame, not the window */
.device{position:relative}.device>.sheet-layer,.device .refresh-pill{position:absolute}
.sheet-scrim{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:var(--scrim)}
.sheet{position:relative;width:min(100%,430px);max-height:90%;margin:0 auto;overflow-y:auto;padding:var(--space-3) var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom));border-radius:var(--radius-hero) var(--radius-hero) 0 0;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sheet);outline:0}
.sheet-layer.is-entering .sheet{animation:sheet-in var(--motion-sheet-in) var(--motion-ease) both;animation-delay:var(--sheet-t,0ms)}
.sheet-layer.is-entering .sheet-scrim{animation:scrim-in var(--motion-sheet-in) var(--motion-ease) both;animation-delay:var(--sheet-t,0ms)}
.sheet-layer.is-leaving .sheet{animation:sheet-out var(--motion-sheet-out) var(--motion-ease-in) both;animation-delay:var(--sheet-t,0ms)}
.sheet-layer.is-leaving .sheet-scrim{animation:scrim-out var(--motion-sheet-out) var(--motion-ease-in) both;animation-delay:var(--sheet-t,0ms)}
@keyframes sheet-in{from{transform:translateY(100%)}}
@keyframes sheet-out{to{transform:translateY(100%)}}
@keyframes scrim-in{from{opacity:0}}
@keyframes scrim-out{to{opacity:0}}
.sheet-grip{display:block;width:40px;height:5px;margin:0 auto var(--space-4);border-radius:var(--radius-pill);background:var(--line)}
/* page — forward slides in from the right, back slides out to the right; tabs never move (motion.js) */
.screen{view-transition-name:screen;background:var(--bg)}
::view-transition-old(root),::view-transition-new(root),::view-transition-group(screen){animation:none}
html[data-page-dir=forward]::view-transition-old(screen),html[data-page-dir=back]::view-transition-new(screen){animation:none}
html[data-page-dir=forward]::view-transition-new(screen){animation:page-in var(--motion-page) var(--motion-ease) both}
html[data-page-dir=back]::view-transition-old(screen){z-index:1;animation:page-out var(--motion-page) var(--motion-ease-in) both}
@keyframes page-in{from{transform:translateX(100%)}}
@keyframes page-out{to{transform:translateX(100%)}}
/* skeleton — the coming shape, same size and place; after --motion-wait one "loading" line */
.skeleton{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3)}
.sk{position:relative;display:block;grid-column:span 2;height:var(--button-main);overflow:hidden;border-radius:var(--radius-large);background:var(--skeleton)}
.sk::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,var(--inverse-line),transparent);animation:sk-sweep var(--motion-skeleton) var(--motion-ease-move) infinite}
.sk.card{height:118px}.sk.line{height:var(--touch)}.sk.hero{height:250px;border-radius:var(--radius-hero)}.sk.half{grid-column:span 1;height:128px}.sk.title{width:40%;height:28px;border-radius:var(--radius-small)}
.skeleton[data-wait]::after{content:attr(data-wait);grid-column:span 2;color:var(--muted);font-size:var(--text-body);line-height:var(--leading-body);text-align:center;opacity:0;animation:sk-wait var(--motion-short) var(--motion-ease) var(--motion-wait) both}
@keyframes sk-sweep{to{transform:translateX(100%)}}
@keyframes sk-wait{to{opacity:1}}

/* Home — approved full mockup (2026-09-28, D185): 받을 보상 → 잔액·출금까지 → 게임 카드(목표 사다리) → 출석 → 보상 많은 순.
   A number that must never wrap (balances, rewards, badges) carries data-nowrap; tests/big-numbers.test.js measures it. */
[data-nowrap]{white-space:nowrap}
.screen.home{gap:var(--space-3);padding-bottom:var(--space-5)}
.screen.home .hero-game-card{margin-top:0}
.home-claim{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:56px;padding:var(--space-3) var(--space-4);border:var(--stroke) solid var(--success);border-radius:var(--radius-large);background:var(--success-bg);color:var(--success);text-align:start}
.home-claim i{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:var(--radius-small);background:var(--success);font-style:normal}
.home-claim b{flex:1;min-width:0;font-size:var(--text-control);font-weight:900}
.home-claim span{flex:none;font-weight:800}
.money-wallet .money-label{display:block;color:var(--muted);font-size:var(--text-body);font-weight:700;line-height:var(--leading-body)}
.money-wallet .money-row{align-items:center;margin-top:var(--space-1)}
.money-wallet .money-row>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 var(--space-2)}
.money-wallet .money-row b{font-size:var(--text-hero);line-height:1.15;white-space:nowrap;overflow-wrap:normal}
.money-wallet .money-meta{align-items:center;margin-top:var(--space-2)}
.money-wallet .money-link{min-height:var(--touch);margin-left:auto;padding:0 var(--space-2);border:0;background:transparent;color:var(--ink)}
.money-wallet.first .money-link{margin-top:var(--space-2);padding:0}
.money-rate{margin-top:var(--space-1);color:var(--muted);font-size:var(--text-body);font-weight:700;line-height:var(--leading-body);white-space:nowrap;font-variant-numeric:tabular-nums}
.money-pending{margin-top:var(--space-2);color:var(--warning);font-size:var(--text-body);line-height:var(--leading-body)}.money-flight{margin-top:var(--space-2);color:var(--warning);font-size:var(--text-body);font-weight:800;line-height:var(--leading-body)}
.home-attendance{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3);padding:var(--space-3) var(--space-4)}
.attendance-title{font-size:var(--text-control);font-weight:900}
.home-attendance button{margin-left:auto;background:var(--warning-bg);border-color:var(--warning-line)}
.home-attendance button:disabled{opacity:1;background:var(--surface);color:var(--muted)}
.home-attendance p{flex-basis:100%;color:var(--muted);font-size:var(--text-body);line-height:var(--leading-body)}
.hero-game-card .game-body{position:relative;display:grid;gap:var(--space-2);margin-top:var(--space-4)}
.ladder{position:relative;display:grid;gap:var(--space-2);min-height:var(--touch);color:var(--inverse);text-decoration:none}
.ladder-bars{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px}
.ladder-bars i{height:7px;border-radius:var(--radius-pill);background:var(--inverse-line)}
.ladder-bars i.done{background:var(--inverse)}
.ladder-bars i.next,.ladder-bars i.review{background:linear-gradient(90deg,var(--inverse) 50%,var(--inverse-line) 50%)}
.ladder-line{position:relative;display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-2);margin:0;padding:var(--space-1) var(--space-2);border-radius:var(--radius-small);background:var(--art-text-scrim);color:var(--inverse)}
.money-ready{display:grid;gap:var(--space-2);margin:var(--space-2) 0}.money-ready b{font-size:var(--text-title);font-weight:900}.money-ready .money-withdraw{min-height:var(--button-main);border-radius:var(--radius-large);background:var(--ink);color:var(--inverse);font-size:var(--text-control);font-weight:900}
.money-steps-main{font-size:var(--text-control);font-weight:900}.money-eta{margin:0;color:var(--ink);font-size:var(--text-body);font-weight:700}.money-meter-label{display:block;color:var(--muted);font-size:var(--text-caption)}
.ladder-total{display:inline-block;margin-top:var(--space-1);padding:2px var(--space-2);border-radius:var(--radius-small);background:var(--art-text-scrim);color:var(--inverse);font-weight:700}
.ladder-line em{min-width:0;font-size:var(--text-body);font-style:normal;font-weight:800;line-height:var(--leading-body)}
.ladder-line strong{flex:none;font-weight:900}
.ladder:focus-visible{outline:var(--space-1) solid var(--inverse);outline-offset:var(--space-1)}
.home-list{display:grid;gap:var(--space-3)}
.home-list-head b{color:var(--muted);font-size:var(--text-body);font-weight:800;line-height:var(--leading-body)}
.home-skeleton{display:block}
/* Small phones (≤700px tall, e.g. 360×640): the start button must stay above the tab bar on the first screen, so the
   rows above the game card tighten — same order, same content; the pending note and streak dots wait for taller screens. */
@media (max-height:700px){
.screen.home{gap:var(--space-2);padding-top:var(--space-2)}
.home-claim{min-height:var(--touch);padding:var(--space-1) var(--space-3)}
.home-claim i{width:26px;height:26px}
.money-wallet{padding:var(--space-3) var(--space-4)}
.money-wallet .money-row b{font-size:var(--text-balance)}
.money-wallet .money-meta{margin-top:var(--space-1)}
.money-wallet .money-meter{margin-top:var(--space-2)}
.money-pending,.attendance-dots,.home-attendance p{display:none}
.home-attendance{flex-wrap:nowrap;padding:var(--space-1) var(--space-3)}
.hero-game-card .game-body{margin-top:var(--space-2);gap:var(--space-1)}
}
/* The one game card is sized to the approved mockup (≈250px) so its start button stays on the first screen of a 360-wide phone. */
.screen.home .hero-game-card{min-height:250px}
.home-attendance p{font-size:var(--text-caption);line-height:var(--leading-body)}
.home-game-chip .chip-intro{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* #52 (2026-10-06, 시안 docs/mockups/2026-10-06-52묶음시안 — 사장님 승인) ─────────────────────────────── */
/* ③ first paint: the shell index.html carries before any script (boot-shell.js picks the words). */
.boot-shell{display:grid;justify-items:center;align-content:center;gap:var(--space-3);min-height:100dvh;padding:var(--space-6);text-align:center;background:var(--bg);color:var(--ink)}
.boot-logo,.auth-logo{display:grid;place-items:center;width:64px;height:64px;border-radius:var(--radius-large);background:linear-gradient(140deg,var(--hot),var(--accent));color:var(--inverse);font-size:var(--text-hero);font-weight:900}
.boot-name{font-size:var(--text-title);font-weight:900}
.boot-pitch,.boot-status,.boot-detail{max-width:320px;color:var(--muted);font-size:var(--text-body);line-height:var(--leading-body)}
.boot-bar{width:160px;height:6px;overflow:hidden;border-radius:var(--radius-pill);background:var(--line)}
.boot-bar i{display:block;width:40%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--hot),var(--accent));animation:boot-run var(--motion-skeleton) var(--motion-ease-move) infinite}
@keyframes boot-run{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
.boot-shell[data-boot-state="failed"] .boot-bar{display:none}
.boot-shell[data-boot-state="failed"] .boot-status{color:var(--ink);font-size:var(--text-control);font-weight:900}
.boot-detail:empty,.boot-code:empty{display:none}
.boot-retry{min-height:var(--touch);padding:0 var(--space-6);border-radius:var(--radius-pill);background:var(--ink);color:var(--inverse);font-weight:900}
.boot-code,.auth-code{color:var(--muted);font-size:var(--text-caption);line-height:var(--leading-body)}
/* ④ LINE login states — no red, the button says what the text says. */
.auth-state{display:grid;justify-items:center;gap:var(--space-3);margin:var(--space-6) auto;max-width:360px;padding:var(--space-6) var(--space-5);text-align:center}
.auth-state>b{font-size:var(--text-title);font-weight:900}
.auth-state p{color:var(--muted);font-size:var(--text-body);line-height:var(--leading-body)}
.auth-state .ui-button{width:100%;min-height:var(--button-main);border-radius:var(--radius-large);background:var(--ink);color:var(--inverse);font-size:var(--text-control);font-weight:900}
.auth-state .auth-line{background:var(--success);color:var(--inverse)}
.auth-code a{color:var(--chain)}
/* ② refresh: a small pill only after --motion-wait; the stale sentence only on a failed read. */
.refresh-pill{position:fixed;left:50%;top:calc(var(--space-2) + env(safe-area-inset-top));z-index:40;display:flex;align-items:center;gap:var(--space-2);padding:var(--space-1) var(--space-3);border-radius:var(--radius-pill);background:var(--surface);color:var(--muted);font-size:var(--text-caption);font-weight:800;line-height:var(--leading-body);box-shadow:var(--shadow-card);transform:translateX(-50%)}
.refresh-pill i{width:10px;height:10px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin var(--motion-skeleton) linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.read-status.stale{display:flex;align-items:center;gap:var(--space-3)}
.read-status.stale div{flex:1;display:grid;gap:var(--space-1)}
.home-claim-skeleton .skeleton{min-height:var(--touch)}
/* ① money card: one state, the rate line, the next step in words. */
.money-hint{margin-top:var(--space-2);color:var(--muted);font-size:var(--text-body);line-height:var(--leading-body)}
.money-hint.is-pending{color:var(--warning);font-weight:700}
.tutorial-hint{position:relative;margin-top:var(--space-2);font-size:var(--text-body);font-weight:700;line-height:var(--leading-body);opacity:.92}
/* ⑭ XP chip with its ⓘ — XP is drawn apart from money (chain colour, never the coin). */
.xp-chip{display:inline-flex;align-items:center;gap:var(--space-1);padding:2px var(--space-2);border-radius:var(--radius-pill);background:var(--chain-soft);color:var(--chain);font-size:var(--text-body);font-weight:900;line-height:var(--leading-body);white-space:nowrap}
.xp-i{cursor:pointer;display:inline-grid;place-items:center;width:var(--touch);height:var(--touch);margin:calc((var(--touch) - 18px) / -2);padding:0;border:0;background:transparent;color:var(--chain);font-size:var(--text-caption);font-weight:900;font-style:italic}
.hero-game-card .xp-chip{background:var(--surface)}
/* ⑦ 7-day check-in: point days marked, today highlighted. */
.attendance-head{display:flex;flex:1 1 100%;align-items:baseline;justify-content:space-between;gap:var(--space-2)}
.attendance-head small{color:var(--muted);font-size:var(--text-caption);font-weight:700;line-height:var(--leading-body)}
.stamp7{display:grid;flex:1 1 100%;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--space-1)}
.stamp7 span{display:grid;justify-items:center;align-content:center;gap:0;min-height:36px;border-radius:var(--radius-small);background:var(--bg);color:var(--muted);font-size:var(--text-caption);font-weight:900;line-height:1.1}
.stamp7 em{font-style:normal;font-size:var(--text-caption);font-weight:800;white-space:nowrap}
.stamp7 .p{color:var(--money)}
.stamp7 .done{background:var(--success-bg);color:var(--success)}
.stamp7 .today{background:var(--chain-soft);color:var(--chain);box-shadow:inset 0 0 0 2px var(--chain)}
.home-attendance .stamp-done{flex-basis:100%;text-align:center}
.home-attendance>button{flex:1 1 100%;margin-left:0;min-height:var(--touch)}
.home-attendance{row-gap:var(--space-2)}
/* ⑤ close sheet · ⑭ XP sheet — first-load (home), so their buttons are styled here, not in deferred.css. */
.close-sheet,.xp-sheet{display:grid;gap:var(--space-3)}
.xp-sheet{position:relative}.xp-sheet h2{padding-right:48px}.sheet .xp-sheet .sheet-x{position:absolute;top:-6px;right:-6px;width:44px;min-width:0;height:44px;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:var(--muted);font-size:26px;font-weight:400;line-height:1}
.close-sheet h2,.xp-sheet h2{font-size:var(--text-title);font-weight:900}
.close-sheet p,.xp-sheet p{color:var(--muted);font-size:var(--text-body);line-height:var(--leading-body)}
.close-sheet .close-payout{color:var(--warning);font-weight:700}
.xp-sheet .xp-sheet-lead{color:var(--ink);font-weight:800}
.close-sheet .ui-button,.xp-sheet .ui-button{width:100%;min-height:var(--button-main);border-radius:var(--radius-large);background:var(--ink);color:var(--inverse);font-size:var(--text-control);font-weight:900}
.close-sheet .sheet-secondary{min-height:var(--touch);background:var(--surface);color:var(--ink)}
.xp-now{padding:var(--space-3) var(--space-4);background:var(--soft);box-shadow:none}
.xp-now .money-meter{background:var(--surface)}
.xp-next-perk{margin-top:var(--space-2);color:var(--chain)!important;font-weight:800}
.xp-sheet h3{font-size:var(--text-body);font-weight:900}
.xp-table{width:100%;border-collapse:collapse;font-size:var(--text-body);line-height:var(--leading-body)}
.xp-table td{padding:var(--space-1) 0;border-bottom:var(--stroke) solid var(--line)}
.xp-table td:last-child{text-align:end;font-weight:800}
/* ⑬ big text: short tab names (fitTabLabels). The signup sheet's own rules (button fixed, tabs only after) live in signup.js since 2026-10-07. */
/* #52 ⑦ on small phones (≤700px tall): the start button stays on the first screen (approved 2026-09-28), so check-in is one row —
   title and today's button; the 7 cells and the rate line wait for taller screens. After the #52 rules so it wins. */
@media (max-height:700px){
.stamp7,.attendance-head small{display:none}
.home-attendance{flex-wrap:nowrap}
.attendance-head{flex:1 1 auto;min-width:0}
.attendance-title{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.home-attendance>button{flex:0 0 auto;width:auto;margin-left:auto;padding:0 var(--space-3);white-space:nowrap}
}
/* 구현 걷기 2026-10-07: 큰 글씨에서는 XP 칩도 줄바꿈 · 두 단계 줄 · XP 띠 색 */
html.big-text .xp-chip{white-space:normal;flex-wrap:wrap}
.money-steps{margin-top:var(--space-1);color:var(--ink);font-size:var(--text-caption);font-weight:700;line-height:var(--leading-body)}
.auth-step{color:var(--muted);font-size:var(--text-caption);line-height:var(--leading-body)}
.home-claim.is-xp{border-color:var(--chain);background:var(--chain-soft);color:var(--chain)}
.home-claim.is-xp i{background:var(--chain);color:var(--inverse)}
@media (max-height:700px){[data-wallet-state]:not([data-wallet-state="fresh"]) .money-steps{display:none}}
.money-foot{align-items:center}
.money-foot .money-steps{flex:1;min-width:0;margin-top:0}
.money-foot .money-link{flex:none}
/* #54: 360×840 ko 시작 단추를 탭 위로 — 간격만 */
.money-meter-label+.money-meter{margin-top:var(--space-1)}
.money-foot:has([data-money-steps]){margin-top:var(--space-1)}
/* D181: 360×840 시작 단추를 리눅스 글꼴에서도 탭 위로(배치만) — ① 300P 줄 전체 폭 ② 목표 줄 한 줄 말줄임 ③ 높이 ≤900 은 작은 폰 간격.
   검사: visual-check "start below tabs". */
.money-foot:has([data-money-steps]){display:grid;grid-template-columns:minmax(0,1fr) auto;row-gap:0}
.money-foot .money-steps{display:contents}
.money-foot .money-steps br{display:none}
.money-foot .money-steps-main{grid-column:1/-1}
.money-foot .money-steps-sub{grid-column:1;min-width:0;line-height:16px}
html:not(.big-text) .hero-game-card .ladder-line em{flex:1 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media (max-height:900px){
.screen.home{gap:var(--space-2)}
.hero-game-card .game-body{margin-top:var(--space-2);gap:var(--space-1)}
}
/* 출석 안내는 한 줄(전체는 title) — 승인 2026-09-28 */
@media (max-height:900px){.home-attendance>p:not(.stamp-done){display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}}
/* 사업 세션 판정 ③: 300P 넘음 = "지갑으로 받을 수 있어요" + 엔까지 남은 양 */
.money-ready small,.home-claim b small{color:var(--muted);font-size:var(--text-caption);font-weight:700}
.home-claim b small{display:block;overflow:hidden;text-overflow:ellipsis;color:inherit}
.money-yen{margin-top:var(--space-1);color:var(--muted);font-size:var(--text-caption);font-weight:700;line-height:var(--leading-body)}
/* 구현 2회차 걷기 높3 — 큰 글씨: 받을 보상 띠는 위아래로, 출석 7칸은 4칸씩 두 줄(한 글자씩 세로·겹침 없음) */
html.big-text .home-claim{flex-wrap:wrap;row-gap:var(--space-1)}
html.big-text .home-claim b{flex:1 1 100%;order:2;word-break:keep-all;overflow-wrap:break-word}
html.big-text .home-claim span{order:3}
html.big-text .stamp7{grid-template-columns:repeat(4,minmax(0,1fr))}
html.big-text .stamp7 em{white-space:normal;word-break:keep-all}
html.big-text .attendance-head{flex-wrap:wrap}
/* 받을 보상 띠는 한 줄(보통 글자) — "출석 포함" 꼬리가 줄을 늘려 게임 시작 버튼을 밀었다. 전체는 title. 큰 글씨는 위의 규칙대로 줄바꿈 */
html:not(.big-text) .home-claim b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 걷기 3회차: 단위 정리 잠금 안내 · 큰 글씨 추천 카드 목표 줄(보상은 아래 줄로 — 한 글자씩 세로 금지) */
.home-unit-locked{margin:0 0 var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius-card);background:var(--warning-bg);color:var(--warning);font-size:var(--text-body);font-weight:800;line-height:var(--leading-body)}

.home-partner-stopped{display:grid;gap:var(--space-2);margin:var(--space-3) 0 0;padding:var(--space-3) var(--space-4);border:1.5px solid var(--warning-line);border-radius:var(--radius-card);background:var(--warning-bg);color:var(--ink)}.home-partner-stopped b{font-size:var(--text-control);font-weight:900;line-height:1.35}.home-partner-stopped p{font-size:var(--text-body);font-weight:700;line-height:var(--leading-body)}.home-partner-stopped button{justify-self:start;min-height:var(--touch);padding:0 var(--space-4);border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);border:1.5px solid var(--line);font-size:var(--text-body);font-weight:900}.hero-game-card>.game-pill.is-stopped{background:var(--warning-bg);color:var(--warning);font-weight:900}
html.big-text .ladder-line{flex-wrap:wrap}
html.big-text .ladder-line em{flex:1 1 100%;word-break:keep-all}
html.big-text .ladder-line strong,html.big-text .ladder-line .xp-chip{flex:none}
.home-game-chip .chip-cond{color:var(--ink)}
:lang(ja) body{word-break:auto-phrase;overflow-wrap:anywhere;text-wrap:pretty}/* ja 2026-10-18 ⑫: phrase breaks (Android WebView); iOS keeps pretty */
