/* assets/levels.css — the by-level shelf (/levels). New, 23 Nov 2026 (phase G6).
   ITS OWN DESIGN: a lift. Levels are floors, so the page is the inside of a lift: a steel panel with four round
   buttons (4 = C1 at the top, 1 = A1–A2 at the bottom) and a small lamp display that shows the floor. The lit button
   is the floor you are on. Each page of the site on a floor is a door with a coloured plate for its skill.
   Day: light brushed steel. Night: a dark cabin, the lamps stay amber.
   Motion: the lift doors open once when the page opens; a new floor slides in from below (going up) or from above
   (going down). Nothing moves with "reduce motion" or on weak phones (html.lk-lite). Every rule starts with #lv. */

@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('/fonts/orbitron-latin-wght-normal.woff2') format('woff2'); }

#lv { --bg: #E6E9ED; --ink: #14181D; --soft: #56616C; --card: #FFFFFF; --rule: #C5CCD4; --steel1: #DDE1E6; --steel2: #B4BBC4; --lamp: #FFAE00; --led: 'Orbitron', 'Courier New', monospace;
  --words: #A86F00; --grammar: #6A3FB5; --reading: #17794F; --listening: #2563D6; --writing: #D4481F; --speaking: #8344CC; --plan: #56616C; --test: #C8283C;
  display: block; max-width: 1080px; margin: 0 auto; padding: clamp(16px, 4vw, 36px) clamp(12px, 3vw, 24px) 70px; color: var(--ink); }
html.dark #lv { --bg: #0E1115; --ink: #EEF2F6; --soft: #9BA7B3; --card: #181D23; --rule: #2C343D; --steel1: #2A313A; --steel2: #171C22;
  --words: #F0B63A; --grammar: #B195F2; --reading: #4CCB94; --listening: #7DA8FF; --writing: #FF8A62; --speaking: #C59BFF; --plan: #9BA7B3; --test: #FF8493; }
