:root {
  color-scheme: light;
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #4c5564;
  --line: #111111;
  --soft-line: #d8e0ea;
  --accent: #2d73d6;
  --accent-soft: #eaf4ff;
  --mint: #008a69;
  --wrong: #d92d20;
  --shadow: 4px 5px 0 rgba(17, 17, 17, 0.12);
  --radius: 16px;
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-serif: "Noto Serif KR", "AppleMyungjo", "Batang", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  line-break: loose;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle, rgba(17, 17, 17, 0.1) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(45, 115, 214, 0.08) 0 1px, transparent 1px);
  background-position: 18px 31px, 72px 88px;
  background-size: 132px 156px, 182px 140px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

#app {
  overflow-x: hidden;
}

.app-shell {
  width: min(430px, calc(100% - 16px));
  margin: 0 auto;
  padding: 14px 0 52px;
}

.hero {
  display: block;
  width: min(390px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
}

.hero-copy {
  padding: 8px 0 0;
}

.eyebrow,
.chip,
.loading-steps span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border: 2px solid var(--accent);
  border-radius: 999px 760px 980px 820px / 820px 960px 760px 900px;
  padding: 5px 10px;
  color: var(--accent);
  background: #fff;
  box-shadow: 1px 1px 0 rgba(45, 115, 214, 0.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
.panel-title,
.result-heading,
.type-line,
.visual-question {
  font-weight: 850;
  letter-spacing: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(34px, 10vw, 48px);
  line-height: 1.1;
}

.lead {
  margin-top: 22px;
  color: #243044;
  font-size: 17px;
  font-weight: 520;
  line-height: 1.6;
}

.hero-question {
  margin-top: 18px;
  color: #253246;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.58;
}

.subcopy,
.helper {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.65;
}

.friend-intro {
  margin-bottom: 2px;
}

.hero-actions,
.action-row,
.result-actions,
.share-actions,
.friend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 32px;
  width: 100%;
}

.name-action {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 50px;
  border: 2px solid var(--line);
  border-radius: 17px 12px 19px 14px / 14px 20px 13px 17px;
  padding: 0 17px;
  color: var(--ink);
  background: #fff;
  box-shadow: 2px 3px 0 rgba(17, 17, 17, 0.12);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 90ms ease, box-shadow 90ms ease, background 90ms ease;
  -webkit-tap-highlight-color: transparent;
}

.button:hover:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 2px 0 rgba(17, 17, 17, 0.18);
}

.button.primary {
  color: var(--ink);
  background:
    repeating-linear-gradient(
      -8deg,
      rgba(45, 115, 214, 0.24) 0 4px,
      rgba(45, 115, 214, 0.08) 4px 7px
    ),
    #fff;
}

.button.primary:hover:not(:disabled) {
  background:
    repeating-linear-gradient(
      -8deg,
      rgba(45, 115, 214, 0.32) 0 4px,
      rgba(45, 115, 214, 0.12) 4px 7px
    ),
    #fff;
}

.button.ghost {
  background: #fff;
}

.button.text {
  min-height: 32px;
  border: 0;
  border-radius: 0;
  padding: 4px 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
}

