/* =====================================================================
   assets/classic-skin.css — THE CLASSIC LOOK FOR THE OLDER PAGES (6 Nov 2026)
   =====================================================================
   WHAT THIS FILE IS (for a beginner)
   Sharifjon (6 Nov 2026): "There shouldn't be any page that doesn't show the
   Classic look." Many older pages (band calculator, tips, typing, writing
   tools, the Reading Room …) were built with Tailwind classes and their own
   colours. Rewriting each one would take weeks, so this ONE file re-colours
   them in the Classic design (assets/site-ui.css): lavender page, white cards,
   violet buttons, gold accents, calm night colours.

   WHEN IT IS USED
   Only in the Classic look. includes/classic_skin.php prints the <link> to
   this file when site_look() === 'classic'. In Classic, includes/header.php
   puts class "lk-old" on <body> of these older pages, so every rule here
   starts with body.lk-old (pages with their own <head> add that class too).
   The Cosmic look never loads this file: Cosmic pages stay exactly as before.
   Exam screens and game screens never load it.

   PARTS
   1. Colours (day / night) — same values as assets/site-ui.css. Names start
      with --c- so they never clash with a page's own colour names.
   2. The page + Tailwind colours mapped to Classic.
   3. The big coloured banner at the top of a page → a Classic hero card.
   4. Pages with their own design (one block per page, by its class prefix).
   5. Weak devices and "reduce motion".
   Night = html.dark (the site's sun/moon button), not the device setting.
   ===================================================================== */

