/* ================================================================
   LUCKFROG — Modern Mysticism · Chinese Aesthetics
   ================================================================ */

/* ── Tokens ── */
:root {
  --bg:          #07050d;
  --bg2:         #0e0c1a;
  --surface:     #12101e;
  --surface2:    #1a1728;
  --gold:        #c9a84c;
  --gold-bright: #f0c040;
  --gold-dim:    rgba(201,168,76,0.15);
  --red:         #c1121f;
  --red-bright:  #e5303f;
  --jade:        #29b865;
  --jade-bright: #4de888;
  --jade-dim:    rgba(41,184,101,0.12);
  --purple:      #8b5cf6;
  --text:        #e8dcc8;
  --text-dim:    #8a7a68;
  --text-faint:  #4a4038;
  --serif:       'Noto Serif SC', Georgia, serif;
  --display:     'Cinzel', Georgia, serif;
  --ease-silk:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #07050d;
  color: var(--text);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
img, svg { display: block; }

/* ── Background atmosphere ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 50% 38%, rgba(41,184,101,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(140,20,20,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 10% 0%,  rgba(90,50,180,0.08) 0%, transparent 50%),
    linear-gradient(170deg, #0c0920 0%, #07050d 45%, #0a0608 100%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle gold lattice */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient( 45deg, rgba(201,168,76,0.025) 0, rgba(201,168,76,0.025) 1px, transparent 0, transparent 28px),
    repeating-linear-gradient(-45deg, rgba(201,168,76,0.025) 0, rgba(201,168,76,0.025) 1px, transparent 0, transparent 28px);
  pointer-events: none;
  z-index: 0;
}

/* All real content above pseudo-elements */
.particles, header, main, .answer-sheet, .backdrop, footer { position: relative; z-index: 1; }

/* ── Particles ── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.pt {
  position: absolute;
  left: var(--x, 50%);
  bottom: -6px;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: pt-rise var(--d, 10s) var(--delay, 0s) infinite ease-in-out;
}
@keyframes pt-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: 0.65; }
  88%  { opacity: 0.2; }
  100% { transform: translateY(calc(-100dvh - 20px)) translateX(18px); opacity: 0; }
}

/* ── Backdrop ── */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 10, 0.55);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201,168,76,0.35);
  text-decoration: none;
  outline: none;
}
.logo:hover, .logo:focus { text-decoration: none; }

.header-luck {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--display);
  font-size: 13px;
}
.luck-num {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-bright);
}
.luck-divider { color: rgba(232,220,200,0.45); font-size: 13px; }
.mood-pill {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
  padding: 2px 8px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  color: var(--gold);
  margin-left: 4px;
  transition: color 0.5s, border-color 0.5s;
}

/* Luck bar */
.luck-bar-wrap {
  flex: 0 0 auto;
  height: 2px;
  background: rgba(201,168,76,0.08);
}
.luck-bar {
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 1.2s var(--ease-silk), background 1s ease;
  box-shadow: 0 0 8px var(--gold);
}

/* ================================================================
   ORACLE STAGE
   ================================================================ */
.oracle-stage {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 16px;
  min-height: 0;
  overflow: hidden;
}

/* Greeting */
.greeting {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-align: center;
  min-height: 18px;
  opacity: 0;
  animation: fade-in 0.9s 0.6s var(--ease-silk) forwards;
}
@keyframes fade-in { to { opacity: 1; } }

/* ================================================================
   FROG AREA
   ================================================================ */
.frog-area {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  width: 100%;
}

/* Oracle circle: the ring + frog container */
.oracle-circle {
  position: relative;
  width:  min(218px, calc(100dvh - 348px));
  height: min(218px, calc(100dvh - 348px));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Ambient glow behind frog */
.oracle-circle::before {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,184,101,0.1) 0%, transparent 70%);
  animation: glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

/* Compass ring SVG */
.ring-deco {
  position: absolute;
  inset: -18px;
  width:  calc(100% + 36px);
  height: calc(100% + 36px);
  pointer-events: none;
  animation: ring-rotate 80s linear infinite;
}
@keyframes ring-rotate { to { transform: rotate(360deg); } }

/* Frog SVG */
#frog-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 18px rgba(41,184,101,0.28));
  transition: filter 0.5s ease;
}

/* ── Mouths: all hidden by default ── */
.mouth { display: none; }

/* ── Overlay elements: all hidden by default ── */
.frog-sparkles,
.frog-crown,
.frog-zzz,
.frog-sweat,
.frog-think-bubble { display: none; }

