/* =====================================================================
   assets/home-plus.css — homepage parts shared by both looks (9 Nov 2026, round 2)
   ---------------------------------------------------------------------
   1. .hp-acts  the hero buttons: gold stopwatch "Take a full mock" + small "My dashboard"
   2. .hpb      the hero animation "Skill bars" (both looks)
   3. .hp-cards the homepage cards: 4 big skill cards + 4 cards of the same size below (Classic)
   4. .hpc2     the small Community card (Classic + Cosmic)
   5. .hmk      the Mock exams box rows (Classic)
   6. .mk-*     the Mock cards in the Cosmic look
   Light on weak phones: no blur, motion only on transform / opacity, nothing moves with "reduce motion".
   Classic colours come from the site tokens (assets/site-ui.css); Cosmic has its own, day and night.
   ===================================================================== */

/* ── 1. THE HERO BUTTONS ─────────────────────────────────────────────── */
.hp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; position: relative; z-index: 2; }
.hp-m1 { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 10px 8px 9px; border-radius: 18px;
  background: #f0b429; color: #1a1400 !important; font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -.005em;
  box-shadow: 0 5px 0 #c98f0a, 0 14px 26px -12px rgba(201,143,10,.75); transition: transform .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.hp-m1:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #c98f0a, 0 18px 30px -12px rgba(201,143,10,.85); color: #1a1400 !important; }
.hp-m1:active { transform: translateY(4px); box-shadow: 0 1px 0 #c98f0a, 0 6px 12px -8px rgba(201,143,10,.6); }
.hp-m1:focus-visible { outline: 3px solid #6d4ee0; outline-offset: 3px; }
.hp-watch { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff8e1; border: 2.5px solid #1a1400; }
.hp-watch::before { content: ""; position: absolute; left: 50%; top: -7px; width: 9px; height: 5px; margin-left: -4.5px; border-radius: 2px; background: #1a1400; }
.hp-watch::after { content: ""; position: absolute; right: -4px; top: -1px; width: 6px; height: 4px; border-radius: 2px; background: #1a1400; transform: rotate(45deg); }
.hp-watch i { position: absolute; left: 50%; top: 50%; width: 2.5px; height: 14px; margin: -13px 0 0 -1.25px; border-radius: 2px; background: #d12d4a; transform-origin: 50% 13px; animation: hp-hand 6s linear infinite; }
.hp-watch b { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #1a1400; }
.hp-m1:hover .hp-watch i { animation-duration: 1.2s; }
@keyframes hp-hand { to { transform: rotate(360deg); } }
.hp-m1-pill { font-family: Anton, Impact, "Arial Narrow Bold", sans-serif; font-weight: 400; font-size: 15px; line-height: 1; letter-spacing: .03em; background: #1a1400; color: #ffc947; padding: 9px 10px; border-radius: 11px; }
/* "My dashboard" (10 Nov 2026, owner: "a little simple") — a small board whose 4 tiles fill one by one, "Hi, Name" above the words,
   an arrow that slides. As tall as the gold button, so both sit on one line. */
.hp-dash { --dk: var(--brand, #6d4ee0); --dk2: #9b85f2; position: relative; display: inline-flex; align-items: center; gap: 11px; min-height: 58px; padding: 8px 14px 8px 8px; border-radius: 18px;
  text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .15s, box-shadow .15s, border-color .15s; }
.hp-dash-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: linear-gradient(135deg, var(--dk), var(--dk2)); box-shadow: 0 8px 16px -10px var(--dk); }
.hp-dash-ic i { border-radius: 3px; background: rgba(255,255,255,.35); }
.hp-dash-ic i:nth-child(1) { background: #fff; }
.hp-dash-ic i:nth-child(4) { background: #ffc947; }
.hp-dash-tx { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.hp-dash-tx small { font-size: 11.5px; font-weight: 700; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-dash-tx b { font-size: 15.5px; font-weight: 800; letter-spacing: -.005em; white-space: nowrap; }
.hp-dash-go { flex: none; margin-left: 2px; transition: transform .2s; }
.hp-dash:hover { transform: translateY(-2px); }
.hp-dash:hover .hp-dash-go { transform: translateX(4px); }
.hp-dash:active { transform: translateY(1px); }
.hp-dash:focus-visible { outline: 3px solid var(--dk); outline-offset: 3px; }
.hp-acts.cla .hp-dash { color: var(--ink) !important; background: var(--card); border: 2px solid color-mix(in srgb, var(--dk) 40%, var(--line)); box-shadow: 0 5px 0 color-mix(in srgb, var(--dk) 22%, var(--line)); }
.hp-acts.cla .hp-dash:hover { border-color: var(--dk); box-shadow: 0 7px 0 color-mix(in srgb, var(--dk) 35%, var(--line)), 0 16px 26px -16px var(--dk); }
.hp-acts.cla .hp-dash-go { color: var(--dk); }
html.dark .hp-acts.cla .hp-dash { --dk: #a78bfa; }
.hp-acts.cos .hp-dash { color: #fff !important; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.22); }
.hp-acts.cos .hp-dash:hover { background: rgba(255,255,255,.14); }
html:not(.dark) .hp-acts.cos .hp-dash { color: #12102e !important; background: rgba(255,255,255,.75); border-color: rgba(20,16,60,.16); }
/* the tiles fill one after another, then rest (a short loop, only while the hero is on screen — the page's own pause rules apply) */
@media (prefers-reduced-motion: no-preference) {
  html:not(.lk-lite) .hp-dash-ic i { animation: hp-tile 4.8s ease-in-out infinite; }
  html:not(.lk-lite) .hp-dash-ic i:nth-child(2) { animation-delay: .25s; } html:not(.lk-lite) .hp-dash-ic i:nth-child(3) { animation-delay: .5s; } html:not(.lk-lite) .hp-dash-ic i:nth-child(4) { animation-delay: .75s; }
  html.lk-hidden .hp-dash-ic i { animation-play-state: paused; }
}
@keyframes hp-tile { 0%, 30%, 100% { transform: none; } 12% { transform: scale(.55); } 20% { transform: scale(1.12); } }
.hp-more { margin: 14px 0 0; font-size: 13.5px; color: var(--mute, #8b90b8); position: relative; z-index: 2; }
.hp-more a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hp-more a:hover { color: var(--ink, #fff); }
@media (max-width: 480px) { .hp-m1 { flex: 1 1 100%; justify-content: space-between; min-width: 0; } .hp-dash { flex: 1 1 100%; } .hp-dash-go { margin-left: auto; } }
@media (max-width: 360px) { .hp-m1 { font-size: 15.5px; gap: 9px; } .hp-watch { width: 34px; height: 34px; } .hp-watch i { height: 11px; margin-top: -10px; transform-origin: 50% 10px; } }

/* ── 2. THE HERO ANIMATION: SKILL BARS ──────────────────────────────── */
.hpb { --H: 160px; --c-l: #0ea5d9; --c-r: #7c5ce6; --c-w: #db2777; --c-s: #d97706;
  --t-l: #006f94; --t-r: #5235b8; --t-w: #a3155a; --t-s: #8a4b00;
  --trk: #f1f0f8; --grid: rgba(18,16,46,.07); --gtx: #a5a3c0; --ink2: #12102e; --sum-bg: #f7f6fd; --sum-tx: #45436a;
  position: relative; width: 320px; max-width: 100%; padding: 14px 16px 14px; border-radius: 24px; flex: none; justify-self: center; }
.hpb.cla { background: var(--card, #fff); border: 1px solid var(--line, #e4e2f0); box-shadow: 0 1px 2px rgba(18,16,46,.05), 0 20px 40px -26px rgba(18,16,46,.35); }
html.dark .hpb.cla, html.dark .hpb.cos { --c-l: #38d6ff; --c-r: #a78bfa; --c-w: #f472b6; --c-s: #ffb347; --t-l: #7fe3ff; --t-r: #cdbcff; --t-w: #f9a8d4; --t-s: #ffcf8a;
  --trk: rgba(255,255,255,.05); --grid: rgba(255,255,255,.07); --gtx: #6b7099; --ink2: #f2f3ff; --sum-bg: rgba(255,255,255,.05); --sum-tx: #c3c7e6; }
.hpb.cos { background: rgba(255,255,255,.72); border: 1px solid rgba(20,16,60,.12); box-shadow: 0 24px 48px -28px rgba(20,16,60,.45); }
html.dark .hpb.cos { background: rgba(12,16,42,.72); border-color: rgba(255,201,71,.22); box-shadow: 0 24px 60px -30px rgba(0,0,0,.9); }
.hpb-top { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; margin-bottom: 50px; }   /* 10 Nov 2026: room for a 9.0 (the number used to touch "Overall") */
.hpb-ov { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 14px; background: #f0b429; color: #1a1400; font-weight: 800; font-size: 13px;
  box-shadow: 0 10px 20px -12px rgba(201,143,10,.9); }
.hpb-ov small { font-size: 12.5px; font-weight: 800; letter-spacing: .01em; }
.hpb-ov b { font-family: Anton, Impact, "Arial Narrow Bold", sans-serif; font-weight: 400; font-size: 24px; line-height: 1; background: #1a1400; color: #ffc947; padding: 4px 8px; border-radius: 9px; min-width: 46px; text-align: center; }
.hpb-ov.pop { animation: hpb-pop .6s cubic-bezier(.3,1.7,.5,1); }
@keyframes hpb-pop { 0% { transform: scale(1); } 35% { transform: scale(1.16) rotate(-3deg); } 100% { transform: none; } }
.hpb-eg { font-size: 11px; font-weight: 700; color: var(--gtx); border: 1px solid var(--grid); border-radius: 99px; padding: 2px 9px; }
.hpb-plot { position: relative; height: var(--H); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 6px 30px 22px; }
.hpb-grid { position: absolute; inset: 0 0 0 -22px; pointer-events: none; }
.hpb-grid i { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--grid); font: 700 9.5px/0 Inter, system-ui, sans-serif; font-style: normal; color: var(--gtx); }
/* the band numbers 9 · 8 · 7 · 6 at their heights: (band − 4) ÷ 5 of the plot */
.hpb-grid i:nth-child(1) { top: 0; } .hpb-grid i:nth-child(2) { top: 20%; } .hpb-grid i:nth-child(3) { top: 40%; } .hpb-grid i:nth-child(4) { top: 60%; }
.hpb-line { position: absolute; left: -6px; right: -6px; bottom: 0; height: 0; border-top: 2px dashed #f0b429; z-index: 3; pointer-events: none;
  transform: translateY(calc(var(--ov, .8) * var(--H) * -1)); transition: transform 1s cubic-bezier(.34,1.4,.5,1); }
.hpb-col { position: relative; min-width: 0; --c: var(--c-l); --t: var(--t-l); transition: none; }
.hpb-col.R { --c: var(--c-r); --t: var(--t-r); } .hpb-col.W { --c: var(--c-w); --t: var(--t-w); } .hpb-col.S { --c: var(--c-s); --t: var(--t-s); }
.hpb-trk { position: absolute; inset: 0; border-radius: 14px 14px 9px 9px; background: var(--trk); overflow: hidden; }
/* 10 Nov 2026 (owner): plain colour bars — no glass shine inside */
.hpb-bar { position: absolute; inset: 0; border-radius: 14px 14px 0 0; background: var(--c);
  transform: translateY(calc((1 - var(--p, .7)) * 100%)); transition: transform 1s cubic-bezier(.22,1.12,.36,1); transition-delay: inherit; will-change: transform; }
.hpb-v { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-family: Anton, Impact, "Arial Narrow Bold", sans-serif; font-weight: 400; font-size: 21px; line-height: 1; color: var(--t);
  transform: translateY(calc(var(--p, .7) * var(--H) * -1 - 8px)); transition: transform 1s cubic-bezier(.22,1.12,.36,1); transition-delay: inherit; z-index: 4; font-variant-numeric: tabular-nums; }
.hpb-k { position: absolute; left: 0; right: 0; bottom: -24px; text-align: center; font-size: 12px; font-weight: 800; color: var(--t); }
.hpb[data-style="bounce"] .hpb-bar, .hpb[data-style="bounce"] .hpb-v { transition-timing-function: cubic-bezier(.3,1.45,.45,1); transition-duration: 1.1s; }
.hpb[data-style="together"] .hpb-bar, .hpb[data-style="together"] .hpb-v { transition-timing-function: cubic-bezier(.45,0,.2,1); }
.hpb-sum { margin: 0; padding: 8px 10px; border-radius: 12px; background: var(--sum-bg); color: var(--sum-tx); font-size: 12.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .35s, transform .35s; }
.hpb-sum b { color: var(--ink2); font-weight: 800; }
.hpb-sum.out { opacity: 0; transform: translateY(4px); }
.hpb-fx { position: absolute; left: 70px; top: 26px; z-index: 6; width: 0; height: 0; pointer-events: none; }
.hpb-fx::before, .hpb-fx::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 2px; background: #f0b429; opacity: 0;
  box-shadow: 14px -16px 0 #ffc947, -16px -10px 0 #f0b429, 22px 6px 0 #ffd978, -20px 12px 0 #ffc947, 2px -24px 0 #f0b429; }
.hpb-fx::after { transform: rotate(45deg); box-shadow: 18px -6px 0 #ffd978, -10px -20px 0 #ffc947, 8px 18px 0 #f0b429; }
.hpb-fx.go::before, .hpb-fx.go::after { animation: hpb-burst .9s ease-out; }
@keyframes hpb-burst { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6) rotate(40deg); } }
/* where the bars sit */
:where(.lk-ui) .hm-hero.hp-hero { grid-template-columns: minmax(0, 1fr) auto; }
:where(.lk-ui) .hm-hero.hp-hero h1.hc-h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.03; letter-spacing: -.025em; text-wrap: balance; }
:where(.lk-ui) .hm-hero.hp-hero .mot { font-size: 16.5px; max-width: 46ch; margin-top: 12px; }
/* THE HEADLINE (10 Nov 2026, owner: "make it different in design and motion — it should attract students").
   The line rises out of a mask; then a gold highlighter paints behind the gold word ("best" / "eng yaxşi" / …), the word turns dark on it,
   a small star pops beside it and a soft shine passes over it now and then. Works in every language (it only styles .g).
   Weak phones and "reduce motion": the finished picture, no movement. */
:where(.lk-ui) .hm-hero.hp-hero h1.hc-h1 { font-weight: 850; letter-spacing: -.03em; }
:where(.lk-ui) .hm-hero.hp-hero h1.hc-h1 .g { position: relative; display: inline-block; padding: 0 .14em .02em; margin: 0 .02em; border-radius: .2em; color: #1a1400;
  background: linear-gradient(100deg, #ffd76a, #f0b429 55%, #e9a314) no-repeat 0 0 / 100% 100%; transform: rotate(-1.5deg);
  box-shadow: 0 .14em 0 #c98f0a, 0 .5em .7em -.45em rgba(201,143,10,.8); }
:where(.lk-ui) .hm-hero.hp-hero h1.hc-h1 .g::after { content: "✦"; position: absolute; right: -.42em; top: -.38em; font-size: .42em; line-height: 1; color: #f0b429; transform-origin: 50% 50%; }
html.dark :where(.lk-ui) .hm-hero.hp-hero h1.hc-h1 .g::after { color: #ffc947; }
:where(.lk-ui) .hm-hero.hp-hero h1.hc-h1 .g::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%) no-repeat -150% 0 / 60% 100%; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.lk-lite) :where(.lk-ui) .hm-hero.hp-hero h1.hc-h1 { animation: hc-rise .8s cubic-bezier(.2,.8,.2,1) backwards; }
  html:not(.lk-lite) :where(.lk-ui) .hm-hero.hp-hero h1.hc-h1 .g { animation: hc-mark .7s cubic-bezier(.3,.9,.3,1.15) .55s both; }
  html:not(.lk-lite) :where(.lk-ui) .hm-hero.hp-hero h1.hc-h1 .g::after { animation: hc-star .6s cubic-bezier(.3,1.8,.5,1) 1.15s both, hc-twinkle 3.2s ease-in-out 1.9s infinite; }
  html:not(.lk-lite) :where(.lk-ui) .hm-hero.hp-hero h1.hc-h1 .g::before { animation: hc-shine 7s ease-in-out 2.2s infinite; }
  html:not(.lk-lite) :where(.lk-ui) .hm-hero.hp-hero .mot { animation: hc-rise .8s cubic-bezier(.2,.8,.2,1) .15s backwards; }
  html.lk-hidden :where(.lk-ui) .hm-hero.hp-hero h1.hc-h1 .g::after, html.lk-hidden :where(.lk-ui) .hm-hero.hp-hero h1.hc-h1 .g::before { animation-play-state: paused; }
}
@keyframes hc-rise { from { opacity: 0; transform: translateY(18px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(-20% -10% -30% -10%); } }
@keyframes hc-mark { from { background-size: 0% 100%; color: var(--gold-num, #c98f0a); box-shadow: none; transform: rotate(0); } 60% { color: #1a1400; } to { background-size: 100% 100%; color: #1a1400; transform: rotate(-1.5deg); } }
@keyframes hc-star { from { opacity: 0; transform: scale(0) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes hc-twinkle { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.45) rotate(45deg); } 90% { transform: scale(.9) rotate(90deg); } }
@keyframes hc-shine { 0%, 80% { background-position: -150% 0; } 95%, 100% { background-position: 250% 0; } }
@media (max-width: 1000px) { :where(.lk-ui) .hm-hero.hp-hero { grid-template-columns: minmax(0, 1fr); } :where(.lk-ui) .hm-hero.hp-hero .hpb { order: 2; } }
@media (max-width: 420px) { .hpb { --H: 150px; padding: 12px; } .hpb-plot { gap: 10px; } .hpb-sum { font-size: 11.5px; } }
/* Cosmic: the bars on the right half of the first screen, over the star dust */
#hero-section .hp-cos-bars { grid-column: 2; justify-self: end; align-self: center; }
@media (max-width: 860px) { #hero-section .hp-cos-bars { grid-column: 1; justify-self: start; margin-top: 26px; } }

/* ── 3. THE HOMEPAGE CARDS (Classic): 4 big skills, then 4 more of the same size ── */
:where(.lk-ui) .sd-launch.hp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
:where(.lk-ui) .sd-launch.hp-cards + .sd-launch.hp-cards { margin-top: 26px; }
:where(.lk-ui) .sd-launch.hp-cards a { min-height: 164px; padding: 20px 20px 18px; gap: 12px; border-radius: 22px; }
:where(.lk-ui) .sd-launch.hp-cards a::before { height: 4px; }
:where(.lk-ui) .sd-launch.hp-cards a::after { width: 130px; height: 130px; right: -34px; bottom: -34px; }
:where(.lk-ui) .sd-launch.hp-cards .ic { width: 46px; height: 46px; border-radius: 14px; }
:where(.lk-ui) .sd-launch.hp-cards .nm { font-size: 18px; }
:where(.lk-ui) .sd-launch.hp-cards .band b { font-size: 34px; }
:where(.lk-ui) .sd-launch.hp-cards .band small { font-size: 12.5px; }
:where(.lk-ui) .sd-launch.hp-cards a > .go { width: 36px; height: 36px; right: 16px; bottom: 16px; }
:where(.lk-ui) .sd-launch.hp-cards a.hpM { --k: var(--gold-fill); --ks: var(--gold-soft); --ki: var(--gold-txt); --kn: var(--gold-txt); }
:where(.lk-ui) .sd-launch.hp-cards a.hpU { --k: #0ea5a0; --ks: #dcf7f5; --ki: #0b6f6b; --kn: #0b6f6b; }
html.dark :where(.lk-ui) .sd-launch.hp-cards a.hpU { --k: #2dd4bf; --ks: rgba(45,212,191,.13); --ki: #7eeadf; --kn: #7eeadf; }
@media (max-width: 760px) {
  :where(.lk-ui) .sd-launch.hp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  :where(.lk-ui) .sd-launch.hp-cards + .sd-launch.hp-cards { margin-top: 22px; }
  :where(.lk-ui) .sd-launch.hp-cards a { min-height: 148px; padding: 16px 15px 14px; }
  :where(.lk-ui) .sd-launch.hp-cards .ic { width: 42px; height: 42px; }
  :where(.lk-ui) .sd-launch.hp-cards .nm { font-size: 16.5px; }
  :where(.lk-ui) .sd-launch.hp-cards .band b { font-size: 30px; }
  :where(.lk-ui) .sd-launch.hp-cards .band small { display: inline; font-size: 11.5px; }
  :where(.lk-ui) .sd-launch.hp-cards a > .go { width: 32px; height: 32px; right: 12px; bottom: 12px; }
}

/* 28 Nov 2026 (gn3): the GENERAL IELTS card: one wide card under the eight, with an airmail stripe on top
   (includes/home_classic.php, class hpG). The arrow sits in the row, so it stays clear of the number. */
:where(.lk-ui) .sd-launch.hp-cards.hp-gen { grid-template-columns: minmax(0, 1fr); }
:where(.lk-ui) .sd-launch.hp-cards a.hpG { --k: #d63b3b; --ks: #fde8e6; --ki: #a12626; --kn: #a12626; flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 22px 18px 18px 20px; }
html.dark :where(.lk-ui) .sd-launch.hp-cards a.hpG { --k: #f87171; --ks: rgba(248,113,113,.13); --ki: #fca5a5; --kn: #fca5a5; }
:where(.lk-ui) .sd-launch.hp-cards a.hpG::before { height: 6px; background: repeating-linear-gradient(135deg, #d63b3b 0 10px, transparent 10px 16px, #2a5bd7 16px 26px, transparent 26px 32px); }
:where(.lk-ui) .sd-launch.hp-cards a.hpG .ic { flex: none; }
:where(.lk-ui) .sd-launch.hp-cards a.hpG .gt { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
:where(.lk-ui) .sd-launch.hp-cards a.hpG .sub { font-size: 13px; line-height: 1.4; color: var(--mute); overflow-wrap: anywhere; }
:where(.lk-ui) .sd-launch.hp-cards a.hpG .band { flex: none; margin: 0; text-align: right; }
:where(.lk-ui) .sd-launch.hp-cards a.hpG > .go { position: relative; right: auto; bottom: auto; flex: none; }
@media (max-width: 760px) {
  :where(.lk-ui) .sd-launch.hp-cards a.hpG { gap: 11px; padding: 18px 13px 14px 14px; }
  :where(.lk-ui) .sd-launch.hp-cards a.hpG .band b { font-size: 26px; }
  :where(.lk-ui) .sd-launch.hp-cards a.hpG .sub { font-size: 12px; }
}

/* ── 4. THE SMALL COMMUNITY CARD ────────────────────────────────────── */
.hpc2 { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px 22px; border-radius: 22px; overflow: hidden; }
.hpc2.cla { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); }
.hpc2.cla::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--brand), var(--gold-fill)); }
.hpc2.cos { max-width: 1180px; margin: 0 auto; color: #f2f3ff; background: rgba(12,16,42,.78); border: 1px solid rgba(255,201,71,.22); box-shadow: 0 20px 50px -30px rgba(0,0,0,.9); }
html:not(.dark) .hpc2.cos { color: #12102e; background: rgba(255,255,255,.82); border-color: rgba(20,16,60,.12); box-shadow: 0 20px 40px -28px rgba(20,16,60,.4); }
.hpc2-l { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.hpc2-ic { flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #6d4ee0, #9b85f2); color: #fff; box-shadow: 0 10px 20px -12px #6d4ee0; }
.hpc2-tx { min-width: 0; }
.hpc2-kick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 4px; font-size: 12.5px; font-weight: 700; }
.hpc2-live { display: inline-flex; align-items: center; gap: 7px; color: #0f9d6e; }
html.dark .hpc2-live, .hpc2.cos .hpc2-live { color: #34d399; } html:not(.dark) .hpc2.cos .hpc2-live { color: #0f9d6e; }
.hpc2-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hpc2-live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: hpc-ping 2s ease-out infinite; }
@keyframes hpc-ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.hpc2-new { padding: 2px 8px; border-radius: 999px; background: #f0b429; color: #1a1400; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hpc2 h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: inherit; }
.hpc2 h2 em { font-style: normal; color: #6d4ee0; }
html.dark .hpc2 h2 em, .hpc2.cos h2 em { color: #ffc947; } html:not(.dark) .hpc2.cos h2 em { color: #6d4ee0; }
.hpc2-lead { margin: 0 0 12px; font-size: 14px; color: var(--body, #c3c7e6); }
.hpc2.cos .hpc2-lead { color: #c3c7e6; } html:not(.dark) .hpc2.cos .hpc2-lead { color: #45436a; }
.hpc2-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hpc2-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 13px; background: #6d4ee0; color: #fff !important; font-weight: 700; font-size: 14.5px; text-decoration: none;
  transition: background-color .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.hpc2-btn:hover { background: #5b3ed0; transform: translateY(-1px); color: #fff !important; }
.hpc2-btn svg { transition: transform .2s; } .hpc2-btn:hover svg { transform: translateX(3px); }
.hpc2.cos .hpc2-btn { background: #ffc947; color: #1a1400 !important; } .hpc2.cos .hpc2-btn:hover { background: #f0b429; color: #1a1400 !important; }
.hpc2-week { font-size: 12.5px; color: var(--mute, #8b90b8); } .hpc2-week b { color: inherit; font-weight: 800; }
.hpc2-r { min-width: 0; }
.hpc2 .hpc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hpc2-empty { margin: 0; padding: 18px 12px; border-radius: 14px; text-align: center; font-size: 13.5px; color: var(--mute, #8b90b8); background: var(--sub, rgba(255,255,255,.04)); }
.hpc-msg { display: flex; gap: 9px; align-items: flex-start; }
.hpc-msg.in { animation: hpc-in .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes hpc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hpc-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: hsl(var(--h, 250) 62% 52%); }
.hpc-b { min-width: 0; flex: 1; padding: 7px 11px 8px; border-radius: 4px 14px 14px 14px; background: var(--sub, #f4f3fb); border: 1px solid var(--line2, #edecf5); }
.hpc2.cos .hpc-b { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); } html:not(.dark) .hpc2.cos .hpc-b { background: #f7f6fd; border-color: #e4e2f0; }
.hpc-msg.is-creator .hpc-b { border-color: #f0b429; background: #fffaf0; }
html.dark .hpc-msg.is-creator .hpc-b, .hpc2.cos .hpc-msg.is-creator .hpc-b { background: rgba(255,201,71,.08); border-color: rgba(255,201,71,.45); }
html:not(.dark) .hpc2.cos .hpc-msg.is-creator .hpc-b { background: #fffaf0; border-color: #f0b429; }
.hpc-who { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 7px; margin: 0 0 2px; font-size: 12px; }
.hpc-who b { font-size: 12.5px; }
.hpc-badge { padding: 1px 6px; border-radius: 999px; background: #f0b429; color: #1a1400; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hpc-meta { color: var(--mute, #8b90b8); font-size: 11px; margin-left: auto; }
.hpc-txt { margin: 0; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hpc2-rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hpc2-rooms a { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-size: 13.5px; font-weight: 700;
  color: var(--ink) !important; background: var(--sub, #f4f3fb); border: 1px solid var(--line, #e4e2f0); transition: border-color .15s, transform .15s; }
.hpc2-rooms a:hover { border-color: #6d4ee0; transform: translateY(-1px); }
.hpc2.cos .hpc2-rooms a { color: #fff !important; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
html:not(.dark) .hpc2.cos .hpc2-rooms a { color: #12102e !important; background: #f7f6fd; border-color: #e4e2f0; }
@media (max-width: 760px) { .hpc2 { grid-template-columns: 1fr; gap: 14px; padding: 18px 16px 16px 18px; } .hpc2 h2 { font-size: 20px; } .hpc2-ic { width: 44px; height: 44px; } }
@media (max-width: 420px) { .hpc-meta { margin-left: 0; width: 100%; } }
[dir="rtl"] .hpc2-btn svg { transform: scaleX(-1); }

/* ── 5. THE MOCK EXAMS BOX (Classic): every row the same ─────────────── */
.hmk { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.hmk-row { --k: var(--brand); --ks: var(--brand-soft); --ki: var(--brand-ink);
  border-radius: 16px; border: 1px solid var(--line); background: var(--sub); overflow: hidden; transition: border-color .15s, transform .15s; }
.hmk-row.M { --k: var(--gold-fill); --ks: var(--gold-soft); --ki: var(--gold-txt); }
.hmk-row.G { --k: var(--ok); --ks: var(--ok-soft); --ki: var(--ok); }
.hmk-row.B { --k: var(--brand); --ks: var(--brand-soft); --ki: var(--brand-ink); }
.hmk-row:hover { border-color: var(--k); }
.hmk-row.M { background: linear-gradient(120deg, var(--gold-soft), var(--sub) 70%); border-color: var(--gold-fill); }
.hmk-main { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; text-decoration: none; color: var(--ink); }
a.hmk-main:hover .hmk-fig { color: var(--ki); }
.hmk-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--ks); color: var(--ki); }
.hmk-row.M .hmk-ic { background: var(--gold-fill); color: var(--gold-ink); }
.hmk-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hmk-tx b { font-size: 15.5px; line-height: 1.25; }
.hmk-tx small { color: var(--body); font-size: 13px; line-height: 1.35; }
.hmk-fig { text-align: right; display: flex; flex-direction: column; align-items: flex-end; color: var(--ink); }
.hmk-fig b { font-family: var(--num-font); font-weight: 400; font-size: 22px; line-height: 1; color: var(--ki); letter-spacing: .01em; }
.hmk-fig small { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.hmk-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0 14px 13px 70px; }
.hmk-chips a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border-radius: 11px; text-decoration: none; font-size: 13px; font-weight: 700;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, background .15s; }
.hmk-chips a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.hmk-chips a:hover { border-color: var(--c); background: var(--cs); }
.hmk-chips .L { --c: var(--l); --cs: var(--l-soft); } .hmk-chips .R { --c: var(--r); --cs: var(--r-soft); }
.hmk-chips .W { --c: var(--w); --cs: var(--w-soft); } .hmk-chips .S { --c: var(--s); --cs: var(--s-soft); }
@media (max-width: 560px) {
  .hmk-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 14px; }
  .hmk-main { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .hmk-ic { width: 40px; height: 40px; }
}

/* ── 6. THE MOCK CARDS (Cosmic): Full mock, Quick practice, Question types ── */
.mocks.mk3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .mocks.mk3 { grid-template-columns: 1fr; } }
.mock .mk-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.mock .mk-chips a { display: flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 11px; font-size: 13px; font-weight: 700; text-decoration: none;
  color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); transition: background .15s, border-color .15s; }
.mock .mk-chips a:hover { background: rgba(255,201,71,.14); border-color: rgba(255,201,71,.5); }
html:not(.dark) .mock .mk-chips a { color: #12102e; background: rgba(255,255,255,.7); border-color: rgba(20,16,60,.14); }
.mock .mk-head { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .hp-watch i, .hpc2-live i::after, .hpc-msg.in, .hpb-ov.pop, .hpb-fx.go::before, .hpb-fx.go::after { animation: none; }
  .hp-m1, .hp-dash, .hp-dash-go, .hpb-bar, .hpb-v, .hpb-line, .hpb-sum, .hpc2-btn, .hmk-row { transition: none; }
}

/* ===== o8i (25 Nov 2026) ===== */
/* 1. Section titles are real headings now (<h2>): they keep exactly the old look. */
#sd-main h2.sec-lab { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; margin: 0; }
/* 2. Moving pictures that are off the screen stop (home_classic.php gives them .hp-off). Entrance moves keep running. */
.hp-off :not(.sd-rise):not(.sd-card):not(.lp), .hp-off *::before, .hp-off *::after { animation-play-state: paused !important; }
/* 3. Phones: the browser skips drawing the lower sections until you scroll near them. The sizes are first guesses;
      after the first look the browser remembers the real size ("auto"). The results wall is left out (its scroller measures itself). */
@supports (content-visibility: auto) {
  /* hpd1 (28 Nov 2026): Labs and Immersion are left out again: the box cut the posters' tilt and shadow at its edges (owner: "The cards are cut") */
  #sd-main > #support, #sd-main > #course, #sd-main > #contact { content-visibility: auto; contain-intrinsic-size: auto 500px; }
  #sd-main > #support { contain-intrinsic-size: auto 330px; }
  #sd-main > #course { contain-intrinsic-size: auto 250px; }
  #sd-main > #contact { contain-intrinsic-size: auto 265px; }
  @media (max-width: 620px) {
    #sd-main > #support { contain-intrinsic-size: auto 760px; }
    #sd-main > #course { contain-intrinsic-size: auto 500px; }
    #sd-main > #contact { contain-intrinsic-size: auto 325px; }
  }
}
/* 4. Phones: the round arrow no longer covers "full mock" / "words" on the skill cards. */
@media (max-width: 760px) {
  :where(.lk-ui) .sd-launch.hp-cards .band { flex-wrap: wrap; row-gap: 2px; padding-right: 40px; }
  :where(.lk-ui) .sd-launch.hp-cards .band b { white-space: nowrap; }
}