/* ── 1. COLOURS ───────────────────────────────────────────────────── */
body.lk-old {
  --c-bg: #f4f3fb; --c-card: #ffffff; --c-sub: #f8f7fd; --c-sub2: #efedf9;
  --c-line: #e4e2f0; --c-line2: #d4d1e6;
  --c-ink: #12102e; --c-body: #45436a; --c-mute: #6f6d8f;
  --c-brand: #6d4ee0; --c-brand-dk: #5b3ed0; --c-brand-ink: #4c2fb8; --c-brand-soft: #ece7fd;
  --c-gold: #ffc947; --c-gold-fill: #f0b429; --c-gold-ink: #1a1400; --c-gold-soft: #fff3d1; --c-gold-txt: #8a5b00;
  --c-ok: #0f9d6e; --c-ok-soft: #e0f7ee; --c-ok-ink: #0a6b4b;
  --c-bad: #d12d4a; --c-bad-soft: #ffe3e8; --c-bad-ink: #a3153a;
  --c-warn-soft: #fff1dc; --c-warn-ink: #8a4b00;
  --c-hero-bg: #ffffff;
  --c-btn-ink: #ffffff;
  --c-shadow: 0 1px 2px rgba(18,16,46,.05), 0 8px 24px -18px rgba(18,16,46,.25);
  --c-shadow-up: 0 16px 36px -14px rgba(18,16,46,.28);
  --c-radius: 18px;
  --c-num: Anton, Impact, "Arial Narrow Bold", sans-serif;
  --c-lab: Orbitron, "Segoe UI", Inter, sans-serif;
}
html.dark body.lk-old {
  --c-bg: #070b1c; --c-card: #0f1430; --c-sub: #131938; --c-sub2: #1a2046;
  --c-line: #222846; --c-line2: #30375c;
  --c-ink: #f2f3ff; --c-body: #c3c7e6; --c-mute: #8b90b8;
  --c-brand: #a78bfa; --c-brand-dk: #8f6ff5; --c-brand-ink: #cdbcff; --c-brand-soft: #221c4a;
  --c-gold-fill: #ffc947; --c-gold-soft: #33290f; --c-gold-txt: #ffd978;
  --c-ok: #34d399; --c-ok-soft: #0d2f27; --c-ok-ink: #8ef0c6;
  --c-bad: #fb7185; --c-bad-soft: #3a1626; --c-bad-ink: #ffb1bf;
  --c-warn-soft: #33240f; --c-warn-ink: #ffd08c;
  --c-hero-bg: linear-gradient(135deg, #121840 0%, #0f1430 55%, #0c1130 100%);
  --c-btn-ink: #0a0820;
  --c-shadow: 0 1px 0 rgba(255,255,255,.02), 0 10px 30px -18px rgba(0,0,0,.8);
  --c-shadow-up: 0 18px 40px -16px rgba(0,0,0,.85);
}

/* ── 2. THE PAGE + TAILWIND COLOURS ───────────────────────────────── */
html body.lk-old { background: var(--c-bg) !important; color: var(--c-ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html.dark body.lk-old { background-image: radial-gradient(ellipse 60% 40% at 15% 0%, rgba(167,139,250,.12), transparent 70%), radial-gradient(ellipse 50% 35% at 90% 5%, rgba(56,214,255,.08), transparent 70%) !important; background-repeat: no-repeat !important; background-size: 100% 900px, 100% 700px !important; }

/* surfaces */
body.lk-old .bg-white, html.dark body.lk-old .dark\:bg-gray-800, html.dark body.lk-old .dark\:bg-gray-900, html.dark body.lk-old .dark\:bg-slate-800, html.dark body.lk-old .dark\:bg-slate-900,
html.dark body.lk-old .dark\:bg-\[\#11112a\], html.dark body.lk-old .dark\:bg-\[\#0B0B15\], html.dark body.lk-old .dark\:bg-\[\#151525\] { background-color: var(--c-card); }
body.lk-old .bg-gray-50, body.lk-old .bg-slate-50, html.dark body.lk-old .dark\:bg-gray-700, html.dark body.lk-old .dark\:bg-gray-700\/50, html.dark body.lk-old .dark\:bg-slate-700 { background-color: var(--c-sub); }
body.lk-old .bg-gray-100, body.lk-old .bg-slate-100, body.lk-old .bg-gray-200 { background-color: var(--c-sub2); }
body.lk-old .hover\:bg-gray-50:hover, body.lk-old .hover\:bg-gray-100:hover, html.dark body.lk-old .dark\:hover\:bg-gray-700:hover { background-color: var(--c-brand-soft); }
/* text */
body.lk-old .text-gray-900, body.lk-old .text-gray-800, body.lk-old .text-slate-900, body.lk-old .text-slate-800,
html.dark body.lk-old .dark\:text-white, html.dark body.lk-old .dark\:text-gray-100, html.dark body.lk-old .dark\:text-gray-200 { color: var(--c-ink); }
body.lk-old .text-gray-700, body.lk-old .text-gray-600, body.lk-old .text-slate-700, body.lk-old .text-slate-600, html.dark body.lk-old .dark\:text-gray-300, html.dark body.lk-old .dark\:text-slate-300 { color: var(--c-body); }
body.lk-old .text-gray-500, body.lk-old .text-gray-400, body.lk-old .text-slate-500, body.lk-old .text-slate-400, html.dark body.lk-old .dark\:text-gray-400, html.dark body.lk-old .dark\:text-gray-500, html.dark body.lk-old .dark\:text-slate-400 { color: var(--c-mute); }
/* lines */
body.lk-old .border-gray-100, body.lk-old .border-gray-200, body.lk-old .border-gray-300, body.lk-old .border-slate-200,
html.dark body.lk-old .dark\:border-gray-700, html.dark body.lk-old .dark\:border-gray-600, html.dark body.lk-old .dark\:border-white\/5, html.dark body.lk-old .dark\:border-white\/10, html.dark body.lk-old .dark\:border-slate-700\/50 { border-color: var(--c-line); }
/* the accent colours of the old pages → the Classic violet */
body.lk-old .text-indigo-600, body.lk-old .text-purple-600, body.lk-old .text-violet-600, body.lk-old .text-blue-600, body.lk-old .text-indigo-700, body.lk-old .text-purple-700,
html.dark body.lk-old .dark\:text-indigo-400, html.dark body.lk-old .dark\:text-purple-400, html.dark body.lk-old .dark\:text-blue-400 { color: var(--c-brand-ink); }
body.lk-old .bg-indigo-50, body.lk-old .bg-purple-50, body.lk-old .bg-violet-50, body.lk-old .bg-blue-50, body.lk-old .bg-indigo-100, body.lk-old .bg-purple-100 { background-color: var(--c-brand-soft); }
html.dark body.lk-old :is(.bg-indigo-50, .bg-purple-50, .bg-blue-50) { background-color: var(--c-brand-soft); }
body.lk-old .border-purple-200, body.lk-old .border-indigo-200, html.dark body.lk-old .dark\:border-purple-900 { border-color: var(--c-line); }
body.lk-old :is(.bg-indigo-600, .bg-purple-600, .bg-violet-600, .bg-blue-600) { background-color: var(--c-brand); color: var(--c-btn-ink); }
body.lk-old :is(.hover\:bg-indigo-700, .hover\:bg-purple-700, .hover\:bg-blue-700):hover { background-color: var(--c-brand-dk); }
/* shapes: softer corners and the Classic shadow */
body.lk-old .rounded-3xl { border-radius: 22px; }
body.lk-old .rounded-2xl { border-radius: var(--c-radius); }
body.lk-old :is(.shadow-sm, .shadow, .shadow-md, .shadow-lg, .shadow-xl) { box-shadow: var(--c-shadow); }
body.lk-old .bg-white.border, body.lk-old .bg-white[class*="border-gray"] { border-color: var(--c-line); }
/* night: light tinted boxes without a dark: version */
html.dark body.lk-old :is(.bg-green-50, .bg-emerald-50) { background-color: var(--c-ok-soft); }
html.dark body.lk-old :is(.bg-red-50, .bg-rose-50) { background-color: var(--c-bad-soft); }
html.dark body.lk-old :is(.bg-amber-50, .bg-yellow-50, .bg-orange-50) { background-color: var(--c-warn-soft); }
/* form fields */
body.lk-old :is(input[type="text"], input[type="email"], input[type="search"], input[type="number"], input[type="password"], select, textarea):is(.border, [class*="bg-white"], [class*="bg-gray"]) { background-color: var(--c-card); border-color: var(--c-line2); color: var(--c-ink); border-radius: 12px; }
body.lk-old input[type="range"] { accent-color: var(--c-brand); }

/* ── 3. THE BANNER AT THE TOP → A CLASSIC HERO CARD ──────────────────
   The old pages open with a full-width coloured banner (a <section> with a Tailwind gradient and a big top padding for the
   old floating header). In Classic it becomes the same card as the student pages: white by day, deep blue at night. */
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) {
  background: var(--c-hero-bg) !important; color: var(--c-ink);
  max-width: 1208px; margin: 82px auto 8px; width: calc(100% - 32px);
  border: 1px solid var(--c-line); border-radius: 22px; box-shadow: var(--c-shadow);
  padding-top: 40px !important; padding-bottom: 40px !important; overflow: hidden; position: relative;
}
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"])::after {   /* one soft gold glow in the corner, like the Classic heroes */
  content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(240,180,41,.16), transparent 68%);
}
/* its decoration layers (blurred blobs, dots, pictures behind the text) are switched off */
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) > :is(.absolute, [class*="absolute"]):not(:has(a, button, input, h1, h2, p)) { display: none !important; }
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) :is(h1, h2) { color: var(--c-ink) !important; font-weight: 800 !important; letter-spacing: -.02em; }
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) :is(p, li, label, small, .text-white, [class*="text-white\/"], [class*="-100"], [class*="-200"], [class*="-300"]):not(a):not(button) { color: var(--c-body) !important; }
/* gradient words in the title → the Classic gold word */
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) :is(.bg-clip-text, .text-transparent) {
  background: none !important; -webkit-text-fill-color: currentColor; color: var(--c-gold-txt) !important;
}
/* the small label pill above the title → a Classic label */
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) span.rounded-full[class*="uppercase"] {
  background: var(--c-gold-soft) !important; border-color: transparent !important; color: var(--c-gold-txt) !important;
  font-family: var(--c-lab); font-weight: 700; letter-spacing: .16em; font-size: 10.5px;
}
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) span.rounded-full[class*="uppercase"] > span { background: var(--c-gold-fill) !important; }
/* search boxes and buttons inside it */
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) input {
  background: var(--c-card) !important; color: var(--c-ink) !important; border: 1px solid var(--c-line2) !important; box-shadow: none !important;
}
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) input::placeholder { color: var(--c-mute) !important; }
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) :is(a, button):not(.bg-white):not([class*="bg-white\/"]) { color: var(--c-ink); }
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) :is(a, button):is(.bg-white, [class*="bg-white\/"]) {
  background: var(--c-brand) !important; color: var(--c-btn-ink) !important; border-color: transparent !important;
}
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) :is(a, button)[class*="bg-white\/"] { background: var(--c-brand-soft) !important; color: var(--c-brand-ink) !important; }
@media (max-width: 760px) {
  body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) { margin-top: 74px; border-radius: 20px; padding-top: 26px !important; padding-bottom: 26px !important; }
}

