:root {
  --red: #c0392b;
  --red-dark: #922b21;
  --red-pale: #fadbd8;
  --white: #fdfcfb;
  --off-white: #f5f0ec;
  --cream: #ede8e3;
  --ink: #1a1a1a;
  --muted: #4a4a4a;
  --ink-light: #8a8a8a;
  --bg-top: #fff;
  --bg: var(--off-white);
  --panel: var(--white);
  --panel-soft: var(--off-white);
  --panel-muted: var(--cream);
  --line: var(--cream);
  --soft: #fff8f7;
  --soft-gold: #fff8f0;
  --success: #1f8b4c;
  --warning: #d99116;
  --danger: #c23b31;
  --shadow: 0 2px 40px rgba(0, 0, 0, 0.1);
  --radius: 18px;
  --radius-sm: 14px;
  --transition: 180ms ease;
  --font-main: "Avenir Next", "Segoe UI", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --font-jp: "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif JP", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.app {
  width: min(1040px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 18px 0 48px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-top: 4px;
}

body.home-active .topbar {
  display: none;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.brand h1 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
}

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

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.view {
  display: none;
  position: relative;
  animation: fadeUp 280ms ease;
}

.view.active {
  display: block;
}

.view::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--red);
  opacity: 0.08;
  pointer-events: none;
}

.card,
.modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#homeView {
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--cream);
  box-shadow: var(--shadow);
}

.intro-header {
  overflow: hidden;
  padding: 40px 48px 34px;
  background: var(--red);
  color: var(--white);
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

.intro-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
  font-weight: 600;
}

.intro-header::after {
  content: "日";
  position: absolute;
  right: -12px;
  top: -24px;
  font-family: var(--font-serif);
  font-size: 180px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
}

.result-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.intro-header h1,
.page-title {
  margin: 0;
  line-height: 1.15;
}

.intro-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 7vw, 3.45rem);
  font-weight: 700;
}

.intro-header h1 span {
  display: block;
  font-family: var(--font-main);
  font-size: clamp(0.95rem, 2.2vw, 1.12rem);
  font-weight: 400;
  margin: 12px 0 0;
  max-width: 60ch;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.3px;
}

.intro-body {
  padding: 42px 48px 46px;
}

.section-list {
  margin-bottom: 28px;
}

.section-list h3 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin: 0 0 14px;
  font-weight: 600;
}

.section-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream);
}

.section-row:last-child {
  border-bottom: none;
}

.sec-badge-mini {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 72px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sec-badge-mini.vocab {
  background: var(--red);
}

.sec-badge-mini.grammar {
  background: #2980b9;
}

.sec-badge-mini.listening {
  background: #16a085;
}

.sec-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  line-height: 1.55;
}

.sec-count {
  color: var(--ink-light);
  background: var(--cream);
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 13px;
  white-space: nowrap;
}

.action-row,
.result-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-row > button,
.result-actions > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-row > button {
  flex-direction: column;
}

.chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.82rem;
}

.chip.light,
.status-badge {
  background: var(--panel);
  color: var(--ink);
}

.status-badge.done {
  color: var(--success);
  border-color: rgba(31, 139, 76, 0.2);
  background: rgba(31, 139, 76, 0.08);
}

.status-badge.active {
  color: var(--red);
  border-color: rgba(192, 57, 43, 0.22);
  background: rgba(192, 57, 43, 0.08);
}

.status-badge.locked {
  color: var(--muted);
  background: var(--panel-muted);
}

.status-badge.break {
  color: var(--warning);
  border-color: rgba(217, 145, 22, 0.24);
  background: rgba(243, 156, 18, 0.08);
}