/* ── State: idle ── */
[data-state="idle"] .mouth-happy { display: block; }
[data-state="idle"] #frog-svg { animation: breathe 3.5s ease-in-out infinite; }

/* ── State: thinking ── */
[data-state="thinking"] .mouth-neutral { display: block; }
[data-state="thinking"] .frog-think-bubble { display: block; animation: bubble-in 0.25s var(--ease-spring); }
[data-state="thinking"] .pupil-l,
[data-state="thinking"] .pupil-r { animation: dart 0.9s ease-in-out infinite; }
[data-state="thinking"] #frog-svg { animation: sway 1.2s ease-in-out infinite; }

/* ── State: processing ── */
[data-state="processing"] .mouth-neutral { display: block; }
[data-state="processing"] .frog-sweat { display: block; animation: sweat-fall 0.7s ease-in-out infinite; }
[data-state="processing"] .pupil-l,
[data-state="processing"] .pupil-r { animation: look-up 0.4s ease forwards; }

/* ── State: croaking ── */
[data-state="croaking"] .mouth-open { display: block; }
[data-state="croaking"] #frog-svg { animation: croak-pulse 0.35s ease-in-out infinite; }

/* ── State: blinking ── */
[data-state="blinking"] .mouth-happy { display: block; }
[data-state="blinking"] .eye-l,
[data-state="blinking"] .eye-r { animation: blink 0.28s ease forwards; }

/* ── State: yes ── */
[data-state="yes"] .mouth-open { display: block; }
[data-state="yes"] .frog-sparkles { display: block; animation: sparkle-in 0.5s var(--ease-spring); }
[data-state="yes"] #frog-svg {
  animation: jade-bounce 0.75s var(--ease-spring);
  filter: drop-shadow(0 0 32px rgba(41,184,101,0.55));
}

/* ── State: no ── */
[data-state="no"] .mouth-sad { display: block; }
[data-state="no"] #frog-svg {
  animation: reluctant-shake 0.6s ease;
  filter: drop-shadow(0 0 24px rgba(193,18,31,0.4));
}

/* ── State: maybe ── */
[data-state="maybe"] .mouth-neutral { display: block; }
[data-state="maybe"] #frog-svg { animation: tilt 0.9s ease; }

/* ── State: happy ── */
[data-state="happy"] .mouth-happy { display: block; }
[data-state="happy"] #frog-svg {
  animation: breathe 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(41,184,101,0.4));
}

/* ── State: euphoric ── */
[data-state="euphoric"] .mouth-open { display: block; }
[data-state="euphoric"] .frog-sparkles { display: block; animation: sparkle-float 2s ease-in-out infinite alternate; }
[data-state="euphoric"] #frog-svg {
  animation: euphoric-lift 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(240,192,64,0.5));
}

/* ── State: tired ── */
[data-state="tired"] .mouth-neutral { display: block; }
[data-state="tired"] .pupil-l,
[data-state="tired"] .pupil-r { transform: translateY(5px); }

/* ── State: grumpy ── */
[data-state="grumpy"] .mouth-sad { display: block; }
[data-state="grumpy"] #frog-svg { filter: drop-shadow(0 0 18px rgba(193,18,31,0.28)); }

/* ── State: sleeping ── */
[data-state="sleeping"] .mouth-neutral { display: block; }
[data-state="sleeping"] .frog-zzz { display: block; animation: zzz-drift 2.2s ease-in-out infinite; }
[data-state="sleeping"] .eye-l,
[data-state="sleeping"] .eye-r { animation: blink 0s forwards; transform-origin: center; transform: scaleY(0.08); }
[data-state="sleeping"] .pupil-l,
[data-state="sleeping"] .pupil-r { opacity: 0; }

/* Crown on streak */
#frog-svg.crowned .frog-crown { display: block; }

