:root {
  --blue: #2456d6;
  --blue-dark: #0f1d36;
  --green: #16a36d;
  --yellow: #f4bd28;
  --coral: #ee6c4d;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e3f2;
  --soft: #f3f7fc;
  --white: #ffffff;
  --danger: #c93232;
  --shadow: 0 18px 44px rgba(18, 35, 63, 0.10);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.55;
  overflow-x: hidden;
}

body.panel-body {
  background:
    linear-gradient(180deg, #f8fbff 0%, #edf4fb 54%, #f7fafc 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--white);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  padding: 0.72rem 1rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #1746b8);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(35, 87, 212, 0.24);
}

.btn-secondary {
  background: #e7f8ef;
  color: #0d6846;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--blue-dark);
  background: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--blue-dark);
}

.btn-danger {
  background: #feecec;
  color: var(--danger);
}

.btn-small {
  min-height: 32px;
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
}

.btn.big {
  min-height: 52px;
  padding-inline: 1.3rem;
}

.btn.full {
  width: 100%;
}

.muted-link {
  color: var(--muted);
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  color: #12633f;
  background: #e7f8ef;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 70px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 230, 240, 0.8);
  backdrop-filter: blur(14px);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 750;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 820px);
  gap: 28px;
  min-height: calc(100vh - 84px);
  overflow: hidden;
  padding: clamp(48px, 8vw, 100px) clamp(18px, 5vw, 70px) clamp(34px, 6vw, 72px);
  align-content: end;
  background:
    linear-gradient(90deg, rgba(7, 20, 49, 0.88), rgba(7, 20, 49, 0.62) 52%, rgba(7, 20, 49, 0.18)),
    url("../images/liga-home-hero-v2.jpg") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(7, 20, 49, 0), rgba(7, 20, 49, 0.42));
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 780px;
  margin: 18px 0;
  color: #ffffff;
  font-size: 5rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
  max-width: 760px;
}

.hero-proof-row article {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  padding: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
}

.hero-proof-row strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.hero-proof-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 750;
}

.hero-game {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-game::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 50, 122, 0.05), rgba(18, 50, 122, 0.56));
}

.score-card,
.coin-card,
.mission-path {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(23, 32, 51, 0.18);
  backdrop-filter: blur(12px);
}

.score-card {
  left: 22px;
  right: 22px;
  bottom: 28px;
  padding: 18px;
}

.score-card span,
.coin-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.score-card strong {
  display: block;
  margin: 4px 0 12px;
  font-size: 1.15rem;
}

.coin-card {
  top: 24px;
  right: 24px;
  width: 146px;
  padding: 16px;
}

.coin-card strong {
  display: block;
  color: var(--green);
  font-size: 2rem;
}

.mission-path {
  left: 24px;
  top: 24px;
  display: flex;
  gap: 9px;
  padding: 12px;
}

.mission-path span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d7deea;
}

.mission-path .done {
  background: var(--green);
}

.mission-path .current {
  background: var(--yellow);
  outline: 4px solid rgba(244, 197, 66, 0.26);
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dde7f2;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow));
}

.progress.wide {
  max-width: 480px;
}

.section,
.section-grid,
.objective-band {
  padding: clamp(50px, 7vw, 90px) clamp(18px, 5vw, 70px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--white);
}

.section h2,
.section-grid h2,
.objective-band h2 {
  margin: 10px 0 14px;
  font-size: 2.7rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.section p,
.section-grid p,
.objective-band p {
  color: var(--muted);
}

.section.soft {
  background: #eef6f8;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.timeline,
.impact-list,
.cards,
.topic-grid,
.materials-grid {
  display: grid;
  gap: 16px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline article,
.impact-list article,
.feature-card,
.plan-card,
.panel-card,
.empty-public,
.materials-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
  box-shadow: 0 10px 28px rgba(20, 37, 71, 0.06);
}

.feature-card strong,
.plan-card strong,
.timeline strong,
.impact-list strong {
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.objective-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-dark), #167958);
}

.objective-band p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

.topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-grid span {
  display: flex;
  align-items: center;
  min-height: 70px;
  border: 1px solid #cae2dc;
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--white);
  font-weight: 850;
}

.empty-public {
  color: var(--muted);
  text-align: center;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--white);
}

.faq details + details {
  margin-top: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 0.5fr 0.5fr;
  gap: 28px;
  padding: 40px clamp(18px, 5vw, 70px);
  color: #dbe6f6;
  background: #111827;
}

.site-footer p,
.site-footer a,
.site-footer small {
  color: #b8c4d8;
}

.site-footer a,
.site-footer strong {
  display: block;
  margin-bottom: 8px;
}

.auth-screen {
  display: grid;
  grid-template-columns: minmax(320px, 470px) minmax(360px, 1fr);
  min-height: 100vh;
  background: #f5f8fc;
}

.auth-screen.single {
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 62px);
  background: var(--white);
}

.auth-panel h1 {
  margin: 10px 0 6px;
  font-size: 2.4rem;
  line-height: 1;
}

.auth-panel p {
  color: var(--muted);
}

.auth-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(35, 87, 212, 0.82), rgba(31, 157, 107, 0.82)),
    url("../images/liga-home-hero-v2.jpg") center/cover;
}

.auth-badges {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-self: end;
  margin-bottom: 80px;
}

.auth-badges span {
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 900;
}

.form-card,
.stack-form,
.question-form,
.inline-form,
.quiz-form {
  display: grid;
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: var(--radius);
  padding: 0.78rem 0.9rem;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(35, 87, 212, 0.14);
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.flash {
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 800;
}

.flash.success {
  color: #0d6846;
  background: #e6f8ef;
}

.flash.error {
  color: #9d2222;
  background: #fff0f0;
}

.app-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  padding: 18px 16px;
  background:
    linear-gradient(180deg, #101b31 0%, #101827 58%, #0b1220 100%);
  color: var(--white);
  box-shadow: 14px 0 34px rgba(15, 29, 54, 0.18);
}

.sidebar .brand {
  flex: 0 0 auto;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.brand-art {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: visible;
}

.brand-art img {
  width: 58px;
  max-width: none;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
}

.panel-brand {
  gap: 12px;
}

.sidebar .brand strong {
  color: #f8fbff;
  line-height: 1.1;
}

.sidebar .brand small {
  color: #9fb0cc;
}

.sidebar-nav {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 6px 0;
  scrollbar-color: #42506a transparent;
  scrollbar-width: thin;
}

.sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #42506a;
}

.nav-section {
  display: grid;
  gap: 4px;
}

.nav-section strong {
  margin: 4px 8px 2px;
  color: #8395b6;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav a,
.logout-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border-radius: var(--radius);
  padding: 0.42rem 0.54rem;
  color: #cbd6e7;
  font-size: 0.94rem;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #b8c7e1;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0;
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  transform: translateX(2px);
}

.sidebar-nav a.active .nav-icon {
  border-color: rgba(244, 189, 40, 0.45);
  background: linear-gradient(135deg, var(--yellow), #ffd966);
  color: #352800;
}

.logout-link {
  flex: 0 0 auto;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.08);
}

.logout-link::before {
  content: "SA";
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #b8c7e1;
  font-size: 0.66rem;
  font-weight: 950;
}

.panel-main {
  min-width: 0;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 16px clamp(18px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(14px);
}

.topbar h1 {
  margin: 0;
  color: #101828;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: 0;
}

.topbar p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  background: var(--white);
  font-weight: 900;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(18, 35, 63, 0.06);
}

.user-pill span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #e7f8ef;
  color: #12633f;
  font-weight: 900;
}