.card {
  padding: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h3,
.section-head h4 {
  margin: 0;
  font-size: 1rem;
}

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

.tiny {
  font-size: 0.86rem;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 650;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.primary-btn {
  background: var(--red);
  color: var(--white);
}

.secondary-btn,
.ghost-btn,
.danger-btn {
  border: 2px solid var(--line);
  background: var(--panel);
}

.secondary-btn {
  color: var(--red);
}

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

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.option:hover,
.jump-btn:hover {
  border-color: rgba(198, 40, 40, 0.35);
}

.primary-btn:hover {
  background: var(--red-dark);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.ghost-btn:disabled,
.danger-btn:disabled,
.option:disabled,
.jump-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.resume-box {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: #fff8f7;
  border: 1px solid rgba(192, 57, 43, 0.16);
  line-height: 1.75;
}

.last-result-box {
  background: var(--panel);
  border-color: var(--cream);
}

.result-mini-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-right: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.result-mini-status.pass {
  color: var(--success);
  background: rgba(31, 139, 76, 0.1);
}

.result-mini-status.fail {
  color: var(--red);
  background: rgba(192, 57, 43, 0.1);
}

.resume-box strong {
  display: block;
  margin-bottom: 6px;
}

.session-summary {
  margin-top: 14px;
  padding: 14px;
  border-radius: 6px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  line-height: 1.7;
}

.session-summary div {
  padding: 10px 0;
  border-bottom: 1px solid var(--cream);
}

.session-summary div:last-child {
  border-bottom: 0;
}

.exam-rules {
  background: var(--panel-soft);
  border: 1px solid var(--cream);
  padding: 16px 18px;
  border-radius: 6px;
  margin-top: 18px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
}

.exam-rules ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.button-subtext {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 400;
  opacity: 0.82;
}

.disclaimer {
  margin: 18px 0 0;
  text-align: center;
  color: var(--ink-light);
  font-size: 0.78rem;
  line-height: 1.7;
}

.start-exam-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 16px;
  padding: 20px 22px;
  font-size: 1.08rem;
}

#sessionView {
  background: var(--off-white);
  min-height: 100vh;
  margin: -18px calc((100vw - min(1040px, calc(100vw - 24px))) / -2) -48px;
}

.exam-topbar {
  background: var(--white);
  border-bottom: 2px solid var(--red);
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.topbar-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
}

.section-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scroll-padding-inline: 24px;
  scrollbar-width: none;
}

.section-tabs::-webkit-scrollbar {
  display: none;
}

.sec-tab {
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  color: var(--ink-light);
  background: transparent;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sec-tab.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.sec-tab.done {
  border-color: var(--success);
  color: var(--success);
}

.sec-tab.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.sec-tab.current-only {
  border-color: var(--cream);
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 12px;
  flex-shrink: 0;
}

.timer-icon {
  font-size: 14px;
  line-height: 1;
  opacity: 0.9;
}

.timer-display {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  min-width: 68px;
  text-align: center;
}

.timer-box.warning {
  background: var(--red);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.progress-bar-wrap {
  height: 3px;
  background: var(--cream);
}

.progress-bar-fill {
  height: 100%;
  background: var(--red);
  transition: width 0.4s ease;
}

.exam-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 20px 120px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.sec-badge {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.sec-title-text {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 0;
}

.q-counter-inline {
  font-size: 14px;
  color: var(--ink-light);
  font-weight: 500;
}

.mobile-only {
  display: none;
}

.q-counter-desktop {
  color: var(--ink-light);
  font-weight: 500;
}

.q-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 20px;
}

.q-number-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
  font-weight: 500;
}

.q-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.q-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hint-toggle-btn,
.flag-question-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hint-toggle-btn[aria-expanded="true"] {
  border-color: rgba(192, 57, 43, 0.45);
  background: var(--soft);
  color: var(--red-dark);
}

.flag-question-btn.active {
  border-color: rgba(217, 145, 22, 0.55);
  background: #fff4d8;
  color: #8a5a00;
}

.question-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 14px;
}

.q-text {
  font-family: var(--font-jp);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 26px;
  color: var(--ink);
}