/* ── Keyframes ── */
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-6px) scale(1.015); }
}
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  30%       { transform: rotate(-1.5deg); }
  70%       { transform: rotate(1.5deg); }
}
@keyframes dart {
  0%   { transform: translate(0, 0); }
  18%  { transform: translate(-8px, -2px); }
  38%  { transform: translate(8px, 0); }
  58%  { transform: translate(2px, -7px); }
  78%  { transform: translate(-5px, 4px); }
  100% { transform: translate(0, 0); }
}
@keyframes look-up { to { transform: translateY(-6px); } }
@keyframes croak-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04, 0.97); }
}
@keyframes blink {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.07); }
}
@keyframes jade-bounce {
  0%   { transform: translateY(0) scale(1); }
  22%  { transform: translateY(-28px) scale(1.05, 0.95); }
  42%  { transform: translateY(5px) scale(0.96, 1.05); }
  62%  { transform: translateY(-12px) scale(1.025); }
  80%  { transform: translateY(0) scale(1); }
  90%  { transform: translateY(-5px); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes reluctant-shake {
  0%   { transform: translateX(0) rotate(0deg); }
  18%  { transform: translateX(-10px) rotate(-2deg); }
  36%  { transform: translateX(10px) rotate(2deg); }
  54%  { transform: translateX(-7px) rotate(-1deg); }
  72%  { transform: translateX(7px) rotate(1deg); }
  100% { transform: translateX(0) rotate(0deg); }
}
@keyframes tilt {
  0%, 100% { transform: rotate(0deg); }
  30%       { transform: rotate(-3deg); }
  65%       { transform: rotate(3deg); }
}
@keyframes euphoric-lift {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  35%       { transform: translateY(-16px) rotate(-1deg) scale(1.03); }
  65%       { transform: translateY(-8px) rotate(1deg) scale(1.02); }
}
@keyframes sparkle-in {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes sparkle-float {
  from { transform: translateY(0) rotate(-5deg); }
  to   { transform: translateY(-10px) rotate(5deg); }
}
@keyframes bubble-in {
  from { opacity: 0; transform: scale(0.5) translate(10px, 10px); }
  to   { opacity: 1; transform: scale(1) translate(0, 0); }
}
@keyframes sweat-fall {
  0%   { transform: translateY(0); opacity: 0.8; }
  100% { transform: translateY(12px); opacity: 0; }
}
@keyframes zzz-drift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  20%  { opacity: 0.8; }
  80%  { opacity: 0.4; }
  100% { transform: translateY(-28px) translateX(8px); opacity: 0; }
}

/* ── Mood row ── */
.mood-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-style: italic;
  min-height: 20px;
  font-family: var(--serif);
}
.mood-emoji { font-size: 14px; font-style: normal; }

/* ================================================================
   ASK AREA
   ================================================================ */
.ask-area {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.ask-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-row { position: relative; }

.question-input {
  width: 100%;
  background: rgba(18,16,30,0.8);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  backdrop-filter: blur(6px);
}
.question-input::placeholder { color: rgba(232,220,200,0.3); font-style: italic; }
.question-input:focus {
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.07), 0 0 20px rgba(201,168,76,0.1);
}
.question-input.shake { animation: input-shake 0.4s ease; }
@keyframes input-shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

.ask-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(201,168,76,0.9) 0%, rgba(180,140,50,0.9) 100%);
  border: 1px solid rgba(201,168,76,0.6);
  border-radius: 4px;
  color: #0a0608;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201,168,76,0.2);
}
.ask-btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(201,168,76,0.35);
}
.ask-btn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.ask-btn:disabled {
  background: rgba(60,55,75,0.7);
  color: rgba(232,220,200,0.35);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
}

/* Mini stats — hidden from view, kept in DOM for JS tracking */
.mini-stats { display: none; }

/* ================================================================
   ANSWER SHEET
   ================================================================ */
.answer-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, #16132a 0%, #110f1e 100%);
  border-top: 1px solid rgba(201,168,76,0.25);
  border-radius: 16px 16px 0 0;
  max-height: 58dvh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-silk);
  box-shadow: 0 -20px 60px rgba(0,0,0,0.6), 0 -1px 0 rgba(201,168,76,0.1);
  will-change: transform;
}
.answer-sheet.open { transform: translateY(0); }

/* Top decorative border */
.answer-sheet::before {
  content: '◆ ─────────── 🐸 ─────────── ◆';
  display: block;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(201,168,76,0.4);
  padding: 0 20px;
  margin-top: 4px;
  pointer-events: none;
}

/* Sheet variants by answer type */
.answer-sheet[data-type="yes"]    { border-top-color: rgba(201,168,76,0.5); }
.answer-sheet[data-type="no"]     { border-top-color: rgba(193,18,31,0.5); }
.answer-sheet[data-type="maybe"]  { border-top-color: rgba(139,92,246,0.5); }
.answer-sheet[data-type="easter"] { border-top-color: rgba(41,184,101,0.5); }