.user-pill strong {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-area {
  padding: clamp(18px, 4vw, 34px);
  max-width: 100%;
  overflow-x: hidden;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.metric-card {
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.98));
  box-shadow: 0 14px 34px rgba(18, 35, 63, 0.08);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.metric-card strong {
  display: block;
  margin: 8px 0 2px;
  color: #10224a;
  font-size: 2rem;
  line-height: 1;
}

.metric-card small {
  color: var(--muted);
}

.grid-two,
.grid-form-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.grid-form-list {
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  align-items: start;
}

.panel-card {
  min-width: 0;
  margin-bottom: 20px;
  border-color: #d8e4f2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(252, 254, 255, 0.99));
  box-shadow: 0 16px 40px rgba(18, 35, 63, 0.08);
}

.panel-card h2 {
  margin: 0 0 16px;
  color: #10224a;
  font-size: 1.18rem;
  font-weight: 950;
  letter-spacing: 0;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.card-heading h2,
.card-heading p {
  margin: 0;
}

.card-heading p,
.card-heading span {
  color: var(--muted);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e3ebf5;
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #526276;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
  background: #f7fafc;
}

td small {
  display: block;
  color: var(--muted);
}

code {
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  color: #124064;
  background: #edf5ff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions form {
  display: inline;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.28rem 0.64rem;
  font-size: 0.78rem;
  font-weight: 900;
  background: #eef2f7;
  color: #475467;
  white-space: nowrap;
}

.status.active,
.status.published,
.status.completed {
  color: #0d6846;
  background: #e6f8ef;
}

.status.inactive,
.status.draft,
.status.locked {
  color: #8f3f12;
  background: #fff2df;
}

.empty-state {
  border: 1px dashed #b8c4d8;
  border-radius: var(--radius);
  padding: 20px;
  color: var(--muted);
  background: #f8fafc;
}

.empty-state strong {
  display: block;
  color: var(--ink);
}

.lesson-list,
.class-list,
.activity-feed,
.ranking-list,
.badge-grid,
.mission-cards,
.mission-list {
  display: grid;
  gap: 12px;
}

.lesson-list article,
.class-list article,
.activity-feed article,
.ranking-list article,
.mission-list > article {
  border: 1px solid #dae7f2;
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfdff;
  box-shadow: 0 8px 20px rgba(18, 35, 63, 0.04);
}

.lesson-list article,
.mission-head,
.ranking-list article {
  display: flex;
  gap: 12px;
  align-items: center;
}

.module-number,
.ranking-list article > span {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #173d9c);
  font-weight: 900;
}

.ranking-list article {
  justify-content: space-between;
}

.ranking-list article.me {
  border-color: #9ddfbe;
  background: #f0fbf5;
}

.ranking-list article b {
  white-space: nowrap;
  color: var(--green);
}

.ranking-list.large article {
  padding: 18px;
}

.ranking-list.attention article > span {
  background: var(--coral);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 850;
}

.detail-list dd {
  margin: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-radius: var(--radius);
}

.tabs a {
  border: 1px solid #d7e2ef;
  border-radius: var(--radius);
  padding: 0.55rem 0.82rem;
  background: #fbfdff;
  font-weight: 850;
  box-shadow: 0 6px 14px rgba(18, 35, 63, 0.04);
}

.tabs a.active {
  border-color: var(--blue);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #1746b8);
}

.inline-form {
  grid-template-columns: 1fr auto;
  margin-bottom: 16px;
}

.question-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.question-form .full {
  grid-column: 1 / -1;
}

.materials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.materials-grid article span {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.materials-grid article strong {
  display: block;
  margin: 8px 0;
  font-size: 1.05rem;
}

.materials-grid details {
  margin-top: 12px;
}

.student-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border: 1px solid #b9dfd1;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  color: #0f2a22;
  background:
    linear-gradient(120deg, rgba(231, 248, 239, 0.96), rgba(255, 247, 212, 0.92)),
    var(--white);
  box-shadow: 0 18px 42px rgba(18, 35, 63, 0.09);
}

.student-hero.with-art {
  grid-template-columns: auto minmax(0, 1fr) minmax(160px, 220px) auto;
}

.student-hero-art {
  width: 100%;
  height: 128px;
  min-width: 0;
  max-width: 220px;
  border: 6px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(18, 35, 63, 0.10);
}

.student-hero h2 {
  margin: 8px 0;
  font-size: 2.15rem;
  letter-spacing: 0;
}

.student-avatar {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 6px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--avatar-color);
  box-shadow: var(--shadow);
  font-size: 2.8rem;
  font-weight: 950;
}

.student-wallet {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 12px;
  min-width: 160px;
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid #e3ebf5;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(18, 35, 63, 0.07);
}

.student-wallet strong {
  color: var(--blue);
  font-size: 1.6rem;
}

.student-wallet span {
  align-self: center;
  color: var(--muted);
  font-weight: 850;
}

.student-metrics {
  grid-template-columns: repeat(4, minmax(145px, 1fr));
}

.mission-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mission-cards article,
.badge-grid article {
  border: 1px solid #dae7f2;
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 10px 24px rgba(18, 35, 63, 0.05);
}

.mission-cards article span,
.mission-list article > span {
  color: var(--green);
  font-weight: 900;
}

.mission-cards article strong {
  display: block;
  min-height: 48px;
  margin: 6px 0 12px;
}

.mission-cards article.locked,
.mission-list > article.locked,
.badge-grid article.locked {
  opacity: 0.62;
  filter: grayscale(0.35);
}

.mission-list > article {
  display: grid;
  gap: 14px;
}

.activity-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mission-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border: 1px solid #cbd8eb;
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  background: var(--white);
  font-weight: 900;
}

.mission-action small {
  color: var(--muted);
  font-weight: 800;
}

.mission-action.done {
  border-color: #8ad4af;
  background: #effaf5;
}

.mission-action.locked {
  color: #79859a;
  background: #f2f4f7;
}

.badge-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.badge-grid article {
  display: grid;
  gap: 8px;
}

.badge-grid article span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #5a3c00;
  background: var(--yellow);
  font-weight: 950;
}

.badge-grid article small,
.badge-grid article em {
  color: var(--muted);
  font-style: normal;
}

.badge-grid.all {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.badge-grid .earned {
  border-color: #8ad4af;
  background: #f5fff9;
}

.activity-play > p {
  color: var(--muted);
}

.quiz-form {
  gap: 18px;
}

.quiz-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fbfcff;
}

.quiz-form fieldset.correct {
  border-color: #8ad4af;
  background: #f1fbf6;
}

.quiz-form fieldset.wrong {
  border-color: #f2b4a5;
  background: #fff6f3;
}

.quiz-form legend {
  padding: 0 6px;
  font-weight: 900;
}

.answer-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--white);
}

.answer-option input {
  width: auto;
  margin-top: 6px;
}

.answer-feedback {
  margin-top: 12px;
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.certificate-panel {
  display: grid;
  place-items: center;
  gap: 20px;
}

.certificate-paper {
  width: min(780px, 100%);
  border: 10px solid #f2d481;
  border-radius: var(--radius);
  padding: clamp(28px, 6vw, 60px);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 245, 255, 0.96)),
    var(--white);
  box-shadow: var(--shadow);
}

.certificate-paper span {
  color: var(--green);
  font-weight: 950;
  text-transform: uppercase;
}

.certificate-paper h2 {
  margin: 10px 0;
  font-size: 3rem;
  color: var(--blue-dark);
}

.certificate-paper strong {
  display: block;
  margin: 12px 0;
  font-size: 2.35rem;
}

.certificate-paper code {
  display: inline-flex;
  margin-top: 14px;
  font-size: 1rem;
}