.instruction-panel {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.instruction-panel:not([open]) {
  display: none;
}

.instruction-panel summary {
  cursor: pointer;
  padding: 10px 13px;
  font-weight: 800;
  color: var(--ink);
}

.instruction-panel div {
  padding: 12px 13px;
}

.instruction-panel ul {
  margin: 0;
  padding-left: 20px;
}

.instruction-panel li + li {
  margin-top: 6px;
}

.composition-card {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.composition-text {
  font-family: var(--font-jp);
  font-size: clamp(1.12rem, 2.4vw, 1.42rem);
  line-height: 2.2;
  color: var(--ink);
}

.composition-slot {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  width: clamp(54px, 12vw, 96px);
  height: 1.9em;
  margin: 0 6px;
  border-bottom: 2px solid var(--ink-light);
  vertical-align: baseline;
  font-weight: 700;
  line-height: 1;
}

.composition-slot.star {
  border-bottom-color: var(--ink);
  color: transparent;
}

.composition-slot.star::before {
  content: "★";
  position: absolute;
  bottom: 0.22em;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink);
}

.script-box,
.passage-box,
.break-note,
.result-note {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  line-height: 1.8;
}

.script-box,
.passage-box {
  background: var(--white);
  font-family: var(--font-jp);
  margin-bottom: 16px;
  border-left: 4px solid var(--red);
  border-radius: 0 14px 14px 0;
}

.reading-panel {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--section-color, var(--red));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
  font-family: var(--font-jp);
  overflow: hidden;
}

.reading-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--ink);
  background: var(--panel-soft);
  list-style: none;
}

.reading-panel summary::-webkit-details-marker {
  display: none;
}