/* Drag handle */
.sheet-bar {
  width: 36px;
  height: 4px;
  background: rgba(201,168,76,0.25);
  border-radius: 2px;
  margin: 10px auto 0;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.sheet-bar:hover { background: rgba(201,168,76,0.5); }

.sheet-body {
  padding: 12px 24px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Answer type badge */
.answer-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.answer-badge {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid currentColor;
}

/* Badge colors */
.answer-sheet[data-type="yes"]    .answer-badge { color: var(--gold-bright); }
.answer-sheet[data-type="no"]     .answer-badge { color: var(--red-bright); }
.answer-sheet[data-type="maybe"]  .answer-badge { color: var(--purple); }
.answer-sheet[data-type="easter"] .answer-badge { color: var(--jade-bright); }

.answer-luck-meta {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  font-family: var(--display);
  white-space: nowrap;
}
.meta-sep { margin: 0 5px; }

/* Answer text */
.answer-text {
  font-family: var(--display);
  font-size: clamp(15px, 4vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  letter-spacing: 0.04em;
  animation: text-rise 0.5s var(--ease-silk);
}
@keyframes text-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Milestone */
.milestone-banner {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-align: center;
  padding: 8px 12px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 4px;
  background: rgba(201,168,76,0.05);
  display: none;
}
.milestone-banner.visible { display: block; animation: fade-in 0.4s ease; }

/* Sheet action buttons */
.sheet-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-share {
  flex: 1;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 4px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  transition: background 0.2s, border-color 0.2s;
}
.btn-share:hover { background: rgba(201,168,76,0.08); border-color: rgba(201,168,76,0.55); }

.btn-again {
  flex: 1;
  padding: 11px 16px;
  background: rgba(41,184,101,0.1);
  border: 1px solid rgba(41,184,101,0.3);
  border-radius: 4px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--jade-bright);
  transition: background 0.2s, border-color 0.2s;
}
.btn-again:hover { background: rgba(41,184,101,0.18); border-color: rgba(41,184,101,0.55); }

/* Social share row */
.social-row {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
  justify-content: center;
  padding-top: 4px;
}
.ss-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  line-height: 1;
  flex-shrink: 0;
}
.ss-btn:hover { opacity: 0.80; transform: translateY(-2px); }
.ss-x        { background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.ss-whatsapp { background: #25d366; color: #fff; }
.ss-telegram { background: #2aabee; color: #fff; }
.ss-weibo    { background: #e6162d; color: #fff; }
.ss-wechat   { background: #07c160; color: #fff; }


/* Share success */
.share-ok {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--jade);
  text-align: center;
  display: none;
}
.share-ok.visible { display: block; animation: fade-in 0.3s ease; }


/* ================================================================
   SITE FOOTER
   ================================================================ */
.site-footer {
  flex: 0 0 auto;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-top: 1px solid rgba(201,168,76,0.08);
  background: rgba(7,5,13,0.6);
  padding: 0 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.footer-link {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(232,220,200,0.42);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-link:hover { color: var(--gold); }
.footer-sep {
  color: rgba(201,168,76,0.2);
  font-size: 8px;
  user-select: none;
}
.footer-copy {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(232,220,200,0.16);
  margin-left: 3px;
}

/* SEO content (still accessible to crawlers but off-screen visually) */
.seo-footer {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 380px) {
  .site-header { padding: 0 14px; }
  .logo { font-size: 16px; }
  .oracle-stage { padding: 8px 14px 12px; }
  .question-input { font-size: 14px; padding: 11px 13px; }
  .ask-btn { font-size: 12px; padding: 12px 16px; }
  .sheet-body { padding: 10px 16px 20px; }
}

@media (min-width: 600px) {
  .oracle-circle { width: min(248px, calc(100dvh - 348px)); height: min(248px, calc(100dvh - 348px)); }
  .ask-area { max-width: 440px; }
  .answer-sheet { left: 50%; right: auto; transform: translateX(-50%) translateY(100%); width: 500px; border-radius: 16px 16px 0 0; }
  .answer-sheet.open { transform: translateX(-50%) translateY(0); }
}

@media (max-height: 600px) {
  /* Landscape / short screens */
  .oracle-circle { width: min(160px, calc(100dvh - 260px)); height: min(160px, calc(100dvh - 260px)); }
  .mood-row { display: none; }
  .greeting { display: none; }
  .ask-btn { padding: 10px; }
  .question-input { padding: 10px 13px; }
  .answer-sheet { max-height: 60dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
