/* Shared reading and touch sizes. Load after each page's own stylesheet.
   Keep game artwork, canvas coordinates and duck image transforms untouched. */
:root { font-size: 20px; --muted: #586052; --v-muted: #53614c; }
body { font-size: 20px; line-height: 1.5; }
body :where(p, label, input, textarea, select, summary, dt, dd, figcaption) { font-size: 18px; line-height: 1.55; }
body :where(button, .button, .primary-button, .v-action-button, .v-secondary-button, .play-button) { font-size: 18px !important; min-height: 48px; line-height: 1.35; }
body :where(small, .eyebrow, .v-eyebrow, .fruit-eyebrow, .field-help, .fine-print, .muted, .optional, .status, .status-badge) { font-size: 16px; line-height: 1.5; letter-spacing: normal; }
body :where(h1) { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.12; }
body :where(h2) { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
body :where(h3) { font-size: 26px; line-height: 1.25; }
body :where(input:not([type='checkbox']):not([type='radio']), select) { min-height: 48px; }
body :where(a, button, input, textarea, select) { overflow-wrap: anywhere; }
body :where(a, button, summary) { -webkit-tap-highlight-color: transparent; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
details > summary { min-height: 48px; }
[hidden] { display: none !important; }

/* Public pages and Taskmaster administration. Tables keep their own scroll area. */
.public-header, .admin-header { flex-wrap: wrap; gap: 16px; }
.public-nav, .admin-nav { flex-wrap: wrap; gap: 10px 20px; }
.public-nav a, .admin-nav a, .admin-brand, .brand, .back-link { font-size: 18px; }
.public-nav a, .admin-nav a { display: inline-flex; align-items: center; min-height: 48px; }
.public-main, .admin-main, .secret-card, .admin-panel, .form-panel { min-width: 0; }
.page-heading { flex-wrap: wrap; gap: 16px; }
.page-heading h1, .secret-card h1, .leaderboard h1 { font-size: clamp(36px, 5vw, 56px); }
.lead, .unlocked-copy, .form-copy, .task-copy { font-size: 20px; line-height: 1.55; }
.field-help, .fine-print, .public-footer, .leaderboard-status, .leaderboard-note { font-size: 16px; color: #51584e; }
.admin-shell :where(p, label, td, input, textarea, select) { font-size: 18px; }
.admin-shell :where(th, small, .field-help, .muted, .status) { font-size: 16px; }
.table-wrap { max-width: 100%; overflow-x: auto; }
.table-wrap table { min-width: 650px; }
.code-form input { font-size: 24px; }
.home-emblem { display: none; }
.home-card { padding: 34px; }
.home-card h1 { max-width: none; margin-bottom: 20px; }
.home-card .lead { margin-bottom: 24px; }
.home-page .public-main { padding-top: 32px; }
.leaderboard-note { max-width: 70ch; }
.leaderboard-table :where(th, td) { font-size: 18px; }
.challenge-ideas { font-size: 18px; }
.ideas-label, .ideas-set { font-size: 18px; }

/* Pineapple Pen Panic: enlarge all HTML text; canvas physics stay unchanged. */
.fruit-shell { max-width: 1320px; }
.fruit-topbar { flex-wrap: wrap; gap: 18px; }
.fruit-brand { font-size: 18px; letter-spacing: normal; }
.fruit-brand small, .fruit-player small { font-size: 16px; letter-spacing: normal; color: #535f4b; }
.fruit-player { max-width: 48%; }
.fruit-player strong { font-size: 22px; line-height: 1.25; }
.fruit-player small::after { content: none; }
.fruit-heading { padding: 24px 0; }
.fruit-heading h1 { font-size: clamp(38px, 4.5vw, 56px); letter-spacing: -.035em; }
.fruit-intro p, .flight-card p, .flight-plan > p, .how-to-card > p, .scoring-note { font-size: 18px; color: #4b5c48; }
.fruit-game-nav a { font-size: 18px; min-height: 48px; }
.flight-toolbar { flex-wrap: wrap; gap: 8px; width: 100%; }
.flight-status { font-size: 16px; letter-spacing: normal; color: #435b46; }
.flight-tools { margin-left: auto; gap: 6px; }
.tool-button, .tool-button span { font-size: 18px !important; color: #314b3a; }
.tool-button { min-height: 48px; min-width: 48px; padding: 10px; }
.flight-overlay { padding: 16px; overflow-y: auto; align-items: center; }
.flight-card { width: min(350px, 100%); margin-top: 60px; padding: 20px; }
.flight-card h2, .flight-card .pilot-card-name { font-size: 30px; line-height: 1.12; }
.flight-card .pilot-card-name.is-long-name { font-size: 26px; }
.card-sticker, .card-fine-print { font-size: 16px; line-height: 1.4; color: #4f5d43; letter-spacing: normal; }
.play-button { min-height: 52px; font-size: 20px !important; }
.flight-tip { font-size: 16px; letter-spacing: normal; bottom: 20px; }
.flight-progress-copy, .flight-progress-copy strong, .flight-caption { font-size: 16px; letter-spacing: normal; color: #4c5d49; }
.fruit-sidebar { gap: 22px; }
.sidebar-eyebrow { font-size: 16px; color: #4e5d43; letter-spacing: normal; }
.best-score > span:not(.best-star), .best-card p, .total-score { font-size: 18px; color: #4d5f43; letter-spacing: normal; }
.sidebar-heading h2 { font-size: 28px; }
.level-list { margin-top: 8px; }
.level-copy { min-width: 0; }
.level-copy strong { font-size: 18px; }
.level-copy small, .level-number, .level-points small { font-size: 16px; color: #55634a; }
.level-points { font-size: 24px; flex-wrap: wrap; }
.level-number { width: 36px; height: 36px; flex-basis: 36px; }
.how-to-row, .keycap, .how-to-card p, .ppap-original-link { font-size: 18px; color: #40543d; }
.how-to-row { flex-wrap: wrap; }
.fruit-footer, .fruit-footer a, .save-status, .result-points > span { font-size: 16px; letter-spacing: normal; color: #485d41; }
.retry-save { font-size: 18px !important; }
.result-card { margin-top: 50px; }
.result-card .result-medal { display: none; }
.result-card h2 { font-size: 28px; }

/* Is It Cake? Keep every clue and recipe seal visible and readable. */
.kitchen-brand { font-size: 18px; letter-spacing: normal; }
.kitchen-header { flex-wrap: wrap; gap: 18px; padding: 18px 0; }
.kitchen-game-nav a, .team-tag strong { font-size: 18px; min-height: 48px; }
.team-tag span, .score-ticket > span { font-size: 16px; letter-spacing: normal; }
.game-heading h1 { font-size: clamp(36px, 5vw, 56px); }
.game-subtitle, .task-envelope > p:not(.eyebrow), .task-instruction { font-size: 20px; line-height: 1.55; }
.scene-label, .counter-label, .scene-bottom, .file-heading, .object-status { font-size: 16px; letter-spacing: normal; }
.scene-label, .counter-label, .scene-bottom { flex-wrap: wrap; }
.task-envelope { transform: none; }
.task-envelope h2, .inspection h2 { font-size: 28px; }
.task-envelope .eyebrow { font-size: 16px; letter-spacing: normal; }
.wall-sign, .title-star { display: none; }
.room-progress li { font-size: 18px; }
.room-progress li small { font-size: 16px; }
.evidence-object { min-height: 116px; }
.object-name, .object-description, .clue-lines p, .lock-form label, .answer-feedback, .hint-list { font-size: 18px; line-height: 1.55; }
.object-status { padding-left: 0; margin-top: 0; color: #4c5c43; }
.answer-controls input, .answer-controls input::placeholder { font-size: 18px; }
.hint-heading, .hint-button { font-size: 18px; }
.hint-note, .inventory-heading p, .recipe-seal span, .recipe-seal small, .autosave, .kitchen-footer { font-size: 16px; color: #506047; letter-spacing: normal; }
.recipe-seal { min-width: 96px; }
.inventory { align-items: flex-start; }
.inventory-heading { flex-basis: 210px; }
.finish-score span { max-width: 190px; font-size: 18px; letter-spacing: normal; }

/* Slice of Suspicion: text sizes only; puzzle artwork keeps its coordinates. */
.v-brand { font-size: 18px; letter-spacing: normal; }
.v-topbar { flex-wrap: wrap; gap: 18px; padding: 18px 0; }
.v-game-nav a, .v-team strong { font-size: 18px; min-height: 48px; }
.v-team small, .v-team span, .v-score > small { font-size: 16px; letter-spacing: normal; }
.v-title h1 { font-size: clamp(36px, 5vw, 56px); }
.v-title p:not(.v-eyebrow) { font-size: 18px; }
.v-progress li { font-size: 18px; }
.v-progress li small { font-size: 16px; }
.v-stage-header, .v-difficulty, .v-room-caption, .v-maze-caption, .v-small-label, .v-little-rule { font-size: 16px; letter-spacing: normal; }
.v-stage-header, .v-room-caption, .v-maze-caption { flex-wrap: wrap; }
.v-task h2 { font-size: 30px; }
.v-task p:not(.v-eyebrow), .v-clue-panel p, .v-notebook p, .v-hints, .v-feedback, .v-photo-note, .v-photo-caption, .v-observation-note { font-size: 18px; line-height: 1.55; }
.v-prop .v-prop-label, .v-slice > span, .v-piece > span, .v-token > span, .v-stamp > span { font-size: 18px; }
#cake-visual-app .v-prop .v-prop-label { font-size: 18px; }
.v-prop .v-prop-label small, .v-piece small, .v-token small, .v-status, .v-footer { font-size: 16px; }
.v-notebook h2 { font-size: 28px; }
.v-notebook h3 { font-size: 26px; }
.v-controls { flex-wrap: wrap; }
.v-notebook .v-action-button { width: auto; max-width: 100%; }
.v-stage-note { font-size: 18px; }
.v-final-slots .v-lock-slot > span { font-size: 16px; }
.v-pipe-status { flex-wrap: wrap; gap: 8px; font-size: 18px; }
.v-finish-score > span { font-size: 18px; letter-spacing: normal; }

@media (max-width: 1050px) {
  .fruit-layout { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 24px; }
  .investigation-grid, .v-play-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  body { font-size: 20px; }
  .public-header, .admin-header { padding: 16px; }
  .admin-nav { flex-basis: 100%; }
  .public-main, .admin-main { padding-left: 12px; padding-right: 12px; }
  .secret-card, .admin-panel { padding: 22px 18px; }
  .home-card { padding: 26px 20px; }
  .home-page .public-main { padding-top: 16px; }
  .leaderboard-heading, .page-heading, .panel-heading { align-items: flex-start; flex-direction: column; }
  .leaderboard { padding-left: 12px; padding-right: 12px; }
  .form-grid, .settings-grid, .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .inline-form, .form-row, .actions { flex-wrap: wrap; }
  .fruit-shell { width: 100%; max-width: 620px; padding: 0 14px; }
  .fruit-topbar { gap: 12px; }
  .fruit-player { max-width: 100%; padding: 8px 12px; }
  .fruit-player strong { font-size: 20px; }
  .fruit-game-nav { margin-left: auto; }
  .fruit-layout { display: flex; flex-direction: column; gap: 24px; }
  .flight-section, .fruit-sidebar { width: 100%; }
  .flight-toolbar { justify-content: flex-start; }
  .flight-tools { margin-left: auto; }
  .flight-status { max-width: 100%; }
  .flight-card { width: min(320px, 100%); padding: 18px; margin-top: 38px; }
  .flight-card h2, .flight-card .pilot-card-name { font-size: 28px; }
  .flight-card p { margin-bottom: 14px; line-height: 1.4; }
  .card-fine-print { margin-top: 10px; }
  .flight-overlay { padding: 12px; }
  .flight-tip { bottom: 12px; font-size: 16px; }
  .result-card { margin-top: 38px; }
  .result-card .result-points { margin: 6px 0; }
  .result-card .result-points strong { font-size: 40px; }
  .result-card h2 { margin: 8px 0; }
  .result-card .save-status { padding: 5px 0 10px; }
  .fruit-footer { flex-wrap: wrap; }
  .kitchen-shell, .v-shell { padding-left: 12px; padding-right: 12px; }
  .kitchen-header, .v-topbar { gap: 12px; }
  .team-tag, .v-team { max-width: 100%; padding-left: 0; border: 0; margin-left: auto; }
  .kitchen-game-nav, .v-game-nav { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  .game-heading, .v-title { flex-wrap: wrap; gap: 16px; padding: 22px 0; }
  .game-heading > div:first-child, .v-title > div:first-child { width: 100%; }
  .score-ticket, .v-score { min-width: 0; flex-basis: auto; transform: none; display: flex; align-items: center; gap: 12px; padding: 9px 14px; text-align: left; }
  .score-ticket > strong, .v-score > strong { margin: 0; font-size: 32px; }
  .score-ticket > span:last-child, .v-score > small:last-child { display: none; }
  .room-progress, .v-progress { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .room-progress li, .v-progress li { padding: 10px 2px; font-size: 16px; }
  .room-progress li small, .v-progress li small { display: none; }
  .step-number, .v-progress li > span:first-child { width: 30px; height: 30px; flex-basis: 30px; font-size: 18px; }
  .scene-wall { padding: 20px 14px; }
  .task-envelope { padding: 22px 18px; min-height: 0; }
  .task-envelope h2 { font-size: 28px; }
  .countertop { padding: 16px 12px; }
  .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .evidence-object { align-items: flex-start; flex-direction: column; gap: 8px; }
  .object-name { min-width: 0; }
  .answer-controls { flex-wrap: wrap; }
  .answer-controls input, .answer-controls button { width: 100%; }
  .inventory { flex-direction: column; gap: 15px; }
  .inventory-heading { flex-basis: auto; }
  .scene-label > span:last-child { display: none; }
  .v-stage-header > span:last-child { display: none; }
  .v-scene { padding: 14px 10px; }
  .v-prop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-task { padding: 20px 16px; }
  .v-task h2 { font-size: 28px; }
  .v-notebook > .v-clue-panel { padding: 20px 16px; }
  .v-notebook .v-clue-panel { display: block; }
  .v-photo-views { gap: 10px; }
  .v-photo-window { padding-left: 6px; padding-right: 6px; }
  .v-photo-window .v-small-label { font-size: 16px; }
  .v-piece-tray, .v-token-tray { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-kind-finale .v-ring-workspace + .v-token-tray { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-notebook .v-stamp { flex-basis: calc(50% - 4px); }
}
