/* 王可樂日語前測｜Visual System
   01 tokens → 02 layout → 03 start → 04 quiz → 05 result → 06 responsive
*/

:root {
  color-scheme: light;
  --brand-950: #07385e;
  --brand-900: #0b4778;
  --brand-800: #0d568e;
  --brand-700: #1b70ad;
  --brand-500: #4b9bd1;
  --brand-100: #eaf4fb;
  --cream: #fff8ec;
  --sakura: #fff1eb;
  --sakura-strong: #ed723c;
  --cola-yellow: #ffb600;
  --cola-brown: #5c3327;
  --matcha: #176c45;
  --amber: #b96d00;
  --ink: #172b3a;
  --text: #294052;
  --muted: #687b8c;
  --line: #d8e3eb;
  --paper: rgba(255, 255, 255, .92);
  --paper-solid: #ffffff;
  --soft: #f4f8fb;
  --shadow-lg: 0 26px 80px rgba(22, 59, 92, .18);
  --shadow-md: 0 16px 42px rgba(22, 59, 92, .14);
  --shadow-sm: 0 10px 24px rgba(22, 59, 92, .10);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 10%, rgba(237, 114, 60, .17), transparent 24rem),
    radial-gradient(circle at 94% 4%, rgba(255, 182, 0, .20), transparent 22rem),
    radial-gradient(circle at 72% 84%, rgba(13, 79, 134, .16), transparent 28rem),
    linear-gradient(135deg, #f3f8fc 0%, #fffaf2 58%, #f9f5f2 100%);
  font-family: "Noto Sans TC", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(13, 79, 134, .12) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 74%);
}

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .78;
  z-index: -1;
}
.ambient-a {
  width: 280px;
  height: 280px;
  left: -84px;
  top: 58px;
  background: radial-gradient(circle, rgba(255, 176, 133, .45), transparent 70%);
}
.ambient-b {
  width: 360px;
  height: 360px;
  right: -118px;
  bottom: 70px;
  background: radial-gradient(circle, rgba(79, 155, 216, .32), transparent 70%);
}

.app {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 42px;
}

.qaModeBanner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 14px;
  border: 1px solid rgba(185, 109, 0, .24);
  border-radius: 999px;
  padding: 9px 16px;
  color: #784700;
  background: #fff5d6;
  box-shadow: var(--shadow-sm);
  font-size: .86rem;
}
.qaModeBanner strong { color: #9a5200; }

.card {
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 34px;
  backdrop-filter: blur(18px);
}

.hidden { display: none !important; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-700);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.microcopy {
  margin: 0;
  color: rgba(31, 78, 120, .72);
  font-size: .9rem;
  font-weight: 700;
}
h1, h2, h3 {
  margin: 0;
  color: var(--brand-900);
  letter-spacing: -.035em;
}
h1 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: .98;
}
h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.18;
}
h3 {
  font-size: 1.18rem;
  line-height: 1.35;
}
.lead {
  color: var(--muted);
  line-height: 1.8;
}

/* Start view */
.startShell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .78fr);
  align-items: stretch;
  gap: 22px;
}
.brandPanel {
  position: relative;
  min-width: 0;
  min-height: 760px;
  overflow: hidden;
  border-radius: 42px;
  padding: 44px;
  color: var(--brand-900);
  background:
    linear-gradient(140deg, rgba(255,255,255,.82), rgba(255,255,255,.42)),
    linear-gradient(135deg, rgba(255,240,239,.88), rgba(234,245,255,.90));
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--shadow-lg);
}
.brandPanel::after {
  content: "日本語";
  position: absolute;
  right: -22px;
  top: 46px;
  color: rgba(31, 78, 120, .06);
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(5rem, 12vw, 10.4rem);
  font-weight: 900;
  writing-mode: vertical-rl;
  letter-spacing: .05em;
}
.brandTop {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 58px;
}
.brandMark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--sakura-strong), #ffb085);
  box-shadow: 0 12px 28px rgba(236, 111, 102, .25);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
}
.brandPanel h1,
.brandPanel .lead,
.heroBadges,
.heroVisual {
  position: relative;
  z-index: 1;
}
.brandPanel .lead {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: 1.08rem;
}
.heroBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.heroBadges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(31, 78, 120, .12);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--brand-800);
  background: rgba(255,255,255,.70);
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}
.heroBadges span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sakura-strong);
}
.heroVisual {
  margin: 38px auto 0;
  max-width: 620px;
}
.heroVisual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 42px rgba(22, 59, 92, .12));
}