.fincoin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-color: #b8e0cf;
  background:
    linear-gradient(120deg, rgba(241, 255, 248, 0.95), rgba(255, 249, 224, 0.92)),
    var(--white);
  position: relative;
  overflow: hidden;
}

.fincoin-banner::after {
  content: "$";
  position: absolute;
  right: 28px;
  bottom: -38px;
  color: rgba(244, 189, 40, 0.18);
  font-size: 9rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.fincoin-banner h2 {
  margin: 8px 0;
  color: var(--blue-dark);
  font-size: 2.3rem;
}

.fincoin-banner p {
  margin: 0;
  color: var(--muted);
}

.visual-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 24vw, 310px);
  gap: 16px;
  align-items: center;
  overflow: hidden;
  border-color: #d7e3ef;
  padding: clamp(16px, 2.5vw, 22px);
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(239, 247, 255, 0.94)),
    var(--white);
}

.visual-banner .visual-copy {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.visual-banner h2 {
  margin: 0;
  color: #10224a;
  font-size: 1.9rem;
  line-height: 1.04;
}

.visual-banner p {
  max-width: 720px;
  margin: 0;
  color: #5f6d7e;
  font-size: 0.98rem;
}

.visual-banner .visual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.visual-banner .visual-image {
  width: 100%;
  height: clamp(120px, 18vw, 210px);
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(18, 35, 63, 0.12);
}

.visual-banner.compact .visual-copy,
.visual-banner.compact .visual-image {
  min-height: 0;
}

.visual-banner.compact .visual-image {
  height: clamp(108px, 15vw, 170px);
}

.dashboard-visual {
  background:
    linear-gradient(135deg, rgba(242, 255, 248, 0.98), rgba(255, 250, 229, 0.94)),
    var(--white);
}

.auction-visual {
  background:
    linear-gradient(135deg, rgba(241, 248, 255, 0.98), rgba(255, 248, 232, 0.95)),
    var(--white);
}

.store-visual {
  background:
    linear-gradient(135deg, rgba(255, 250, 232, 0.98), rgba(240, 255, 248, 0.94)),
    var(--white);
}

.certificate-visual {
  background:
    linear-gradient(135deg, rgba(255, 249, 228, 0.98), rgba(238, 247, 255, 0.94)),
    var(--white);
}

.exam-visual {
  background:
    linear-gradient(135deg, rgba(239, 247, 255, 0.98), rgba(255, 250, 230, 0.94)),
    var(--white);
}

.quiz-visual {
  background:
    linear-gradient(135deg, rgba(238, 248, 255, 0.98), rgba(242, 255, 248, 0.94)),
    var(--white);
}

@media (max-width: 1180px) {
  .student-hero.with-art {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .student-hero.with-art .student-hero-art {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    height: 150px;
    order: 4;
  }

  .teacher-command.visual-command {
    flex-wrap: wrap;
  }

  .command-art {
    flex-basis: 240px;
    height: 136px;
  }
}

.fincoin-group-grid,
.store-grid,
.print-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fincoin-group-grid article,
.fincoin-group-grid a,
.store-grid article,
.print-card-grid article {
  display: grid;
  gap: 7px;
  border: 1px solid #dae7f2;
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 12px 28px rgba(18, 35, 63, 0.06);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.fincoin-group-grid a:hover,
.store-grid article:hover {
  border-color: rgba(22, 163, 109, 0.45);
  box-shadow: 0 16px 32px rgba(18, 35, 63, 0.10);
  transform: translateY(-2px);
}

.fincoin-group-grid a.active {
  border-color: var(--green);
  background: #f1fbf6;
}

.fincoin-group-grid span,
.store-grid span,
.print-card-grid small {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.fincoin-group-grid b,
.store-grid b {
  color: #1442a4;
  font-size: 1.12rem;
}

.teacher-command {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.teacher-command.visual-command {
  align-items: center;
  border: 1px solid #dce7f3;
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.95)),
    var(--white);
  box-shadow: 0 16px 38px rgba(18, 35, 63, 0.08);
}

.teacher-command.visual-command > div:first-child {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.command-art {
  flex: 0 1 300px;
  width: clamp(180px, 24vw, 300px);
  height: 150px;
  min-width: 0;
  min-height: 0;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(18, 35, 63, 0.12);
}

.teacher-command h2 {
  margin: 8px 0 4px;
  color: #10224a;
  font-size: 2.1rem;
  line-height: 1.05;
}

.teacher-command p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.command-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(100%, 360px);
}

.tabs.compact {
  justify-content: flex-end;
}

.tabs.compact a {
  min-height: 36px;
  padding: 0.42rem 0.66rem;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.42rem 0.72rem;
  color: #10224a;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(18, 35, 63, 0.05);
  font-weight: 850;
}

.liga-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.liga-metric {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 118px;
  border: 1px solid #dae7f2;
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 16px 34px rgba(18, 35, 63, 0.08);
}

.metric-symbol {
  display: grid;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(18, 35, 63, 0.12);
}

.metric-symbol img {
  width: 66px;
  max-width: none;
  filter: drop-shadow(0 10px 14px rgba(92, 67, 0, 0.22));
}

.liga-metric.green .metric-symbol {
  background: linear-gradient(135deg, #1faa73, #0d7b52);
}

.liga-metric.gold .metric-symbol {
  color: #4d3700;
  background: linear-gradient(135deg, #ffd966, var(--yellow));
}

.liga-metric.gold .metric-coin {
  background: transparent;
  box-shadow: none;
}

.liga-metric.blue .metric-symbol {
  background: linear-gradient(135deg, #4b82ff, #1746b8);
}

.liga-metric.coral .metric-symbol {
  background: linear-gradient(135deg, #ff8b73, var(--coral));
}

.liga-metric strong {
  display: block;
  color: #10224a;
  font-size: 1.85rem;
  line-height: 1;
}

.liga-metric p {
  margin: 6px 0 0;
  color: #526276;
  line-height: 1.25;
}

.teacher-liga-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) minmax(280px, 0.78fr) minmax(260px, 0.62fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.ranking-panel,
.dashboard-side-stack,
.next-lesson-card {
  min-height: 100%;
}

.group-ranking {
  display: grid;
  gap: 12px;
}

.group-ranking article {
  display: grid;
  grid-template-columns: 32px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf2f7;
  padding: 10px 0;
}

.group-ranking article:last-child {
  border-bottom: 0;
}

.rank-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #5c4300;
  background: #ffdf70;
  font-size: 0.84rem;
  font-weight: 950;
}

.group-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), #0d7b52);
  font-weight: 950;
  text-transform: uppercase;
}

.group-ranking strong {
  display: block;
  color: #10224a;
}

.group-ranking small {
  display: block;
  color: var(--muted);
}

.group-ranking b {
  color: #10224a;
  white-space: nowrap;
}

.rank-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  margin-top: 7px;
  background: #e7edf5;
}

.rank-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #46c58d);
}

.dashboard-side-stack {
  display: grid;
  gap: 20px;
}

.balance-spotlight {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, #ffffff 0%, #fff8dd 100%);
}

.balance-spotlight span {
  color: #526276;
  font-weight: 850;
}

.balance-spotlight strong {
  display: block;
  margin: 10px 0 2px;
  color: #10224a;
  font-size: 2.7rem;
  line-height: 1;
}

.balance-spotlight p {
  margin: 0;
  color: var(--green);
  font-weight: 850;
}

.coin-emblem {
  flex: 0 0 auto;
  width: 118px;
  height: 118px;
  object-fit: contain;
  align-self: center;
  opacity: 0.9;
  filter: drop-shadow(0 16px 22px rgba(92, 67, 0, 0.22));
}

.journey-card .card-heading strong {
  color: var(--green);
  font-size: 1.2rem;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(8, minmax(24px, 1fr));
  gap: 8px;
  margin: 18px 0 12px;
}

.journey-steps span {
  display: grid;
  min-height: 32px;
  place-items: center;
  border: 1px solid #d7e2ef;
  border-radius: 999px;
  color: #526276;
  background: #f8fafc;
  font-size: 0.82rem;
  font-weight: 900;
}

.journey-steps .done {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
}

.journey-steps .current {
  border-color: var(--yellow);
  color: #5c4300;
  background: #fff3bd;
}

.next-lesson-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.next-lesson-card > strong {
  width: fit-content;
  border-radius: 6px;
  padding: 0.26rem 0.48rem;
  color: var(--white);
  background: var(--blue);
  font-size: 0.82rem;
}

.next-lesson-card p {
  color: #42526b;
}

.quick-actions-panel {
  margin-bottom: 20px;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(100px, 1fr));
  gap: 12px;
}

.quick-action-grid a {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 132px;
  border: 1px solid #dce8f4;
  border-radius: var(--radius);
  padding: 14px 10px;
  color: #10224a;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  text-align: center;
  box-shadow: 0 10px 24px rgba(18, 35, 63, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quick-action-grid a:hover {
  border-color: rgba(22, 163, 109, 0.42);
  box-shadow: 0 16px 34px rgba(18, 35, 63, 0.10);
  transform: translateY(-2px);
}

.quick-action-grid span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), #0d7b52);
  font-size: 0.78rem;
  font-weight: 950;
}

.quick-action-grid strong {
  line-height: 1.12;
}

.quick-action-grid small {
  color: var(--muted);
  line-height: 1.25;
}

.rule-list {
  display: grid;
  gap: 10px;
}

.rule-list p {
  margin: 0;
  border-left: 4px solid var(--yellow);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--muted);
  background: #fffaf0;
}

