/* PyJun presentation only. The copied typing, settings and progress code is unchanged. */
:root {
  --font-ui: "Inter", system-ui, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Cascadia Mono", monospace;
  --bg: #F5F2EC;
  --surface: #FBF9F5;
  --surface-2: #ECE8E1;
  --surface-3: #E2DDD4;
  --border: #DDD7CD;
  --border-2: #C9C2B6;
  --text: #18191C;
  --text-2: #5C5E66;
  --text-3: #6E7078;
  --accent: #A94A0A;
  --accent-2: #FF862B;
  --accent-soft: #FF862B1f;
  --danger: #c43d32;
  --danger-soft: #c43d3217;
  --success: #28775c;
  --warn: #ad650f;
  --hand-fill: #fffdf9;
  --hand-edge: #dfbfa5;
  --hand-crease: #725b4e26;
  --shadow-sm: 0 2px 4px #8250250b;
  --shadow: 0 4px 6px #82502506, 0 16px 34px -20px #82502530;
  --shadow-lg: 0 30px 70px -28px #82502555;
  --glow-1: #ffad5620;
  --glow-2: #f466250c;
}

/* Retain the app's system preference and explicit light/dark switch. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131417;
    --surface: #1C1E22;
    --surface-2: #25272C;
    --surface-3: #2F3238;
    --border: #3A3D44;
    --border-2: #4A4E57;
    --text: #ECE8E1;
    --text-2: #A2A4AD;
    --text-3: #8A8D97;
    --accent: #FF862B;
    --accent-2: #FF9D50;
    --accent-soft: #FF862B26;
    --danger: #ff9586;
    --danger-soft: #ff95861f;
    --success: #85d5a8;
    --warn: #ffd08b;
    --hand-fill: #3b2a1f;
    --hand-edge: #946f50;
    --hand-crease: #fff2e526;
    --shadow-sm: 0 2px 4px #0003;
    --shadow: 0 4px 8px #0002, 0 16px 34px -20px #0008;
    --shadow-lg: 0 30px 70px -28px #000b;
    --glow-1: #ffab6710;
    --glow-2: #ffd08b08;
  }
}
:root[data-theme="dark"] {
  --bg: #131417;
  --surface: #1C1E22;
  --surface-2: #25272C;
  --surface-3: #2F3238;
  --border: #3A3D44;
  --border-2: #4A4E57;
  --text: #ECE8E1;
  --text-2: #A2A4AD;
  --text-3: #8A8D97;
  --accent: #FF862B;
  --accent-2: #FF9D50;
  --accent-soft: #FF862B26;
  --danger: #ff9586;
  --danger-soft: #ff95861f;
  --success: #85d5a8;
  --warn: #ffd08b;
  --hand-fill: #3b2a1f;
  --hand-edge: #946f50;
  --hand-crease: #fff2e526;
  --shadow-sm: 0 2px 4px #0003;
  --shadow: 0 4px 8px #0002, 0 16px 34px -20px #0008;
  --shadow-lg: 0 30px 70px -28px #000b;
  --glow-1: #ffab6710;
  --glow-2: #ffd08b08;
}

body { font-size: 16px; min-height: 0; }
#view { flex: none; }
.btn.primary { background: #FF862B; color: #131417; }
.btn.primary:hover { background: #FF9D50; filter: none; }
.brand-mark { background: #FF862B; color: #131417; }
.lc-badge, .lc-last, .lc-scheme, .lc-stats dt, .lc-stats small { font-size: 13px; }
.panel-head p, .tip p, .chart-empty, .empty p { font-size: 15px; line-height: 1.7; }
.footer { line-height: 1.7; }
.mini-row { min-width: 0; gap: clamp(2px, 1vw, 6px); }
.mini-key { flex: 1; min-width: 0; width: auto; max-width: 36px; height: auto; aspect-ratio: 1; }
.mini-gap { flex: none; width: 8px; }

@media (max-width: 560px) {
  .topbar { height: auto; min-height: 64px; flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .brand-name { display: inline; font-size: 18px; }
  .top-actions { margin-left: auto; gap: 8px; }
  .nav { order: 3; flex: 1 0 100%; justify-content: center; margin: 0; gap: 4px; }
  .nav a, .nav a[data-nav="tips"] { display: block; min-height: 44px; padding: 11px 14px; font-size: 14px; }
  .top-actions .icon-btn { width: 42px; height: 42px; }
  .seg button { min-height: 36px; font-size: 13px; }
  .layout-card { padding: 20px 18px; }
  .hero { gap: 26px; padding-top: 8px; }
  .hero h1 { font-size: clamp(32px, 8.7vw, 46px); line-height: 1.12; }
  .lead { font-size: 16px; line-height: 1.7; }
  .hero-points { gap: 8px; }
  .hero-points li { font-size: 13px; padding: 8px 10px; }
  .lc-go, .res-actions .btn { min-height: 46px; }
  .wk-progress { position: absolute; top: 126px; }
  .wk-tools { gap: 8px; }
  .tool { min-height: 40px; }
  .panel { padding: 20px 16px; }
  .tip-grid { grid-template-columns: 1fr; }
  .footer { padding: 20px 14px; }
}

/* PyJun 2026 type. */
h1, h2, h3 { font-family: "Archivo", "Inter Tight", var(--font-ui); letter-spacing: -0.02em; }

/* Dialogs, toasts and the workout bar follow the visible part of the tall game frame. */
.modal { top: var(--pyjun-view-top, 0px); bottom: auto; height: var(--pyjun-view-height, 100%); }
.modal-card { max-height: calc(var(--pyjun-view-height, 100vh) - 40px); }
#toasts { bottom: auto; top: calc(var(--pyjun-view-top, 0px) + var(--pyjun-view-height, 100vh) - 22px); transform: translate(-50%, -100%); }
.wk-progress { top: max(64px, var(--pyjun-view-top, 0px)); }
