:root {
  color-scheme: light;
  --ink: #2d251d;
  --muted: #6d6358;
  --line: #eadbb4;
  --paper: #fff8dc;
  --panel: #ffffff;
  --brand: #e0a900;
  --brand-strong: #9c6d00;
  --brand-soft: #fff2b6;
  --mint: #2f8f7d;
  --mint-soft: #e4f6ef;
  --rose: #e96055;
  --sky: #4c7fc4;
  --green: #2f7d55;
  --deep: #173533;
  --deep-2: #254a46;
  --archive: #eef3f8;
  --archive-line: #cbd7e3;
  --shadow: 0 16px 34px rgba(84, 58, 22, .1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, var(--deep) 0, var(--deep) 520px, #fbf7ec 520px, #fffdf8 100%);
  color: var(--ink);
  font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  color: #fffaf0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.brand-mascot {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 1px solid rgba(255, 250, 240, .48);
  border-radius: var(--radius);
  background: #fff8d8;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .16);
  animation: home-mascot-nod 3.8s ease-in-out infinite;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-header nav a,
.site-footer nav a {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  color: #453a2f;
  font-size: 13px;
  font-weight: 800;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.site-header nav a {
  border-color: rgba(255, 250, 240, .24);
  background: rgba(255, 255, 255, .08);
  color: #fffaf0;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: end;
  padding: 38px 0 42px;
  color: #fffaf0;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 810px;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 670px;
  margin-top: 16px;
  color: #5f554b;
  font-size: 18px;
}

.home-hero .eyebrow {
  color: #ffdf5d;
}

.home-hero .lead {
  max-width: 720px;
  color: rgba(255, 250, 240, .82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-card {
  position: relative;
  min-height: 232px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 240, .24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  overflow: hidden;
  animation: home-card-float 4.2s ease-in-out infinite;
}

.hero-card h2 {
  margin-top: 6px;
  color: #fffaf0;
  font-size: 24px;
  line-height: 1.2;
}

.hub-card {
  align-self: stretch;
  background: rgba(23, 53, 51, .88);
}

.hub-sturgle-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.hub-sturgle-strip a,
.personality-preview-grid a {
  display: grid;
  min-width: 0;
  border: 1px solid rgba(255, 250, 240, .2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.hub-sturgle-strip a:hover,
.personality-preview-grid a:hover {
  transform: translateY(-2px);
}

.hub-sturgle-strip img,
.personality-preview-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.hub-sturgle-strip span,
.personality-preview-grid span {
  display: block;
  padding: 6px 4px 7px;
  color: #fffaf0;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.hub-rows {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.hub-rows div {
  padding: 10px;
  border: 1px solid rgba(255, 250, 240, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}

.hub-card .hub-rows strong {
  display: block;
  color: var(--brand-soft);
  font-size: 15px;
  line-height: 1.15;
}

.hub-card .hub-rows div:first-child strong {
  color: #ffdf5d;
  font-size: 26px;
}

.hub-card .hub-rows span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 250, 240, .78);
  font-size: 13px;
  font-weight: 800;
}

.mascot-card {
  padding-top: 122px;
}

.mascot-card img {
  position: absolute;
  top: 10px;
  right: 18px;
  width: 132px;
  height: 132px;
  object-fit: contain;
  animation: home-mascot-hop 3.2s ease-in-out infinite;
}

.mascot-card::before {
  content: "PICK!";
  position: absolute;
  top: 21px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 48px;
  border: 2px solid #2d251d;
  border-radius: var(--radius);
  background: #ff7e6b;
  color: #2d251d;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 0 rgba(45, 37, 29, .14);
  animation: home-pick-wiggle 2.8s ease-in-out infinite;
}

.hero-card strong {
  display: block;
  color: var(--rose);
  font-size: 48px;
  line-height: .95;
}

.hero-card span {
  display: block;
  margin-top: 8px;
  font-weight: 900;
}

.hero-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.section-block {
  padding: 24px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

h2 {
  font-size: 25px;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 6px;
  color: var(--muted);
}

.theme-switcher-block {
  padding-top: 0;
}

.theme-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 12px;
  margin-top: -18px;
  padding: 12px;
  border: 1px solid rgba(45, 37, 29, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.theme-tab {
  min-height: 168px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf5;
}

.theme-tab.active {
  border-color: rgba(47, 143, 125, .3);
  background:
    linear-gradient(135deg, rgba(228, 246, 239, .94), rgba(255, 248, 220, .96)),
    #fff;
}

.theme-tab.type-index-card {
  border-color: rgba(76, 127, 196, .24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(238, 243, 248, .92)),
    #fff;
}

.theme-tab h2 {
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.2;
}

.theme-tab p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.personality-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.personality-preview-grid a {
  border-color: rgba(47, 143, 125, .18);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 16px rgba(49, 36, 18, .08);
}

.personality-preview-grid a:hover {
  border-color: rgba(47, 143, 125, .42);
  box-shadow: 0 12px 22px rgba(49, 36, 18, .12);
}

.personality-preview-grid span {
  color: #2f6f62;
  background: rgba(255, 255, 255, .74);
}

.type-code-cloud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.type-code-cloud a {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(76, 127, 196, .2);
  border-radius: 6px;
  background: rgba(255, 255, 255, .78);
  color: #254a46;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 6px 12px rgba(37, 74, 70, .06);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.type-code-cloud a:hover {
  border-color: rgba(47, 143, 125, .42);
  box-shadow: 0 10px 18px rgba(37, 74, 70, .1);
  transform: translateY(-2px);
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.test-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  min-height: 252px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.test-card.popular {
  border-color: rgba(233, 96, 85, .42);
  background: #fffdf6;
}

body.home-ready .test-card {
  animation: home-card-enter 440ms cubic-bezier(.2, .9, .24, 1.18) both;
  animation-delay: calc(var(--home-card-index, 0) * 70ms);
}

.test-card:hover {
  border-color: rgba(224, 169, 0, .48);
  box-shadow: 0 18px 38px rgba(84, 58, 22, .14);
  transform: translateY(-3px);
}

.test-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 52px;
  height: 52px;
  background: var(--wiopeek-home-card-mark-image, url("./assets/brand/current/icon-192.png")) center / contain no-repeat;
  opacity: .18;
  pointer-events: none;
}

.test-card.empty {
  grid-template-columns: 1fr;
}

.card-image {
  display: block;
  align-self: start;
  aspect-ratio: 1200 / 630;
  border-radius: var(--radius);
  background: #fff1bd;
  overflow: hidden;
  border: 1px solid #f0d58f;
}

.card-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  transition: filter 220ms ease;
}

.test-card:hover .card-image img {
  filter: saturate(1.06) brightness(1.02);
}

.card-body {
  min-width: 0;
}

.test-card h3 {
  margin-top: 8px;
  font-size: 21px;
  line-height: 1.25;
  color: #2d251d;
}

.test-card p {
  margin-top: 9px;
  color: #5f554b;
}

.meta-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf0;
  color: #625548;
  font-size: 12px;
  font-weight: 800;
}

.pill.category {
  border-color: rgba(224, 169, 0, .36);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.primary-link,
.secondary-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-weight: 900;
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.primary-link {
  border: 1px solid #2d251d;
  background: #ffdf5d;
  color: #2d251d;
  box-shadow: 0 3px 0 rgba(45, 37, 29, .16);
}

.primary-link::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(110deg, transparent 36%, rgba(255, 255, 255, .62) 48%, transparent 60%);
  opacity: 0;
  transform: translateX(-40%);
}

.primary-link:hover,
.secondary-link:hover,
.site-header nav a:hover,
.site-footer nav a:hover {
  transform: translateY(-2px);
}

.primary-link:hover {
  box-shadow: 0 6px 0 rgba(45, 37, 29, .14), 0 12px 24px rgba(224, 169, 0, .18);
}

.primary-link:hover::after {
  animation: home-button-shine 620ms ease-out;
}

.secondary-link {
  border: 1px solid var(--line);
  background: #fff;
  color: #453a2f;
}

.disabled-link,
.secondary-link[aria-disabled="true"] {
  border-color: #d3d8df;
  background: #eef2f6;
  color: #7a8490;
  box-shadow: none;
  cursor: not-allowed;
}

.disabled-link:hover,
.secondary-link[aria-disabled="true"]:hover {
  transform: none;
}

.worldcup-home-block {
  padding: 34px 0 28px;
  border-top: 1px dashed rgba(139, 153, 168, .34);
}

.worldcup-home-card {
  position: relative;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 232px;
  padding: 16px;
  border: 1px solid var(--archive-line);
  border-radius: var(--radius);
  background: #f8fafc;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.worldcup-home-card.is-closed {
  background:
    linear-gradient(135deg, rgba(248, 250, 252, .86), rgba(229, 235, 242, .92)),
    #f3f6f9;
  box-shadow: 0 8px 18px rgba(84, 58, 22, .06);
  cursor: not-allowed;
}

.worldcup-home-card.is-closed::after {
  content: "서비스 종료";
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid rgba(122, 132, 144, .32);
  border-radius: 6px;
  background: rgba(255, 255, 255, .72);
  color: #6d7782;
  font-size: 12px;
  font-weight: 950;
}

.worldcup-home-card.is-closed .worldcup-home-copy,
.worldcup-home-card.is-closed .worldcup-home-visual {
  opacity: .58;
  filter: grayscale(.48) saturate(.52);
}

.worldcup-home-copy {
  min-width: 0;
  align-self: center;
}

.worldcup-home-card h3 {
  max-width: 720px;
  margin-top: 8px;
  color: #27313b;
  font-size: 25px;
  line-height: 1.18;
}

.worldcup-home-card p {
  max-width: 660px;
  margin-top: 9px;
  color: #5c6874;
}

.worldcup-home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.worldcup-home-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--archive-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .9);
  color: #52606d;
  font-size: 13px;
  font-weight: 850;
}

.worldcup-home-stats strong {
  margin-right: 4px;
  color: #1f7d55;
  font-size: 18px;
}

.worldcup-home-visual {
  display: block;
  min-height: 226px;
  border: 1px solid var(--archive-line);
  border-radius: var(--radius);
  background: #dfe8f1;
  overflow: hidden;
  filter: saturate(.74);
}

.worldcup-home-visual img {
  width: 100%;
  height: 100%;
  min-height: 226px;
  object-fit: cover;
}

.worldcup-home-visual:hover img {
  transform: scale(1.02);
}

.worldcup-home-visual img {
  transition: transform 180ms ease;
}

.worldcup-home-card.is-closed .worldcup-home-visual {
  pointer-events: none;
}

.ad-band {
  margin: 10px 0 18px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px dashed #dfca8c;
  border-radius: var(--radius);
  background: #fffaf0;
  color: var(--muted);
  font-size: 13px;
}

.ad-slot[hidden] {
  display: none !important;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.home-delight-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
}

.home-burst-ring,
.home-burst-spark {
  position: fixed;
  left: var(--x);
  top: var(--y);
  pointer-events: none;
  will-change: opacity, transform;
}

.home-burst-ring {
  width: 18px;
  height: 18px;
  border: 3px solid #ffdf5d;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 223, 93, .42);
  animation: home-burst-ring 520ms ease-out forwards;
}

.home-burst-spark {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 999px;
  background: var(--color, #ffdf5d);
  box-shadow: 0 0 14px var(--color, #ffdf5d);
  animation: home-burst-spark 600ms cubic-bezier(.16, .82, .25, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.home-burst-spark.star {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 56%, 79% 91%, 50% 70%, 21% 91%, 31% 56%, 2% 35%, 38% 34%);
}

@keyframes home-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes home-card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes home-mascot-hop {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  52% {
    transform: translateY(-7px) rotate(-2deg);
  }
}

@keyframes home-mascot-nod {
  0%,
  100% {
    transform: rotate(0deg);
  }
  48% {
    transform: rotate(-3deg);
  }
}

@keyframes home-pick-wiggle {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  48% {
    transform: rotate(2deg) scale(1.02);
  }
}

@keyframes home-button-shine {
  0% {
    opacity: 0;
    transform: translateX(-46%);
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(46%);
  }
}

@keyframes home-burst-ring {
  from {
    opacity: .9;
    transform: translate(-50%, -50%) scale(.25);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.8);
  }
}

@keyframes home-burst-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.35) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.16) rotate(180deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mascot,
  .hero-card,
  .mascot-card img,
  .mascot-card::before,
  body.home-ready .test-card,
  .primary-link::after,
  .home-burst-ring,
  .home-burst-spark {
    animation: none;
  }

  .primary-link,
  .secondary-link,
  .hub-sturgle-strip a,
  .personality-preview-grid a,
  .type-code-cloud a,
  .test-card,
  .card-image img,
  .worldcup-home-visual img {
    transition: none;
  }

  .home-delight-layer {
    display: none;
  }
}

@media (max-width: 980px) {
  body {
    background:
      linear-gradient(180deg, var(--deep) 0, var(--deep) 650px, #fbf7ec 650px, #fffdf8 100%);
  }

  .home-hero,
  .test-card,
  .worldcup-home-card {
    grid-template-columns: 1fr;
  }

  .theme-switcher {
    grid-template-columns: 1fr;
    margin-top: -8px;
  }

  .personality-preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .type-code-cloud {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .test-grid {
    grid-template-columns: 1fr;
  }

  .card-image {
    aspect-ratio: 16 / 9;
  }

  .card-image img {
    min-height: 0;
  }

  .worldcup-home-visual {
    min-height: 150px;
  }
}

@media (max-width: 700px) {
  body {
    background:
      linear-gradient(180deg, var(--deep) 0, var(--deep) 820px, #fbf7ec 820px, #fffdf8 100%);
  }

  .site-header,
  .section-head,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .site-header nav,
  .site-footer nav {
    justify-content: stretch;
  }

  .site-header nav a,
  .site-footer nav a,
  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .hub-sturgle-strip,
  .personality-preview-grid,
  .type-code-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .type-code-cloud a {
    min-height: 44px;
  }
}

/* Playful content-service pass */
:root {
  --ink: #2d251d;
  --muted: #6c5d50;
  --line: #ead7a4;
  --paper: #fff6df;
  --panel: #fffdfa;
  --brand: #ffd84d;
  --brand-strong: #8f6100;
  --brand-soft: #fff0a8;
  --mint: #25a58c;
  --mint-soft: #e0fbf4;
  --rose: #ff6c5f;
  --sky: #3d80d7;
  --green: #2f8a59;
  --deep: #24514d;
  --deep-2: #fff7de;
  --shadow: 0 14px 28px rgba(45, 37, 29, .12);
}

body {
  background:
    linear-gradient(90deg, rgba(255, 216, 77, .12) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, #fff7df 0, #fffdf7 48%, #f4fbf8 100%);
}

.site-header {
  position: relative;
  min-height: 76px;
  color: var(--ink);
}

.site-header nav a,
.site-footer nav a {
  border-color: rgba(45, 37, 29, .12);
  background: rgba(255, 255, 255, .82);
  color: #32281f;
  box-shadow: 0 3px 0 rgba(45, 37, 29, .08);
}

.brand-mascot {
  border-color: rgba(45, 37, 29, .16);
  background: #fff;
}

.home-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  align-items: center;
  padding: 32px 0 34px;
  color: var(--ink);
}

.home-hero::before {
  content: "NEW";
  position: absolute;
  top: 18px;
  left: 0;
  display: grid;
  place-items: center;
  width: 58px;
  height: 30px;
  border: 1px solid rgba(45, 37, 29, .18);
  border-radius: var(--radius);
  background: #ff6c5f;
  color: #fffaf0;
  font-size: 12px;
  font-weight: 950;
  transform: rotate(-5deg);
  box-shadow: 0 5px 0 rgba(45, 37, 29, .12);
}

.home-hero .eyebrow {
  color: #d98300;
}

.home-hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 6.2vw, 72px);
}

.home-hero .lead {
  max-width: 680px;
  color: #584a3d;
}

.hero-actions {
  gap: 10px;
}

.hero-card,
.hub-card {
  border-color: rgba(45, 37, 29, .14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 246, 214, .94)),
    #fff;
  box-shadow: 0 18px 38px rgba(45, 37, 29, .16);
  color: var(--ink);
}

.hero-card h2 {
  color: var(--ink);
}

.hub-card .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e65347;
}

.hub-card .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff5d54;
  box-shadow: 0 0 0 5px rgba(255, 93, 84, .16);
  animation: home-live-dot 1.5s ease-in-out infinite;
}

.popular-ranking-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.popular-ranking-list > a,
.popular-ranking-list > span,
.ranking-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 54px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 70px;
  padding: 8px;
  border: 1px solid rgba(45, 37, 29, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 6px 0 rgba(45, 37, 29, .06);
  overflow: hidden;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.popular-ranking-list > a:hover,
.ranking-item:hover,
.ranking-item.is-live {
  border-color: rgba(255, 108, 95, .48);
  box-shadow: 0 10px 0 rgba(255, 108, 95, .08), 0 14px 24px rgba(45, 37, 29, .12);
  transform: translateY(-2px);
}

.ranking-item.is-live::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 216, 77, .28) 50%, transparent 64%);
  transform: translateX(-100%);
  animation: home-ranking-scan 1.8s ease-out;
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 38px;
  border: 1px solid #2d251d;
  border-radius: var(--radius);
  background: #ffd84d;
  color: #2d251d;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 3px 0 rgba(45, 37, 29, .18);
}