.mini-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mini-form input,
.mini-form select {
  width: auto;
  min-width: 92px;
  padding: 0.5rem 0.6rem;
}

.material-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.material-list small {
  display: block;
  color: var(--muted);
}

.presentation-screen {
  min-height: calc(100vh - 160px);
}

.presentation-hero {
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 56px);
  margin-bottom: 20px;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-dark), var(--green));
}

.presentation-hero .eyebrow {
  color: #5a3c00;
  background: var(--yellow);
}

.presentation-hero h2 {
  margin: 12px 0;
  font-size: 4.4rem;
  line-height: 1;
}

.presentation-hero p {
  max-width: 900px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
}

.presentation-note {
  color: var(--muted);
}

.certificate-validator {
  width: min(560px, 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media print {
  .sidebar,
  .topbar,
  .btn,
  .logout-link {
    display: none !important;
  }

  .app-shell,
  .panel-main {
    display: block;
  }

  .content-area {
    padding: 0;
  }

  .panel-card {
    break-inside: avoid;
    box-shadow: none;
  }
}

@media (max-width: 1180px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(145px, 1fr));
  }

  .liga-metrics-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .teacher-liga-grid {
    grid-template-columns: 1fr;
  }

  .quick-action-grid {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }

  .cards.three,
  .materials-grid,
  .badge-grid.all {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero,
  .section-grid,
  .grid-two,
  .grid-form-list,
  .auth-screen,
  .visual-banner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-game {
    min-height: 430px;
  }

  .auth-art {
    min-height: 360px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    width: min(300px, 82vw);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar {
    align-items: flex-start;
  }

  .user-pill strong {
    display: none;
  }

  .student-hero {
    grid-template-columns: 1fr;
  }

  .student-hero.with-art {
    grid-template-columns: 1fr;
  }

  .student-hero-art,
  .visual-banner .visual-image {
    min-width: 0;
    width: 100%;
    height: 150px;
    max-height: 180px;
  }

  .student-wallet {
    width: 100%;
  }

  .teacher-command {
    flex-direction: column;
  }

  .command-art {
    width: 100%;
    min-width: 0;
    height: 150px;
    max-height: 180px;
  }

  .command-side {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-game {
    min-height: 360px;
  }

  .coin-card {
    width: 126px;
  }

  .objective-band,
  .card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cards.three,
  .topic-grid,
  .metrics-grid,
  .liga-metrics-grid,
  .hero-proof-row,
  .student-metrics,
  .mission-cards,
  .fincoin-group-grid,
  .store-grid,
  .print-card-grid,
  .activity-buttons,
  .badge-grid,
  .badge-grid.all,
  .materials-grid,
  .question-form,
  .inline-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-ranking article {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .group-ranking .group-mark,
  .group-ranking b {
    display: none;
  }

  .journey-steps {
    grid-template-columns: repeat(4, minmax(34px, 1fr));
  }

  .content-area {
    padding: 16px;
  }

  .topbar {
    min-height: 72px;
    padding: 14px 16px;
  }

  .topbar h1 {
    font-size: 1.18rem;
  }

  .panel-card,
  .metric-card {
    padding: 16px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .actions .btn,
  .actions form,
  .actions button {
    width: 100%;
  }
}

/* Liga dos FinCoins v3: image-led classroom experience */

body.panel-body {
  min-width: 320px;
  background: #eef3f8;
}

.app-frame {
  min-height: 100vh;
}

.app-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid #d9e2ed;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(15, 35, 67, 0.06);
  backdrop-filter: blur(16px);
}

.app-header-main,
.app-nav {
  width: min(1600px, 100%);
  margin-inline: auto;
}

.app-header-main {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 10px clamp(18px, 3vw, 44px);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 230px;
}

.app-brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(17, 65, 132, 0.18);
}

.app-brand span,
.app-brand strong,
.app-brand small,
.user-menu span,
.user-menu strong,
.user-menu small {
  display: block;
}

.app-brand strong {
  color: #102449;
  font-size: 1rem;
  line-height: 1.2;
}

.app-brand small {
  color: #6d7889;
  font-size: 0.72rem;
}

.app-page-title {
  min-width: 0;
}

.app-page-title h1 {
  overflow: hidden;
  margin: 0;
  color: #102449;
  font-size: 1.35rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-page-title p {
  overflow: hidden;
  margin: 3px 0 0;
  color: #738095;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.user-avatar {
  display: grid !important;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #13855d;
  font-weight: 900;
}

.user-menu strong {
  max-width: 150px;
  overflow: hidden;
  color: #17233b;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu small {
  color: #778398;
  font-size: 0.7rem;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  color: #32435e;
  background: #ffffff;
  font-weight: 900;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 50px;
  padding: 0 clamp(18px, 3vw, 44px);
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  color: #5b687a;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu.is-current summary,
.nav-menu[open] summary,
.nav-menu summary:hover {
  color: #104fb8;
  background: #edf5ff;
}

.nav-section-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: #1769d2;
  font-size: 0.68rem;
}

.nav-chevron {
  margin-left: 3px;
  color: #8a96a7;
}

.nav-menu-items {
  position: absolute;
  z-index: 120;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  min-width: 230px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(16, 36, 73, 0.16);
}

.nav-menu:not([open]) .nav-menu-items {
  display: none;
}

.nav-menu-items a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: 6px;
  padding: 7px 10px;
  color: #4f5e72;
  font-size: 0.84rem;
  font-weight: 750;
}

.nav-menu-items a:hover,
.nav-menu-items a.active {
  color: #0d4eaf;
  background: #eef5ff;
}

.nav-menu-items .nav-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  color: #135ebd;
  background: #e6f1ff;
  font-size: 0.65rem;
  font-weight: 950;
}

.nav-logout {
  margin-left: auto;
  color: #a23636;
  font-size: 0.82rem;
  font-weight: 800;
}

.menu-toggle {
  display: none;
}

.app-main {
  min-width: 0;
}

.content-area {
  width: min(1600px, 100%);
  max-width: none;
  min-width: 0;
  margin-inline: auto;
  padding: clamp(20px, 3vw, 42px);
  overflow: visible;
}

.workspace-panel,
.panel-card {
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(16, 36, 73, 0.07);
}

.workspace-panel {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 28px);
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 3px 0 0;
  color: #102449;
  font-size: 1.55rem;
  line-height: 1.18;
}

.section-heading > a {
  color: #145dbf;
  font-size: 0.84rem;
  font-weight: 850;
}

.overline {
  color: #14704e;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.data-chip,
.state-badge,
.score-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  border-radius: 6px;
  padding: 5px 9px;
  color: #41516a;
  background: #eef3f8;
  font-size: 0.76rem;
  font-weight: 850;
}

.state-badge.sold,
.state-badge.graded,
.state-badge.submitted,
.state-badge.approved {
  color: #0c6a46;
  background: #e6f7ef;
}

.state-badge.cancelled,
.state-badge.wrong {
  color: #a63737;
  background: #fff0ee;
}

.btn-large {
  min-height: 50px;
  padding-inline: 20px;
  font-size: 0.95rem;
}

.btn:disabled,
.btn.is-loading {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.class-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.class-switcher a {
  flex: 0 0 auto;
  border-bottom: 3px solid transparent;
  padding: 9px 12px 7px;
  color: #647188;
  font-size: 0.84rem;
  font-weight: 850;
}

.class-switcher a.active {
  border-color: #1769d2;
  color: #104da7;
}

.experience-hero {
  position: relative;
  display: grid;
  min-height: clamp(300px, 31vw, 430px);
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 22px;
  background-image: var(--experience-image);
  background-position: center;
  background-size: cover;
  box-shadow: 0 22px 50px rgba(11, 35, 71, 0.16);
  isolation: isolate;
}

.experience-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 25, 59, 0.94) 0%, rgba(7, 36, 82, 0.84) 38%, rgba(7, 36, 82, 0.18) 72%);
}

