:root {
  color-scheme: dark;
  --bg: #16111f;
  --text: #faf5ff;
  --muted: #c6b8d5;
  --border: #3c2c4b;
  --pink: #f3bbd9;
  --lavender: #d2b8ff;
  --surface: #21172d;
  --surface-2: #35233e;
  font-family:
    "Pretendard Variable",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf7fd;
  --text: #30233c;
  --muted: #6c587c;
  --border: #ded1e8;
  --pink: #995279;
  --lavender: #7953a1;
  --surface: #fffaff;
  --surface-2: #eee4f5;
}
:root[data-theme="light"] :is(.nav-links, .nav-preferences) { background: #faf7fde6; border-color: var(--border); }
:root[data-theme="light"] .nav-slider { background: #7953a118; }
:root[data-theme="light"] :is(.hero h1, .exam-name) { color: var(--text); }
:root[data-theme="light"] :is(.heart-count, .source, footer, .motion-toggle) { color: var(--muted); }
:root[data-theme="light"] .primary-button { background: #ead8f8; border-color: #d0b5e6; }
:root[data-theme="light"] .planet-meridian { border-color: #7953a170; }
:root[data-theme="light"] .planet-equator,
:root[data-theme="light"] .planet-orbit { border-color: #99527960; }
:root[data-theme="light"] :is(.cautions li, .checklist input:checked + span, .message-length) { color: var(--muted); }
:root[data-theme="light"] textarea { background: var(--bg); color: var(--text); }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  outline-offset: 5px;
}
:focus-visible {
  outline: 2px solid var(--pink);
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
p,
h1,
h2 {
  margin: 0;
}
button {
  color: inherit;
}
::selection {
  background: #755487;
  color: white;
}
.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;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: white;
  color: #16111f;
  padding: 8px 16px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.public-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
}
.scroll-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--lavender), var(--pink));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: scroll-progress auto linear;
      animation-timeline: scroll(root);
    }
    @keyframes scroll-progress {
      to { transform: scaleX(1); }
    }
  }
}
.public-nav {
  max-width: 1400px;
  margin: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
  max-width: 260px;
}
.brand-mark { flex-shrink: 0; transition: transform 0.25s ease; }
.public-brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: grid; gap: 2px; }
.brand-text strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-text small { font-size: 11px; font-weight: 550; color: var(--muted); letter-spacing: 0.02em; }
@media (prefers-reduced-motion: reduce) { .brand-mark { transition: none; } }
.nav-preferences { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav-preferences :is(button, summary) {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
#public-theme-toggle { width: 36px; font-size: 20px; }
.nav-preferences :is(button, summary):hover {
  color: var(--text);
  background-color: color-mix(in srgb, var(--lavender) 15%, transparent);
}
.nav-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  isolation: isolate;
  margin-left: auto;
}
.nav-links,
.nav-preferences {
  padding: 4px;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  background: #281d358f;
  backdrop-filter: blur(24px) saturate(150%);
}
.nav-links a {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: transparent;
}
.nav-slider {
  position: absolute;
  z-index: -1;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: #d2b8ff26;
  transform: translateX(calc(var(--active) * 100%));
  transition: transform 0.3s cubic-bezier(0.16, 0.84, 0.3, 1);
}
.language-dropdown { position: relative; }
.language-dropdown summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  cursor: pointer;
  list-style: none;
}
.language-dropdown summary::-webkit-details-marker { display: none; }
.language-dropdown img { display: block; flex-shrink: 0; border-radius: 2px; }
.language-chevron {
  width: 6px;
  height: 6px;
  margin: -3px 2px 0 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}
