/* Layout: a bright classroom page; the hero «My class» register on a phone is the signature, everything else stays quiet. */
:root {
  --bg: #f6f5f8;
  --surface: #ffffff;
  --tint: #efecf4;
  --ink: #1d1426;
  --muted: #5f5670;
  --line: #ddd7e5;
  --accent: #b42a64;
  --accent-ink: #ffffff;
  --accent-soft: #f6dce8;
  --gold: #d6950f;
  --gold-soft: #fbefcf;
  --danger: #b4352a;
  --ok: #1f8a5b;
  --ok-soft: #d8f0e4;
  --band-bg: #1d1426;
  --band-fg: #f4eff8;
  --shadow: 0 1px 2px rgba(29, 20, 38, .06), 0 14px 34px -16px rgba(29, 20, 38, .24);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.7rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120c18; --surface: #1b1422; --tint: #160f1d; --ink: #f1ecf6; --muted: #b0a6bd; --line: #2f2638;
    --accent: #f07aa8; --accent-ink: #2a0716; --accent-soft: #3a1528; --gold: #f2c04f; --gold-soft: #3a2c0c; --danger: #f08070;
    --ok: #56d39b; --ok-soft: #133526; --band-bg: #241a2e; --band-fg: #f1ecf6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #120c18; --surface: #1b1422; --tint: #160f1d; --ink: #f1ecf6; --muted: #b0a6bd; --line: #2f2638;
  --accent: #f07aa8; --accent-ink: #2a0716; --accent-soft: #3a1528; --gold: #f2c04f; --gold-soft: #3a2c0c; --danger: #f08070;
  --ok: #56d39b; --ok-soft: #133526; --band-bg: #241a2e; --band-fg: #f1ecf6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
h1, h2 { font-weight: 700; letter-spacing: -.02em; }
.logo-word { font-family: var(--font-display); letter-spacing: -.01em; }

/* Classia only: the logo (an open book), the hero register and the level card. */
.logo-mark { width: 26px; height: 22px; position: relative; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12px; border-radius: 3px 3px 6px 6px; }
.logo-mark::before { left: 0; background: var(--accent); transform: skewY(8deg); }
.logo-mark::after { right: 0; background: var(--gold); transform: skewY(-8deg); }

.roll { margin: 0; display: grid; gap: 14px; justify-items: center; min-width: 0; }
.roll-phone {
  width: min(100%, 360px); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
  padding: 18px 16px 16px; display: grid; gap: 10px; position: relative;
}
.roll-phone::before { content: ""; justify-self: center; width: 64px; height: 5px; border-radius: 999px; background: var(--line); margin-bottom: 4px; }
.roll-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.roll-label { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.roll-example { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.roll-group { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.roll-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.roll-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; background: var(--tint); }
.roll-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ok-soft); border: 2px solid var(--ok); }
.roll-name { font-weight: 600; font-size: .9rem; }
.roll-status { font-size: .74rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ink); text-align: right; }
.roll-row[data-status="late"] .roll-avatar { background: var(--gold-soft); border-color: var(--gold); }
.roll-row[data-status="late"] .roll-status { background: var(--gold-soft); }
.roll-row[data-status="absent"] .roll-avatar { background: var(--accent-soft); border-color: var(--accent); }
.roll-row[data-status="absent"] .roll-status { background: var(--accent-soft); }
.roll-log { font-size: .8rem; color: var(--muted); padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line); }
.roll-done { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .9rem; }
.roll-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.roll-chips li { font-size: .78rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.roll-chips li:first-child { background: var(--ok-soft); border-color: transparent; }
@media (max-width: 400px) { .roll-row { grid-template-columns: 24px 1fr; } .roll-status { grid-column: 2; justify-self: start; } .roll-avatar { width: 24px; height: 24px; } }

.level-card { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.level-badge { padding: 4px 10px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.level-next { color: var(--muted); }
.level-bar { height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.level-bar span { display: block; height: 100%; width: calc(var(--progress) * 100%); background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: inherit; }
