* {
  box-sizing: border-box;
}

:root {
  --line: #365684;
  --text: #34517a;
  --muted: #6d88b0;
  --pink: #ff9fd2;
  --pink-deep: #f76bb3;
  --blue: #8ebcff;
  --blue-deep: #6494e8;
  --shadow: 0 24px 60px rgba(93, 135, 199, 0.18);
  --card: rgba(255, 255, 255, 0.82);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92), transparent 35%),
    linear-gradient(180deg, #c8e6ff 0%, #dff1ff 32%, #f7fbff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.7) 1.2px, transparent 1.2px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 58%);
  background-size: 34px 34px, auto;
  pointer-events: none;
  opacity: 0.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  padding: 18px;
  border: 2px solid rgba(53, 85, 130, 0.9);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.42)),
    linear-gradient(135deg, rgba(255, 160, 218, 0.22), rgba(142, 188, 255, 0.2));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(16px);
  pointer-events: none;
}

.page-shell::before {
  width: 150px;
  height: 150px;
  right: -46px;
  top: -42px;
}

.page-shell::after {
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: 80px;
}

.pixel {
  position: absolute;
  width: 88px;
  height: 88px;
  opacity: 0.58;
  background-image:
    linear-gradient(#fff 0 0),
    linear-gradient(#fff 0 0),
    linear-gradient(#fff 0 0),
    linear-gradient(#fff 0 0),
    linear-gradient(#fff 0 0);
  background-repeat: no-repeat;
}

.pixel-a {
  top: 180px;
  right: 26px;
  background-size: 18px 18px, 18px 18px, 18px 18px, 18px 18px, 18px 18px;
  background-position: 0 18px, 18px 0, 18px 18px, 18px 36px, 36px 18px;
}

.pixel-b {
  left: -8px;
  top: 420px;
  transform: scale(0.8);
  background-size: 16px 16px, 16px 16px, 16px 16px, 16px 16px, 16px 16px;
  background-position: 0 16px, 16px 0, 16px 16px, 16px 32px, 32px 16px;
}

.pixel-c {
  right: 110px;
  bottom: 160px;
  transform: scale(0.7);
  background-size: 14px 14px, 14px 14px, 14px 14px, 14px 14px, 14px 14px;
  background-position: 0 14px, 14px 0, 14px 14px, 14px 28px, 28px 14px;
}

.ambient-mascot {
  position: absolute;
  pointer-events: none;
  opacity: 0.88;
  filter: drop-shadow(0 16px 22px rgba(109, 161, 233, 0.14));
}

.ambient-one {
  width: 170px;
  top: 130px;
  right: -34px;
  transform: rotate(12deg);
}

.ambient-two {
  width: 180px;
  left: -52px;
  bottom: 240px;
  transform: rotate(-8deg);
}

.ambient-three {
  width: 96px;
  right: 36px;
  bottom: 34px;
}

.topbar,
.hero-panel,
.rules-layout,
.reserve-grid,
.delivery-grid,
.page-header,
.home-links-grid {
  display: grid;
  gap: 18px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 12px 18px;
  position: relative;
  z-index: 3;
}

.brand,
.eyebrow,
.section-chip,
.pill,
.mini-pill,
.screen-label,
.reserve-badge,
.sticker-tag,
.social-title,
.ticket-title,
.home-link-tag {
  font-family: "Baloo 2", sans-serif;
  letter-spacing: 0.02em;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a,
.pill,
.mini-pill,
.section-chip,
.tag,
.screen-label,
.reserve-badge,
.home-link-tag {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.96rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 6px 16px rgba(93, 135, 199, 0.14);
}

.nav-links a.active {
  background: linear-gradient(180deg, #ffc0e3, #ff9fd2);
}

.nav-links a.nav-featured {
  margin-left: 8px;
  background: linear-gradient(180deg, #fff6bf, #ffd9ef);
  box-shadow: 0 8px 18px rgba(247, 107, 179, 0.2);
}

.nav-links a.nav-featured.active {
  background: linear-gradient(180deg, #ff9fd2, #ffe68f);
}

.content {
  display: grid;
  gap: 22px;
}

.hero-panel {
  grid-template-columns: 1.05fr 0.95fr;
}

.card,
.panel,
.widget,
.home-link-card {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(93, 135, 199, 0.12);
}

.card,
.panel,
.widget {
  padding: 24px;
}

.soft-grid {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(235, 246, 255, 0.76)),
    linear-gradient(90deg, rgba(197, 224, 255, 0.35) 1px, transparent 1px),
    linear-gradient(rgba(197, 224, 255, 0.35) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 440px;
  border-width: 10px;
  border-color: #ffb2de;
}

.pill {
  width: fit-content;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 800;
}

.hero-copy h1,
.page-header h1 {
  margin: 16px 0 8px;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.92;
}

.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.hero-copy p,
.page-header p,
.section-heading p,
.home-link-card p,
.social-copy p:last-child {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.button.pink {
  background: linear-gradient(180deg, #ffc0e3, #ff9fd2);
}

.button.blue {
  background: linear-gradient(180deg, #bcd9ff, #90bfff);
}

.hero-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 440px;
  background:
    linear-gradient(180deg, rgba(185, 220, 255, 0.84), rgba(230, 244, 255, 0.7)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.status-bar {
  display: flex;
  gap: 10px;
}

.mini-pill {
  padding: 6px 14px;
  font-size: 0.92rem;
  font-weight: 800;
}

.mini-pill.alt {
  background: rgba(255, 214, 238, 0.9);
}

.mascot-cluster {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-main {
  width: min(100%, 360px);
  z-index: 2;
  filter: drop-shadow(0 16px 22px rgba(95, 146, 222, 0.18));
}

.mascot-float {
  position: absolute;
  width: 120px;
}

.mascot-float.left {
  left: 6%;
  bottom: 8%;
  transform: rotate(-12deg);
}

.mascot-float.right {
  right: 8%;
  top: 10%;
  transform: rotate(10deg);
}

.hero-note {
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.8);
}

.hero-note strong {
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.15rem;
}

.hero-note p {
  margin-top: 2px;
}

.monthly-star-panel {
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(255, 246, 252, 0.96), rgba(225, 242, 255, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 159, 210, 0.16) 0 12px, transparent 12px 24px);
}

.monthly-star-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: center;
  padding: 30px;
}

.monthly-star-wrap::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(54, 86, 132, 0.35);
  border-radius: 24px;
  pointer-events: none;
}

.monthly-image-frame {
  position: relative;
  width: min(100%, 390px);
  justify-self: center;
  isolation: isolate;
}

.monthly-image-frame::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border: 2px solid var(--line);
  border-radius: 36px;
  background: conic-gradient(from 0deg, #ff9fd2, #ffe8f5, #8ebcff, #ffffff, #ff9fd2);
  animation: monthly-glow 5s linear infinite;
}

.monthly-image-card {
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 34px rgba(93, 135, 199, 0.2);
  animation: monthly-float 3.8s ease-in-out infinite;
}

.monthly-image-card img {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid rgba(54, 86, 132, 0.35);
  border-radius: 24px;
  object-fit: cover;
  background: #fff;
}

.sparkle {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: #fff7bf;
  transform: rotate(45deg);
  animation: sparkle-pop 1.9s ease-in-out infinite;
}

.sparkle-one {
  top: -20px;
  right: 34px;
}

.sparkle-two {
  left: -8px;
  bottom: 56px;
  width: 14px;
  height: 14px;
  animation-delay: 0.45s;
}

.sparkle-three {
  right: -10px;
  bottom: 118px;
  width: 12px;
  height: 12px;
  background: #cfe6ff;
  animation-delay: 0.9s;
}

.monthly-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-content: center;
}

.monthly-copy h2 {
  margin: 0;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.92;
  color: var(--pink-deep);
}

.monthly-copy p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.monthly-copy strong {
  color: var(--line);
}

.point-badge {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 10px;
  align-items: center;
  width: fit-content;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff6bf, #ffe6f4);
  box-shadow: 0 10px 22px rgba(93, 135, 199, 0.14);
}

.point-badge span {
  font-family: "Baloo 2", sans-serif;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 0.9;
}

.point-badge p {
  color: var(--line);
  font-weight: 800;
}

.thanks-card {
  max-width: 570px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 236, 247, 0.86)),
    linear-gradient(90deg, rgba(142, 188, 255, 0.2), transparent 48%);
}

.thanks-card strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.25rem;
}

.home-links-panel {
  padding-top: 28px;
}

.center {
  text-align: center;
}

.section-chip {
  display: inline-flex;
  padding: 6px 16px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 800;
}

.section-heading h2,
.home-link-card h3 {
  margin: 0;
  font-family: "Baloo 2", sans-serif;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.home-links-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-link-card {
  display: block;
  padding: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.home-link-card h3 {
  margin-top: 14px;
  font-size: 1.8rem;
}

.home-link-tag {
  display: inline-flex;
  padding: 6px 14px;
  font-size: 0.92rem;
  font-weight: 800;
}

.reserve-theme {
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(235,245,255,.84));
}

.delivery-theme {
  background: linear-gradient(180deg, rgba(205,230,255,.95), rgba(237,248,255,.88));
}

.socials-theme {
  background: linear-gradient(180deg, rgba(255,245,250,.95), rgba(235,245,255,.84));
}

.page-header {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.page-layout {
  display: grid;
  gap: 18px;
}

.rules-layout {
  grid-template-columns: 1.1fr 1fr 0.72fr;
}

.reserve-grid,
.delivery-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.widget {
  overflow: hidden;
}

.widget-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tag {
  padding: 7px 14px;
  font-size: 0.95rem;
  font-weight: 800;
}

.bookmark {
  width: 18px;
  height: 44px;
  border: 2px solid var(--line);
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #ffb9de, #ff91c9);
}

.rule-list,
.reserve-list,
.delivery-list,
.bubble-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.55;
}

.rule-list li,
.reserve-list li,
.delivery-list li,
.bubble-list li {
  margin-bottom: 10px;
}

.rules-book {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(235, 246, 255, 0.75)),
    linear-gradient(90deg, rgba(255, 176, 221, 0.22), transparent 35%);
}

.rules-screen,
.delivery-terminal {
  background:
    linear-gradient(180deg, rgba(162, 207, 255, 0.95), rgba(211, 235, 255, 0.88)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 30%);
}

.screen-label,
.reserve-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 800;
}

.rules-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 235, 247, 0.78));
}

.section-mascot {
  width: 180px;
}

.secret-box,
.warning-box,
.sticker-card,
.quota-item {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
}

.secret-box {
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(255, 236, 246, 0.95), rgba(255, 255, 255, 0.85));
}

.secret-box p {
  margin: 0;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.25rem;
  color: var(--blue-deep);
  text-align: center;
}

.warning-box {
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(255, 209, 224, 0.98), rgba(255, 238, 246, 0.88));
}