/* hero search boxes: the box is the wrapper; the field inside stays plain; glows behind it are switched off */
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) input.bg-transparent { background: transparent !important; border: 0 !important; }
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) :has(> input.bg-transparent) { background: var(--c-card) !important; border: 1px solid var(--c-line2) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: var(--c-shadow) !important; }
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) div.absolute[class*="blur"] { display: none !important; }
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) svg[class*="text-white"] { color: var(--c-mute) !important; }
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) div.rounded-full[class*="uppercase"] {
  background: var(--c-gold-soft) !important; border-color: transparent !important; color: var(--c-gold-txt) !important; font-family: var(--c-lab); letter-spacing: .16em; font-size: 10.5px;
}
body.lk-old :is(section[class*="bg-gradient-to-"][class*="pt-3"], section[class*="bg-gradient-to-"][class*="pt-2"], section.bg-slate-900[class*="pt-3"]) div.rounded-full[class*="uppercase"] > span { background: var(--c-gold-fill) !important; animation: none !important; }
body.lk-old .text-glow, body.lk-old .drop-shadow-lg, body.lk-old .drop-shadow { text-shadow: none !important; filter: none !important; }

/* ── 4. PAGES WITH THEIR OWN DESIGN ───────────────────────────────────
   Each block points the page's own colour names at the Classic colours, and turns its top band into a Classic hero card.
   The page keeps its layout and its special colours (e.g. the four marking colours of the writing tools). */

