@import url("./type.css");
:root {
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  color: #20382d;
  background: #f6faf7;
  font-synthesis: none;
  --blue: #41a275;
  --line: #dce8df;
  --muted: #576d61;
  --orange: #f66619;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
body,
button,
input,
select,
textarea {
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--blue);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ee9b32;
  outline-offset: 3px;
}
.topbar {
  height: 96px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 760;
  font-size: 23px;
  color: #20382d;
  letter-spacing: -0.7px;
  gap: 5px;
}
.brand > span:nth-child(2) {
  color: var(--blue);
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  margin-right: 8px;
  font-size: 29px;
}
.school-badge {
  font-size: 10px;
  letter-spacing: 1px;
  border-left: 1px solid var(--line);
  margin-left: 16px;
  padding-left: 19px;
  max-width: 110px;
  line-height: 1.6;
  color: var(--muted);
}
.top-note {
  font-size: 14px;
  color: var(--muted);
}
.text-button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 12px;
}
main {
  max-width: 1280px;
  margin: auto;
  min-height: calc(100vh - 169px);
  padding: 60px 40px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 90px;
  max-width: 1120px;
  margin: 10px auto;
}
.eyebrow,
.card-kicker {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.6px;
  color: var(--blue);
}
h1 {
  font-size: clamp(32px, 3.5vw, 49px);
  letter-spacing: -1.7px;
  line-height: 1.18;
  margin: 22px 0;
}
h2 {
  font-size: 27px;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
h3 {
  font-size: 19px;
  margin: 0 0 12px;
}
.lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 420px;
}
.subject-preview {
  margin: 35px 0;
}
.subject-preview > div {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.subject-preview > div > span:last-child {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.subject-preview strong {
  font-size: 16px;
}
.subject-preview p {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 0;
}
.subject-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.blue {
  background: #e7f6ed;
  color: var(--blue);
}
.orange {
  background: #fff0e6;
  color: #ac471b;
}
.steps {
  display: flex;
  gap: 24px;
  margin: 32px 0;
  font-size: 13px;
}
.steps b {
  font-size: 11px;
  color: var(--blue);
  background: #e5f4ea;
  border-radius: 50%;
  padding: 7px;
  margin-right: 5px;
}
.small {
  font-size: 13px;
  line-height: 1.7;
}
.muted {
  color: var(--muted);
}
.login-card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 16px 50px #1d3e6810;
}
.login-card > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin: 20px 0;
}
input,
select {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 14px 15px;
  border: 1px solid #c9dace;
  border-radius: 9px;
  background: white;
  color: #20382d;
  min-height: 48px;
}
input::placeholder {
  color: #7b889b;
  font-size: 14px;
}
.phone-field {
  display: flex;
  align-items: stretch;
  margin-top: 9px;
  border: 1px solid #c9dace;
  border-radius: 9px;
  background: white;
  overflow: hidden;
}
.phone-field:focus-within {
  outline: 3px solid #ee9b32;
  outline-offset: 3px;
}
.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: #f1f6f3;
  border-right: 1px solid #c9dace;
  font-weight: 650;
}
.phone-country {
  flex: none;
  width: auto;
  margin: 0;
  padding: 0 8px 0 12px;
  border: 0;
  border-right: 1px solid #c9dace;
  border-radius: 0;
  background: #f1f6f3;
  font: inherit;
  font-weight: 650;
}
.phone-country:focus-visible { outline: none; }
.phone-field input {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
  border: 0;
  border-radius: 0;
}
.phone-field input:focus-visible {
  outline: none;
}
.field-with-action {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 9px;
}
.field-with-action input {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
}
.field-with-action button {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-inline: 14px;
}
.heading-actions {
  justify-content: flex-end;
  margin: 0;
}
.csv-example {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f9f6;
  color: #345c45;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}
.import-result {
  min-height: 22px;
  color: var(--muted);
  line-height: 1.7;
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 650;
  padding: 14px 21px;
  min-height: 48px;
}
.primary {
  background: var(--blue);
  color: white;
}
.primary:hover {
  background: #10613f;
}
.secondary {
  background: white;
  border-color: #c9dace;
  color: #234a35;
}
.danger {
  background: #fff0ed;
  color: #a13020;
  border-color: #efc5bf;
}
.full {
  width: 100%;
  justify-content: space-between;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eef8f1;
  border: 1px solid #d7eadf;
  border-radius: 9px;
  padding: 14px;
  margin-top: 22px;
  color: #456654;
}
.notice > span {
  border: 1px solid #5d856c;
  border-radius: 50%;
  height: 17px;
  min-width: 17px;
  text-align: center;
  font-size: 12px;
}
.notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}
.help {
  font-size: 12px !important;
  text-align: center;
  margin: 20px 0 0 !important;
}
.error {
  color: #ab2c2c;
  font-size: 14px;
  line-height: 1.6;
}
.error:empty {
  display: none;
}
footer {
  height: 73px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5vw;
  font-size: 12px;
  color: #63766a;
}
footer b {
  padding: 0 10px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 34px;
  margin: 8px 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.subject-card {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.subject-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.subject-card .primary {
  align-self: flex-start;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 6px 9px;
  background: #edf5ef;
  font-size: 12px;
  font-weight: 650;
}
.rules {
  line-height: 1.9;
  color: var(--muted);
  padding-left: 22px;
}
.exam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 25px;
}
.question-panel {
  min-height: 440px;
  /* Let wide question tables scroll inside the panel instead of stretching the grid column. */
  min-width: 0;
}
.question-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 10px;
}
.question {
  font-size: 21px;
  line-height: 1.7;
  white-space: pre-line;
  margin: 22px 0;
}
.rich-content {
  white-space: normal;
}
.rich-content table {
  /* Wide tables scroll inside themselves on phones instead of widening the page. */
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 14px 0;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.5;
}
.rich-content th,
.rich-content td {
  background: white;
  border: 1px solid #c9dace;
  padding: 7px 11px;
  text-align: left;
  vertical-align: top;
}
.rich-content th {
  background: #eef6f1;
  font-weight: 650;
}
.rich-content svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px auto;
}
.rich-content hr {
  border: 0;
  border-top: 1px dashed #c9dace;
  margin: 18px 0;
}
.question.rich-content {
  font-size: 19px;
}
.question.rich-content table {
  font-size: 15px;
}
.question-diagram {
  max-width: 560px;
  margin: 8px auto 24px;
  padding: 14px 18px 10px;
  border: 1px solid #cfe7d8;
  border-radius: 14px;
  background: #ffffff;
  color: var(--blue);
  overflow: hidden;
}
.question-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 210px;
}
.question-diagram text {
  fill: #1a4330;
  font-family: Poppins, Arial, sans-serif;
  font-size: 15px;
  font-weight: 650;
}
.passage {
  background: #f5f9f6;
  border-left: 3px solid #2aaf74;
  padding: 22px;
  line-height: 1.85;
  white-space: pre-line;
  border-radius: 0 9px 9px 0;
  font-size: 16px;
}
.options {
  display: grid;
  gap: 12px;
}
.option {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
}
.option:has(input:checked) {
  border-color: var(--blue);
  background: #ebf8f0;
}
.option input {
  width: 19px;
  height: 19px;
  min-height: 19px;
  accent-color: var(--blue);
  margin: 0;
  flex-shrink: 0;
}
.schedule-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.2fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}
.schedule-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.schedule-form .actions,
.schedule-form .error {
  grid-column: 1 / -1;
}
.batch-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.batch-schedule-panel { margin-bottom: 24px; }
.discussion-link-form { display: grid; gap: 10px; margin-top: 16px; }
.discussion-link-form .actions { margin-top: 2px; }
.discussion-level-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.discussion-level-grid .discussion-link-form { margin-top: 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.discussion-level-grid h3 { margin: 0 0 4px; }
.discussion-inline { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.discussion-inline p { margin: 0 0 10px; }
.material-selectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 20px 0; padding: 20px; background: #f1f8f4; border: 1px solid var(--line); border-radius: 10px; }
.material-selectors label, #material-form label { margin: 0; }
#material-form { display: grid; gap: 18px; }
#material-form .actions { display: flex; flex-wrap: wrap; gap: 10px; }
#material-form .error:empty { display: none; }
.material-access-note { margin: 0; }
.material-batch-list { display: grid; gap: 12px; }
.material-batch-item { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fcfefd; }
.material-batch-item h3 { display: inline; margin: 0 0 0 10px; font-size: 16px; }
.material-batch-item p { margin: 8px 0 0; }
.material-item-links, .material-participant-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.material-item-links a { font-size: 13px; font-weight: 600; }
.material-participant-links a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* Daily Drill members: try-out on the left, Daily Drill on the right; stacked on phones. */
.study-parts { display: grid; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3ece6; }
.study-parts.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.study-parts.two .study-part + .study-part { padding-left: 24px; margin-left: 24px; border-left: 1px solid #e3ece6; }
.study-part { min-width: 0; }
@media (max-width: 760px) {
  .study-parts.two { grid-template-columns: 1fr; }
  .study-parts.two .study-part + .study-part { padding: 16px 0 0; margin: 16px 0 0; border-left: 0; border-top: 1px solid #e3ece6; }
}
.study-tag { display: inline-block; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.study-tag.tryout { background: #e6f3ec; color: #2f7d58; }
.study-tag.drill { background: #fff0e5; color: #c4520f; }
.study-part .material-recordings:first-of-type:not(:first-child) { margin-top: 12px; }
.study-part > .study-tag + .material-recordings { margin-top: 4px; padding-top: 0; border-top: 0; }
.recording-more summary:focus { outline: none; }
.recording-more summary:focus-visible { outline: 2px solid #2f7d58; outline-offset: 2px; border-radius: 4px; }
.material-batch-list-compact { list-style: none; margin: 4px 0 0; padding: 0; }
.material-batch-list-compact li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 10px 0; }
.material-batch-list-compact li + li { border-top: 1px solid #e3ece6; }
.material-batch-list-compact strong { font-size: 15px; color: #20382d; }
.material-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.material-chips a { padding: 5px 12px; border-radius: 999px; background: #e6f3ec; color: #2f7d58; font-size: 13px; font-weight: 700; text-decoration: none; }
.material-chips a:hover, .material-chips a:focus-visible { background: #d4ebde; }
.material-batch-group { display: grid; gap: 8px; padding: 12px 0; }
.material-batch-group + .material-batch-group { border-top: 1px solid #e3ece6; }
.material-batch-group > strong { font-size: 14px; color: #20382d; }
.material-recordings { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e3ece6; }
.recordings-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.recordings-head h3 { margin: 0; }
.recording-list { list-style: none; margin: 0; padding: 0; }
.recording-list li + li { border-top: 1px solid #e3ece6; }
.recording-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; color: inherit; text-decoration: none; }
.recording-list a > span:first-child { display: grid; gap: 1px; min-width: 0; }
.recording-list strong { font-size: 15px; }
.recording-play { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e6f3ec; color: #2f7d58; font-size: 12px; padding-left: 2px; }
.recording-list a:hover strong, .recording-list a:focus-visible strong { color: #2f7d58; text-decoration: underline; }
.recording-more summary { cursor: pointer; font-weight: 700; color: #2f7d58; font-size: 14px; padding-top: 6px; }
/* Participant lobby: short status cards share a row, the live class sits next to its recordings. */
.lobby-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 20px; }
.lobby-strip .schedule-notice { margin: 0; padding: 18px 22px; align-items: center; flex-direction: row; flex-wrap: wrap; }
.lobby-strip .schedule-notice .toolbar { margin: 0; }
.lobby-strip .schedule-notice .primary { min-height: 40px; padding: 0 16px; }
.lobby-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 20px; }
.lobby-pair > .panel { margin: 0; padding: 22px 24px; }
.lobby-pair .discussion-panel h3 { margin-top: 0; }
.lobby-subjects { gap: 16px; }
.lobby-subjects ~ .participant-material { padding: 22px 26px; }
.lobby-subjects ~ .participant-material h2 { margin: 4px 0 6px; font-size: 22px; }
.lobby-subjects ~ .participant-material p { margin: 0 0 12px; }
.lobby-subjects + .participant-material, .lobby-subjects + .rapor-entry { margin-top: 20px; }
.rapor-entry.pro-panel { padding: 22px 26px; }
.participant-material + .rapor-entry { margin-top: 16px; }
@media (max-width: 760px) {
  .lobby-pair { grid-template-columns: 1fr; }
  .lobby-strip .schedule-notice { padding: 16px 18px; }
  .lobby-subjects .subject-card { padding: 20px; }
}
.participant-material { border-top: 3px solid var(--green, #3e9f76); }
.material-folder > summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.material-folder > summary::-webkit-details-marker { display: none; }
.material-folder > summary:focus { outline: none; }
.material-folder > summary:focus-visible { outline: 2px solid #2f7d58; outline-offset: 4px; border-radius: 10px; }
.material-folder-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: #e6f3ec; display: grid; place-items: center; }
.material-folder-icon svg { width: 26px; height: 26px; fill: #3e9f76; }
.material-folder-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.material-folder-title .eyebrow { margin: 0; }
.material-folder-title strong { font-size: 19px; color: #1f3529; }
.material-folder-count { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.material-folder-count .study-tag { margin: 0; }
.material-folder-gap { width: 10px; }
.material-folder-chevron { flex: none; font-size: 26px; line-height: 1; color: #2f7d58; transition: transform .2s; }
.material-folder[open] .material-folder-chevron { transform: rotate(90deg); }
.material-folder-body { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e3ece6; }
.material-folder-body > .muted:first-child { margin: 0 0 12px; }
.material-folder-body > .study-parts { margin-top: 0; padding-top: 0; border-top: 0; }
@media (prefers-reduced-motion: reduce) { .material-folder-chevron { transition: none; } }
.pro-panel + .participant-material,
.grid-2 + .participant-material,
.discussion-panel:has(+ .grid-2) { margin-bottom: 24px; }
.discussion-panel + .participant-material { margin-top: 24px; }
.discussion-panel:has(+ .lobby-subjects) { margin-bottom: 20px; padding: 22px 26px; }
.discussion-panel:has(+ .lobby-subjects) h3 { margin-top: 0; }
.lobby-subjects ~ .participant-material .material-participant-links + .material-recordings { margin-top: 18px; }
@media (max-width: 640px) {
  .material-selectors { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .material-batch-item { grid-template-columns: 1fr auto; gap: 14px; }
  .material-item-links { grid-column: 1 / -1; grid-row: 2; }
  .material-batch-item > button { grid-column: 2; grid-row: 1; }
  .material-participant-links { align-items: stretch; flex-direction: column; gap: 10px; }
}
.batch-schedule-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfefc;
}
.batch-schedule-form h3 { margin: 0 0 2px; }
.batch-form-section { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.batch-form-section:first-of-type { padding-top: 0; border-top: 0; }
.batch-form-section > strong { font-size: 13px; color: var(--ink); }
.danger-button { color: #a8392e; border-color: #e8b8b2; background: #fffafa; }
@media (max-width: 740px) {
  main { padding: 28px 16px; }
  .discussion-level-grid { grid-template-columns: 1fr; }
  .batch-schedule-grid { grid-template-columns: 1fr; }
}
.schedule-notice {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.exam-countdown {
  display: inline-block;
  margin-left: 4px;
  color: var(--blue) !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .schedule-panel { grid-template-columns: 1fr; }
  .schedule-form { grid-template-columns: 1fr; }
  .schedule-form .actions,
  .schedule-form .error { grid-column: auto; }
  .schedule-notice { flex-direction: column; }
}
.option-letter {
  align-self: flex-start;
  flex-shrink: 0;
}
.option-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.option-content svg {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 220px;
}
.review-options {
  display: grid;
  gap: 8px;
}
.review-options .option-content {
  display: inline-grid;
  vertical-align: top;
}
.navigation {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.question-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 22px 0;
}
.qnum {
  border: 1px solid var(--line);
  background: white;
  color: #345c45;
  border-radius: 7px;
  min-height: 39px;
}
.qnum.answered {
  background: #dff3e7;
  color: #126b43;
  border-color: #9fd5b4;
}
.qnum.current {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.qnum.flagged {
  background: #fff0d4;
  border-color: #e7ac49;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 750;
  color: var(--blue);
}
.timer.low {
  color: #b62f1c;
}
.exam-side {
  align-self: start;
}
.score {
  font-size: 60px;
  font-weight: 760;
  color: var(--blue);
  letter-spacing: -2px;
}
.score small {
  font-size: 22px;
  color: var(--muted);
}
.stats {
  display: flex;
  gap: 25px;
  margin: 25px 0;
  flex-wrap: wrap;
}
.stats > div,
.stats > button {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 160px;
}
.stats > button {
  color: inherit;
  text-align: left;
}
.stats > button:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}
.stats > button.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px #41a27524;
  background: #f4fbf7;
}
.stats strong {
  display: block;
  font-size: 27px;
  margin-bottom: 5px;
}
.stats span {
  font-size: 13px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.toolbar input {
  max-width: 300px;
  margin: 0;
}
.bulk-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fcf9;
}
.bulk-actions .select-hint,
.bulk-actions .selected-count {
  color: var(--muted);
  font-size: 13px;
}
.bulk-actions .selected-count {
  margin-left: auto;
}
.bulk-actions button {
  min-height: 36px;
  padding: 8px 12px;
}
.export-actions {
  flex-wrap: wrap;
}
.batch-choice {
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.batch-choice:hover {
  border-color: #41a275;
  background: #f4fbf7;
}
.batch-choice h2,
.batch-choice p {
  pointer-events: none;
}
.select-column {
  width: 42px;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
}
input[type="checkbox"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #3fa476;
  vertical-align: middle;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
th {
  background: #f0f6f2;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td,
th {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td button {
  font-size: 13px;
  padding: 7px 10px;
  min-height: 34px;
}
td .small {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 560px;
  width: calc(100% - 32px);
  padding: 30px;
  box-shadow: 0 25px 100px #07172c50;
}
dialog.video-modal { max-width: 960px; padding: 18px; }
.video-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.video-head strong { min-width: 0; font-size: 17px; color: var(--ink, #1f3529); }
.video-close { flex: none; width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: #eef4f0; color: #1f3529; font-size: 24px; line-height: 1; cursor: pointer; }
.video-close:hover { background: #e0ebe4; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) { dialog.video-modal { width: calc(100% - 16px); padding: 12px; } }
dialog::backdrop {
  background: #12233b99;
  backdrop-filter: blur(3px);
}
dialog p {
  line-height: 1.8;
  color: var(--muted);
}
dialog .actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}
.drill-registration-review {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}
.drill-registration-review > div {
  display: grid;
  grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f9f6;
}
.drill-registration-review dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.drill-registration-review dd {
  margin: 0;
  color: #20382d;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .drill-registration-review > div {
    grid-template-columns: minmax(82px, 0.75fr) minmax(0, 1.25fr);
    gap: 10px;
    padding: 10px;
  }
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #20382d;
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  max-width: 90%;
  display: none;
  font-size: 14px;
  z-index: 10;
}
#toast.visible {
  display: block;
}
.tf-row {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 10px 0;
}
.tf-row p {
  margin: 0 0 13px;
  line-height: 1.6;
}
.tf-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 20px 0 0;
  font-weight: 400;
}
.tf-row input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}
.review-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.8;
}
.review-item p {
  white-space: pre-line;
}
.correct {
  color: #176f46;
}
.incorrect {
  color: #b13527;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
}
.check-label input {
  width: 18px;
  min-height: 18px;
  margin: 4px 0 0;
}
.empty {
  text-align: center;
  padding: 35px;
  color: var(--muted);
}
.tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
}
.tab-buttons button.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
@media (max-width: 1000px) {
  .login-layout {
    gap: 35px;
  }
  .top-note {
    display: none;
  }
  .steps {
    gap: 10px;
  }
  .login-card {
    padding: 26px;
  }
  main {
    padding: 40px 28px;
  }
}
@media (max-width: 740px) {
  .topbar {
    height: 78px;
    padding: 0 20px;
  }
  .school-badge {
    display: none;
  }
  .brand {
    font-size: 20px;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 25px;
  }
  .text-button {
    font-size: 12px;
    padding: 8px;
  }
  main {
    padding: 28px 20px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 0;
  }
  .intro h1 {
    font-size: 35px;
  }
  .intro .subject-preview,
  .intro .steps,
  .intro > .small {
    display: none;
  }
  .lede {
    font-size: 16px;
    margin-bottom: 0;
  }
  .login-card {
    padding: 25px;
  }
  .field-with-action {
    flex-direction: column;
  }
  .field-with-action button {
    width: 100%;
  }
  .grid-2,
  .exam-layout {
    grid-template-columns: 1fr;
  }
  .exam-side {
    order: -1;
  }
  .exam-side .question-grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
  }
  .exam-side .qnum {
    min-height: 32px;
    font-size: 12px;
  }
  .panel {
    padding: 23px;
  }
  .exam-side {
    padding: 18px;
  }
  .exam-side h3 {
    display: none;
  }
  .question-grid {
    margin: 12px 0;
  }
  .question {
    font-size: 19px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  footer {
    height: auto;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 11px;
  }
  .stats {
    gap: 10px;
  }
  .stats > div,
  .stats > button {
    min-width: 120px;
    flex: 1;
    padding: 15px;
  }
  .navigation button {
    padding: 12px;
  }
  .topbar .brand {
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
}
@media print {
  .topbar,
  footer,
  .toolbar,
  button {
    display: none;
  }
  main {
    padding: 0;
  }
  .panel {
    box-shadow: none;
  }
}

/* EDUFIC identity and school-level entry */
:root {
  --edufic-green: #2daf71;
  --edufic-orange: #f07238;
  --edufic-yellow: #fabd02;
}
.brand {
  gap: 18px;
  letter-spacing: normal;
}
.brand img {
  width: 166px;
  height: 68px;
  object-fit: contain;
}
.brand .school-badge {
  margin: 0;
  padding-left: 20px;
  max-width: none;
  font-size: 11px;
}
.top-note {
  font-size: 14px;
  color: #5b7164;
}
.setup-logo {
  width: 180px;
  height: auto;
}
.level-welcome {
  text-align: center;
  margin: 4px 0 36px;
  position: relative;
  isolation: isolate;
}
.level-welcome::before,
.level-welcome::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.level-welcome::before {
  width: 92px;
  height: 92px;
  left: 8%;
  top: -12px;
  border: 12px solid #fabd0240;
  border-radius: 50%;
  transform: rotate(18deg);
}
.level-welcome::after {
  width: 130px;
  height: 42px;
  right: 8%;
  bottom: 2px;
  border-top: 5px solid #2daf7180;
  border-radius: 50%;
  transform: rotate(-12deg);
}
.level-welcome h1 {
  font-size: clamp(32px, 3.3vw, 46px);
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin: 18px 0;
}
.level-welcome > p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}
.level-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.level-card {
  text-align: left;
  background: white;
  color: #20382d;
  border: 1px solid #d5e3d9;
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 12px 35px #173b2310;
  border-top: 5px solid var(--edufic-green);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.level-card::before,
.level-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.level-card::before {
  width: 210px;
  height: 210px;
  right: -94px;
  bottom: -108px;
  border-radius: 50%;
  background: #2daf7118;
}
.level-card::after {
  width: 76px;
  height: 76px;
  right: 28px;
  top: 25px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fabd0250 0 48%, transparent 49% 100%);
  transform: rotate(15deg);
}
.level-smp::before {
  background: #f0723818;
}
.level-smp::after {
  background: linear-gradient(135deg, #2daf7142 0 48%, transparent 49% 100%);
}
.level-card:hover {
  border-color: #2daf71;
  box-shadow: 0 14px 38px #173b2320;
  transform: translateY(-5px);
}
.level-smp {
  border-top-color: var(--edufic-orange);
}
.level-smp:hover {
  border-color: var(--edufic-orange);
}
.level-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.level-code {
  display: grid;
  place-items: center;
  min-width: 85px;
  height: 74px;
  border-radius: 16px;
  background: #e6f6ed;
  font-size: 32px;
  font-weight: 780;
  letter-spacing: -1px;
  color: #14724a;
  position: relative;
  box-shadow: inset 0 -5px 0 #2daf7117;
}
.level-code::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  right: 12px;
  top: 10px;
  background: var(--edufic-yellow);
}
.level-smp .level-code {
  background: #fff0e6;
  color: #a93d14;
  font-size: 28px;
}
.level-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #64746a;
}
.level-card > strong {
  font-size: 25px;
  letter-spacing: -0.7px;
  position: relative;
  z-index: 1;
}
.level-description {
  line-height: 1.8;
  font-size: 16px;
  color: #576d61;
  max-width: 380px;
  flex: 1;
  position: relative;
  z-index: 1;
}
.level-subjects {
  font-size: 13px;
  color: #586e60;
  position: relative;
  z-index: 1;
}
.level-subjects b {
  padding: 0 8px;
  color: #c17815;
}
.level-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #41a275;
  color: white;
  padding: 15px 18px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 650;
  margin-top: 4px;
  position: relative;
  z-index: 1;
  box-shadow: 0 7px 0 #173b2312;
}
.level-smp .level-cta {
  background: #f66619;
}
.level-cta > span {
  font-size: 23px;
  line-height: 1;
}
.level-footnote {
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  margin: 30px auto 0;
  font-size: 14px;
  color: #576d61;
  line-height: 1.7;
}
.sun-dot {
  height: 11px;
  width: 11px;
  background: var(--edufic-yellow);
  border-radius: 50%;
  flex-shrink: 0;
}
.level-disclaimer {
  text-align: center;
  margin: 14px 0;
}
main:has(.level-welcome) {
  max-width: none;
  padding-left: max(40px, 6vw);
  padding-right: max(40px, 6vw);
  background:
    radial-gradient(circle at 8% 34%, #fabd0210 0 110px, transparent 111px),
    radial-gradient(circle at 94% 63%, #f0723810 0 150px, transparent 151px),
    radial-gradient(#2daf7126 1.2px, transparent 1.2px) 0 0 / 24px 24px,
    #f6faf7;
}
main:has(.level-welcome)::before {
  content: "";
  display: block;
  width: min(760px, 80%);
  height: 4px;
  margin: -22px auto 25px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #fabd02, #f07238, #2daf71, transparent);
  opacity: 0.7;
}
.level-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.level-context .text-button {
  color: #14724a;
}
.toolbar select {
  max-width: 190px;
  margin: 0;
}
.question-grid .qnum.flagged {
  background: #fff2bd;
  border-color: #e3b221;
  color: #6d5000;
}
@media (max-width: 740px) {
  .brand img {
    width: 125px;
    height: 51px;
  }
  .brand .school-badge {
    display: none;
  }
  .level-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .level-welcome {
    margin: 6px 0 25px;
  }
  .level-welcome h1 {
    font-size: 32px;
  }
  .level-welcome > p {
    font-size: 16px;
  }
  .level-card {
    padding: 25px;
    gap: 16px;
  }
  .level-card > strong {
    font-size: 23px;
  }
  .level-code {
    height: 62px;
    min-width: 72px;
    font-size: 29px;
  }
  .level-footnote {
    align-items: flex-start;
    margin-top: 22px;
  }
  .sun-dot {
    margin-top: 7px;
  }
  .level-description {
    max-width: none;
  }
  .page-heading {
    flex-wrap: wrap;
  }
}

/* Refined landing composition */
main:has(.level-welcome) {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 58px;
  background:
    radial-gradient(circle at 3% 13%, #fabd0220 0 8px, transparent 9px),
    radial-gradient(circle at 97% 18%, #2daf7120 0 7px, transparent 8px),
    radial-gradient(circle at 10% 86%, #f0723818 0 125px, transparent 126px),
    radial-gradient(circle at 91% 72%, #fabd0219 0 180px, transparent 181px),
    radial-gradient(#2daf712b 1.15px, transparent 1.15px) 0 0 / 28px 28px,
    #f7fbf8;
}
main:has(.level-welcome)::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -190px;
  top: 145px;
  border: 2px solid #f0723833;
  border-radius: 50%;
  pointer-events: none;
}
.level-welcome {
  max-width: 1080px;
  margin: 0 auto 28px;
  padding: 42px 48px 40px;
  border: 1px solid #d6e9dc;
  border-radius: 30px;
  background: linear-gradient(125deg, #effaf3 0%, #ffffff 54%, #fff7ed 100%);
  box-shadow: 0 22px 55px #1d4a3114;
  overflow: hidden;
}
.level-welcome::before {
  width: 148px;
  height: 148px;
  left: -44px;
  top: -58px;
  border: 18px solid #fabd0240;
  border-radius: 50%;
}
.level-welcome::after {
  width: 210px;
  height: 76px;
  right: -24px;
  bottom: -23px;
  border-top: 10px solid #2daf7160;
  border-radius: 50%;
  transform: rotate(-16deg);
}
.level-welcome .eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 13px;
  border: 1px solid #cce5d5;
  border-radius: 999px;
  background: #ffffffb8;
  box-shadow: 0 5px 16px #1d4a310b;
}
.level-welcome h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 17px auto 12px;
  color: #173b2d;
  font-size: clamp(35px, 4vw, 56px);
  letter-spacing: -2px;
}
.level-welcome > p {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  font-size: 17px;
}
.level-grid {
  max-width: 1080px;
  gap: 22px;
}
.level-card {
  min-height: 350px;
  padding: 34px;
  border-top-width: 7px;
  border-radius: 25px;
  background: linear-gradient(155deg, #ffffff 0%, #ffffff 68%, #f0faf4 100%);
  box-shadow: 0 15px 38px #173b2315;
}
.level-smp {
  background: linear-gradient(155deg, #ffffff 0%, #ffffff 68%, #fff5ec 100%);
}
.level-card:hover {
  box-shadow: 0 22px 48px #173b2326;
}
.level-card-top {
  margin-bottom: 2px;
}
.level-code {
  min-width: 92px;
  height: 80px;
  border-radius: 20px;
  font-size: 35px;
  box-shadow: inset 0 -6px 0 #2daf7117, 0 8px 0 #2daf7110;
}
.level-smp .level-code {
  font-size: 31px;
  box-shadow: inset 0 -6px 0 #f0723817, 0 8px 0 #f0723810;
}
.level-card > strong {
  font-size: 27px;
}
.level-description {
  font-size: 16px;
  max-width: 410px;
}
.level-cta {
  min-height: 54px;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 0 #173b2315;
}
.level-footnote {
  max-width: 720px;
  margin-top: 25px;
  padding: 12px 19px;
  border: 1px solid #d6e9dc;
  border-radius: 999px;
  background: #ffffffc9;
  box-shadow: 0 9px 24px #1d4a310d;
}
@media (max-width: 740px) {
  main:has(.level-welcome) {
    padding-top: 38px;
    padding-bottom: 38px;
  }
  .level-welcome {
    padding: 32px 22px 30px;
    border-radius: 24px;
  }
  .level-welcome h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .level-card {
    min-height: 0;
    padding: 27px 24px;
  }
  .level-footnote {
    border-radius: 18px;
    padding: 11px 15px;
  }
}

/* Remove the crossed landing accents */
main:has(.level-welcome)::before {
  display: none;
}
.level-card,
.level-smp {
  border-top: 1px solid #d6e9dc;
}

/* Full-bleed welcome panel */
.level-welcome {
  width: calc(100% + (2 * max(40px, 6vw)));
  max-width: none;
  margin-left: calc(-1 * max(40px, 6vw));
  margin-right: calc(-1 * max(40px, 6vw));
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}
@media (max-width: 740px) {
  .level-welcome {
    width: calc(100% + 80px);
    margin-left: -40px;
    margin-right: -40px;
    border-radius: 0;
  }
}

/* Calm hero background */
.level-welcome {
  background: #ffffff;
}

/* Participant correction and assessment feedback */
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid #c9dfd0;
  border-radius: 8px;
  background: #ffffff;
  color: #24764e;
  font-size: 17px;
  line-height: 1;
  vertical-align: middle;
}
.icon-button:hover {
  border-color: #41a275;
  background: #edf8f1;
}
.drill-whatsapp-button {
  color: #168a51;
  text-decoration: none;
}
.drill-whatsapp-button:hover {
  color: #0d6d3d;
}
.drill-whatsapp-button svg {
  fill: currentColor;
  stroke: none;
}
.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.participant-actions {
  white-space: nowrap;
}
.supervisor-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 18px 0 24px;
}
.supervisor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.supervisor-row:last-child { border-bottom: 0; }
.batch-schedule-grid:has(.drill-session-list) { grid-template-columns: minmax(0, 1fr); }
.drill-session-list { display: grid; gap: 10px; }
.drill-session-row { display: grid; grid-template-columns: 1.1fr 0.8fr 0.8fr 1.2fr; gap: 8px 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.drill-session-row .drill-session-link { grid-column: 1 / 4; }
.drill-session-row [data-remove-drill-session] { align-self: end; justify-self: start; }
@media (max-width: 640px) { .drill-session-row { grid-template-columns: 1fr 1fr; } .drill-session-row .drill-session-link { grid-column: 1 / -1; } }
.supervisor-row strong,
.supervisor-row .small { display: block; }
.pro-cell {
  min-width: 150px;
  white-space: nowrap;
}
.small-button {
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  margin-left: 0.35rem;
}
.pro-panel {
  margin-top: 1rem;
  border-color: #f3c85b;
}
.participant-actions .icon-button {
  margin-left: 0;
  margin-right: 6px;
}
.delete-icon-button {
  border-color: #efc5bf;
  color: #a13020;
}
.delete-icon-button:hover {
  border-color: #d77d70;
  background: #fff0ed;
}
.feedback-cell {
  min-width: 250px;
  color: #576d61;
  line-height: 1.6;
}
.assessment-feedback {
  margin: 16px 0 24px;
  padding: 17px 20px;
  border: 1px solid #cfe5d6;
  border-radius: 14px;
  background: #f2faf5;
}
.assessment-feedback .score {
  margin: 0 0 5px;
  font-size: 32px;
}
.assessment-feedback p {
  margin: 5px 0;
}

/* Admin workspace. Scoped independently from participant and login layouts. */
body:has(.admin-shell) { background: #f3f7f5; }
body:has(.admin-shell) > .topbar,
body:has(.admin-shell) > footer { display: none; }
#app:has(.admin-shell) { max-width: none; min-height: 100vh; margin: 0; padding: 0; }
.admin-shell { --sidebar-width: 244px; min-height: 100vh; font-size: 14px; }
.admin-shell svg { width: 21px; height: 21px; flex: 0 0 auto; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 24px 16px 18px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.admin-sidebar-brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 0 16px 28px; text-decoration: none; }
.admin-sidebar-brand img { width: 150px; height: auto; object-fit: contain; }
.admin-sidebar-brand > span { color: #323333; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.admin-nav-caption { margin: 4px 16px 12px; color: #87938c; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-nav { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 9px; color: #5d6c63; text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.4; }
.admin-nav:hover { background: #f2f7f4; color: #236b4d; }
.admin-nav.active { color: #176544; background: #e9f5ee; box-shadow: inset 3px 0 #39a272; }
.admin-drill-toggle { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; font-family: inherit; }
.admin-drill-toggle:focus-visible, .admin-drill-link:focus-visible { outline: 2px solid #39a272; outline-offset: 2px; }
.admin-drill-label { flex: 1; }
.admin-drill-chevron { color: #849087; font-size: 18px; line-height: 1; }
#admin-drill-subnav { display: grid; gap: 3px; }
#admin-drill-subnav[hidden] { display: none; }
.admin-drill-link { padding-left: 46px; font-size: 12px; }
.admin-drill-link svg { width: 18px; height: 18px; }
.admin-sidebar-footer { display: grid; gap: 18px; margin-top: auto; padding: 40px 10px 0; color: #849087; font-size: 11px; }
.admin-logout { display: flex; gap: 12px; align-items: center; padding: 13px 0 0; background: none; border: 0; border-top: 1px solid var(--line); color: #6c756f; text-align: left; font-size: 13px; }
.admin-main { margin-left: var(--sidebar-width); min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line); }
.admin-menu-toggle, .admin-mobile-close { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: #55695c; }
.admin-breadcrumb { display: flex; align-items: center; gap: 12px; color: #7c8b81; font-size: 12px; }
.admin-breadcrumb > span { color: #b6c0ba; }
.admin-breadcrumb strong { color: #354e3f; font-weight: 600; }
.admin-account { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; font-weight: 600; }
.admin-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff1db; color: #a56814; font-weight: 700; }
.admin-content { max-width: 1640px; padding: 32px; margin: 0 auto; min-width: 0; }
.admin-page-heading { display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin: 0 0 26px; }
.admin-page-heading > div:first-child { flex: 1 1 300px; }
.admin-page-heading .eyebrow { font-size: 10px; letter-spacing: 1.6px; }
.admin-page-heading h1 { font-size: 28px; letter-spacing: -.8px; line-height: 1.25; margin: 8px 0; }
.admin-page-heading p { font-size: 13px; line-height: 1.7; margin: 0; max-width: 600px; }
.admin-greeting { position: relative; overflow: hidden; padding: 30px 32px 28px; border-radius: 22px; background: #e9f5ee; }
.admin-greeting > div { position: relative; z-index: 1; flex: 1 1 auto; }
.admin-greeting .greet-deco { position: absolute; inset: 0; pointer-events: none; }
.admin-greeting .greet-actions { margin-top: 18px; }
.admin-greeting .greet-salam { display: block; color: #2f7d58; font-weight: 700; font-size: 15px; }
.admin-greeting h1 { margin: 6px 0 10px; font-size: 40px; letter-spacing: -1px; line-height: 1.1; color: #20382d; }
.admin-greeting .greet-line { font-size: 16px; color: #3d5548; max-width: 760px; padding-right: 120px; }
.schedule-live { display: block; font-size: 12px; color: #8a6d1f; }
.schedule-live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #e0a526; vertical-align: 1px; }
.schedule-live.is-open { color: #2f7d58; font-weight: 700; }
.schedule-live.is-open::before { background: #41a275; }
.admin-greeting .greet-cards > * { max-width: none; }
.admin-greeting .prayer .prayer-place { margin: 8px 0 0 40px; }
.admin-greeting .greet-cards { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; margin-top: 16px; align-items: stretch; }
.admin-greeting .greet-fact { margin: 0; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.8); font-size: 14px; line-height: 1.7; color: #3d5548; }
.admin-greeting .greet-answer { color: #20382d; }
.admin-greeting .greet-turn { font-weight: 700; font-style: italic; color: #f66619; }
.admin-greeting .prayer { margin: 0; padding: 14px 16px 12px; border-radius: 16px; background: rgba(255,255,255,.8); }
.prayer-message { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; line-height: 1.55; color: #20382d; }
.prayer-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff3e6; }
.prayer-icon svg { width: 16px; height: 16px; fill: #f6a01a; }
.prayer-place { margin: 8px 0 0 40px; font-size: 12px; color: #6b7f72; }
.prayer-change { border: 0; background: none; padding: 0; color: #f66619; font: inherit; font-weight: 700; cursor: pointer; }
.prayer-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.prayer-picker[hidden] { display: none; }
.prayer-picker .small-button { margin: 0; }
.prayer-picker select { width: auto; flex: 1 1 200px; max-width: 280px; margin: 0; min-height: 36px; padding: 0 10px; border: 1px solid #cddcd2; border-radius: 10px; font: inherit; font-size: 13px; background: #fff; }
.prayer-picker p { flex-basis: 100%; margin: 0; }
.greet-deco i { position: absolute; display: block; border-radius: 50%; }
.greet-deco i:nth-child(1) { width: 150px; height: 150px; right: -48px; top: -60px; background: #f66619; }
.greet-deco i:nth-child(2) { width: 74px; height: 74px; right: 72px; top: -22px; background: #f5b400; }
.greet-deco i:nth-child(3) { width: 18px; height: 18px; right: 40px; top: 108px; background: #41a275; }
@media (max-width: 900px) {
  .admin-greeting .greet-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-greeting { padding: 24px 20px 22px; }
  .admin-greeting h1 { font-size: 32px; }
  .admin-greeting .greet-line { font-size: 15px; padding-right: 30px; }
  .greet-deco i:nth-child(1) { width: 110px; height: 110px; right: -50px; top: -50px; }
  .greet-deco i:nth-child(2) { width: 52px; height: 52px; right: 40px; top: -20px; }
  .greet-deco i:nth-child(3) { right: 18px; top: 76px; }
}
.admin-page-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.admin-content .primary, .admin-content .secondary, .admin-content .danger { padding: 10px 15px; min-height: 40px; font-size: 12px; border-radius: 7px; }
.admin-content .panel { padding: 24px; border-radius: 12px; box-shadow: 0 2px 4px #213f2a03; margin: 0 0 22px; }
.admin-content h2 { font-size: 18px; letter-spacing: -.3px; margin: 0 0 6px; }
.admin-content h3 { font-size: 15px; letter-spacing: -.2px; }
.admin-content p.muted { line-height: 1.7; }
.admin-page-footer { margin: 28px 0 0; font-size: 11px; color: #8b9890; }
.admin-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.tl-filters .tl-date { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: #4b6357; }
#tl-table { overflow-x: auto; }
.tl-table { min-width: 820px; }
.tl-table td:nth-child(n+3) { white-space: nowrap; }
.tl-filters .tl-date input { width: auto; margin: 0; min-height: 40px; padding: 6px 10px; }
.tl-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tl-table th { text-align: left; padding: 10px; font-size: 12px; color: #63766a; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tl-table td { padding: 10px; border-bottom: 1px solid #edf3ef; vertical-align: top; }
.tl-table tr.tl-day-start td { border-top: 2px solid #dce8df; }
.tl-state { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tl-state.closed { background: #e3f3ea; color: #23784f; }
.tl-state.open { background: #fff1e3; color: #c2410c; }
.tl-state.live { background: #ffe4e6; color: #be123c; }
.tl-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: #f6faf7; border: 1px solid var(--line); }
.tl-check label { margin: 0; font-size: 13px; font-weight: 700; color: #234331; }
.tl-check input { flex: 1 1 220px; max-width: 280px; margin: 0; min-height: 40px; }
.tl-check .secondary { min-height: 40px; padding: 8px 16px; }
.tl-check-table { max-height: 50vh; overflow: auto; margin: 10px 0; }
.tl-check-table .tl-table { min-width: 0; }
.tl-link { word-break: break-all; }
.tl-rec { font-weight: 700; text-decoration: none; white-space: nowrap; }
.tl-rec.ok { color: #23784f; }
.tl-rec.bad { color: #be123c; }
.tl-rec.wait { color: #b45309; }
@media (max-width: 640px) {
  .tl-filters .tl-date { flex: 1 1 100%; justify-content: space-between; }
  .tl-filters .tl-date input { flex: 1; max-width: 220px; }
}
.admin-stat-live .admin-stat-icon { background: #ffe4e6; color: #be123c; }
.live-class-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.live-class-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.live-class-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.live-class-list .secondary { min-height: 40px; padding: 8px 14px; }
.admin-stat { display: grid; text-align: left; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #234331; gap: 10px; }
.admin-stat:hover { border-color: #81b899; box-shadow: 0 6px 18px #213f2a08; }
.admin-stat-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #eef6f1; color: #3a8761; }
.admin-stat:nth-child(2) .admin-stat-icon { background: #eaf2ff; color: #5b80b4; }
.admin-stat:nth-child(3) .admin-stat-icon { background: #e9f8f3; color: #308876; }
.admin-stat:nth-child(4) .admin-stat-icon { background: #fff3e2; color: #b98229; }
.admin-stat-label { font-size: 12px; color: #728077; }
.admin-stat strong { font-size: 30px; font-weight: 700; line-height: 1.1; }
.admin-stat-link { font-size: 11px; color: #55836a; margin-top: 5px; }
.admin-section-heading p { margin: 0 0 22px; font-size: 13px; }
.admin-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-level { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fcfefd; }
.admin-level h3 { margin: 12px 0 16px; }
.admin-level > strong, .admin-level-top > div > strong { font-size: 24px; }
.admin-level small { font-size: 12px; font-weight: 400; color: #7a8b80; }
.admin-level p { font-size: 12px; margin: 8px 0 20px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 20px; }
.admin-filters select { flex: 1 1 160px; max-width: 220px; min-width: 0; }
.admin-filters #search { flex: 2 1 220px; width: auto; max-width: none; min-width: 0; margin: 0; }
.admin-content input, .admin-content select { min-height: 42px; font-size: 13px; border-radius: 7px; padding: 10px 12px; }
.admin-content label { font-size: 12px; line-height: 1.6; }
.admin-content .table-scroll { width: 100%; overflow-x: auto; }
.admin-data-panel table { min-width: 960px; font-size: 12px; }
.admin-data-panel th { font-size: 10px; padding: 14px 12px; color: #657b6d; white-space: nowrap; }
.admin-data-panel td { padding: 16px 12px; line-height: 1.6; }
.admin-data-panel td:nth-child(2) { min-width: 120px; }
.admin-data-panel td:nth-child(3) { min-width: 160px; }
.admin-data-panel td:first-child:has(strong) { min-width: 180px; }
.admin-data-panel .participant-actions { min-width: 92px; }
.admin-data-panel .pill { white-space: nowrap; }
.admin-data-panel .icon-button { min-height: 30px; width: 30px; height: 30px; padding: 6px; }
.admin-data-panel .icon-button svg { width: 16px; height: 16px; }
.admin-data-panel .feedback-cell { min-width: 250px; max-width: 300px; }
.admin-content .bulk-actions { gap: 12px; padding: 12px 0; margin: 0 0 12px; border-top: 1px solid #eaf0ec; font-size: 12px; }
.admin-content .select-hint { font-size: 12px; }
.admin-content .discussion-level-grid, .admin-content .batch-schedule-grid { margin-top: 18px; gap: 20px; }
.admin-content .discussion-link-form, .admin-content .batch-schedule-form { padding: 20px; background: #fcfefd; border-radius: 10px; gap: 14px; align-content: start; }
.admin-content .discussion-link-form h3 { margin: 0; }
.admin-content .discussion-link-form label, .admin-content .batch-schedule-form label { margin: 0; }
.admin-content .error:empty { display: none; }
.admin-content .discussion-link-form p { margin: 0; font-size: 11px; }
.admin-content .actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.admin-content .admin-section-title { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.admin-content .supervisor-list { margin: 22px 0; max-width: 760px; }
.admin-content #supervisor-form { max-width: 540px; }
.admin-content #supervisor-form label { margin-bottom: 18px; }
.admin-shell.sidebar-collapsed .admin-sidebar { display: none; }
.admin-shell.sidebar-collapsed .admin-main { margin-left: 0; }
.admin-sidebar-backdrop, .admin-mobile-close { display: none; }
@media (max-width: 1150px) {
  .admin-shell { --sidebar-width: 220px; }
  .admin-content { padding: 24px; }
  .admin-topbar { padding: 0 24px; }
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-content .discussion-level-grid, .admin-content .batch-schedule-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .admin-main { margin-left: 0; }
  .admin-sidebar, .admin-shell.sidebar-collapsed .admin-sidebar { display: none; width: 260px; }
  .admin-shell.sidebar-open .admin-sidebar { display: flex; }
  .admin-shell.sidebar-open .admin-sidebar-backdrop { display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 35; background: #163e3280; border: 0; border-radius: 0; }
  .admin-mobile-close { display: grid; position: absolute; top: 15px; right: 12px; width: 30px; height: 30px; }
  .admin-sidebar-brand { padding-left: 8px; }
  .admin-sidebar-brand img { width: 135px; }
}
@media (max-width: 600px) {
  .admin-content { padding: 22px 16px; }
  .admin-topbar { height: 62px; padding: 0 16px; gap: 10px; }
  .admin-breadcrumb { font-size: 11px; gap: 7px; }
  .admin-account { font-size: 0; gap: 0; }
  .admin-avatar { font-size: 12px; width: 28px; height: 28px; }
  .admin-page-heading { gap: 12px; margin-bottom: 20px; }
  .admin-page-heading h1 { font-size: 25px; }
  .admin-content .panel { padding: 16px; }
  .admin-page-actions { width: 100%; padding-top: 0; }
  .admin-page-actions button { flex: 1 1 auto; }
  .admin-stats { gap: 10px; }
  .admin-stat { padding: 15px; }
  .admin-stat strong { font-size: 26px; }
  .admin-stat-label { font-size: 11px; }
  .admin-levels { grid-template-columns: 1fr; }
  .admin-level { padding: 16px; }
  .admin-filters select { max-width: none; flex: 1 1 130px; }
  .admin-filters #search { flex-basis: 100%; }
  .admin-filters button { flex: 1 1 auto; }
  .admin-content .discussion-link-form, .admin-content .batch-schedule-form { padding: 16px; }
  .admin-content .bulk-actions .select-hint { flex-basis: 100%; }
}

/* Pintu masuk pendaftaran di beranda */
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.register-link { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--edufic-green); color: white; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.register-link:hover { background: #22935e; }
.register-link[hidden] { display: none; }
.register-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 980px; margin: 22px auto 0; }
.register-strip-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: white; color: #20382d; text-decoration: none; }
.register-strip-item:hover { border-color: var(--edufic-green); box-shadow: 0 6px 18px rgba(20, 60, 40, 0.08); }
.register-strip-item strong { display: block; font-size: 16px; }
.register-strip-item small { display: block; color: #576d61; font-size: 13px; margin-top: 2px; }
.register-strip-item > span:nth-child(2) { flex: 1; min-width: 0; }
.register-strip-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto; }
.register-strip-item.new .register-strip-icon { background: #dff3e8; color: #1a7a4c; font-size: 24px; }
.register-strip-item.pay .register-strip-icon { background: #fff1e6; color: #c9551f; font-size: 14px; }
.register-strip-go { font-size: 22px; color: #8aa396; }
@media (max-width: 740px) {
  .register-strip { grid-template-columns: 1fr; }
  .register-link { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .topbar-actions .text-button { padding: 10px 6px; }
}

.pill-warn { background: #fff3d6; color: #6b5200; }
.pill-ok { background: #dff3e8; color: #1a4330; }
.pill-bad { background: #fdecea; color: #8a2a1e; }
.proof-large { max-height: 70vh; }
.id-lock { margin-left: 6px; font-size: 0.95em; cursor: help; }
.registered-cell { white-space: nowrap; }
.sort-header { display: inline-flex; align-items: center; gap: 6px; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; white-space: nowrap; }
.sort-header span { font-size: 0.95em; opacity: 0.45; }
.sort-header:hover span, .sort-header.active span { opacity: 1; }
.sort-header.active { color: var(--edufic-green, #1f9d63); }
.sort-header:focus-visible { outline: 2px solid var(--edufic-green, #1f9d63); outline-offset: 3px; border-radius: 4px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; max-height: 62vh; overflow-y: auto; }
.share-grid img { width: 100%; border-radius: 9px; border: 1px solid #c9dace; display: block; }
.reg-actions { min-width: 210px; }
.reg-actions .small-button { margin: 2px 4px 2px 0; }
.reg-actions a.small-button { text-decoration: none; }
.actions a.primary, .actions a.secondary { text-decoration: none; }
.reg-actions a.small-button[href^="https://wa.me"] { border-color: #25d366; color: #0f6b3a; }
.proof-preview { max-width: 100%; max-height: 320px; border-radius: 9px; border: 1px solid #c9dace; display: block; margin: 12px auto; }
@media (max-width: 1100px) { .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-stat-live { grid-column: 1 / -1; } }
.test-account-list { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.test-account { border: 1px solid #d7e3da; border-radius: 10px; padding: 12px 14px; background: #fbfdfb; }
.test-account-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.test-account-login { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 10px 0 6px; font-size: 13px; }
.test-account-login dt { color: #5d6b63; }
.test-account-login dd { margin: 0; font-weight: 600; word-break: break-all; }
.test-account .toolbar { flex-wrap: wrap; gap: 6px; }
.tester-notice .toolbar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
.tester-notice .toolbar button { width: auto; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-pagination label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.admin-pagination select { width: auto; min-width: 70px; }
.admin-page-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.admin-page-navigation button { padding: 8px 12px; }
@media (max-width: 560px) { .admin-page-navigation { width: 100%; } .admin-page-navigation button { flex: 1; } .admin-page-navigation span { width: 100%; text-align: center; order: -1; } }
.admin-level-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.level-split { display: grid; gap: 8px; width: 210px; max-width: 100%; margin-top: 26px; }
.level-split-item { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.level-split-item:hover { border-color: #9cc7ad; }
.level-split-item span { font-size: 12px; color: #5d6b63; }
.level-split-item b { font-size: 18px; }
.level-split-item.pro b { color: #1f7a4a; }
@media (max-width: 560px) { .level-split { width: 100%; grid-template-columns: 1fr 1fr; margin-top: 0; } }
.material-table-wrap { overflow-x: auto; }
.material-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.material-table th, .material-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; white-space: nowrap; vertical-align: middle; }
.material-table thead th { background: #f1f6f3; font-weight: 700; }
.material-table tbody tr:nth-child(even) td { background: #fbfdfc; }
.material-table td:last-child { width: 1%; text-align: right; }
.material-table a { font-weight: 600; }
.material-table .small-button { min-height: 0; padding: 6px 12px; }
.registration-cell { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.registration-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted, #6b7a72); font-weight: 600; }
.registration-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c3cdc7; }
.registration-state.is-open { color: #1f7a4c; }
.registration-state.is-open::before { background: #2fa36b; }
.schedule-table .small-button { min-width: 64px; }
#modal-body .batch-schedule-form { display: grid; gap: 14px; padding: 0; border: 0; background: none; }
#modal-body .batch-schedule-form h3 { margin: 0; }
#modal-body .batch-schedule-form label { margin: 0; }
#modal-body .batch-schedule-form .actions { margin-top: 4px; }
#modal-body .batch-schedule-form, #modal-body .batch-form-section { grid-template-columns: minmax(0, 1fr); }
#modal-body .batch-schedule-form input { width: 100%; min-width: 0; }
#modal-body .batch-schedule-form .actions { flex-wrap: wrap; }
@media (max-width: 640px) {
  .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td { display: block; }
  .schedule-table thead { display: none; }
  .schedule-table tr { position: relative; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .schedule-table tbody tr:nth-child(even) td { background: none; }
  .schedule-table td { padding: 5px 0; border: 0; white-space: normal; }
  .schedule-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  .schedule-table td::before { content: attr(data-label); color: var(--muted); font-weight: 600; text-align: left; }
  .schedule-table td:nth-child(1), .schedule-table td:nth-child(2) { display: inline-block; padding: 4px 0 16px; font-size: 15px; font-weight: 700; }
  .schedule-table td:nth-child(1) { margin-right: 5px; }
  .schedule-table td:nth-child(1)::before { content: none; }
  .schedule-table td:nth-child(2)::before { content: "· "; color: inherit; }
  .schedule-table td:last-child { position: absolute; top: 10px; right: 12px; width: auto; padding: 0; }
  .schedule-table .registration-cell { justify-content: flex-end; }
  #modal-body .batch-schedule-form .actions button { flex: 1; }
}
.bank-upload .bank-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding: 18px; border: 1.5px dashed #b9d6c4; border-radius: 12px; background: #f7fbf8; cursor: pointer; }
.bank-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bank-drop:focus-within { outline: 2px solid #41a275; outline-offset: 2px; }
.bank-pick { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 10px; font-weight: 700; }
.bank-results { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.bank-result { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; font-size: 13px; }
.bank-result.ok { border-left-color: #2fa36b; }
.bank-result.rejected { border-left-color: #d0543b; background: #fff8f6; }
.bank-result ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.bank-panel { margin-top: 18px; }
.bank-table td { vertical-align: top; }
.bank-table td span.small, .bank-file span.small { display: block; margin-top: 2px; white-space: normal; }
.bank-file { max-width: 280px; white-space: normal !important; word-break: break-all; }
.bank-status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eef1ef; color: var(--muted); font-size: 12px; font-weight: 700; }
.bank-status.active { background: #e3f4ea; color: #1f7a4c; }
.bank-status.draft { background: #fff3dc; color: #8a5a00; }
.bank-warning { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: #fff3dc; color: #8a5a00; font-size: 12px; font-weight: 700; cursor: help; }
.bank-actions { display: flex; gap: 6px; justify-content: flex-end; }
.bank-table td:last-child { width: 1%; }
.danger-text { color: #b23a26; }
.option.bank-correct { border-color: #2fa36b; background: #effaf3; }
.bank-key { margin: 14px 0 4px; }
@media (max-width: 640px) {
  .bank-table, .bank-table tbody, .bank-table tr, .bank-table td { display: block; }
  .bank-table thead { display: none; }
  .bank-table tr { margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .bank-table td, .bank-table tbody tr:nth-child(even) td { padding: 5px 0; border: 0; background: none; white-space: normal; }
  .bank-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .bank-table td:first-child { font-size: 16px; }
  .bank-file { max-width: none; word-break: break-word; }
  .bank-table td:last-child { width: auto; padding-top: 10px; }
  .bank-actions { flex-wrap: wrap; justify-content: flex-start; }
}
.schedule-discussion { display: grid; gap: 2px; }
.schedule-table td:has(.schedule-discussion) { white-space: normal; min-width: 132px; }
.schedule-discussion a { font-weight: 600; }
.discussion-inline h3 { margin: 0 0 10px; }
.discussion-item { display: grid; gap: 6px; justify-items: start; padding: 10px 0; }
.discussion-item + .discussion-item { border-top: 1px dashed var(--line); }
.discussion-item p { margin: 0; }
@media (max-width: 640px) {
  .schedule-table .schedule-discussion { justify-items: end; }
}
.rapor-entry.pro-panel { border-color: var(--line); }
.rapor-entry-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.rapor-written > p { margin: 0 0 14px; }
.rapor-written-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rapor-written-grid > div { padding: 14px 16px; border-radius: 10px; background: #f6f8f7; }
.rapor-written-grid > div:first-child { background: #eef8f2; }
.rapor-written-grid > div:nth-child(2) { background: #fff5ec; }
.rapor-written-grid h3 { margin: 0 0 6px; font-size: 15px; }
.rapor-written-grid ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.65; }
.rapor-entry h2 { margin: 4px 0; }
.rapor-entry p { margin: 0; }
.rapor { --bi: #23a066; --mt: #f3723a; --sun: #fbbe04; --lv-mahir: #23a066; --lv-cakap: #2f7fc1; --lv-dasar: #e3a008; --lv-pendampingan: #d9455f; }
.rapor .panel { margin-bottom: 20px; }
.rapor-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.rapor-head h1 { margin: 6px 0 4px; color: #1d6b45; }
.rapor-head p { margin: 0; }
.rapor-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rapor-actions a.primary { text-decoration: none; }
.rapor-actions > * { white-space: nowrap; text-align: center; }
.rapor-identity { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; }
.rapor-identity span { display: block; color: var(--muted); font-size: 12.5px; }
.rapor-identity strong { display: block; margin-top: 4px; font-size: 16px; }
.rapor-title { display: flex; align-items: center; gap: 10px; margin: 0; color: #1d6b45; font-size: 21px; }
.rapor-dots { display: inline-flex; align-items: flex-start; gap: 3px; height: 16px; }
.rapor-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--mt); }
.rapor-dots i + i { width: 6px; height: 6px; background: var(--sun); }
.rapor-block > .rapor-title, .rapor-title-row { margin-bottom: 18px; }
.rapor-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rapor-select { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 600; }
.rapor-select select { min-height: 36px; padding: 4px 30px 4px 12px; font-weight: 700; }
.rapor-highlight { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid #cfe9db; border-radius: 12px; background: #eef8f2; }
.rapor-highlight.down { border-color: #f6d9c9; background: #fff4ee; }
.rapor-highlight p { margin: 0; }
.rapor-highlight-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--bi); box-shadow: 0 1px 2px #0001; }
.rapor-highlight.down .rapor-highlight-icon { color: var(--mt); }
.rapor-highlight-icon svg, .rapor-strong-icon svg { width: 20px; height: 20px; }
.rapor-batches { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rapor-batch-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 16px; align-items: center; padding: 16px 18px; }
.rapor-batch-row + .rapor-batch-row { border-top: 1px solid var(--line); }
.rapor-batch-row:first-child { background: #fbfdfb; }
.rapor-batch-name strong { display: block; font-size: 16px; }
.rapor-batch-name small, .rapor-score small { display: block; color: var(--muted); font-size: 12.5px; }
.rapor-badge { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: #e3f4ea; color: #1f7a4c; font-size: 12px; font-weight: 700; }
.rapor-score strong { display: block; margin: 2px 0; font-size: 22px; line-height: 1.2; }
.rapor-score.total { text-align: right; }
.rapor-score.total > span:first-child { color: var(--muted); font-size: 12.5px; }
.rapor-score.total strong { color: #1d6b45; font-size: 26px; }
.rapor-subject-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.rapor-subject-label i { width: 9px; height: 9px; border-radius: 50%; background: var(--bi); }
.rapor-subject-label.mt i { background: var(--mt); }
.rapor-change { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.rapor-change.up { color: #1f8a55; }
.rapor-change.down { color: #c2472f; }
.rapor-chart { display: block; }
.rapor-chart .grid { stroke: #e3ebe6; stroke-width: 1; }
.rapor-chart .axis { fill: #7a8a82; font-size: 11px; }
.rapor-chart .series polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.rapor-chart .series circle { stroke: #fff; stroke-width: 2; }
.rapor-chart .series .end { font-size: 12px; font-weight: 700; }
.rapor-chart .bi polyline { stroke: var(--bi); } .rapor-chart .bi circle, .rapor-chart .bi .end { fill: var(--bi); }
.rapor-chart .mt polyline { stroke: var(--mt); } .rapor-chart .mt circle, .rapor-chart .mt .end { fill: var(--mt); }
.rapor-chart-legend { display: flex; gap: 20px; margin-top: 6px; }
.rapor-subject-card, .rapor-assessment, .rapor-focus-group, .rapor-strong { margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.rapor-subject-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.rapor-subject-head h3 { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 17px; color: #1d6b45; }
.rapor-subject-head h3.mt { color: #c4561f; }
.rapor-subject-head strong { color: var(--ink); }
.rapor-part { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(90px, 1fr) 48px minmax(150px, auto); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.rapor-part-name strong { display: block; }
.rapor-part-name small { color: var(--muted); font-size: 12.5px; }
.rapor-bar { height: 8px; border-radius: 999px; background: #edf2ef; overflow: hidden; }
.rapor-bar > span { display: block; height: 100%; border-radius: 999px; background: #a2aaa5; }
.rapor-percent { text-align: right; }
.rapor-part-level { display: grid; justify-items: end; gap: 3px; text-align: right; }
.rapor-level { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #eef1ef; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.rapor-level i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rapor-level.lv-mahir { background: #e2f5ea; color: #1b7a48; }
.rapor-level.lv-cakap { background: #e3eefa; color: #24649b; }
.rapor-level.lv-dasar { background: #fff3d6; color: #93660a; }
.rapor-level.lv-pendampingan { background: #fde8ec; color: #b4304b; }
.rapor-bar .lv-mahir { background: var(--lv-mahir); }
.rapor-bar .lv-cakap { background: var(--lv-cakap); }
.rapor-bar .lv-dasar { background: var(--lv-dasar); }
.rapor-bar .lv-pendampingan { background: var(--lv-pendampingan); }
.rapor-assessment p { margin: 6px 0 0; line-height: 1.7; }
.rapor-strong { display: flex; gap: 14px; align-items: flex-start; }
.rapor-strong-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e2f5ea; color: #1b7a48; }
.rapor-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rapor-chips span { padding: 4px 12px; border-radius: 999px; background: #e2f5ea; color: #1b7a48; font-size: 13px; font-weight: 700; }
.rapor-focus-group h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; font-size: 16px; }
.rapor-focus-item { padding: 14px 0 4px; border-top: 1px solid var(--line); }
.rapor-focus-item + .rapor-focus-item { margin-top: 10px; }
.rapor-focus-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rapor-focus-name { flex: 1; min-width: 180px; }
.rapor-focus-name strong { display: block; font-size: 15.5px; }
.rapor-focus-name small { color: var(--muted); font-size: 12.5px; }
.rapor-ring { --c: var(--lv-dasar); display: grid; flex: none; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #edf2ef 0); }
.rapor-ring.lv-pendampingan { --c: var(--lv-pendampingan); }
.rapor-ring b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; font-size: 12px; }
.rapor-wrong { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; max-width: 260px; color: var(--muted); font-size: 12.5px; }
.rapor-wrong b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 999px; background: #f1f4f2; color: var(--ink); font-size: 12.5px; }
.rapor-home { margin: 12px 0 8px; padding: 14px 16px; border-radius: 10px; background: #f6f8f7; }
.rapor-home p { margin: 6px 0 0; font-size: 14px; }
.rapor-home ol, .rapor-more { margin: 8px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.rapor-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.rapor-legend > div { display: grid; gap: 6px; justify-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
@media (max-width: 760px) {
  .rapor-batch-row { grid-template-columns: 1fr 1fr; }
  .rapor-batch-name { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .rapor-batch-name small { display: inline; }
  .rapor-batch-name .rapor-badge { margin-top: 0; }
  .rapor-score.total { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; text-align: left; padding-top: 10px; border-top: 1px dashed var(--line); }
  .rapor-score.total strong { font-size: 22px; }
  .rapor-part { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .rapor-part .rapor-bar { grid-column: 1 / -1; grid-row: 2; }
  .rapor-part .rapor-percent { grid-column: 2; grid-row: 1; }
  .rapor-part-level { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .rapor-identity { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .rapor-written-grid { grid-template-columns: 1fr; }
  .rapor-wrong { justify-content: flex-start; max-width: none; }
}
@media (max-width: 480px) {
  .rapor-entry .secondary, .rapor-actions > * { flex: 1; }
}
.taken-cell { white-space: nowrap; }
.taken-cell small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.taken-count { font-weight: 700; }
.taken-count.repeat { display: inline-block; padding: 1px 9px; border-radius: 999px; background: #e3f4ea; color: #1f7a4c; }
.entry-layout { grid-template-areas: "intro card" "links card"; align-items: start; row-gap: 24px; margin-top: 0; }
.entry-layout .intro { grid-area: intro; }
.entry-layout .intro h1 { margin: 14px 0; }
.entry-layout .lede { margin-bottom: 18px; }
.entry-layout .login-card { grid-area: card; }
.entry-links { grid-area: links; display: grid; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.entry-links .register-strip-item { border: 0; border-radius: 0; padding: 15px 20px; }
.entry-links .register-strip-item + .register-strip-item { border-top: 1px solid var(--line); }
.entry-links .register-strip-item:hover { box-shadow: none; background: #f6fbf8; }
@media (max-width: 740px) {
  .entry-layout { grid-template-areas: "intro" "card" "links"; row-gap: 22px; }
  .entry-layout .intro { padding-top: 0; }
}

.billing-form { display: grid; gap: 12px; }
.billing-form label { margin: 0; }
#drill-billing .stats { margin: 20px 0; }
#drill-billing .stats > div { display: grid; gap: 8px; }
/* Arena TKA (Daily Drill game) */
/* Arena card in the lobby: one orange "game lobby" with big tappable tiles and few words */
.game-card.arena { position: relative; overflow: hidden; padding: 20px; border: 0; background: linear-gradient(160deg, #f15a14 0%, #ff8a3d 50%, #ffc24f 100%); color: #fff; box-shadow: 0 12px 30px rgba(160, 70, 10, .2); }
.arena::before, .arena::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .13); pointer-events: none; }
.arena::before { width: 260px; height: 260px; top: -120px; right: -80px; }
.arena::after { width: 160px; height: 160px; bottom: -70px; left: -60px; }
.arena > * { position: relative; }
.arena h3 { margin: 0 0 10px; color: #fff; font-size: 19px; font-weight: 900; text-shadow: 0 2px 0 rgba(150, 50, 0, .3); }
.arena-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.arena-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.arena-logo { flex: none; width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; font-size: 34px; background: #fff; box-shadow: 0 5px 0 rgba(150, 50, 0, .3); transform: rotate(-6deg); }
.arena-title h2 { margin: 0; color: #fff; font-size: 32px; font-weight: 900; line-height: 1.05; letter-spacing: -.01em; text-shadow: 0 3px 0 rgba(150, 50, 0, .35); }
.arena-loading { margin: 4px 0 0; color: #fff; font-weight: 700; }
.arena-perks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.arena-chip { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .25); color: #fff; font-size: 12px; font-weight: 800; }
.arena-chip.off { opacity: .7; }
.arena .game-badge { width: 26px; height: 26px; font-size: 11px; background: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .85); border: 2px dashed rgba(255, 255, 255, .55); }
.arena .game-badge.got { background: radial-gradient(circle at 35% 30%, #ffe680, #f5b400 60%, #d89c00); color: #fff; border: 2px solid #fff; }
.arena-flame { flex: none; display: grid; justify-items: center; align-content: center; width: 88px; height: 88px; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; line-height: 1; }
.arena-flame .game-flame { font-size: 30px; filter: grayscale(1) brightness(1.8); opacity: .75; }
.arena-flame strong { font-size: 26px; font-weight: 900; }
.arena-flame small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.arena-flame.lit { background: #fff; color: #e25412; box-shadow: 0 5px 0 rgba(150, 50, 0, .3); }
.arena-flame.lit .game-flame { filter: none; opacity: 1; display: inline-block; animation: game-flicker 1.4s ease-in-out infinite; }
.arena-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.arena-main { min-width: 0; display: grid; gap: 16px; align-content: start; }
.arena-empty { margin: 0; color: #fff; font-weight: 700; }
.arena-mission { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: 24px; background: #fff; color: #1f3529; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 6px 0 rgba(150, 50, 0, .3); transition: transform .1s, box-shadow .1s; }
button.arena-mission:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(150, 50, 0, .3); }
button.arena-mission:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(150, 50, 0, .3); }
.arena-mission-icon { flex: none; width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; font-size: 40px; background: #fff1e3; animation: arena-bob 2.2s ease-in-out infinite; }
.arena-mission.done .arena-mission-icon { background: #eaf7ef; }
.arena-mission-text { flex: 1; min-width: 0; display: grid; gap: 6px; }
.arena-mission-text strong { font-size: 21px; font-weight: 900; }
.arena-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.arena-pills i { padding: 3px 10px; border-radius: 999px; background: #e7f3fc; color: #1f6fa8; font-size: 13px; font-style: normal; font-weight: 800; }
.arena-pills i.gold { background: #fff1c7; color: #9a6b00; }
.arena-play { flex: none; padding: 14px 22px; border-radius: 16px; background: #3e9f76; color: #fff; font-size: 19px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 5px 0 #2a7454; animation: arena-pulse 1.6s ease-in-out infinite; }
.arena-later { flex: none; font-size: 13px; font-weight: 800; color: #6b7f72; }
.arena-challenge { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 3px solid #fff; border-radius: 20px; background: #ffe066; color: #5a3a00; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 5px 0 rgba(150, 50, 0, .3); animation: arena-wiggle 2.6s ease-in-out infinite; }
.arena-challenge > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.arena-challenge strong { font-size: 16px; font-weight: 900; }
.arena-challenge small { font-weight: 700; }
.arena-challenge-icon { flex: none; font-size: 30px; }
.arena-go { flex: none; margin-left: auto; padding: 8px 14px; border-radius: 12px; background: #f15a14; color: #fff; font-weight: 900; box-shadow: 0 3px 0 #a83c08; }
.arena-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.arena-tile { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; border: 0; border-radius: 22px; color: #fff; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer; transition: transform .1s, box-shadow .1s; }
.arena-tile > span { font-size: 36px; line-height: 1.1; }
.arena-tile.blue { background: linear-gradient(160deg, #4fb3ec, #2b7fc0); box-shadow: 0 6px 0 #1f5f92; }
.arena-tile.pink { background: linear-gradient(160deg, #f26fa6, #c93a78); box-shadow: 0 6px 0 #962a59; }
.arena-tile:hover:not(:disabled) { transform: translateY(-2px); }
.arena-tile:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.arena-tile:disabled { opacity: .7; cursor: default; }
.arena-mission:focus-visible, .arena-tile:focus-visible, .arena-challenge:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.arena .game-duel-list { margin-top: 12px; }
.arena .game-duel { background: rgba(255, 255, 255, .94); color: #1f3529; }
.arena-side { min-width: 0; align-self: start; padding: 16px; border-radius: 24px; background: rgba(255, 255, 255, .2); }
.arena-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; }
.podium { min-width: 0; display: grid; justify-items: center; gap: 4px; }
.podium-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #e25412; font-size: 20px; font-weight: 900; box-shadow: 0 3px 0 rgba(150, 50, 0, .3); }
.podium.p1 .podium-avatar { width: 58px; height: 58px; font-size: 24px; border: 3px solid #ffd84d; }
.podium.me .podium-avatar { background: #3e9f76; color: #fff; }
.podium-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 13px; font-weight: 800; }
.podium-pts { color: #fff; font-size: 12px; font-weight: 800; opacity: .9; font-variant-numeric: tabular-nums; }
.podium-block { width: 100%; display: grid; justify-items: center; padding-top: 8px; border-radius: 14px 14px 4px 4px; font-size: 28px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .07); }
.podium.p1 .podium-block { height: 92px; background: linear-gradient(#fff6c9, #ffd84d); }
.podium.p2 .podium-block { height: 70px; background: linear-gradient(#ffffff, #dfe6ec); }
.podium.p3 .podium-block { height: 54px; background: linear-gradient(#fff3ea, #ffc9a3); }
.arena-myrank { margin: 12px 0 0; padding: 8px 12px; border-radius: 14px; background: #fff; color: #c4520f; font-weight: 800; text-align: center; }
@keyframes arena-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }
@keyframes arena-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes arena-wiggle { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(-1.5deg); } 92% { transform: rotate(1.5deg); } 96% { transform: rotate(-1deg); } }
.game-muted { margin: 0; color: #6b7f72; }
.game-badges { display: inline-flex; gap: 6px; }
.game-badge { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #f1f3f2; color: #a3b0a9; border: 2px dashed #cfd9d3; }
.game-badge.got { background: radial-gradient(circle at 35% 30%, #ffd84d, #f5b400 60%, #d89c00); color: #fff; border: 0; box-shadow: 0 3px 0 #c48a00; text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.game-meter { display: block; height: 8px; margin-top: 6px; border-radius: 999px; background: #dcefe4; overflow: hidden; }
.game-meter i { display: block; height: 100%; border-radius: inherit; background: #3e9f76; }
.game-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 11px 20px; border: 0; border-radius: 14px; background: #3e9f76; color: #fff; font: inherit; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 #2a7454; transition: transform .08s, box-shadow .08s, filter .15s; }
.game-btn:hover:not(:disabled) { filter: brightness(1.06); }
.game-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #2a7454; }
.game-btn:disabled { opacity: .6; cursor: default; }
.game-btn:focus-visible, .game-option:focus-visible, .game-link:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }
.game-btn.alt, .game-btn.ghost { background: #fff; color: #2f7d58; box-shadow: 0 4px 0 #cfe6d9; border: 2px solid #cfe6d9; }
.game-btn.alt:active:not(:disabled), .game-btn.ghost:active:not(:disabled) { box-shadow: 0 1px 0 #cfe6d9; }
.game-btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 11px; box-shadow: 0 3px 0 #2a7454; }
.game-btn.small.ghost { box-shadow: 0 3px 0 #cfe6d9; }
.game-link { border: 0; background: none; padding: 6px 4px; font: inherit; font-weight: 700; color: #2f7d58; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.game-duel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.game-duel { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #f7f9f8; }
.game-duel-icon { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: #fff; }
.game-duel-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.game-duel-text > span { font-size: 13px; color: #576d61; }
.game-duel.your-turn { background: #fff4e8; }
.game-duel.your-turn .game-duel-text > span { color: #c4520f; font-weight: 700; }
.game-duel.result-win { background: #eaf7ef; }
.game-duel.result-win .game-duel-text > span { color: #23784f; font-weight: 700; }
.game-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.game-name em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; margin-left: 4px; border-radius: 999px; background: #f66619; color: #fff; vertical-align: 2px; }
.game-modal { display: grid; justify-items: center; text-align: center; gap: 4px; }
.game-modal form { width: 100%; text-align: left; }
.game-modal .actions { justify-content: center; flex-wrap: wrap; }
.game-modal-icon { font-size: 44px; }
.game-modal h2 { margin: 4px 0; }
dialog { background: #fff; color: #20382d; }
.game-search { width: 100%; text-align: left; }
.game-friends { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; max-height: 320px; overflow-y: auto; display: grid; gap: 8px; text-align: left; }
.game-friends li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #f7f9f8; }
.game-friends .game-name { flex: 1; }
.game-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #3e9f76, #41a5e0); }
.game-duel.incoming { background: #fff1e3; box-shadow: inset 0 0 0 2px #ffcf9e; animation: game-pop .5s ease-out; }
.game-duel.incoming strong { color: #c4520f; }
/* Characters */
.game-avatar-svg { display: block; flex: none; }
.arena-me { position: relative; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; box-shadow: 0 5px 0 rgba(150, 50, 0, .3); transition: transform .1s; }
.arena-me:hover { transform: translateY(-2px) rotate(-4deg); }
.arena-me .game-avatar-svg { border: 4px solid #fff; border-radius: 50%; }
.arena-me-edit { position: absolute; right: -4px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 13px; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.arena-me-hint { position: absolute; top: calc(100% + 8px); left: 0; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: #ffe066; color: #5a3a00; font-size: 11px; font-weight: 900; box-shadow: 0 2px 0 rgba(150, 50, 0, .25); animation: arena-pulse 1.6s ease-in-out infinite; }
.arena-me:focus-visible, .char-tile:focus-visible, .result-unlock:focus-visible { outline: 3px solid #f5b400; outline-offset: 3px; }
.podium-avatar, .vs-side .podium-avatar, .game-avatar { width: auto; height: auto; background: none; box-shadow: none; }
.podium-avatar .game-avatar-svg, .vs-side .game-avatar-svg { border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 0 rgba(150, 50, 0, .3); }
.podium.p1 .podium-avatar .game-avatar-svg { border-color: #ffd84d; }
.podium.me .podium-avatar .game-avatar-svg, .vs-side.me .game-avatar-svg { border-color: #3e9f76; }
.game-feedback-avatar { animation: game-pop .4s ease-out; }
.result-hero { position: relative; display: inline-block; filter: none; }
.result-hero .game-avatar-svg { border: 5px solid #fff; border-radius: 50%; box-shadow: 0 6px 0 rgba(150, 50, 0, .25); }
.result-hero-badge { position: absolute; right: -10px; bottom: -6px; font-size: 40px; line-height: 1; }
dialog.char-modal { max-width: 560px; padding: 0; border: 0; overflow: hidden auto; overscroll-behavior: contain; background: linear-gradient(160deg, #f15a14 0%, #ff8a3d 50%, #ffc24f 100%); color: #fff; }
.char-screen { position: relative; display: grid; justify-items: center; gap: 14px; padding: 22px 18px 24px; text-align: center; }
.char-screen h2 { margin: 0; color: #fff; font-size: 26px; font-weight: 900; text-shadow: 0 3px 0 rgba(150, 50, 0, .35); }
.char-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .25); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.char-close:hover { background: rgba(255, 255, 255, .38); }
.char-stage { display: grid; justify-items: center; gap: 10px; width: 100%; padding: 18px 14px; border-radius: 26px; background: rgba(255, 255, 255, .2); }
.char-hero { position: relative; animation: arena-bob 2.2s ease-in-out infinite; }
.char-hero .game-avatar-svg { border: 6px solid #fff; border-radius: 50%; box-shadow: 0 8px 0 rgba(150, 50, 0, .3); }
.char-hero-q { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 64px; font-weight: 900; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.char-hero-name { margin: 0; color: #fff; font-size: 24px; font-weight: 900; text-shadow: 0 2px 0 rgba(150, 50, 0, .3); }
.char-hero-name small { font-size: 15px; font-weight: 800; opacity: .92; }
.char-use { min-width: 210px; font-size: 17px; }
.char-use:disabled { background: #fff; color: #23784f; box-shadow: 0 4px 0 rgba(150, 50, 0, .25); opacity: 1; }
.char-hint { margin: 0; display: grid; justify-items: center; gap: 6px; color: #fff; font-weight: 800; }
.char-hint small { font-weight: 900; }
.char-meter { display: block; height: 6px; border-radius: 999px; background: #e3ece6; overflow: hidden; }
.char-meter i { display: block; height: 100%; background: #ffe066; }
.char-meter.big { width: 210px; height: 12px; background: rgba(255, 255, 255, .35); }
.char-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
.char-tile { position: relative; display: grid; justify-items: center; gap: 5px; padding: 10px 4px 9px; border: 3px solid transparent; border-radius: 20px; background: var(--tile, #fff); color: #1f3529; font: inherit; cursor: pointer; box-shadow: 0 5px 0 rgba(150, 50, 0, .25); transition: transform .12s, box-shadow .12s; }
.char-tile .game-avatar-svg { width: 100%; max-width: 64px; height: auto; }
.char-tile:hover { transform: translateY(-3px) rotate(-2deg); }
.char-tile.selected { border-color: #fff; transform: translateY(-4px) scale(1.05); box-shadow: 0 9px 0 rgba(150, 50, 0, .3); }
.char-tile strong { font-size: 14px; font-weight: 900; }
.char-tile.locked { background: rgba(255, 255, 255, .28); }
.char-need { max-width: 100%; padding: 2px 7px; border-radius: 999px; background: #fff; color: #c4520f; font-size: 12px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-star { position: absolute; top: -9px; right: -6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #ffd84d; color: #fff; font-size: 15px; box-shadow: 0 2px 0 #c48a00; }
.result-unlock { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border: 3px dashed #f5b400; border-radius: 20px; background: #fff6d6; color: #5a3a00; font: inherit; text-align: left; cursor: pointer; animation: game-pop .5s ease-out .4s both; }
.result-unlock > span { display: grid; }
.result-unlock strong { font-size: 16px; font-weight: 900; }
.result-unlock small { font-weight: 700; }
/* Coins and shop */
.coin-ico { display: inline-block; flex: none; vertical-align: -3px; }
.arena-stats { flex: none; display: flex; align-items: center; gap: 10px; }
.arena-coins { display: grid; justify-items: center; align-content: center; gap: 2px; width: 88px; height: 88px; padding: 0; border: 0; border-radius: 26px; background: #fff; font: inherit; cursor: pointer; box-shadow: 0 5px 0 rgba(150, 50, 0, .3); transition: transform .1s; }
.arena-coins:hover { transform: translateY(-2px) rotate(3deg); }
.arena-coins:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(150, 50, 0, .3); }
.arena-coins:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.arena-coins strong { font-size: 22px; font-weight: 900; line-height: 1; color: #c48a00; }
.arena-coins small { font-size: 11px; font-weight: 900; color: #e25412; }
.arena-coins .coin-ico { animation: coin-spin 3.2s ease-in-out infinite; }
.shop-wallet { display: inline-flex; align-items: center; gap: 8px; padding: 6px 18px; border-radius: 999px; background: #fff; color: #c48a00; font-size: 22px; font-weight: 900; box-shadow: 0 4px 0 rgba(150, 50, 0, .3); }
.shop-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.shop-tab { padding: 8px 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .25); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.shop-tab.on { background: #fff; color: #e25412; box-shadow: 0 3px 0 rgba(150, 50, 0, .3); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; width: 100%; }
.shop-tile { display: grid; justify-items: center; align-content: start; gap: 5px; padding: 10px 4px 9px; border: 3px solid transparent; border-radius: 20px; background: #fff; color: #1f3529; font: inherit; cursor: pointer; box-shadow: 0 5px 0 rgba(150, 50, 0, .25); transition: transform .12s; }
.shop-tile:hover { transform: translateY(-3px) rotate(-2deg); }
.shop-tile.selected { border-color: #ffd84d; transform: translateY(-4px) scale(1.05); box-shadow: 0 9px 0 rgba(150, 50, 0, .3); }
.shop-tile:focus-visible, .shop-tab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.shop-tile .game-avatar-svg { width: 100%; max-width: 64px; height: auto; }
.shop-tile strong { font-size: 13px; font-weight: 900; line-height: 1.2; text-align: center; }
.shop-price { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 999px; background: #fff4d1; color: #9a6b00; font-size: 13px; font-weight: 900; }
.shop-price.short { opacity: .55; }
.shop-tag { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.shop-tag.own { background: #e6f3ec; color: #2f7d58; }
.shop-tag.on { background: #3e9f76; color: #fff; }
.shop-act { min-width: 200px; font-size: 17px; }
.shop-act:disabled { opacity: .75; }
.char-hero.bought { animation: game-pop .6s ease-out; }
.coin-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.coin-rain i { position: absolute; top: -30px; animation: coin-fall 1.4s ease-in forwards; }
.tile-burst .coin-ico { vertical-align: -4px; }
.result-stat.money { background: #fff1c7; }
.result-stat.money strong { display: flex; align-items: center; justify-content: center; gap: 4px; color: #c48a00; }
@keyframes coin-spin { 0%, 78%, 100% { transform: rotateY(0); } 89% { transform: rotateY(180deg); } }
@keyframes coin-fall { to { transform: translateY(640px) rotate(540deg); } }
/* Daily chest */
.chest-svg { display: block; overflow: visible; }
.chest-svg .chest-lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.chest-svg .chest-rays { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; transition: opacity .3s; }
.chest-box { padding: 34px 0 0; border: 0; background: none; cursor: pointer; animation: chest-idle 1.8s ease-in-out infinite; }
.chest-box:focus-visible { outline: 3px solid #fff; outline-offset: 6px; border-radius: 20px; }
.chest-box.shaking { animation: chest-shake .14s linear infinite; }
.chest-box.opened { animation: none; cursor: default; }
.chest-box.opened .chest-lid { transform: rotate(-26deg) translate(-4px, -8px); }
.chest-box.opened .chest-rays { opacity: 1; animation: rays-spin 7s linear infinite; }
.chest-hint { margin: 0; min-height: 1.4em; color: #fff; font-size: 18px; font-weight: 900; text-shadow: 0 2px 0 rgba(150, 50, 0, .3); }
.chest-reward { width: 100%; display: grid; justify-items: center; }
.chest-reward:empty { display: none; }
.chest-prize { display: grid; justify-items: center; gap: 8px; width: min(340px, 100%); padding: 18px 16px; border-radius: 26px; background: #fff; color: #1f3529; box-shadow: 0 6px 0 rgba(150, 50, 0, .3); animation: result-bounce .7s ease-out both; }
.chest-prize strong { font-size: 26px; font-weight: 900; color: #c48a00; }
.chest-prize.item strong { color: #7c3aed; }
.chest-prize > span:not(.chest-coin) { font-weight: 800; color: #576d61; }
.chest-prize .game-avatar-svg { border: 5px solid #fff; border-radius: 50%; box-shadow: 0 6px 0 rgba(124, 58, 237, .25); }
.chest-prize em { font-style: normal; padding: 3px 14px; border-radius: 999px; background: linear-gradient(90deg, #f15a14, #f5b400); color: #fff; font-size: 18px; font-weight: 900; letter-spacing: .08em; animation: arena-pulse 1s ease-in-out infinite; }
.chest-coin { animation: coin-spin 1.6s ease-in-out infinite; }
.arena-chest { flex: none; display: grid; justify-items: center; gap: 2px; padding: 6px 8px 8px; border: 3px solid #ffe066; border-radius: 18px; background: #fff8dc; color: #c4520f; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; animation: arena-wiggle 2.2s ease-in-out infinite; box-shadow: 0 4px 0 #f5b400; }
.arena-chest:focus-visible, .result-chest:focus-visible { outline: 3px solid #f5b400; outline-offset: 3px; }
.result-chest { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 10px; border: 3px solid #ffe066; border-radius: 22px; background: #fff8dc; color: #5a3a00; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 5px 0 #f5b400; animation: arena-wiggle 2.2s ease-in-out infinite; }
.result-chest > span { display: grid; }
.result-chest strong { font-size: 17px; font-weight: 900; }
.result-chest small { font-weight: 800; }
.shop-tag.chest { background: #ede9fe; color: #6d28d9; }
.shop-tile.missing .game-avatar-svg { filter: saturate(.25); opacity: .7; }
.shop-tile.chest-only { background: linear-gradient(#fff, #f5f0ff); }
@keyframes chest-idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-2deg); } }
@keyframes chest-shake { 0% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) scale(1.03); } 100% { transform: rotate(-5deg); } }
@keyframes rays-spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Duels: a night-arena theme, the opponent picker and the versus intro */
.game-stage.duel { background: linear-gradient(160deg, #2e1065 0%, #6d28d9 48%, #be123c 100%); box-shadow: 0 12px 30px rgba(76, 29, 149, .35); }
.game-stage.duel .game-mode { color: #be123c; }
.game-stage.duel .track-line i { background: #f9a8d4; }
dialog.duel-modal { max-width: 520px; padding: 0; border: 0; overflow: hidden; background: linear-gradient(160deg, #2e1065 0%, #6d28d9 50%, #be123c 100%); color: #fff; }
.duel-screen { position: relative; display: grid; justify-items: center; gap: 12px; padding: 24px 18px 22px; text-align: center; }
.duel-screen h2 { margin: 0; color: #fff; font-size: 28px; font-weight: 900; text-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.duel-screen-bolt { font-size: 46px; line-height: 1; animation: arena-bob 2s ease-in-out infinite; }
.duel-search { width: 100%; }
.duel-search input { width: 100%; padding: 12px 16px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .95); color: #1f3529; font: inherit; font-weight: 700; }
.duel-screen .game-friends { width: 100%; max-height: 340px; margin: 0; gap: 10px; }
.duel-screen .game-friends li { padding: 8px 10px; border-radius: 18px; background: rgba(255, 255, 255, .14); color: #fff; }
.duel-screen .game-name { color: #fff; font-size: 16px; font-weight: 900; }
.duel-screen .game-avatar .game-avatar-svg { border: 3px solid #fff; border-radius: 50%; }
.duel-screen .game-muted, .duel-screen .error { color: #fde68a; }
.duel-go { flex: none; padding: 9px 16px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #fb7185, #e11d48); color: #fff; font: inherit; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 #9f1239; }
.duel-go:hover:not(:disabled) { filter: brightness(1.08); }
.duel-go:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #9f1239; }
.duel-go:disabled { opacity: .6; }
.duel-go:focus-visible, .duel-search input:focus-visible { outline: 3px solid #fde047; outline-offset: 2px; }
.vs-intro { position: fixed; inset: 0; z-index: 2000; overflow: hidden; background: #1e1b4b; transition: opacity .35s; }
.vs-intro.out { opacity: 0; }
.vs-half { position: absolute; top: 0; bottom: 0; width: 58%; display: grid; place-items: center; }
.vs-half.me { left: 0; background: linear-gradient(160deg, #3b82f6, #1e3a8a); clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%); animation: vs-in-left .5s cubic-bezier(.2, .9, .3, 1.1) both; }
.vs-half.them { right: 0; background: linear-gradient(160deg, #f43f5e, #7f1d1d); clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); animation: vs-in-right .5s cubic-bezier(.2, .9, .3, 1.1) both; }
.vs-half.me .vs-fighter { margin-right: 24%; }
.vs-half.them .vs-fighter { margin-left: 24%; }
.vs-fighter { display: grid; justify-items: center; gap: 10px; color: #fff; text-align: center; }
.vs-fighter strong { font-size: 26px; font-weight: 900; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.vs-fighter .game-avatar-svg { border: 6px solid #fff; border-radius: 50%; box-shadow: 0 8px 0 rgba(0, 0, 0, .25); }
.vs-mystery { width: 140px; height: 140px; border: 6px solid #fff; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); color: #fff; font-size: 72px; font-weight: 900; }
.vs-bolt { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-6deg); color: #fde047; font-size: 112px; font-style: italic; font-weight: 900; line-height: 1; -webkit-text-stroke: 4px #b45309; text-shadow: 0 8px 0 #7c2d12, 0 0 40px rgba(253, 224, 71, .8); opacity: 0; }
.vs-intro.slammed { animation: vs-shake .35s ease-out; }
.vs-intro.slammed .vs-bolt { animation: vs-slam .45s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.vs-count { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); color: #fff; font-size: 92px; font-weight: 900; line-height: 1; text-shadow: 0 6px 0 rgba(0, 0, 0, .35); opacity: 0; white-space: nowrap; }
.vs-count.show { animation: vs-count .58s ease-out both; }
.vs-count.go { color: #fde047; font-size: 76px; animation: vs-go .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes vs-in-left { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes vs-in-right { from { transform: translateX(100%); } to { transform: none; } }
@keyframes vs-slam { 0% { opacity: 0; transform: translate(-50%, -50%) scale(3) rotate(-14deg); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-6deg); } }
@keyframes vs-shake { 0%, 100% { transform: none; } 25% { transform: translate(-8px, 4px); } 50% { transform: translate(6px, -4px); } 75% { transform: translate(-4px, 2px); } }
@keyframes vs-count { 0% { opacity: 0; transform: translateX(-50%) scale(2); } 30% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(.8); } }
@keyframes vs-go { 0% { opacity: 0; transform: translateX(-50%) scale(2.4); } 100% { opacity: 1; transform: translateX(-50%) scale(1); } }
@media (max-width: 600px) {
  .vs-fighter .game-avatar-svg, .vs-mystery { width: 92px; height: 92px; }
  .vs-mystery { font-size: 48px; }
  .vs-fighter strong { font-size: 17px; max-width: 120px; }
  .vs-bolt { font-size: 74px; -webkit-text-stroke: 3px #b45309; }
  .vs-count { font-size: 68px; }
  .vs-count.go { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .vs-half, .vs-intro.slammed, .duel-screen-bolt { animation: none; }
  .vs-bolt { opacity: 1; animation: none; }
  .vs-count.show, .vs-count.go { animation: none; opacity: 1; }
}
/* Play screen: an orange stage with a white question card, the same for missions and duels */
.game-stage { position: relative; overflow: hidden; max-width: 820px; margin: 0 auto; display: grid; gap: 14px; padding: 18px; border-radius: 28px; background: linear-gradient(160deg, #f15a14 0%, #ff8a3d 50%, #ffc24f 100%); box-shadow: 0 12px 30px rgba(160, 70, 10, .2); }
.game-stage::before, .game-stage::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .13); pointer-events: none; }
.game-stage::before { width: 240px; height: 240px; top: -110px; right: -70px; }
.game-stage::after { width: 140px; height: 140px; bottom: -60px; left: -50px; }
.game-stage > * { position: relative; }
.game-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-exit { border: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .22); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.game-exit:hover { background: rgba(255, 255, 255, .32); }
.game-topbar-left { display: flex; align-items: center; gap: 8px; }
.game-exit.game-sound { min-width: 40px; padding: 8px 10px; font-size: 16px; line-height: 1; background: #fff; box-shadow: 0 3px 0 rgba(150, 50, 0, .25); }
.arena-sound { background: #fff; }
.arena-sound { border: 0; font: inherit; cursor: pointer; }
.arena-sound:focus-visible, .game-sound:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.game-mode { padding: 7px 16px; border-radius: 999px; background: #fff; color: #c4520f; font-weight: 800; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.game-count { min-width: 60px; padding: 6px 12px; border-radius: 16px; background: rgba(255, 255, 255, .22); color: #fff; text-align: center; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.game-count small { font-size: 14px; opacity: .85; }
.game-clock { position: relative; flex: none; width: 58px; height: 58px; }
.game-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.game-clock circle { fill: #fff; stroke: #f1e3d6; stroke-width: 5; }
.game-clock #game-clock-arc { fill: none; stroke: #3e9f76; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset .25s linear, stroke .3s; }
.game-clock.mid #game-clock-arc { stroke: #f5b400; }
.game-clock.low #game-clock-arc { stroke: #ef4b2f; }
.game-clock.low { animation: game-throb .6s ease-in-out infinite alternate; }
.game-clock span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #1f3529; font-variant-numeric: tabular-nums; }
.game-track { position: relative; padding-top: 34px; }
.track-line { position: absolute; left: 0; right: 0; top: 48px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .3); }
.track-line i { display: block; height: 100%; border-radius: inherit; background: #ffe066; transition: width .6s ease; }
.track-stops { position: relative; display: flex; justify-content: space-between; }
.track-stop { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .35); color: #fff; font-size: 14px; font-weight: 900; transition: background .3s; }
.track-stop.now { background: #fff; color: #e25412; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.track-stop.right { background: #3e9f76; box-shadow: 0 3px 0 #2a7454; animation: game-pop .4s ease-out; }
.track-stop.wrong { background: #c0492b; box-shadow: 0 3px 0 #8f321c; animation: game-pop .4s ease-out; }
.track-stop.flag { background: #fff; font-size: 18px; }
.track-runner { position: absolute; top: -6px; margin-left: -24px; transition: left .6s cubic-bezier(.3, 1.4, .5, 1); animation: runner-hop 1.2s ease-in-out infinite; }
.track-runner .game-avatar-svg { border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 0 rgba(150, 50, 0, .3); }
.track-rival { position: absolute; right: -2px; top: 2px; display: grid; justify-items: center; gap: 2px; }
.track-rival .game-avatar-svg, .track-rival-q { border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 0 rgba(150, 50, 0, .3); }
.track-rival-q { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255, 255, 255, .3); color: #fff; font-weight: 900; }
.track-rival small { padding: 1px 7px; border-radius: 999px; background: #1f3529; color: #fff; font-size: 10px; font-weight: 800; white-space: nowrap; }
.game-track.duel { padding-top: 62px; }
.game-track.duel .track-line { top: 76px; }
.game-track.duel .track-runner { top: 22px; }
.game-buddy { display: flex; align-items: center; gap: 12px; }
.game-buddy .game-avatar-svg { border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 0 #f1e3d6; }
.buddy-bubble { position: relative; padding: 8px 14px; border-radius: 16px; background: #fff1e3; color: #c4520f; font-size: 15px; font-weight: 800; animation: game-rise .4s ease-out .15s both; }
.buddy-bubble::before { content: ""; position: absolute; left: -8px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-left: 0; border-right-color: #fff1e3; }
.tile-burst { position: absolute; right: 48px; top: -8px; color: #23784f; font-size: 18px; font-weight: 900; pointer-events: none; animation: burst-up 1.1s ease-out forwards; }
@keyframes runner-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes card-in { from { opacity: 0; transform: translateX(40px) rotate(1.5deg); } to { opacity: 1; transform: none; } }
@keyframes burst-up { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 30% { opacity: 1; transform: translateY(-6px) scale(1.15); } 100% { opacity: 0; transform: translateY(-36px); } }
.game-play { display: grid; gap: 16px; padding: 22px; border-radius: 24px; background: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .08); animation: card-in .45s cubic-bezier(.2, .9, .3, 1.2); }
.game-play .question-head { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; border: 0; }
.game-exit, .game-mode { white-space: nowrap; }
.game-play h2.question, .game-play .question { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.45; color: #1f3529; }
.game-play .passage { margin: 0; padding: 16px 18px; border: 0; border-radius: 16px; background: #fff8e6; font-size: 15px; line-height: 1.7; }
.game-qnum { padding: 4px 12px; border-radius: 999px; background: #1f3529; color: #fff; font-size: 12px; font-weight: 800; }
.game-tag { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #eef4f0; color: #2f7d58; }
.game-tag.bi { background: #e7f3fc; color: #1f6fa8; }
.game-tag.mt { background: #fff1e3; color: #c4520f; }
.game-tag.level-1 { background: #eaf7ef; color: #23784f; }
.game-tag.level-2 { background: #fff7dc; color: #9a6b00; }
.game-tag.level-3 { background: #fdecec; color: #b23b3b; }
.game-combo { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #f66619, #f5b400); animation: game-pop .4s ease-out; }
.game-options { display: grid; gap: 12px; }
.game-options.grid { grid-template-columns: 1fr 1fr; }
.game-option { --c: #41a5e0; --soft: #e7f3fc; position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 12px 16px; border: 0; border-radius: 18px; background: var(--soft); color: #1f3529; font: inherit; font-size: 17px; font-weight: 600; line-height: 1.4; text-align: left; cursor: pointer; box-shadow: 0 5px 0 var(--c); transition: transform .1s, box-shadow .1s, opacity .2s; }
.game-option.opt-1 { --c: #f5b400; --soft: #fff5d1; }
.game-option.opt-2 { --c: #e2508b; --soft: #fde8f1; }
.game-option.opt-3 { --c: #8a63d2; --soft: #efe9fb; }
/* Hover changes colour only: moving the tile under the pointer would make it flicker at its edge. */
.game-option:hover:not(:disabled) { background: color-mix(in srgb, var(--soft) 70%, var(--c) 30%); }
.game-option:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--c); }
.game-option:disabled { cursor: default; opacity: 1; }
.game-letter { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; font-size: 17px; }
.game-options.answered .game-option:not(.correct):not(.wrong) { opacity: .4; }
.game-option.correct { --c: #2fa36b; --soft: #dcf4e6; animation: game-pop .35s ease-out; }
.game-option.wrong { --c: #e2683b; --soft: #ffe7dc; animation: game-shake .4s ease-in-out; }
.game-option.correct::after, .game-option.wrong::after { margin-left: auto; padding-left: 8px; font-size: 22px; font-weight: 800; color: var(--c); }
.game-option.correct::after { content: "✓"; }
.game-option.wrong::after { content: "✗"; }
.game-feedback { display: grid; gap: 10px; justify-items: start; padding: 16px 18px; border-radius: 18px; background: #f6faf7; animation: game-rise .3s ease-out; }
.game-feedback.right { background: #e8f7ee; }
.game-feedback.wrong { background: #fff4ec; }
.game-feedback-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game-feedback-head strong { font-size: 19px; }
.game-feedback.right strong { color: #23784f; }
.game-feedback.wrong strong { color: #b5480c; }
.game-plus { padding: 3px 10px; border-radius: 999px; background: #2fa36b; color: #fff; font-weight: 800; font-size: 14px; }
.game-feedback p { margin: 0; line-height: 1.65; }
.game-result { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 30px 24px 32px; border-radius: 24px; }
.game-result h1 { margin: 0; font-size: 34px; }
.game-stars { display: flex; gap: 6px; font-size: 46px; line-height: 1; }
.game-stars span { color: #e3e8e5; }
.game-stars span.on { color: #f5b400; text-shadow: 0 3px 0 #d89c00; animation: game-star .5s ease-out both; }
.result-hero { font-size: 76px; line-height: 1; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .08)); animation: result-bounce 1s ease-out both; }
.result-stats { display: flex; justify-content: center; gap: 10px; width: min(440px, 100%); }
.result-stat { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 12px 18px; border-radius: 20px; background: #eaf7ef; }
.result-stat strong { font-size: 40px; line-height: 1; font-weight: 900; color: #23784f; font-variant-numeric: tabular-nums; }
.result-stat > span { font-weight: 800; color: #3d5548; }
.result-stat.coin { background: #fff4d1; }
.result-stat.coin strong { color: #c48a00; }
.result-recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.result-recap span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 900; animation: game-star .4s ease-out both; }
.result-recap .ok { background: #3e9f76; color: #fff; box-shadow: 0 3px 0 #2a7454; }
.result-recap .no { background: #ffe7dc; color: #e2683b; box-shadow: 0 3px 0 #f4c3ad; }
.result-extra { display: grid; justify-items: center; gap: 10px; width: 100%; }
.result-extra:empty { display: none; }
.result-streak { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px; background: linear-gradient(90deg, #f15a14, #ffb347); color: #fff; font-weight: 900; box-shadow: 0 4px 0 rgba(150, 50, 0, .3); animation: game-pop .5s ease-out; }
.result-streak strong { font-size: 28px; line-height: 1; }
.result-streak .game-flame { font-size: 26px; display: inline-block; animation: game-flicker 1.4s ease-in-out infinite; }
.result-badge { padding: 8px 16px; border-radius: 14px; background: #fff1c7; color: #9a6b00; font-weight: 900; animation: game-pop .5s ease-out .3s both; }
.result-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; width: min(440px, 100%); padding: 22px 16px 14px; border-radius: 22px; background: #f7f9f8; }
.vs-side { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 0; }
.vs-side b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-side strong { font-size: 32px; line-height: 1; font-weight: 900; color: #1f3529; font-variant-numeric: tabular-nums; }
.vs-side.me .podium-avatar { background: #3e9f76; color: #fff; }
.vs-side.win strong { color: #23784f; }
.vs-side.win::before { content: "👑"; position: absolute; top: -28px; font-size: 26px; animation: result-bounce 1s ease-out .4s both; }
.vs { align-self: center; font-size: 24px; font-weight: 900; font-style: italic; color: #f15a14; }
.result-caption { margin: 0; font-weight: 800; color: #3d5548; }
@keyframes result-bounce { 0% { transform: scale(.2) translateY(30px); opacity: 0; } 55% { transform: scale(1.15) translateY(-8px); opacity: 1; } 75% { transform: scale(.95); } 100% { transform: scale(1); } }
.game-result .toolbar { justify-content: center; flex-wrap: wrap; }
.game-confetti { position: absolute; inset: 0; pointer-events: none; }
.game-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: game-confetti 1.8s ease-in forwards; }
.game-card + .participant-material, .lobby-subjects + .game-card { margin-top: 20px; }
@keyframes game-flicker { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
@keyframes game-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes game-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes game-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes game-throb { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes game-star { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1); } }
@keyframes game-confetti { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(520px) rotate(var(--spin)); opacity: 0; } }
@media (max-width: 760px) {
  .game-card.arena { padding: 16px; }
  .arena-body { grid-template-columns: 1fr; }
  .arena-logo { width: 50px; height: 50px; font-size: 28px; }
  .arena-title h2 { font-size: 26px; }
  .result-stat { padding: 10px 8px; }
  .result-stat strong { font-size: 30px; }
  .arena-mission { flex-wrap: wrap; }
  .arena-play { width: 100%; text-align: center; }
  .game-stage { padding: 14px; border-radius: 22px; }
  .game-play { padding: 18px 16px; }
  .game-exit { padding: 7px 12px; font-size: 14px; }
  .game-mode { padding: 6px 12px; font-size: 14px; }
  .game-count { min-width: 0; padding: 5px 10px; font-size: 19px; }
  .game-play h2.question, .game-play .question { font-size: 18px; }
  .game-result h1 { font-size: 28px; }
}
@media (max-width: 520px) {
  .arena-head { flex-wrap: wrap; }
  .arena-title { flex: 1 1 100%; }
  .arena-stats { width: 100%; margin-top: 30px; }
  .arena-coins, .arena-flame { flex: 1; width: auto; height: 54px; border-radius: 18px; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 8px; }
  .arena-flame { background: rgba(255, 255, 255, .22); }
  .arena-coins strong, .arena-flame strong { font-size: 22px; }
  .arena-coins small, .arena-flame small { font-size: 12px; }
  .arena-flame .game-flame { font-size: 22px; }
  .game-options.grid { grid-template-columns: 1fr; }
  .game-option { min-height: 54px; font-size: 16px; }
}
@media (max-width: 420px) {
  .game-streak { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .arena-flame.lit .game-flame, .arena-mission-icon, .arena-play, .arena-challenge, .game-result-note .game-flame, .game-duel.incoming, .game-option, .game-feedback, .game-combo, .game-stars span.on, .chest-box, .chest-box.opened .chest-rays, .chest-prize, .chest-prize em, .chest-coin, .arena-chest, .result-chest, .coin-rain i, .arena-coins .coin-ico, .char-hero.bought, .game-play, .track-runner, .track-stop, .buddy-bubble, .tile-burst, .char-hero, .char-tile, .result-hero, .arena-me-hint, .game-feedback-avatar, .result-unlock, .result-recap span, .result-streak, .result-streak .game-flame, .result-badge, .vs-side.win::before, .game-clock, .game-clock #game-clock-arc { animation: none; transition: none; }
  .game-confetti { display: none; }
}
/* Stickers after a duel: one each, shown like a chat */
.game-sticker { --sticker: #16a34a; display: inline-grid; justify-items: center; gap: 2px; min-width: 78px; padding: 8px 10px 7px; border: 4px solid #fff; border-radius: 18px; background: var(--sticker); color: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, .18), 0 8px 18px rgba(0, 0, 0, .15); transform: rotate(-5deg); }
.game-sticker .sticker-emoji { font-size: 30px; line-height: 1.1; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .2)); }
.game-sticker b { font-size: 14px; font-weight: 900; line-height: 1.1; text-align: center; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.game-sticker.pop { animation: sticker-pop .6s cubic-bezier(.3, 1.6, .5, 1) .3s both; }
.game-sticker.stamp { animation: sticker-stamp .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.sticker-chat { display: grid; gap: 10px; width: 100%; }
.sticker-thread { display: flex; flex-direction: column; gap: 12px; padding: 12px 8px 6px; }
.sticker-tray[hidden] { display: none; }
.chat-line .game-sticker { min-width: 70px; padding: 6px 10px 5px; }
.chat-line .sticker-emoji { font-size: 26px; }
.chat-line .game-sticker b { font-size: 13px; }
.sticker-thread.empty { display: none; }
.chat-line { display: flex; align-items: flex-end; gap: 8px; }
.chat-line.me { justify-content: flex-end; }
.chat-line.me .game-sticker { transform: rotate(5deg); }
.chat-line.me .game-sticker.stamp { animation-name: sticker-stamp-me; }
.chat-avatar { flex: none; }
.chat-avatar .game-avatar-svg { border: 2px solid #fff; border-radius: 50%; }
.sticker-tray { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 10px 8px; border-radius: 18px; background: rgba(255, 255, 255, .16); }
.sticker-pick { display: grid; place-items: stretch center; padding: 2px 0; border: 0; background: none; cursor: pointer; }
.sticker-pick .game-sticker { width: 100%; min-width: 0; padding: 5px 3px 4px; border-width: 3px; border-radius: 14px; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); align-content: center; transform: none; transition: transform .15s ease; }
.sticker-pick .sticker-emoji { font-size: 22px; }
.sticker-pick .game-sticker b { font-size: 10.5px; }
.sticker-pick:focus-visible .game-sticker { transform: translateY(-3px) rotate(-4deg); }
@media (hover: hover) { .sticker-pick:hover:not(:disabled) .game-sticker { transform: translateY(-3px) rotate(-4deg); } }
.sticker-pick:active:not(:disabled) .game-sticker { transform: scale(.92); }
.sticker-pick:disabled { cursor: default; opacity: .6; }
.sticker-screen { gap: 8px; }
.chat-head { display: flex; align-items: center; gap: 10px; align-self: start; justify-self: start; padding-right: 48px; color: #fff; font-size: 18px; font-weight: 900; }
.chat-head .game-avatar-svg { border: 3px solid #fff; border-radius: 50%; }
.result-stickers { width: min(440px, 100%); padding: 6px 10px 10px; border-radius: 22px; background: #fdf2f8; border: 2px dashed #f9a8d4; }
.result-stickers .sticker-tray { background: #fff; }
.duel-sticker-btn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #f472b6, #db2777); color: #fff; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; box-shadow: 0 3px 0 #9d174d; }
.duel-sticker-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #9d174d; }
.duel-sticker-btn.has-new::after { content: ""; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #ef4444; }
.arena-note { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 44px 12px 12px; border-radius: 20px; background: linear-gradient(120deg, #fdf2f8, #ede9fe); box-shadow: inset 0 0 0 2px #f9a8d4; animation: game-pop .5s ease-out; }
.arena-note.out { opacity: 0; transform: scale(.95); transition: opacity .25s, transform .25s; }
.arena-note-avatar { flex: none; display: grid; justify-items: center; gap: 2px; }
.arena-note-avatar .game-avatar-svg { border: 3px solid #fff; border-radius: 50%; }
.arena-note-avatar small { font-size: 12px; font-weight: 900; color: #6b21a8; }
.arena-note > .game-sticker { flex: none; }
.arena-note-reply { flex: none; margin-left: auto; padding: 9px 14px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #f472b6, #db2777); color: #fff; font: inherit; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 #9d174d; }
.arena-note-close { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .8); color: #6b21a8; font-size: 20px; line-height: 1; cursor: pointer; }
@keyframes sticker-pop { 0% { opacity: 0; transform: scale(.3) rotate(-20deg); } 100% { opacity: 1; } }
@keyframes sticker-stamp { 0% { opacity: 0; transform: scale(2.2) rotate(-18deg); } 70% { opacity: 1; transform: scale(.95) rotate(-3deg); } 100% { transform: rotate(-5deg); } }
@keyframes sticker-stamp-me { 0% { opacity: 0; transform: scale(2.2) rotate(18deg); } 70% { opacity: 1; transform: scale(.95) rotate(3deg); } 100% { transform: rotate(5deg); } }
@media (max-width: 520px) {
  .arena-note { gap: 10px; }
  .arena-body { grid-template-columns: minmax(0, 1fr); }
  .game-duel { flex-wrap: wrap; }
  .game-duel-text { flex: 1 1 160px; }
  .sticker-tray { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sticker-pick .sticker-emoji { font-size: 24px; }
  .sticker-pick .game-sticker b { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-sticker.pop, .game-sticker.stamp, .arena-note { animation: none; }
}
/* Participant lobby: greeting banner, live card, try-out cards with a score ring, rapor banner */
.lobby-hero { position: relative; overflow: hidden; margin-bottom: 22px; padding: 28px 30px; border-radius: 28px; background: linear-gradient(125deg, #1f7a4f 0%, #2f8c62 50%, #45a87c 100%); color: #fff; box-shadow: 0 16px 40px rgba(35, 120, 79, .2); }
.lobby-hero::before, .lobby-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.lobby-hero::before { width: 340px; height: 340px; right: -110px; top: -170px; background: rgba(255, 255, 255, .09); }
.lobby-hero::after { width: 150px; height: 150px; right: 200px; bottom: -95px; background: rgba(245, 180, 0, .28); }
.lobby-hero-main { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #c3ead5; }
.lobby-hero h1 { margin: 6px 0 4px; font-size: 36px; line-height: 1.15; color: #fff; }
.lobby-hero p { margin: 0; color: #e3f5ea; font-weight: 500; }
.hero-batch { flex: none; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 14px; font-weight: 700; }
.hero-tiles { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 22px; }
.hero-tile { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .14); }
.hero-tile.wide { grid-column: 1 / -1; }
.hero-tile-icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; font-size: 22px; }
.hero-tile > div { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.hero-tile-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c3ead5; }
.hero-tile strong { font-size: 15.5px; color: #fff; }
.hero-tile span:not(.hero-tile-label) { font-size: 14px; color: #e3f5ea; }
.hero-tile span.drill-expiry-notice { color: #c62828; background: #fff; padding: 6px 10px; border-radius: 8px; }
.drill-expiry-countdown { color: #c62828; }
.drill-reminder-preview { max-height: 45vh; overflow-y: auto; }
.drill-reminder-preview details { padding: 10px 0; border-bottom: 1px solid var(--line); }
.drill-reminder-message { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.hero-tile .exam-countdown { margin: 0; color: #ffe08a !important; }
.hero-tile .toolbar { margin: 8px 0 0; }
.hero-tile .toolbar .primary { background: #fff; color: #1f7a4f; }
.hero-tile .toolbar .secondary { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.hero-btn { margin-top: 6px; display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 12px; background: #fff; color: #1f7a4f; font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.hero-btn:hover { background: #f0faf4; }
.live-card { display: grid; gap: 12px; margin-bottom: 22px; padding: 22px 24px; }
.live-card.is-live { border-color: #fecdd3; box-shadow: 0 0 0 3px #ffe4e6, 0 16px 50px #1d3e6810; }
.live-head { display: flex; align-items: center; gap: 12px; }
.live-head h3 { margin: 0; font-size: 20px; }
.live-icon { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: #ffe4e6; font-size: 23px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: live-blink 1.2s ease-in-out infinite; }
.live-card > p { margin: 0; }
.live-card .discussion-item { grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; justify-items: stretch; padding: 14px 16px; border-radius: 16px; background: #f6faf7; }
.live-card .discussion-item + .discussion-item { border-top: 0; }
.live-card .discussion-item > :not(a) { grid-column: 1; }
.live-card .discussion-item > a { grid-column: 2; grid-row: 1 / span 2; }
.live-card .discussion-item > a.secondary { min-height: 44px; padding: 10px 18px; border-color: #e11d48; border-radius: 12px; background: #e11d48; color: #fff; text-decoration: none; font-weight: 800; }
.live-card .discussion-item > a.secondary:hover { background: #be123c; }
.panel.batch-registration { padding: 16px 20px; margin-bottom: 24px; }
.lobby-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 4px 12px; }
.lobby-section-head h2 { margin: 0; font-size: 22px; }
.lobby-section-head span { color: var(--muted); font-size: 14px; font-weight: 600; }
.lobby-subjects .subject-card { position: relative; overflow: hidden; gap: 16px; padding: 24px 24px 22px; }
.lobby-subjects .subject-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: #41a275; }
.lobby-subjects .subject-card.mt::before { background: #f66619; }
.subject-head { display: flex; align-items: center; gap: 12px; }
.subject-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 21px; }
.lobby-subjects .subject-icon { width: 42px; height: 42px; font-size: 19px; border-radius: 13px; }
.subject-status { flex: none; padding: 5px 11px; border-radius: 999px; background: #f1f5f3; color: #576d61; font-size: 12.5px; font-weight: 700; }
.subject-status.done { background: #e3f3ea; color: #23784f; }
.subject-status.done::before { content: "✓ "; }
.subject-status.running { background: #fff1e3; color: #c4520f; }
.subject-score { display: flex; align-items: center; gap: 18px; }
.score-ring { --p: 0; --ring: #41a275; flex: none; width: 108px; height: 108px; border-radius: 50%; display: grid; place-content: center; justify-items: center; background: radial-gradient(closest-side, #fff 79%, transparent 80% 100%), conic-gradient(var(--ring) calc(var(--p) * 1%), #e8efeb 0); }
.mt .score-ring { --ring: #f66619; }
.score-ring strong { font-size: 30px; line-height: 1; font-weight: 800; color: #1f3529; letter-spacing: -.02em; }
.score-ring small { font-size: 12px; font-weight: 700; color: var(--muted); }
.lobby-subjects .subject-score p { color: var(--muted); line-height: 1.5; }
.subject-score p strong { color: #1f3529; font-size: 20px; }
.subject-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.subject-foot .toolbar { margin: 0; }
.lobby-subjects + .rapor-entry { margin-top: 16px; }
.rapor-entry.pro-panel { padding: 20px 24px; background: linear-gradient(115deg, #f5f3ff, #eef2ff); border-color: #ddd6fe; }
.rapor-entry .rapor-entry-main { flex-wrap: nowrap; gap: 16px; }
.rapor-entry-main > div { flex: 1; min-width: 0; }
.rapor-entry-icon { flex: none; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: #fff; font-size: 27px; box-shadow: 0 4px 12px rgba(109, 40, 217, .12); }
.rapor-entry .eyebrow { color: #6d28d9; }
.rapor-entry h2 { font-size: 22px; }
.rapor-entry #open-rapor { flex: none; background: #6d28d9; border-color: #6d28d9; color: #fff; }
.rapor-entry #open-rapor:hover { background: #5b21b6; }
.rapor-entry + .game-card, .rapor-entry + .participant-material, .participant-material + .game-card { margin-top: 22px; }
@keyframes live-blink { 50% { opacity: .3; } }
@media (max-width: 600px) {
  .lobby-hero { padding: 22px 20px; border-radius: 24px; }
  .lobby-hero-main { flex-direction: column-reverse; gap: 10px; }
  .lobby-hero h1 { font-size: 28px; }
  .hero-tiles { grid-template-columns: 1fr; margin-top: 18px; }
  .live-card { padding: 18px; }
  .live-card .discussion-item { grid-template-columns: 1fr; row-gap: 10px; }
  .live-card .discussion-item > a { grid-column: 1; grid-row: auto; justify-self: start; }
  .lobby-subjects .subject-card { padding: 20px 18px 18px; }
  .score-ring { width: 96px; height: 96px; }
  .score-ring strong { font-size: 26px; }
  .rapor-entry .rapor-entry-main { flex-wrap: wrap; }
  .rapor-entry #open-rapor { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .live-badge::before { animation: none; }
}
/* Arena play modes: adventure map and the balloon arcade */
.arena-tile.mode { font-size: 17px; }
.arena-tile.mode small { font-size: 12px; font-weight: 800; opacity: .92; }
.arena-tile.adv { background: linear-gradient(160deg, #34c38f, #13795b); box-shadow: 0 6px 0 #0c5a43; }
.arena-tile.arcade { background: linear-gradient(160deg, #a78bfa, #6d28d9); box-shadow: 0 6px 0 #4c1d95; }
.arena-tile.mode > span { animation: arena-bob 2.4s ease-in-out infinite; }
.arena-tile.arcade > span { animation-delay: -1.2s; }
.game-hearts { display: inline-flex; gap: 2px; font-size: 22px; line-height: 1; }
.game-hearts i { font-style: normal; color: #ef4444; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); transition: color .3s, transform .3s; }
.game-hearts i.lost { color: rgba(0, 0, 0, .18); text-shadow: none; transform: scale(.8); }
.game-hearts.boss i { color: #a855f7; }
.game-hearts.boss i.lost { color: rgba(0, 0, 0, .18); }
.game-hearts.hit { animation: heart-hit .5s ease-out; }
@keyframes heart-hit { 0%, 100% { transform: none; } 30% { transform: scale(1.35); } 60% { transform: scale(.9) rotate(-6deg); } }
.game-stage.adv-map { background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 35%, #0369a1 100%); box-shadow: 0 12px 30px rgba(3, 105, 161, .35); }
.game-stage.adv-map .game-mode { color: #0369a1; }
.adv-total { padding: 7px 14px; border-radius: 999px; background: #fff; color: #c48a00; font-weight: 900; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.adv-hint { margin: 0; color: #fff; font-weight: 700; text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.adv-island { --isle: #f6d38a; --isle-dark: #c99a3d; --path: #fff; display: grid; gap: 10px; padding: 16px 16px 20px; border-radius: 26px; background: var(--isle); box-shadow: 0 8px 0 var(--isle-dark); }
.adv-island.forest { --isle: #86d17a; --isle-dark: #3f8f3a; }
.adv-island.cave { --isle: #a5b4fc; --isle-dark: #5b5fc7; }
.adv-island.volcano { --isle: #fca5a5; --isle-dark: #b91c1c; }
.adv-island.locked { filter: grayscale(.55); opacity: .8; }
.adv-island header { display: flex; align-items: center; gap: 10px; }
.adv-island h2 { flex: 1; margin: 0; font-size: 20px; font-weight: 900; color: #1f2937; }
.adv-island-icon { font-size: 30px; line-height: 1; }
.adv-island-stars { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); color: #9a6b00; font-weight: 900; font-size: 14px; }
.adv-island-lock { margin: 0; text-align: center; font-weight: 800; color: #374151; }
.adv-path { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; margin: 0; padding: 30px 0 0; list-style: none; }
.adv-path::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 38px; border-top: 6px dashed rgba(255, 255, 255, .85); }
.adv-node { position: relative; display: grid; justify-items: center; gap: 4px; }
.adv-node:nth-child(even) { margin-bottom: 18px; }
.adv-node button { width: 58px; height: 58px; border: 4px solid #fff; border-radius: 50%; background: #fff; color: #1f2937; font: inherit; font-size: 22px; font-weight: 900; cursor: pointer; box-shadow: 0 5px 0 rgba(0, 0, 0, .2); transition: transform .1s; }
.adv-node button:hover:not(:disabled) { transform: translateY(-2px); }
.adv-node button:active:not(:disabled) { transform: translateY(3px); }
.adv-node button:focus-visible { outline: 3px solid #f5b400; outline-offset: 3px; }
.adv-node.done button { background: #f5b400; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.adv-node.open button { background: #22c55e; color: #fff; animation: arena-pulse 1.4s ease-in-out infinite; }
.adv-node.locked button { background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .7); font-size: 18px; cursor: default; box-shadow: none; }
.adv-node.boss button { width: 72px; height: 72px; font-size: 38px; background: #7c3aed; border-color: #fde047; }
.adv-node.boss.done button { background: #f5b400; }
.adv-node.boss.locked button { background: rgba(124, 58, 237, .45); }
.adv-node-face { display: block; line-height: 1; }
.adv-node-stars { display: flex; font-size: 14px; line-height: 1; }
.adv-node-stars i { font-style: normal; color: rgba(0, 0, 0, .18); }
.adv-node-stars i.on { color: #f59e0b; text-shadow: 0 1px 0 #fff; }
.adv-node.locked .adv-node-stars, .adv-node.open .adv-node-stars { visibility: hidden; }
.adv-me { position: absolute; bottom: calc(100% - 6px); z-index: 1; animation: arena-bob 1.6s ease-in-out infinite; }
.adv-me .game-avatar-svg { border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.adv-unlock { padding: 10px 16px; border-radius: 16px; background: #fff1c7; color: #7a5200; font-weight: 800; animation: card-in .5s .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.game-stage.adv.isle-beach { background: linear-gradient(160deg, #0ea5e9 0%, #38bdf8 50%, #fcd34d 100%); }
.game-stage.adv.isle-forest { background: linear-gradient(160deg, #166534 0%, #22c55e 55%, #a3e635 100%); }
.game-stage.adv.isle-cave { background: linear-gradient(160deg, #1e1b4b 0%, #4338ca 55%, #818cf8 100%); }
.game-stage.adv.isle-volcano { background: linear-gradient(160deg, #450a0a 0%, #b91c1c 55%, #f97316 100%); }
.game-stage.adv .game-mode { color: #0f766e; }
.game-stage.adv.boss { box-shadow: 0 0 0 4px #fde047, 0 12px 30px rgba(0, 0, 0, .35); }
.game-stage.adv.boss .game-mode { color: #6d28d9; }
.boss-arena { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px; border-radius: 24px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 0 rgba(0, 0, 0, .12); }
.boss-side { display: grid; justify-items: center; gap: 4px; }
.boss-side b { font-size: 14px; font-weight: 900; color: #1f2937; text-align: center; }
.boss-side .game-avatar-svg { border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.boss-face { display: block; font-size: 58px; line-height: 1; animation: boss-idle 1.8s ease-in-out infinite; }
.boss-vs { color: #f15a14; font-size: 26px; font-style: italic; font-weight: 900; }
.boss-arena.boss-hit .boss-face { animation: boss-hit .6s ease-out; }
.boss-arena.me-hit .boss-side.me { animation: vs-shake .4s ease-out; }
.boss-arena.me-hit .boss-face { animation: boss-attack .5s ease-out; }
@keyframes boss-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px) scale(1.04); } }
@keyframes boss-hit { 0% { transform: none; filter: none; } 20% { transform: translateX(10px) rotate(12deg); filter: brightness(2.2); } 50% { transform: translateX(-6px) rotate(-6deg); } 100% { transform: none; filter: none; } }
@keyframes boss-attack { 0%, 100% { transform: none; } 40% { transform: translateX(-26px) scale(1.25); } }
.vs-intro.boss .vs-half.them { background: linear-gradient(160deg, #7c3aed, #1e1b4b); }
.vs-boss { font-size: 84px; background: rgba(255, 255, 255, .15); }
/* Balloon arcade */
.game-stage.arcade { background: linear-gradient(180deg, #7dd3fc 0%, #c4b5fd 60%, #f9a8d4 100%); box-shadow: 0 12px 30px rgba(109, 40, 217, .3); }
.game-stage.arcade .game-mode { color: #6d28d9; }
.game-stage.arcade.hurt { animation: vs-shake .35s ease-out; }
.arcade-intro { display: grid; justify-items: center; gap: 14px; padding: 26px 22px; border-radius: 24px; text-align: center; }
.arcade-intro h1 { margin: 0; font-size: 32px; color: #6d28d9; }
.arcade-demo { display: flex; gap: 10px; height: 96px; align-items: end; }
.arcade-demo .balloon { position: relative; animation: arena-bob 2s ease-in-out infinite; }
.arcade-demo .balloon:nth-child(2) { animation-delay: -.5s; }
.arcade-demo .balloon:nth-child(3) { animation-delay: -1s; }
.arcade-demo .balloon:nth-child(4) { animation-delay: -1.5s; }
.arcade-rules { display: grid; gap: 8px; width: min(420px, 100%); margin: 0; padding: 0; list-style: none; text-align: left; }
.arcade-rules li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #f5f3ff; color: #3b0764; font-weight: 600; }
.arcade-rules li > span:first-child { font-size: 22px; }
.arcade-records { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.arcade-records span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff1c7; color: #7a5200; font-weight: 700; }
.arcade-today { width: min(420px, 100%); }
.arcade-today h3 { margin: 4px 0 8px; font-size: 16px; color: #3b0764; }
.arcade-top { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.arcade-top li { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 14px; background: #f5f3ff; text-align: left; }
.arcade-top li.me { background: #ede9fe; box-shadow: inset 0 0 0 2px #a78bfa; }
.arcade-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arcade-top strong { color: #6d28d9; font-size: 18px; }
.game-btn.big { min-height: 56px; padding: 14px 34px; font-size: 20px; box-shadow: 0 5px 0 #2a7454; }
.arcade-count { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(46, 16, 101, .55); transition: opacity .3s; }
.arcade-count.out { opacity: 0; }
.arcade-count span { color: #fff; font-size: 110px; font-weight: 900; line-height: 1; text-shadow: 0 6px 0 rgba(0, 0, 0, .35); opacity: 0; }
.arcade-count span.show { animation: arcade-count .6s ease-out both; }
.arcade-count span.go { color: #fde047; font-size: 80px; animation: vs-go .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes arcade-count { 0% { opacity: 0; transform: scale(2); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.8); } }
.game-stage.arcade.playing { gap: 10px; }
.game-stage.arcade.playing .game-topbar .game-hearts { padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.arcade-score { display: grid; justify-items: center; min-width: 74px; padding: 4px 12px; border-radius: 16px; background: #fff; color: #6d28d9; line-height: 1; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.arcade-score strong { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.arcade-score small { font-size: 11px; font-weight: 800; }
.arcade-time { position: relative; height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .45); overflow: hidden; }
.arcade-time i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #84cc16); }
.arcade-time.low i { background: linear-gradient(90deg, #ef4444, #f97316); }
.arcade-time span { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 900; color: #1f2937; }
.arcade-q { position: relative; padding: 14px 18px; border-radius: 20px; background: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, .1); text-align: center; animation: card-in .3s cubic-bezier(.2, .9, .3, 1.2); }
.arcade-q .question { margin: 0; font-size: 20px; line-height: 1.4; }
.arcade-combo { position: absolute; top: -12px; right: 12px; padding: 3px 10px; border-radius: 999px; background: #f15a14; color: #fff; font-size: 13px; font-weight: 900; box-shadow: 0 2px 0 #a83c08; }
.arcade-sky { position: relative; height: 380px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .45)); }
.arcade-sky::after { content: "☁️"; position: absolute; left: 8%; top: 14%; font-size: 44px; opacity: .7; pointer-events: none; }
.balloon { --balloon: #ef4444; --balloon-dark: #b91c1c; position: absolute; bottom: -140px; width: 22%; max-width: 128px; padding: 0 0 30px; border: 0; background: none; font: inherit; cursor: pointer; animation: balloon-rise linear both; touch-action: manipulation; }
.balloon.b1 { --balloon: #3b82f6; --balloon-dark: #1d4ed8; }
.balloon.b2 { --balloon: #f59e0b; --balloon-dark: #b45309; }
.balloon.b3 { --balloon: #22c55e; --balloon-dark: #15803d; }
.balloon::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 30px; border-left: 2px solid rgba(0, 0, 0, .3); }
.balloon-body { position: relative; display: grid; place-items: center; min-height: 86px; padding: 10px 8px; border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55) 0 10%, transparent 26%), var(--balloon); color: #fff; font-size: 17px; font-weight: 900; line-height: 1.15; text-shadow: 0 2px 0 var(--balloon-dark); word-break: break-word; box-shadow: inset -6px -8px 0 rgba(0, 0, 0, .12); }
.balloon-body::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--balloon-dark); border-bottom: 0; }
.balloon .option-content { display: block; }
.arcade-demo .balloon { width: 66px; padding-bottom: 18px; }
.arcade-demo .balloon::after { height: 18px; }
.arcade-demo .balloon-body { min-height: 66px; font-size: 16px; }
@keyframes balloon-rise { 0% { bottom: -140px; transform: translateX(0) rotate(-3deg); } 25% { transform: translateX(6px) rotate(3deg); } 50% { transform: translateX(-6px) rotate(-3deg); } 75% { transform: translateX(6px) rotate(3deg); } 100% { bottom: calc(100% + 10px); transform: translateX(0) rotate(-3deg); } }
.balloon:focus-visible { outline: none; }
.balloon:focus-visible .balloon-body { outline: 3px solid #fde047; outline-offset: 3px; }
.arcade-sky.frozen .balloon { animation-play-state: paused; cursor: default; }
.balloon.away { visibility: hidden; }
.balloon.popped .balloon-body, .balloon.popped::after { animation: balloon-pop .3s ease-out forwards; }
.balloon.wrong .balloon-body { --balloon: #6b7280; --balloon-dark: #374151; animation: balloon-shake .4s ease-out; }
.balloon.right .balloon-body { box-shadow: 0 0 0 5px #fff, 0 0 26px 8px #fde047; animation: balloon-glow .9s ease-in-out infinite; }
.pop-burst { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); color: #fff; font-size: 30px; font-weight: 900; text-shadow: 0 3px 0 #6d28d9, 0 0 14px rgba(109, 40, 217, .6); white-space: nowrap; animation: pop-burst .7s ease-out forwards; pointer-events: none; }
@keyframes balloon-pop { 0% { transform: scale(1); opacity: 1; } 60% { transform: scale(1.35); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes balloon-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-8px) rotate(-6deg); } 75% { transform: translateX(8px) rotate(6deg); } }
@keyframes balloon-glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes pop-burst { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 30% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -40px) scale(1); } }
.arcade-final { display: grid; justify-items: center; line-height: 1; color: #6d28d9; }
.arcade-final strong { font-size: 64px; font-weight: 900; font-variant-numeric: tabular-nums; }
.arcade-final span { font-weight: 800; }
.result-stat.combo { background: #ffe8dc; }
.result-stat.combo strong { color: #e25412; }
@media (max-width: 520px) {
  .adv-island { padding: 14px 10px 18px; }
  .adv-node button { width: 46px; height: 46px; font-size: 18px; border-width: 3px; }
  .adv-node.boss button { width: 58px; height: 58px; font-size: 30px; }
  .adv-node-stars { font-size: 12px; }
  .adv-me .game-avatar-svg { width: 32px; height: 32px; }
  .boss-face { font-size: 46px; }
  .arcade-sky { height: 340px; }
  .arcade-q .question { font-size: 17px; }
  .balloon { width: 23.5%; }
  .balloon-body { min-height: 76px; padding: 8px 4px; font-size: 14px; }
  .arcade-final strong { font-size: 52px; }
  .result-stat { padding: 10px 8px; }
  .result-stat strong { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .arena-tile.mode > span, .adv-node.open button, .adv-me, .adv-unlock, .boss-face, .boss-arena.boss-hit .boss-face, .boss-arena.me-hit .boss-side.me, .boss-arena.me-hit .boss-face, .arcade-demo .balloon, .game-stage.arcade.hurt, .game-hearts.hit, .balloon.right .balloon-body, .balloon.wrong .balloon-body { animation: none; }
}
/* Coins spent inside a round, streak gifts */
.boost-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.boost-wallet { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: #fff1c7; color: #9a6b00; font-weight: 900; }
.boost-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 2px solid #e9d5ff; border-radius: 14px; background: #faf5ff; color: #5b21b6; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 #e9d5ff; transition: transform .1s; }
.boost-btn small { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px; border-radius: 999px; background: #fff; color: #9a6b00; font-size: 12px; font-weight: 900; }
.boost-btn:hover:not(:disabled) { transform: translateY(-1px); }
.boost-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #e9d5ff; }
.boost-btn:disabled { opacity: .55; cursor: default; }
.boost-btn:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }
#arcade-boosts .boost-bar { padding: 6px; border-radius: 18px; background: rgba(255, 255, 255, .55); }
.game-option.hinted { opacity: .3; filter: grayscale(1); text-decoration: line-through; }
.balloon.hinted { opacity: 0; transform: scale(.4); transition: opacity .35s, transform .35s; pointer-events: none; }
.game-hearts.gain { animation: heart-hit .5s ease-out; }
.arena-challenge.gift { background: linear-gradient(135deg, #fde68a, #fbbf24); animation: arena-wiggle 2.2s ease-in-out infinite; }
.arena-challenge.gift .arena-go { background: #dc2626; box-shadow: 0 3px 0 #991b1b; }
.chest-prize > span.chest-boost { padding: 4px 12px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-weight: 900; }
@media (max-width: 520px) {
  .boost-btn { padding: 6px 9px; font-size: 13px; }
  #arcade-boosts .boost-name { display: none; }
  #arcade-boosts .boost-bar { flex-wrap: nowrap; gap: 5px; padding: 5px; }
  #arcade-boosts .boost-btn { gap: 3px; padding: 5px 7px; }
  #arcade-boosts .boost-btn small { padding: 2px 5px; }
  .boost-wallet { padding: 5px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .arena-challenge.gift, .game-hearts.gain { animation: none; }
}
/* A livelier Arena: one grid of games, playful question chips, bursts and stamps */
.arena-tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.arena-tile { position: relative; overflow: hidden; }
.arena-tile::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); animation: tile-shine 4.5s ease-in-out infinite; pointer-events: none; }
.arena-tiles.four .arena-tile:nth-child(2)::after { animation-delay: 1.1s; }
.arena-tiles.four .arena-tile:nth-child(3)::after { animation-delay: 2.2s; }
.arena-tiles.four .arena-tile:nth-child(4)::after { animation-delay: 3.3s; }
.arena-tile:hover:not(:disabled) { transform: translateY(-3px) rotate(-1deg); }
.arena-tile.mode > span { font-size: 40px; }
.arena-tile.blue > span, .arena-tile.pink > span { animation: arena-bob 2.6s ease-in-out infinite; }
.arena-tile.pink > span { animation-delay: -1.3s; }
.arena-games .arena-duel { margin-top: 14px; }
@keyframes tile-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.q-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game-buddy .q-chips { margin-left: auto; justify-content: flex-end; }
.game-buddy { flex-wrap: wrap; }
.q-chip { padding: 5px 12px; border-radius: 999px; background: #fff1e3; color: #c4520f; font-size: 13px; font-weight: 900; }
.q-chip.bi { background: #e7f3fc; color: #1f6fa8; }
.q-heat { font-size: 15px; letter-spacing: -2px; }
.game-buddy > .game-avatar-svg { animation: buddy-bob 2.4s ease-in-out infinite; }
@keyframes buddy-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
.game-option { animation: opt-in .4s cubic-bezier(.2, .9, .3, 1.3) backwards; }
.game-option.opt-1 { animation-delay: .06s; }
.game-option.opt-2 { animation-delay: .12s; }
.game-option.opt-3 { animation-delay: .18s; }
@keyframes opt-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.game-play.yay { animation: play-yay .6s ease-out; }
.game-play.oops { animation: game-shake .4s ease-in-out; }
@keyframes play-yay { 0% { box-shadow: 0 6px 0 rgba(0, 0, 0, .08), 0 0 0 0 rgba(47, 163, 107, .55); } 100% { box-shadow: 0 6px 0 rgba(0, 0, 0, .08), 0 0 0 18px rgba(47, 163, 107, 0); } }
.fx-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 2; }
.fx-burst i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 3px; animation: fx-fly .8s cubic-bezier(.1, .7, .3, 1) forwards; }
.fx-burst i:nth-child(odd) { border-radius: 50%; }
@keyframes fx-fly { 0% { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.4) rotate(220deg); opacity: 0; } }
.feedback-stamp { font-size: 24px; font-weight: 900; display: inline-block; transform: rotate(-3deg); animation: stamp-in .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.game-feedback.right .feedback-stamp { color: #23784f; text-shadow: 0 3px 0 #bfe8cf; }
.game-feedback.wrong .feedback-stamp { color: #c2410c; text-shadow: 0 3px 0 #fed7aa; }
@keyframes stamp-in { 0% { opacity: 0; transform: scale(2) rotate(-12deg); } 100% { opacity: 1; transform: scale(1) rotate(-3deg); } }
.feedback-why { width: 100%; }
.feedback-why summary { width: fit-content; padding: 5px 12px; border-radius: 999px; background: #fff; color: #2f7d58; font-weight: 800; cursor: pointer; list-style: none; box-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.feedback-why summary::-webkit-details-marker { display: none; }
.feedback-why p { margin: 10px 2px 0; line-height: 1.6; }
.game-feedback .game-feedback-avatar .game-avatar-svg { animation: buddy-bob 1.6s ease-in-out infinite; }
.game-stage > .adv-cloud { position: absolute; z-index: 0; font-size: 42px; opacity: .75; pointer-events: none; animation: cloud-drift 26s linear infinite; }
.adv-cloud.c1 { top: 70px; animation-duration: 30s; }
.adv-cloud.c2 { top: 38%; font-size: 56px; animation-duration: 38s; animation-delay: -14s; }
.adv-cloud.c3 { top: 72%; font-size: 34px; animation-duration: 24s; animation-delay: -8s; }
@keyframes cloud-drift { from { left: -80px; } to { left: 100%; } }
.adv-island { position: relative; z-index: 1; }
.adv-island:not(.locked) { animation: isle-float 5s ease-in-out infinite; }
.adv-island:nth-of-type(even):not(.locked) { animation-delay: -2.5s; }
@keyframes isle-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.adv-path::before { border-top: 0; height: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .9) 0 12px, transparent 12px 22px); animation: path-march 1.2s linear infinite; }
@keyframes path-march { to { background-position: 22px 0; } }
.adv-node.done button { animation: none; }
.adv-node.done:hover button { transform: rotate(-8deg) scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .arena-tile::after, .arena-tile.blue > span, .arena-tile.pink > span, .game-buddy > .game-avatar-svg, .game-option, .game-play.yay, .game-play.oops, .feedback-stamp, .game-feedback .game-feedback-avatar .game-avatar-svg, .game-stage > .adv-cloud, .adv-island:not(.locked), .adv-path::before { animation: none; }
  .fx-burst { display: none; }
}
@media (max-width: 520px) {
  .arena-mission.done { flex-wrap: wrap; }
  .arena-mission.done .arena-mission-text { flex: 1 1 0; }
  .arena-mission.done .arena-later, .arena-mission.done .arena-chest { flex: 1 1 100%; text-align: center; }
  .arena-pills i { white-space: nowrap; }
  .arena-mission-icon { width: 56px; height: 56px; font-size: 34px; }
}