.entryPanel {
  min-width: 0;
  align-self: stretch;
  padding: 30px;
}
.panelHeader {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.panelHeader .lead { margin: 12px 0 0; }
.specGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 22px;
}
.specGrid div {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 10px;
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--soft));
}
.specGrid strong {
  display: block;
  color: var(--brand-800);
  font-size: 1.55rem;
  line-height: 1;
}
.specGrid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 800;
}
.attemptPolicyAlert {
  display: grid;
  gap: 5px;
  margin: -8px 0 18px;
  border: 1px solid rgba(192, 102, 0, .2);
  border-left: 5px solid var(--cola-yellow);
  border-radius: 16px;
  padding: 13px 15px;
  color: var(--ink);
  background: linear-gradient(135deg, #fffaf0, #fff);
  line-height: 1.65;
}
.attemptPolicyAlert strong {
  color: #9a5200;
  font-size: .88rem;
}
.attemptPolicyAlert span {
  font-size: .88rem;
  font-weight: 800;
}

.form {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}
.inputHelp {
  margin-top: -3px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.55;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
input:focus, textarea:focus {
  border-color: var(--brand-700);
  box-shadow: 0 0 0 4px rgba(79, 155, 216, .16);
}
.purchaseStatusGroup {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.purchaseStatusGroup legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
}
.purchaseStatusOptions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.purchaseStatusOptions label {
  position: relative;
  display: block;
  cursor: pointer;
}
.purchaseStatusOptions input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.purchaseStatusOptions span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: center;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.purchaseStatusOptions input:checked + span {
  border-color: var(--brand-700);
  color: var(--brand-800);
  background: var(--soft);
  box-shadow: 0 0 0 3px rgba(79, 155, 216, .13);
}
.purchaseStatusOptions input:focus-visible + span {
  outline: 3px solid rgba(79, 155, 216, .28);
  outline-offset: 2px;
}
.learningBackgroundPanel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, var(--brand-100));
}
.learningBackgroundHeading {
  display: grid;
  gap: 5px;
}
.learningBackgroundHeading .stepLabel {
  margin: 0;
}
.learningBackgroundHeading h3 {
  margin: 0;
  color: var(--brand-900);
  font-size: 1.08rem;
  line-height: 1.45;
}
.learningBackgroundHeading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.6;
}
.backgroundFieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.backgroundFieldset legend {
  color: var(--ink);
  font-weight: 900;
}
.requiredBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 5px;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--brand-800);
  background: rgba(79, 155, 216, .12);
  font-size: .72rem;
  font-weight: 900;
  vertical-align: middle;
}
.fieldHelp {
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.experienceOptions,
.channelOptions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.experienceOptions label,
.channelOptions label {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}
.experienceOptions input,
.channelOptions input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.experienceOptions span,
.channelOptions span {
  display: flex;
  align-items: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 11px 12px 11px 42px;
  color: var(--ink);
  background: #fff;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.35;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}
.experienceOptions span::before,
.channelOptions span::before {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  border: 2px solid #aabccc;
  background: #fff;
  content: "";
}
.experienceOptions span::before {
  border-radius: 50%;
}
.channelOptions span::before {
  border-radius: 5px;
}
.experienceOptions input:checked + span,
.channelOptions input:checked + span {
  border-color: var(--brand-700);
  color: var(--brand-900);
  background: #f1f8fd;
  box-shadow: 0 0 0 3px rgba(79, 155, 216, .12);
}
.experienceOptions input:checked + span::before {
  border: 5px solid var(--brand-700);
}
.channelOptions input:checked + span::before {
  border-color: var(--brand-700);
  color: #fff;
  background: var(--brand-700);
  content: "✓";
  font-size: 13px;
  font-weight: 900;
  line-height: 15px;
  text-align: center;
}
.experienceOptions input:focus-visible + span,
.channelOptions input:focus-visible + span {
  outline: 3px solid rgba(79, 155, 216, .28);
  outline-offset: 2px;
}
.channelOptions small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}
.fieldError {
  margin: 9px 0 0;
  border-radius: 12px;
  padding: 9px 11px;
  color: #9f1239;
  background: #fff1f2;
  font-size: .84rem;
  font-weight: 900;
}
.learningChannelsGroup.hasError .channelOptions {
  border-radius: 17px;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, .13);
}
.backgroundOther > span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}
.backgroundOther > small {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}
textarea { resize: vertical; }
.choiceGroup {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, var(--brand-100));
}
.choiceGroup legend {
  color: var(--brand-800);
  font-weight: 900;
  padding: 0 8px;
}
.choice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  line-height: 1.55;
}
.choice input {
  width: auto;
  margin-top: .28em;
  accent-color: var(--brand-800);
}
button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 900;
  color: var(--brand-800);
  background: #fff;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease;
}
button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
button:disabled { opacity: .45; cursor: not-allowed; }
.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
}
.cta {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  font-size: 1.02rem;
  box-shadow: 0 16px 30px rgba(31, 78, 120, .24);
}

