/* Shared destinations stay familiar on the other town screens. */
.primary-nav { display:flex; gap:6px; padding:4px; background:#e4edf3; border:1px solid #d0dfe8; border-radius:30px; }
.primary-nav button { min-height:44px; background:transparent; color:#42657c; font-size:14px; font-weight:650; border-radius:24px; padding:8px 16px; }
.primary-nav button.active { background:#173c51; color:#f0ffcb; box-shadow:0 3px 8px #173c5122; }

/* Home has its own quiet, dark surface; dialogs and town interiors keep theirs. */
body.premium-shell { background:radial-gradient(ellipse at 12% 0%,#19304170,transparent 48%) #0b1520; color:#edf3ef; }
.premium-shell .town-app main { max-width:1400px; padding:28px 40px 24px; }
.premium-shell .town-header { padding-bottom:24px; margin-bottom:32px; border-bottom:1px solid #ffffff10; gap:24px; }
.premium-shell .town-header .page-heading { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.premium-shell .town-header .brand { color:#edf3ef; font-size:15px; line-height:1.25; letter-spacing:-.025em; }
.premium-shell .brand>strong { font-weight:650; }
.premium-shell .town-header .brandmark { background:#d2f56a; color:#1b2a20; border-radius:13px; width:44px; height:44px; box-shadow:0 3px 12px #0002; }
.premium-shell .primary-nav { margin:0 auto; padding:4px; border-color:#ffffff0e; background:#ffffff04; border-radius:16px; }
.premium-shell .primary-nav button { color:#a5b5c0; border-radius:12px; padding:8px 23px; transition:background .16s,color .16s; }
.premium-shell .primary-nav button:hover { color:#f0f5ed; }
.premium-shell .primary-nav button.active { background:#293b3c; color:#d7f3a6; box-shadow:0 2px 6px #0002; }
.premium-shell .wallet { font-size:14px; font-weight:600; color:#e3eacb; }
.premium-shell .wallet .coin { font-size:17px; color:#d6dba1; }
.premium-shell .wallet-label { color:#a5b4c0; }
.premium-shell .town-header .avatar { width:44px; height:44px; margin-left:12px; font-weight:600; border:1px solid #ffffff30; box-shadow:0 0 0 4px #ffffff04; }
.premium-shell footer { border-color:#ffffff10; color:#8fa3b1; padding-top:22px; }
.premium-shell footer button { color:#a6b5bf; min-height:44px; padding:0; }
.premium-shell .town-header button:focus-visible,.premium-shell .brand:focus-visible,.premium-shell footer button:focus-visible { outline:2px solid #d2f56a; outline-offset:4px; }

.student-home { color:#edf3ef; --home-line:#ffffff12; --home-muted:#a1b1be; --home-accent:#d2f56a; }
.student-home button { -webkit-tap-highlight-color:transparent; }
.home-kicker { display:block; font-size:12px; font-weight:650; line-height:1.6; letter-spacing:.12em; color:#a2b5bf; }
.home-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin:0 0 28px; }
.home-heading h2 { font-size:40px; font-weight:600; line-height:1.17; letter-spacing:-.045em; margin:6px 0 0; }
.home-heading p { font-size:16px; color:var(--home-muted); margin:10px 0 0; }
.home-career-choice { display:flex; align-items:center; gap:13px; padding:14px 17px; min-height:70px; background:#ffffff03; border:1px solid #ffffff17; color:#e9f0e9; border-radius:16px; text-align:left; transition:background .16s,border-color .16s; }
.home-career-choice:hover { background:#ffffff08; border-color:#ffffff30; }
.home-career-dot { width:7px; height:7px; border-radius:50%; background:var(--career-accent); box-shadow:0 0 0 5px #ffffff05; flex:none; }
.home-career-choice small { font-size:12px; line-height:1.6; color:#a5b6c1; display:block; }
.home-career-choice strong { display:block; font-weight:600; font-size:16px; line-height:1.5; }
.home-career-change { font-size:14px; color:#d2e8b8; border-left:1px solid #ffffff17; padding-left:15px; margin-left:8px; }

/* A single, calm strip connects the three headline statistics. */
.home-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 0 24px; background:linear-gradient(115deg,#172635,#13212d); border:1px solid var(--home-line); border-radius:22px; box-shadow:0 12px 30px #02090f12; }
.home-stat { position:relative; min-width:0; min-height:157px; display:flex; align-items:center; gap:18px; padding:23px 26px 43px; background:transparent; color:#eef4ec; text-align:left; border-radius:21px; transition:background .16s; }
.home-stat:hover { background:#ffffff04; }
.home-stat:not(:last-child):after { content:""; position:absolute; right:0; top:22px; bottom:22px; width:1px; background:#ffffff0c; }
.home-stat-copy { display:flex; flex-direction:column; min-width:0; gap:4px; }
.home-stat-copy>small { font-size:14px; font-weight:500; color:#a9bac6; line-height:1.5; }
.home-stat-copy>strong { font-size:34px; font-weight:600; line-height:1.25; letter-spacing:-.04em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.home-stat-copy>strong em { display:inline-block; margin-left:7px; font-size:14px; font-weight:500; font-style:normal; letter-spacing:0; color:#bdcbbd; }
.home-stat-copy>span { font-size:12px; line-height:1.6; color:#a2b1bc; }
.home-stat-link { position:absolute; bottom:16px; left:26px; font-size:12px; font-weight:500; color:#c8dbac; }
.home-money-short { display:none; }
.home-stat-copy>.home-best-career-name { font-size:25px; line-height:1.4; letter-spacing:-.035em; }
.student-home .level-ring-ui.home-summary-ring { --ring-size:84px; margin-left:auto; background:#152731; box-shadow:none; }
.home-summary-ring .level-orbit-face>small,.home-summary-ring .level-ring-xp-stamp { display:none; }
.student-home .home-summary-ring .level-orbit-face>strong { font-size:29px; font-weight:600; }
.home-summary-ring .level-ring-fill { filter:none; }
.home-summary-ring .level-ring-track { stroke:#35494c; }
.home-summary-ring .level-ring-tick { opacity:.7; }
.home-summary-ring .level-ring-rim { stroke:#bad5be25; }

.home-main-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(310px,1fr); align-items:start; gap:24px; }
.home-radar-card { min-width:0; background:#121f2c; color:#edf3ef; border:1px solid var(--home-line); border-radius:26px; overflow:hidden; box-shadow:0 16px 48px #020a1318; }
.home-radar-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:27px 28px 15px; }
.home-radar-heading h3 { font-size:28px; font-weight:600; letter-spacing:-.035em; line-height:1.3; margin:5px 0 5px; }
.home-radar-heading p { font-size:14px; color:#a8bac7; margin:0; }
.home-measured-count { flex:none; font-size:12px; line-height:1.6; color:#a8b8c2; text-align:right; }
.home-measured-count strong { display:block; font-size:30px; font-weight:500; color:#d8edbc; line-height:1.3; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.home-measured-count strong>span { font-size:18px; font-weight:400; color:#a3b3bb; letter-spacing:0; margin-left:3px; }
.home-radar-figure { margin:0 20px; background:radial-gradient(ellipse at 50% 50%,#b0e6bb06,transparent 63%); }
.home-radar { width:100%; max-width:560px; height:auto; display:block; margin:0 auto; overflow:visible; }
.radar-grid { fill:none; stroke:#91a6b629; stroke-width:1; }
.radar-grid-outer { stroke:#9fb9bb50; stroke-width:1.2; }
.radar-spoke { stroke:#91a6b61f; stroke-width:1; }
.radar-spoke-selected { stroke:var(--radar-colour); opacity:.3; }
.radar-scale { fill:#a2b4bd; font-size:12px; }
.radar-data-area { fill:url(#home-radar-fill); stroke:#c3efaf; stroke-width:2.5; stroke-linejoin:round; }
.radar-data-line { stroke:#c3efaf; stroke-width:2.5; stroke-linecap:round; }
.radar-measured-spoke { stroke:var(--radar-colour); stroke-width:1.5; opacity:.28; }
.radar-point { fill:#132431; stroke:var(--radar-colour); stroke-width:2.5; }
.radar-point-established { fill:var(--radar-colour); stroke:#ecf6e8; stroke-width:1.5; }
.radar-point-selected { stroke-width:2.5; filter:drop-shadow(0 0 5px var(--radar-colour)); }
.radar-label { fill:#a8bac5; }
.radar-axis-name { font-size:19px; font-weight:500; }
.radar-axis-value { font-size:20px; font-weight:600; fill:#e5efdf; }
.radar-label-selected { fill:#eef8e6; }
.radar-label-selected .radar-axis-name { font-weight:650; }
.radar-name-short { display:none; }
.radar-empty-label { fill:#abc1c1; font-size:14px; font-weight:500; letter-spacing:1.5px; }
.home-radar-figure figcaption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:7px 16px; margin:0 8px 24px; color:#9fb1bc; font-size:12px; line-height:1.6; }
.radar-key { display:flex; align-items:center; gap:8px; }
.radar-key i { display:block; width:7px; height:7px; border-radius:50%; background:#c3efaf; box-shadow:0 0 0 3px #c3efaf10; }
.home-strength-callouts { display:grid; grid-template-columns:1fr 1fr; margin:0 28px 24px; padding:18px 19px; border:1px solid #ffffff0c; border-radius:16px; background:#ffffff02; }
.home-strength-callouts>div { display:flex; flex-direction:column; gap:4px; min-width:0; padding-right:18px; }
.home-strength-callouts>div+div { border-left:1px solid #ffffff10; padding-right:0; padding-left:20px; }
.home-strength-callouts span { font-size:12px; color:#b8cbb0; line-height:1.6; }
.home-strength-callouts>div+div>span { color:#aebecb; }
.home-strength-callouts strong { font-size:18px; font-weight:600; line-height:1.4; color:#eaf1e8; }
.home-strength-callouts small { font-size:12px; line-height:1.6; color:#a3b4c0; }
.home-radar-start { margin:0 28px 22px; padding-left:14px; border-left:2px solid #bad99b66; }
.home-radar-start strong { font-size:16px; font-weight:550; }
.home-radar-start p { font-size:14px; line-height:1.65; margin:5px 0 0; color:#a9bbc8; }
.home-topic-picker { display:flex; flex-wrap:wrap; gap:8px; margin:0 24px 18px; padding:4px; }
.home-topic-picker button { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; color:#b9c7d0; font-size:14px; font-weight:500; background:#ffffff03; border:1px solid #ffffff10; border-radius:10px; padding:8px 11px; line-height:1.5; transition:background .16s,border-color .16s; }
.home-topic-picker button strong { color:#b1c3c8; font-weight:500; font-size:14px; font-variant-numeric:tabular-nums; }
.home-topic-picker button:hover { background:#ffffff08; border-color:#ffffff29; }
.home-topic-picker button[aria-pressed="true"] { color:#eef4ec; border-color:color-mix(in srgb,var(--topic-accent) 55%,transparent); background:color-mix(in srgb,var(--topic-accent) 8%,transparent); }
.home-topic-picker button[aria-pressed="true"] strong { color:var(--topic-accent); }
.home-skill-detail { display:flex; align-items:center; gap:18px; margin:0 28px 24px; padding-top:22px; border-top:1px solid #ffffff10; }
.home-detail-score { flex:none; color:var(--skill-accent); font-size:34px; font-weight:550; line-height:1.3; text-align:left; letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
.home-detail-score small { display:block; color:#a3b7c4; font-size:12px; line-height:1.6; font-weight:400; letter-spacing:0; }
.home-skill-detail>div:nth-child(2) { flex:1; min-width:0; }
.home-skill-detail>div:nth-child(2)>strong { display:block; font-size:16px; font-weight:600; margin-bottom:4px; }
.home-skill-detail>div:nth-child(2)>span { font-size:14px; color:#adbfcd; line-height:1.65; }
.home-quiet-button { background:transparent; color:#d0e0b8; min-height:44px; font-size:14px; font-weight:500; line-height:1.6; padding:9px 0; }
.home-quiet-button:hover { text-decoration:underline; text-underline-offset:5px; }
.home-skill-detail>.home-quiet-button { max-width:100px; flex:none; text-align:right; }
.home-score-explainer { border-top:1px solid #ffffff0a; background:#0e1b26; padding:10px 28px; color:#a6b8c5; font-size:14px; line-height:1.75; }
.home-score-explainer summary { cursor:pointer; color:#b7c7d0; min-height:44px; padding:10px 0; }
.home-score-explainer p { margin:10px 0 16px; }

.home-side-stack { display:grid; gap:20px; min-width:0; }
.home-town-card { position:relative; isolation:isolate; overflow:hidden; border:1px solid #ffffff23; border-radius:24px; min-height:338px; text-align:left; padding:26px; color:#fff; background:#234138; box-shadow:0 12px 32px #020b1426; }
.home-town-card>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 38%; z-index:-2; transition:transform .3s ease; }
.home-town-card:after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,#09192530 0%,#10262b20 22%,#102027bf 52%,#0e1e25f7 94%); }
.home-town-card:hover>img { transform:scale(1.035); }
.home-town-tag { position:absolute; top:22px; left:24px; padding:6px 10px; border-radius:8px; background:#10292ecf; border:1px solid #ffffff26; color:#e4efe7; font-size:12px; line-height:1.5; backdrop-filter:blur(8px); }
.home-town-copy { display:flex; flex-direction:column; gap:8px; margin-top:113px; }
.home-town-copy .home-kicker { color:#d3e3d7; }
.home-town-copy>strong { font-size:30px; font-weight:600; letter-spacing:-.04em; line-height:1.2; max-width:340px; }
.home-town-copy>span:not(.home-kicker):not(.home-town-enter) { color:#c4d6d4; font-size:14px; line-height:1.65; }
.home-town-copy>.home-town-enter { display:block; align-self:flex-start; background:#d2f56a; color:#22311b; border:1px solid #e0ff8a99; border-radius:11px; padding:11px 18px; font-weight:650; font-size:14px; margin-top:12px; box-shadow:0 3px 10px #0002; }
.home-focus-card { padding:25px; background:linear-gradient(140deg,#1b2e35,#14252e); border:1px solid #b5d9c21f; border-radius:22px; }
.home-focus-card .home-kicker { color:#b9d4bf; }
.home-focus-title { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:17px 0 12px; }
.home-focus-title>div { min-width:0; }
.home-focus-title h3 { font-size:25px; font-weight:600; line-height:1.3; letter-spacing:-.035em; margin:0; }
.home-focus-title span { display:block; font-size:14px; line-height:1.5; color:#b2c5c8; margin-top:6px; }
.home-focus-title>img { width:76px; height:76px; object-fit:cover; border-radius:14px; border:1px solid #ffffff18; flex:none; }
.home-focus-card p { font-size:16px; line-height:1.65; color:#b5c8ce; margin:0 0 21px; }
.home-focus-actions { display:flex; flex-direction:column; align-items:stretch; gap:4px; }
.home-focus-actions .btn { padding:12px; min-height:48px; background:#d2f56a; color:#22321d; border:1px solid #e0ff8a66; font-size:16px; font-weight:650; border-radius:11px; transition:background .16s; }
.home-focus-actions .btn:hover { background:#dffd83; }
.home-focus-actions .home-quiet-button { color:#c4d6c1; }
.home-trophy-card { position:relative; display:flex; align-items:center; gap:10px; padding:25px 20px 23px 25px; background:linear-gradient(120deg,#202a30,#19232b); border:1px solid #c2a97f26; border-radius:22px; overflow:hidden; }
.home-trophy-card>div:first-child { min-width:0; flex:1; position:relative; z-index:1; }
.home-trophy-card h3 { font-size:22px; font-weight:550; letter-spacing:-.025em; line-height:1.35; margin:8px 0; }
.home-trophy-card .home-kicker { color:#d5c194; }
.home-trophy-rarity { display:block; font-size:12px; color:#d6bd93; line-height:1.6; }
.home-trophy-stage { position:relative; display:grid; place-items:center; width:120px; height:166px; flex:none; isolation:isolate; }
.home-trophy-stage:before { content:""; position:absolute; inset:-15px; z-index:-1; background:radial-gradient(ellipse,var(--trophy-glow,#c29c4430),transparent 68%); opacity:.6; }
.home-trophy-stage .trophy-art { width:min(var(--trophy-art-size,112px),142px); height:166px; max-width:none; object-fit:contain; filter:drop-shadow(0 12px 8px #030c144d); }
.home-trophy-card progress { display:block; margin:16px 0 7px; height:4px; background:#ffffff12; }
.home-trophy-card progress::-webkit-progress-bar { background:#ffffff12; }
.home-trophy-card progress::-webkit-progress-value { background:#d1b584; }
.home-trophy-card progress::-moz-progress-bar { background:#d1b584; }
.home-trophy-card small { display:block; font-size:12px; line-height:1.6; color:#c8bfae; }
.home-trophy-card .home-quiet-button { margin-top:5px; color:#e0c695; text-align:left; }
.home-trophy-card p { color:#c6c8c1; font-size:14px; line-height:1.6; }
.home-shortcuts { display:grid; border:1px solid #ffffff0f; border-radius:20px; overflow:hidden; background:#ffffff02; }
.home-shortcuts button { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:88px; padding:18px 24px; background:transparent; text-align:left; color:#e0e9e3; transition:background .16s; }
.home-shortcuts button+button { border-top:1px solid #ffffff0c; }
.home-shortcuts button:hover { background:#ffffff05; }
.home-shortcuts strong { display:block; font-size:16px; font-weight:550; line-height:1.4; }
.home-shortcuts small { display:block; margin-top:5px; color:#a5b6c1; font-size:12px; line-height:1.5; }
.home-shortcuts .home-shortcut-number { flex:none; color:#bcd2a6; font-size:25px; font-weight:450; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.home-shortcut-number>small { display:inline; color:#a4b2bd; font-size:14px; }
.home-save-note { color:#99adbb; font-size:12px; line-height:1.6; margin:23px 0 0; }
.student-home button:focus-visible,.student-home summary:focus-visible { outline:2px solid #d2f56a; outline-offset:4px; }
.home-shortcuts button:focus-visible { outline-offset:-5px; }

/* Career rankings appear inside the existing light dialog. */
.home-career-ranking { display:grid; gap:12px; margin:20px 0; }
.home-career-ranking>button { display:flex; align-items:center; gap:14px; padding:12px; border:1px solid #ccdaeb; border-radius:15px; background:#edf3fa; color:#284769; text-align:left; }
.home-career-ranking>button>span:nth-child(2) { flex:1; min-width:0; }
.home-career-ranking strong { font-size:16px; display:block; }
.home-career-ranking small { display:block; font-size:12px; color:#657f9d; margin-top:5px; line-height:1.6; }
.level-ring-ui.home-ranking-ring { --ring-size:70px; }
.home-ranking-ring .level-ring-xp-stamp,.home-ranking-ring .level-orbit-face>small { display:none; }
.home-ranking-ring .level-orbit-face>strong { font-size:26px; }
.home-career-access { font-size:12px; color:#6a83a0; }
.home-career-ranking button:focus-visible,.primary-nav button:focus-visible { outline:3px solid #3684dd; outline-offset:4px; }

@media(max-width:1150px) {
 .premium-shell .town-app main { padding:24px 28px; }
 .home-stat { padding:20px 22px 42px; gap:12px; }
 .home-stat-copy>strong { font-size:30px; }
 .home-stat-copy>.home-best-career-name { font-size:23px; }
 .home-stat-link { left:22px; }
 .student-home .level-ring-ui.home-summary-ring { --ring-size:74px; }
 .home-main-grid { grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr); gap:20px; }
 .home-radar-heading { padding:24px 23px 15px; }
 .home-radar-figure { margin:0 12px; }
 .home-strength-callouts,.home-radar-start,.home-skill-detail { margin-left:23px; margin-right:23px; }
 .home-topic-picker { margin-left:19px; margin-right:19px; }
 .home-skill-detail { flex-wrap:wrap; gap:13px; }
 .home-skill-detail>.home-quiet-button { max-width:none; margin-left:auto; }
 .radar-axis-name { font-size:22px; }
 .radar-axis-value { font-size:22px; }
 .home-town-card { padding:23px; }
 .home-town-copy>strong { font-size:28px; }
 .home-focus-card { padding:22px; }
 .home-focus-title>img { width:65px; height:65px; }
 .home-trophy-card { padding:23px 16px 21px 22px; }
 .home-trophy-stage { width:93px; }
 .home-trophy-stage .trophy-art { max-width:115px; }
}
@media(max-width:950px) {
 .home-main-grid { grid-template-columns:1fr; }
 .home-side-stack { grid-template-columns:1fr 1fr; align-items:start; }
 .home-town-card,.home-focus-card { align-self:stretch; }
 .home-radar { max-width:590px; }
 .home-radar-heading { padding:26px 28px 15px; }
 .home-radar-figure { margin:0 22px; }
 .radar-axis-name { font-size:19px; }
 .radar-axis-value { font-size:20px; }
 .home-stat-copy>strong { font-size:28px; }
 .home-stat-copy>.home-best-career-name { font-size:21px; }
 .home-stat { gap:10px; padding:20px 20px 42px; }
 .student-home .level-ring-ui.home-summary-ring { --ring-size:62px; }
 .student-home .home-summary-ring .level-orbit-face>strong { font-size:24px; }
 .home-heading h2 { font-size:36px; }
 .home-strength-callouts,.home-radar-start,.home-skill-detail { margin-left:28px; margin-right:28px; }
 .home-topic-picker { margin-left:24px; margin-right:24px; }
 .home-trophy-stage { width:112px; }
}
@media(max-width:700px) {
 .town-header { flex-wrap:wrap; }
 .primary-nav { order:3; width:100%; border-radius:15px; margin-top:1px; }
 .primary-nav button { flex:1; border-radius:11px; }
 .premium-shell .town-app main { padding:20px 20px 24px; }
 .premium-shell .town-header { flex-wrap:nowrap; gap:14px; margin-bottom:25px; padding-bottom:20px; }
 .premium-shell .town-header .brand>strong { display:none; }
 .premium-shell .primary-nav { order:0; width:auto; margin:0 auto; border-radius:14px; }
 .premium-shell .primary-nav button { padding:7px 17px; border-radius:10px; }
 .premium-shell .wallet>#coin-count,.premium-shell .wallet>.coin,.premium-shell .wallet>.wallet-label { display:none; }
 .premium-shell .town-header .wallet { margin:0; }
 .premium-shell .town-header .avatar { margin-left:0; }
 .home-heading { gap:20px; margin-bottom:24px; }
 .home-heading h2 { font-size:32px; }
 .home-heading p { display:none; }
 .home-career-choice { padding:12px 13px; gap:11px; }
 .home-career-change { display:none; }
 .home-career-choice strong { font-size:14px; }
 .home-stats { margin-bottom:20px; border-radius:19px; }
 .home-stat { padding:18px 18px 38px; min-height:153px; gap:10px; border-radius:18px; }
 .home-stat-link { left:18px; bottom:14px; }
 .home-stat-copy>strong { font-size:27px; }
 .home-stat-copy>strong em { display:block; margin:2px 0 0; font-size:12px; }
 .home-stat-copy>.home-best-career-name { font-size:20px; }
 .home-stat-copy>span { display:none; }
 .home-stat-copy>.home-money-description { display:block; }
 .home-money-full { display:none; }
 .home-money-short { display:inline; }
 .home-xp-stat { align-items:flex-start; }
 .student-home .level-ring-ui.home-summary-ring { --ring-size:60px; align-self:center; }
 .student-home .home-summary-ring .level-orbit-face>strong { font-size:23px; }
 .home-side-stack { gap:18px; }
 .home-focus-title { gap:12px; }
 .home-focus-title h3 { font-size:22px; }
 .home-focus-title>img { width:54px; height:64px; border-radius:10px; }
 .home-town-copy>strong { font-size:27px; }
 .home-trophy-stage { width:84px; }
 .home-trophy-stage .trophy-art { max-width:100px; }
 .home-shortcuts button { padding:17px 20px; }
}
@media(max-width:520px) {
 .premium-shell .town-app main { padding:18px 16px 22px; }
 .premium-shell .town-header { gap:9px; padding-bottom:19px; margin-bottom:24px; }
 .premium-shell .town-header .brandmark { width:40px; height:40px; font-size:21px; border-radius:12px; }
 .premium-shell .town-header .avatar { width:40px; height:40px; }
 .premium-shell .primary-nav button { padding:7px 16px; }
 .home-heading { align-items:center; gap:16px; margin-bottom:23px; }
 .home-heading>div { min-width:0; }
 .home-heading h2 { font-size:30px; line-height:1.16; }
 .home-heading .home-kicker { letter-spacing:.1em; }
 .home-career-choice { width:132px; flex:none; min-height:72px; padding:11px 12px; gap:0; }
 .home-career-dot { display:none; }
 .home-career-choice small { margin-bottom:2px; }
 .home-career-choice strong { font-size:14px; font-weight:550; }
 .home-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .home-stat { display:block; min-height:164px; padding:16px 13px 34px; }
 .home-stat:not(:last-child):after { top:18px; bottom:18px; }
 .home-stat-copy { gap:6px; }
 .home-stat-copy>small { font-size:14px; }
 .home-stat-copy>strong { font-size:26px; }
 .home-stat-copy>strong em { margin:0; line-height:1.4; }
 .home-stat-copy>.home-best-career-name { font-size:18px; line-height:1.4; }
 .home-stat-link { left:13px; bottom:12px; font-size:12px; }
 .student-home .level-ring-ui.home-summary-ring { --ring-size:58px; margin:9px 0 0; }
 .student-home .home-summary-ring .level-orbit-face>strong { font-size:20px; }
 .home-summary-ring .level-orbit-face>span { font-size:12px; line-height:1; }
 .home-xp-stat { padding-bottom:12px; }
 .home-xp-stat .home-stat-copy>strong em,.home-xp-stat .home-stat-link { display:none; }
 .home-main-grid { gap:20px; }
 .home-radar-card { border-radius:22px; }
 .home-radar-heading { padding:23px 20px 15px; gap:12px; }
 .home-radar-heading h3 { font-size:26px; }
 .home-radar-heading p { font-size:14px; line-height:1.5; max-width:180px; }
 .home-measured-count { max-width:80px; }
 .home-measured-count strong { font-size:28px; }
 .home-measured-count strong>span { font-size:16px; }
 .home-radar-figure { margin:0 10px; }
 .radar-axis-name { font-size:27px; }
 .radar-axis-value { font-size:26px; }
 .radar-name-full { display:none; }
 .radar-name-short { display:block; }
 .radar-scale { display:none; }
 .radar-empty-label { font-size:23px; letter-spacing:.5px; }
 .home-radar-figure figcaption { display:block; margin:0 10px 22px; }
 .home-radar-figure figcaption>span { margin-bottom:6px; }
 .home-strength-callouts { margin:0 20px 23px; padding:15px 14px; }
 .home-strength-callouts>div { padding-right:12px; }
 .home-strength-callouts>div+div { padding-left:14px; }
 .home-strength-callouts strong { font-size:16px; }
 .home-radar-start { margin:0 20px 20px; }
 .home-topic-picker { flex-wrap:nowrap; overflow-x:auto; margin:0 16px 18px; padding:4px 4px 9px; scrollbar-width:thin; scrollbar-color:#46616d #152432; }
 .home-topic-picker button { flex:none; gap:12px; padding:10px 12px; }
 .home-skill-detail { margin:0 20px 23px; padding-top:20px; gap:15px; }
 .home-detail-score { font-size:31px; }
 .home-skill-detail>div:nth-child(2) { min-width:150px; }
 .home-skill-detail>.home-quiet-button { min-width:100%; margin:0; padding:10px 14px; border:1px solid #c5dbaf38; border-radius:10px; background:#c5dbaf04; text-align:center; }
 .home-score-explainer { padding:10px 20px; }
 .home-side-stack { grid-template-columns:1fr; gap:18px; }
 .home-town-card { min-height:316px; padding:24px; }
 .home-town-copy { margin-top:102px; }
 .home-town-copy>strong { font-size:30px; }
 .home-focus-card { padding:24px; }
 .home-focus-title h3 { font-size:25px; }
 .home-focus-title>img { width:76px; height:76px; border-radius:13px; }
 .home-trophy-card { padding:24px 21px 22px 24px; }
 .home-trophy-stage { width:113px; }
 .home-trophy-stage .trophy-art { max-width:135px; }
 .home-trophy-card h3 { font-size:23px; }
 .home-shortcuts button { padding:20px 24px; }
 .home-career-access { display:none; }
 .home-save-note { margin-top:24px; }
}
@media(max-width:350px) {
 .premium-shell .primary-nav button { padding:7px 13px; }
 .home-heading { gap:12px; }
 .home-heading h2 { font-size:28px; }
 .home-career-choice { width:116px; }
 .home-stat { padding-left:10px; padding-right:10px; }
 .home-stat-link { left:10px; }
 .home-stat-copy>strong { font-size:23px; }
 .home-stat-copy>.home-best-career-name { font-size:16px; }
 .home-stat-copy>small { line-height:1.4; }
 .home-radar-heading { padding-left:17px; padding-right:17px; }
 .radar-axis-name { font-size:30px; }
 .radar-axis-value { font-size:29px; }
 .radar-empty-label { font-size:26px; }
 .home-strength-callouts { grid-template-columns:1fr; gap:14px; }
 .home-strength-callouts>div+div { border:0; padding:14px 0 0; border-top:1px solid #ffffff10; }
 .home-strength-callouts>div { padding:0; }
 .home-trophy-stage { width:88px; }
 .home-trophy-stage .trophy-art { max-width:112px; }
 .home-trophy-card h3 { font-size:21px; }
}
@media(prefers-reduced-motion:reduce) {
 .student-home button,.home-town-card>img,.premium-shell .primary-nav button { transition:none; }
 .home-town-card:hover>img { transform:none; }
}

/* Sterling amounts stay together on compact profile cards. */
.home-money-stat .home-stat-copy>strong { font-size:clamp(20px,2.6vw,34px); overflow-wrap:normal; }
@media(max-width:520px){.home-money-stat .home-stat-copy>strong{font-size:20px;letter-spacing:-.055em;overflow-wrap:anywhere;}}