.experience-copy {
  align-self: center;
  width: min(650px, 58%);
  padding: clamp(28px, 5vw, 64px);
  color: #ffffff;
}

.experience-copy .overline {
  color: #90e2ba;
}

.experience-copy h2 {
  margin: 9px 0 12px;
  color: #ffffff;
  font-size: 3.6rem;
  line-height: 1;
}

.experience-copy > p:not(.overline) {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.live-kicker,
.lesson-kicker,
.status-live,
.status-closed {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  min-height: 30px;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-kicker,
.status-live {
  color: #0b5d3e;
  background: #dcf8ea;
}

.lesson-kicker {
  color: #5d4300;
  background: #ffe48a;
}

.status-closed {
  color: #6b7280;
  background: #edf0f4;
}

.live-kicker i,
.status-live i,
.live-pulse i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0ea66b;
  box-shadow: 0 0 0 5px rgba(14, 166, 107, 0.16);
  animation: livePulse 1.8s infinite;
}

.hero-wallet {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 12px;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 8px 14px;
  margin-top: 20px;
  background: rgba(5, 22, 54, 0.52);
  backdrop-filter: blur(10px);
}

.hero-wallet span,
.hero-wallet strong {
  display: block;
}

.hero-wallet span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.hero-wallet strong {
  color: #ffe174;
  font-size: 1.25rem;
}

@keyframes livePulse {
  50% { opacity: 0.45; transform: scale(0.82); }
}

.live-auction-board,
.student-auction-console,
.quiz-control-room,
.student-quiz-stage,
.session-control-panel,
.session-launch-panel,
.exam-intro-bar,
.result-celebration,
.waiting-room {
  border: 1px solid #d7e2ed;
  border-radius: 8px;
  margin-bottom: 22px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(16, 36, 73, 0.08);
}

.live-auction-board {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.65fr);
  overflow: hidden;
}

.live-item-panel,
.winning-bid-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 46px);
}

.live-item-panel {
  color: #ffffff;
  background: #102b5d;
}

.live-item-panel small {
  margin-top: 18px;
  color: #8fc9ff;
  font-weight: 800;
}

.live-item-panel h2 {
  margin: 5px 0 10px;
  font-size: 3.2rem;
  line-height: 1;
}

.live-item-panel p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.auction-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.auction-price-row > span {
  display: grid;
  min-width: 130px;
  gap: 2px;
  border-left: 3px solid #f5c742;
  padding-left: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
}

.auction-price-row strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.winning-bid-panel {
  align-items: center;
  text-align: center;
  background: #fffaf0;
}

.winning-bid-panel > span,
.bid-leader-label {
  color: #7b6740;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.winning-bid-panel > strong,
.current-bid {
  display: block;
  margin: 8px 0 2px;
  color: #102449;
  font-size: 4.2rem;
  line-height: 1;
}

.winning-bid-panel p,
.student-bid-box > p {
  margin: 5px 0 15px;
  color: #0f7650;
  font-weight: 900;
}

.winning-bid-panel small,
.student-bid-box > small {
  color: #7c8798;
}

.live-control-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #dce5ef;
  padding: 14px 18px;
}

.live-control-bar form,
.session-actions form,
.quiz-control-actions form {
  margin: 0;
}

.auction-setup-grid {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.live-setup-form {
  max-width: 620px;
}

.classroom-status-panel {
  background: #f9fbfd;
}

.group-balance-list,
.student-result-list,
.bonus-group-list,
.result-strip,
.collection-strip {
  display: grid;
  gap: 8px;
}

.group-balance-list article,
.student-result-list article,
.bonus-group-list article,
.result-strip article,
.collection-strip article {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  border-bottom: 1px solid #e8eef4;
  padding: 10px 0;
}

.group-balance-list article:last-child,
.student-result-list article:last-child,
.bonus-group-list article:last-child,
.result-strip article:last-child,
.collection-strip article:last-child {
  border-bottom: 0;
}

.group-balance-list article div,
.student-result-list article div,
.bonus-group-list article div,
.result-strip article div,
.collection-strip article div {
  min-width: 0;
  flex: 1;
}

.group-balance-list strong,
.group-balance-list small,
.student-result-list strong,
.student-result-list small,
.bonus-group-list strong,
.bonus-group-list small,
.result-strip strong,
.result-strip small,
.collection-strip strong,
.collection-strip small {
  display: block;
}

.group-balance-list small,
.student-result-list small,
.bonus-group-list small,
.result-strip small,
.collection-strip small {
  color: #748095;
  font-size: 0.74rem;
}

.group-balance-list b,
.student-result-list b,
.result-strip b {
  color: #102449;
  white-space: nowrap;
}

.group-avatar,
.student-initial {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #16865e;
  font-weight: 900;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
}

.responsive-table table {
  min-width: 720px;
}

.responsive-table td strong,
.responsive-table td small {
  display: block;
}

.responsive-table td small {
  color: #7a8798;
  font-size: 0.72rem;
}

.history-panel {
  margin-bottom: 22px;
}

.student-auction-console {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  overflow: hidden;
}

.auction-item-showcase {
  padding: clamp(24px, 4vw, 50px);
  color: #ffffff;
  background: #102b5d;
}

.auction-item-showcase > small {
  display: block;
  margin-top: 20px;
  color: #8fc9ff;
  font-weight: 850;
}

.auction-item-showcase h2 {
  margin: 6px 0 12px;
  font-size: 3.3rem;
  line-height: 1;
}

.auction-item-showcase > p {
  color: rgba(255, 255, 255, 0.78);
}

.budget-warning {
  border-left: 4px solid #f4c642;
  padding: 9px 12px;
  margin-top: 24px;
  color: #fff1b9;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.student-bid-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
  background: #fffaf0;
  text-align: center;
}

.leader-callout {
  display: inline-flex;
  border-radius: 6px;
  padding: 6px 10px;
  color: #8b493e;
  background: #fff0ed;
  font-size: 0.76rem;
  font-weight: 900;
}

.leader-callout.is-leading {
  color: #0a6b46;
  background: #ddf7ea;
}

.bid-form {
  width: 100%;
  max-width: 330px;
  margin: 20px 0 12px;
}

.bid-form label span {
  display: block;
  margin-bottom: 6px;
  color: #5d6a7d;
  font-size: 0.76rem;
  font-weight: 850;
}

.bid-form input {
  height: 58px;
  border: 2px solid #d3deea;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
}

.bid-form .btn {
  width: 100%;
  margin-top: 10px;
}

.waiting-room {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1fr);
  align-items: center;
  overflow: hidden;
}