/* Quiz view */
#quizView,
#resultView,
#confirmView,
#cancelView {
  max-width: 920px;
  margin: 0 auto;
}

.gateView h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  line-height: 1.08;
}
.gateAlertHeading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.gateAlertIcon {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(190, 24, 93, .18);
  border-radius: 18px;
  color: #a3132a;
  background: #fff0f2;
  box-shadow: 0 10px 24px rgba(180, 20, 46, .10);
  font-size: 1.55rem;
}
.gateAlertHeading .eyebrow {
  margin-bottom: 6px;
  color: #a3132a;
}
.oneShotWarning {
  margin: 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid rgba(190, 24, 93, .28);
  border-left: 8px solid #c51f3a;
  border-radius: 22px;
  padding: 20px 22px;
  color: #6f1021;
  background: linear-gradient(135deg, #fff0f3, #ffe6eb);
  box-shadow: 0 14px 34px rgba(180, 20, 46, .13);
}
.oneShotLock {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #9e1730;
  background: rgba(255, 255, 255, .78);
  font-size: 1.25rem;
}
.oneShotWarning strong {
  display: block;
  color: #a3132a;
  font-size: clamp(1.12rem, 2.8vw, 1.38rem);
  line-height: 1.45;
}
.oneShotWarning p {
  margin: 7px 0 0;
  color: #7d2736;
  font-weight: 750;
  line-height: 1.75;
}
.testRules {
  margin: 0 0 22px;
  border: 1px solid rgba(185, 109, 0, .24);
  border-radius: 22px;
  padding: 20px 22px;
  background: #fffdf8;
}
.testRules h2 {
  margin: 0 0 6px;
  color: #8c4e00;
  font-size: 1.15rem;
  letter-spacing: 0;
}
.testRulesHint {
  margin: 0 0 14px;
  color: #6f1021;
  font-weight: 850;
  line-height: 1.7;
}
.testRules ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #4f3b35;
  line-height: 1.72;
}
.testRules li {
  margin: 0;
}
.testRules li > label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid rgba(185, 109, 0, .16);
  border-radius: 14px;
  padding: 11px 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.testRules li > label:hover {
  border-color: rgba(185, 109, 0, .42);
  background: #fffaf0;
}
.testRules li > label:focus-within {
  border-color: #bd1f39;
  box-shadow: 0 0 0 3px rgba(189, 31, 57, .12);
}
.testRules .ruleConsent {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: .18em 0 0;
  accent-color: #bd1f39;
}
.testRules li > label > span {
  min-width: 0;
}
.testRules li b {
  color: #6f1021;
}
.confirmationSummary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.confirmationSummary > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--soft);
}
.confirmationSummary dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.confirmationSummary dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--brand-900);
  font-weight: 900;
}
.confirmationRouteNote {
  margin: 16px 0 0;
  border: 1px solid rgba(190, 24, 93, .16);
  border-radius: 16px;
  padding: 13px 15px;
  color: #7d2736;
  background: #fff4f6;
  font-weight: 800;
  line-height: 1.7;
}
.confirmationConsent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  border: 2px solid rgba(190, 24, 93, .30);
  border-radius: 18px;
  padding: 15px 16px;
  color: #65101f;
  background: #fff8f9;
  font-weight: 800;
  line-height: 1.65;
}
.confirmationConsent b { color: #a3132a; }
.confirmationConsent input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: .28em;
  accent-color: #bd1f39;
}
.confirmationProgress {
  margin: 12px 2px 0;
  color: #a3132a;
  font-weight: 900;
  line-height: 1.6;
}
.confirmationProgress[data-complete="true"] {
  color: #11714b;
}
.gateActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.textButton {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: transparent;
  box-shadow: none !important;
}
#confirmStartBtn.primary {
  min-width: 250px;
  background: linear-gradient(135deg, #a3132a, #d02d48);
  box-shadow: 0 14px 28px rgba(180, 20, 46, .22);
}
#confirmStartBtn.primary:disabled {
  color: #9b7c82;
  border-color: #eadde0;
  background: #eee8ea;
  box-shadow: none;
}
.wrongSelectionMenu {
  margin-top: 14px;
  border: 1px solid rgba(185, 109, 0, .22);
  border-radius: 20px;
  padding: 16px;
  background: #fffaf0;
}
.wrongSelectionMenu p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}
.wrongSelectionMenu > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dangerButton {
  color: #9f2e23;
  border-color: rgba(159, 46, 35, .25);
  background: #fff4f2;
}
.cancelNotice {
  margin: 24px 0 0;
  border-left: 7px solid var(--matcha);
  border-radius: 20px;
  padding: 18px 20px;
  color: var(--ink);
  background: #f0fbf5;
  line-height: 1.75;
}
.cancelNotice p { margin: 0 0 6px; }
.quizTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.timer {
  min-width: 94px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sakura-strong), var(--brand-800));
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(236, 111, 102, .20);
}
.timer.warning {
  background: linear-gradient(135deg, #f59e0b, var(--sakura-strong));
}
.timer.danger {
  background: linear-gradient(135deg, #b91c1c, var(--sakura-strong));
  box-shadow: 0 14px 30px rgba(185, 28, 28, .24);
}
.progressShell {
  height: 13px;
  background: #e8f0f7;
  border-radius: 999px;
  overflow: hidden;
  margin: 20px 0 28px;
}
.progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-800), #76a8cf, #ffc66d);
  border-radius: inherit;
  transition: width .24s var(--ease);
}
.question {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  padding: 22px 22px 22px 26px;
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff, #f6fbff);
  border: 1px solid var(--line);
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.7;
  white-space: pre-line;
}
.question::before {
  content: "Q";
  position: absolute;
  right: 20px;
  top: 12px;
  color: rgba(31, 78, 120, .08);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}
