/* BeHaHaHappy — warm coral accent on ink, playful but not childish */

:root {
  --ink: #14110f;
  --ink-soft: #3a342e;
  --paper: #fff7ef;
  --paper-2: #ffe8d4;
  --coral: #ff5a36;
  --coral-deep: #e03d1c;
  --sun: #ffc14a;
  --mint: #2bb673;
  --line: rgba(20, 17, 15, 0.12);
  --shadow: 0 18px 50px rgba(20, 17, 15, 0.12);
  --radius: 20px;
  --font-display: "ZCOOL KuaiLe", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.55;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(255, 193, 74, 0.45), transparent 55%),
    radial-gradient(700px 480px at 100% 8%, rgba(255, 90, 54, 0.28), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #fff 45%, var(--paper-2) 100%);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.topbar,
.hero,
.play-zone,
.section,
.footer {
  position: relative;
  z-index: 1;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(12px);
  background: rgba(255, 247, 239, 0.82);
  border-bottom: 1px solid var(--line);
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(20, 17, 15, 0.18);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 0.9rem;
  font-size: 0.88rem;
}

.nav a {
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  color: var(--coral-deep);
}

/* —— Hero —— */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.hero-logo {
  width: clamp(88px, 18vw, 128px);
  height: auto;
  margin: 0 0 1.1rem;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  max-width: 12ch;
}

.hero-tag {
  margin: 1rem 0 0;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  color: var(--ink-soft);
  max-width: 18em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-orbit {
  position: absolute;
  inset: 10% 0 auto auto;
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  animation: float 7s ease-in-out infinite;
}

.orb-a {
  width: 58%;
  height: 58%;
  right: 8%;
  top: 12%;
  background: radial-gradient(circle at 30% 30%, var(--sun), var(--coral));
  opacity: 0.85;
}

.orb-b {
  width: 34%;
  height: 34%;
  left: 6%;
  bottom: 18%;
  background: radial-gradient(circle at 40% 40%, #7be0b0, var(--mint));
  animation-delay: -2s;
  opacity: 0.75;
}

.orb-c {
  width: 18%;
  height: 18%;
  right: 28%;
  bottom: 8%;
  background: var(--ink);
  animation-delay: -4s;
  opacity: 0.15;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* —— Play zone (bubble pop) —— */
.play-zone {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 2.5rem;
}

.play-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 0.75rem;
  position: relative;
  width: 100%;
  margin: 0 auto 0.65rem;
  padding: 0 0.15rem;
  min-height: 2rem;
}

.play-hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.3;
  justify-self: start;
}

.play-combo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.2rem 0.7rem 0.28rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe08a 0%, #ffb089 55%, #ff7a5a 100%);
  box-shadow: 3px 3px 0 rgba(20, 17, 15, 0.14);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  white-space: nowrap;
  transform-origin: center center;
  pointer-events: none;
}

.play-combo[hidden] {
  display: none !important;
}

.play-combo .combo-face {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 1px 0 rgba(20, 17, 15, 0.2);
  animation: combo-face-bounce 0.55s ease both;
}

.play-combo .combo-msg {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
}

.play-combo .combo-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  padding: 0.08rem 0.45rem 0.12rem;
  line-height: 1.2;
}

.play-combo .combo-num[hidden] {
  display: none !important;
}

