:root {
  --ink: #3e2e23;
  --muted: #77695d;
  --paper: #fffdf8;
  --canvas: #f6efe3;
  --line: #dfd2c2;
  --orange: #d96f3f;
  --orange-dark: #b8522d;
  --olive: #7b8341;
  --blue: #4f72b5;
  --shadow: 0 24px 70px rgba(78, 53, 35, 0.12);
  font-family:
    Pretendard, "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
.skip-link { position:fixed; top:8px; left:8px; z-index:100; padding:10px 14px; transform:translateY(-140%); color:#fff; background:var(--ink); font-size:.8rem; font-weight:900; text-decoration:none; }
.skip-link:focus { transform:none; }

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

button,
summary {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(79, 114, 181, 0.32);
  outline-offset: 3px;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(114, 91, 68, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 91, 68, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

.app-shell {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 18px 32px;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #cb9a64;
  border-radius: 50%;
  color: #7d4c29;
  background: #f3c67e;
  box-shadow: inset 0 0 0 4px #ffe7bd;
  font-family: Georgia, serif;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.test-badge {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #8e7d6e;
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: screen-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.start-screen {
  padding-top: 18px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Iropke Batang", "Noto Serif KR", Georgia, serif;
  font-size: clamp(2.4rem, 10vw, 4.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.065em;
}

.hero-copy h1 em {
  position: relative;
  color: var(--orange);
  font-style: normal;
}

.hero-copy h1 em::after {
  position: absolute;
  right: -2px;
  bottom: 2px;
  left: 2px;
  height: 7px;
  border-radius: 999px;
  background: rgba(217, 111, 63, 0.16);
  content: "";
}

.hero-description {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
  letter-spacing: -0.025em;
}

.hero-visual {
  position: relative;
  width: min(100%, 440px);
  height: 310px;
  margin: 2px auto -10px;
}

.timetable-card {
  position: absolute;
  top: 55px;
  left: 50%;
  width: 268px;
  height: 198px;
  overflow: hidden;
  transform: translateX(-50%) rotate(-4deg);
  border: 1px solid #d4c2ad;
  border-radius: 10px;
  background-color: #fffaf1;
  background-image:
    linear-gradient(#e5dacb 1px, transparent 1px),
    linear-gradient(90deg, #e5dacb 1px, transparent 1px);
  background-size: 44px 32px;
  box-shadow: 0 18px 36px rgba(86, 59, 38, 0.14);
}

.timetable-label {
  position: absolute;
  top: 11px;
  left: 12px;
  padding: 4px 7px;
  transform: rotate(4deg);
  color: #786455;
  background: #fffaf1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.class-block {
  position: absolute;
  display: grid;
  width: 42px;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 800;
}

.block-a {
  top: 45px;
  left: 44px;
  height: 62px;
  background: #d96f3f;
}

.block-b {
  top: 76px;
  left: 88px;
  height: 62px;
  background: #7b8341;
}

.block-c {
  top: 108px;
  left: 132px;
  height: 30px;
  color: #725e4d;
  background: #f2dfb4;
}

.block-d {
  top: 45px;
  left: 176px;
  height: 94px;
  background: #4f72b5;
}

.hero-morak {
  position: absolute;
  right: 2px;
  bottom: 0;
  z-index: 2;
  width: 225px;
  height: 225px;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(89, 57, 30, 0.16));
}

.float-note {
  position: absolute;
  z-index: 3;
  padding: 8px 11px;
  border: 1px solid #d7c6b5;
  color: #675445;
  background: #fffdf8;
  box-shadow: 0 8px 18px rgba(83, 58, 39, 0.1);
  font-size: 0.67rem;
  font-weight: 800;
}

.float-note::before {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 32px;
  height: 10px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(232, 189, 123, 0.48);
  content: "";
}

.note-a {
  top: 42px;
  right: 14px;
  transform: rotate(7deg);
}

.note-b {
  bottom: 36px;
  left: 12px;
  transform: rotate(-5deg);
}

.test-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 18px;
}

.test-meta span {
  padding: 7px 10px;
  border: 1px solid #dfd2c2;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.7rem;
}

.test-meta b {
  color: var(--ink);
}

.primary-button,
.secondary-button,
.text-button {
  width: 100%;
  min-height: 58px;
  border-radius: 16px;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fffdf8;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(62, 46, 35, 0.2);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(62, 46, 35, 0.25);
}

.button-icon {
  font-size: 1.2rem;
}

.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.7);
}

.text-button {
  min-height: 44px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.74rem;
}

.method-note {
  margin-top: 18px;
  color: var(--muted);
  text-align: left;
}

.method-note summary {
  width: max-content;
  margin: 0 auto;
  color: #806f61;
  font-size: 0.74rem;
  cursor: pointer;
}

.method-note p {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.7);
  font-size: 0.75rem;
  line-height: 1.65;
}

.question-screen {
  padding-top: 8px;
}

.question-topline {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.back-button {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.8);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.back-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.68rem;
}

.progress-label strong {
  color: var(--ink);
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5dacb;
}

.progress-track span {
  display: block;
  width: 8.33%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 280ms ease;
}

.question-card {
  min-height: 235px;
  margin: 28px 0 18px;
  padding: 28px 24px;
  border: 1px solid #dfd2c2;
  border-radius: 22px;
  background-color: var(--paper);
  background-image:
    linear-gradient(transparent 31px, rgba(184, 158, 129, 0.13) 32px),
    linear-gradient(90deg, transparent 31px, rgba(184, 158, 129, 0.08) 32px);
  background-size: 32px 32px;
  box-shadow: var(--shadow);
}

.question-number {
  display: block;
  margin-bottom: 26px;
  color: var(--orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.question-card h2 {
  margin: 0;
  font-family: "Iropke Batang", "Noto Serif KR", Georgia, serif;
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.question-helper {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-button {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 6px 18px rgba(76, 53, 36, 0.045);
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease;
}

.answer-button:hover {
  transform: translateY(-1px);
  border-color: #cba27e;
  background: #fffaf1;
}

.answer-button > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #d9c9b8;
  border-radius: 9px;
  color: #8c7867;
  background: #f8f0e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 900;
}

.answer-button strong {
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.48;
  letter-spacing: -0.025em;
}

.answer-button.is-selected {
  border-color: var(--orange);
  background: #fff3e9;
  transform: scale(0.985);
}

.answer-button.is-selected > span {
  color: #fff;
  border-color: var(--orange);
  background: var(--orange);
}

.tie-screen {
  padding: 72px 0 32px;
  text-align: center;
}

.tie-icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid #d8c6b2;
  border-radius: 24px;
  color: var(--orange-dark);
  background: #fffaf1;
  box-shadow: var(--shadow);
  font-size: 2rem;
}

.tie-screen h2,
.loading-screen h2 {
  margin: 0;
  font-family: "Iropke Batang", "Noto Serif KR", Georgia, serif;
  font-size: 2rem;
  line-height: 1.3;
  letter-spacing: -0.05em;
}

.tie-screen > p:not(.eyebrow),
.loading-screen p {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.tie-list {
  display: grid;
  gap: 10px;
}

.tie-button {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--type-color);
  border-radius: 16px;
  text-align: left;
  background: var(--paper);
  cursor: pointer;
}

.tie-button span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--type-color);
  font-weight: 900;
}

.tie-button strong {
  font-size: 0.9rem;
  line-height: 1.45;
}

.loading-screen {
  padding: 150px 20px 100px;
  text-align: center;
}

.loader-calendar {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 7px;
  width: max-content;
  margin: 0 auto 32px;
  padding: 17px;
  border: 1px solid #dac8b4;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.loader-calendar span {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #eadfce;
  animation: calendar-pop 900ms ease-in-out infinite alternate;
}

.loader-calendar span:nth-child(2),
.loader-calendar span:nth-child(5) {
  animation-delay: 150ms;
  background: #e9b28e;
}

.loader-calendar span:nth-child(3),
.loader-calendar span:nth-child(6) {
  animation-delay: 300ms;
  background: #aab078;
}

@keyframes calendar-pop {
  to {
    transform: translateY(-5px) rotate(2deg);
  }
}

.result-screen {
  padding-top: 8px;
}

.result-card {
  position: relative;
  overflow: hidden;
  padding: 26px 20px 22px;
  border: 1px solid color-mix(in srgb, var(--result-color), #ffffff 65%);
  border-radius: 26px;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(133, 112, 89, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 112, 89, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: var(--shadow);
}

.result-card::before {
  position: absolute;
  top: -85px;
  right: -85px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--result-soft);
  content: "";
}

.result-stamp {
  position: relative;
  z-index: 1;
  width: max-content;
  margin: 0 auto 24px;
  padding: 7px 10px;
  border: 1px solid var(--result-color);
  color: var(--result-color);
  background: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: rotate(-2deg);
}

.result-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 9px;
  color: var(--result-color);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.result-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-family: "Iropke Batang", "Noto Serif KR", Georgia, serif;
  font-size: clamp(2.45rem, 11vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.07em;
  text-wrap: balance;
  word-break: keep-all;
}

.result-hook {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.result-visual {
  position: relative;
  height: 284px;
  margin: 0 -10px -14px;
}

.result-visual::before {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 220px;
  height: 180px;
  transform: translateX(-50%) rotate(-3deg);
  border-radius: 46% 54% 49% 51%;
  background: var(--result-soft);
  content: "";
}

.result-visual img {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 1;
  width: min(300px, 88vw);
  height: 284px;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 16px 16px rgba(73, 51, 34, 0.14));
}

.result-symbol {
  position: absolute;
  top: 42px;
  right: calc(50% - 145px);
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  transform: rotate(7deg);
  border: 2px solid var(--paper);
  border-radius: 17px;
  color: #fff;
  background: var(--result-color);
  box-shadow: 0 9px 18px rgba(63, 44, 30, 0.14);
  font-size: 1.5rem;
  font-weight: 900;
}

.result-summary {
  position: relative;
  margin: 0;
  padding: 20px 18px;
  border-top: 2px solid var(--result-color);
  border-bottom: 1px solid #e4d8ca;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.75;
  letter-spacing: -0.025em;
}

.result-details {
  padding: 22px 0 4px;
}

.detail-label {
  display: block;
  margin-bottom: 10px;
  color: var(--result-color);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.result-details ul {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.result-details li {
  position: relative;
  padding-left: 19px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.result-details li::before {
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--result-color);
  content: "";
}

.detail-panel {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #e1d5c7;
  border-radius: 14px;
  background: color-mix(in srgb, var(--result-soft), #ffffff 58%);
}

.detail-panel p,
.tip-row p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.62;
}

.watch-panel {
  background: #faf6ef;
}

.tip-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed color-mix(in srgb, var(--result-color), #ffffff 45%);
  border-radius: 14px;
}

.tip-row > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--result-color);
  font-weight: 900;
}

.ranking-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2d5c6;
}

.ranking-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ranking-heading strong {
  font-size: 0.8rem;
}

.ranking-heading span {
  color: var(--muted);
  font-size: 0.6rem;
}

.priority-ranking {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.priority-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 11px;
  align-items: center;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #e6dbcf;
  border-radius: 13px;
  background: #fffdf9;
}

.priority-row > span {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--priority-color);
  background: var(--priority-soft);
  font-size: 0.63rem;
  font-weight: 900;
  text-align: center;
}

.priority-row.is-primary {
  border-color: color-mix(in srgb, var(--priority-color), #ffffff 56%);
  background: color-mix(in srgb, var(--priority-soft), #ffffff 62%);
}

.priority-row strong {
  display: block;
  color: var(--ink);
  font-size: 0.72rem;
}

.action-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.community-stats {
  margin-top: 16px;
  padding: 17px 18px;
  border: 1px solid color-mix(in srgb, var(--result-color), #ffffff 65%);
  border-radius: 16px;
  background: color-mix(in srgb, var(--result-soft), #ffffff 58%);
}

.community-stats[hidden] {
  display: none;
}

.community-stats > span,
.community-stats > strong {
  display: block;
}

.community-stats > span {
  color: var(--result-color);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.community-stats > strong {
  margin-top: 7px;
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.community-stats p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.team-intro {
  position: relative;
  margin-top: 18px;
  padding: 20px 16px 16px;
  overflow: hidden;
  border: 1px solid #dfc4ad;
  border-radius: 24px;
  background-color: #fffaf2;
  background-image:
    linear-gradient(rgba(153, 102, 69, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 102, 69, 0.055) 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: 0 18px 42px rgba(83, 52, 35, 0.1);
}

.team-intro::before {
  position: absolute;
  top: -88px;
  right: -78px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(123, 131, 65, 0.13);
  content: "";
}

.team-intro::after {
  position: absolute;
  right: -42px;
  bottom: 93px;
  width: 160px;
  height: 58px;
  transform: rotate(-22deg);
  border-radius: 999px;
  background: rgba(200, 93, 59, 0.08);
  content: "";
  pointer-events: none;
}

.team-intro-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #a84f32;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.team-intro-head span::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #d96f3f;
  box-shadow: 9px 0 #efb58f;
  content: "";
}

.team-intro-head strong {
  padding: 5px 8px;
  border: 1px solid #e6cdb9;
  border-radius: 999px;
  color: #8b6650;
  background: rgba(255, 253, 248, 0.78);
  font-size: 0.52rem;
  white-space: nowrap;
}

.team-intro-hero {
  position: relative;
  z-index: 1;
  min-height: 228px;
  padding: 34px 112px 24px 2px;
}

.team-intro-copy > p {
  margin: 0 0 8px;
  color: #a84f32;
  font-size: 0.64rem;
  font-weight: 900;
}

.team-intro-copy h3 {
  margin: 0;
  font-family: "Iropke Batang", "Noto Serif KR", Georgia, serif;
  font-size: clamp(1.55rem, 7.6vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.065em;
  word-break: keep-all;
}

.team-intro-copy h3 em {
  color: #c85d3b;
  font-style: normal;
}

.team-intro-copy > span {
  display: block;
  margin-top: 13px;
  color: #6f5d50;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.62;
  word-break: keep-all;
}

.team-morak {
  position: absolute;
  right: -9px;
  bottom: 1px;
  width: 136px;
  height: 166px;
}

.team-morak > span {
  position: absolute;
  right: -4px;
  bottom: 8px;
  width: 130px;
  height: 122px;
  transform: rotate(-6deg);
  border-radius: 48% 52% 44% 56%;
  background: #f2d9c7;
}

.team-morak img {
  position: relative;
  z-index: 1;
  width: 142px;
  height: 166px;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px rgba(80, 49, 31, 0.13));
}

.team-activities-heading {
  position: relative;
  z-index: 1;
  margin: 0 0 9px;
  color: #a84f32;
  font-size: 0.62rem;
  font-weight: 900;
}

.team-activities {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.team-activity {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid #ead8c8;
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 5px 0 rgba(113, 73, 45, 0.05);
}

.team-activity-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px dashed #dbb797;
  border-radius: 50%;
  color: #c85d3b;
  background: #f8e8db;
  font-size: 0.92rem;
  font-weight: 900;
}

.team-activity small,
.team-activity strong {
  display: block;
}

.team-activity small {
  color: #b65c3c;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.team-activity strong {
  margin-top: 3px;
  font-size: 0.75rem;
  letter-spacing: -0.025em;
}

.team-activity p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.5;
  word-break: keep-all;
}
.test-badge { color:inherit; text-decoration:none; }

.team-survey {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid #d6d9aa;
  border-radius: 15px;
  color: inherit;
  background: rgba(247, 247, 224, 0.9);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.team-survey:hover {
  transform: translateY(-1px);
  border-color: #aeb468;
}

.team-survey:focus-visible,
.team-instagram:focus-visible {
  outline: 3px solid rgba(88, 98, 61, 0.2);
  outline-offset: 2px;
}

.team-survey-badge {
  padding: 5px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--olive);
  font-size: 0.52rem;
  font-weight: 900;
  white-space: nowrap;
}

.team-survey strong,
.team-survey small {
  display: block;
}

.team-survey strong {
  font-size: 0.7rem;
  line-height: 1.4;
}

.team-survey small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1.4;
}

.team-survey b {
  color: var(--olive);
  font-size: 0.6rem;
  white-space: nowrap;
}

.team-instagram {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px 15px;
  border-radius: 15px;
  color: #fffaf2;
  background: #4b372c;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(59, 40, 29, 0.18);
  transition: transform 160ms ease;
}

.team-instagram:hover {
  transform: translateY(-2px);
}

.team-instagram small,
.team-instagram strong {
  display: block;
}

.team-instagram small {
  color: #d9c9bc;
  font-size: 0.55rem;
  font-weight: 700;
}

.team-instagram strong {
  margin-top: 2px;
  font-size: 0.74rem;
}

.team-instagram b {
  color: #f3c39f;
  font-size: 0.62rem;
  white-space: nowrap;
}

.link-arrow {
  color: #958474;
  font-size: 1rem;
  font-weight: 900;
}

.support-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
  padding: 15px 16px;
  border: 1px solid #cbd7d3;
  border-radius: 16px;
  color: inherit;
  background: #f3f8f6;
  text-decoration: none;
}

.support-note strong,
.support-note small {
  display: block;
}

.support-note strong {
  color: #466d62;
  font-size: 0.74rem;
}

.support-note small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.story-dialog {
  width: min(430px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: transparent;
}

.story-dialog::backdrop {
  background: rgba(45, 33, 25, 0.58);
  backdrop-filter: blur(4px);
}

.story-dialog-panel {
  max-height: calc(100vh - 28px);
  padding: 18px;
  overflow-y: auto;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(45, 33, 25, 0.32);
}

.story-dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.story-dialog-heading span {
  color: var(--orange-dark);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.story-dialog-heading h2 {
  margin: 3px 0 0;
  font-size: 1rem;
  letter-spacing: -0.035em;
}

.story-dialog-heading button {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.15rem;
  cursor: pointer;
}

.story-preview-wrap {
  display: grid;
  max-height: 58vh;
  margin-bottom: 14px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #eee5d9;
}

.story-preview-wrap img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: contain;
}

.story-dialog .primary-button {
  text-decoration: none;
}

.story-dialog-panel > p {
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.5;
  text-align: center;
}

.demo-tools {
  margin-top: 20px;
  padding: 14px;
  border: 1px dashed #cab9a7;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.45);
}

.demo-tools summary {
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.demo-tools > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.demo-tools button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #68594c;
  background: var(--paper);
  font-size: 0.66rem;
  cursor: pointer;
}

.demo-tools button.is-current {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(128, 103, 81, 0.15);
  color: #958474;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: calc(100vw - 36px);
  padding: 12px 16px;
  transform: translate(-50%, 20px);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(45, 33, 25, 0.24);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (min-width: 600px) {
  .app-shell {
    padding: 28px 24px 42px;
  }

  .start-screen {
    padding-top: 34px;
  }

  .answer-button {
    min-height: 72px;
    padding-right: 20px;
    padding-left: 18px;
  }

  .result-card {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 370px) {
  .app-shell {
    padding-right: 13px;
    padding-left: 13px;
  }

  .brand strong {
    font-size: 0.76rem;
  }

  .hero-visual {
    height: 285px;
  }

  .hero-morak {
    width: 205px;
    height: 205px;
  }

  .test-meta span {
    padding: 6px 8px;
    font-size: 0.65rem;
  }
}

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