.questionPrompt {
  position: relative;
  z-index: 1;
  margin: 0 48px 12px 0;
  color: var(--brand-800);
  font-size: .96rem;
  font-weight: 900;
  line-height: 1.7;
}
.questionBody {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", "Noto Sans TC", sans-serif;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.85;
  white-space: pre-line;
}
.questionContext {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  border-left: 4px solid rgba(27, 112, 173, .28);
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .76);
  font-family: "Noto Sans JP", "Noto Sans TC", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.75;
  white-space: pre-line;
}
.questionContext.after { margin: 13px 0 0; }
.starFrame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55em;
  margin: 12px 0 4px;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 2.35;
}
.frameText { white-space: pre-wrap; }
.blankSlots { display: inline-flex; align-items: baseline; gap: .7em; }
.blankLineGroup { display: inline-flex; align-items: baseline; gap: .35em; max-width: 100%; }
.trailingPunctuation { white-space: nowrap; }
.blankSlot {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  width: 4.2em;
  min-height: 1.8em;
  border-bottom: 2px solid currentColor;
  line-height: 1.45;
}
.blankSlot.star { color: var(--sakura-strong); font-size: inherit; font-weight: 900; }
.submissionEmailFix {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}
.submissionEmailFix > label {
  color: var(--brand-900);
  font-weight: 900;
}
.submissionEmailFixRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.submissionEmailFixRow input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.submissionEmailFixRow input:focus {
  outline: 4px solid rgba(27, 112, 173, .16);
  border-color: var(--brand-700);
}
.submissionEmailFix .formError { margin: 0; }
.options {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.option {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 15px 18px;
  background: rgba(255,255,255,.92);
  cursor: pointer;
  line-height: 1.65;
  transition: transform .18s var(--ease), border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.option:hover,
.option:focus,
.option:focus-visible {
  border-color: rgba(47, 117, 181, .55);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  outline: none;
}
.option:focus-visible {
  box-shadow: 0 0 0 4px rgba(79, 155, 216, .16), var(--shadow-sm);
}
.option.selected {
  border-color: var(--brand-800);
  background: linear-gradient(135deg, #e8f2fb, #fff);
  box-shadow: inset 5px 0 0 var(--brand-800), var(--shadow-sm);
}
.hint {
  color: var(--muted);
  line-height: 1.65;
}
.nav, .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Result view */
.resultHero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.route {
  margin: 12px 0 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand-800);
}
.resultStamp {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  color: var(--sakura-strong);
  border: 3px solid currentColor;
  background: #fff7f5;
  font-weight: 900;
  line-height: 1.22;
  transform: rotate(7deg);
}
.identityNotice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0 0;
  border: 1px solid rgba(47, 117, 181, .16);
  border-radius: 22px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(234, 245, 255, .88), rgba(255, 255, 255, .92));
  box-shadow: var(--shadow-sm);
}
.identityNotice strong {
  color: var(--brand-800);
}
.identityNotice p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.identityActions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}
.identityActions button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--sakura-strong), #ff9b74);
}
.identityActions #resendResultBtn {
  color: var(--brand-800);
  border-color: rgba(47, 117, 181, .18);
  background: #fff;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.metric {
  background: linear-gradient(180deg, #fff, var(--brand-100));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(22, 59, 92, .06);
}
.metric strong {
  display: block;
  color: var(--brand-800);
  font-size: 1.35rem;
}
.radarPanel {
  margin: 24px 0;
  border: 1px solid rgba(214, 227, 238, .95);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 16%, rgba(255, 198, 109, .20), transparent 12rem),
    linear-gradient(180deg, #ffffff, #f5fbff);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.radarPanel h3 {
  margin: 0 0 8px;
  color: var(--brand-800);
}
.radarWrap {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 18px;
  align-items: center;
}
.radarSvg {
  width: 100%;
  max-width: 320px;
  height: auto;
  overflow: visible;
}
.radarLegend {
  display: grid;
  gap: 8px;
}
.radarLegend div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding: 0 0 7px;
}
.radarLegend strong { color: var(--brand-800); }
.oneShotNote {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}
.notice {
  border-left: 5px solid var(--amber);
  background: #fff7ed;
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.75;
}
.notice.ok {
  border-left-color: var(--matcha);
  background: #f0fdf4;
}
.compactNote {
  color: var(--muted);
  font-size: .95rem;
}
.weakness { margin: 24px 0; }
.weakness h3 {
  margin: 0 0 14px;
  color: var(--brand-800);
}
.weaknessItem {
  background: linear-gradient(180deg, #fff, #fff8f1);
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  line-height: 1.72;
  box-shadow: 0 8px 18px rgba(180, 83, 9, .06);
}
.weaknessItem strong { color: var(--brand-800); }
.answerReview {
  margin-top: 12px;
}
.answerReview summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid rgba(31, 78, 120, .16);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--brand-800);
  background: #f5fbff;
  font-weight: 900;
}
.answerReview summary::-webkit-details-marker { display: none; }
.answerReview summary::after {
  content: "＋";
  float: right;
  font-weight: 900;
}
.answerReview[open] summary::after { content: "－"; }
.answerReviewList {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.answerReviewItem {
  padding: 13px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(22, 59, 92, .06);
}
.answerReviewItem strong {
  display: block;
  color: var(--ink);
}
.answerReviewItem p { margin: 6px 0; }
.answerReviewItem .correctAnswer {
  color: var(--matcha);
  font-weight: 900;
}
.answerReviewItem .studentAnswer {
  color: #9b4d1f;
  font-weight: 800;
}

@media (max-width: 980px) {
  .startShell {
    grid-template-columns: 1fr;
  }
  .brandPanel {
    min-height: auto;
  }
  .heroVisual {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .app {
    width: min(100% - 20px, 920px);
    margin: 18px auto 28px;
  }
  .card,
  .entryPanel,
  .brandPanel {
    border-radius: 26px;
    padding: 22px;
  }
  .brandTop {
    margin-bottom: 30px;
    align-items: flex-start;
  }
  .brandMark {
    width: 50px;
    height: 50px;
    border-radius: 18px;
  }
  .brandPanel h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 10.6vw, 3.15rem);
    line-height: 1.06;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
  }
  .brandPanel .lead {
    margin-top: 18px;
    font-size: 1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .heroBadges {
    gap: 8px;
    margin-top: 22px;
  }
  .heroBadges span {
    padding: 9px 12px;
    font-size: .92rem;
  }
  .heroVisual {
    max-width: 100%;
    margin-top: 28px;
  }
  .brandPanel::after { opacity: .8; right: -34px; top: 120px; }
  .specGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quizTop { display: block; }
  .timer {
    display: inline-block;
    margin-top: 12px;
  }
  .question {
    font-size: 1.1rem;
    padding: 18px;
  }
  .option { padding: 14px; }
  .grid { grid-template-columns: 1fr; }
  .radarWrap { grid-template-columns: 1fr; }
  .radarSvg {
    max-width: 280px;
    margin: 0 auto;
  }
  .resultHero {
    display: block;
  }
  .resultStamp {
    width: 78px;
    height: 78px;
    margin: 16px 0 0 auto;
    font-size: .88rem;
  }
  .identityNotice {
    display: grid;
  }
  .identityActions {
    display: grid;
    justify-content: stretch;
  }
  .identityActions button {
    width: 100%;
  }
  .nav, .actions {
    justify-content: stretch;
    gap: 9px;
  }
  .nav button {
    flex: 1 1 calc(50% - 9px);
    min-height: 48px;
  }
  .nav #submitBtn { flex-basis: 100%; }
  .actions button {
    flex: 1 1 100%;
    min-height: 48px;
  }
  .weaknessItem,
  .answerReviewItem {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* 07 Official brand refresh — 王可樂日語 × 初級日文總整理 */
.startShell {
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, .78fr);
  gap: 26px;
}

.brandPanel {
  min-height: 840px;
  padding: 42px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 7%, rgba(255, 182, 0, .26), transparent 13rem),
    radial-gradient(circle at 8% 88%, rgba(75, 155, 209, .25), transparent 18rem),
    linear-gradient(145deg, #0d568e 0%, #0b4778 46%, #07385e 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 90px rgba(7, 56, 94, .30);
}
.brandPanel::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -98px;
  top: -108px;
  border-radius: 50%;
  border: 34px solid rgba(255, 182, 0, .18);
}
.brandPanel::after {
  content: "12";
  right: 26px;
  top: 120px;
  color: rgba(255, 255, 255, .045);
  font-family: "Noto Sans TC", sans-serif;
  font-size: clamp(9rem, 18vw, 14rem);
  line-height: .8;
  writing-mode: horizontal-tb;
  letter-spacing: -.1em;
}
.brandTop {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 46px;
}
.officialLogoWrap {
  display: grid;
  place-items: center;
  width: 150px;
  min-height: 84px;
  border-radius: 24px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .17);
}
.officialLogo {
  display: block;
  width: 122px;
  height: auto;
}
.brandEdition {
  text-align: right;
  color: rgba(255, 255, 255, .74);
}
.brandEdition p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.brandEdition span {
  display: block;
  margin-top: 6px;
  font-size: .83rem;
  font-weight: 700;
}
.brandCopy {
  position: relative;
  z-index: 1;
}
.courseTag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.courseTag span {
  width: 30px;
  height: 5px;
  border-radius: 99px;
  background: var(--cola-yellow);
}
.brandPanel h1 {
  max-width: 680px;
  color: #fff;
  font-size: clamp(3.2rem, 6.1vw, 5rem);
  line-height: 1.03;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.brandPanel h1 em {
  position: relative;
  color: #fff;
  font-style: normal;
  z-index: 0;
}
.brandPanel h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.02em;
  right: -.04em;
  bottom: .03em;
  height: .25em;
  border-radius: 999px;
  background: var(--cola-yellow);
  transform: rotate(-1deg);
}
.brandPanel .lead {
  max-width: 590px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.05rem;
  line-height: 1.85;
}
.heroBadges {
  margin-top: 24px;
}
.heroBadges span {
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .10);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.heroBadges span::before {
  background: var(--cola-yellow);
  box-shadow: 0 0 0 4px rgba(255, 182, 0, .15);
}
.courseKeyVisual {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 34px 0 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 30px;
  background: #0b4778;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .24);
}
.courseKeyVisual::after {
  content: "";
  position: absolute;
  inset: 52% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(4, 35, 59, .92));
  pointer-events: none;
}
.courseKeyVisual img {
  display: block;
  width: 100%;
  height: auto;
}
.courseKeyVisual figcaption {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: rgba(255, 255, 255, .78);
  font-size: .84rem;
  font-weight: 700;
}
.courseKeyVisual figcaption strong {
  color: var(--cola-yellow);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.22rem;
  letter-spacing: .04em;
}
.learningRoute {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 25px;
  padding: 18px 20px 20px;
  background: rgba(255, 255, 255, .07);
}
.learningRoute p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 17px;
  color: rgba(255, 255, 255, .64);
  font-size: .78rem;
  font-weight: 700;
}
.learningRoute p span {
  color: var(--cola-yellow);
  font-weight: 900;
  letter-spacing: .13em;
}
.learningRoute ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.learningRoute ol::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, .26);
}
.learningRoute li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
  line-height: 1.35;
}
.learningRoute li b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--brand-950);
  background: var(--cola-yellow);
  box-shadow: 0 0 0 6px rgba(255, 182, 0, .11);
}