.ranking-item img {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(45, 37, 29, .12);
  border-radius: var(--radius);
  background: #fff4c8;
  object-fit: cover;
}

.ranking-copy {
  min-width: 0;
}

.ranking-copy strong,
.ranking-copy small {
  display: block;
}

.ranking-copy strong {
  overflow: hidden;
  color: #2d251d;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-copy small {
  margin-top: 3px;
  color: #6b5d50;
  font-size: 12px;
  font-weight: 850;
}

.ranking-signal {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #e0fbf4;
  color: #147765;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.ranking-item.hot .ranking-signal {
  background: #ffe7e3;
  color: #d94538;
}

.ranking-item.new .ranking-signal {
  background: #eaf2ff;
  color: #2f6fc2;
}

.ranking-item.closed {
  background: #eef2f6;
  color: #6c7480;
  cursor: not-allowed;
  filter: grayscale(.35);
}

.ranking-item.closed .ranking-signal {
  background: #dde5ec;
  color: #65717d;
}

.hub-card .hub-rows {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-card .hub-rows div {
  background: rgba(255, 255, 255, .72);
}

.hub-card .hub-rows strong,
.hub-card .hub-rows div:first-child strong {
  color: #2d251d;
}

.hub-card .hub-rows span {
  color: #6b5d50;
}

.theme-switcher {
  grid-template-columns: 1fr;
  margin-top: 4px;
  border-color: rgba(45, 37, 29, .1);
  background: #fffdfa;
}

.theme-tab.active {
  background:
    linear-gradient(135deg, rgba(224, 251, 244, .94), rgba(255, 247, 218, .9) 55%, rgba(255, 231, 227, .78)),
    #fff;
}

.type-index-card[hidden] {
  display: none !important;
}

.merged-type-index {
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed rgba(45, 37, 29, .15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
}

.merged-type-index a {
  min-height: 42px;
  background: #fffdfa;
}

.theme-tab.active .personality-preview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.theme-tab.active .personality-preview-grid a {
  background: rgba(255, 255, 255, .82);
}

.theme-tab.active .personality-preview-grid span {
  display: grid;
  gap: 3px;
  min-height: 52px;
  padding: 8px 6px 9px;
  color: #254a46;
  background: rgba(255, 255, 255, .84);
  line-height: 1.15;
}

.theme-tab.active .personality-preview-grid strong,
.theme-tab.active .personality-preview-grid small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-tab.active .personality-preview-grid strong {
  font-size: 13px;
  font-weight: 950;
}

.theme-tab.active .personality-preview-grid small {
  color: #6b5d50;
  font-size: 11px;
  font-weight: 850;
  overflow: visible;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.active-theme-block {
  padding-top: 18px;
}

.test-card {
  border-color: rgba(45, 37, 29, .13);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 246, 218, .86)),
    #fff;
}

.test-card.popular {
  border-color: rgba(255, 108, 95, .42);
}

.test-card::before {
  content: "#" counter(test-rank);
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(45, 37, 29, .18);
  border-radius: var(--radius);
  background: #fff;
  color: #e65347;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(45, 37, 29, .08);
}

.test-grid {
  counter-reset: test-rank;
}

.test-card {
  counter-increment: test-rank;
}

.worldcup-home-block {
  opacity: .72;
}

@keyframes home-live-dot {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(.72);
  }
}

