/* Calm tennis UI: real artwork, readable type, one clear primary action per screen. */
:root {
 --bg:#edf4eb;--panel:#f9fcf6;--ink:#173c2d;--muted:#6b7b70;--gold:#668a65;--gold-dark:#4c724f;
 --line:#dce6d9;--accent:#527556;--surface:#f9fcf6;--nav-height:76px;--font-ui:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;
 font-family:var(--font-ui);color:var(--ink);
}
html,body {background:#e5eddf;color:var(--ink);}
body {font-family:var(--font-ui);font-size:14px;background:radial-gradient(ellipse at 30% 0,#f3f7ef,transparent 70%),#e5eddf;}
button,input,select {font-family:inherit;} button {touch-action:manipulation;}
body[data-screen] #app {background:linear-gradient(155deg,#f0f7ee,#eaf3e8);box-shadow:0 0 60px #254c2910;border-color:#dce7d8;}
body[data-screen] #app:before,body[data-screen] #app:after,.profile-overview:before,.result-panel:before {display:none;}
#app {height:100dvh;min-height:0;padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom));}
.game-art {display:block;object-fit:contain;pointer-events:none;user-select:none;}
.coach-portrait {object-fit:cover;object-position:center;pointer-events:none;}
.header {height:61px;min-height:61px;padding:9px 20px;gap:8px;border:0;z-index:5;}
.brand {flex:1;min-width:0;gap:3px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;}
.brand-partners {height:23px;min-height:0;padding:0;gap:8px;display:flex;flex-direction:row;align-items:center;}
.partner-pinkfish {font-size:17px;color:var(--ink);font-weight:850;letter-spacing:1px;}
.partner-cross {font-size:15px;color:#42604b;}
.partner-yoroll {width:82px;height:23px;filter:brightness(0) saturate(100%) invert(16%) sepia(18%) saturate(1292%) hue-rotate(100deg) brightness(93%) contrast(93%);}
.brand-title {border:0;padding:0;}.brand b {font-size:10px;letter-spacing:.5px;color:var(--muted);font-weight:550;}.brand small {display:none;}
.header-actions {display:flex;gap:4px;flex:none;margin:0;}
.header-actions .icon-button,.profile-button {height:33px;width:33px;min-width:33px;padding:7px;border:0;border-radius:50%;background:#f8fbf3a8;color:#4b6552;}
.header-actions .icon {height:19px;width:19px;}.profile-button span {display:none;}
.header nav {height:calc(var(--nav-height) + env(safe-area-inset-bottom));padding:7px 22px calc(7px + env(safe-area-inset-bottom));gap:18px;border:0;border-radius:28px 28px 0 0;background:#f8fcf5f5;box-shadow:0 -5px 22px #4a674609;backdrop-filter:blur(12px);}
.header nav button {gap:4px;border-radius:22px;padding:3px;font-size:11px;line-height:1.15;font-weight:650;letter-spacing:0;color:#798578;transition:background .15s;}
.header nav button .game-art {width:43px;height:34px;filter:none;}
.header nav button.active {color:var(--ink);background:#e1efd9;}.header nav button.active:after {display:none;}
button:focus-visible,select:focus-visible,input:focus-visible {outline:3px solid #587d55;outline-offset:3px;}
.page,.page:is(.intro,.playing,.result) {padding:4px 18px 13px;gap:12px;min-height:0;}
.btn {min-height:46px;padding:11px 16px;border-radius:14px;font-size:14px;font-weight:650;letter-spacing:.2px;}
.btn.gold {background:#688c66;color:#fff;border:1px solid #688c66;box-shadow:none;}
.btn.gold:hover {background:#587d58;box-shadow:none;}.btn.gold:active {transform:translateY(1px);}
.btn.outline {border-color:#d8e3d5;background:#f9fcf5;color:#45624a;box-shadow:none;}
.text-button {color:#52725a;letter-spacing:0;}.icon-button {border-color:#dbe5d7;color:#55705b;background:#f8fbf3;}
.eyebrow {color:var(--muted);font-size:9px;letter-spacing:1.5px;}.screen-caption,.control-note {color:var(--muted);}
.screen-heading {padding:5px 0 0;gap:10px;}.screen-heading .eyebrow {display:none;}
.screen-heading h1 {font-size:27px;line-height:1.3;font-weight:800;color:var(--ink);margin:0;letter-spacing:0;}
.screen-heading .icon-button {border:0;background:transparent;}

/* Home: larger portraits and a quiet, consistently aligned text column. */
.page.home {padding:0 12px 11px;gap:9px;}
.home .club-welcome {flex:0 0 clamp(122px,19dvh,177px);min-height:0;margin:-1px -12px 0;padding:5px 21px;border:0;border-radius:0;background:url('assets/game-ui/v2-home-court.webp') center/cover no-repeat;box-shadow:none;overflow:visible;}
.home .club-welcome:before,.home .club-welcome:after {display:none;}
.club-welcome>div {position:relative;max-width:58%;top:0;left:0;right:auto;text-align:left;}
.home .club-welcome h1 {font:850 34px/1.13 var(--font-ui);color:#0c3126;letter-spacing:-.8px;margin:2px 0 8px;max-width:none;transform:none;text-shadow:none;}
.home .club-welcome h1 br {display:block;}.home .club-welcome em {font-style:normal;color:inherit;}
.home .club-welcome p {font-size:11px;color:#6a7c70;line-height:1.55;margin:0;white-space:nowrap;}
.court-selection-label {height:27px;gap:7px;padding:0 8px;font-size:17px;font-weight:800;color:var(--ink);letter-spacing:0;}
.court-selection-label>span:last-child {font-size:10px;font-weight:500;letter-spacing:0;color:var(--muted);white-space:nowrap;}
.home .coach-menu {gap:8px;padding:0;}
.home .coach-entry {padding:0;border:0;border-radius:14px;background:var(--card-art) center top/cover no-repeat;box-shadow:none;overflow:visible;min-height:0;}
.home .coach-entry:after {display:none;}
.home .coach-entry-copy {position:absolute;left:14px;top:50%;transform:translateY(-50%);width:44%;display:flex;flex-direction:column;gap:4px;z-index:1;}
.home .coach-entry-copy h2 {font:800 22px/1.18 var(--font-ui);margin:0;color:#153a2d;letter-spacing:-.5px;white-space:nowrap;}
.home .coach-entry-copy h2 small {font:750 15px/1.2 var(--font-ui);letter-spacing:-.5px;}
.home .coach-entry-copy>b {font-size:16px;line-height:1.2;color:#173c2e;font-weight:550;}
.home .coach-entry-copy>span {font-size:11px;line-height:1.25;color:#718174;letter-spacing:0;}
.home .coach-entry-arrow {position:absolute;left:37%;top:22%;right:auto;bottom:auto;width:16px;height:16px;border:0;border-radius:0;background:none;box-shadow:none;color:#7c8b7f;transform:rotate(180deg);}
.home .coach-entry-arrow .icon {width:16px;height:16px;stroke-width:2.4;}
.home .coach-entry:nth-child(3) .coach-entry-arrow {display:none;}
.home .coach-entry:active {transform:scale(.99);}

/* Chapters: selection is separate from starting a training run. */
body[data-screen=chapters] .header {height:0;min-height:0;padding:0;}
body[data-screen=chapters] .header>.brand,body[data-screen=chapters] .header-actions {display:none;}
.page.chapters {padding-top:12px;gap:10px;}
.chapter-top {height:28px;display:flex;justify-content:space-between;align-items:center;flex:none;}
.chapter-top .text-button {font-size:15px;font-weight:650;gap:5px;}.chapter-top>span {font-size:10px;color:var(--muted);}
.chapters .chapter-summary {height:100px;flex:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0;border:0;background:none;border-radius:0;box-shadow:none;overflow:visible;}
.chapter-summary>div {min-width:0;flex:1;}.chapter-summary h1 {font-size:32px;font-weight:850;line-height:1.2;color:#103426;margin:0 0 8px;letter-spacing:-.7px;}
.chapter-summary h2 {font-size:16px;font-weight:650;color:#234634;margin:0 0 9px;}.chapter-summary p {font-size:11px;color:var(--muted);line-height:1.3;}
.chapter-summary>.coach-portrait {width:94px;height:98px;border-radius:17px;object-fit:cover;}
.chapter-progress {height:35px;display:flex;align-items:center;gap:14px;background:#fafcf5;border-radius:12px;padding:7px 10px;flex:none;}
.chapter-progress>span {font-size:11px;color:#597164;white-space:nowrap;}.chapter-progress b {color:var(--ink);font-weight:750;}
.chapter-progress progress {appearance:none;-webkit-appearance:none;width:100%;height:10px;flex:1;min-width:0;border:0;border-radius:20px;overflow:hidden;background:#e1e9e0;}
.chapter-progress progress::-webkit-progress-bar {background:#e1e9e0;}.chapter-progress progress::-webkit-progress-value {background:#6e9069;border-radius:20px;}.chapter-progress progress::-moz-progress-bar {background:#6e9069;border-radius:20px;}
.chapter-list-heading {height:27px;display:flex;align-items:center;gap:12px;flex:none;}.chapter-list-heading h2 {font-size:20px;font-weight:800;color:var(--ink);}.chapter-list-heading>span {font-size:11px;color:var(--muted);}
.chapter-list {flex:1;min-height:0;display:grid;grid-template-rows:repeat(5,minmax(0,1fr));gap:8px;padding:0;}
.chapter-list:before {display:none;}
.chapters .chapter-card {display:flex;align-items:center;gap:12px;min-height:0;margin:0;padding:7px 11px;border:1.5px solid transparent;border-radius:14px;background:#fafcf6;box-shadow:none;overflow:visible;}
.chapters .chapter-card.passed {background:#fafcf6;}.chapters .chapter-card.selected {background:#e2efda;border-color:#638b60;}
.chapters .chapter-number {width:43px;flex:0 0 43px;height:43px;display:grid;place-items:center;font:750 23px/1 var(--font-ui);color:#214b32;background:#e7f0e1;border-radius:10px;margin:0;letter-spacing:-1px;}
.chapters .selected .chapter-number {background:#648d60;color:white;}
.chapters .chapter-copy {flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;}
.chapters .chapter-copy>b {font-size:17px;line-height:1.15;font-weight:750;color:var(--ink);white-space:nowrap;}
.chapters .chapter-copy>span {font-size:11px;color:var(--muted);line-height:1.2;}
.chapters .chapter-score {min-width:44px;margin:0;display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:11px;color:#718273;}
.chapters .chapter-score small {font-size:9px;color:#738171;white-space:nowrap;}.chapters .selected .chapter-score {color:#204e31;}
.chapter-indicator {width:17px;flex:none;color:#89998b;}.chapter-indicator .icon {width:17px;height:17px;transform:rotate(180deg);}.passed .chapter-indicator .icon {transform:none;color:#648865;}.selected .chapter-indicator {color:#245238;}
.chapter-action {display:flex;flex-direction:column;gap:8px;flex:none;}.chapter-action .screen-caption {font-size:10px;letter-spacing:0;line-height:1.35;margin:0;}
.chapter-action .btn {width:100%;display:flex;justify-content:center;gap:15px;}

/* Rankings: one featured champion, quieter following positions, a separate personal rank. */
.page.board {gap:13px;padding-top:7px;}
.leaderboard-heading {flex:none;padding:0;}.leaderboard-heading h1 {font:850 36px/1.15 var(--font-ui);letter-spacing:-1px;color:#113628;margin:0 0 8px;}.leaderboard-heading p {font-size:12px;color:var(--muted);}
.board .leaderboard {background:none;border:0;border-radius:0;box-shadow:none;margin:0;overflow:visible;}
.board .board-filters {padding:0 0 10px;border:0;display:block;background:none;}
.board .segmented {padding:0;border:0;border-radius:12px;background:#e3ece0;display:grid;grid-template-columns:1fr 1fr;}
.board .segmented button {font-size:16px;min-height:39px;line-height:1.2;padding:8px;border-radius:12px;color:#65786a;font-weight:650;}
.board .segmented button.selected {background:#72936e;color:#fff;box-shadow:none;}
.board-selects {display:grid;grid-template-columns:1fr 1fr;gap:9px;flex:none;}.board-selects label {min-width:0;}
.board-selects select {width:100%;height:37px;min-height:37px;max-width:none;padding:5px 24px 5px 9px;font-size:12px;color:#284b35;border:1px solid #d7e3d5;border-radius:11px;background-color:#fbfdf7;}
.board .board-label {padding:11px 0 10px;text-align:left;font-size:10px;color:#819080;letter-spacing:0;}
.board .board-table {gap:9px;padding:0;display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;}
/* The card's contents set its minimum height, including safe-area WebViews. */
.board .board-row {position:relative;display:grid;grid-template-columns:49px minmax(0,1fr) 86px;gap:10px;flex:1 0 auto;padding:9px 12px;max-height:111px;min-height:min-content;border:1px solid transparent;border-radius:15px;background:#fbfdf8;box-shadow:none;}
.board .board-row.podium {background:#fbfdf8;border-color:transparent;}
.board .board-row.podium-1 {flex:1.4 0 auto;max-height:145px;grid-template-columns:67px minmax(0,1fr) 86px;gap:10px;border-color:#e6c975;background:#fffdf1;}
.board .rank {font:700 25px/1 var(--font-ui);color:#779079;text-align:center;letter-spacing:-1px;}
.board .rank-award {display:flex;align-items:center;justify-content:center;width:38px;height:49px;margin:0;}
.board .podium-1 .rank-award {width:58px;height:74px;}
.rank-award>.game-art {height:100%;width:100%;filter:none;}
.board .player-name {min-width:0;display:block;gap:0;color:#163c2b;}
.board .player-name>span {font-size:16px;line-height:1.25;display:block;min-width:0;}
.board .player-label {display:flex;align-items:center;min-width:0;gap:4px;}
.board .player-nickname {font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.board .rank-honor {display:table;margin:0 0 8px;padding:3px 7px;border:0;border-radius:6px;font-size:10px;font-weight:550;letter-spacing:0;line-height:1.2;background:#f5df9d;color:#79592c;}
.board .player-name time {font-size:10px;color:#798777;margin-top:7px;line-height:1.2;white-space:nowrap;}
.board .player-name small {font-size:8px;color:#426647;background:#e4eddc;border-radius:4px;padding:2px 4px;margin:0;flex:none;}
.board .board-row>strong {font:750 31px/1.1 var(--font-ui);letter-spacing:-1.5px;text-align:right;color:#163a29;white-space:nowrap;}
.board .board-row.podium-1>strong {font-size:38px;color:#103628;}
.board .board-row>strong small {display:inline;font:400 10px/1 var(--font-ui);margin-left:4px;color:#758373;letter-spacing:0;}
.board .board-row>strong.score-long,.board .board-row.podium-1>strong.score-long {font-size:27px;letter-spacing:-1.2px;}
.board .board-row>strong.score-long small {display:block;margin-top:5px;}
.board .board-row.me {box-shadow:inset 0 0 0 1px #8ba785;}
.board .pager {min-height:45px;padding:10px 0;gap:22px;border:0;background:none;}
.pager>span {font:600 12px var(--font-ui);color:#3f5f49;}.pager i {color:#8b9988;margin:0 4px;}
.pager .icon-button {min-width:30px;min-height:30px;width:30px;height:30px;border:0;border-radius:50%;background:#e4edde;box-shadow:none;}
.board .board-self {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;margin:4px 0 0;border:0;border-radius:14px;background:#f9fcf5;min-height:60px;flex:none;}
.board-self>div {display:flex;flex-direction:column;gap:5px;}.board-self b {font-size:15px;color:#284734;}.board-self span {font-size:11px;color:#7b8978;}
.board-self .text-button {min-height:33px;background:#e7f0df;border-radius:20px;padding:7px 11px;font-size:12px;gap:6px;white-space:nowrap;}
.empty-state {gap:0;padding:20px 12px;color:var(--muted);}.empty-state>.game-art {width:64px;height:70px;margin-bottom:18px;}.empty-state h2 {font-size:18px;font-weight:700;color:var(--ink);}.empty-state p {font-size:12px;color:var(--muted);margin:10px 0 15px;}.empty-state .btn {margin-top:6px;}

/* The same calm surfaces carry through training, results and the personal journal. */
.lesson-top {min-height:31px;color:var(--muted);font-size:10px;}.lesson-top .text-button {font-size:12px;}.lesson-top .icon-button {border:0;background:#f8fbf4;}
.lesson-intro {border:0;border-radius:20px;background:#f9fcf6;box-shadow:none;overflow:hidden;}
.intro-portrait {max-height:350px;border-radius:0;}
.intro-portrait>img {object-position:center top;}.intro-portrait:after {background:linear-gradient(0deg,#f9fcf6,transparent 54%);}
.portrait-place {color:#f7fcf1;text-shadow:0 1px 5px #192b22;font-size:9px;}.portrait-caption {bottom:12px;left:20px;}.portrait-caption>span {color:#56725a;font-size:10px;}.portrait-caption h2 {color:#163c2d;font-size:25px;font-weight:800;}
.intro-content {padding:16px 20px;background:#f9fcf6;}.intro-content>.eyebrow {font-size:9px;color:#7b8a79;letter-spacing:.8px;}
.intro-title h1 {font-size:29px;font-weight:800;letter-spacing:-.5px;color:#183f2e;}.intro-title>span {font-size:10px;color:#778675;}
.chapter-challenge {font-size:12px;color:#687e68;line-height:1.6;margin:5px 0;}
.instructions {margin:14px 0;}.instructions li {font-size:12px;color:#3d5845;line-height:1.7;gap:11px;}.instructions li span {color:#789374;font-weight:700;font-size:12px;}
.intro-content .btn {font-size:15px;min-height:47px;}.intro-content .control-note {font-size:9px;color:#849180;}
.game-panel {background:#f9fcf6;border:0;border-radius:18px;box-shadow:none;padding:12px;}
.game-heading {gap:8px;}.game-heading h1,.playing .game-heading h1 {font-size:24px;font-weight:800;letter-spacing:-.6px;margin:5px 0;color:#173d2b;}.game-heading .eyebrow {font-size:8px;color:#7e907b;letter-spacing:1px;}
.game-instruction {font-size:11px;color:#6c7e6c;line-height:1.6;margin-top:6px;}.coach-token .coach-portrait {width:41px;height:41px;border:0;border-radius:11px;box-shadow:none;object-position:center;}.coach-token span {color:#6a8168;font-size:8px;letter-spacing:0;}
.game-hud {color:#72856e;font-size:10px;}.live-score {font:750 23px var(--font-ui);color:#355e36;}.game-arena {border-color:#d9e4cf;border-radius:14px;}
.game-feedback {font-size:11px;color:#647c60;letter-spacing:0;}.game-controls .btn {border-radius:12px;}.piano-keys button {border-radius:8px;background:#f6faed;box-shadow:0 2px 0 #c8d9bb;border-color:#c7d8ba;}
.piano-keys button b {font-family:var(--font-ui);font-weight:700;}.piano-keys button small {color:#79916e;}
.result-panel {background:#f9fcf5;border:0;border-radius:22px;padding:20px 19px 12px;box-shadow:none;}
.result-panel>.eyebrow {font-size:9px;color:#83947c;letter-spacing:1.2px;}
.result-award {position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;margin:5px auto 16px;flex:none;}
.result-award>.game-art {width:70px;height:85px;}.result-award .grade-seal {width:auto;height:auto;padding:4px 12px;border:0;border-radius:20px;background:#e7f0dc;box-shadow:none;color:#53714c;font:700 12px/1.1 var(--font-ui);margin:0;text-shadow:none;}
.result-panel h1 {font-size:24px;font-weight:750;color:#234832;letter-spacing:-.4px;}.result-celebration>p {font-size:12px;color:#829077;}
.result-number {font:800 67px/1.1 var(--font-ui);letter-spacing:-3px;color:#254b2f;margin:14px 0;}.result-number>span {font:400 12px var(--font-ui);letter-spacing:0;color:#98a28e;}
.coach-endorsement {border-color:#e1e9d8;padding:13px 0;gap:11px;}.coach-endorsement .coach-portrait {width:44px;height:44px;border-radius:11px;object-position:center;}.coach-endorsement span {font-size:10px;color:#85917b;}.coach-endorsement b {font-size:11px;color:#486344;font-weight:500;}
.result-actions {margin-top:14px;gap:9px;}.result-actions .btn {font-size:14px;min-height:45px;}.result-actions .text-button {font-size:11px;color:#6b8561;}
.result-detail-link {background:#edf4e3;border:0;color:#55754f;border-radius:11px;}.result-panel .result-save {font-size:9px;color:#9aa38e;}
.detail .screen-heading h1 {font-size:25px;}.detail-back {font-size:12px;color:#6c8764;}
.drawing-review,.score-detail {border:0;background:#fafcf5;border-radius:18px;padding:16px;box-shadow:none;}
.drawing-review-heading {font-size:12px;color:#4b6c40;}.drawing-review-heading strong {font:750 25px var(--font-ui);color:#58794d;}.drawing-review>svg {background:#e9f0dd;border-radius:12px;}
.drawing-review-details {font-size:11px;color:#718368;}.drawing-review>p {font-size:10px;color:#8b9680;}.score-line b {font:700 20px var(--font-ui);color:#5d7c50;}.score-line small {color:#94a185;}.score-line i {background:#e1e9d5;}.score-line i:after {background:#82a073;}
.radar-grid {stroke:#d8e4d0;}.radar-value {stroke:#648861;fill:#8fac7928;stroke-width:2;}.radar text {fill:#788d6d;font:11px var(--font-ui);}
.profile-overview {border:0;border-radius:20px;background:#f9fcf6;padding:17px;gap:12px;box-shadow:none;}
.profile-owner {gap:10px;}.profile-owner>.game-art {width:36px;height:40px;flex:none;}.profile-owner>div {min-width:0;display:flex;flex-direction:column;gap:4px;}
.profile-owner>div>span {font-size:17px;font-weight:750;color:#2a4b33;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.profile-owner small {font-size:9px;color:#96a088;}
.profile-owner .text-button {font-size:10px;min-height:30px;color:#7b936b;}
.profile-total {display:flex;flex-direction:column;gap:4px;width:100%;padding:12px 0 0;text-align:center;flex:none;}.profile-total>span {font-size:11px;color:#93a182;}.profile-total strong {font-size:43px;line-height:1.1;font-weight:800;letter-spacing:-1.5px;color:#34552c;}.profile-total small {font-size:11px;font-weight:400;margin-left:6px;color:#9aaa88;letter-spacing:0;}
.profile-radar .radar {max-height:240px;}.profile-radar .text-button {font-size:11px;min-height:29px;}
.profile-stats {grid-template-columns:1fr 1fr;padding-top:12px;border-color:#e0e9d4;gap:12px;text-align:center;}
.profile-stats>div:first-child {grid-column:auto;}.profile-stats span {font-size:10px;color:#8d9c7e;}.profile-stats b {font:750 23px var(--font-ui);color:#547444;margin-top:6px;}.profile-stats b small {display:inline;font:400 10px var(--font-ui);margin-left:5px;color:#9ba788;}
.profile-links {gap:10px;}.profile-links button {min-height:70px;padding:10px;border:0;border-radius:15px;background:#f9fcf5;gap:10px;}.profile-links button>.game-art {width:30px;height:35px;flex:none;}.profile-links span {font-size:13px;color:#3f623b;font-weight:650;}.profile-links small {font-size:9px;color:#99a48a;font-weight:400;}.profile-links button>.icon:last-child {width:12px;color:#9aac89;}
.badge-card,.badge-card.unlocked {padding:9px 12px;border:1px solid transparent;border-radius:15px;background:#f9fcf5;gap:12px;}
.badge-card:not(.unlocked) {opacity:.68;}.badge-card .coach-portrait {width:54px;height:56px;border-radius:12px;flex:none;}.badge-card strong {font-size:17px;font-weight:750;color:#3b6039;}.badge-card span {font-size:10px;color:#889e78;}.badge-card>b {font:700 18px var(--font-ui);color:#678d56;}.badge-card>b small {font-size:9px;color:#98a986;}.badge-card>.icon:last-child {color:#99ad88;}
.history-panel {border:0;border-radius:18px;background:#f9fcf6;overflow:hidden;}.history-list {padding:0 15px;}.history-list>div {border-color:#e2e9d9;padding:10px 0;gap:10px;}.history-list>div>span {min-width:0;gap:10px;}
.history-list .coach-portrait,.history-list .game-art {width:38px;height:40px;border-radius:10px;flex:none;}.history-list b {font-size:13px;color:#3e6037;font-weight:650;}.history-list time {font-size:10px;color:#94a485;}.history-list strong {font:700 22px var(--font-ui);color:#60834c;white-space:nowrap;}.history-list strong small {font:400 10px var(--font-ui);color:#9bad8a;}.history-panel .pager {border-color:#e4ecd9;}
.modal {padding:27px;background:#f8fcf2;color:#335b31;border:1px solid #deead3;border-radius:22px;box-shadow:0 15px 80px #30482720;}
.modal::backdrop {background:#28452d40;backdrop-filter:blur(7px);}.modal .eyebrow {font-size:9px;color:#91a482;}.modal h2 {font-size:24px;font-weight:750;letter-spacing:-.5px;margin:12px 0;}.modal p {font-size:13px;color:#809274;line-height:1.8;}
.modal input {border:1px solid #d4e1c7;border-radius:11px;background:#fffef8;color:#3c6033;}.modal label {color:#799168;}.modal>.text-button {min-height:36px;margin-top:12px;font-size:12px;}
#toast {background:#eff6e4;color:#4c7140;border:1px solid #d3e2c0;border-radius:12px;box-shadow:0 7px 25px #4a69332a;font-size:12px;bottom:calc(var(--nav-height) + 12px + env(safe-area-inset-bottom));}
body:is([data-screen=intro],[data-screen=playing],[data-screen=result],[data-screen=detail]) #toast {bottom:calc(15px + env(safe-area-inset-bottom));}

/* Compact phones keep the same hierarchy, with less decorative space. */
@media(min-width:461px) { .home .club-welcome h1 {font-size:38px;}.home .coach-entry-copy h2 {font-size:24px;}.home .coach-entry-copy>b {font-size:17px;} }
@media(max-height:820px) {
 .page.board {gap:9px;}
 .leaderboard-heading h1 {font-size:30px;margin-bottom:5px;}.leaderboard-heading p {font-size:11px;}
 .board .board-label {padding-block:6px;line-height:1.3;}
 .board .pager {padding-block:5px;min-height:36px;}
 .board .board-self {min-height:53px;padding-block:8px;}
}
@media(max-height:740px) {
 :root {--nav-height:65px;}.header {height:52px;min-height:52px;padding-block:6px;}.header nav {padding-top:5px;padding-bottom:calc(5px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;}
 .header nav button {font-size:10px;gap:3px;}.header nav button .game-art {height:29px;width:36px;}
 .page,.page:is(.intro,.playing,.result) {gap:8px;padding-bottom:10px;}.page.home {gap:5px;}
 .home .club-welcome {flex-basis:clamp(92px,16dvh,121px);padding-top:3px;}.home .club-welcome h1 {font-size:27px;line-height:1.1;margin-bottom:5px;}.home .club-welcome p {font-size:9px;}
 .court-selection-label {font-size:15px;height:23px;padding-inline:4px;}.court-selection-label>span:last-child {font-size:9px;}.home .coach-menu {gap:6px;}.home .coach-entry {border-radius:11px;}
 .home .coach-entry-copy {left:12px;gap:3px;}.home .coach-entry-copy h2 {font-size:19px;}.home .coach-entry-copy h2 small {font-size:12px;}.home .coach-entry-copy>b {font-size:13px;}.home .coach-entry-copy>span {font-size:9px;}.home .coach-entry-arrow {width:12px;height:12px;}
 .page.chapters {gap:7px;}.chapter-top {height:24px;}.chapter-top .text-button {font-size:13px;}.chapter-top>span {font-size:9px;}.chapters .chapter-summary {height:80px;}.chapter-summary h1 {font-size:26px;margin-bottom:5px;}.chapter-summary h2 {font-size:14px;margin-bottom:6px;}.chapter-summary p {font-size:10px;}.chapter-summary>.coach-portrait {width:74px;height:76px;border-radius:14px;}
 .chapter-progress {height:29px;padding-block:5px;}.chapter-progress>span {font-size:10px;}.chapter-progress progress {height:8px;}.chapter-list-heading {height:23px;}.chapter-list-heading h2 {font-size:17px;}.chapter-list-heading>span {font-size:10px;}.chapter-list {gap:6px;}
 .chapters .chapter-card {gap:9px;padding:5px 9px;border-radius:11px;}.chapters .chapter-number {width:34px;flex-basis:34px;height:34px;border-radius:8px;font-size:19px;}.chapters .chapter-copy {gap:3px;}.chapters .chapter-copy>b {font-size:15px;}.chapters .chapter-copy>span {font-size:10px;}.chapters .chapter-score {font-size:10px;}.chapters .chapter-score small {font-size:8px;}.chapter-indicator,.chapter-indicator .icon {width:14px;}.chapter-action {gap:5px;}.chapter-action .screen-caption {font-size:9px;}.chapter-action .btn {min-height:41px;font-size:13px;padding:9px;}
 .page.board {gap:10px;}.leaderboard-heading h1 {font-size:29px;margin-bottom:5px;}.leaderboard-heading p {font-size:10px;}.board .board-filters {padding-bottom:7px;}.board .segmented button {font-size:14px;min-height:34px;padding:7px;}.board-selects select {height:32px;min-height:32px;font-size:11px;}.board .board-label {font-size:9px;padding:8px 0;}.board .board-table {gap:7px;}
 .board .board-row {grid-template-columns:36px minmax(0,1fr) 73px;max-height:89px;padding:7px 9px;gap:8px;border-radius:12px;}.board .board-row.podium-1 {grid-template-columns:51px minmax(0,1fr) 73px;max-height:111px;gap:8px;}.board .rank-award {width:30px;height:40px;}.board .podium-1 .rank-award {width:50px;height:65px;}.board .player-name>span {font-size:14px;}.board .player-name time {font-size:9px;margin-top:5px;}.board .rank-honor {font-size:9px;margin-bottom:5px;padding:2px 6px;}.board .board-row>strong {font-size:27px;}.board .board-row.podium-1>strong {font-size:32px;}.board .board-row>strong.score-long,.board .board-row.podium-1>strong.score-long {font-size:23px;}
 .board .pager {padding:7px 0;min-height:39px;}.board .board-self {padding:8px 11px;min-height:50px;margin-top:0;}.board-self b {font-size:13px;}.board-self span {font-size:10px;}.board-self .text-button {font-size:11px;}
 .screen-heading h1 {font-size:23px;}.lesson-top {min-height:28px;}.intro-content {padding:11px 15px;}.intro-title h1 {font-size:25px;}.intro-title>span {font-size:9px;}.chapter-challenge {font-size:10px;}.instructions {margin:8px 0 11px;}.instructions li {font-size:10px;margin:7px 0;}.intro-content .btn {min-height:42px;font-size:13px;}.intro-content .control-note {font-size:8px;}
 .game-heading h1,.playing .game-heading h1 {font-size:21px;}.game-instruction {font-size:10px;}.coach-token .coach-portrait {width:34px;height:34px;border-radius:9px;}.game-feedback {font-size:10px;}
 .result-panel {padding:15px 14px 10px;}.result-award {gap:4px;margin:3px auto 10px;}.result-award>.game-art {width:47px;height:54px;}.result-award .grade-seal {font-size:10px;padding:3px 9px;}.result-panel h1 {font-size:20px;}.result-celebration>p {font-size:10px;}.result-number {font-size:53px;margin:9px 0;}.result-actions {gap:7px;margin-top:10px;}.result-actions .btn {min-height:40px;font-size:12px;}.coach-endorsement {padding:9px 0;}.coach-endorsement .coach-portrait {width:35px;height:35px;}.result-panel .result-save {font-size:8px;}
 .profile-overview {padding:12px 14px;gap:8px;}.profile-owner>div>span {font-size:15px;}.profile-owner>.game-art {width:29px;height:32px;}.profile-total {padding-top:7px;gap:3px;}.profile-total strong {font-size:34px;}.profile-total>span {font-size:10px;}.profile-radar .text-button {font-size:10px;min-height:26px;}.profile-stats {padding-top:8px;}.profile-stats b {font-size:20px;margin-top:4px;}.profile-links button {min-height:60px;gap:8px;padding:9px;}.profile-links span {font-size:12px;}.profile-links small {font-size:8px;}.profile-links button>.game-art {width:25px;height:29px;}
 .badge-card {gap:10px;}.badge-card .coach-portrait {width:44px;height:46px;border-radius:10px;}.badge-card strong {font-size:14px;}.badge-card span {font-size:9px;}.badge-card>b {font-size:15px;}.history-list b {font-size:11px;}.history-list time {font-size:9px;}.history-list strong {font-size:19px;}.history-list .coach-portrait,.history-list .game-art {width:32px;height:34px;}
 .modal {padding:24px;}.modal h2 {font-size:21px;}.modal p {font-size:12px;}
}
@media(max-width:350px) {
 .header {padding-inline:12px;gap:6px;}.partner-pinkfish {font-size:15px;}.partner-yoroll {width:70px;height:20px;}.brand-partners {gap:6px;height:20px;}.brand b {font-size:9px;}.header-actions {gap:2px;}.header-actions .icon-button,.profile-button {width:29px;min-width:29px;height:29px;padding:6px;}
 .page,.page:is(.intro,.playing,.result) {padding-inline:11px;}.page.home {padding-inline:9px;}.home .club-welcome {margin-inline:-9px;padding-left:15px;}.home .club-welcome h1 {font-size:26px;}.home .club-welcome p {font-size:8px;}.court-selection-label {font-size:13px;padding-inline:2px;}.court-selection-label>span:last-child {font-size:8px;}
 .home .coach-entry-copy {left:10px;}.home .coach-entry-copy h2 {font-size:17px;}.home .coach-entry-copy h2 small {font-size:10px;}.home .coach-entry-copy>b {font-size:12px;}.home .coach-entry-copy>span {font-size:8px;}.home .coach-entry-arrow {left:35%;}
 .chapter-summary h1 {font-size:24px;}.chapter-summary h2 {font-size:12px;}.chapter-summary p {font-size:9px;}.chapter-summary>.coach-portrait {width:65px;height:72px;}.chapters .chapter-copy>b {font-size:14px;}.chapters .chapter-card {gap:7px;}.chapters .chapter-score {font-size:9px;}.chapter-top>span {font-size:8px;}
 .board .board-row {grid-template-columns:31px minmax(0,1fr) 63px;gap:7px;padding-inline:8px;}.board .board-row.podium-1 {grid-template-columns:44px minmax(0,1fr) 63px;gap:7px;}.board .podium-1 .rank-award {width:44px;height:59px;}.board .player-name>span {font-size:12px;}.board .rank-honor {font-size:8px;}.board .player-name time {font-size:8px;}.board .board-row>strong {font-size:24px;}.board .board-row.podium-1>strong {font-size:28px;}.board .board-row>strong.score-long,.board .board-row.podium-1>strong.score-long {font-size:21px;}.board-selects select {font-size:10px;}
 .intro-title h1 {font-size:23px;}.profile-links span {font-size:11px;}.profile-links button {gap:7px;}.badge-card strong {font-size:13px;}.badge-card span {font-size:8px;}.badge-card>b {font-size:14px;}
}
@media(prefers-reduced-motion:reduce) {button {transition:none!important;}}
@media(max-height:650px) {
 .page.chapters {padding-top:12px;}.chapters .chapter-summary {height:72px;}
 .board .rank-honor {margin-bottom:3px;padding:2px 5px;}.board .player-name time {margin-top:3px;}
 .board .pager {min-height:35px;padding:5px 0;}.board .board-self {min-height:45px;padding-block:6px;}
 .board .board-row {padding-block:5px;}.board .podium-1 .rank-award {height:55px;}
}