.waiting-room > div:not(.waiting-visual) {
  padding: clamp(24px, 4vw, 48px);
}

.waiting-room h2 {
  margin: 5px 0 10px;
  color: #102449;
  font-size: 2.2rem;
  line-height: 1.08;
}

.waiting-room p {
  color: #66758a;
}

.waiting-visual {
  min-height: 290px;
}

.waiting-visual img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.compact-waiting {
  grid-template-columns: 1fr;
}

.result-strip {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  overflow-x: auto;
}

.result-strip article {
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  padding: 12px;
}

.session-control-panel,
.session-launch-panel,
.exam-intro-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(18px, 3vw, 28px);
}

.session-control-panel.is-open {
  border-left: 5px solid #13a36c;
}

.session-status {
  min-width: 0;
  flex: 1;
}

.session-status h2 {
  margin: 10px 0;
  color: #102449;
  font-size: 1.75rem;
}

.session-actions,
.quiz-control-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf2;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #17a56f;
}

.exam-management-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.bonus-group-list article {
  justify-content: space-between;
}

.question-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.question-preview-grid article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.question-preview-grid article.current {
  border-color: #6aa0e7;
  background: #edf5ff;
}

.question-preview-grid article > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: #1769d2;
  font-weight: 900;
}

.question-preview-grid strong,
.question-preview-grid small {
  display: block;
}

.exam-intro-bar > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exam-intro-bar small {
  color: #788496;
}

.exam-intro-bar .progress-track {
  max-width: 560px;
}

.student-exam-form,
.exam-review-list {
  display: grid;
  gap: 16px;
}

.exam-question-card {
  min-width: 0;
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 36, 73, 0.05);
}

fieldset.exam-question-card {
  margin: 0;
}

.exam-question-card legend {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 12px;
  padding: 0;
  color: #142744;
  font-size: 1.1rem;
  font-weight: 900;
}

.question-number {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: #1769d2;
  font-weight: 950;
}

.exam-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.choice-tile,
.quiz-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  padding: 10px 12px;
  color: #34445b;
  background: #fbfcfe;
  cursor: pointer;
}

.choice-tile input,
.quiz-choice input {
  position: absolute;
  opacity: 0;
}

.choice-tile:has(input:checked),
.quiz-choice:has(input:checked) {
  border-color: #1769d2;
  color: #0c4ba3;
  background: #edf5ff;
  box-shadow: 0 0 0 2px rgba(23, 105, 210, 0.12);
}

.choice-letter {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: #1769d2;
  font-weight: 950;
}

.sticky-submit-bar {
  position: sticky;
  z-index: 20;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #cfdbe8;
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(16, 36, 73, 0.18);
  backdrop-filter: blur(14px);
}

.sticky-submit-bar strong,
.sticky-submit-bar small {
  display: block;
}

.sticky-submit-bar small {
  color: #778398;
}

.result-celebration {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 4vw, 40px);
}

.result-celebration.success {
  border-left: 6px solid #12a36c;
  background: #f2fbf7;
}

.result-celebration.attention {
  border-left: 6px solid #f1b82e;
  background: #fffbef;
}

.score-orb {
  display: grid;
  flex: 0 0 auto;
  width: 116px;
  height: 116px;
  place-items: center;
  align-content: center;
  border: 8px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  background: #1769d2;
  box-shadow: 0 10px 28px rgba(23, 105, 210, 0.22);
}

.score-orb strong {
  font-size: 2.5rem;
  line-height: 1;
}

.score-orb span {
  font-size: 0.72rem;
}

.result-celebration h2 {
  margin: 5px 0 8px;
  color: #102449;
  font-size: 2.4rem;
}

.result-celebration p {
  margin: 0;
  color: #5f6f84;
}

.exam-question-card.review {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
}

.exam-question-card.review.correct {
  border-left: 5px solid #12a36c;
}

.exam-question-card.review.wrong {
  border-left: 5px solid #e8755b;
}

.question-content h3 {
  margin: 4px 0 8px;
  color: #172b48;
}

.question-content p,
.question-content small {
  color: #65758a;
}

.answer-state {
  color: #0f7650;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-control-room {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  overflow: hidden;
}

.quiz-control-main,
.question-release-form {
  padding: clamp(22px, 3vw, 34px);
}

.quiz-control-main {
  color: #ffffff;
  background: #102b5d;
}

.quiz-control-main h2 {
  margin: 16px 0 8px;
  font-size: 2.6rem;
  line-height: 1.08;
}

.quiz-control-main p {
  color: #9bc7ff;
}

.response-counter,
.projection-answer-count {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 24px;
}

.response-counter strong,
.projection-answer-count strong {
  color: #ffd65b;
  font-size: 2.6rem;
  line-height: 1;
}

.response-counter span {
  color: rgba(255, 255, 255, 0.72);
}

.question-release-form {
  display: grid;
  align-content: center;
  gap: 13px;
  background: #ffffff;
}

.quiz-control-actions {
  grid-column: 1 / -1;
  border-top: 1px solid #dce5ef;
  padding: 13px 16px;
}

.quiz-review-list {
  display: grid;
  gap: 12px;
}

.quiz-review-card {
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfe;
}

.quiz-review-card.submitted {
  border-left: 5px solid #f1b82e;
}

.quiz-review-card.graded {
  border-left: 5px solid #12a36c;
}

.review-answer-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-answer-head > div {
  min-width: 0;
  flex: 1;
}

.review-answer-head strong,
.review-answer-head small {
  display: block;
}

.review-answer-head small {
  color: #758195;
}

.submitted-answer {
  border-left: 3px solid #7aa6de;
  padding-left: 12px;
  margin: 16px 0;
}

.submitted-answer span {
  color: #748095;
  font-size: 0.72rem;
  font-weight: 850;
}

.submitted-answer p {
  margin: 3px 0;
  color: #263b58;
  font-weight: 800;
}

.submitted-answer small {
  color: #65758a;
}

.power-used {
  color: #0f7650;
  font-size: 0.78rem;
  font-weight: 850;
}

.inline-score-form {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(90px, 0.45fr) minmax(90px, 0.45fr) auto;
  align-items: end;
  gap: 9px;
}

.inline-score-form label span {
  display: block;
  margin-bottom: 4px;
  color: #6d798b;
  font-size: 0.7rem;
  font-weight: 800;
}

.student-quiz-stage {
  overflow: hidden;
  padding: clamp(20px, 4vw, 44px);
}

.quiz-round-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.quiz-round-header small {
  display: block;
  margin-top: 7px;
  color: #67768b;
  font-weight: 800;
}