.language-dropdown[open] .language-chevron { transform: translateY(3px) rotate(225deg); }
.language-options {
  position: absolute;
  top: calc(100% + 12px);
  right: -4px;
  width: 170px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 32px #0002;
  animation: language-open 160ms ease-out;
}
.language-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
}
.language-options button[aria-pressed="true"] { color: var(--text); background: var(--surface-2); }
.language-check { margin-left: auto; visibility: hidden; }
[aria-pressed="true"] > .language-check { visibility: visible; }
@keyframes language-open { from { opacity: 0; transform: translateY(-5px); } }
@media (prefers-reduced-motion: no-preference) {
  html.theme-changing body, html.theme-changing body * {
    transition: background-color 320ms ease, color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
  }
}
@media (pointer: coarse) {
  .nav-links a, .nav-preferences :is(button, summary) { min-height: 44px; }
  #public-theme-toggle { width: 44px; }
}
.navigation-error {
  position: fixed;
  top: calc(var(--pending-top, 80px) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(90vw, 480px);
  padding: 16px;
  border: 1px solid #c9afe8;
  border-radius: 16px;
  background: #251c32;
  color: #f5eefa;
  text-align: center;
}
.navigation-error button { margin-left: 8px; color: inherit; text-decoration: underline; }
.nav-links a[aria-current="page"] { color: var(--text); }
.public-header { z-index: 30; }
.skip-link { z-index: 40; }
.page-content {
  width: min(1040px, calc(100% - 48px));
  margin: auto;
  padding: 140px 0 80px;
  min-height: calc(100svh - 98px);
}
.page-heading { margin-bottom: 48px; }
.page-heading > p:first-child { color: var(--pink); font-size: 13px; }
.page-heading h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.045em; margin: 12px 0 20px; }
.page-heading > p:last-child, .muted { color: var(--muted); }
.guide-page { max-width: 800px; margin-bottom: 48px; }
.guide-page mark {
  color: var(--text);
  background: linear-gradient(transparent 40%, #f0d87538 40%, #f0d87538 92%, transparent 92%);
  font-weight: 650;
  padding-inline: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
:root[data-theme="light"] .guide-page mark {
  background: linear-gradient(transparent 40%, #f8df7a88 40%, #f8df7a88 92%, transparent 92%);
}
:root .checklist input:checked + span mark { color: inherit; background: none; }
.guide-page .checklist label { min-height: 68px; }
.board-compose { border-block: 1px solid var(--border); padding: 22px 0; }
.board-compose summary { cursor: pointer; font-weight: 600; color: var(--lavender); padding: 8px 0; }
.board-compose .muted { font-size: 13px; margin: 12px 0 24px; }
.board-compose form { max-width: 720px; }
.board-compose input { width: 100%; padding: 12px 14px; color: var(--text); background: var(--bg); border: 1px solid #654e78; border-radius: 8px; margin-bottom: 20px; }
.board-list { margin-top: 40px; }
:is(.board-post, .skeleton-post) { padding: 32px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 110px; overflow-wrap: anywhere; }
:is(.board-post, .skeleton-post) h2 { font-size: 22px; text-wrap: wrap; }
.post-meta { color: var(--muted); font-size: 12px; margin: 10px 0 20px; }
.post-body { white-space: pre-wrap; }
.empty-state { padding: 48px 0; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 32px; }
.pager a { padding: 12px 20px; border: 1px solid var(--border); border-radius: 999px; }
.route-enter { animation: page-enter 280ms cubic-bezier(0.4, 0, 0.2, 1) backwards; }
@keyframes page-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.navigation-pending {
  position: fixed;
  inset: 0;
  clip-path: inset(var(--pending-top, 82px) 0 0);
  z-index: 20;
  overflow: auto;
  background: var(--bg);
}
.navigation-pending[data-loading="false"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 280ms;
}
.navigation-pending .skeleton-bone {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  height: 0.85em;
  border-radius: 4px;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}
.skeleton-title { width: 220px; }
.skeleton-description { width: 450px; }
.skeleton-compose { padding: 8px 0; }
.skeleton-hero-title { width: 85%; }
.navigation-pending .skeleton-button { width: 210px; height: 48px; border: 0; border-radius: 999px; }
.navigation-pending .skeleton-hero-continuation { display: none; }
.navigation-pending .skeleton-mouse { width: 22px; height: 34px; border-radius: 999px; }
.skeleton-home :is(.exam-name, .hero-description, .heart-count, .scroll-cue) { animation: none; }
.skeleton-check-row, .skeleton-caution-row { display: flex; align-items: center; gap: 16px; }
.skeleton-check-row { min-height: 68px; padding: 8px 0; }
.skeleton-check-row + .skeleton-check-row { border-top: 1px solid #33243f; }
.skeleton-caution-row { min-height: 26px; margin-bottom: 22px; }
.navigation-pending .skeleton-marker { flex: none; width: 18px; height: 18px; }
.skeleton-caution-row .skeleton-marker { width: 4px; height: 4px; border-radius: 50%; margin-inline: 1px; }
@keyframes skeleton-shimmer { to { background-position-x: -200%; } }
.guide-section {
  scroll-margin-top: 88px;
}
.scroll-reveal {
  animation: section-reveal 650ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.scroll-reveal:focus-within {
  animation: none;
}
@keyframes section-reveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero {
  min-height: 100svh;
  isolation: isolate;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 100px 24px 132px;
}
.planet-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 80% 38%, #a574d51c, transparent 65%);
  mask-image: linear-gradient(#000 75%, transparent);
}
.planet-system {
  position: absolute;
  width: clamp(360px, 53vw, 760px);
  aspect-ratio: 1;
  right: -7%;
  top: 9%;
  perspective: 1100px;
  opacity: 0.6;
  animation: planet-drift 18s ease-in-out infinite alternate;
}
.planet {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid #e8caff77;
  box-shadow: 0 0 24px #c8a2ff24, inset 0 0 24px #f3bbd912;
}
.planet-grid {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: planet-turn 80s linear infinite;
}
.planet-meridian,
.planet-equator {
  position: absolute;
  inset: 0;
  border: 1px solid #d2b8ff73;
  box-shadow: none;
  border-radius: 50%;
  backface-visibility: visible;
}
.planet-equator { border-color: #f3bbd95c; }
.planet-orbit {
  position: absolute;
  inset: -8%;
  border: 1px solid #f3bbd980;
  border-radius: 50%;
  transform: rotateZ(-28deg) rotateX(68deg);
  box-shadow: 0 0 16px #d2b8ff24;
}
.planet-orbit::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 14%;
  left: 14%;
  border-radius: 50%;
  background: #f3bbd9;
  box-shadow: 0 0 16px #f3bbd980;
}
@keyframes planet-turn {
  from { transform: rotateZ(-18deg) rotateY(0deg); }
  to { transform: rotateZ(-18deg) rotateY(360deg); }
}
@keyframes planet-drift {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(18px) rotate(2deg); }
}
.hero:has(.motion-toggle[aria-pressed="true"]) .planet-system,
.hero:has(.motion-toggle[aria-pressed="true"]) .planet-grid {
  animation-play-state: paused;
}
.hero-content {
  width: 100%;
  max-width: 1100px;
}
.intro-word {
  display: inline-block;
  white-space: pre-wrap;
  animation: type-arrive 1s cubic-bezier(0.16, 1, 0.3, 1) calc(0.15s + min(0.65s, var(--word) * 0.09s)) backwards;
}
.hero h1 { color: #f0ddff; }
.exam-name { animation: intro-line 0.9s ease 0.05s backwards; }
.hero-description { animation: cue-up 0.85s ease 0.65s backwards; }
.hero .primary-button { animation: cue-up 0.85s ease 0.85s backwards; }
.heart-count { animation: cue-up 0.85s ease 1s backwards; }
.planet-scene { animation: scene-arrive 1.8s ease backwards; }
@keyframes type-arrive {
  from { opacity: 0; transform: translateY(65%) rotateX(-35deg); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
}
@keyframes intro-line {
  from { opacity: 0; letter-spacing: 0.2em; }
}
@keyframes scene-arrive {
  from { opacity: 0; transform: scale(1.06); }
}
.exam-name {
  font-size: 12px;
  letter-spacing: 0.035em;
  margin-bottom: 26px;
  color: #e3d4f3;
}
.hero h1 {
  font-size: clamp(28px, 4.8vw, 64px);
  font-weight: 750;
  line-height: 1.32;
  letter-spacing: -0.045em;
  min-height: 1.4em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 0.8em;
  background: var(--pink);
  margin-left: 5px;
  animation: blink 1s steps(1) infinite;
}
.hero-description {
  margin-top: 24px;
  font-size: clamp(15px, 1.7vw, 19px);
  color: var(--muted);
  white-space: pre-line;
  word-break: keep-all;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--lavender);
  border-radius: 999px;
  background: linear-gradient(110deg, var(--lavender), var(--pink));
  color: #281a36;
  min-height: 48px;
  padding: 10px 25px;
  font-size: 15px;
  font-weight: 550;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.primary-button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.hero .primary-button {
  margin-top: 28px;
}
.primary-button span {
  font-size: 20px;
  font-weight: 350;
}
.heart-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 58px;
  color: #decee9;
  font-size: 13px;
}
.heart {
  font-size: 22px;
  color: var(--pink);
  line-height: 1;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  animation: cue-up 0.8s ease 1.4s backwards;
}
.scroll-cue:hover { color: var(--text); }
.hero-mouse {
  position: relative;
  width: 22px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 12px;
  opacity: 0.8;
}
.hero-mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--pink);
  animation: hero-wheel 1.8s ease-in-out infinite;
}
.scroll-cue svg { animation: hero-bob 1.8s ease-in-out infinite; }
@keyframes cue-up {
  from { opacity: 0; transform: translateY(16px); }
}
@keyframes hero-wheel {
  0% { opacity: 0; translate: 0 -2px; }
  30% { opacity: 1; }
  100% { opacity: 0; translate: 0 10px; }
}
@keyframes hero-bob {
  50% { translate: 0 4px; }
}
.hero:has(.motion-toggle[aria-pressed="true"]) .hero-mouse::after,
.hero:has(.motion-toggle[aria-pressed="true"]) .scroll-cue svg {
  animation-play-state: paused;
}
.guide {
  width: min(1040px, calc(100% - 80px));
  margin: auto;
  scroll-margin-top: 48px;
}
.guide-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  border-top: 1px solid var(--border);
  padding: 72px 0;
}
.section-heading > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.45;
  letter-spacing: -0.035em;
  font-weight: 650;
  word-break: keep-all;
}
.guide ul,
.guide-page ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cautions li {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  font-size: 15px;
  color: #d5c4e3;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.item-mark {
  font-size: 20px;
  color: var(--pink);
}
.checklist li + li {
  border-top: 1px solid #33243f;
}
.checklist label {
  display: flex;
  gap: 15px;
  align-items: center;
  min-height: 55px;
  cursor: pointer;
  font-size: 15px;
  padding: 8px 0;
}
.checklist input {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1px solid #9a81b0;
  border-radius: 4px;
  margin: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.checklist input:checked {
  background: var(--pink);
  border-color: var(--pink);
}
.checklist input:checked:after {
  content: "✓";
  font-size: 13px;
  color: #16111f;
}
.checklist input:checked + span {
  color: #b29bc5;
  text-decoration: line-through;
}
.source {
  font-size: 12px;
  color: #bba6ce;
  text-align: right;
  padding-bottom: 64px;
}
.source a:hover {
  text-decoration: underline;
}
footer {
  border-top: 1px solid var(--border);
  text-align: left;
  padding: 40px 24px;
  color: #bba6ce;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.8;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.8fr);
  gap: 40px;
  max-width: 1280px;
  margin-inline: auto;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.footer-developer { color: var(--text); font-size: 14px; font-weight: 600; }
footer p + p {
  margin-top: 12px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer a:hover {
  color: var(--text);
}
.footer-notice {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
  .footer-policies { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--border); }
}
@media (max-width: 600px) {
  footer { padding: 32px 20px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
dialog {
  width: min(480px, calc(100% - 32px));
  padding: 30px;
  border: 1px solid #574065;
  border-radius: 16px;
  background: #21172d;
  color: var(--text);
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(5px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.modal-heading h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
}
.close-button {
  border: 0;
  background: none;
  color: #bbb;
  font-size: 28px;
  min-width: 40px;
  min-height: 40px;
}
.modal-heading + p {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 26px;
}
form label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
textarea {
  display: block;
  width: 100%;
  padding: 14px;
  background: #16111f;
  border: 1px solid #654e78;
  border-radius: 8px;
  color: #eee;
  resize: vertical;
  min-height: 140px;
}
textarea::placeholder {
  color: #b29bc5;
}
.message-length {
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 16px;
}
#message-status {
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--pink);
}
dialog .primary-button {
  width: 100%;
}
.noscript {
  text-align: center;
  padding: 16px;
  font-size: 13px;
}
.motion-toggle {
  position: absolute;
  bottom: 36px;
  right: 24px;
  border: 0;
  background: none;
  font-size: 11px;
  color: #c6b8d5;
  padding: 12px;
}
.hero:has(.motion-toggle[aria-pressed="true"]) .caret {
  animation: none;
}
button,
a,
input {
  touch-action: manipulation;
}
dialog {
  overscroll-behavior: contain;
}
h1,
h2 {
  text-wrap: balance;
}
.heart-count {
  font-variant-numeric: tabular-nums;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@media (max-width: 1000px) {
  .public-nav { flex-wrap: wrap; }
  .public-brand { max-width: calc(100% - 180px); }
  .nav-links { order: 3; width: 100%; }
  .nav-preferences { margin-left: auto; }
  .page-content { padding-top: 180px; }
}
@media (max-width: 700px) {
  .navigation-pending .skeleton-hero-continuation { display: inline-block; width: 60%; }
  .public-nav { flex-wrap: wrap; }
  .public-brand { flex: 1; }
  .nav-links { width: 100%; }
  .nav-slider { left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 3); }
  .page-content { width: calc(100% - 40px); padding-top: 160px; }
  .board-post { scroll-margin-top: 140px; }
  .planet-system { width: 440px; right: -220px; top: 12%; opacity: 0.4; }
  .public-nav { padding-inline: 12px; gap: 6px; }
  .public-brand { gap: 6px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-text strong { font-size: 15px; }
  .brand-text small { font-size: 10px; }
  .nav-links, .nav-preferences { padding: 4px; }
  .nav-links a { padding-inline: 10px; font-size: 12px; }
  .hero {
    padding-inline: 20px;
  }
  .hero h1 {
    min-height: 2.64em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero h1 #typing {
    max-width: 100%;
  }
  .exam-name {
    font-size: 10px;
    margin-bottom: 22px;
  }
  .hero-description {
    margin-top: 12px;
  }
  .heart-count {
    margin-top: 46px;
    font-size: 12px;
  }
  .guide {
    width: calc(100% - 40px);
  }
  .guide-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 0;
  }
  .source {
    text-align: left;
    padding-bottom: 40px;
  }
  .section-heading > p {
    margin-bottom: 10px;
  }
  .cautions li {
    font-size: 14px;
  }
  .checklist label {
    font-size: 14px;
  }
  dialog {
    padding: 24px;
  }
  .motion-toggle {
    bottom: 12px;
    right: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .caret,
  .motion-toggle {
    display: none;
  }
}

/* 메인 문구와 채팅은 하나의 화면을 공유한다. */
.hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: clamp(32px, 6vw, 100px); padding: 100px max(32px, calc((100vw - 1280px) / 2)) 100px; text-align: left; }
.hero .hero-content { min-width: 0; max-width: 720px; }
.hero h1 { font-size: clamp(32px, 4vw, 58px); min-height: 1.32em; display: block; }
.hero .exam-name { margin-bottom: 20px; }
.hero .hero-description { margin-top: 20px; }
.hero .primary-button { margin-top: 22px; }
.hero .heart-count { justify-content: flex-start; margin-top: 26px; }
.hero .scroll-cue { left: 50%; text-align: center; }
.chat-panel { width: 100%; min-width: 0; align-self: center; text-align: left; }
.chat-feed { height: clamp(180px, calc(100svh - 300px), 650px); overflow-y: auto; overscroll-behavior: contain; padding: 32px 8px 14px; mask-image: linear-gradient(transparent, #000 35px); scrollbar-width: none; }
.chat-feed::-webkit-scrollbar { display: none; width: 0; height: 0; }
.chat-message { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 10px; }
.chat-message.is-reply { align-items: flex-end; }
.chat-bubble { max-width: 92%; padding: 14px 17px; border-radius: 22px 22px 22px 6px; background: #ffffff14; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; backdrop-filter: blur(12px); }
.is-reply .chat-bubble { border-radius: 23px 23px 7px 23px; background: #d2b8ff1c; }
.chat-meta { display: flex; flex-wrap: wrap; gap: 3px 6px; align-items: center; max-width: 100%; margin: 3px 9px 0; font-weight: 550; color: var(--muted); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.is-reply .chat-meta { justify-content: flex-end; }
.chat-reply-to { color: #b9cde7; }
.chat-meta button { border: 0; background: none; color: var(--text); padding: 8px 3px; min-height: 26px; font-size: 11px; cursor: pointer; }
.chat-meta button:hover { text-decoration: underline; }
.chat-compose { position: relative; padding-top: 10px; }
.chat-overlays { position: absolute; bottom: 100%; left: 0; right: 0; z-index: 2; display: flex; flex-direction: column; align-items: stretch; }
/* 입력 캡슐: 글자 수와 원형 전송 버튼을 함께 담는다. */
.chat-input-row { display: flex; align-items: center; gap: 6px; height: 52px; padding: 4px; border: 1px solid var(--border); border-radius: 26px; background: var(--surface); box-shadow: 0 8px 28px #0000002e; transition: border-color 220ms ease, box-shadow 220ms ease, background-color 320ms ease; }
:root[data-theme="light"] .chat-input-row { box-shadow: 0 8px 24px #7953a114; }
#chat-body { min-width: 0; flex: 1; height: 42px; min-height: 0; margin: 0; padding: 11px 4px 11px 14px; border: 0; border-radius: 20px; background: transparent; color: var(--text); font: inherit; font-size: 14px; line-height: 20px; scrollbar-width: none; }
#chat-body::-webkit-scrollbar { display: none; }
#chat-body::placeholder { color: var(--muted); opacity: .8; }
.chat-count { flex: none; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); opacity: 0; transform: translateX(6px); transition: opacity 200ms ease, transform 200ms ease, color 200ms ease; pointer-events: none; }
.chat-input-row:has(#chat-body:not(:placeholder-shown)) .chat-count { opacity: 1; transform: none; }
.chat-count[data-level="warn"] { color: var(--pink); }
.chat-count[data-level="over"] { color: #ff8a9e; font-weight: 700; }
:root[data-theme="light"] .chat-count[data-level="over"] { color: #c0304f; }
#chat-send { position: relative; flex: 0 0 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); cursor: pointer; transform: scale(.92); transition: background-color 220ms ease, color 220ms ease, transform 220ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 220ms ease; }
#chat-send svg { transition: transform 220ms ease, opacity 160ms ease; }
.chat-input-row:has(#chat-body:not(:placeholder-shown)) #chat-send { background: linear-gradient(135deg, var(--lavender), var(--pink)); color: var(--bg); transform: scale(1); box-shadow: 0 6px 18px #d2b8ff40; }
.chat-input-row:has(#chat-body:not(:placeholder-shown)) #chat-send:hover { transform: scale(1.06); }
.chat-input-row:has(#chat-body:not(:placeholder-shown)) #chat-send:hover svg { transform: translateY(-2px); }
#chat-send:active { transform: scale(.88) !important; }
#chat-send:disabled, #chat-body:disabled { cursor: wait; }
#chat-body:disabled { opacity: .55; }
#chat-send::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: 0; transition: opacity 160ms ease; }
.chat-compose[aria-busy="true"] #chat-send svg { opacity: 0; transform: scale(.5); }
.chat-compose[aria-busy="true"] #chat-send::after { opacity: 1; animation: chat-spin 800ms linear infinite; }
#chat-reply { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 6px 0 14px; margin: 0 8px 8px; min-height: 36px; border: 1px solid var(--border); border-left: 3px solid var(--lavender); border-radius: 12px 18px 18px 12px; background: var(--surface-2); color: var(--text); font-size: 12px; animation: chat-chip-in 200ms cubic-bezier(.2, .8, .2, 1); }
@keyframes chat-chip-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
#chat-reply[hidden], #chat-status[hidden] { display: none; }
#chat-cancel { min-height: 30px; padding: 0 10px; border: 0; border-radius: 999px; color: var(--muted); background: none; font: inherit; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
#chat-cancel:hover { background: var(--surface); color: var(--text); }
#chat-status { position: relative; margin: 0 6px 8px; padding: 10px 14px; border-radius: 18px; background: #192a3e; color: #e8eff9; font-size: 12px; line-height: 1.5; border: 1px solid #758faa66; }
#chat-status[data-state="info"] { align-self: flex-start; max-width: calc(100% - 12px); border-radius: 14px; }
#chat-status[data-state="info"]::after { content: ""; position: absolute; left: 20px; top: 100%; border: 7px solid transparent; border-top-color: #192a3e; }
#chat-status[data-state="success"]::before { content: "✓"; margin-right: 8px; font-weight: 700; }
#chat-status[data-state="error"]::before { content: "×"; margin-right: 8px; font-weight: 700; }
#chat-status[data-state="success"] { background: #184a32; border-color: #50856a; color: #effff5; }
#chat-status[data-state="error"] { background: #702a3c; border-color: #ac6174; color: #fff1f5; }
#chat-status[data-state="checking"]::before { content: ''; display: inline-block; width: 12px; height: 12px; border: 2px solid #ffffff40; border-top-color: white; border-radius: 50%; margin-right: 8px; vertical-align: -3px; animation: chat-spin 800ms linear infinite; }
@keyframes chat-spin { to { transform: rotate(360deg); } }
.chat-notice { display: block; margin: 6px 4px 0; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 11px; color: var(--muted); line-height: 1.7; min-height: 28px; cursor: pointer; }
.chat-notice:hover { color: var(--text); }
#chat-notice-dialog { margin: auto; max-height: calc(100svh - 32px); overflow-y: auto; background: var(--bg); border-color: var(--border); }
#chat-notice-dialog p { margin: 20px 0 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
#chat-notice-close { color: var(--text); cursor: pointer; min-width: 44px; min-height: 44px; }
#chat-more { display: block; margin: 0 auto 14px; min-height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; }
#chat-more[hidden] { display: none; }
#chat-load-status { font-size: 13px; color: var(--muted); }
:root[data-theme="light"] .chat-bubble { background: #70518b0d; }
:root[data-theme="light"] .is-reply .chat-bubble { background: #a174cf1c; }
:root[data-theme="light"] .chat-reply-to { color: #496683; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 160px 24px 125px; gap: 32px; }
  .hero .hero-content, .chat-panel { max-width: 600px; justify-self: center; }
  .hero h1 { font-size: clamp(28px, 7vw, 48px); min-height: 1.32em; }
  .chat-feed { height: 450px; }
}
@media (max-width: 400px) { .hero { padding-inline: 16px; } .chat-feed { padding-inline: 2px; } }
@media (pointer: coarse) { .chat-meta button, #chat-cancel { min-height: 44px; } .chat-input-row { height: 54px; } #chat-send { flex-basis: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { #chat-status[data-state="checking"]::before { animation: none; } }

@media (min-width: 901px) and (max-height: 700px) {
  .hero { padding-block: 80px; }
  .hero h1 { font-size: clamp(28px, 3.4vw, 46px); }
  .chat-feed { height: max(140px, calc(100svh - 260px)); }
}