.play-combo.is-hot {
  animation: combo-jelly 0.45s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.play-combo.is-lv2 {
  background: linear-gradient(135deg, #ffe9a8, #ffc14a);
}

.play-combo.is-lv3 {
  background: linear-gradient(135deg, #ffc14a, #ff8a4a);
}

.play-combo.is-lv4 {
  background: linear-gradient(135deg, #ff8a4a, #ff5a36 70%, #ffc14a);
  animation: combo-jelly 0.45s cubic-bezier(0.22, 1.4, 0.36, 1), combo-glow 1.1s ease-in-out infinite;
}

@keyframes combo-face-bounce {
  0% { transform: scale(0.4) rotate(-18deg); opacity: 0.2; }
  60% { transform: scale(1.25) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

@keyframes combo-jelly {
  0% { transform: translate(-50%, -50%) scale(0.86) rotate(-3deg); }
  45% { transform: translate(-50%, -50%) scale(1.12) rotate(3deg); }
  70% { transform: translate(-50%, -50%) scale(0.97) rotate(-1deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0); }
}

@keyframes combo-glow {
  0%, 100% { box-shadow: 3px 3px 0 rgba(20, 17, 15, 0.14), 0 0 0 rgba(255, 90, 54, 0); }
  50% { box-shadow: 3px 3px 0 rgba(20, 17, 15, 0.14), 0 0 16px rgba(255, 90, 54, 0.45); }
}

.play-status {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  margin: 0;
  line-height: 1.3;
  justify-self: end;
}

.play-score {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.play-score strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--coral-deep);
  font-weight: 400;
}

.play-field {
  --hand: url("../img/cursor-hand.png") 9 9;
  --hand-poke: url("../img/cursor-poke.png") 9 9;
  position: relative;
  height: min(38vh, 280px);
  min-height: 200px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(255, 193, 74, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(43, 182, 115, 0.15), transparent 50%),
    rgba(255, 255, 255, 0.55);
  box-shadow: 4px 4px 0 rgba(20, 17, 15, 0.08);
  cursor: var(--hand), pointer;
  touch-action: manipulation;
  user-select: none;
}

.play-field.is-poking,
.play-field.is-poking .bubble {
  cursor: var(--hand-poke), pointer;
}

.bubble {
  position: absolute;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 2.4vw, 0.95rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
  cursor: inherit;
  opacity: 0.92;
  box-shadow: 0 8px 20px rgba(20, 17, 15, 0.12);
  transition: opacity 0.12s ease;
  -webkit-appearance: none;
  appearance: none;
}

.bubble:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.bubble.is-pop {
  pointer-events: none;
  animation: pop-burst 0.32s ease-out forwards;
}

@keyframes pop-burst {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  55% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
  }
}

.pop-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: spark-fly 0.45s ease-out forwards;
}

.combo-float {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--coral-deep);
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  animation: combo-float-up 0.7s ease-out forwards;
}

.combo-float.is-bonus {
  font-size: 1.2rem;
  color: var(--coral);
}

@keyframes combo-float-up {
  0% {
    opacity: 1;
    transform: translate(-50%, -40%) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -120%) scale(1.15);
  }
}

@keyframes spark-fly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.3);
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  background: var(--coral-deep);
}

.btn-ghost {
  background: transparent;
  box-shadow: 3px 3px 0 rgba(20, 17, 15, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.55);
}

.btn-block {
  width: 100%;
}

/* —— Sections —— */
.section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.section-head p,
.contact-lead {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
}

/* —— Games —— */
.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .game-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(20, 17, 15, 0.16);
}

.game-card.is-coming {
  opacity: 0.72;
}

.game-cover {
  position: relative;
  min-height: 160px;
  display: grid;
  place-items: center;
  border-bottom: 2px solid var(--ink);
}