.reading-panel summary::after {
  content: "＋";
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

.reading-panel[open] summary::after {
  content: "－";
}

.reading-panel-hint {
  margin-left: auto;
  color: var(--ink-light);
  font-size: 12px;
  font-weight: 500;
}

.reading-panel-body {
  max-height: min(52vh, 520px);
  overflow: auto;
  padding: 18px 20px;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  line-height: 2.05;
  color: var(--ink);
}

.reading-panel-body p {
  margin: 0 0 14px;
}

.reading-panel-body p:last-child {
  margin-bottom: 0;
}

.blank-marker {
  display: inline-block;
  padding: 1px 7px 2px;
  border-radius: 6px;
  background: var(--red-pale);
  box-shadow: inset 0 0 0 1px rgba(192, 57, 43, 0.22);
  color: var(--red-dark);
  font-weight: 800;
  line-height: 1.45;
}

.blank-marker-empty {
  min-width: 2.8em;
  text-align: center;
}

.target-marker {
  text-decoration-line: underline;
  text-decoration-thickness: 0.14em;
  text-decoration-color: rgba(192, 57, 43, 0.88);
  text-underline-offset: 0.18em;
  font-weight: 800;
}

ruby {
  ruby-position: over;
}

rt {
  font-size: 0.45em;
  line-height: 1;
  font-weight: 600;
  color: var(--muted);
}

@media (min-width: 900px) {
  .reading-panel {
    position: sticky;
    top: 78px;
    z-index: 2;
  }
}

.audio-box {
  padding: 14px 16px;
  border-radius: 0 14px 14px 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  background: var(--white);
  margin-bottom: 16px;
  line-height: 1.7;
}

.listening-once-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.listening-once-box p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.start-listening-audio-btn {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.start-listening-audio-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.listening-example {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.listening-example summary {
  cursor: pointer;
  font-weight: 800;
}

.listening-example p {
  margin: 8px 0;
}

.listening-example-image {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin-top: 8px;
  border-radius: 6px;
  background: var(--white);
}

.listening-example-options {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--font-jp);
}

.audio-box audio,
.review-passage audio {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.source-figure {
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.source-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.source-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.review-source {
  padding: 10px;
}

.listening-question-source {
  margin-top: 2px;
  margin-bottom: 18px;
}

.listening-question-source img {
  border-radius: 6px;
}

.break-note,
.result-note {
  background: var(--soft-gold);
  border-color: rgba(243, 156, 18, 0.18);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: var(--panel-soft);
  line-height: 1.75;
  font-family: var(--font-jp);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.option.selected {
  border-color: var(--red);
  background: var(--red-pale);
  color: var(--red-dark);
  font-weight: 600;
}

.option.selected .option-index {
  background: var(--red);
  color: var(--white);
}

.option-empty-text span:last-child {
  display: none;
}

.option-index {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
}

.jump-btn {
  width: 12px;
  height: 12px;
  min-height: 12px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #d0c8c2;
  background: var(--cream);
  opacity: 0.48;
  font-size: 0;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.jump-btn.current {
  background: var(--panel);
  color: var(--white);
  border-color: var(--red-dark);
  opacity: 1;
  transform: scale(1.25);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}

.jump-btn.answered {
  border-color: var(--red-dark);
  background: var(--red);
  color: var(--success);
  opacity: 1;
}

.jump-btn.flagged {
  border-color: #8a5a00;
  background: var(--warning);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(217, 145, 22, 0.18);
}

.jump-btn.example {
  border-color: rgba(22, 160, 133, 0.65);
  background: rgba(22, 160, 133, 0.18);
  opacity: 1;
}

.jump-btn.example.current {
  border-color: #117a65;
  background: #16a085;
}

.jump-btn.current.answered {
  color: var(--white);
  background: var(--red);
}

.jump-btn.current.flagged {
  background: var(--warning);
  border-color: #8a5a00;
}

.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--cream);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.btn-nav {
  padding: 12px 22px;
  border-radius: 14px;
  border: 2px solid var(--cream);
  background: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--ink);
}

.btn-nav:hover {
  border-color: var(--ink-light);
}

.btn-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-nav.primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  margin-left: auto;
}

.btn-nav.primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-nav.finish {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  margin-left: auto;
}

.dot-nav {
  display: flex;
  gap: 8px;
  flex: 1 1 100%;
  overflow-x: auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  order: -1;
  position: relative;
  scroll-snap-type: x mandatory;
  padding: 6px 0;
  overflow-y: visible;
  scrollbar-width: none;
}

.dot-nav::before,
.dot-nav::after {
  content: "";
  position: sticky;
  top: 0;
  width: 22px;
  height: 24px;
  flex: 0 0 auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition);
}

.dot-nav::before {
  left: 0;
  margin-right: -22px;
  background: linear-gradient(to right, var(--white), transparent);
}

.dot-nav::after {
  right: 0;
  margin-left: -22px;
  background: linear-gradient(to left, var(--white), transparent);
}

.dot-nav.can-scroll-left::before,
.dot-nav.can-scroll-right::after {
  opacity: 1;
}

.dot-nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 601px) {
  .dot-nav {
    order: 0;
    flex: 1;
    justify-content: center;
  }
}

.result-status {
  padding: 40px 40px 32px;
  border-radius: 8px 8px 0 0;
  font-weight: 700;
  border: 0;
  margin-bottom: 0;
  line-height: 1.6;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-status.pass {
  color: var(--white);
  background: var(--red);
}

.result-status.fail {
  color: var(--white);
  background: var(--red-dark);
}

.result-status::before {
  content: "合格";
  position: absolute;
  right: -20px;
  bottom: -28px;
  font-family: var(--font-serif);
  font-size: 120px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.result-status.fail::before {
  content: "再挑";
}

.result-status strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1;
  margin-bottom: 12px;
}

.result-status strong span {
  font-size: 0.4em;
  color: rgba(255, 255, 255, 0.72);
}

.result-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.result-score-meter {
  width: min(520px, 100%);
  margin: 24px auto 0;
}

.result-score-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.result-score-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.92);
  transition: width 0.6s ease;
}

.result-score-pass-marker {
  position: absolute;
  left: calc((80 / 180) * 100%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 0, 0, 0.72);
  transform: translateX(-1px);
}