.warning-box h3 {
  margin: 0 0 8px;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--pink-deep);
}

.warning-box p,
.sticker-card p,
.reserve-ticket p {
  margin: 0;
  line-height: 1.55;
}

.reserve-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 255, 0.8)),
    linear-gradient(90deg, rgba(142, 188, 255, 0.2), transparent 40%);
}

.ticket-title {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 800;
}

.quota-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.quota-item {
  padding: 12px;
  text-align: center;
}

.quota-item.alt,
.sticker-card.alt {
  background: rgba(226, 241, 255, 0.94);
}

.quota-number {
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.quota-label {
  display: block;
  font-weight: 800;
}

.reserve-mascot,
.delivery-mascot,
.social-mascot {
  margin: 18px auto 0;
}

.reserve-mascot {
  width: 160px;
}

.terminal-head {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.terminal-head span {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
}

.delivery-stickers {
  display: grid;
  gap: 12px;
  align-content: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 248, 0.8));
}

.sticker-card {
  padding: 14px;
}

.sticker-tag {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 5px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 800;
}

.delivery-mascot {
  width: min(100%, 220px);
}

.social-single {
  display: grid;
}

.social-card {
  display: grid;
  grid-template-columns: auto 1fr 210px;
  align-items: center;
  gap: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(229, 243, 255, 0.82)),
    linear-gradient(90deg, rgba(255, 176, 221, 0.18), transparent 50%);
}