.game-card[data-tone="cyber"] .game-cover {
  background:
    linear-gradient(135deg, #0b1c2c 0%, #163a5c 45%, #00f5ff33 100%);
  color: #7ef9ff;
}

.game-card[data-tone="patch"] .game-cover {
  background:
    linear-gradient(135deg, #fff3c4 0%, #ffb4a2 55%, #ff7b64 100%);
  color: #5a2a1a;
}

.game-card[data-tone="pearl"] .game-cover {
  background:
    linear-gradient(135deg, #1a1230 0%, #4a2f6b 50%, #ffd6a0 120%);
  color: #ffd6a0;
}

.game-card[data-tone="northeast"] .game-cover {
  background:
    linear-gradient(135deg, #d9e8f5 0%, #8eb6d4 60%, #3d5a80 100%);
  color: #1b2a41;
}

.cover-glyph {
  font-size: 3rem;
  line-height: 1;
  user-select: none;
}

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  background: #fff;
  color: var(--ink);
}

.badge.live {
  background: var(--sun);
}

.badge.soon {
  background: #eee;
}

.game-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.game-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.game-meta {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.game-body > p:last-child {
  margin: 0;
  font-size: 0.95rem;
}

.game-search {
  margin: 0.85rem 0 0 !important;
  font-size: 0.88rem !important;
  color: var(--ink-soft);
}

.game-search strong {
  color: var(--coral-deep);
}

/* —— About —— */
.about-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-card {
  padding: 1.25rem 1.2rem;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.about-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* —— Gift code —— */
.gift-panel {
  display: grid;
  gap: 1.4rem;
  padding: 1.6rem 1.4rem;
  background: linear-gradient(135deg, rgba(255, 90, 54, 0.12), rgba(255, 193, 74, 0.22));
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .gift-panel {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.gift-eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.gift-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.gift-lead {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.gift-note {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.gift-code-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
}

.gift-code-box code {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 4.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  background: #fff;
  border: 2px dashed var(--coral);
  color: var(--ink);
}

/* —— Howto —— */
.howto-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .howto-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.howto-steps li {
  display: flex;
  gap: 0.85rem;
  padding: 1.15rem 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
}

.howto-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.howto-steps p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* —— News timeline —— */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.timeline time {
  font-weight: 800;
  color: var(--coral-deep);
  font-size: 0.9rem;
}

.timeline h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.timeline p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* —— Support (FAQ + feedback) —— */
.support-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.faq-panel {
  padding: 1.25rem 1.2rem 1.35rem;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.faq-panel-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: rgba(255, 247, 239, 0.65);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 0 0.9rem;
  box-sizing: border-box;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.75rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-toggle {
  flex-shrink: 0;
  color: var(--coral-deep);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
}

.faq-toggle::before {
  content: "+";
}

.faq-item[open] > summary .faq-toggle::before {
  content: "–";
}

.faq-item[open] {
  padding-bottom: 0.75rem;
}

.faq-item p {
  margin: 0;
  padding-bottom: 0.15rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (min-width: 860px) {
  .support-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
  }

  .faq-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .faq-list {
    flex: 1 1 auto;
  }
}

.feedback-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.footer-health {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* —— Contact —— */
.contact {
  padding-top: 2rem;
}

.contact-panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.4rem;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  color: var(--sun);
}

.contact-lead {
  color: rgba(255, 247, 239, 0.78);
}

.qr-box {
  display: flex;
  justify-content: center;
  margin-top: 1.4rem;
}

.qr-img {
  width: min(220px, 70vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: #fff;
  padding: 0.65rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.contact-hint {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 247, 239, 0.55);
  text-align: center;
}

/* —— Feedback —— */
.feedback-form {
  display: grid;
  gap: 1rem;
  max-width: none;
  width: 100%;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feedback-form label {
  display: grid;
  gap: 0.4rem;
}

.feedback-form label span {
  font-size: 0.9rem;
  font-weight: 700;
}

.feedback-form label em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: var(--coral);
}

.feedback-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* —— Footer —— */
.footer {
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
}

.footer-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.65rem;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(20, 17, 15, 0.14);
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.footer-copy {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-beian {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}

.footer-beian a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-beian a:hover {
  text-decoration: underline;
}

/* —— Toast —— */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 50;
  max-width: min(92vw, 420px);
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.28s ease, opacity 0.28s ease;
  opacity: 0;
}

.toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .orb,
  .game-card,
  .bubble,
  .pop-spark,
  .play-combo,
  .play-combo .combo-face,
  .play-combo .combo-num,
  .combo-float {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .bubble.is-pop {
    opacity: 0;
  }
}

@media (max-width: 719px) {
  .hero-orbit {
    opacity: 0.35;
    width: 200px;
    height: 200px;
    top: 4%;
  }

  .nav {
    gap: 0.7rem;
    font-size: 0.85rem;
  }
}