.button.text:hover:not(:disabled) {
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

.hero-actions .button,
.action-row .button {
  max-width: 100%;
  width: 100%;
}

.hero-actions .button {
  width: 100%;
}

.info-strip,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-strip {
  margin-top: 24px;
}

.info-strip .chip {
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
  padding-right: 6px;
  padding-left: 6px;
  white-space: nowrap;
}

.chip {
  border-color: #c9d8ec;
  color: #3f4d60;
  font-size: 12px;
  font-weight: 800;
}

.hero-visual,
.name-panel,
.quiz-panel,
.loading-panel,
.friend-panel {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 18px 13px 22px 15px / 16px 23px 14px 19px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-visual {
  width: 100%;
  margin-top: 34px;
  padding: 14px;
  overflow: hidden;
  transform: rotate(0.25deg);
}

.tablet-frame {
  display: grid;
  gap: 14px;
  min-height: 398px;
  border: 2px solid var(--line);
  border-radius: 18px 13px 21px 15px / 15px 22px 14px 20px;
  padding: 14px;
  background: #fff;
  transform: rotate(-0.2deg);
}

.visual-topbar,
.exam-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.visual-topbar {
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 12px;
  color: #4a5870;
  font-size: 13px;
  font-weight: 850;
}

.visual-paper {
  border: 2px solid var(--line);
  border-radius: 17px 12px 19px 14px / 14px 20px 13px 17px;
  padding: 16px;
  background: #fff;
  transform: rotate(0.15deg);
}

.visual-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.visual-status span {
  border: 1.5px solid #cfe0f8;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--accent);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.visual-title {
  color: #243044;
  font-size: 13px;
  font-weight: 850;
}

.visual-question {
  margin-top: 17px;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.42;
}

.visual-lines,
.omr-list {
  display: grid;
  gap: 9px;
}

.visual-lines {
  margin-top: 22px;
}

.visual-lines span,
.omr-line,
.loading-sheet span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.18) 0 3px, transparent 3px 5px),
    rgba(17, 17, 17, 0.08);
}

.visual-lines span:nth-child(2) {
  width: 82%;
}

.visual-lines span:nth-child(3) {
  width: 64%;
}

.omr-list {
  margin-top: 28px;
}

.omr-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
}

.omr-bubble {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50% 43% 56% 45% / 44% 57% 42% 54%;
  background: #fff;
  font-size: 13px;
  font-weight: 850;
}

.omr-item.active .omr-bubble {
  background:
    repeating-linear-gradient(-18deg, rgba(45, 115, 214, 0.42) 0 3px, rgba(45, 115, 214, 0.14) 3px 6px),
    #fff;
}

.name-panel,
.quiz-panel,
.loading-panel,
.friend-panel {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 18px;
  animation: screen-in 170ms ease-out both;
}

.friend-panel {
  width: min(100%, 600px);
}

.name-panel::before,
.quiz-panel::before,
.loading-panel::before,
.friend-panel::before {
  position: absolute;
  inset: 7px 8px auto auto;
  width: 46px;
  height: 20px;
  content: "";
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  transform: rotate(3deg);
  opacity: 0.35;
  pointer-events: none;
}

.panel-brand-row,
.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-brand-row {
  margin-bottom: 16px;
}

.panel-header {
  margin-bottom: 14px;
}

.panel-title {
  margin-top: 14px;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.16;
}

.field {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.field label {
  font-weight: 850;
}

.field input[type="text"] {
  width: 100%;
  min-height: 54px;
  border: 2px solid var(--line);
  border-radius: 13px 18px 12px 17px / 16px 12px 18px 13px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 2px 2px 0 rgba(17, 17, 17, 0.08);
  font-size: 17px;
}

.field input[type="text"]:focus {
  outline: 3px solid rgba(45, 115, 214, 0.16);
}

.check-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  color: #2f3948;
  line-height: 1.5;
}

.check-line input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.progress-wrap {
  display: grid;
  gap: 9px;
  margin: 18px 0 24px;
}

.progress-meta {
  display: flex;
  justify-content: flex-end;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.progress-track {
  height: 13px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 12px 8px 10px 7px / 9px 12px 8px 11px;
  background: #fff;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(-16deg, rgba(255, 255, 255, 0.34) 0 3px, transparent 3px 6px),
    var(--accent);
  transition: width 180ms ease;
}

.question-stem {
  margin-top: 22px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.question-stem-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.question-index,
.question-chapter {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.question-chapter {
  color: var(--ink);
}

.question-illustration {
  position: relative;
  height: clamp(330px, 88vw, 390px);
  margin: 8px 0 16px;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background: #fff;
}

.question-illustration::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(
      ellipse at 50% 74%,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.92) 28%,
      rgba(255, 255, 255, 0.62) 47%,
      rgba(255, 255, 255, 0) 72%
    ),
    radial-gradient(
      ellipse at 50% 100%,
      #fff 0%,
      rgba(255, 255, 255, 0.96) 36%,
      rgba(255, 255, 255, 0.28) 70%,
      rgba(255, 255, 255, 0) 100%
    );
  pointer-events: none;
  opacity: 0;
  animation: scene-gradient-in 720ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.question-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--image-y, 58%);
  transform: scale(1.04);
  transform-origin: center center;
}