/* the Classic hero card, shared by the blocks below */
body.lk-old :is(.wt-hero, .wc-top, .rr-hero, .sl-hero) {
  background: var(--c-hero-bg) !important; color: var(--c-ink) !important;
  max-width: 1208px; width: calc(100% - 32px); margin: 82px auto 10px; border: 1px solid var(--c-line); border-radius: 22px;
  box-shadow: var(--c-shadow); padding-top: 34px !important; padding-bottom: 30px !important; position: relative; overflow: hidden;
}
@media (max-width: 760px) { body.lk-old :is(.wt-hero, .wc-top, .rr-hero, .sl-hero) { margin-top: 74px; border-radius: 20px; padding-top: 22px !important; padding-bottom: 22px !important; } }

/* MUSIC (music.php) — the moving blue/violet background and the flying notes are switched off */
body.lk-old :is(.aurora-bg, .light-mode-aurora, .music-notes) { display: none !important; }
body.lk-old .music-notes + section { background: var(--c-hero-bg); max-width: 1208px; width: calc(100% - 32px); margin: 82px auto 26px; border: 1px solid var(--c-line); border-radius: 22px; box-shadow: var(--c-shadow); padding-top: 36px !important; padding-bottom: 32px !important; }
body.lk-old .music-notes + section :is(h1, .text-white) { color: var(--c-ink) !important; }
body.lk-old .music-notes + section .eq-bar { background: var(--c-gold-fill) !important; }
body.lk-old .music-notes + section p { color: var(--c-body) !important; }
body.lk-old .music-notes + section .bg-clip-text { background: none !important; -webkit-text-fill-color: currentColor; color: var(--c-gold-txt) !important; animation: none !important; }
body.lk-old .glass-card, html:not(.dark) body.lk-old .glass-card { background: var(--c-card); border: 1px solid var(--c-line); box-shadow: var(--c-shadow); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.lk-old .glass-card:hover { transform: translateY(-4px); box-shadow: var(--c-shadow-up); border-color: var(--c-line2); }
body.lk-old .filter-btn.bg-slate-900 { background: var(--c-brand) !important; color: var(--c-btn-ink) !important; }

/* WRITING TASK TYPES (writing_types.php, also inside writing_arena.php) */
body.lk-old .wt { --bg: var(--c-bg); --card: var(--c-card); --soft: var(--c-sub); --ink: var(--c-ink); --mute: var(--c-mute); --line: var(--c-line);
  --serif: Inter, system-ui, sans-serif; --ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: transparent; }
body.lk-old .wt-hero .wt-kick { color: var(--c-gold-txt); font-family: var(--c-lab); letter-spacing: .14em; font-size: 11px; }
body.lk-old .wt-hero h1 { font-weight: 800; letter-spacing: -.02em; color: var(--c-ink); }
body.lk-old .wt-hero h1 em { color: var(--c-gold-txt); font-style: normal; }
body.lk-old .wt-hero .wt-lead { color: var(--c-body); }
body.lk-old .wt-btn { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-btn-ink) !important; }
body.lk-old .wt-btn.ghost, body.lk-old .wt-hero .wt-btn.ghost { background: transparent; border-color: var(--c-line2); color: var(--c-ink) !important; }
body.lk-old .wt-hero .wt-btn:not(.ghost) { background: var(--c-gold-fill); border-color: var(--c-gold-fill); color: var(--c-gold-ink) !important; }

