:root {
  --ink: #15233a;
  --muted: #69758a;
  --cream: #fffaf1;
  --coral: #ff6b79;
  --yellow: #ffc857;
  --blue: #4cb6dc;
  --violet: #6a63d8;
  --green: #75c78b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: "Nunito", sans-serif; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }

.home-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #fffdf7 0%, #f2f8ff 100%);
  overflow-x: hidden;
}
.home-bg { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 420px; height: 420px; right: -170px; top: 80px; background: rgba(255, 201, 87, .13); }
.orb-two { width: 260px; height: 260px; left: -120px; bottom: 5%; background: rgba(99, 183, 216, .12); }

.topbar {
  height: 82px; max-width: 1180px; margin: auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: "Baloo 2"; font-size: 22px; }
.brand-mark {
  width: 43px; height: 43px; display: grid; place-items: center; color: white;
  border-radius: 14px 14px 14px 5px; background: linear-gradient(135deg, #ff7182, #ff9d64);
  box-shadow: 0 8px 18px rgba(255, 107, 121, .25); font-size: 25px; font-weight: 800;
}
.brand strong { color: #26374d; }.brand em { color: #ff7182; font-style: normal; }
.topnav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 800; }
.topnav a { position: relative; color: #667187; }.topnav a.active { color: var(--ink); }
.topnav a.active::after { content: ""; position: absolute; width: 18px; height: 3px; border-radius: 4px; background: var(--coral); left: 50%; bottom: -12px; transform: translateX(-50%); }
.login-button { border: 1px solid #e7eaf0; background: white; height: 44px; padding: 0 17px; border-radius: 12px; display: flex; align-items: center; gap: 9px; cursor: pointer; color: #526077; font-weight: 800; box-shadow: 0 5px 18px rgba(29,45,77,.06); }
.login-button svg { width: 19px; }

.hero { max-width: 1180px; min-height: 520px; margin: auto; padding: 55px 28px 70px; display: grid; grid-template-columns: 48% 52%; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { color: #ef7b67; text-transform: uppercase; letter-spacing: 1.6px; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.eyebrow span { width: 28px; height: 3px; border-radius: 3px; background: #ef7b67; }
.hero h1 { margin: 0; font-family: "Baloo 2"; font-size: clamp(52px, 5.3vw, 78px); line-height: .98; letter-spacing: -3px; }
.hero h1 span { color: #ff7182; }
.hero-copy > p { max-width: 520px; margin: 22px 0 30px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.primary-button { height: 54px; padding: 0 23px; display: inline-flex; align-items: center; gap: 18px; border-radius: 15px; background: var(--ink); color: white; font-weight: 800; box-shadow: 0 13px 28px rgba(21,35,58,.18); transition: .25s ease; }
.primary-button span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 17px 34px rgba(21,35,58,.22); }
.text-button { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #536179; }
.play-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #edf4f7; color: #55aeca; font-size: 11px; }

.hero-visual { height: 430px; display: grid; place-items: center; position: relative; }
.visual-card { width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #fff 0 42%, #eef7fa 43% 55%, transparent 56%); display: grid; place-items: center; position: relative; }
.visual-card::before, .visual-card::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(91,166,190,.25); }
.visual-card::before { width: 390px; height: 390px; }.visual-card::after { width: 470px; height: 470px; }
.mini-wheel { width: 300px; height: 300px; border: 12px solid #ffc657; border-radius: 50%; position: relative; overflow: hidden; background: #eee; transform: rotate(-12deg); box-shadow: 0 22px 45px rgba(73,122,150,.18), inset 0 0 0 5px #f6a94c; }
.mini-slice { position: absolute; width: 50%; height: 50%; left: 50%; top: 0; transform-origin: 0 100%; display: flex; align-items: center; padding-left: 58px; font-family: "Baloo 2"; font-size: 34px; color: white; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.slice-a { background:#ed6d79; transform: rotate(0deg); }.slice-b { background:#65b8ca; transform: rotate(60deg); }.slice-c { background:#ffc75a; transform: rotate(120deg); }.slice-d { background:#806ed1; transform: rotate(180deg); }.slice-e { background:#78c797; transform: rotate(240deg); }.slice-f { background:#f08b77; transform: rotate(300deg); }
.mini-wheel-center { position: absolute; width: 86px; height: 86px; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(12deg); border-radius: 50%; background: linear-gradient(145deg,#ffd871,#ffb84d); border: 7px solid white; box-shadow: 0 5px 16px rgba(0,0,0,.12); display: grid; place-items: center; color: #ed6d79; font-size: 28px; z-index: 3; }
.floating-card { position: absolute; z-index: 4; background: white; border: 1px solid #edf1f4; border-radius: 13px; box-shadow: 0 12px 30px rgba(60,84,110,.12); font-size: 13px; font-weight: 800; padding: 11px 15px; }
.float-one { left: 5px; top: 92px; color:#54a9c2; animation: float 4s ease-in-out infinite; }.float-two { right: 2px; bottom: 85px; color:#ef9d55; animation: float 4s ease-in-out infinite .8s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.tools-section { max-width: 1180px; margin: auto; padding: 70px 28px 90px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.kicker { color: #ef7b67; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 800; }
.section-heading h2 { margin: 6px 0 0; font-family: "Baloo 2"; font-size: 38px; line-height: 1.1; }
.section-heading > p { max-width: 400px; color: var(--muted); line-height: 1.7; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tool-card { min-height: 230px; border: 1px solid #edf0f3; border-radius: 22px; background: rgba(255,255,255,.82); display: grid; grid-template-columns: 210px 1fr; align-items: center; padding: 20px; box-shadow: 0 14px 40px rgba(46,69,94,.07); transition: .25s ease; }
.tool-card.featured:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(46,69,94,.12); }
.tool-icon { height: 190px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg,#dff3f5,#eef9f7); }
.wheel-preview { width: 125px; height: 125px; border-radius: 50%; border: 8px solid #ffc85a; background: conic-gradient(#ef7a83 0 60deg,#60b8cd 60deg 120deg,#ffc85a 120deg 180deg,#7c70cb 180deg 240deg,#78c798 240deg 300deg,#f09276 300deg); box-shadow: 0 10px 20px rgba(71,110,130,.16); position: relative; }
.wheel-preview::after { content:""; position:absolute; inset:38px; border:5px solid white; border-radius:50%; background:#ffb94f; }
.wheel-preview i { position:absolute; width:18px; height:28px; background:#ff7182; clip-path:polygon(50% 100%,0 0,100% 0); left:54px; top:-23px; z-index:3; }
.tool-info { padding: 15px 22px; }.tool-tag { color:#ef7b67; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.8px; }.tool-info h3 { font-family:"Baloo 2"; font-size:29px; margin:7px 0 4px; }.tool-info p { color:var(--muted); line-height:1.6; margin:0 0 14px; }.open-tool { color:#4ba7c2; font-weight:800; }.open-tool b { margin-left:6px; }.open-tool.muted { color:#9aa3af; }
.coming-soon { opacity:.72; }.more-icon { width:190px; justify-self:center; color:#9caabd; font-family:"Baloo 2"; font-size:70px; background:#f3f6f8; }
.about-strip { max-width:1124px; min-height:86px; margin:0 auto 50px; border-radius:18px; background:var(--ink); color:white; display:flex; align-items:center; justify-content:space-between; padding:18px 32px; }.about-strip p { margin:0; }.about-strip strong { color:#ffc857; }.about-strip a { color:#ffc857; font-weight:800; }
footer { max-width:1180px; height:90px; margin:auto; padding:0 28px; display:flex; align-items:center; justify-content:space-between; border-top:1px solid #edf0f3; }.footer-brand { font-size:18px; }.footer-brand .brand-mark { width:36px;height:36px;font-size:20px;border-radius:11px 11px 11px 4px; }footer p { color:#98a0ad;font-size:13px; }

/* Game */
.game-page { height:100vh; overflow:hidden; background:#66bee4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23ffffff' opacity='.12'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Ccircle cx='72' cy='30' r='2'/%3E%3Ccircle cx='42' cy='78' r='2'/%3E%3C/g%3E%3C/svg%3E"); }
.game-header { height:86px; display:grid; grid-template-columns:220px 1fr 220px; align-items:center; padding:0 24px; background:rgba(255,255,255,.96); box-shadow:0 5px 20px rgba(33,101,138,.12); position:relative; z-index:20; }
.game-brand { display:flex; align-items:center; gap:8px; font-family:"Baloo 2"; font-weight:800; }.game-brand .brand-mark { width:38px;height:38px;font-size:21px;border-radius:12px 12px 12px 4px; }.brand-name { color:#26374d;font-size:17px; }
.game-title { justify-self:center; display:flex; align-items:center; gap:12px; }.game-title h1 { margin:0; color:#f05d78; font-family:"Baloo 2"; font-size:38px; line-height:1; text-shadow:2px 3px 0 #ffe7a4; }.title-flower { color:#f8c24b;font-size:24px; }
.fullscreen-button { justify-self:end; height:42px; border:1px solid #e7ecf0; border-radius:11px; background:white; display:flex; align-items:center; gap:8px; padding:0 13px; color:#59677a; cursor:pointer; font-size:13px; }.fullscreen-button svg { width:18px; fill:#72aebe; }
.game-layout { height:calc(100vh - 86px); display:grid; grid-template-columns:245px minmax(420px,1fr) 280px; position:relative; }
.preset-panel { margin:18px 0 18px 18px; border-radius:18px; background:rgba(255,255,255,.96); box-shadow:0 12px 35px rgba(37,101,137,.16); padding:18px 14px; position:relative; z-index:10; transition:.3s ease; }
.preset-panel h2 { margin:0 8px 12px; font-family:"Baloo 2"; font-size:20px; }.preset-list { display:grid; gap:7px; }.preset { min-height:64px; border:1px solid #edf0f2; border-radius:12px; background:white; display:flex; align-items:center; gap:10px; padding:7px 9px; text-align:left; cursor:pointer; color:#334156; }.preset.active { border-color:#ffc75d; background:#fffaf0; box-shadow:0 5px 14px rgba(239,176,70,.12); }.preset-icon { width:38px;height:38px;flex:none;border-radius:10px;background:#ff7280;color:white;display:grid;place-items:center;font-family:"Baloo 2";font-size:19px; }.preset-icon.blue { background:#62b4d1; }.preset-icon.purple { background:#7b70c9; }.preset strong { display:block;font-size:13px; }.preset small { color:#9aa3ad;font-size:11px; }.panel-toggle { display:none; }
.custom-box { margin-top:12px;border-top:1px solid #edf0f2;padding:12px 4px 0; }.custom-box label { display:block;font-size:12px;font-weight:800;margin-bottom:7px; }.custom-box textarea { width:100%;resize:none;border:1px solid #dde5e8;border-radius:10px;padding:8px 9px;font-size:12px;outline:none; }.custom-box textarea:focus { border-color:#74b9cf; }.apply-button { width:100%;height:38px;margin-top:7px;border:0;border-radius:9px;background:#4ba7c4;color:white;font-size:12px;font-weight:800;cursor:pointer; }
.wheel-stage { display:grid; place-items:center; position:relative; overflow:hidden; }.wheel-wrap { width:min(68vh,560px); aspect-ratio:1; position:relative; }.wheel-shell { position:absolute; inset:0; border-radius:50%; border:clamp(10px,1.4vw,15px) solid #f4b83d; background:#e6edf0; box-shadow:0 14px 0 #c98e32,0 24px 35px rgba(28,92,118,.25),inset 0 0 0 7px #ffe99e; }
.wheel { position:absolute; inset:8px; border-radius:50%; transition:transform 5.2s cubic-bezier(.12,.62,.12,1); overflow:hidden; }.wheel::after { content:"";position:absolute;inset:-3px;border:3px solid rgba(255,255,255,.75);border-radius:50%;pointer-events:none; }.wheel-sector { position:absolute; inset:0; border-radius:50%; }.sector-label { position:absolute;left:50%;top:50%;width:58px;height:58px;margin:-29px 0 0 -29px;font-family:"Baloo 2";font-size:clamp(22px,3.1vh,38px);font-weight:800;color:#e82f50;background:white;border-radius:50%;display:grid;place-items:center;box-shadow:0 3px 8px rgba(72,57,53,.12);z-index:2; }
.wheel-center { position:absolute;width:19%;height:19%;left:50%;top:50%;transform:translate(-50%,-50%);border:6px solid #fff1a7;border-radius:50%;background:linear-gradient(145deg,#ffd875,#ffad49);z-index:8;cursor:pointer;box-shadow:0 5px 12px rgba(139,92,30,.24);color:#d94b54;font-family:"Baloo 2";font-size:18px;font-weight:800; }.wheel-center:disabled { cursor:default; }.wheel-pointer { position:absolute;z-index:9;width:64px;height:70px;left:50%;top:-22px;transform:translateX(-50%);background:#f7cf49;clip-path:polygon(50% 100%,8% 10%,92% 10%);filter:drop-shadow(0 5px 3px rgba(95,60,20,.18)); }.wheel-pointer::after { content:"";position:absolute;width:22px;height:22px;border-radius:50%;background:#fff8d1;left:21px;top:8px; }.spin-button-mobile { display:none; }
.result-panel { margin:18px 18px 18px 0;border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 12px 35px rgba(37,101,137,.16);display:grid;place-items:center;padding:18px;position:relative;z-index:10; }.result-empty { text-align:center;color:#8495a3;font-family:"Baloo 2";font-size:17px; }.sparkle { width:52px;height:52px;margin:0 auto 8px;border-radius:50%;background:#fff4ca;color:#f3b83e;display:grid;place-items:center;font-size:24px; }.result-content { width:100%;text-align:center; }.result-instruction { color:#6d7783;font-size:15px;margin:0 0 12px; }.answer-highlight { height:100px;display:grid;place-items:center;background:#fffaf0;border:2px solid #ffd36e;border-radius:14px;margin:0 0 10px;color:#df3151;font-family:"Baloo 2";font-size:70px;line-height:1; }.answer-options { display:grid;grid-template-columns:1fr 1fr;gap:8px; }.answer-option { height:52px;border:2px solid #f1dfaa;border-radius:10px;background:white;color:#df3151;font-family:"Baloo 2";font-size:25px;cursor:pointer;transition:.15s ease; }.answer-option:hover { transform:translateY(-2px);border-color:#ffc34e; }.answer-option.correct { background:#8fd4a1;border-color:#62bd7c;color:white; }.answer-option.wrong { background:#ff9a9a;border-color:#ef6a70;color:white; }
.celebration { position:fixed;inset:86px 0 0;z-index:30;background:rgba(30,72,93,.20);backdrop-filter:blur(4px);display:grid;place-items:center; }.celebration[hidden] { display:none; }.celebration-card { width:320px;border-radius:24px;background:white;text-align:center;padding:28px;box-shadow:0 25px 70px rgba(32,76,96,.25);animation:pop .35s cubic-bezier(.2,.8,.2,1); }.celebration-card.success { border:4px solid #8bd19f; }.celebration-card.fail { border:4px solid #ff9a9a; }.celebration-icon { width:74px;height:74px;margin:auto;display:grid;place-items:center;border-radius:50%;background:#fff1ad;color:#efa934;font-size:38px; }.celebration-card.fail .celebration-icon { background:#ffe1e1;color:#e86670; }.celebration-card h2 { margin:12px 0 4px;font-family:"Baloo 2";font-size:34px; }.celebration-card p { margin:0 0 18px;color:#758196; }.celebration-card button { height:44px;border:0;border-radius:12px;background:#4ba7c4;color:white;padding:0 22px;font-weight:800;cursor:pointer; }@keyframes pop { from { transform:scale(.75);opacity:0 } to { transform:scale(1);opacity:1 } }
.confetti { position:fixed;width:9px;height:14px;z-index:31;pointer-events:none;animation:confetti-fall 1.8s linear forwards; }@keyframes confetti-fall { to { transform:translate(var(--x),100vh) rotate(720deg);opacity:.2 } }

@media (max-width: 980px) {
  .hero { grid-template-columns:52% 48%; }.visual-card { transform:scale(.82); }.tool-card { grid-template-columns:170px 1fr; }.tool-icon { height:170px; }.game-layout { grid-template-columns:210px minmax(380px,1fr) 220px; }.wheel-wrap { width:min(58vh,500px); }.preset-panel { margin-left:10px; }.result-panel { margin-right:10px; }
}
@media (max-width: 760px) {
  .topbar { height:70px;padding:0 18px; }.topnav { display:none; }.login-button span { display:none; }.login-button { width:44px;padding:0;justify-content:center; }.hero { min-height:auto;padding:35px 20px 50px;display:block;text-align:center; }.eyebrow { justify-content:center; }.hero h1 { font-size:48px; }.hero-copy > p { margin:18px auto 24px;font-size:16px; }.hero-actions { justify-content:center; }.hero-visual { height:330px;margin-top:15px; }.visual-card { transform:scale(.72); }.tools-section { padding:45px 18px; }.section-heading { display:block; }.section-heading h2 { font-size:31px; }.section-heading > p { margin:10px 0 20px; }.tool-grid { grid-template-columns:1fr; }.tool-card { grid-template-columns:150px 1fr; }.tool-icon { height:150px;width:140px; }.wheel-preview { transform:scale(.8); }.coming-soon { display:none; }.about-strip { margin:0 18px 35px;padding:18px; }.about-strip p { max-width:230px;font-size:13px; }footer { padding:0 18px; }.game-header { height:68px;grid-template-columns:55px 1fr 55px;padding:0 12px; }.brand-name,.fullscreen-button span { display:none; }.game-brand .brand-mark { width:36px;height:36px; }.game-title h1 { font-size:25px; }.title-flower { display:none; }.fullscreen-button { width:42px;padding:0;justify-content:center; }.game-layout { height:calc(100vh - 68px);grid-template-columns:1fr; }.preset-panel { position:absolute;left:8px;top:8px;bottom:auto;width:190px;height:auto;margin:0;padding:10px;transform:translateX(-202px); }.preset-panel.open { transform:translateX(0); }.panel-toggle { display:grid;position:absolute;right:-38px;top:12px;width:38px;height:42px;border:0;border-radius:0 10px 10px 0;background:white;color:#55a6bf;font-size:26px;place-items:center; }.wheel-stage { align-self:start;padding-top:35px;height:calc(100vh - 68px); }.wheel-wrap { width:min(75vh,86vw); }.result-panel { position:absolute;right:8px;bottom:10px;width:200px;height:210px;margin:0;padding:10px; }.answer-highlight { height:78px;font-size:50px; }.answer-options { gap:5px; }.answer-option { height:42px;font-size:20px; }.result-instruction { font-size:12px; }.celebration { inset:68px 0 0; }.wheel-center { font-size:14px; }
}
