/* ==========================================================================
   Themes: a quiz picks one with "theme", the page renders it as data-theme.
   Loaded after style.css. `default` has no block here: it is the :root
   values in style.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   moderni-laska: Markéta's brand. Misty Rose phones and host, gradient projector
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'General Sans';
  src: url('themes/moderni-laska/fonts/GeneralSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('themes/moderni-laska/fonts/GeneralSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('themes/moderni-laska/fonts/GeneralSans-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('themes/moderni-laska/fonts/GeneralSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('themes/moderni-laska/fonts/newsreader-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  src: url('themes/moderni-laska/fonts/newsreader-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  src: url('themes/moderni-laska/fonts/newsreader-latin-ext-600-italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  src: url('themes/moderni-laska/fonts/newsreader-latin-600-italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

[data-theme="moderni-laska"] {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --bg: #ffecde;
  --fg: #58151d;
  --accent: #58151d;
  --muted: #a84941;
  --correct: #58151d;
  --wrong: #a84941;
  --on-accent: #ffecde;
  --on-correct: #ffecde;

  /* Dark to light, so the four still differ without telling hue apart.
     Misty Rose stays filled on the phone too: its dark outline shows it there. */
  --answer-red: #58151d;
  --answer-blue: #a84941;
  --answer-yellow: #be9988;
  --answer-green: #ffecde;
  --on-answer-yellow: #58151d;
  --on-answer-green: #58151d;

  --border-color: transparent;
  --border-width: 2px;
  --outline-color: #58151d;
  --shadow: none;
  --shadow-sm: none;
  --radius: 14px;
  --button-radius: 999px;
  --card-bg: transparent;
  --input-bg: transparent;
  --track: #ecd3c4; /* Cashmere Clay at 30% on Misty Rose */
  --overlay-bg: #ffecde; /* opaque: cards are transparent here, the screen below would show */
  --heading-color: #58151d;
  --card-header-bg: transparent;
  --card-header-fg: #58151d;

  --timer-warning: #c6553e;
  --timer-danger: #a84941;

  --rank-1: #58151d;
  --rank-2: #a84941;
  --rank-3: #a84941;

  --room-bar: #58151d;
  --reference-bar: #c6553e;

  --font-sans: 'General Sans', system-ui, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: var(--font-sans);
  --weight-heading: 400;
  --weight-strong: 600;

  --projector-bg: #58151d;
  --projector-fg: #ffecde;
  --projector-muted: #d9a993;
  --projector-rule: #be9988;
  --projector-surface: rgba(88, 21, 29, 0.55);
  --projector-overlay: rgba(88, 21, 29, 0.95);
  --projector-accent: #ffecde;
  --projector-halo: #58151d;
  --bar: #ffecde;
  --reference-line: #c6553e;
  --reference-label: #ffecde;
  --projector-rank-1: #ffecde;
  --projector-rank-2: #d9a993;
  --projector-rank-3: #d9a993;
  --projector-rank-1-bg: rgba(88, 21, 29, 0.75);
  --projector-rank-2-bg: var(--projector-surface);
  --projector-rank-3-bg: var(--projector-surface);
  --guess-close-bg: #be9988;
  --guess-close-border: #be9988;
}

/* Dark Red and Terracotta disappear on the gradient */
[data-theme="moderni-laska"] .projector-screen {
  --correct: #ffecde;
  --on-correct: #58151d;
  --wrong: #ffecde;
  --timer-warning: #d9a993;
  --timer-danger: #ffecde;
  background: var(--projector-bg) url('themes/moderni-laska/pozadi_gradient_1920.jpg') center / cover no-repeat;
}

[data-theme="moderni-laska"] body,
[data-theme="moderni-laska"] button,
[data-theme="moderni-laska"] input {
  font-variant-numeric: tabular-nums;
}

/* Newsreader has tabular figures and General Sans doesn't: a countdown in
   General Sans would shift sideways every second. */
[data-theme="moderni-laska"] .timer,
[data-theme="moderni-laska"] .timer-giant {
  font-family: var(--font-serif);
  font-weight: 400;
}

/* The accent cut, kept to the two screens that open and close the evening */
[data-theme="moderni-laska"] .projector-title,
[data-theme="moderni-laska"] .thanks-message {
  font-style: italic;
  font-weight: 600;
}

/* Without offset shadows, pressing and focusing can't be shown by moving */
[data-theme="moderni-laska"] .btn:hover,
[data-theme="moderni-laska"] .btn:active {
  transform: none;
  filter: brightness(1.2);
}

[data-theme="moderni-laska"] .btn:disabled,
[data-theme="moderni-laska"] .btn-outline:hover {
  filter: none;
}

[data-theme="moderni-laska"] .input,
[data-theme="moderni-laska"] input,
[data-theme="moderni-laska"] textarea,
[data-theme="moderni-laska"] select {
  border-color: #a84941;
}

[data-theme="moderni-laska"] .input:focus,
[data-theme="moderni-laska"] input:focus,
[data-theme="moderni-laska"] textarea:focus,
[data-theme="moderni-laska"] select:focus {
  transform: none;
  border-color: #58151d;
}

/* The fourth option needs its edge on the phone; the first needs one on the
   projector, where it would otherwise melt into the dark side of the gradient */
[data-theme="moderni-laska"] .btn-green {
  border-color: #58151d;
}

[data-theme="moderni-laska"] .answer-option-large.bg-red {
  border-color: #d9a993;
}

/* A skip that looks like a fifth option would invite the wrong tap */
[data-theme="moderni-laska"] .btn-skip {
  background-color: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Track and bar need no border around them here */
[data-theme="moderni-laska"] .progress,
[data-theme="moderni-laska"] .ref-track,
[data-theme="moderni-laska"] .cmp-track,
[data-theme="moderni-laska"] .distribution-bar-container {
  border: 0;
}

[data-theme="moderni-laska"] .ref-track {
  height: 0.75rem;
}

[data-theme="moderni-laska"] .cmp-track {
  border-radius: 4px;
}

[data-theme="moderni-laska"] .hist-bar {
  border-radius: 4px 4px 0 0;
}

/* The gradient reaches Cinnamon at the bottom right, too bright for small
   labels and for the marker: charts and notes sit on a dark surface */
[data-theme="moderni-laska"] .ref-reveal,
[data-theme="moderni-laska"] .context-large {
  padding: clamp(0.5rem, 2vh, 1.5rem) clamp(1rem, 2vw, 2rem);
  background: var(--projector-surface);
  border-radius: var(--radius);
}

/* Prompts stand on the bare gradient, where the label colour is too faint */
[data-theme="moderni-laska"] .projector-subtitle {
  color: var(--fg);
}

[data-theme="moderni-laska"] .hist-bar-count {
  border-radius: 4px;
}

/* Cinnamon is close to the gradient, so the marker carries width as well */
[data-theme="moderni-laska"] .hist-ref,
[data-theme="moderni-laska"] .cmp-marker {
  width: 6px;
  margin-left: -3px;
}

/* Read at arm's length, in a serif that runs small */
[data-theme="moderni-laska"] .question-text {
  font-size: 1.75rem;
  line-height: 1.25;
}

/* The Czech labels and the room title are longer than the English ones */
[data-theme="moderni-laska"] .screen-header {
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* A white QR block needs its own quiet zone on the dark page */
[data-theme="moderni-laska"] .qr-code-large {
  padding: clamp(17px, 4.2vh, 40px);
  border-radius: var(--radius);
}

[data-theme="moderni-laska"] .qr-corner-block {
  border-radius: var(--radius);
}