.result-meta-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-band,
.result-passline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.result-band {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.result-passline {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.result-summary-panel {
  background: var(--white);
  padding: 26px 40px 22px;
  border: 1px solid var(--cream);
  border-top: 0;
  border-bottom: 1px solid var(--cream);
}

.result-summary-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.result-summary-copy {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 16px;
}

.result-stats {
  background: var(--white);
  padding: 28px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  border: 1px solid var(--cream);
  border-top: 0;
}

.stat-item {
  padding: 8px 0;
}

.stat-num {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  display: block;
}

.stat-num.correct {
  color: var(--success);
}

.stat-num.wrong {
  color: var(--red);
}

.stat-label {
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 4px;
}

.score-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.score-card strong {
  display: block;
  margin-bottom: 8px;
}

.big-score {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin: 10px 0 6px;
  color: var(--red);
}

#resultView {
  max-width: 720px;
  margin: 0 auto;
  flex-direction: column;
}

#resultView.active {
  display: flex;
}

#resultView .result-action-card {
  border-radius: 0;
  box-shadow: none;
  border-top: 0;
}

#resultView .review-result-card {
  margin-top: 0 !important;
  border-radius: 0 0 8px 8px;
  box-shadow: none;
  border-top: 0;
  padding: 24px 40px;
}

.score-panel {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.score-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.score-row:first-child {
  border-top: none;
  padding-top: 0;
}

.score-row:last-child {
  padding-bottom: 0;
}

.score-label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.score-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.score-value {
  font-size: 1.14rem;
  font-weight: 800;
  white-space: nowrap;
}

.breakdown {
  background: var(--white);
  padding: 24px 40px;
  border: 1px solid var(--cream);
  border-top: 0;
}

.breakdown h3 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin: 0 0 16px;
  font-weight: 500;
}

.breakdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--off-white);
}

.breakdown-row:last-child {
  border-bottom: 0;
}

.br-left {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 220px;
  flex-shrink: 0;
}

.br-name {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.br-name > span {
  display: inline-block;
  padding-right: 24px;
  will-change: transform;
}

.br-name.is-marquee > span {
  animation: secNameMarquee 8s ease-in-out infinite;
}

.br-bar-wrap {
  flex: 1;
  min-width: 0;
  height: 8px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--off-white);
}

.br-bar {
  height: 100%;
  border-radius: 20px;
  background: var(--red);
  transition: width 0.8s ease;
}

.br-score {
  width: 60px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
}

#resultView .result-actions {
  background: var(--white);
  border: 1px solid var(--cream);
  border-top: 0;
  padding: 28px 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#resultView .result-actions button {
  display: inline-flex;
  align-items: center;
  flex: 1;
  min-width: 140px;
  justify-content: center;
  border-radius: 4px;
  padding: 14px;
  font-weight: 600;
}

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

.review-summary {
  padding: 20px 22px;
  border-radius: 8px;
  border: 1px solid var(--cream);
  background: var(--white);
}

.review-summary h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.review-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.review-session-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.review-session-tabs::-webkit-scrollbar {
  display: none;
}

.review-session-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--cream);
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.review-session-tab.active {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.review-session-tab span {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--off-white);
  color: var(--red);
  font-size: 12px;
}