.social-icon {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border: 2px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, #ffbfd9, #ffdff0);
}

.social-icon svg {
  width: 38px;
  fill: var(--line);
}

.social-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
}

.social-copy a {
  display: inline-block;
  margin-bottom: 8px;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
}

.social-mascot {
  width: 190px;
}

@media (max-width: 980px) {
  .topbar,
  .hero-panel,
  .page-header,
  .rules-layout,
  .reserve-grid,
  .delivery-grid,
  .social-card,
  .home-links-grid,
  .monthly-star-wrap {
    grid-template-columns: 1fr;
  }

  .social-card {
    text-align: center;
  }

  .social-icon,
  .social-mascot {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 16px, 100%);
    margin: 8px auto 18px;
    padding: 12px;
    border-radius: 24px;
  }

  .topbar {
    padding: 8px 4px 14px;
  }

  .nav-links a {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }

  .nav-links a.nav-featured {
    flex-basis: 100%;
    margin-left: 0;
  }

  .card,
  .panel,
  .widget,
  .home-link-card {
    border-radius: 24px;
  }

  .card,
  .panel,
  .widget {
    padding: 18px;
  }

  .hero-copy {
    min-height: auto;
    border-width: 8px;
  }

  .hero-copy h1,
  .page-header h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .quota-box {
    grid-template-columns: 1fr;
  }

  .mascot-float {
    width: 92px;
  }

  .ambient-one,
  .ambient-two {
    width: 120px;
  }

  .ambient-three {
    width: 72px;
  }

  .monthly-star-wrap {
    padding: 22px;
  }

  .monthly-star-wrap::before {
    inset: 10px;
    border-radius: 20px;
  }

  .monthly-image-frame {
    width: min(100%, 300px);
  }

  .monthly-copy {
    text-align: center;
    justify-items: center;
  }

  .monthly-copy h2 {
    font-size: clamp(2.4rem, 15vw, 3.8rem);
  }

  .section-mascot,
  .social-mascot {
    width: 150px;
  }
}
@keyframes monthly-glow {
  to {
    transform: rotate(360deg);
  }
}
@keyframes monthly-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}
@keyframes sparkle-pop {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.86) rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.12) rotate(45deg);
  }
}
@keyframes fade-up-soft {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-panel > *,
.panel,
.rules-layout > *,
.reserve-grid > *,
.delivery-grid > *,
.social-single > *,
.home-links-grid > * {
  animation: fade-up-soft 620ms ease both;
}

.hero-panel > *:first-child,
.page-header,
.panel {
  animation-delay: 60ms;
}

.hero-panel > *:last-child,
.rules-layout > *:nth-child(1),
.reserve-grid > *:nth-child(1),
.delivery-grid > *:nth-child(1),
.social-single > * {
  animation-delay: 120ms;
}

.rules-layout > *:nth-child(2),
.reserve-grid > *:nth-child(2),
.delivery-grid > *:nth-child(2),
.home-links-grid > *:nth-child(1) {
  animation-delay: 180ms;
}

.rules-layout > *:nth-child(3),
.home-links-grid > *:nth-child(2) {
  animation-delay: 240ms;
}

.home-links-grid > *:nth-child(3) {
  animation-delay: 300ms;
}

.home-links-grid > *:nth-child(4) {
  animation-delay: 360ms;
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel > *,
  .panel,
  .rules-layout > *,
  .reserve-grid > *,
  .delivery-grid > *,
  .social-single > *,
  .home-links-grid > *,
  .monthly-image-frame::before,
  .monthly-image-card,
  .sparkle {
    animation: none;
  }
}

.game-theme {
  background: linear-gradient(180deg, rgba(255, 246, 191, 0.95), rgba(235, 245, 255, 0.86));
}

.game-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  align-items: start;
}