@keyframes home-ranking-scan {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-card .eyebrow::before,
  .ranking-item.is-live::after {
    animation: none;
  }
}

@media (max-width: 980px) {
  body {
    background:
      linear-gradient(90deg, rgba(255, 216, 77, .1) 1px, transparent 1px) 0 0 / 34px 34px,
      linear-gradient(180deg, #fff7df 0, #fffdf7 56%, #f4fbf8 100%);
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .theme-switcher {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .home-hero::before {
    top: 10px;
  }

  .home-hero {
    padding-top: 48px;
  }

  .home-hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .popular-ranking-list > a,
  .popular-ranking-list > span,
  .ranking-item {
    grid-template-columns: 30px 48px minmax(0, 1fr);
  }

  .ranking-signal {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .hub-card .hub-rows {
    grid-template-columns: 1fr;
  }
}

/* Theme directory and publish-aware worldcup home section */
.home-hero::before {
  display: none;
}

.theme-directory-block {
  padding: 18px 0 14px;
  scroll-margin-top: 18px;
}

.theme-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-choice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 5px 11px;
  align-items: center;
  min-width: 0;
  min-height: 118px;
  padding: 15px;
  border: 1px solid rgba(45, 37, 29, .16);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(45, 37, 29, .08);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.theme-choice.personality {
  background: #e6f8f1;
  border-color: rgba(37, 165, 140, .34);
}

.theme-choice.tests {
  background: #fff0eb;
  border-color: rgba(255, 108, 95, .34);
}

.theme-choice.worldcup {
  background: #eaf2ff;
  border-color: rgba(61, 128, 215, .32);
}

.theme-choice:not([aria-disabled="true"]):hover,
.theme-choice:not([aria-disabled="true"]):focus-visible {
  border-color: rgba(45, 37, 29, .38);
  box-shadow: 0 9px 0 rgba(45, 37, 29, .1), 0 16px 28px rgba(45, 37, 29, .1);
  transform: translateY(-3px);
}

.theme-choice-number {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 52px;
  border: 1px solid rgba(45, 37, 29, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  color: #66584c;
  font-size: 13px;
  font-weight: 950;
}

.theme-choice strong {
  min-width: 0;
  color: #2d251d;
  font-size: 21px;
  line-height: 1.2;
}

.theme-choice small {
  min-width: 0;
  color: #6b5d50;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.theme-choice-state {
  grid-column: 3;
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid rgba(45, 37, 29, .14);
  border-radius: 6px;
  background: rgba(255, 255, 255, .78);
  color: #453a2f;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.theme-choice.is-disabled {
  opacity: .58;
  filter: grayscale(.22);
  box-shadow: none;
  cursor: not-allowed;
}

.personality-theme-block,
.active-theme-block,
.worldcup-active-block {
  scroll-margin-top: 18px;
}

.personality-theme-block {
  padding-top: 16px;
}

.personality-theme-block .theme-switcher {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.worldcup-active-block {
  padding-top: 28px;
  border-top: 1px dashed rgba(61, 128, 215, .3);
}

.worldcup-card {
  border-color: rgba(61, 128, 215, .38);
  background: #f3f7ff;
}

.worldcup-card::before {
  color: #2f6fc2;
}

.ranking-item.worldcup .ranking-signal {
  background: #eaf2ff;
  color: #2f6fc2;
}

@media (max-width: 900px) {
  .theme-directory {
    grid-template-columns: 1fr;
  }

  .theme-choice {
    min-height: 96px;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
    gap: 8px;
    padding: 8px 0 10px;
  }

  .site-header nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .site-header nav a {
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 7px 4px;
    font-size: 12px;
    text-align: center;
  }

  .home-hero {
    padding-top: 28px;
  }

  .theme-tab.active .personality-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .theme-choice {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 108px;
    padding: 13px;
  }

  .theme-choice-number {
    width: 38px;
    height: 48px;
  }

  .theme-choice-state {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    min-height: 30px;
  }
}

/* Nearby food World Cup home surface */
.nearby-food-home {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 2px solid #201d19;
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 223, 93, .78) 0 9%, transparent 9.5%),
    linear-gradient(135deg, #fffaf0 0 54%, #eaf8f3 54% 100%);
  box-shadow: 0 12px 0 rgba(32, 29, 25, .12);
}

.nearby-food-home::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: 34%;
  bottom: -70px;
  border: 18px solid rgba(240, 100, 73, .16);
  border-radius: 50%;
  pointer-events: none;
}

.nearby-food-home-copy {
  position: relative;
  z-index: 1;
}

.nearby-food-home-copy h2 {
  max-width: 640px;
  margin: 12px 0 14px;
  font-size: clamp(34px, 4.7vw, 62px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.nearby-food-home-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: #5b544a;
  font-size: 16px;
  line-height: 1.72;
}

.nearby-food-demo-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 7px;
  padding: 4px 10px;
  border: 1px solid rgba(32, 29, 25, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: #5b544a;
  font-size: 11px;
  font-weight: 850;
}

.nearby-food-home-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 19px 0 22px;
  padding: 0;
  list-style: none;
}

.nearby-food-home-facts li {
  padding: 7px 10px;
  border: 1px solid rgba(32, 29, 25, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #423d36;
  font-size: 12px;
  font-weight: 800;
}

.nearby-food-home-start {
  min-height: 52px;
  padding-inline: 20px;
}

.nearby-food-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
}

.nearby-food-preview-card {
  min-width: 0;
  overflow: hidden;
  border: 2px solid #201d19;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 9px 0 rgba(32, 29, 25, .13);
}

.nearby-food-preview-card:first-child {
  transform: rotate(-2deg) translateY(-7px);
}

.nearby-food-preview-card:last-child {
  transform: rotate(2deg) translateY(10px);
}

.nearby-food-preview-visual {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 178px;
  padding: 18px;
  background: #f1ede4;
  color: #514b43;
  text-align: center;
}

.nearby-food-preview-card.has-photo .nearby-food-preview-visual {
  justify-items: start;
  align-content: end;
  background:
    linear-gradient(180deg, transparent 45%, rgba(25, 21, 16, .72)),
    url("./assets/worldcups/hangover-cure/01-kongnamul-guk.webp") center / cover no-repeat;
  color: #fff;
}

.nearby-food-preview-visual b {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 2px solid #201d19;
  border-radius: 22px;
  background: #ffdf5d;
  color: #201d19;
  font-size: 36px;
}

.nearby-food-preview-visual span {
  font-size: 11px;
  font-weight: 850;
}

.nearby-food-preview-copy {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.nearby-food-preview-copy small,
.nearby-food-preview-copy > span:not(.nearby-food-preview-button) {
  color: #6f675d;
  font-size: 11px;
}

.nearby-food-preview-copy strong {
  overflow: hidden;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-food-preview-button {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin-top: 8px;
  border: 2px solid #201d19;
  border-radius: 12px;
  background: #ffdf5d;
  color: #201d19;
  font-size: 12px;
  font-weight: 900;
}

.nearby-food-preview-vs {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-inline: -2px;
  border: 2px solid #201d19;
  border-radius: 50%;
  background: #f06449;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(32, 29, 25, .18);
}

@media (max-width: 980px) {
  .nearby-food-home {
    grid-template-columns: 1fr;
  }

  .nearby-food-preview {
    max-width: 650px;
  }
}

@media (max-width: 700px) {
  .site-header nav .nearby-food-nav {
    display: none;
  }

  .nearby-food-home {
    padding: 24px 18px 30px;
    border-radius: 25px;
  }

  .nearby-food-home-copy h2 {
    font-size: clamp(32px, 10vw, 44px);
  }
}

@media (max-width: 430px) {
  .nearby-food-preview {
    grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
  }

  .nearby-food-preview-vs {
    width: 36px;
    height: 36px;
    font-size: 10px;
  }

  .nearby-food-preview-visual {
    min-height: 132px;
    padding: 10px;
  }

  .nearby-food-preview-visual b {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    font-size: 27px;
  }

  .nearby-food-preview-copy {
    padding: 11px;
  }

  .nearby-food-preview-copy strong {
    font-size: 15px;
  }

  .nearby-food-preview-button {
    min-height: 44px;
    padding-inline: 4px;
    font-size: 10px;
  }
}

/* Personality home hub: type finder and related tests share one section. */
.personality-hub-heading {
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(37, 165, 140, .34);
}

.personality-hub-heading .pill {
  margin-bottom: 8px;
}

.personality-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
  gap: 28px;
  align-items: start;
}

.personality-finder,
.personality-tests-panel {
  min-width: 0;
}

.personality-panel-heading {
  min-height: 92px;
}

.personality-panel-heading h3 {
  margin-top: 4px;
  color: #2d251d;
  font-size: 22px;
  line-height: 1.25;
}

.personality-panel-heading p:not(.eyebrow) {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.personality-finder .personality-preview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.personality-finder .personality-preview-grid a {
  border-color: rgba(37, 165, 140, .24);
  background: #fffdfa;
  box-shadow: 0 5px 0 rgba(37, 81, 77, .07);
}

.personality-finder .personality-preview-grid span {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 8px 5px;
  color: #254a46;
  background: #fffdfa;
  line-height: 1.15;
}

.personality-finder .personality-preview-grid strong,
.personality-finder .personality-preview-grid small {
  display: block;
  min-width: 0;
}

.personality-finder .personality-preview-grid strong {
  font-size: 13px;
  font-weight: 950;
}

.personality-finder .personality-preview-grid small {
  color: #6b5d50;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.personality-tests-panel {
  padding-left: 28px;
  border-left: 1px dashed rgba(255, 108, 95, .36);
  scroll-margin-top: 18px;
}

.personality-test-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.personality-test-grid .test-card {
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 0;
  padding: 12px;
}

.personality-test-grid .test-card::before {
  display: none;
}

.personality-test-grid .card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.personality-test-grid .test-card h3 {
  font-size: 18px;
}

.personality-test-grid .test-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.personality-test-grid .primary-link {
  width: 100%;
  min-height: 44px;
}

@media (min-width: 981px) {
  .worldcup-grid .worldcup-card {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
  }

  .worldcup-grid .worldcup-card .card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #fff4c8;
  }

  .worldcup-grid .worldcup-card .card-image img {
    object-fit: contain;
  }
}

@media (max-width: 900px) {
  .personality-home-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .personality-tests-panel {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px dashed rgba(255, 108, 95, .36);
    border-left: 0;
  }

  .personality-panel-heading {
    min-height: 0;
  }

  .personality-test-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .personality-test-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .personality-finder .personality-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