.review-session-tab.active span {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.review-section-title {
  padding: 8px 0 12px;
  border-bottom: 2px solid var(--cream);
  color: var(--ink-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.review-card {
  padding: 22px 24px;
  border-radius: 8px;
  border: 1px solid var(--cream);
  border-left: 4px solid transparent;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(24, 24, 27, 0.06);
}

.review-card.wrong-card {
  border-left-color: var(--red);
}

.review-q-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.review-badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.wrong-badge {
  color: var(--red);
  background: var(--red-pale);
}

.review-meta {
  min-width: 0;
  color: var(--ink-light);
  font-size: 12px;
  line-height: 1.5;
}

.review-q-text {
  margin-bottom: 16px;
  font-family: var(--font-jp);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.7;
}

.review-passage {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  border-left: 3px solid var(--ink-light);
  background: var(--off-white);
  color: var(--muted);
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.85;
}

.review-options {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.review-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--off-white);
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.65;
}

.review-opt.user-ans {
  color: var(--red-dark);
  background: var(--red-pale);
}

.review-opt.correct-ans {
  color: var(--success);
  background: rgba(31, 139, 76, 0.1);
  font-weight: 600;
}

.review-opt.user-ans.correct-ans {
  color: var(--success);
  background: rgba(31, 139, 76, 0.1);
}

.rev-opt-icon {
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
  font-weight: 700;
}

.explanation-box {
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  border: 1px solid rgba(217, 145, 22, 0.24);
  border-left: 3px solid var(--warning);
  background: #fef9e7;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.explanation-box strong {
  color: var(--ink);
}

.review-script-box {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--off-white);
  overflow: hidden;
}

.review-script-box summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.review-script-answer,
.review-script-key {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.review-script-body {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.9;
}

.review-script-key strong,
.review-script-answer strong {
  color: var(--ink);
}

.empty-state {
  padding: 20px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: var(--soft-gold);
  line-height: 1.8;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 0.95rem;
  background: var(--white);
}

.info-table th,
.info-table td {
  border: 1px solid rgba(192, 57, 43, 0.18);
  padding: 8px;
  text-align: left;
}

.modal {
  position: fixed;
  inset: 0;
  padding: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.58);
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(420px, 100%);
  max-height: min(86vh, 680px);
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--cream);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.modal-card .status-badge {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(192, 57, 43, 0.1);
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
}

.modal-card h3 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 700;
}

.modal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
  white-space: pre-line;
}

.modal-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.modal-actions .primary-btn,
.modal-actions .secondary-btn {
  width: 100%;
  min-width: 0;
  border-radius: 6px;
  justify-content: center;
  padding: 14px 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(20px);
  min-width: min(90vw, 360px);
  padding: 12px 16px;
  border-radius: 6px;
  background: rgba(34, 24, 20, 0.95);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#breakView {
  max-width: 760px;
  margin: 0 auto;
}

#breakView .break-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--cream);
  box-shadow: var(--shadow);
}

#breakView .break-header {
  margin: 0;
  padding: 40px 48px 34px;
  background: var(--red);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#breakView .break-header::after {
  content: "休";
  position: absolute;
  right: -12px;
  top: -24px;
  font-family: var(--font-serif);
  font-size: 180px;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  pointer-events: none;
}

#breakView .break-header h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}

#breakView .break-body {
  padding: 42px 48px 46px;
}

#breakView .break-note {
  padding: 0;
  border: 0;
  background: transparent;
}

#breakView .break-list {
  margin-bottom: 18px;
}

#breakView .break-rules {
  margin-top: 0;
  margin-bottom: 18px;
}