.game-accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 239, 248, 0.78)),
    linear-gradient(90deg, rgba(255, 230, 143, 0.42), transparent 46%);
}

.game-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 247, 255, 0.82)),
    linear-gradient(90deg, rgba(255, 159, 210, 0.16), transparent 44%);
}

.game-progress {
  height: 18px;
  margin-bottom: 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.game-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9fd2, #ffe68f, #8ebcff);
  transition: width 220ms ease;
}

.question-stack {
  display: grid;
  gap: 14px;
}

.question-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.question-card legend {
  padding: 0 8px;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--line);
}

.question-card label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid rgba(54, 86, 132, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.question-card label:has(input:checked) {
  border-color: var(--line);
  background: linear-gradient(180deg, #ffd8ed, #edf6ff);
}

.question-card input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--pink-deep);
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.game-actions .button {
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.result-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 246, 252, 0.94), rgba(226, 241, 255, 0.84)),
    repeating-linear-gradient(135deg, rgba(255, 159, 210, 0.14) 0 10px, transparent 10px 20px);
}

.result-mascot {
  width: min(100%, 230px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(95, 146, 222, 0.16));
}

.result-card h2 {
  margin: 0;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--pink-deep);
}

.result-card p {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}

.result-mission p {
  color: var(--blue-deep);
}

