﻿:root {
  --bg-top: #ffffff;
  --bg-bottom: #ffffff;
  --panel: #fffdf9;
  --paper: #ffffff;
  --ink: #000000;
  --muted: #5e5143;
  --brown: #ecd8bf;
  --brown-strong: #dfc3a2;
  --brown-soft: #f5e8d7;
  --line: #ead9c5;
  --wrong: #c62828;
  --right: #2e7d32;
  --shadow: 0 14px 34px rgba(120, 102, 84, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: #ffffff;
  -webkit-user-select: none;
  user-select: none;
}

img {
  -webkit-user-drag: none;
}

body,
button,
input,
textarea,
select,
code,
p,
span,
h1,
h2,
h3,
li {
  color: var(--ink);
}

.page-shell {
  width: min(900px, calc(100% - 28px));
  margin: 0 auto;
  padding: 36px 0;
}

.result-page {
  padding-top: 32px;
}

.hero {
  margin-bottom: 12px;
  padding: 0;
  text-align: left;
}

#quiz-page .hero p {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero h1,
.result-header h2,
.side-card h2 {
  font-family: "DM Serif Display", serif;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.hero-copy {
  max-width: 760px;
  margin: 10px 0 0;
  line-height: 1.7;
}

.quiz-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.quiz-panel,
.side-card,
.result-panel {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

.quiz-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.status-row {
  display: grid;
  grid-template-columns: 92px 150px 96px;
  align-items: center;
  justify-content: start;
  gap: 8px;
  margin: 0 0 16px;
}

.status-row > div {
  min-width: 0;
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.status-label {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.status-value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.feedback-banner {
  margin: 0;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  line-height: 1.25;
  font-size: clamp(0.72rem, 1.7vw, 0.9rem);
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.feedback-banner.correct {
  background: #ffffff;
  border-color: #1b5e20;
  color: #1b5e20;
}

.feedback-banner.wrong {
  background: #ffffff;
  border-color: #d50000;
  color: #d50000;
}

.progress-track {
  display: none;
}

.question-stage {
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.question-content {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(250px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.flag-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.question-label {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.flag-image-wrap {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 8px;
  background: var(--paper);
  border-radius: 12px;
  border: 1px dashed #d8c3aa;
}

#flag-image {
  width: 70%;
  max-width: 70%;
  max-height: 260px;
  height: auto;
  object-fit: contain;
  display: block;
}

.flag-placeholder {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
  color: #5e5143;
  padding: 0 20px;
}

#flag-image.hidden,
.flag-placeholder.hidden {
  display: none;
}

.image-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.options-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  align-content: center;
}

.option-button {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #000000;
  border-radius: 12px;
  background: linear-gradient(180deg, #222222 0%, #000000 100%);
  color: #ffffff;
  text-align: left;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.option-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #efefef 0%, #dcdcdc 100%);
  color: #000000;
  border-color: #b9b9b9;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.option-button.selected {
  background: linear-gradient(180deg, #ffe3ec 0%, #f7cddd 100%);
  border-color: #e7a9c0;
  color: #000000;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.34),
    0 10px 22px rgba(174, 96, 129, 0.14);
}

.option-button.correct {
  background: #cfe7c9;
  border-color: #6d9d66;
}

.option-button.wrong {
  background: #f2c3c3;
  border-color: #c46a6a;
}

.option-index {
  display: inline-block;
  min-width: 28px;
  font-weight: 800;
  color: #ffffff;
}

.option-button:hover:not(:disabled) .option-index {
  color: #000000;
}

.option-button.selected .option-index,
.option-button.selected:hover:not(:disabled) .option-index {
  color: #000000;
}

.option-button.selected:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffe3ec 0%, #f7cddd 100%);
  color: #000000;
  border-color: #e7a9c0;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.34),
    0 10px 22px rgba(174, 96, 129, 0.14);
}

.action-row,
.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-row {
  margin-top: 12px;
}

.result-actions {
  margin-bottom: 20px;
}

.result-actions-bottom {
  margin-top: 24px;
  margin-bottom: 0;
}

.result-actions .primary-button,
.result-actions .secondary-button,
.result-actions .study-action-button {
  border-radius: 4px;
  padding: 7px 11px;
  font-size: 0.86rem;
}

.result-tools {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 14px;
}

.select-all-button {
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  padding: 7px 12px;
  background: #ffffff;
  color: #000000;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.select-all-button:hover:not(:disabled) {
  background: #f2f2f2;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.select-all-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.study-action-button {
  border: 1px solid #111111;
  border-radius: 4px;
  padding: 7px 11px;
  background: #003f8f;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.study-action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  background: #002f6f;
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.quiz-hub-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 8px 13px;
  border-radius: 3px;
  background: #1f5ea8;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.quiz-hub-back:visited,
.quiz-hub-back:hover,
.quiz-hub-back:focus {
  color: #ffffff;
}

.primary-button {
  background: #000000;
  color: #ffffff;
}

.select-button {
  background: #8d3b67;
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.secondary-button {
  background: #9a5728;
  color: #ffffff;
}

.retry-selected-button {
  background: #915128;
}

.retry-wrong-button {
  background: #8d3b67;
}

.print-selected-button {
  background: #9b2f45;
}

.finish-button {
  background: #2e7d32;
}

.primary-button:hover:not(:disabled),
.secondary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  filter: brightness(1.08);
}

.action-row .primary-button,
.action-row .secondary-button {
  border-radius: 4px;
}

.action-row .select-button {
  background: #5b2c83;
}

.action-row #skip-button {
  background: #7a4a22;
}

.action-row .finish-button {
  background: #1f5ea8;
}

.retry-selected-button:hover:not(:disabled) {
  background: #7a431f;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(122, 67, 31, 0.28);
}

.retry-wrong-button:hover:not(:disabled) {
  background: #6f2e51;
}

.print-selected-button:hover:not(:disabled) {
  background: #84273a;
}

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

.side-card {
  padding: 22px;
}

.exam-guide {
  margin-top: 0;
  text-align: left;
}

.exam-guide ol,
.exam-guide li {
  text-align: left;
}

.side-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.study-intro {
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.6;
}

.side-card ol,
.side-card ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.study-button {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 18px;
  padding: 18px 20px;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  color: #000000;
  background: linear-gradient(180deg, #cfe8ff 0%, #9ecfff 100%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.study-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  filter: brightness(1.04);
}

.difficulty-box {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.difficulty-title {
  margin: 0 0 10px;
  font-weight: 800;
  text-align: center;
}

.difficulty-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.difficulty-button {
  border: 1px solid #c7b6a5;
  border-radius: 4px;
  padding: 6px 8px;
  background: #ffffff;
  color: #000000;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.difficulty-button.active[data-level="1"] {
  background: #ffd9a8;
  border-color: #f0a24a;
  color: #000000;
}

.difficulty-button.active[data-level="2"] {
  background: #ff6b3a;
  border-color: #e24d1f;
  color: #ffffff;
}

.difficulty-button.active[data-level="3"] {
  background: #d50000;
  border-color: #b00000;
  color: #ffffff;
}

.difficulty-note {
  margin: 10px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0b5d1e;
  text-align: center;
}

.start-quiz-button {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 4px;
  padding: 9px 12px;
  background: #000000;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.start-quiz-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  filter: brightness(1.18);
}

.start-quiz-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.result-panel {
  padding: 30px;
}

.study-panel {
  display: grid;
  gap: 18px;
}

.study-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.study-header-row h2 {
  margin: 0;
}

.study-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 4px;
  background: #d32f2f;
  border: 1px solid #b71c1c;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.study-link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(211, 47, 47, 0.2);
  background: #b71c1c;
}

.study-actions {
  display: flex;
  justify-content: flex-start;
}

.study-list {
  display: grid;
  gap: 24px;
}

.study-section {
  display: grid;
  gap: 14px;
}

.study-section-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.study-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fffdfa;
}

.confusion-button {
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  background: #333333;
  color: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.confusion-button:hover {
  background: #111111;
}

.study-flag-wrap {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 4px;
}

.study-flag {
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
  display: block;
}

.study-text {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: center;
}

.study-korean {
  color: #0057ff;
  font-weight: 700;
  font-size: 1.18rem;
}

.confusion-tips {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #fffdfa;
}

.confusion-tips p {
  margin: 0;
  line-height: 1.65;
  font-weight: 700;
}

.confusion-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.confusion-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.confusion-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.confusion-modal-header {
  justify-content: space-between;
}

.confusion-close-button {
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  background: #111111;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.confusion-close-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  background: #000000;
}

.confusion-overview-list {
  display: grid;
  gap: 22px;
}

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

.confusion-group-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
}

.hidden {
  display: none;
}

.result-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.result-header p:last-child {
  margin: 0;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.stat-box {
  padding: 12px;
  border-radius: 12px;
  background: #fffdfa;
  border: 1px solid var(--line);
}

.stat-box strong {
  display: block;
  font-size: 1.25rem;
  margin-top: 4px;
}

.result-item {
  padding: 18px 20px;
  border-radius: 18px;
  background: #fffdfa;
  border: 1px solid var(--line);
  position: relative;
}

.result-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.result-item-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.result-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.correct-mark {
  color: #2e7d32;
}

.wrong-mark {
  color: #c62828;
}

.result-flag-wrap {
  flex: 0 0 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  text-align: center;
}

.result-flag {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  display: block;
}

.result-flag-name {
  margin: 10px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
  word-break: keep-all;
  white-space: normal;
  line-height: 1.35;
}

.result-confusion-button {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 6px 4px;
  background: #d50000;
  color: #ffffff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.result-confusion-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(213, 0, 0, 0.18);
  background: #b40000;
}

.result-item + .result-item {
  margin-top: 0;
}

.result-item.correct-item {
  border-left: 6px solid var(--right);
}

.result-item.wrong-item {
  border-left: 6px solid var(--wrong);
}

.result-item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.result-item p {
  margin: 6px 0;
}

.selected-answer {
  font-weight: 700;
}

.selected-answer,
.correct-answer {
  font-size: clamp(0.68rem, 1.15vw, 0.76rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
  max-width: 100%;
}

.selected-answer.result-answer-wrap,
.correct-answer.result-answer-wrap {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.correct-answer {
  color: #2e7d32;
  font-weight: 700;
}

.selected-correct {
  color: #2e7d32;
}

.selected-wrong {
  color: #c62828;
}

.result-mark-inline {
  font-weight: 800;
}

.retry-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-weight: 700;
  cursor: pointer;
}

.retry-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #dfc3a2;
}

body.print-selected-mode #quiz-page,
body.print-selected-mode #study-page,
body.print-selected-mode header,
body.print-selected-mode .quiz-hub-back,
body.print-selected-mode .result-header .eyebrow,
body.print-selected-mode .result-stats,
body.print-selected-mode .result-tools,
body.print-selected-mode .result-actions,
body.print-selected-mode .result-confusion-button,
body.print-selected-mode .retry-check {
  display: none !important;
}

body.print-selected-mode .page-shell,
body.print-selected-mode .result-page,
body.print-selected-mode .result-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #ffffff;
  box-shadow: none;
  border: 0;
}

body.print-selected-mode .result-header,
body.print-selected-mode .result-list {
  margin: 0;
  padding: 0;
}

body.print-selected-mode .result-item.print-hidden {
  display: none !important;
}

@media print {
  header,
  .logo,
  .site-nav,
  .site-search,
  .quiz-hub-back,
  .result-actions,
  .result-actions-bottom,
  .result-tools,
  .retry-check,
  .result-confusion-button,
  .confusion-button {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  body.print-selected-mode header {
    display: none !important;
  }

  .result-confusion-button,
  .confusion-button {
    display: none !important;
  }

  body.print-selected-mode #result-page {
    display: block !important;
    padding: 0;
  }

  body.print-selected-mode .result-summary {
    margin-bottom: 18px;
  }

  body.print-selected-mode .result-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.print-selected-mode .result-item {
    padding: 8px 9px;
    border-radius: 10px;
  }

  body.print-selected-mode .result-item-body {
    gap: 6px;
  }

  body.print-selected-mode .result-text {
    min-width: 0;
  }

  body.print-selected-mode .result-item h3 {
    margin-bottom: 4px;
    font-size: 8pt;
  }

  body.print-selected-mode .result-item p {
    margin: 3px 0;
  }

  body.print-selected-mode .selected-answer,
  body.print-selected-mode .correct-answer {
    max-width: 100%;
    font-size: clamp(6.5pt, 1.3vw, 8pt);
    line-height: 1.2;
    letter-spacing: -0.025em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  body.print-selected-mode .result-flag-wrap {
    flex: 0 0 78px;
    padding: 4px;
    border-radius: 8px;
  }

  body.print-selected-mode .result-flag {
    max-height: 54px;
  }

  body.print-selected-mode .result-flag-name {
    margin-top: 4px;
    font-size: 7pt;
    line-height: 1.15;
  }
}

@media (max-width: 920px) {
  .quiz-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-top: 26px;
  }

  .quiz-panel,
  .result-panel,
  .side-card {
    border-radius: 16px;
  }

  .quiz-panel {
    padding: 0;
  }

  .flag-card {
    padding: 0;
  }

  .question-stage {
    padding: 12px;
  }

  .question-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .status-row {
    grid-template-columns: 80px minmax(112px, 1fr) 80px;
    gap: 6px;
  }

  .status-row > div {
    min-height: 70px;
    padding: 8px;
  }

  .status-value {
    font-size: 1.1rem;
  }

  .result-item-body {
    flex-direction: column;
    align-items: stretch;
  }

  .result-list {
    grid-template-columns: 1fr;
  }

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

  .stat-box {
    padding: 8px 5px;
  }

  .stat-box span {
    font-size: 0.72rem;
  }

  .stat-box strong {
    font-size: 1rem;
  }

  .result-flag-wrap {
    flex-basis: auto;
  }
}
