/* Adventoria English — high-energy game UI inspired by Fortnite's visual rhythm. */
:root {
  --ink: #f7fbff;
  --muted: #b7c9e8;
  --purple: #18a9ff;
  --purple-dark: #0875c2;
  --lavender: #112e64;
  --yellow: #ffe53b;
  --mint: #4cf2a1;
  --danger: #ff5f78;
  --line: rgba(119, 200, 255, .28);
  --surface: #0d285b;
  --bg: #061634;
  --shadow: 0 22px 55px rgba(0, 6, 30, .45);
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

html { background: #061634; }

body {
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 94, 174, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 94, 174, .08) 1px, transparent 1px),
    radial-gradient(circle at 82% 5%, rgba(31, 170, 255, .38), transparent 25rem),
    radial-gradient(circle at -5% 55%, rgba(104, 43, 221, .32), transparent 28rem),
    linear-gradient(160deg, #071a3d 0%, #06132d 58%, #030c20 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .28;
  background: repeating-linear-gradient(116deg, transparent 0 74px, rgba(255,255,255,.025) 75px 76px);
}

button, input { font-family: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid var(--yellow) !important;
  outline-offset: 4px;
}

.app-shell { max-width: 1320px; padding: 0 28px 64px; }

.topbar {
  height: 82px;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(100, 196, 255, .18);
}

.brand { color: #fff; gap: 14px; }
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 0;
  clip-path: polygon(10% 0, 100% 0, 88% 100%, 0 100%);
  color: #09204a;
  background: var(--yellow);
  box-shadow: 7px 7px 0 #0d63a9;
  transform: skew(-4deg);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
}
.brand strong {
  color: #fff;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.brand small { color: #8edaff; font-size: .82rem; }

.streak, .icon-button {
  border: 1px solid rgba(138, 218, 255, .36);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(19, 59, 119, .95), rgba(8, 32, 76, .95));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 24px rgba(0,8,28,.25);
}
.streak { min-width: 78px; justify-content: center; }
.icon-button:hover { color: #09204a; background: var(--yellow); }

.hero {
  min-height: 330px;
  padding: 48px 54px;
  border: 1px solid rgba(133, 221, 255, .42);
  border-radius: 4px;
  clip-path: polygon(0 0, 96% 0, 100% 15%, 100% 100%, 4% 100%, 0 85%);
  background-image:
    linear-gradient(90deg, rgba(4, 22, 58, .96) 0%, rgba(8, 50, 112, .88) 48%, rgba(12, 85, 156, .3) 100%),
    url("fortnite-v2/island.webp");
  background-size: cover;
  background-position: center 48%;
  box-shadow: 0 0 0 5px rgba(15, 87, 159, .25), 0 28px 70px rgba(0, 6, 30, .52);
}
.hero::before {
  width: 520px;
  height: 520px;
  right: -120px;
  top: -250px;
  border: 58px solid rgba(42, 190, 255, .13);
}
.hero::after {
  width: 43%;
  height: 9px;
  left: 54px;
  right: auto;
  bottom: 34px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, var(--yellow), transparent);
}
.eyebrow {
  color: #7ed7ff;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
}
.hero .eyebrow { color: var(--yellow); }
.hero h1 {
  max-width: 760px;
  margin: 9px 0 13px;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(3rem, 6.8vw, 6.6rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: .012em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 5px 0 #0a4f8e, 0 12px 26px rgba(0,0,0,.42);
}
.hero p {
  max-width: 650px;
  color: #e9f7ff;
  font-size: 1.14rem;
  font-weight: 650;
  line-height: 1.48;
}
.hero-orbit { width: 220px; flex-basis: 220px; }
.mascot { font-size: 5.8rem; filter: drop-shadow(0 15px 18px rgba(0,0,0,.42)); }
.hero-orbit > span {
  border: 2px solid #fff;
  border-radius: 4px;
  color: #07204a;
  background: var(--yellow);
  box-shadow: 6px 7px 0 #0874bd;
  transform: rotate(-5deg);
}

.section-heading { margin: 46px 4px 20px; }
.section-heading h2 {
  margin-top: 4px;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.random-toggle { color: #d7e9ff; text-transform: uppercase; letter-spacing: .06em; }
.random-toggle span { border-radius: 4px; background: #183d78; }
.random-toggle span::after { border-radius: 2px; background: #b8c9df; }
.random-toggle input:checked + span { background: #109de8; }
.random-toggle input:checked + span::after { background: var(--yellow); }

.pack-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pack-card {
  position: relative;
  min-height: 158px;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(118, 203, 255, .34);
  border-radius: 4px;
  clip-path: polygon(0 0, 94% 0, 100% 18%, 100% 100%, 6% 100%, 0 82%);
  color: #fff;
  background: linear-gradient(145deg, #123f84, #081f4e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 18px 40px rgba(0,6,28,.32);
}
.pack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .2;
  background: linear-gradient(135deg, transparent 0 42%, #39c3ff 43% 44%, transparent 45% 100%);
}
.pack-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 18%;
  bottom: 0;
  height: 6px;
  z-index: -1;
  background: var(--yellow);
  transform: skewX(-35deg);
  transform-origin: left;
}
.pack-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: #8be1ff;
  box-shadow: 0 0 0 3px rgba(50, 191, 255, .18), 0 25px 55px rgba(0,5,25,.48);
}
.pack-card[data-pack="fortnite"] {
  background-image: linear-gradient(90deg, rgba(3,21,55,.93), rgba(10,44,94,.55)), url("fortnite-v2/team.webp");
  background-size: cover;
  background-position: center;
}
.pack-card[data-pack="colors"] { background: linear-gradient(135deg, #701fb4, #164fba 55%, #0ca6c8); }
.pack-card[data-pack="numbers"] { background: linear-gradient(135deg, #0e6fb9, #092551); }
.pack-visual {
  width: 82px;
  height: 82px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 4px;
  background: rgba(3, 18, 48, .68) !important;
  color: #fff !important;
  box-shadow: 6px 6px 0 rgba(0, 11, 39, .38);
}
.pack-info small { color: #bfe8ff; font-size: .82rem; font-weight: 750; }
.pack-info strong { color: #fff; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .035em; }
.pack-progress { height: 8px; border-radius: 2px; background: rgba(0, 12, 40, .56); }
.pack-progress i { border-radius: 0; background: linear-gradient(90deg, var(--yellow), #fff36a); box-shadow: 0 0 12px rgba(255,229,59,.55); }
.pack-go { font-size: 0; color: var(--yellow); }
.pack-go::after { content: "HRÁT"; font-size: .8rem; font-weight: 950; letter-spacing: .1em; }

.progress-panel {
  border: 1px solid rgba(112, 200, 255, .28);
  border-radius: 4px;
  background: linear-gradient(110deg, rgba(17,54,111,.96), rgba(7,28,69,.96));
  box-shadow: 0 20px 45px rgba(0,6,26,.25);
}
.progress-icon { border-radius: 4px; background: var(--yellow); }
.progress-copy h2 { color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.progress-copy p { color: var(--muted); }
.progress-ring { background: conic-gradient(var(--yellow) var(--percent), #173d76 0); }
.progress-ring::after { background: #0c285b; }

.session-head { margin: 18px 0; }
.back-button {
  padding: 11px 17px;
  border: 1px solid rgba(126,211,255,.35);
  border-radius: 3px;
  color: #fff;
  background: #0c2a5c;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.back-button::first-letter { font-size: inherit; }
.session-title > span { border-radius: 4px; background: #0e3a78; }
.session-title small, .counter { color: #9fc6ec; }
.session-title strong, .counter strong { color: #fff; text-transform: uppercase; }

.mode-tabs {
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(100,196,255,.18);
  border-radius: 4px;
  background: #061a40;
}
.mode-tabs button { border-radius: 2px; color: #9fc0df; text-transform: uppercase; letter-spacing: .045em; }
.mode-tabs button.active { color: #081c40; background: var(--yellow); box-shadow: 0 5px 0 #b98e00; }

.session-layout { gap: 18px; }
.word-card, .answer-panel {
  border: 1px solid rgba(120,205,255,.32);
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(155deg, rgba(17,57,118,.98), rgba(6,25,63,.98));
  box-shadow: 0 22px 56px rgba(0,5,25,.42);
}
.word-card { min-height: 600px; }
.visual-wrap {
  width: min(100%, 520px);
  height: 300px;
  border: 3px solid #fff;
  border-radius: 3px;
  background: #092554;
  box-shadow: 9px 9px 0 #0a6cac, 15px 15px 0 rgba(0,8,32,.34);
}
.number-visual { color: var(--yellow); font-size: 7rem; text-shadow: 0 6px 0 #0d6ead; }
.color-visual { border-radius: 3px; transform: skew(-3deg); }
.word-czech { color: #a9cae9; }
.word-english {
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(3.4rem, 6vw, 5rem);
  text-transform: uppercase;
  letter-spacing: .035em;
  text-shadow: 0 5px 0 #075e9e;
}
.phonetic { color: #afd0ef; }
.phonetic strong { border-radius: 3px; color: #09204a; background: var(--yellow); }
.sound-button {
  border: 1px solid rgba(126,211,255,.42);
  border-radius: 3px;
  color: #fff;
  background: #0b326d;
  text-transform: uppercase;
}
.sound-button.primary {
  border-color: var(--yellow);
  color: #071c42;
  background: var(--yellow);
  box-shadow: 0 6px 0 #ae8700, 0 14px 24px rgba(0,8,28,.28);
}
.swipe-hint, .panel-content > p { color: #a7c4e4; }
.tip-box { border: 1px solid #e3b81c; border-radius: 3px; color: #1a2946; background: #fff2a9; }

.answer-panel { position: relative; overflow: hidden; }
.answer-panel::before {
  content: "MISSION";
  position: absolute;
  top: 16px;
  right: -30px;
  width: 130px;
  padding: 4px 0;
  color: #071c42;
  background: var(--yellow);
  font-size: .72rem;
  font-weight: 950;
  text-align: center;
  letter-spacing: .14em;
  transform: rotate(34deg);
}
.panel-content h2 { color: #fff; text-transform: uppercase; letter-spacing: .025em; }
.mic-button, .check-button, .result-button.primary {
  border-radius: 3px;
  color: #061936;
  background: var(--yellow);
  box-shadow: 0 7px 0 #ad8600, 0 16px 28px rgba(0,5,25,.28);
  text-transform: uppercase;
  letter-spacing: .035em;
}
.mic-button small { color: #234269; }
.mic-button > span, .audio-wave { color: #fff; background: #0b4f91; }
.mic-button.listening { background: var(--mint); box-shadow: 0 7px 0 #188c59; }
.mic-button.processing { background: #53c7ff; }
.mic-button.mic-error { color: #fff; background: #e44360; box-shadow: 0 7px 0 #8b1f33; }
.feedback { border-radius: 3px; background: #0a214d; color: #b8d3ef; }
.feedback.good { color: #103525; background: #a7f9cf; }
.feedback.try { color: #472e00; background: #ffe59a; }
.feedback-title { color: #071a3d; }
.feedback-copy { color: #16375c; }
.feedback.result::after { color: #082a58; }
.mastery-button {
  border: 1px solid rgba(123,207,255,.3);
  border-radius: 3px;
  color: #fff;
  background: #0a2c61;
}
.mastery-button > span { border-radius: 2px; background: #174988; }
.mastery-button small { color: #a7c7e5; }
.mastery-button:hover, .mastery-button:focus-visible { border-color: var(--yellow); background: #113e7d; }
.next-button { border-radius: 3px; color: #0b3926; background: #84f4b9; }
.answer-field { border-color: #245797; border-radius: 3px; background: #061a40; }
.answer-field input { color: #fff; background: transparent; }
.answer-field input::placeholder { color: #86a8cb; }
.voice-answer, .result-button.secondary { border-color: #4e8fd0; border-radius: 3px; color: #fff; background: #0c326b; }
.counting-progress { border-radius: 2px; background: #15396f; }
.counting-progress i { border-radius: 0; background: linear-gradient(90deg, #19bdff, var(--yellow)); }
.counting-sequence { border-color: #319dd9; border-radius: 3px; color: #fff; background: #0a2a60; }

.modal-backdrop { background: rgba(1, 7, 24, .84); backdrop-filter: blur(10px); }
.modal {
  border: 1px solid rgba(126, 211, 255, .42);
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(155deg, #12366f, #061a40 70%);
  box-shadow: 0 0 0 6px rgba(21,114,188,.18), 0 35px 90px rgba(0,0,0,.58);
}
.modal h2 { color: #fff; font-family: Impact, Haettenschweiler, "Arial Black", sans-serif; font-size: 2.3rem; text-transform: uppercase; letter-spacing: .03em; }
.modal > p { color: #b9d1eb; }
.modal > p strong { color: var(--yellow); font-size: 1.15em; letter-spacing: .08em; }
.modal-close { border-radius: 3px; color: #fff; background: #0b2b60; }
.modal-close:hover { color: #071a3d; background: var(--yellow); }
.modal-note { border-radius: 3px; color: #a9c4df; background: #06152f; }
.modal-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 8px; color: var(--yellow); font-size: .78rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.modal-divider::before, .modal-divider::after { content: ""; height: 1px; flex: 1; background: rgba(125,207,255,.26); }
.toast { border: 1px solid #52c8ff; border-radius: 3px; color: #fff; background: #071d44; }

@media (max-width: 850px) {
  .app-shell { padding-inline: 18px; }
  .hero { padding: 42px 34px; min-height: 300px; }
  .hero-orbit { width: 140px; flex-basis: 140px; }
  .pack-grid { grid-template-columns: 1fr 1fr; }
  .session-layout { grid-template-columns: 1fr; }
  .word-card { min-height: auto; }
}

@media (max-width: 580px) {
  .app-shell { padding: 0 12px 36px; }
  .topbar { height: 68px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand strong { font-size: .98rem; }
  .streak { min-width: 62px; }
  .hero {
    min-height: 270px;
    padding: 30px 24px 38px;
    clip-path: polygon(0 0, 94% 0, 100% 12%, 100% 100%, 6% 100%, 0 88%);
  }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .hero p { max-width: 90%; font-size: 1rem; }
  .hero::after { left: 24px; bottom: 24px; }
  .hero-orbit { display: none; }
  .section-heading { align-items: end; margin-top: 32px; }
  .section-heading h2 { font-size: 1.85rem; }
  .random-toggle { font-size: .82rem; }
  .pack-grid { grid-template-columns: 1fr; }
  .pack-card { min-height: 132px; padding: 18px; }
  .pack-visual { width: 72px; height: 72px; }
  .pack-info strong { font-size: 1.22rem; }
  .progress-panel { padding: 18px; }
  .mode-tabs { margin-inline: -12px; padding-left: 12px; border-inline: 0; }
  .mode-tabs button { min-width: 148px; }
  .word-card { padding: 18px 14px 24px; border-radius: 3px; }
  .visual-wrap { width: 100%; height: min(66vw, 250px); margin-bottom: 24px; }
  .word-english { font-size: clamp(3rem, 15vw, 4.3rem); }
  .answer-panel { border-radius: 3px; }
  .modal { padding: 28px 18px; border-radius: 3px; }
  .modal h2 { padding-right: 28px; font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Access lobby and the newer mission/practice surfaces. */
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 24px;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(2,13,38,.98) 0 34%, rgba(2,16,46,.78) 56%, rgba(2,12,34,.92)),
    url("fortnite-v2/island.webp") center / cover no-repeat;
}
.access-gate::before {
  content: "ADVENTORIA // ENGLISH QUEST";
  position: fixed;
  top: 24px;
  left: 28px;
  color: rgba(147,220,255,.72);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
}
.access-card {
  width: min(610px, 100%);
  position: relative;
  padding: clamp(30px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(123,210,255,.45);
  border-radius: 4px;
  clip-path: polygon(0 0, 94% 0, 100% 7%, 100% 100%, 6% 100%, 0 93%);
  color: #fff;
  background: linear-gradient(155deg, rgba(19,64,132,.97), rgba(4,21,55,.98) 68%);
  box-shadow: 0 0 0 8px rgba(16,107,183,.18), 0 40px 100px rgba(0,0,0,.62);
}
.access-card::after {
  content: "LOBBY";
  position: absolute;
  top: 25px;
  right: -44px;
  width: 180px;
  padding: 7px 0;
  color: #071a3d;
  background: var(--yellow);
  font-size: .74rem;
  font-weight: 950;
  text-align: center;
  letter-spacing: .15em;
  transform: rotate(39deg);
}
.access-logo {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #071a3d;
  background: var(--yellow);
  box-shadow: 8px 8px 0 #0b70b8;
  font: 900 2rem/1 Impact, Haettenschweiler, "Arial Black", sans-serif;
  transform: skew(-5deg);
}
.access-card h1, .access-child-login h2 {
  margin: 8px 0 12px;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .025em;
  text-shadow: 0 5px 0 #075e9e;
}
.access-card > p, .access-child-login p { max-width: 52ch; color: #bad8f2; line-height: 1.55; }
.access-roles { display: grid; grid-template-columns: 1.3fr .8fr; gap: 12px; margin-top: 28px; }
.access-role {
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 22px;
  border: 1px solid rgba(127,211,255,.38);
  border-radius: 3px;
  clip-path: polygon(0 0, 92% 0, 100% 15%, 100% 100%, 0 100%);
  color: #fff;
  background: linear-gradient(145deg, #123f84, #081e4b);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.access-role.child { color: #071a3d; background: linear-gradient(145deg, #ffef58, #ffc619); border-color: #fff37d; box-shadow: 0 7px 0 #a97a00; }
.access-role > span { font-size: 2rem; align-self: start; }
.access-role strong { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.access-role small { color: inherit; opacity: .78; }
.access-role:hover { filter: brightness(1.08); transform: translateY(-3px); }
.access-child-login { display: grid; gap: 12px; margin-top: 20px; }
.access-player-label { color: var(--yellow); font-size: .75rem; font-weight: 950; letter-spacing: .14em; }
.access-back { justify-self: start; border: 1px solid rgba(130,211,255,.4); border-radius: 3px; padding: 9px 14px; color: #fff; background: #0a2a60; font-weight: 850; text-transform: uppercase; }
.access-child-login h2 { font-size: clamp(2.35rem, 6vw, 3.7rem); }
.access-child-login input {
  width: 100%;
  border: 2px solid #32bfff;
  border-radius: 3px;
  padding: 16px 18px;
  color: #fff;
  background: #041633;
  font-size: 2rem;
  font-weight: 950;
  text-align: center;
  letter-spacing: .45em;
}
.access-child-login input::placeholder { color: #6a90b9; }
.access-child-login button:last-child, .daily-mission-card > button, .practice-start-bar button {
  border: 0;
  border-radius: 3px;
  padding: 15px 20px;
  color: #071a3d;
  background: var(--yellow);
  box-shadow: 0 7px 0 #a87f00;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.access-message { min-height: 24px; margin-top: 14px; color: #ff9eb0; font-weight: 850; }

.daily-mission-card, .mission-learn-card, .practice-mode-picker, .practice-toolbar, .practice-question-card, .practice-final, .practice-start-bar {
  border: 1px solid rgba(120,205,255,.3);
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(150deg, rgba(17,57,118,.97), rgba(6,25,63,.98));
  box-shadow: 0 22px 55px rgba(0,5,25,.34);
}
.daily-mission-card { position: relative; overflow: hidden; }
.daily-mission-card { margin-top: 18px; padding: 28px; }
.daily-mission-top { display: flex; align-items: center; gap: 16px; padding-right: 76px; }
.daily-mission-icon { width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; font-size: 1.7rem; }
.daily-mission-copy h2 { margin: 4px 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); }
.daily-mission-copy p { margin: 0; }
.daily-mission-card::after { content: "DAILY"; position: absolute; right: -38px; top: 22px; width: 150px; padding: 5px 0; color: #071a3d; background: var(--yellow); font-size: .7rem; font-weight: 950; text-align: center; letter-spacing: .14em; transform: rotate(38deg); }
.daily-mission-icon, .progress-icon { color: #071a3d; background: var(--yellow); box-shadow: 5px 5px 0 #0b69ad; }
.daily-mission-copy h2, .simple-view-head h1, .practice-mode-picker h2, .practice-final h1 { color: #fff; text-transform: uppercase; letter-spacing: .025em; }
.daily-mission-copy p, .simple-view-head p, .practice-toolbar small, .practice-mode-option small, .mission-instruction { color: #b4cfe9; }
.mission-week-wrap, .daily-reward, .practice-mode-option, .practice-groups > section { border-color: rgba(122,207,255,.25); border-radius: 3px; background: #071f4b; }
.mission-week-wrap { margin-top: 20px; padding: 16px; border: 1px solid rgba(122,207,255,.25); }
.mission-week-title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mission-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.mission-day { min-width: 0; min-height: 58px; display: grid; place-items: center; gap: 2px; padding: 8px 4px; border: 1px solid #285d99; }
.mission-day strong, .mission-day small { display: block; text-align: center; }
.mission-day small { font-size: .68rem; }
.daily-reward { margin: 12px 0; padding: 12px 15px; border: 1px solid rgba(122,207,255,.25); }
.daily-mission-card > button { width: auto; min-width: 230px; }
.mission-week-title, .daily-reward { color: #b9d5ee; }
.mission-day { border-color: #285d99; color: #a7c6e4; background: #071a3d; }
.mission-day.done { color: #062b1d; background: #77edb0; }
.simple-view-head { color: #fff; }
.simple-view-head h1 { font-family: Impact, Haettenschweiler, "Arial Black", sans-serif; font-size: clamp(2.5rem, 6vw, 4.4rem); text-shadow: 0 5px 0 #075d9d; }
.mission-counter { border-radius: 3px; color: #071a3d; background: var(--yellow); box-shadow: 5px 5px 0 #0c69ab; }
.mission-learn-card { overflow: hidden; }
.mission-learn-card h2, .practice-question-card h2 { color: #fff; font-family: Impact, Haettenschweiler, "Arial Black", sans-serif; text-transform: uppercase; text-shadow: 0 4px 0 #075d9d; }
.mission-choices button { border-color: #2b6aa9; border-radius: 3px; color: #fff; background: #08285a; }
.mission-choices button:hover:not(:disabled) { border-color: var(--yellow); background: #123e7c; }
.mission-choices button.correct { color: #082d20; background: #83f2b9; }
.mission-choices button.wrong { color: #fff; background: #c73653; }
.spelling-tip { border-color: #d5a900; border-radius: 3px; color: #233453; background: #fff1a5; }
.practice-toolbar button, .practice-finish-early, .practice-final-actions button { border-color: #3b78b5; border-radius: 3px; color: #fff; background: #0b3068; }
.practice-mode-option { color: #fff; }
.practice-mode-option:has(input:checked) { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255,229,59,.22); }
.practice-mode-option input { accent-color: var(--yellow); }
.practice-start-bar { border-top-color: rgba(124,207,255,.35); }
.practice-start-bar button:disabled { color: #89a1b9; background: #244365; box-shadow: none; }
.practice-question-visual { border-radius: 3px; background: #082351; }
.practice-score { color: var(--yellow); text-shadow: 0 5px 0 #075d9d; }
.practice-metrics > div, .practice-mistakes { border-color: rgba(124,207,255,.22); border-radius: 3px; background: #071d46; }
.folder-back { border-radius: 3px; color: #fff; background: #0b2e65; text-transform: uppercase; font-size: .72rem; font-weight: 900; letter-spacing: .06em; }
.parent-setting, .parent-sync { border-color: rgba(124,207,255,.26); border-radius: 3px; background: #071b41; }
.parent-setting small, .parent-sync p, .parent-sync small { color: #aac6e1; }
.pair-row input, .czech-only-field input { border-color: #285d99; border-radius: 3px; color: #fff; background: #041633; }
.pair-row button, .parent-dashboard-link, .suggestion-actions button:first-child { border-radius: 3px; color: #071a3d; background: var(--yellow); font-weight: 900; text-transform: uppercase; }
.disconnect-button, .text-button, .suggestion-actions button:last-child { color: #b8d2eb; }

@media (max-width: 680px) {
  .access-gate { padding: 62px 12px 22px; align-items: start; }
  .access-gate::before { top: 20px; left: 16px; font-size: .62rem; }
  .access-card { padding: 28px 20px 34px; clip-path: polygon(0 0, 92% 0, 100% 5%, 100% 100%, 8% 100%, 0 95%); }
  .access-card h1 { font-size: 2.75rem; }
  .access-roles { grid-template-columns: 1fr; }
  .access-role { min-height: 112px; }
  .access-child-login input { font-size: 1.7rem; }
  .mode-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-inline: 0; padding: 5px; overflow: visible; }
  .mode-tabs button { min-width: 0; white-space: normal; }
  .mode-tabs button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .daily-mission-card, .mission-learn-card, .practice-mode-picker, .practice-toolbar, .practice-question-card, .practice-final { border-radius: 3px; }
  .daily-mission-card { padding: 20px 14px; }
  .daily-mission-top { align-items: flex-start; padding-right: 44px; }
  .daily-mission-icon { width: 46px; height: 46px; font-size: 1.3rem; }
  .mission-week { gap: 4px; }
  .mission-day { min-height: 52px; font-size: .8rem; }
  .daily-mission-card > button { width: 100%; min-width: 0; }
  .back-button span { display: inline !important; }
  .simple-view-head { align-items: start; }
}

/* White-mode lobby: bright Fortnite-like item-shop rhythm, with original Adventoria shapes. */
:root {
  --ink: #102451;
  --muted: #57729c;
  --purple: #0d8bff;
  --purple-dark: #0566c8;
  --lavender: #e9f5ff;
  --yellow: #ffe63d;
  --mint: #46dda0;
  --danger: #e63d65;
  --line: #b9d9f3;
  --surface: #ffffff;
  --bg: #eef8ff;
  --shadow: 0 20px 45px rgba(31, 104, 170, .16);
  color: var(--ink);
  background: var(--bg);
}
html { background: #eef8ff; }
body {
  color: var(--ink);
  background:
    linear-gradient(rgba(20,133,228,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,133,228,.065) 1px, transparent 1px),
    radial-gradient(circle at 88% 0, rgba(42,177,255,.2), transparent 28rem),
    radial-gradient(circle at 2% 48%, rgba(101,68,232,.1), transparent 25rem),
    linear-gradient(165deg, #fbfdff, #edf8ff 62%, #e8f4ff);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
  background-attachment: fixed;
}
body::before { opacity: .34; background: repeating-linear-gradient(116deg, transparent 0 92px, rgba(18,122,211,.035) 93px 95px); }
.topbar { border-bottom-color: #b8daf4; }
.brand { color: #102451; }
.brand strong { color: #102451; }
.brand small { color: #2878bb; }
.brand-mark { color: #102451; box-shadow: 7px 7px 0 #40aef3; }
.streak, .icon-button { border-color: #a9cfea; color: #102451; background: rgba(255,255,255,.92); box-shadow: 0 8px 22px rgba(35,114,180,.1); }
.streak strong { color: #102451; }

.hero {
  color: #fff;
  border-color: #188edf;
  background:
    linear-gradient(90deg, rgba(6,57,136,.98) 0 42%, rgba(7,90,176,.72) 65%, rgba(13,165,235,.45)),
    url("fortnite-v2/team.webp") center / cover no-repeat;
  box-shadow: 0 24px 55px rgba(17,91,164,.25);
}
.hero .eyebrow { color: #ffe63d; }
.hero h1 { color: #fff; }
.hero p { color: #e7f5ff; }
.hero::after { background: linear-gradient(90deg, #ffe63d, rgba(255,230,61,.18)); }
.hero-orbit > span { color: #102451; background: #ffe63d; }

.progress-panel, .daily-mission-card, .mission-learn-card, .practice-mode-picker, .practice-toolbar, .practice-question-card, .practice-final, .practice-start-bar,
.word-card, .answer-panel, .modal {
  color: #102451;
  border-color: #a9d2f0;
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 45px rgba(31,104,170,.14);
}
.progress-panel { background: linear-gradient(100deg, #fff, #f2f9ff); }
.progress-copy h2, .daily-mission-copy h2, .simple-view-head h1, .practice-mode-picker h2, .practice-final h1, .panel-content h2,
.mission-learn-card h2, .practice-question-card h2 { color: #102451; text-shadow: none; }
.progress-copy p, .daily-mission-copy p, .simple-view-head p, .practice-toolbar small, .practice-mode-option small, .mission-instruction, .panel-content > p { color: #58739c; }
.progress-ring::after { background: #fff; }
.progress-icon, .daily-mission-icon { color: #102451; box-shadow: 5px 5px 0 #47aceb; }
.mission-week-wrap, .daily-reward, .practice-mode-option, .practice-groups > section, .practice-metrics > div, .practice-mistakes {
  color: #102451;
  border-color: #b8d9f1;
  background: #eef8ff;
}
.mission-week-title, .daily-reward { color: #42658f; }
.mission-day { border-color: #9ac9ec; color: #315d8d; background: #fff; }
.mission-day.done { color: #063a27; background: #7bf0b6; }
.section-heading h2 { color: #102451; text-shadow: 0 3px 0 #c8e9ff; }
.section-heading .eyebrow, .progress-copy .eyebrow, .modal > .eyebrow, .panel-content > .eyebrow { color: #087ed5; }
.random-toggle { color: #47678e; }
.random-toggle span { background: #b8d8ee; }
.random-toggle input:checked + span { background: #0b9eff; }

.pack-card {
  border-color: #198cdf;
  background: linear-gradient(145deg, #fff, #eaf7ff);
  box-shadow: 0 12px 26px rgba(34,112,178,.12);
}
.pack-card::before { opacity: .09; background: linear-gradient(135deg, transparent 0 42%, #008ce8 43% 44%, transparent 45% 100%); }
.pack-card[data-pack="fortnite"] {
  color: #fff;
  border-color: #0577d2;
  background-image: linear-gradient(90deg, rgba(3,56,137,.94), rgba(8,118,199,.5)), url("fortnite-v2/team.webp");
}
.pack-card[data-pack="colors"] { color: #fff; background: linear-gradient(135deg, #7040dc, #147ce2 58%, #12b8db); }
.pack-card[data-pack="numbers"] { color: #fff; background: linear-gradient(135deg, #078edc, #0753a8); }
.pack-info small { color: #4e7198; }
.pack-info strong { color: #102451; }
.pack-card[data-pack="fortnite"] .pack-info small, .pack-card[data-pack="colors"] .pack-info small, .pack-card[data-pack="numbers"] .pack-info small { color: #d7efff; }
.pack-card[data-pack="fortnite"] .pack-info strong, .pack-card[data-pack="colors"] .pack-info strong, .pack-card[data-pack="numbers"] .pack-info strong { color: #fff; }
.pack-visual { border-color: #7cc9f4; color: #102451 !important; background: #fff !important; box-shadow: 6px 6px 0 #6dc0ef; }
.pack-progress { background: #cfe8f7; }
.pack-go { color: #087dd4; }
.pack-card[data-pack="fortnite"] .pack-go, .pack-card[data-pack="colors"] .pack-go, .pack-card[data-pack="numbers"] .pack-go { color: #ffe63d; }

.back-button, .folder-back { border-color: #9bc9e9; color: #154c7c; background: #fff; }
.session-title > span { background: #dff2ff; }
.session-title small, .counter { color: #5e7b9e; }
.session-title strong, .counter strong { color: #102451; }
.mode-tabs { border-color: #b8d9f0; background: #dff1fc; }
.mode-tabs button { color: #54749b; }
.mode-tabs button.active { color: #102451; background: #ffe63d; box-shadow: 0 5px 0 #d0a700; }
.word-card { background: #fff; }
.answer-panel { background: linear-gradient(160deg, #f8fcff, #eaf6ff); }
.visual-wrap { border-color: #168ddd; background: #e4f4ff; box-shadow: 9px 9px 0 #52b6ed, 15px 15px 0 rgba(33,114,180,.14); }
.word-czech { color: #52749b; }
.word-english { color: #0d4f9b; text-shadow: 0 4px 0 #bfe9ff; }
.phonetic { color: #5b7899; }
.phonetic strong { color: #102451; background: #ffe63d; }
.sound-button { border-color: #9bc9e9; color: #154c7c; background: #fff; }
.sound-button.primary, .mic-button, .check-button, .result-button.primary { color: #102451; background: #ffe63d; }
.swipe-hint { color: #5f7a99; }
.answer-panel::before { color: #102451; }
.mastery-button { border-color: #b3d6ee; color: #173d68; background: #fff; }
.mastery-button > span { background: #dff2ff; }
.mastery-button small { color: #6682a1; }
.mastery-button:hover, .mastery-button:focus-visible { border-color: #0b8fe5; background: #eff9ff; }
.feedback { color: #4d6e93; background: #edf6fc; }
.feedback.neutral { color: #4d6e93; background: #edf6fc; }
.answer-field, .pair-row input, .czech-only-field input { border-color: #9dcbe9; background: #fff; }
.answer-field input, .pair-row input, .czech-only-field input { color: #102451; }
.answer-field input::placeholder { color: #809bb4; }
.voice-answer, .result-button.secondary, .practice-toolbar button, .practice-finish-early, .practice-final-actions button { border-color: #99c9e9; color: #155184; background: #fff; }
.counting-progress { background: #d8ecf8; }
.counting-sequence { border-color: #83c5eb; color: #0c559d; background: #eaf7ff; }
.practice-mode-option { color: #102451; }
.practice-question-visual { background: #e6f5ff; }
.mission-choices button { border-color: #a8d1ec; color: #173f6b; background: #fff; }
.mission-choices button:hover:not(:disabled) { border-color: #087ed5; background: #edf8ff; }
.modal-backdrop { background: rgba(13,50,91,.42); }
.modal { background: #fff; }
.modal h2 { color: #102451; text-shadow: 0 3px 0 #c8e9ff; }
.modal > p, .parent-setting small, .parent-sync p, .parent-sync small { color: #58759a; }
.parent-setting, .parent-sync { border-color: #b7d8ef; background: #eef8ff; }
.modal-close { color: #164c7e; background: #e7f4fc; }
.modal-note { color: #557397; background: #edf6fc; }
.toast { border-color: #159be8; color: #fff; background: #0a4f99; }

.access-gate {
  background:
    linear-gradient(90deg, rgba(248,252,255,.98) 0 48%, rgba(239,249,255,.8) 67%, rgba(223,244,255,.58)),
    url("fortnite-v2/island.webp") right center / 66% auto no-repeat,
    #eef8ff;
}
.access-gate::before { color: #0875c4; }
.access-card {
  color: #102451;
  border-color: #5db7eb;
  background: rgba(255,255,255,.97);
  box-shadow: 0 0 0 8px rgba(26,145,222,.12), 0 40px 90px rgba(34,104,165,.22);
}
.access-logo { color: #102451; }
.access-card h1, .access-child-login h2 { color: #0d4f9b; text-shadow: 0 4px 0 #c0eaff; }
.access-card > p, .access-child-login p { color: #557399; }
.access-role { color: #fff; border-color: #168bd8; background: linear-gradient(145deg, #087fd5, #0955a8); }
.access-role.child { color: #102451; background: linear-gradient(145deg, #fff15b, #ffd328); border-color: #e4b800; }
.access-back { color: #155184; border-color: #9bc9e9; background: #fff; }
.access-child-login input { color: #102451; border-color: #0b91e3; background: #f7fcff; }
.access-child-login input::placeholder { color: #80a3bf; }

@media (max-width: 680px) {
  .access-gate { background: linear-gradient(rgba(248,252,255,.93), rgba(232,247,255,.97)), url("fortnite-v2/island.webp") center / cover no-repeat; }
  .hero { background-position: 60% center; }
  .pack-card:not([data-pack="fortnite"]):not([data-pack="colors"]):not([data-pack="numbers"]) { background: linear-gradient(145deg, #fff, #eaf7ff); }
}
