:root {
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #26303b;
  background: #eef8f4;
  font-synthesis: none;
  --pink: #ff5c9c;
  --pink-2: #ff78ad;
  --mint: #dff8ee;
  --cream: #fffaf3;
  --violet: #a956dc;
  --line: rgba(45, 55, 65, .12);
  --shadow: 0 16px 40px rgba(80, 64, 91, .14), 0 3px 10px rgba(80, 64, 91, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #eef8f4; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 16% 8%, rgba(155, 221, 204, .65), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(242, 191, 230, .56), transparent 28rem),
    linear-gradient(145deg, #eaf9f3, #f9ecf8 70%, #e9f3ff);
}
button, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible { outline: 3px solid rgba(255, 92, 156, .34); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }

.desktop-frame {
  width: min(100% - 40px, 1420px);
  min-height: calc(100dvh - 80px);
  margin: 40px auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 24px;
  background: rgba(255,255,255,.34);
  box-shadow: 0 30px 80px rgba(78, 65, 94, .22);
  backdrop-filter: blur(20px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 780px;
  padding: 30px 20px 24px;
  background: rgba(255, 251, 246, .74);
  border-right: 1px solid rgba(255,255,255,.82);
}
.sidebar-logo { display: block; padding: 10px; color: inherit; text-align: center; text-decoration: none; transform: rotate(-2deg); }
.sidebar-logo span, .sidebar-logo strong, .mobile-brand span, .mobile-brand strong, .quiz-logo span, .quiz-logo strong { font-weight: 950; letter-spacing: -.08em; line-height: .8; }
.sidebar-logo span { display: block; color: #fffdf2; font-size: 3.4rem; text-shadow: 0 4px 10px rgba(65,45,65,.2); }
.sidebar-logo strong { display: block; margin-top: -3px; color: var(--pink); font-size: 3.7rem; }
.sidebar-logo small { display: block; color: var(--violet); font-weight: 900; font-style: italic; }
.sidebar-nav { display: grid; gap: 8px; }
.nav-item {
  width: 100%; min-height: 48px; padding: 0 16px; display: flex; align-items: center; gap: 12px;
  border: 0; border-radius: 15px; color: #323842; background: transparent; font-weight: 760; text-align: left;
}
.nav-item:hover, .nav-item.is-active { background: rgba(255,252,246,.9); box-shadow: var(--shadow); color: var(--pink); }
.sidebar-tip { margin-top: auto; display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255,250,244,.8); box-shadow: var(--shadow); }
.sidebar-tip img { width: 54px; border-radius: 12px; }
.sidebar-tip p { margin: 0; font-size: .78rem; line-height: 1.35; }
.sidebar-tip strong { color: var(--pink); }
.power-card { display: grid; gap: 8px; padding: 8px 12px; }
.power-card span { font-size: .75rem; }
.power-card strong { color: var(--pink); font-size: 1.35rem; font-style: italic; }
.power-card small { justify-self: end; opacity: .75; }

.app-shell { min-width: 0; padding: 22px; }
.topbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-meta, .topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions { margin-left: auto; }
.pill, .ghost-button, select {
  min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.86);
  border-radius: 999px; background: rgba(255,251,245,.76); color: #454b54; box-shadow: 0 8px 20px rgba(62,65,73,.10); font-size: .82rem;
}
.pill b { color: var(--pink); }
select { font-weight: 800; }
.ghost-button { font-weight: 850; }
.mobile-brand { display: none; border: 0; background: transparent; }
.app-content { margin-top: 18px; }
.panel { border: 1px solid rgba(255,255,255,.84); border-radius: 22px; background: rgba(255,251,246,.72); box-shadow: var(--shadow); backdrop-filter: blur(16px); }

.hero-panel {
  position: relative; min-height: 430px; display: grid; grid-template-columns: 1.25fr .9fr; align-items: center;
  overflow: hidden; border-radius: 22px; background:
    radial-gradient(circle at 27% 36%, rgba(255,255,255,.92), transparent 25%),
    linear-gradient(145deg, rgba(210,247,235,.93), rgba(248,223,244,.86));
}
.hero-panel::before { content: "✦  ✧  ⚡  ✦  ✧"; position: absolute; inset: 8% auto auto 6%; color: var(--pink); font-size: 2.2rem; letter-spacing: 3.5rem; opacity: .68; transform: rotate(-8deg); }
.hero-cow { position: relative; align-self: end; min-height: 385px; display: flex; justify-content: center; align-items: end; }
.hero-cow::before { content: ""; position: absolute; width: 410px; height: 280px; bottom: 18px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255,255,255,.72) 0 2px, transparent 3px 11px); transform: rotate(-8deg); opacity: .8; }
.hero-cow img { position: relative; width: min(340px, 80%); border-radius: 34%; filter: drop-shadow(0 24px 22px rgba(53,47,60,.22)); transform: rotate(-3deg); }
.speech { position: absolute; z-index: 2; left: 8%; top: 32%; padding: 18px 14px; border: 2px solid #2f3338; border-radius: 48% 52% 55% 45%; background: #fffdf7; font-weight: 950; line-height: 1.1; text-align: center; transform: rotate(-7deg); }
.speech::after { content: ""; position: absolute; right: -20px; bottom: 8px; width: 26px; height: 18px; background: #fffdf7; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hero-copy { position: relative; z-index: 2; padding: 32px 38px 32px 14px; }
.hero-copy h1 { margin-bottom: 2px; font-size: clamp(4rem, 7vw, 7rem); line-height: .82; transform: rotate(-2deg); }
.hero-copy h1 span { color: #fffdf5; text-shadow: 0 5px 14px rgba(75,45,72,.17); }
.hero-copy h1 strong { color: var(--pink); }
.subtitle { color: var(--violet); font-weight: 900; font-size: clamp(1rem, 2vw, 1.45rem); font-style: italic; }
.hero-lead { max-width: 420px; margin: 28px 0 24px; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.22; font-weight: 650; }
.hero-lead::first-line { color: #27313a; }
.primary-button {
  width: 100%; min-height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 15px; color: white; background: linear-gradient(135deg, var(--pink-2), #ff3f8d); box-shadow: 0 14px 28px rgba(255,63,141,.28); font-size: 1.15rem; font-weight: 900;
}
.primary-button span { margin-left: auto; font-size: 2rem; font-weight: 400; }
.primary-button:hover { filter: brightness(1.03); transform: translateY(-1px); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.home-grid { margin-top: 14px; display: grid; grid-template-columns: .7fr 1.4fr; gap: 14px; }
.daily-card, .results-panel { padding: 18px; }
.panel header { display: flex; align-items: center; gap: 10px; }
.panel header h2, .panel header p { margin-bottom: 2px; }
.panel header h2 { font-size: 1rem; }
.panel header p { font-size: .78rem; opacity: .75; }
.round-icon { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--pink); background: #fff1f6; }
.star { color: var(--pink); font-size: 1.5rem; }
.daily-question { margin-top: 14px; padding: 14px; display: grid; gap: 8px; border-radius: 15px; background: rgba(255,255,255,.46); }
.daily-question > strong { margin-bottom: 5px; font-size: .9rem; }
.daily-question button { min-height: 34px; padding: 0 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.64); color: var(--pink); font-weight: 900; }
.daily-question button span { color: #4f555e; font-size: .78rem; font-weight: 650; }
.result-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.result-preview { overflow: hidden; border-radius: 16px; background: rgba(255,255,255,.55); text-align: center; box-shadow: 0 10px 25px rgba(68,58,75,.08); }
.result-art { position: relative; min-height: 150px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #bcebd9, #f6f0b9); }
.result-1 .result-art { background: linear-gradient(145deg, #ffc6a8, #fff2ba); }
.result-2 .result-art { background: linear-gradient(145deg, #dcb9fa, #f5d1ec); }
.result-art img { width: 105px; border-radius: 24px; transform: rotate(-4deg); box-shadow: 0 12px 20px rgba(70,57,74,.18); }
.result-art span { position: absolute; z-index: 2; right: 12px; top: 10px; font-size: 1.7rem; }
.result-preview h3 { margin: 10px 8px 4px; color: #1b9c73; font-size: 1rem; }
.result-1 h3 { color: #f06527; }
.result-2 h3 { color: #9b4bc2; }
.result-preview p { min-height: 46px; margin: 0 8px 12px; font-size: .72rem; line-height: 1.35; }
.mobile-links, .mobile-results { display: none; }

.quiz-screen { max-width: 780px; margin: 0 auto; }
.quiz-heading { min-height: 54px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.quiz-heading > b { color: var(--pink); font-size: 1.2rem; }
.quiz-heading > b small { color: #424953; font-weight: 500; }
.quiz-heading .pill { justify-self: end; }
.quiz-logo { font-size: 2.1rem; transform: rotate(-3deg); }
.quiz-logo span { color: #fffdf4; text-shadow: 0 3px 9px rgba(72,49,70,.2); }
.quiz-logo strong { color: var(--pink); }
.progress-track, .mini-track { overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.55); }
.progress-track { height: 12px; border: 1px solid rgba(255,255,255,.75); }
.progress-track i, .mini-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), #ff7cad); }
.quiz-illustration { position: relative; min-height: 280px; display: grid; place-items: end center; overflow: hidden; }
.quiz-illustration::before { content: ""; position: absolute; width: 520px; height: 240px; bottom: 8px; background: radial-gradient(circle, rgba(255,255,255,.8) 0 2px, transparent 3px 11px); clip-path: polygon(50% 0, 58% 28%, 78% 9%, 74% 34%, 100% 29%, 80% 48%, 100% 62%, 72% 61%, 78% 91%, 55% 69%, 46% 100%, 40% 70%, 14% 91%, 22% 61%, 0 62%, 20% 48%, 0 29%, 27% 34%, 22% 9%, 43% 28%); opacity: .72; }
.quiz-illustration img { position: relative; width: 240px; margin-bottom: -10px; border-radius: 28%; filter: drop-shadow(0 20px 18px rgba(60,52,68,.22)); transform: rotate(2deg); }
.reaction { position: absolute; z-index: 2; left: 3%; top: 35%; width: 170px; padding: 20px 16px; border: 2px solid #27313a; background: #fffdf7; font-weight: 950; text-align: center; clip-path: polygon(50% 0, 60% 13%, 77% 4%, 79% 22%, 97% 20%, 88% 38%, 100% 50%, 87% 60%, 96% 80%, 76% 78%, 74% 97%, 58% 86%, 47% 100%, 38% 85%, 19% 96%, 20% 77%, 1% 80%, 11% 59%, 0 48%, 13% 38%, 4% 18%, 23% 22%, 24% 3%, 41% 14%); }
.punctuation { position: absolute; right: 10%; top: 38%; color: var(--pink); font-size: 4rem; font-weight: 950; transform: rotate(8deg); }
.question-panel { margin-top: -8px; padding: 26px; }
.question-panel > h2 { margin-bottom: 20px; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.15; text-align: center; }
.answers { display: grid; gap: 10px; }
.answer-button { min-height: 78px; padding: 10px 18px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 14px; border: 2px solid transparent; border-radius: 18px; background: rgba(255,255,255,.68); box-shadow: 0 10px 22px rgba(71,64,78,.08); color: #29323b; text-align: left; }
.answer-button:hover { transform: translateY(-1px); }
.answer-button.is-selected { border-color: var(--pink); background: #fff6fa; box-shadow: 0 0 0 4px rgba(255,92,156,.1), 0 12px 24px rgba(71,64,78,.1); }
.answer-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #ffd0e1, #d9f8ee); font-size: 1.55rem; }
.answer-button strong, .answer-button small { display: block; }
.answer-button strong { font-size: 1.05rem; }
.answer-button small { margin-top: 4px; color: #6e737c; font-size: .78rem; }
.answer-button > i { color: var(--pink); font-size: 2rem; font-style: normal; }
.madness-card { margin-top: 12px; padding: 12px 16px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; border-radius: 16px; background: rgba(255,255,255,.62); }
.brain { font-size: 2rem; }
.madness-card strong, .madness-card small { display: block; }
.madness-card strong { color: var(--pink); }
.madness-card small { margin: 2px 0 8px; color: #676d76; }
.madness-card > b { color: var(--pink); font-size: 1.8rem; }
.mini-track { height: 10px; }
.quiz-actions { margin-top: 12px; display: grid; grid-template-columns: .35fr 1fr; gap: 10px; }
.secondary-button { border: 0; border-radius: 15px; background: rgba(255,255,255,.7); color: #575e67; font-weight: 800; }
.secondary-button:disabled { opacity: .4; cursor: default; }
.selection-hint { min-height: 18px; margin: 8px 0 0; color: #8a707d; font-size: .75rem; text-align: center; }
.result-screen, .placeholder { max-width: 650px; margin: 50px auto; padding: 40px; text-align: center; }
.result-screen h1, .placeholder h1 { margin-bottom: 8px; font-size: clamp(2.4rem, 7vw, 4rem); color: var(--pink); }
.result-art.large { min-height: 230px; margin: -12px -12px 24px; border-radius: 18px; }
.result-art.large img { width: 180px; }
.result-label { display: inline-block; margin-bottom: 8px; color: var(--violet); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.result-screen .primary-button, .placeholder .primary-button { max-width: 360px; margin: 22px auto 0; }
.placeholder img { width: 150px; border-radius: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1000px) {
  .desktop-frame { width: 100%; min-height: 100dvh; margin: 0; display: block; border: 0; border-radius: 0; }
  .sidebar { display: none; }
  .app-shell { padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom)); }
  .mobile-brand { display: block; font-size: 2rem; }
  .mobile-brand span { color: #fffdf6; text-shadow: 0 3px 8px rgba(72,49,70,.18); }
  .mobile-brand strong { color: var(--pink); }
  .apple-pill { display: none; }
  .hero-panel { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .hero-cow { order: 1; min-height: 370px; }
  .hero-copy { order: 2; margin-top: -28px; padding: 30px 26px 26px; border-radius: 28px 28px 0 0; background: rgba(255,251,246,.9); text-align: center; }
  .hero-copy h1, .hero-copy .subtitle { display: none; }
  .hero-lead { margin: 0 auto 22px; max-width: 620px; }
  .home-grid { display: none; }
  .mobile-links { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mobile-links button { min-height: 92px; padding: 14px; display: grid; grid-template-columns: 42px 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 10px; border: 0; border-radius: 18px; background: rgba(255,251,246,.78); box-shadow: var(--shadow); text-align: left; }
  .mobile-links .round-icon { grid-row: 1 / span 2; }
  .mobile-links b { align-self: end; }
  .mobile-links small { align-self: start; color: #6f747b; }
  .mobile-links i { grid-column: 3; grid-row: 1 / span 2; font-size: 2rem; font-style: normal; }
  .mobile-results { margin-top: 12px; padding: 18px; display: block; }
  .mobile-results h2 { color: #666c74; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
  .quiz-screen { max-width: 720px; }
}

@media (max-width: 620px) {
  .topbar { align-items: flex-start; }
  .topbar-meta .pill { padding: 0 12px; font-size: .74rem; }
  .topbar-actions { gap: 5px; }
  select, .ghost-button { min-height: 36px; padding: 0 10px; }
  .hero-panel { padding-top: 42px; border-radius: 26px; }
  .hero-cow { min-height: 330px; }
  .hero-cow img { width: 250px; }
  .speech { left: 1%; top: 32%; font-size: .83rem; }
  .hero-copy { padding: 24px 18px 20px; }
  .hero-lead { font-size: 1.4rem; }
  .primary-button { min-height: 60px; }
  .mobile-links { grid-template-columns: 1fr 1fr; }
  .mobile-links small { font-size: .7rem; }
  .mobile-results { padding: 14px 10px; }
  .result-grid { gap: 8px; }
  .result-art { min-height: 112px; }
  .result-art img { width: 76px; border-radius: 18px; }
  .result-preview h3 { font-size: .8rem; }
  .result-preview p { font-size: .62rem; }
  .quiz-heading { grid-template-columns: 1fr auto auto; }
  .quiz-logo { font-size: 1.7rem; }
  .quiz-heading .pill { min-height: 34px; padding: 0 10px; font-size: .72rem; }
  .quiz-illustration { min-height: 245px; }
  .quiz-illustration img { width: 205px; }
  .reaction { left: 0; top: 30%; width: 128px; padding: 16px 10px; font-size: .75rem; }
  .punctuation { right: 2%; font-size: 3.2rem; }
  .question-panel { padding: 18px 12px 16px; border-radius: 24px; }
  .question-panel > h2 { font-size: 1.48rem; }
  .answer-button { min-height: 72px; grid-template-columns: 50px 1fr auto; padding: 9px 12px; }
  .answer-icon { width: 46px; height: 46px; }
  .answer-button strong { font-size: .96rem; }
  .answer-button small { font-size: .7rem; }
  .madness-card { grid-template-columns: 42px 1fr auto; padding: 10px 12px; }
  .madness-card > b { font-size: 1.45rem; }
  .quiz-actions { grid-template-columns: .32fr 1fr; }
}

@media (max-width: 410px) {
  .app-shell { padding-left: 9px; padding-right: 9px; }
  .mobile-brand { font-size: 1.65rem; }
  .topbar-meta .pill { font-size: .66rem; }
  .language-picker { display: none; }
  .hero-cow { min-height: 290px; }
  .hero-cow img { width: 220px; }
  .hero-lead { font-size: 1.25rem; }
  .mobile-links button { padding: 10px; }
  .result-preview p { display: none; }
  .result-art { min-height: 100px; }
  .quiz-heading > b { font-size: 1rem; }
  .quiz-logo { font-size: 1.5rem; }
  .quiz-illustration { min-height: 215px; }
  .quiz-illustration img { width: 180px; }
  .reaction { width: 112px; font-size: .66rem; }
  .answer-button { grid-template-columns: 44px 1fr auto; gap: 9px; }
  .answer-icon { width: 42px; height: 42px; font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}