html:has(#lv) body { background: #E6E9ED; } html.dark:has(#lv) body { background: #0E1115; }
html:has(#lv) #cp { background: transparent; }
#lv * { box-sizing: border-box; }
#lv p, #lv h1, #lv h2, #lv ol, #lv ul { margin: 0; padding: 0; } #lv ol, #lv ul { list-style: none; }
#lv a { color: inherit; }
#lv :focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 10px; }

@keyframes lvUp { from { opacity: 0; transform: translateY(46px); } }
@keyframes lvDown { from { opacity: 0; transform: translateY(-46px); } }
@keyframes lvDoorL { to { transform: translateX(-101%); } }
@keyframes lvDoorR { to { transform: translateX(101%); } }

#lv .lv-head h1 { font-size: clamp(38px, 8vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
#lv .lv-head p { max-width: 40em; margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--soft); } #lv .lv-head a { font-weight: 700; color: var(--ink); text-underline-offset: 3px; }

#lv .lv-lift { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 28px; }

/* ───────────── the panel ───────────── */
#lv .lv-panel { position: sticky; top: 78px; padding: 16px 16px 18px; border: 1px solid var(--steel2); border-radius: 16px;
  background: linear-gradient(100deg, var(--steel1), var(--steel2) 48%, var(--steel1) 52%, var(--steel2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 26px -16px rgba(0, 0, 0, .5); }
html.dark #lv .lv-panel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 26px -16px #000; }
#lv .lv-led { display: grid; gap: 4px; padding: 12px 12px 10px; text-align: center; color: var(--lamp); background: #090909; border: 2px solid #000; border-radius: 10px; box-shadow: inset 0 0 18px rgba(255, 174, 0, .16); }
#lv .lv-led b { font: 800 34px/1 var(--led); letter-spacing: .04em; text-shadow: 0 0 12px rgba(255, 174, 0, .7); }
#lv .lv-led span { font: 600 11.500px/1.2 var(--led); letter-spacing: .04em; opacity: .9; }
#lv .lv-btns { display: grid; gap: 12px; margin-top: 18px; }
#lv .lv-btns a { position: relative; display: flex; align-items: center; gap: 12px; padding: 4px; text-decoration: none; border-radius: 40px; }
#lv .lv-btns b { flex: none; display: grid; place-items: center; width: 58px; height: 58px; font: 800 24px/1 var(--led); color: var(--ink); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--steel1) 45%, var(--steel2)); border: 2px solid var(--steel2); box-shadow: 0 0 0 4px rgba(0, 0, 0, .12), inset 0 -3px 5px rgba(0, 0, 0, .18); transition: box-shadow .15s, transform .1s; }
html.dark #lv .lv-btns b { background: radial-gradient(circle at 35% 30%, #4A535E, var(--steel1) 50%, var(--steel2)); border-color: #000; }
#lv .lv-btns a:hover b { box-shadow: 0 0 0 4px rgba(255, 174, 0, .45), inset 0 -3px 5px rgba(0, 0, 0, .18); } #lv .lv-btns a:active b { transform: scale(.94); }
#lv .lv-btns a[aria-current] b { color: #161616; background: radial-gradient(circle at 35% 30%, #FFF3C4, var(--lamp) 60%, #E08F00); border-color: #B36F00; box-shadow: 0 0 0 4px rgba(255, 174, 0, .5), 0 0 22px rgba(255, 174, 0, .75); }
#lv .lv-btns span { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
#lv .lv-btns .you { margin-left: auto; padding: 3px 8px 2px; font: 800 11.500px/1.2 Inter, system-ui, sans-serif; font-style: normal; color: #fff; background: var(--test); border-radius: 99px; } html.dark #lv .lv-btns .you { color: #161616; }
#lv .lv-find { display: block; margin-top: 18px; padding: 11px 10px; font-size: 15px; font-weight: 800; text-align: center; text-decoration: none; color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 10px; }
#lv .lv-find:hover { background: var(--lamp); color: #161616; border-color: #161616; }

/* ───────────── a floor ───────────── */
#lv .lv-shaft { position: relative; min-width: 0; overflow: hidden; border-radius: 14px; }
#lv.js .lv-shaft::before, #lv.js .lv-shaft::after { content: ''; position: absolute; z-index: 3; top: 0; bottom: 0; width: 50%; pointer-events: none;
  background: linear-gradient(90deg, var(--steel2), var(--steel1) 30%, var(--steel2) 60%, var(--steel1)); border: 1px solid var(--steel2); }
#lv.js .lv-shaft::before { left: 0; animation: lvDoorL .8s .15s cubic-bezier(.6, 0, .2, 1) forwards; } #lv.js .lv-shaft::after { right: 0; animation: lvDoorR .8s .15s cubic-bezier(.6, 0, .2, 1) forwards; }
#lv .lv-floor { padding: 4px 2px 8px; } #lv .lv-floor + .lv-floor { margin-top: 40px; }
#lv.js .lv-floor { display: none; margin-top: 0; } #lv.js .lv-floor.on { display: block; }
#lv.js .lv-floor.up { animation: lvUp .45s cubic-bezier(.2, .8, .2, 1) both; } #lv.js .lv-floor.down { animation: lvDown .45s cubic-bezier(.2, .8, .2, 1) both; }
#lv .lv-no { font: 700 13.500px/1 var(--led); letter-spacing: .06em; color: var(--soft); }
#lv .lv-floor h2 { margin-top: 6px; font-size: clamp(28px, 5vw, 42px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
#lv .lv-floor h2 b { display: inline-block; margin-right: 8px; padding: 5px 12px 3px; font: 800 .8em/1 var(--led); letter-spacing: .02em; color: var(--lamp); background: #090909; border-radius: 8px; vertical-align: .08em; }
#lv .lv-ielts { display: inline-block; margin-top: 12px; padding: 4px 12px; font-size: 14px; font-weight: 700; border: 1.500px solid var(--rule); border-radius: 99px; }
#lv .lv-you { max-width: 44em; margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--soft); } #lv .lv-you strong { color: var(--ink); font-weight: 700; }
#lv .lv-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
#lv .lv-rooms a { --k: var(--plan); position: relative; display: block; height: 100%; padding: 14px 16px 15px 20px; text-decoration: none; background: var(--card); border: 1.500px solid var(--rule); border-radius: 12px; overflow: hidden; transition: border-color .12s, transform .12s; }
#lv .lv-rooms a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--k); }
#lv .lv-rooms a:hover { border-color: var(--k); transform: translateY(-2px); }
#lv .lv-rooms span { display: inline-block; font-size: 12.500px; font-weight: 800; color: var(--k); }
#lv .lv-rooms b { display: block; margin-top: 2px; font-size: 17.500px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
#lv .lv-rooms small { display: block; margin-top: 5px; font-size: 14.500px; line-height: 1.45; color: var(--soft); }
#lv .sk-words { --k: var(--words); } #lv .sk-grammar { --k: var(--grammar); } #lv .sk-reading { --k: var(--reading); } #lv .sk-listening { --k: var(--listening); }
#lv .sk-writing { --k: var(--writing); } #lv .sk-speaking { --k: var(--speaking); } #lv .sk-plan { --k: var(--plan); } #lv .sk-test { --k: var(--test); }
#lv .lv-foot { max-width: 50em; margin-top: 30px; font-size: 15px; line-height: 1.55; color: var(--soft); } #lv .lv-foot a { font-weight: 700; color: var(--ink); }

@media (max-width: 820px) {
  #lv .lv-lift { grid-template-columns: 1fr; gap: 18px; margin-top: 20px; }
  #lv .lv-panel { top: 55px; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
  #lv .lv-led { flex: none; width: 84px; padding: 8px 4px 7px; } #lv .lv-led b { font-size: 21px; } #lv .lv-led span { display: none; }
  #lv .lv-btns { flex: 1; display: flex; flex-direction: row-reverse; justify-content: space-between; gap: 4px; margin-top: 0; }
  #lv .lv-btns a { flex-direction: column; gap: 3px; padding: 2px; } #lv .lv-btns b { width: 44px; height: 44px; font-size: 18px; } #lv .lv-btns span { font-size: 11.500px; }
  #lv .lv-btns .you { position: absolute; right: -4px; top: -6px; margin: 0; padding: 2px 5px 1px; font-size: 9.500px; }
  #lv .lv-find { display: none; }
}
@media (max-width: 560px) { #lv .lv-rooms { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { #lv *, #lv *::before, #lv *::after { animation: none !important; transition: none !important; } #lv.js .lv-shaft::before, #lv.js .lv-shaft::after { display: none; } }
html.lk-lite #lv *, html.lk-lite #lv *::before, html.lk-lite #lv *::after { animation: none !important; transition: none !important; }
html.lk-lite #lv.js .lv-shaft::before, html.lk-lite #lv.js .lv-shaft::after { display: none; }