.result-card.is-complete .result-mascot {
  animation: monthly-float 3.2s ease-in-out infinite;
}

.game-layout > * {
  animation: fade-up-soft 620ms ease both;
}

.game-layout > *:first-child {
  animation-delay: 120ms;
}

.game-layout > *:last-child {
  animation-delay: 200ms;
}

@media (max-width: 980px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .result-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .game-actions .button {
    width: 100%;
  }

  .question-card {
    padding: 14px;
  }

  .question-card legend {
    font-size: 1.12rem;
  }
}

.games-hub-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(232, 245, 255, 0.78)),
    linear-gradient(90deg, rgba(255, 230, 143, 0.28), transparent 52%);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.game-launch-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(93, 135, 199, 0.12);
}

.game-launch-card img {
  width: min(100%, 180px);
  aspect-ratio: 1;
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(95, 146, 222, 0.15));
}

.game-launch-card h3 {
  margin: 0;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.game-launch-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.locked-game {
  opacity: 0.78;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 239, 248, 0.74));
}

.locked-game.alt {
  background: linear-gradient(180deg, rgba(235, 245, 255, 0.84), rgba(255, 246, 191, 0.64));
}

.closed-quiz-note {
  display: none;
  margin-top: 8px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 246, 191, 0.92), rgba(255, 239, 248, 0.84));
}

.closed-quiz-note strong {
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.25rem;
}

.closed-quiz-note p {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

[data-ternurin-game] [data-game-reset] {
  display: none;
}

[data-ternurin-game].is-finished .question-stack,
[data-ternurin-game].is-finished .game-progress,
[data-ternurin-game].is-finished [data-game-submit] {
  display: none;
}

[data-ternurin-game].is-finished .closed-quiz-note,
[data-ternurin-game].is-finished [data-game-reset] {
  display: grid;
}

@media (max-width: 980px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

.netlify-hidden-form {
  display: none;
}