.quiz-value {
  text-align: right;
}

.quiz-value strong,
.quiz-value span {
  display: block;
}

.quiz-value strong {
  color: #0e7b52;
  font-size: 2rem;
  line-height: 1;
}

.quiz-value span {
  color: #748095;
  font-size: 0.72rem;
}

.quiz-question-live {
  max-width: 1050px;
  margin: 24px auto;
  text-align: center;
}

.quiz-question-live h2 {
  margin: 0;
  color: #102449;
  font-size: 3.1rem;
  line-height: 1.05;
}

.live-answer-form {
  display: grid;
  max-width: 1050px;
  gap: 14px;
  margin-inline: auto;
}

.quiz-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.quiz-choice {
  min-height: 76px;
}

.live-text-answer textarea {
  min-height: 130px;
  font-size: 1.08rem;
}

.power-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-locked {
  display: flex;
  align-items: center;
  max-width: 900px;
  gap: 18px;
  border-radius: 8px;
  padding: 22px;
  margin: 20px auto 0;
  background: #f5f7fa;
}

.answer-locked.correct {
  background: #eaf9f2;
}

.answer-locked.wrong {
  background: #fff1ee;
}

.answer-lock-icon {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #1769d2;
  font-weight: 950;
}

.answer-locked h3 {
  margin: 4px 0;
  color: #18304f;
}

.answer-locked p {
  margin: 0;
  color: #65758a;
}

.student-command-hero,
.teacher-command-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #ffffff;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  box-shadow: 0 22px 48px rgba(11, 35, 71, 0.16);
  isolation: isolate;
}

.student-command-hero::before,
.teacher-command-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 28, 64, 0.96), rgba(8, 37, 83, 0.78) 48%, rgba(8, 37, 83, 0.2));
}

.student-command-hero {
  grid-template-columns: minmax(300px, 1fr) minmax(220px, 0.45fr);
  grid-template-rows: 1fr auto;
  min-height: 430px;
}

.student-command-copy {
  align-self: center;
  max-width: 680px;
  padding: clamp(28px, 5vw, 58px);
}

.student-greeting {
  color: #91e1bb;
  font-weight: 900;
}

.student-command-copy h1,
.teacher-command-copy h1 {
  max-width: 680px;
  margin: 9px 0 12px;
  font-size: 3.8rem;
  line-height: 0.98;
}

.student-command-copy p,
.teacher-command-copy > p:not(.overline) {
  color: rgba(255, 255, 255, 0.82);
}

.xp-line {
  width: min(420px, 100%);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.2);
}

.xp-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffd24d;
}

.student-command-copy small {
  color: rgba(255, 255, 255, 0.66);
}

.student-identity-panel {
  align-self: start;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 11px 14px;
  margin: 28px 28px 0 0;
  background: rgba(6, 26, 61, 0.58);
  backdrop-filter: blur(10px);
}

.student-avatar-large {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--avatar-color);
  font-size: 1.25rem;
  font-weight: 950;
}

.student-identity-panel small,
.student-identity-panel strong,
.student-identity-panel span,
.collective-wallet small,
.collective-wallet strong,
.collective-wallet span {
  display: block;
}

.student-identity-panel small,
.collective-wallet small,
.collective-wallet span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
}

.student-identity-panel strong {
  font-size: 1rem;
}

.collective-wallet {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px clamp(28px, 5vw, 58px);
  background: rgba(7, 25, 59, 0.76);
}

.collective-wallet img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.collective-wallet strong {
  color: #ffdc60;
  font-size: 1.4rem;
}

.live-activity-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-left: 5px solid #12a36c;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
  color: #17304f;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 36, 73, 0.07);
}

.live-pulse {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #0b7550;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-activity-strip small,
.live-activity-strip strong,
.live-activity-strip p {
  display: block;
  margin: 0;
}

.live-activity-strip small {
  color: #0d7b52;
  font-weight: 850;
}

.live-activity-strip strong {
  font-size: 1.05rem;
}

.live-activity-strip p {
  color: #6c788a;
  font-size: 0.82rem;
}

.student-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.student-action {
  display: grid;
  grid-template-rows: 138px auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 36, 73, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.student-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(16, 36, 73, 0.12);
}

.action-visual {
  display: block;
  background-position: center;
  background-size: cover;
}

.student-action > div {
  padding: 14px;
}

.student-action small,
.student-action strong,
.student-action p {
  display: block;
}

.student-action small {
  color: #0e7952;
  font-size: 0.7rem;
  font-weight: 900;
}

.student-action strong {
  margin-top: 3px;
  color: #132948;
  font-size: 1.15rem;
}

.student-action p {
  margin: 4px 0 0;
  color: #718095;
  font-size: 0.78rem;
  line-height: 1.35;
}

.student-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: 20px;
  margin-bottom: 20px;
}

.student-dashboard-grid.lower {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
}

.big-percentage {
  color: #1769d2;
  font-size: 1.8rem;
}

.lesson-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.lesson-path article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 11px;
  background: #f9fbfd;
}

.lesson-path article > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #6c788a;
  background: #e8edf3;
  font-weight: 900;
}

.lesson-path article.done > span {
  color: #ffffff;
  background: #13a36c;
}

.lesson-path article.current {
  border-color: #efbc34;
  background: #fff9e7;
}

.lesson-path article.current > span {
  color: #5d4300;
  background: #ffda61;
}

.lesson-path strong,
.lesson-path small {
  display: block;
}

.lesson-path strong {
  overflow: hidden;
  color: #283d59;
  font-size: 0.76rem;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.lesson-path small {
  color: #7d8898;
  font-size: 0.66rem;
}

.compact-ranking article.me {
  border-radius: 6px;
  padding-inline: 8px;
  background: #edf8f3;
}

.collection-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-strip article {
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  padding: 11px;
}

.collection-strip article > span {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: #1769d2;
  font-weight: 950;
}

.personal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.personal-stats article {
  text-align: center;
}

.personal-stats strong,
.personal-stats span {
  display: block;
}

.personal-stats strong {
  color: #102449;
  font-size: 1.4rem;
}

.personal-stats span {
  color: #7b8797;
  font-size: 0.68rem;
}

.mini-badges {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.mini-badges span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #5d4300;
  background: #ffda61;
  font-weight: 950;
}

.teacher-command-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 390px;
}

.teacher-command-copy {
  align-self: center;
  max-width: 760px;
  padding: clamp(30px, 5vw, 64px);
}

.teacher-command-copy .overline {
  margin-top: 18px;
  color: #8fe0b8;
}

.teacher-live-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.teacher-live-links a {
  min-width: 112px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(7, 25, 59, 0.58);
  backdrop-filter: blur(9px);
}

.teacher-live-links a.active {
  border-color: #78d9aa;
  background: rgba(10, 118, 76, 0.7);
}

.teacher-live-links span,
.teacher-live-links strong {
  display: block;
}

.teacher-live-links span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
}

.teacher-live-links strong {
  color: #ffffff;
  font-size: 0.82rem;
}

.teacher-hero-controls {
  align-self: start;
  margin: 26px 26px 0 0;
}

.teacher-hero-controls .tabs a,
.teacher-hero-controls .date-chip {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(7, 25, 59, 0.62);
}

.teacher-hero-controls .tabs a.active {
  color: #5a4200;
  background: #ffda61;
}

.presentation-body {
  min-width: 720px;
  color: #ffffff;
  background: #071a38;
}

.projection-topbar {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 24px;
  padding: 9px 22px;
  background: #ffffff;
  color: #102449;
}

.projection-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.projection-brand img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.projection-brand strong,
.projection-brand small {
  display: block;
}