/* WRITING LAB (writing_lab.php) */
body.lk-old .wl { --ground: var(--c-bg); --sheet: var(--c-card); --soft: var(--c-sub); --ink: var(--c-ink); --pencil: var(--c-mute); --rule: var(--c-line);
  --serif: Inter, system-ui, sans-serif; --ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: transparent; }
body.lk-old .wl-hero { max-width: 1208px; width: calc(100% - 32px); margin: 82px auto 10px; background: var(--c-hero-bg); border: 1px solid var(--c-line); border-radius: 22px; box-shadow: var(--c-shadow); padding-top: 32px !important; padding-bottom: 30px !important; }
body.lk-old .wl-hero h1, body.lk-old .wl h1 { font-weight: 800; letter-spacing: -.02em; }
body.lk-old .wl-btn.ink { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-btn-ink); }
@media (max-width: 760px) { body.lk-old .wl-hero { margin-top: 74px; border-radius: 20px; padding-top: 22px !important; } }

/* WRITING CHECKER, older version (writing_checker_classic.php) */
body.lk-old .wc { --desk: var(--c-bg); --sheet: var(--c-card); --soft: var(--c-sub); --ink: var(--c-ink); --pencil: var(--c-mute); --rule: var(--c-line); --line: var(--c-line);
  --night: var(--c-card); --cream: var(--c-ink); --sun: var(--c-gold-txt); --sun-d: var(--c-gold-fill);
  --serif: Inter, system-ui, sans-serif; --ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: transparent; }
body.lk-old .wc-h1 { font-weight: 800; letter-spacing: -.02em; }
body.lk-old .wc-h1 span { font-style: normal; }
body.lk-old .wc-steps b { background: var(--c-gold-fill); color: var(--c-gold-ink); }