.scenario-text {
  color: #171717;
  font-size: 15.5px;
  font-weight: 560;
  line-height: 1.68;
}

.scenario-overlay {
  position: absolute;
  right: 10px;
  bottom: 28px;
  left: 10px;
  z-index: 1;
  border-radius: 24px;
  padding: 14px 10px 10px;
  color: #0f1115;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 28px 24px rgba(255, 255, 255, 0.78),
    0 12px 30px rgba(255, 255, 255, 0.48);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.62;
  text-align: center;
  text-shadow:
    0 1px 0 #fff,
    0 0 10px #fff,
    0 0 22px rgba(255, 255, 255, 0.95);
  opacity: 0;
  transform: translateY(8px);
  animation: scene-copy-in 620ms 360ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.scenario-text p + p {
  margin-top: 9px;
}

.question-prompt {
  position: relative;
  margin-top: 17px;
  padding-top: 15px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.question-prompt::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  background-image: repeating-linear-gradient(90deg, var(--line) 0 9px, transparent 9px 19px);
  opacity: 0.22;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.choice {
  display: grid;
  width: 100%;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  border: 2px solid rgba(17, 17, 17, 0.82);
  border-radius: 18px 11px 17px 12px / 13px 19px 12px 16px;
  padding: 10px 13px 10px 10px;
  color: var(--ink);
  background: #fff;
  box-shadow: 1px 2px 0 rgba(17, 17, 17, 0.08);
  text-align: left;
  transition: transform 90ms ease, background 90ms ease, box-shadow 90ms ease;
  -webkit-tap-highlight-color: transparent;
}

.choice:nth-child(2n) {
  border-radius: 12px 19px 14px 17px / 18px 12px 19px 13px;
  transform: rotate(0.18deg);
}

.choice:nth-child(2n + 1) {
  transform: rotate(-0.12deg);
}

.choice:hover:not(:disabled) {
  transform: translate(1px, 1px) rotate(-0.2deg);
  box-shadow: 1px 2px 0 rgba(17, 17, 17, 0.14);
}

.choice.selected {
  background:
    repeating-linear-gradient(-10deg, rgba(45, 115, 214, 0.22) 0 5px, rgba(45, 115, 214, 0.08) 5px 8px),
    #fff;
}

.choice.correct {
  background:
    repeating-linear-gradient(-10deg, rgba(0, 138, 105, 0.2) 0 5px, rgba(0, 138, 105, 0.07) 5px 8px),
    #fff;
}

.choice.wrong {
  background:
    repeating-linear-gradient(-10deg, rgba(217, 45, 32, 0.16) 0 5px, rgba(217, 45, 32, 0.05) 5px 8px),
    #fff;
}

.choice-symbol {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50% 46% 53% 48% / 48% 54% 45% 52%;
  background: #fff;
  box-shadow: 1px 1px 0 rgba(17, 17, 17, 0.14);
  font-size: 14px;
  font-weight: 800;
}

.choice.selected .choice-symbol,
.choice.correct .choice-symbol {
  background:
    repeating-linear-gradient(-18deg, rgba(45, 115, 214, 0.42) 0 3px, rgba(45, 115, 214, 0.14) 3px 6px),
    #fff;
}

.choice.correct .choice-symbol {
  background:
    repeating-linear-gradient(-18deg, rgba(0, 138, 105, 0.42) 0 3px, rgba(0, 138, 105, 0.14) 3px 6px),
    #fff;
}

.choice.wrong .choice-symbol {
  background:
    repeating-linear-gradient(-18deg, rgba(217, 45, 32, 0.34) 0 3px, rgba(217, 45, 32, 0.1) 3px 6px),
    #fff;
}

.choice-text,
.choice-copy {
  min-width: 0;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
}

.quiz-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.quiz-nav .button {
  width: 100%;
  min-width: 0;
}

.loading-panel {
  text-align: center;
}

.loading-graphic {
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.loading-sheet {
  position: relative;
  display: grid;
  gap: 10px;
  width: 148px;
  height: 112px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 18px 13px 22px 15px / 16px 23px 14px 19px;
  padding: 22px 18px;
  background: #fff;
  box-shadow: 2px 3px 0 rgba(17, 17, 17, 0.1);
}

.loading-sheet span:nth-child(2) {
  width: 78%;
}

.loading-sheet span:nth-child(3) {
  width: 54%;
}

.loading-sheet i {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  animation: scan-line 1350ms ease-in-out infinite;
}

.loading-copy {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 750;
  animation: loading-copy-in 260ms ease-out both;
}

.loading-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.loading-steps span.active {
  background:
    repeating-linear-gradient(-8deg, rgba(45, 115, 214, 0.16) 0 4px, rgba(45, 115, 214, 0.04) 4px 7px),
    #fff;
  transform: translateY(-1px);
  animation: loading-step-pop 220ms ease-out both;
}

.result-layout {
  width: min(100%, 430px);
  margin: 0 auto;
  animation: screen-in 170ms ease-out both;
}

.result-top {
  width: min(400px, 100%);
  margin: 0 auto 14px;
  padding: 0 4px;
}

.result-heading {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.34;
}

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

.result-top .chip,
.friend-panel .chip {
  min-height: 28px;
  border-width: 1.5px;
  padding: 4px 9px;
  font-size: 12px;
}

.paper-area {
  border-radius: 0;
  padding: 14px 0 30px;
  background: transparent;
}

.exam-paper {
  width: min(400px, 100%);
  margin: 0 auto;
  border: 2px solid var(--line);
  border-radius: 18px 13px 22px 15px / 16px 23px 14px 19px;
  color: #1a1a1a;
  background: #fff;
  box-shadow: var(--shadow);
}

.exam-head {
  display: none;
}

.exam-body {
  padding: 24px;
}

.exam-question h2 {
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.passage-box {
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  padding: 16px;
  background: #f6f9fb;
}

.passage-label {
  display: none;
}

.passage {
  color: #1a1a1a;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.passage p + p {
  margin-top: 12px;
}

.passage.poem {
  line-height: 1.5;
}

.exam-choices {
  margin-top: 20px;
}

.exam-paper .choice-list {
  gap: 7px;
  margin-top: 12px;
}

.exam-paper .choice {
  grid-template-columns: 30px 1fr;
  min-height: 48px;
  border: 1px solid #d8d8d8;
  border-radius: 9px;
  padding: 8px 10px 8px 8px;
  background: #fff;
  box-shadow: none;
  transform: none;
}

.exam-paper .choice:hover:not(:disabled) {
  border-color: #8dbdf5;
  background: #f5f9ff;
  box-shadow: none;
  transform: none;
}

.exam-paper .choice.selected {
  border-color: var(--accent);
  background: #eef5ff;
}

.exam-paper .choice.correct {
  border-color: var(--mint);
  background: #ecf8f3;
}

.exam-paper .choice.wrong {
  border-color: var(--wrong);
  background: #fff0ee;
}

.exam-paper .choice-symbol {
  width: 26px;
  height: 26px;
  border: 1px solid #c9c9c9;
  border-radius: 50%;
  box-shadow: none;
  color: #1a1a1a;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 750;
}

.exam-paper .choice.selected .choice-symbol,
.exam-paper .choice.correct .choice-symbol {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.exam-paper .choice.correct .choice-symbol {
  border-color: var(--mint);
  background: var(--mint);
}

.exam-paper .choice.wrong .choice-symbol {
  border-color: var(--wrong);
  color: #fff;
  background: var(--wrong);
}

.exam-paper .choice-text,
.exam-paper .choice-copy {
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.52;
}

.exam-submit-bar {
  margin-top: 20px;
}

.exam-submit-bar .button {
  width: 100%;
}

.answer-panel,
.share-panel,
.orzo-panel,
.friend-result {
  width: min(400px, 100%);
  margin: 14px auto 0;
  border: 2px solid var(--line);
  border-radius: 18px 13px 22px 15px / 16px 23px 14px 19px;
  padding: 18px;
  background: #fff;
  box-shadow: 2px 3px 0 rgba(17, 17, 17, 0.08);
}

.answer-panel,
.friend-result.correct {
  background:
    repeating-linear-gradient(-10deg, rgba(0, 138, 105, 0.1) 0 5px, transparent 5px 9px),
    #fff;
}

.friend-result.wrong {
  background:
    repeating-linear-gradient(-10deg, rgba(217, 45, 32, 0.08) 0 5px, transparent 5px 9px),
    #fff;
}

.answer-line {
  color: var(--mint);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

.answer-line.is-wrong {
  color: var(--wrong);
}

.answer-reveal-line {
  margin-top: 14px;
}

.type-line {
  margin-top: 9px;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.3;
}

.explanation {
  margin-top: 10px;
  color: #2f3e50;
  font-size: 15px;
  line-height: 1.65;
}

.relation-stack {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.relation-card {
  border: 1.5px solid rgba(0, 138, 105, 0.28);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.relation-card.relation-mismatch {
  border-color: rgba(217, 45, 32, 0.22);
}

.relation-label {
  display: block;
  color: var(--mint);
  font-size: 12px;
  font-weight: 850;
}

.relation-mismatch .relation-label {
  color: var(--wrong);
}

.relation-card strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.relation-card p {
  margin-top: 7px;
  color: #344255;
  font-size: 14px;
  line-height: 1.55;
}

.share-panel h3,
.orzo-panel h3 {
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

.share-panel p,
.orzo-panel p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.share-actions,
.friend-actions {
  margin-top: 14px;
}

.share-actions .button,
.friend-actions .button,
.orzo-actions .button {
  width: 100%;
}

.orzo-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.friend-exam-wrap {
  margin-top: 22px;
}

.result-footer-actions {
  display: flex;
  justify-content: center;
  width: min(400px, 100%);
  margin: 12px auto 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  line-height: 1;
  text-decoration: none;
}

.brand-logo,
.brand-symbol-logo {
  display: block;
  width: auto;
  height: 24px;
  object-fit: contain;
}

.app-footer {
  display: flex;
  justify-content: center;
  margin: 18px auto 0;
  opacity: 0.72;
}

.app-footer .brand-logo {
  height: 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(360px, calc(100% - 36px));
  border: 2px solid var(--line);
  border-radius: 15px 10px 17px 12px / 13px 18px 12px 16px;
  padding: 13px 15px;
  color: var(--ink);
  background: #fff;
  box-shadow: 4px 5px 0 rgba(17, 17, 17, 0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes scan-line {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }
  18%,
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(112px);
  }
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scene-gradient-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scene-copy-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loading-copy-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loading-step-pop {
  from {
    transform: translateY(0) scale(0.96);
  }
  to {
    transform: translateY(-1px) scale(1);
  }
}

@media (min-width: 861px) {
  .app-shell {
    width: min(1080px, calc(100% - 40px));
    padding-top: 34px;
  }

  .hero {
    display: grid;
    width: auto;
    margin: 0;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
    gap: clamp(28px, 6vw, 64px);
    align-items: start;
    padding: 0;
  }

  .hero-copy {
    padding-top: clamp(52px, 7vh, 76px);
  }

  h1 {
    font-size: clamp(42px, 5vw, 58px);
  }

  .hero-actions .button {
    width: auto;
  }

  .hero-visual {
    width: auto;
    margin-top: 0;
  }

  .name-panel,
  .quiz-panel,
  .loading-panel {
    width: min(640px, 100%);
  }

  .friend-panel {
    width: min(720px, 100%);
  }
}

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

  .exam-head {
    font-size: 11px;
  }

  .passage {
    font-size: 13px;
    line-height: 1.5;
  }

  .exam-paper .choice-text,
  .exam-paper .choice-copy {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .app-shell {
    width: min(100% - 12px, 430px);
    padding-top: 10px;
  }

  .name-panel,
  .quiz-panel,
  .loading-panel,
  .friend-panel {
    padding: 15px;
  }

  .quiz-nav {
    grid-template-columns: 1fr;
  }

  .exam-head {
    flex-direction: column;
    gap: 4px;
  }
}

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