.projection-brand small {
  color: #748095;
  font-size: 0.72rem;
}

.projection-topbar nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.projection-topbar nav a {
  border-bottom: 3px solid transparent;
  padding: 10px 12px 7px;
  color: #66758a;
  font-size: 0.82rem;
  font-weight: 850;
}

.projection-topbar nav a.active {
  border-color: #1769d2;
  color: #104fab;
}

.projection-stage {
  padding: 18px;
}

.projection-scene {
  position: relative;
  display: grid;
  min-height: calc(100vh - 190px);
  overflow: hidden;
  border-radius: 8px;
  background-image: var(--scene-image);
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.projection-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 20, 49, 0.96), rgba(5, 30, 67, 0.83) 47%, rgba(5, 30, 67, 0.12));
}

.projection-overlay {
  align-self: center;
  width: min(850px, 61%);
  padding: clamp(40px, 6vw, 90px);
}

.projection-overlay > p {
  color: #8dc7ff;
  font-size: 1.1rem;
  font-weight: 850;
}

.projection-overlay h1 {
  margin: 16px 0;
  font-size: 6rem;
  line-height: 0.94;
}

.projection-bid span,
.projection-bid strong,
.projection-bid b {
  display: block;
}

.projection-bid span {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 800;
}

.projection-bid strong {
  color: #ffd85c;
  font-size: 7rem;
  line-height: 1;
}

.projection-bid b {
  color: #8fe2b9;
  font-size: 2.2rem;
}

.projection-answer-count span {
  font-size: 1.4rem;
}

.projection-answer-count strong {
  font-size: 8rem;
}

.projection-ranking {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  overflow-x: auto;
  padding: 10px 16px;
  color: #102449;
  background: #ffffff;
}

.projection-ranking > span {
  flex: 0 0 auto;
  color: #6d788b;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.projection-ranking > div {
  display: flex;
  gap: 8px;
}

.projection-ranking article {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 190px;
  border-left: 1px solid #dfe6ee;
  padding: 5px 12px;
}

.projection-ranking article b {
  color: #1769d2;
}

.projection-ranking article strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projection-ranking article span {
  color: #0b7650;
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .app-header-main {
    grid-template-columns: auto minmax(130px, 1fr) auto;
    gap: 16px;
  }

  .app-brand {
    min-width: 0;
  }

  .app-brand small,
  .user-menu > span:not(.user-avatar) {
    display: none;
  }

  .student-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-dashboard-grid,
  .student-dashboard-grid.lower,
  .teacher-liga-grid,
  .exam-management-grid {
    grid-template-columns: 1fr;
  }

  .lesson-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-auction-board,
  .student-auction-console,
  .quiz-control-room {
    grid-template-columns: 1fr;
  }

  .live-control-bar,
  .quiz-control-actions {
    grid-column: 1;
  }

  .result-strip {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 860px) {
  .app-header {
    position: sticky;
  }

  .app-header-main {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    min-height: 66px;
    padding: 8px 14px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .app-brand span,
  .app-page-title p,
  .user-menu > span:not(.user-avatar),
  .user-menu > .icon-button {
    display: none;
  }

  .app-brand {
    min-width: auto;
  }

  .app-brand img {
    width: 42px;
    height: 42px;
  }

  .app-page-title h1 {
    white-space: normal;
  }

  .app-nav {
    position: fixed;
    z-index: 130;
    inset: 66px 0 0;
    display: none;
    align-content: start;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    padding: 14px;
    background: #ffffff;
  }

  body.menu-open .app-nav {
    display: flex;
  }

  .nav-menu summary {
    justify-content: flex-start;
    min-height: 48px;
    border-bottom: 1px solid #e7edf3;
  }

  .nav-chevron {
    margin-left: auto;
  }

  .nav-menu-items {
    position: static;
    min-width: 0;
    border: 0;
    padding: 5px 0 8px 32px;
    box-shadow: none;
  }

  .nav-logout {
    margin: 12px 0 0;
    border-top: 1px solid #e3e9f0;
    padding: 16px 12px;
  }

  .content-area {
    padding: 16px;
  }

  .experience-copy {
    width: 76%;
  }

  .student-command-hero,
  .teacher-command-hero {
    grid-template-columns: 1fr;
  }

  .student-identity-panel,
  .teacher-hero-controls {
    justify-self: start;
    margin: 0 24px 24px;
  }

  .collective-wallet {
    grid-column: 1;
  }

  .workspace-grid,
  .auction-setup-grid,
  .waiting-room {
    grid-template-columns: 1fr;
  }

  .waiting-visual {
    max-height: 230px;
  }

  .waiting-visual img {
    min-height: 230px;
  }

  .session-control-panel,
  .session-launch-panel,
  .exam-intro-bar,
  .result-celebration {
    align-items: stretch;
    flex-direction: column;
  }

  .session-actions,
  .quiz-control-actions {
    justify-content: flex-start;
  }

  .inline-score-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inline-score-form .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .experience-hero {
    min-height: 380px;
    background-position: 62% center;
  }

  .experience-hero::before {
    background: linear-gradient(90deg, rgba(6, 25, 59, 0.96), rgba(7, 36, 82, 0.82));
  }

  .experience-copy {
    width: 100%;
    padding: 24px;
  }

  .experience-copy h2 {
    font-size: 2.35rem;
  }

  .student-command-hero,
  .teacher-command-hero {
    min-height: 440px;
    background-position: 58% center;
  }

  .student-command-copy,
  .teacher-command-copy {
    padding: 24px;
  }

  .student-command-copy h1,
  .teacher-command-copy h1 {
    font-size: 2.45rem;
  }

  .student-identity-panel,
  .teacher-hero-controls {
    margin: 0 20px 20px;
  }

  .student-action-grid,
  .lesson-path,
  .question-preview-grid,
  .exam-options,
  .quiz-choice-grid,
  .power-choice-grid,
  .collection-strip,
  .result-strip {
    grid-template-columns: 1fr;
  }

  .student-action {
    grid-template-columns: 130px minmax(0, 1fr);
    grid-template-rows: 1fr;
  }

  .student-action .action-visual {
    min-height: 132px;
  }

  .live-activity-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .live-activity-strip .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .personal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-control-bar,
  .session-actions,
  .quiz-control-actions,
  .sticky-submit-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .live-control-bar .btn,
  .live-control-bar form,
  .live-control-bar form .btn,
  .session-actions .btn,
  .session-actions form,
  .session-actions form .btn,
  .quiz-control-actions .btn,
  .quiz-control-actions form,
  .quiz-control-actions form .btn {
    width: 100%;
  }

  .inline-score-form {
    grid-template-columns: 1fr;
  }

  .inline-score-form .btn {
    grid-column: 1;
  }

  .score-orb {
    width: 92px;
    height: 92px;
  }

  .exam-question-card.review {
    grid-template-columns: 1fr;
  }

  .quiz-round-header {
    align-items: flex-start;
  }

  .quiz-question-live h2 {
    font-size: 2rem;
  }
}

.public-page .hero {
  min-height: min(78vh, 760px);
}

.public-page .hero h1 {
  font-size: 5rem;
}

.public-page .hero-copy > p {
  max-width: 720px;
  font-size: 1.12rem;
}

@media (max-width: 680px) {
  .public-page .hero {
    min-height: 560px;
  }

  .public-page .hero h1 {
    font-size: 3rem;
  }
}

.question-preview-grid strong {
  color: #24344e;
  font-size: 0.86rem;
  line-height: 1.35;
}

.question-preview-grid small {
  margin-top: 4px;
  color: #718096;
  font-size: 0.72rem;
}