.entryPanel {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(13, 79, 134, .13);
  border-top: 8px solid var(--cola-yellow);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(7, 56, 94, .17);
}
.entryPanel::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -92px;
  top: -78px;
  border-radius: 50%;
  background: rgba(237, 114, 60, .12);
}
.entryPanel > * {
  position: relative;
  z-index: 1;
}
.panelHeader {
  padding-bottom: 18px;
  border-bottom: 0;
}
.stepLabel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--cola-brown);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.stepLabel span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: var(--sakura-strong);
  letter-spacing: .12em;
}
.panelHeader h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
}
.panelHeader .lead {
  font-size: .94rem;
}
.specGrid {
  margin: 12px 0 24px;
}
.specGrid div {
  min-height: 76px;
  border-color: rgba(13, 79, 134, .12);
  background: linear-gradient(180deg, #fff, #f3f8fc);
}
.specGrid div:nth-child(2) {
  background: linear-gradient(180deg, #fffdf8, #fff7e5);
}
.specGrid strong {
  color: var(--brand-900);
}
.form {
  gap: 15px;
}
input, textarea {
  border-color: #cedbe5;
  border-radius: 14px;
  background: #fbfdff;
}
input:focus, textarea:focus {
  border-color: var(--brand-700);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 112, 173, .12);
}
.choiceGroup {
  display: grid;
  gap: 10px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.choiceGroup legend {
  margin-bottom: 4px;
  padding: 0;
  color: var(--ink);
}
.choice {
  grid-template-columns: 20px 48px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 76px;
  margin: 0;
  border: 1px solid #d6e1e9;
  border-radius: 18px;
  padding: 12px 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s var(--ease), background .18s ease;
}
.choice:hover {
  border-color: rgba(27, 112, 173, .45);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(7, 56, 94, .09);
}
.choice:has(input:checked) {
  border-color: var(--brand-700);
  background: linear-gradient(135deg, #edf7fe, #fff);
  box-shadow: inset 4px 0 0 var(--cola-yellow), 0 10px 24px rgba(7, 56, 94, .10);
}
.choice input {
  margin: 0;
  accent-color: var(--brand-800);
}
.choiceIcon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-700), var(--brand-950));
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(7, 56, 94, .18);
}
.choice:nth-of-type(2) .choiceIcon {
  color: var(--cola-brown);
  background: linear-gradient(145deg, #ffd76b, var(--cola-yellow));
  box-shadow: 0 8px 16px rgba(255, 182, 0, .19);
}
.choiceIcon.kana {
  background: linear-gradient(145deg, #f58a55, var(--sakura-strong));
  box-shadow: 0 8px 16px rgba(237, 114, 60, .20);
}
.choiceCopy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.choiceCopy strong {
  color: var(--ink);
  font-size: .96rem;
}
.choiceCopy small {
  color: var(--muted);
  font-size: .81rem;
  font-weight: 700;
  line-height: 1.5;
}
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-radius: 18px;
  padding: 8px 9px 8px 20px;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-950));
  box-shadow: 0 16px 34px rgba(7, 56, 94, .25);
}
.cta b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--brand-950);
  background: var(--cola-yellow);
  font-size: 1.15rem;
}
.privacyNotice {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--brand-900);
  background: #f8fbfd;
}
.privacyNotice summary {
  cursor: pointer;
  font-weight: 900;
}
.privacyNotice div {
  margin-top: 10px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.75;
}
.privacyNotice p { margin: .45rem 0; }
.privacyConsent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--brand-900);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.55;
}
.privacyConsent input {
  width: auto;
  margin-top: .22em;
  accent-color: var(--brand-800);
}
.formNote {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

#quizView,
#resultView,
#confirmView,
#cancelView {
  border: 1px solid rgba(13, 79, 134, .13);
  border-top: 8px solid var(--cola-yellow);
  background: rgba(255, 255, 255, .97);
}
.compactBrand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -4px 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--brand-900);
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .06em;
}
.compactBrand img {
  display: block;
  width: 100px;
  height: auto;
}
.compactBrand b {
  margin-left: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: var(--brand-900);
  font-size: .75rem;
  letter-spacing: .08em;
}
.timer {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-950));
  box-shadow: 0 12px 24px rgba(7, 56, 94, .22);
}
.progressShell {
  height: 11px;
  background: #e6eef4;
}
.progressBar {
  background: linear-gradient(90deg, var(--brand-950), var(--brand-700) 72%, var(--cola-yellow));
}
.question {
  overflow: hidden;
  border: 1px solid rgba(13, 79, 134, .14);
  border-left: 7px solid var(--sakura-strong);
  background:
    radial-gradient(circle at 94% 16%, rgba(255, 182, 0, .13), transparent 8rem),
    linear-gradient(135deg, #fff, #f3f8fc);
}
.question::before {
  color: rgba(255, 182, 0, .23);
}
.option {
  border-color: #d6e1e9;
  background: #fff;
}
.option:hover,
.option:focus,
.option:focus-visible {
  border-color: rgba(27, 112, 173, .55);
}
.option.selected {
  border-color: var(--brand-700);
  background: linear-gradient(135deg, #edf7fe, #fff);
  box-shadow: inset 5px 0 0 var(--cola-yellow), var(--shadow-sm);
}
.resultStamp {
  color: var(--sakura-strong);
  border-style: double;
  border-width: 5px;
  background: var(--cream);
}
.radarPanel {
  background:
    radial-gradient(circle at 90% 16%, rgba(255, 182, 0, .16), transparent 12rem),
    linear-gradient(180deg, #fff, #f3f8fc);
}

@media (max-width: 980px) {
  .startShell {
    grid-template-columns: 1fr;
  }
  .brandPanel {
    min-height: auto;
  }
  .courseKeyVisual {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .brandPanel,
  .entryPanel {
    padding: 22px;
  }
  .brandPanel {
    border-radius: 28px;
  }
  .brandTop {
    align-items: center;
    margin-bottom: 32px;
  }
  .officialLogoWrap {
    width: 116px;
    min-height: 66px;
    border-radius: 19px;
    padding: 7px 10px;
  }
  .officialLogo {
    width: 94px;
  }
  .brandEdition p {
    font-size: .82rem;
  }
  .brandEdition span {
    font-size: .7rem;
  }
  .brandPanel::after {
    right: 18px;
    top: 108px;
    font-size: 9rem;
  }
  .courseTag {
    font-size: .68rem;
  }
  .brandPanel h1 {
    font-size: clamp(2.35rem, 12.2vw, 3.4rem);
  }
  .courseKeyVisual {
    margin-top: 28px;
    border-radius: 21px;
  }
  .courseKeyVisual img {
    height: 170px;
    object-fit: cover;
    object-position: center 44%;
  }
  .courseKeyVisual figcaption {
    left: 14px;
    right: 14px;
    bottom: 11px;
    display: block;
    font-size: .69rem;
  }
  .courseKeyVisual figcaption strong {
    display: block;
    margin-bottom: 2px;
    font-size: .98rem;
  }
  .learningRoute { display: none; }
  .qaModeBanner {
    align-items: flex-start;
    border-radius: 18px;
    text-align: left;
  }
  .entryPanel {
    border-top-width: 7px;
  }
  .confirmationSummary {
    grid-template-columns: 1fr;
  }
  .oneShotWarning {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 17px;
  }
  .gateAlertHeading {
    gap: 12px;
  }
  .gateAlertIcon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.25rem;
  }
  .oneShotLock {
    width: 40px;
    height: 40px;
  }
  .testRules {
    padding: 17px;
  }
  .gateActions,
  .wrongSelectionMenu > div {
    display: grid;
    grid-template-columns: 1fr;
  }
  .gateActions button,
  .wrongSelectionMenu button {
    width: 100%;
    min-height: 48px;
  }
  .choice {
    grid-template-columns: 18px 44px minmax(0, 1fr);
    padding: 11px;
  }
  .choiceIcon {
    width: 40px;
    height: 40px;
  }
  .learningBackgroundPanel {
    gap: 16px;
    padding: 15px;
  }
  .experienceOptions,
  .channelOptions {
    grid-template-columns: 1fr;
  }
  .experienceOptions span,
  .channelOptions span {
    min-height: 48px;
  }
  .question {
    padding: 19px 16px 20px;
  }
  .questionPrompt {
    margin-right: 34px;
    font-size: .88rem;
  }
  .questionContext {
    font-size: .96rem;
  }
  .starFrame {
    gap: .35em;
    font-size: 1rem;
  }
  .blankSlots {
    width: 100%;
    justify-content: space-between;
    gap: .35em;
  }
  .blankLineGroup {
    width: 100%;
  }
  .blankLineGroup .blankSlots {
    width: auto;
    flex: 1 1 auto;
  }
  .blankSlot {
    width: calc((100% - 1.05em) / 4);
    min-width: 0;
  }
  .submissionEmailFixRow {
    grid-template-columns: 1fr;
  }
  .compactBrand {
    align-items: center;
    margin-bottom: 22px;
  }
  .compactBrand img {
    width: 84px;
  }
  .compactBrand span {
    text-align: right;
    font-size: .72rem;
  }
  .compactBrand b {
    display: inline-block;
    margin-top: 5px;
  }
}