#breakView .primary-btn,
#breakView .secondary-btn {
  width: 100%;
  justify-content: center;
  display: flex;
  margin-top: 10px;
  padding: 16px 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  body {
    background: var(--off-white);
  }

  .app {
    width: 100%;
    padding: 0 0 40px;
    overflow-x: hidden;
  }

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

  #homeView,
  #breakView,
  #resultView {
    width: calc(100% - 24px);
    max-width: none;
    margin: 12px auto 0;
  }

  #homeView,
  #breakView .break-card {
    border-radius: 10px;
  }

  .intro-header,
  #breakView .break-header {
    padding: 28px 22px 26px;
  }

  .intro-header::after,
  #breakView .break-header::after {
    font-size: 128px;
    right: -18px;
    top: -12px;
  }

  .intro-header h1 {
    font-size: 2.2rem;
  }

  .intro-header h1 span {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .intro-body,
  #breakView .break-body {
    padding: 26px 22px 32px;
  }

  .section-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .sec-badge-mini {
    min-width: 48px;
    min-height: 28px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .sec-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    overflow-y: hidden;
    text-overflow: clip;
    font-size: 0.92rem;
  }

  .sec-name > span {
    display: inline-block;
    min-width: 100%;
    padding-right: 24px;
    will-change: transform;
  }

  .sec-name.is-marquee > span {
    animation: secNameMarquee 8s ease-in-out infinite;
  }

  .sec-count {
    grid-column: auto;
    justify-self: end;
    margin-left: 0;
    padding: 3px 7px;
    font-size: 11px;
  }

  .resume-box {
    display: grid;
    gap: 12px;
    border-radius: 8px;
  }

  .resume-box button {
    width: 100%;
    justify-content: center;
  }

  #sessionView {
    width: 100vw;
    min-height: 100vh;
    margin: 0 0 -40px;
    overflow-x: hidden;
  }

  .exam-topbar {
    height: auto;
    min-height: 64px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    overflow: hidden;
  }

  .topbar-title {
    width: auto;
    flex: 0 0 auto;
    text-align: left;
    font-size: 15px;
    white-space: nowrap;
  }

  .section-tabs {
    order: initial;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: flex-start;
    padding-bottom: 0;
    scroll-padding-inline: 16px;
  }

  .sec-tab {
    max-width: 142px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 12px;
    font-size: 12px;
  }

  .sec-tab.active {
    min-width: max-content;
    max-width: 170px;
    font-weight: 700;
  }

  .timer-box {
    width: auto;
    justify-content: center;
    padding: 9px 11px;
    border-radius: 8px;
    gap: 6px;
  }

  .timer-display {
    min-width: 58px;
    font-size: 17px;
  }

  .exam-content {
    width: 100%;
    max-width: none;
    padding: 20px 12px 154px;
  }

  .q-card {
    border-radius: 10px;
    padding: 20px 16px;
  }

  .listening-once-box {
    align-items: stretch;
    flex-direction: column;
  }

  .start-listening-audio-btn {
    width: 100%;
  }

  .reading-panel-body {
    max-height: none;
    overflow: visible;
  }

  .section-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }

  .sec-badge {
    flex: 0 0 auto;
    padding: 6px 10px;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sec-title-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    justify-content: flex-start;
  }

  .mobile-only {
    display: inline;
  }

  .q-counter-desktop {
    display: none;
  }

  .nav-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }

  .dot-nav {
    grid-column: 1 / -1;
    order: -1;
    width: 100%;
    flex: initial;
    justify-content: flex-start;
  }

  .btn-nav {
    width: 100%;
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 14px;
  }

  .btn-nav.primary,
  .btn-nav.finish {
    margin-left: 0;
  }

  .result-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 22px;
  }

  .breakdown-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .br-left {
    width: 100%;
  }

  .br-name {
    white-space: nowrap;
    flex: 1;
  }

  .br-score {
    width: auto;
  }

  .result-status {
    padding: 30px 20px 26px;
  }

  .result-status::before {
    font-size: 90px;
    right: -16px;
    bottom: -18px;
  }

  .result-summary-panel,
  .breakdown,
  #resultView .result-actions,
  #resultView .review-result-card {
    padding: 24px 20px 28px;
  }

  #resultView .result-actions {
    display: grid;
  }

  #resultView .result-actions button {
    min-width: 0;
    width: 100%;
  }

  .modal-actions {
    display: grid;
    gap: 12px;
  }

  .modal {
    padding: 20px;
    align-items: center;
  }

  .modal-card {
    padding: 24px;
  }

  .modal-card h3 {
    font-size: 1.28rem;
  }

  .modal-actions .primary-btn,
  .modal-actions .secondary-btn {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
  }
}

@keyframes secNameMarquee {
  0%,
  18% {
    transform: translateX(0);
  }
  50%,
  68% {
    transform: translateX(var(--marquee-distance, 0px));
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sec-name.is-marquee > span {
    animation: none;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  #resultView,
  #resultView * {
    visibility: visible;
  }

  #resultView {
    position: absolute;
    inset: 0;
    width: 100%;
  }
}