/* TYPING ACADEMY (typing.php). The keyboard stays a dark keyboard (like a real one); the page around it is Classic. */
body.lk-old .ty { --bg: var(--c-bg); --panel: var(--c-card); --panel2: var(--c-card); --line: var(--c-line); --text: var(--c-ink); --mute: var(--c-mute); --brand: var(--c-brand); --brand2: #3b82f6; background: transparent; }
body.lk-old .ty-bg { display: none; }
body.lk-old .ty-kicker { color: var(--c-gold-txt); font-family: var(--c-lab); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
body.lk-old .ty-title span { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--c-gold-txt); }
body.lk-old :is(.ty-lead, .ty-tips ol, .ty-card p) { color: var(--c-body); }
body.lk-old .ty-hero { background: var(--c-hero-bg); border: 1px solid var(--c-line); border-radius: 22px; padding: 26px 28px; box-shadow: var(--c-shadow); }
body.lk-old .ty-card { background: var(--c-card); box-shadow: var(--c-shadow); }
body.lk-old a.ty-card:hover { border-color: var(--c-line2); box-shadow: var(--c-shadow-up); }
body.lk-old .ty-card .meta { color: var(--c-ink); }
body.lk-old :is(.ty-chip, .ty-card .ico, .ty-back, .ty-calc .tbar) { background: var(--c-sub); }
body.lk-old .ty-chip b { color: var(--c-ink); }
body.lk-old .ty-btn { background: var(--c-brand); box-shadow: none; }
body.lk-old .ty-btn.ghost { background: transparent; color: var(--c-ink) !important; box-shadow: inset 0 0 0 1px var(--c-line2); }
body.lk-old .ty kbd { background: var(--c-sub); color: var(--c-ink); border-color: var(--c-line2); }
body.lk-old .ty-snav a:hover { background: var(--c-brand-soft); }
body.lk-old .ty-snav a.on { background: var(--c-brand-soft); color: var(--c-brand-ink) !important; }
body.lk-old :is(.ty-ed, .ty-row select) { background: var(--c-card); color: var(--c-ink); }
body.lk-old .ty-hero-kb { background: #12102e; box-shadow: var(--c-shadow-up); }
html.dark body.lk-old .ty-hero-kb { background: rgba(255,255,255,.04); }

/* SPELLING LAB (spelling.php) */
body.lk-old .sl { --paper: var(--c-bg); --sheet: var(--c-card); --ink: var(--c-ink); --pencil: var(--c-mute); --rule: var(--c-line); --blue: var(--c-brand-ink);
  --ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: transparent; }

/* SPEAKING STUDIO (speaking_zone.php) */
html body.lk-old :is(.sz, .sz .sz-hero, .sz .sz-invited) { --sz-bg: var(--c-bg); --sz-bg2: var(--c-card); --sz-bg3: var(--c-sub); --sz-line: var(--c-line); --sz-ink: var(--c-ink); --sz-mute: var(--c-body); --sz-dim: var(--c-mute);
  --sz-hot: #f0b429; --sz-hot2: var(--c-gold-txt); --sz-on-hot: #1a1400; --sz-panel: var(--c-card); --sz-hair: var(--c-line); --sz-barbg: var(--c-card); --sz-glow: var(--c-gold-soft);
  --sz-exam: var(--c-card); --sz-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html body.lk-old :is(.sz .sz-hero, .sz .sz-invited) { --sz-live-ink: #b3180e; --sz-red: #e3261a; }
html.dark body.lk-old :is(.sz .sz-hero, .sz .sz-invited) { --sz-live-ink: #ffd9d6; --sz-red: #ff3b30; }
html body.lk-old .sz { background: transparent; }
html body.lk-old .sz::before { display: none; }
html body.lk-old .sz .sz-hero { background: var(--c-hero-bg); max-width: 1208px; width: calc(100% - 32px); margin: 82px auto 10px; border: 1px solid var(--c-line); border-radius: 22px; box-shadow: var(--c-shadow); padding-top: 34px; padding-bottom: 30px; }
html body.lk-old .sz .sz-h1 { font-weight: 800; letter-spacing: -.02em; }
html body.lk-old .sz .sz-h1 .hot { color: var(--c-gold-txt); }
@media (max-width: 760px) { html body.lk-old .sz .sz-hero { margin-top: 74px; border-radius: 20px; padding-top: 22px; } }

/* THE READING ROOM (articles.php) */
body.lk-old:has(.rr-hero) { --ink: var(--c-ink); --paper: var(--c-bg); --white: var(--c-card); --mid: var(--c-mute); --border: var(--c-line); --panel: var(--c-brand); }
body.lk-old .rr-hero { padding: 0 !important; }
body.lk-old .rr-hero-inner { padding: 30px 28px 26px; }
body.lk-old .rr-hero h1, body.lk-old .rr-stats strong { color: var(--c-ink); font-family: Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; }
body.lk-old .rr-stats strong { font-family: var(--c-num); font-weight: 400; color: var(--c-gold-txt); }
body.lk-old .rr-hero p, body.lk-old .rr-stats em { color: var(--c-mute); }
body.lk-old .rr-bar { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 16px; max-width: 1208px; width: calc(100% - 32px); margin: 0 auto 6px; top: 66px; box-shadow: var(--c-shadow); }
body.lk-old .fpill { color: var(--c-body); border-color: var(--c-line); }
body.lk-old .fpill:hover { color: var(--c-ink); border-color: var(--c-line2); background: var(--c-brand-soft); }
body.lk-old .fpill.active { background: var(--c-brand); color: var(--c-btn-ink); }
body.lk-old :is(.srch input, .srtsel) { background: var(--c-sub); border-color: var(--c-line); color: var(--c-ink); }
body.lk-old .srtsel option { background: var(--c-card); color: var(--c-ink); }

/* WHERE I LOSE MARKS (listening-marks.php, reading-marks.php) — the paper report on a Classic page instead of a wooden desk */
body.lk-old #lm, html.dark body.lk-old #lm { background: transparent; --paper: var(--c-card); --ink: var(--c-ink); --mute: var(--c-mute); --rule: var(--c-line); --shadow: rgba(18,16,46,.18); }
html.dark body.lk-old #lm { --shadow: rgba(0,0,0,.7); }
html body.lk-old #rm { --page: var(--c-bg); --paper: var(--c-card); --ink: var(--c-ink); --mute: var(--c-mute); --line: var(--c-line); --soft: var(--c-sub); --band: var(--c-hero-bg); background: transparent; }
html body.lk-old #rm .rm-band { color: var(--c-ink); max-width: 1208px; width: calc(100% - 32px); margin: 82px auto 26px; border: 1px solid var(--c-line); border-radius: 22px; box-shadow: var(--c-shadow); padding: 30px 26px 30px; }
html body.lk-old #rm .rm-band::after { background: radial-gradient(circle, rgba(240,180,41,.16), transparent 68%); }
html body.lk-old #rm :is(.rm-crumb, .rm-stat small) { color: var(--c-mute); }
html body.lk-old #rm .rm-crumb b { color: var(--c-ink); }
html body.lk-old #rm .rm-kick { color: var(--c-gold-txt); }
html body.lk-old #rm .rm-stat { border-color: var(--c-line); background: var(--c-sub); }
html body.lk-old #rm .rm-note { transform: none; }
@media (max-width: 760px) { html body.lk-old #rm .rm-band { margin-top: 74px; border-radius: 20px; padding: 22px 18px; } }

/* PRIVACY + TERMS (privacy.php, terms.php) */
body.lk-old .pv { --ink: var(--c-ink); --mute: var(--c-mute); --line: var(--c-line); --card: var(--c-card); --soft: var(--c-sub); --acc: var(--c-brand-ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* SIGN IN, CREATE AN ACCOUNT, ADD YOUR E-MAIL (login.php, signup.php, add-email.php: the "au-" shell).
   The night sky is switched off; the card, fields and buttons take the Classic colours; the Classic menu is on top. */
html body.lk-auth { --au-ink: var(--c-ink); --au-muted: var(--c-body); --au-faint: var(--c-mute); --au-card: var(--c-card); --au-card-line: var(--c-line);
  --au-field: var(--c-sub); --au-field-line: var(--c-line2); --au-goldtx: var(--c-gold-txt); --au-gold: var(--c-gold-fill); --au-cyan: var(--c-brand-ink);
  --au-chip: var(--c-sub); --au-sel: var(--c-gold-soft); --au-shadow: var(--c-shadow-up); }
body.lk-auth .au-sky { background: transparent; }
body.lk-auth :is(.au-neb, .au-star, .au-rail, .au-brand) { display: none !important; }
body.lk-auth .au-stage { padding-top: 84px; min-height: calc(100vh - 20px); }
body.lk-auth .au-card { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: var(--c-shadow-up); border-radius: 22px; }
body.lk-auth .au-card::before { background: linear-gradient(90deg, transparent, var(--c-gold-fill) 25%, var(--c-brand) 75%, transparent); }
body.lk-auth :is(.au-eyebrow, .au-tag, .au-step) { font-family: var(--c-lab); font-weight: 700; letter-spacing: .18em; }
body.lk-auth .au-h1 { color: var(--c-ink); }
body.lk-auth .au-h1 .au-gold, html:not(.dark) body.lk-auth .au-h1 .au-gold { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--c-gold-txt); }
html.dark body.lk-auth .au-h1 .au-gold { color: #ffc947; }
body.lk-auth .au-btn { background: var(--c-gold-fill); color: var(--c-gold-ink); box-shadow: 0 14px 30px -16px rgba(240,180,41,.75); border-radius: 14px; }
body.lk-auth .au-btn:hover { box-shadow: 0 18px 34px -16px rgba(240,180,41,.85); }
body.lk-auth .au-g { border-radius: 14px; }
body.lk-auth .au-in { border-radius: 12px; }
body.lk-auth .au-in:focus { border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft); }
html.dark body.lk-auth .au-in:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #131938 inset; }
body.lk-auth .au-chip i { box-shadow: none; }
body.lk-auth .lk-top { position: fixed; left: 0; right: 0; }

/* THE WRITING CHECKER (writing_checker.php, its own app "lx-"). It has day colours only, so it stays in Classic day colours.
   The Classic menu replaces its own top bar; its side menu starts under the Classic menu; its teal becomes the Classic violet. */
body.lk-wc { --lx-color-primary-950: #241a5e; --lx-color-primary-900: #3d2a9e; --lx-color-primary-700: #5b3ed0; --lx-color-primary-500: #6d4ee0;
  --lx-color-primary-300: #b9a6f7; --lx-color-primary-100: #e4dcfd; --lx-color-primary-50: #f4f3fb;
  --lx-color-teal-50: #f4f3fb; --lx-color-teal-100: #ece7fd; --lx-color-teal-200: #d9cffb; --lx-color-teal-600: #6d4ee0; --lx-color-teal-700: #5b3ed0;
  --lx-color-3: #6d4ee0; --lx-color-4: #5b3ed0; --lx-color-13: #9b85f2; --lx-color-8: #f8f7fd; --lx-color-9: #ece7fd; --lx-color-10: #e4e2f0;
  padding-top: 58px; }
body.lk-wc .lx-hdr { display: none !important; }
@media (min-width: 768px) { body.lk-wc #lexi-sidebar { top: 58px !important; height: calc(100% - 58px) !important; } }
body.lk-wc .lk-top { z-index: 75; }

/* MISTAKE TRAINER (trainer.php) — its purple band becomes a Classic hero card */
body.lk-trainer { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; }
body.lk-trainer > header.hero { background: var(--c-hero-bg) !important; color: var(--c-ink) !important; animation: none; max-width: 42rem; width: calc(100% - 32px); margin: 82px auto 0; border: 1px solid var(--c-line); border-radius: 22px; box-shadow: var(--c-shadow); }
body.lk-trainer > header.hero > div { padding-left: 22px; padding-right: 22px; }
body.lk-trainer > header.hero :is(p, .text-white\/85) { color: var(--c-body) !important; }
body.lk-trainer > header.hero :is(a, span)[class*="bg-white\/15"] { background: var(--c-sub) !important; color: var(--c-ink); border: 1px solid var(--c-line); }
body.lk-trainer > header.hero a[class*="bg-white\/15"]:hover { background: var(--c-brand-soft) !important; }
@media (max-width: 760px) { body.lk-trainer > header.hero { margin-top: 74px; border-radius: 20px; } }

/* ── 5. WEAK DEVICES + LESS MOTION ────────────────────────────────── */
html.lk-lite body.lk-old { background-image: none !important; }
html.lk-lite body.lk-old :is(.glass-card, .ty-card, a.ty-card, .shadow-lg, .shadow-xl) { box-shadow: none; }
html.lk-lite body.lk-old :is(.glass-card, a.ty-card):hover { transform: none; }
html.lk-lite body.lk-old .animate-pulse, html.lk-lite body.lk-old .animate-bounce { animation: none !important; }
@media (prefers-reduced-motion: reduce) { body.lk-old .animate-pulse, body.lk-old .animate-bounce, body.lk-old .animate-spin { animation: none !important; } }
