@font-face{font-family:Manrope;src:url('assets/Manrope.ttf') format('truetype');font-weight:200 800;font-display:swap}
:root{--yellow:#ffcf24;--white:#fff;--ink:#20201e;--soft:#fff5ca;--orange:#ff663b;--green:#287a53;--muted:#65655e;--line:#e9e8e1;--ease-out:cubic-bezier(.23,1,.32,1);--ease-in-out:cubic-bezier(.77,0,.175,1);font-family:Manrope,Arial,sans-serif;color:var(--ink);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;overscroll-behavior:none}body{margin:0;background:white}button,input{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer;user-select:none;-webkit-user-select:none;border:0;background:none}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid var(--ink);outline-offset:5px}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:800}h1{letter-spacing:-.055em;line-height:1.08}h2{letter-spacing:-.035em}p{line-height:1.65}a{color:inherit}.icon{width:24px;height:24px;flex-shrink:0;vertical-align:middle}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}.skip-link{position:fixed;left:16px;top:-100px;z-index:100;background:var(--ink);color:white;padding:16px;border-radius:12px}.skip-link:focus{top:16px}
#app{min-height:100dvh;display:flex;flex-direction:column}.header{padding:26px max(5vw,24px);display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--yellow);position:relative;z-index:2}.brand{padding:0;text-align:left}.logo{display:flex;align-items:center;gap:12px;font-size:24px;letter-spacing:-1.2px;font-weight:800}.logo>span:last-child>span{font-weight:500}.logo i{display:block;font-size:10px;letter-spacing:.02em;font-style:normal;font-weight:600;margin-top:1px}.logo-tiles{display:flex;gap:1px}.logo-tiles b{display:flex;align-items:center;justify-content:center;width:38px;height:44px;background:white;border:2px solid var(--ink);border-radius:12px;transform:rotate(-9deg);box-shadow:0 2px 0 var(--ink)}.logo-tiles b:nth-child(2){transform:rotate(9deg);background:var(--orange)}nav{display:flex;gap:12px}.nav-btn{font-size:13px;font-weight:700;min-height:44px;padding:0 18px;border-radius:30px;transition:background 160ms}.nav-btn.selected{background:var(--ink);color:white}.header-tools{display:flex;align-items:center;gap:12px}.demo-badge{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;border:1px solid #20201e26;padding:7px 10px;border-radius:50px}.demo-badge>span{height:6px;width:6px;border-radius:50%;background:var(--ink)}.icon-btn{width:44px;height:44px;display:inline-flex;justify-content:center;align-items:center;border:1.5px solid #20201e35;border-radius:15px;transition:transform 120ms var(--ease-out),background 160ms}.icon-btn:active{transform:scale(.94)}.icon-btn .icon{width:21px;height:21px}.icon-spacer{width:44px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:54px;padding:12px 25px;background:var(--yellow);border:2px solid var(--ink);border-radius:18px;font-size:14px;font-weight:800;box-shadow:2px 4px 0 var(--ink);transition:transform 120ms var(--ease-out),box-shadow 120ms var(--ease-out)}.btn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}.btn-dark{background:var(--ink);color:white;border-color:var(--ink);box-shadow:2px 4px 0 #20201e45}.btn-white{background:white}.btn-big{font-size:17px;min-height:64px;padding:16px 32px;border-radius:21px}.btn-small{min-height:44px;padding:8px 14px;box-shadow:1px 2px 0 var(--ink);font-size:12px;border-radius:13px}.full{width:100%}.text-btn{font-size:13px;font-weight:800;min-height:44px;display:inline-flex;gap:9px;align-items:center;text-underline-offset:5px}.text-btn .icon{width:18px}.text-btn:disabled{opacity:.6}.footer{display:flex;justify-content:space-between;gap:20px;font-size:11px;color:var(--muted);padding:26px max(5vw,24px);margin-top:auto;border-top:1px solid var(--line)}
.hero{background:var(--yellow);padding:36px max(8vw,30px) 85px;display:grid;grid-template-columns:1fr 1fr;gap:28px;position:relative;isolation:isolate;overflow:hidden}.hero:after{content:'';position:absolute;bottom:-42px;left:-10%;width:120%;height:86px;background:white;border-radius:50% 50% 0 0;z-index:-1}.hero-copy{position:relative;padding:20px 0}.little-note{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;margin-bottom:22px}.little-note .icon{width:18px;height:18px}.hero h1{font-size:clamp(48px,5.4vw,82px);line-height:1.02;letter-spacing:-.065em}.together{position:relative}.together>svg{position:absolute;bottom:-18px;left:-8px;width:105%;height:25px;fill:none;stroke:var(--orange);stroke-width:5;stroke-linecap:round}.hero-copy>p{font-size:16px;font-weight:500;margin-top:32px;line-height:1.8}.hero-actions{display:flex;align-items:center;gap:24px;margin-top:26px}.friends-proof{display:flex;align-items:center;gap:14px;margin-top:34px;font-size:10px;line-height:1.7}.mini-avatars{display:flex;padding-left:5px}.avatar{width:46px;height:46px;border-radius:16px;display:block}.mini-avatars>.avatar{width:34px;height:34px;border:2px solid var(--yellow);border-radius:50%;margin-left:-5px;background:var(--yellow)}.hero-stage{position:relative;min-height:465px;align-self:center}.sample-card{width:275px;height:382px;border:2px solid var(--ink);border-radius:26px;background:white;padding:22px 23px;box-shadow:4px 6px 0 #20201e;position:absolute;text-align:left;transition:transform 250ms var(--ease-out)}.sample-front{top:36px;left:calc(50% - 105px);transform:rotate(8deg);z-index:2;animation:deal-front 650ms var(--ease-out) both}.card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;font-weight:700}.card-top>span:first-child{display:flex;align-items:center;gap:6px}.card-top .icon{width:17px;height:17px}.sample-front .organ{width:117px;height:99px;display:block;margin:9px auto 0}.sample-front h2{font-size:33px;line-height:1.08;letter-spacing:-1.4px}.sample-front p{font-size:10px;line-height:1.6;margin-top:10px}.sample-answer{display:flex;justify-content:space-between;align-items:center;background:var(--soft);border:1.5px solid var(--ink);border-radius:12px;margin-top:14px;padding:9px 10px;font-size:13px;font-weight:800}.sample-answer .icon{width:18px;height:18px}.sample-foot{display:flex;align-items:center;justify-content:space-between;font-size:8px;margin-top:17px;color:var(--muted)}.sample-foot .icon{width:15px;height:15px}.sample-back{top:13px;left:calc(50% - 192px);transform:rotate(-12deg);background:var(--soft);box-shadow:3px 4px 0 var(--ink);z-index:1;animation:deal-back 650ms var(--ease-out) both}.sample-back>span{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800}.sample-back b{font-size:43px;line-height:1.3;display:block;margin-top:45px}.sample-back i{font-size:11px;font-style:normal;display:block;margin-top:20px}.win-sticker{position:absolute;right:-20px;top:40px;display:flex;align-items:center;gap:8px;background:var(--orange);padding:15px 18px;transform:rotate(12deg);border:2px solid var(--ink);box-shadow:3px 3px 0 var(--ink);border-radius:20px;z-index:4;font-size:16px;font-weight:800;line-height:1.2;animation:sticker-in 600ms 250ms var(--ease-out) both}.win-sticker b{font-size:9px}.win-sticker>.icon{width:33px;height:33px}.hero-mascot{position:absolute;left:calc(50% - 243px);bottom:-17px;width:175px;z-index:3;transform:rotate(-5deg);animation:mascot-in 750ms 150ms var(--ease-out) both}.mascot{width:100%;height:auto;display:block}.stage-spark{position:absolute}.spark-one{right:40px;bottom:12px;transform:rotate(10deg)}.spark-one .icon{width:55px;height:55px}.spark-two{left:38px;top:-5px}.spark-two .icon{width:28px;height:28px}.hand-note{position:absolute;right:0;bottom:0;font-size:13px;font-weight:700;transform:rotate(-9deg);line-height:1.35}.hand-note svg{width:75px;height:40px;position:absolute;left:-77px;top:0;stroke:var(--ink);stroke-width:2;fill:none}
.families-section{padding:27px max(8vw,30px) 44px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.section-heading h2{font-size:23px}.section-heading>span{font-size:11px;color:var(--muted)}.family-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.family-tile{display:flex;align-items:center;text-align:left;gap:12px;padding:19px 14px;border:1px solid var(--line);border-radius:20px;background:white;transition:transform 160ms var(--ease-out),background 160ms}.family-tile strong{display:block;font-size:13px}.family-tile small{display:block;font-size:9px;margin-top:5px;color:var(--muted)}.family-tile>.icon{margin-left:auto;width:15px;height:15px}.family-icon{width:43px;height:45px;border:1.5px solid var(--ink);border-radius:13px;display:flex;align-items:center;justify-content:center;background:var(--yellow);flex-shrink:0;transform:rotate(-7deg);box-shadow:1px 2px 0 var(--ink)}.family-icon-1{background:var(--soft);transform:rotate(6deg)}.family-icon-2{background:var(--orange);transform:rotate(-5deg)}.family-icon-3{background:white;transform:rotate(7deg)}
.page-view{padding:38px max(8vw,30px) 65px;animation:screen-in 250ms var(--ease-out) both}.page-title{display:flex;align-items:flex-start;gap:20px;margin-bottom:36px}.page-title>.icon-btn{margin-top:5px;flex-shrink:0}.page-title h1{font-size:clamp(29px,3vw,43px)}.page-title p{font-size:13px;margin-top:10px;color:var(--muted)}.title-doodle{margin-left:auto;transform:rotate(13deg)}.title-doodle .icon{width:52px;height:52px}.setup-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:80px;max-width:1100px;margin:0 auto}.setup-options h2{font-size:18px;margin-bottom:16px}.setup-options h2:nth-of-type(2){margin-top:30px}.mode-selector{display:flex;gap:12px}.mode{flex:1;min-width:0;border:1.5px solid var(--line);padding:19px 8px;border-radius:18px;display:flex;flex-direction:column;align-items:center;gap:10px;transition:background 160ms,border-color 160ms,transform 120ms var(--ease-out)}.mode.active{background:var(--soft);border-color:var(--ink);box-shadow:2px 3px 0 var(--ink)}.mode>.icon{width:26px;height:26px}.mode strong{font-size:13px}.mode>span{font-size:9px;color:var(--muted)}.mode:active,.format:active{transform:scale(.98)}.format-list{display:grid;gap:12px}.format{display:flex;align-items:center;gap:14px;text-align:left;padding:16px 20px;border:1.5px solid var(--line);border-radius:18px;transition:background 160ms,transform 120ms var(--ease-out)}.format.active{background:var(--yellow);border-color:var(--ink);box-shadow:2px 3px 0 var(--ink)}.format-doodle>.icon{width:27px;height:27px}.format strong{display:block;font-size:14px}.format small{display:block;font-size:10px;margin-top:4px}.format>b{margin-left:auto;font-size:16px;white-space:nowrap}.radio{width:22px;height:22px;border:1.5px solid #20201e55;border-radius:50%;margin-left:10px;display:flex;align-items:center;justify-content:center}.active .radio{background:var(--ink);border-color:var(--ink);color:white}.radio .icon{width:15px;height:15px}.microcopy{font-size:10px;color:var(--muted);margin-top:19px;line-height:1.75}.microcopy .icon{width:15px;height:15px;margin-right:3px}.setup-summary{position:relative;padding-top:75px;align-self:center}.summary-mascot{position:absolute;top:-40px;right:45px;width:155px;transform:rotate(6deg)}.paper-summary{background:var(--soft);border:2px solid var(--ink);box-shadow:5px 6px 0 var(--ink);border-radius:28px;padding:30px;position:relative;transform:rotate(2deg)}.paper-summary h2{font-size:31px;line-height:1.16;margin-top:27px}.sticker{display:inline-flex;padding:8px 15px;border:1.5px solid var(--ink);background:var(--yellow);border-radius:30px;font-size:11px;font-weight:800;transform:rotate(-4deg)}.summary-values{display:flex;justify-content:space-between;gap:12px;margin:28px 0 24px;padding-bottom:23px;border-bottom:1px dashed #20201e40}.summary-values span{font-size:11px;display:flex;flex-direction:column;gap:8px}.summary-values .icon{width:21px;height:21px}.paper-summary>p{font-size:12px;margin-bottom:25px}.paper-summary .btn{transform:rotate(-2deg)}
.lobby-meta{display:flex;gap:28px;justify-content:center;margin-bottom:33px;font-size:12px;font-weight:600}.lobby-meta>span{display:flex;align-items:center;gap:8px}.lobby-meta .icon{width:17px;height:17px}.team-grid{display:flex;gap:24px;justify-content:center;max-width:1100px;margin:auto}.team-panel{flex:1;max-width:350px;border:2px solid var(--ink);border-radius:28px;box-shadow:3px 4px 0 var(--ink);padding:23px;background:var(--soft);text-align:center}.team-panel.team-1{background:#fff0e9}.team-panel.team-2{background:white}.team-label{font-size:10px;padding:6px 10px;border-radius:20px;background:white}.team-emblem{margin:18px auto 11px;width:69px;height:69px;border:2px solid var(--ink);border-radius:23px;background:var(--yellow);display:flex;align-items:center;justify-content:center;transform:rotate(-7deg)}.team-emblem .icon{width:38px;height:38px}.team-1 .team-emblem{background:var(--orange);transform:rotate(7deg)}.team-2 .team-emblem{transform:rotate(-4deg);background:var(--soft)}.team-panel h2{font-size:22px}.members{margin-top:22px;text-align:left;display:grid;gap:10px}.members>div{display:flex;align-items:center;gap:12px;padding:8px 10px;background:#ffffffb0;border-radius:13px;font-size:12px;font-weight:700}.members .avatar{width:35px;height:35px;border-radius:11px}.members .icon{width:15px;height:15px;margin-left:auto;color:var(--green)}.lobby-bottom{display:flex;justify-content:space-between;align-items:center;gap:26px;margin-top:35px}.voice-note{display:flex;align-items:center;gap:14px;max-width:490px}.voice-note>.icon{border:1px solid var(--line);padding:9px;width:43px;height:43px;border-radius:14px}.voice-note strong{font-size:12px;display:block}.voice-note small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:5px}
.family-tabs{display:flex;gap:10px;justify-content:center;margin:25px 0 37px}.family-tab{display:flex;align-items:center;gap:9px;padding:12px 20px;min-height:48px;border-radius:15px;border:1.5px solid var(--line);font-size:13px;font-weight:700;transition:transform 120ms var(--ease-out),background 160ms}.family-tab.active{background:var(--yellow);border-color:var(--ink);box-shadow:2px 3px 0 var(--ink)}.family-tab .icon{width:19px;height:19px}.library-layout{max-width:870px;margin:auto;display:grid;grid-template-columns:1fr 1.5fr;gap:70px;align-items:center}.library-layout>aside h2{font-size:30px;line-height:1.15;margin-top:22px}.library-layout>aside>p{font-size:13px;color:var(--muted);margin-top:14px}.big-family-icon{display:flex;align-items:center;justify-content:center;background:var(--yellow);width:72px;height:72px;border:2px solid var(--ink);border-radius:22px;transform:rotate(-8deg);box-shadow:2px 3px 0 var(--ink)}.big-family-icon .icon{width:35px;height:35px}.source-label{font-size:10px;display:block;margin-top:20px;color:var(--muted)}.library-nav{display:flex;align-items:center;gap:22px;margin-top:28px;font-size:12px}.source-details{font-size:10px;color:var(--muted);margin-top:23px;line-height:1.6}.source-details summary{cursor:pointer;min-height:30px}.source-details p{overflow-wrap:anywhere;margin-top:8px}
.card-wrap{position:relative;isolation:isolate}.card-wrap:before,.card-wrap:after{content:'';position:absolute;inset:4px -5px -5px 5px;border:1.5px solid var(--ink);border-radius:26px;background:var(--yellow);z-index:-1;transform:rotate(1.8deg)}.card-wrap:before{transform:rotate(-2deg);background:var(--soft);inset:5px 5px -5px -5px}.quiz-card{background:white;border:2px solid var(--ink);border-radius:25px;padding:23px 28px;box-shadow:1px 3px 0 var(--ink);animation:card-in 220ms var(--ease-out) both}.category-tag{padding:6px 10px;border-radius:9px;background:var(--soft);font-size:11px}.card-no{font-size:10px;color:var(--muted)}.question-art{height:108px;display:flex;align-items:center;justify-content:center;margin:10px 0}.question-art .organ{height:108px;width:150px}.question-image{height:145px;display:flex;align-items:center;justify-content:center;margin:15px 0 18px;border-radius:16px;overflow:hidden;background:#f9f9f7}.question-image img{width:100%;height:100%;object-fit:contain}.word-parts{display:flex;justify-content:center;align-items:center;gap:8px;margin:25px 0;min-height:70px}.word-parts>span{font-size:29px;letter-spacing:-1px;font-weight:800;background:var(--yellow);border:1.5px solid var(--ink);padding:10px 16px;border-radius:14px;transform:rotate(-4deg);box-shadow:2px 2px 0 var(--ink)}.word-parts>span:nth-child(2){transform:rotate(5deg);background:var(--soft)}.question-title{font-size:23px;line-height:1.35;text-align:center;margin:12px 0 22px;letter-spacing:-.7px}.question-title:focus{outline:none}.choices{display:grid;gap:10px}.choice{display:flex;align-items:center;gap:11px;text-align:left;width:100%;min-height:53px;border:1.5px solid var(--line);border-radius:15px;padding:8px 13px;background:white;font-size:13px;font-weight:700;transition:background 150ms,border-color 150ms,transform 120ms var(--ease-out)}.choice:active:not(:disabled){transform:scale(.98)}.choice-letter{display:flex;align-items:center;justify-content:center;background:#f5f5f1;border-radius:8px;width:30px;height:30px;font-size:10px;font-weight:800;flex-shrink:0}.choice-letter .icon{width:17px;height:17px}.choice.correct{background:#edf7ef;border-color:var(--green);color:#1c5c3d}.choice.correct .choice-letter{background:var(--green);color:white}.choice.wrong{border-color:#be6f4e;background:#fff0e9}.choice.wrong .choice-letter{background:#f5d7c9}.choice-mark{margin-left:auto;font-size:9px;white-space:nowrap}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px;padding-top:10px;border-top:1px dashed var(--line);font-size:10px;color:var(--muted)}.card-bottom button{color:var(--ink)}.correction{background:#edf7ef;border-radius:12px;padding:12px 14px;margin-top:16px;animation:fade-in 200ms ease}.correction strong{font-size:12px;color:#1c5c3d}.correction p{font-size:11px;margin-top:5px}.correction.learn{background:var(--soft)}.correction.learn strong{color:var(--ink)}
body[data-screen="play"]{background:#fffdf4}.play-view{padding-top:20px}.game-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:20px}.game-top>div:first-child{display:flex;align-items:center;gap:14px;font-size:13px;font-weight:800;flex:1}.game-top>div:first-child small{display:block;font-size:10px;font-weight:500;margin-top:4px}.game-top>.icon-btn,.game-top>.icon-spacer{margin-left:calc(50% - 245px)}.timer{display:flex;align-items:center;gap:10px;font-size:26px;border:2px solid var(--ink);border-radius:40px;background:var(--yellow);padding:9px 22px;box-shadow:2px 3px 0 var(--ink);font-variant-numeric:tabular-nums}.hourglass{font-size:21px;display:inline-block}.timer.urgent{background:var(--orange)}.timer.urgent .hourglass{animation:sand 1s var(--ease-in-out) infinite}.game-layout{display:grid;grid-template-columns:230px minmax(300px,490px) 190px;gap:35px;justify-content:center;align-items:start}.scoreboard{padding-top:10px}.scoreboard h2{font-size:14px;margin-bottom:19px}.score-row{display:flex;align-items:center;gap:10px;padding:12px 10px;border-radius:17px;margin-bottom:8px;border:1.5px solid transparent}.score-row.current{background:var(--soft);border-color:#e9d36e}.score-row strong{font-size:11px}.score-row small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.score-row>b{font-size:23px;margin-left:auto;text-align:center;font-variant-numeric:tabular-nums}.score-row>b small{font-size:8px;font-weight:500;margin-top:0}.score-symbol{width:37px;height:37px;display:flex;align-items:center;justify-content:center;background:var(--yellow);border-radius:11px;border:1px solid var(--ink);flex-shrink:0}.score-symbol .icon{width:21px;height:21px}.score-symbol.team-1{background:var(--orange)}.score-symbol.team-2{background:white}.team-chat{margin:30px 9px 0;padding-top:25px;border-top:1px dashed #20201e30;font-size:11px}.team-chat strong{display:block;margin-top:15px}.team-chat p{font-size:9px;color:var(--muted);margin-top:8px}.team-chat p .icon{width:13px;height:13px}.team-chat .mini-avatars>.avatar{border-color:#fffdf4}.game-center{min-width:0}.turn-progress{height:5px;background:#ece5c9;border-radius:10px;overflow:hidden;margin:0 16px 17px}.turn-progress>span{height:100%;width:100%;display:block;background:var(--ink);transform-origin:left;transition:transform 1s linear}.game-aside{padding-top:54px;font-size:12px}.tiny-stack{width:71px;height:86px;border:2px solid var(--ink);background:var(--yellow);border-radius:16px;transform:rotate(8deg);box-shadow:4px 4px 0 var(--soft),5px 5px 0 var(--ink);display:flex;align-items:center;justify-content:center;margin-bottom:27px}.tiny-stack .icon{width:30px;height:30px}.game-aside h3{font-size:17px;line-height:1.35;max-width:160px}.game-aside>p{font-size:11px;color:var(--muted);margin-top:12px}.deck-count{font-size:10px;display:block;margin-top:18px;line-height:1.5}.demo-skip{border:1px dashed #20201e40;border-radius:12px;font-size:9px;min-height:44px;margin-top:40px;padding:9px 11px;background:white}.bot-status{display:flex;align-items:center;gap:6px}.bot-status>span{width:6px;height:6px;border-radius:50%;background:var(--orange);animation:fade-in .9s ease infinite alternate}.transition-card{padding:42px 24px;text-align:center;background:var(--yellow);border:2px solid var(--ink);border-radius:30px;box-shadow:4px 5px 0 var(--ink);min-height:450px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:20px}.transition-card .sticker{background:white}.transition-card h1{font-size:35px}.transition-card>p{font-size:12px;max-width:320px}.ready-symbol{width:84px;height:84px;background:white;border:2px solid var(--ink);border-radius:25px;display:flex;align-items:center;justify-content:center;transform:rotate(-7deg);box-shadow:3px 3px 0 var(--ink)}.ready-symbol .icon{width:45px;height:45px}.turn-recap{display:flex;align-items:center;gap:15px;font-size:9px;font-weight:600;flex-wrap:wrap;justify-content:center}.turn-recap .icon{width:16px;height:16px;margin-right:4px}.transition-card>small{font-size:9px}.turn-number{font-size:95px;font-weight:800;line-height:1}.turn-number>span{display:block;font-size:12px;margin-top:8px}.transition-card .text-btn{min-height:25px}
.results-title{text-align:center}.results-title h1{font-size:45px;margin-top:25px}.results-title>p{font-size:13px;margin-top:15px;color:var(--muted)}.podium{display:flex;align-items:flex-end;justify-content:center;max-width:720px;gap:20px;margin:35px auto 0}.podium-player{flex:1;max-width:210px;text-align:center;animation:podium-in 650ms var(--ease-out) both}.podium-player.rank-0{order:2}.podium-player.rank-1{order:1;animation-delay:90ms}.podium-player.rank-2{order:3;animation-delay:170ms}.podium-avatar{position:relative;width:82px;margin:0 auto 20px}.podium-avatar>.avatar{width:82px;height:82px;border:3px solid var(--yellow);border-radius:25px}.podium-avatar>span{position:absolute;bottom:-13px;left:26px;background:var(--yellow);border:2px solid white;border-radius:50%;width:31px;height:31px;display:flex;align-items:center;justify-content:center}.podium-avatar>span .icon{width:17px;height:17px}.podium-player h2{font-size:15px;margin-bottom:16px}.podium-step{border:2px solid var(--ink);border-radius:20px 20px 6px 6px;background:var(--yellow);height:150px;padding:17px;display:flex;flex-direction:column;align-items:center;box-shadow:3px 4px 0 var(--ink)}.rank-1 .podium-step{height:120px;background:var(--soft)}.rank-2 .podium-step{height:100px;background:#ffe1d3}.podium-step>strong{font-size:36px;line-height:1.1}.podium-step>span{font-size:9px;margin-top:3px}.podium-step>b{font-size:13px;margin-top:auto}.result-actions{display:flex;justify-content:center;gap:15px;margin:30px auto 40px}.learning-summary{max-width:740px;margin:auto;padding-top:30px;border-top:1px solid var(--line)}.learning-summary>div:first-child>span{float:left;width:43px;height:45px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--soft);margin-right:15px}.learning-summary h2{font-size:22px}.learning-summary>div>p{font-size:12px;color:var(--muted);margin:10px 0 22px}.review-list{display:grid;gap:10px;max-height:55vh;overflow-y:auto;padding:4px;overscroll-behavior:contain}.review-list details{border:1px solid var(--line);border-radius:15px;font-size:12px;background:white}.review-list summary{display:flex;align-items:center;gap:12px;padding:16px;cursor:pointer;list-style:none}.review-list summary::-webkit-details-marker{display:none}.review-list summary>span{color:var(--muted)}.review-list summary b{font-weight:600;line-height:1.5}.review-list summary>.icon{width:17px;height:17px;margin-left:auto}.review-list details[open] summary>.icon{transform:rotate(90deg)}.review-list p{margin:0 16px 16px;padding:12px 16px;background:var(--soft);border-radius:10px}.empty-review{padding:18px;background:var(--soft);font-size:12px;border-radius:15px}
dialog{width:min(510px,calc(100vw - 30px));border:2px solid var(--ink);border-radius:28px;padding:28px;box-shadow:6px 7px 0 #20201e;max-height:90dvh;overflow-y:auto;overscroll-behavior:contain}dialog[open]{animation:dialog-in 250ms var(--ease-out)}dialog::backdrop{background:#20201e88;animation:fade-in 200ms ease}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px}.dialog-top h2{font-size:25px;line-height:1.15}.dialog-top .icon-btn{flex-shrink:0}dialog>p{font-size:13px;color:var(--muted);margin-bottom:20px}.rules-list{display:grid;gap:18px}.rules-list>div{display:flex;gap:14px;font-size:12px}.rules-list>div>.icon{background:var(--yellow);border-radius:12px;padding:10px;width:43px;height:43px}.rules-list strong{display:block}.notice{background:var(--soft);padding:13px;border-radius:12px;font-size:10px!important;margin:22px 0!important}.preferences{margin:25px 0}.preferences label{display:flex;gap:20px;align-items:center;position:relative;padding:17px 0;border-bottom:1px solid var(--line);cursor:pointer}.preferences strong{font-size:13px;display:block}.preferences small{font-size:10px;color:var(--muted);display:block;margin-top:5px;line-height:1.5}.preferences input{position:absolute;right:0;opacity:0;width:47px;height:28px}.switch{width:47px;height:28px;background:#e1e1da;border:1px solid #20201e30;border-radius:20px;flex-shrink:0;margin-left:auto;position:relative;transition:background 150ms}.switch:after{content:'';position:absolute;left:3px;top:3px;height:20px;width:20px;border-radius:50%;background:white;border:1px solid #20201e30;transition:transform 160ms var(--ease-out)}input:checked+.switch{background:var(--yellow);border-color:var(--ink)}input:checked+.switch:after{transform:translateX(19px);background:var(--ink)}input:focus-visible+.switch{outline:3px solid var(--ink);outline-offset:5px}input:disabled+.switch{opacity:.4}.pause-mascot{width:130px;margin:0 auto}.dialog-actions{display:flex;gap:12px;flex-wrap:wrap}.dialog-actions .btn{flex:1;font-size:12px;padding:12px}.loading{min-height:100dvh;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:22px;text-align:center;padding:25px;background:var(--yellow)}.loading h1{font-size:30px}.loading p{max-width:480px}.loading-card{font-size:45px;font-weight:800;width:100px;height:130px;display:flex;align-items:center;justify-content:center;border:2px solid var(--ink);border-radius:20px;background:white;transform:rotate(-9deg);box-shadow:4px 4px 0 var(--ink);animation:sand 1s var(--ease-in-out) infinite alternate}#toast{position:fixed;bottom:calc(28px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,14px);opacity:0;pointer-events:none;background:var(--ink);color:white;border-radius:15px;padding:13px 22px;font-size:12px;z-index:20;max-width:90vw;text-align:center;transition:opacity 200ms,transform 200ms var(--ease-out)}#toast.visible{opacity:1;transform:translate(-50%,0)}#effects{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:30}.flying-card{position:absolute;width:45px;height:57px;background:var(--yellow);border:2px solid var(--ink);border-radius:10px;display:flex;align-items:center;justify-content:center}.confetti{position:absolute;top:0;width:9px;height:14px;border-radius:2px}
@media(hover:hover) and (pointer:fine){.nav-btn:not(.selected):hover{background:#ffffff60}.icon-btn:hover{background:#ffffff80;transform:translateY(-2px)}.btn:hover{transform:translateY(-2px)}.text-btn:hover{text-decoration:underline}.family-tile:hover{background:var(--soft);transform:translateY(-4px)}.sample-front:hover{transform:rotate(3deg) translateY(-8px)}.choice:not(:disabled):hover{border-color:var(--ink);background:var(--soft)}.mode:not(.active):hover,.format:not(.active):hover,.family-tab:not(.active):hover{background:#fffbee}.demo-skip:hover{background:var(--soft)}}
@keyframes screen-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes card-in{from{opacity:0;transform:translateY(8px) rotate(-1deg)}to{opacity:1;transform:translateY(0) rotate(0)}}@keyframes deal-front{from{opacity:0;transform:translateY(50px) rotate(-3deg)}to{opacity:1;transform:translateY(0) rotate(8deg)}}@keyframes deal-back{from{opacity:0;transform:translateY(50px) rotate(0)}to{opacity:1;transform:translateY(0) rotate(-12deg)}}@keyframes sticker-in{from{opacity:0;transform:rotate(0) scale(.95)}to{opacity:1;transform:rotate(12deg) scale(1)}}@keyframes mascot-in{from{opacity:0;transform:translateY(30px) rotate(-15deg)}to{opacity:1;transform:translateY(0) rotate(-5deg)}}@keyframes fade-in{from{opacity:.2}to{opacity:1}}@keyframes dialog-in{from{opacity:0;transform:scale(.96) translateY(12px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes podium-in{from{opacity:0;transform:translateY(25px)}to{opacity:1;transform:translateY(0)}}@keyframes sand{0%,80%{transform:rotate(-8deg)}100%{transform:rotate(8deg)}}
@media(min-width:1500px){.hero{padding-left:max(8vw,calc((100vw - 1250px)/2));padding-right:max(8vw,calc((100vw - 1250px)/2))}.hero-stage{min-height:520px}.sample-card{width:310px;height:420px}.sample-front h2{font-size:37px}.sample-front p{font-size:12px}.sample-front .organ{height:110px;width:140px}.sample-answer{margin-top:20px;font-size:15px}.sample-foot{font-size:9px;margin-top:20px}}
@media(max-width:1100px){.header{padding:22px 30px;gap:18px}.header nav{gap:1px}.nav-btn{padding:0 12px;font-size:12px}.demo-badge{display:none}.hero{padding:22px 6vw 65px;gap:10px}.hero-stage{transform:scale(.88);transform-origin:center}.hero h1{font-size:65px}.hero-copy>p{font-size:14px}.hero-actions{gap:15px}.hero-actions .btn-big{font-size:15px;padding:14px 22px}.families-section{padding:25px 6vw 38px}.family-grid{gap:10px}.family-tile{gap:10px;padding:16px 11px}.family-tile>.icon{display:none}.family-icon{width:38px;height:40px}.page-view{padding-left:5vw;padding-right:5vw}.setup-grid{gap:40px}.paper-summary{padding:26px}.game-layout{grid-template-columns:190px minmax(300px,490px);gap:28px}.game-aside{grid-column:2;display:flex;align-items:center;gap:15px;padding:0}.game-aside .tiny-stack,.game-aside h3,.game-aside>p:not(.bot-status){display:none}.deck-count{margin:0;font-size:9px}.demo-skip{margin:0 0 0 auto}.game-top>.icon-btn,.game-top>.icon-spacer{margin-left:calc(50% - 170px)}.family-tile small{font-size:8px}.quiz-card{padding:20px 23px}.library-layout{gap:45px}}
@media(max-width:760px){.header{padding:20px 22px}.header nav{display:none}.logo{font-size:21px;gap:9px}.logo i{font-size:8px}.logo-tiles b{width:31px;height:38px;border-radius:10px}.header-tools{gap:8px}.header-tools .icon-btn{width:39px;height:39px;border-radius:13px}.hero{grid-template-columns:1fr;padding:17px 28px 40px;text-align:center;gap:0}.hero-copy{padding:7px 0}.little-note{justify-content:center;font-size:10px;margin-bottom:17px}.hero h1{font-size:57px;line-height:1.01}.hero h1 br:nth-of-type(1){display:none}.hero h1 br:nth-of-type(1):after{content:' '}.hero h1{max-width:450px;margin:auto}.hero-copy>p{font-size:13px;margin-top:28px}.hero-actions{justify-content:center;gap:17px;margin-top:20px}.hero-actions .btn-big{font-size:15px;min-height:55px;border-radius:17px;padding:12px 22px}.hero-actions .text-btn{font-size:11px}.friends-proof{justify-content:center;margin-top:25px;text-align:left;font-size:9px}.hero-stage{height:342px;min-height:342px;transform:scale(.75);transform-origin:center 20%;margin:10px -20px -25px}.sample-front{left:calc(50% - 100px);top:28px}.sample-back{left:calc(50% - 180px);top:10px}.win-sticker{right:calc(50% - 220px);top:17px}.hero-mascot{left:calc(50% - 235px);bottom:-70px;width:160px}.spark-one{right:calc(50% - 225px);bottom:-60px}.spark-two{left:calc(50% - 235px);top:0}.hand-note{display:none}.families-section{padding:28px 23px}.section-heading{margin-bottom:16px}.section-heading h2{font-size:18px;max-width:190px}.section-heading>span{font-size:9px;text-align:right}.family-grid{grid-template-columns:1fr 1fr;gap:12px}.family-tile{padding:16px 10px}.family-tile strong{font-size:12px}.family-tile small{font-size:8px}.footer{font-size:9px;padding:20px 24px;line-height:1.5}.footer>span:last-child{text-align:right}.page-view{padding:26px 23px 45px}.page-title{gap:13px;margin-bottom:26px}.page-title h1{font-size:30px}.page-title p{font-size:11px;line-height:1.6}.page-title>.icon-btn{width:38px;height:38px;border-radius:12px}.title-doodle{display:none}.setup-grid{grid-template-columns:1fr;gap:20px}.setup-options h2{font-size:16px}.mode-selector{gap:9px}.mode{padding:16px 4px}.mode strong{font-size:12px}.mode>span{font-size:8px}.format{padding:14px 16px}.format strong{font-size:13px}.format>b{font-size:15px}.setup-summary{padding-top:40px}.summary-mascot{top:-27px;right:18px;width:115px}.paper-summary{transform:rotate(0);padding:22px;border-radius:23px}.paper-summary h2{font-size:24px;max-width:280px;margin-top:20px}.summary-values{margin:20px 0;padding-bottom:18px}.paper-summary .btn{transform:none}.lobby-meta{gap:13px;flex-wrap:wrap;justify-content:flex-start;margin-bottom:25px;font-size:10px}.team-grid{gap:13px;flex-direction:column}.team-panel{max-width:none;padding:16px;text-align:left;display:grid;grid-template-columns:45px 1fr;gap:8px 12px;border-radius:21px}.team-label{grid-column:2;grid-row:1;justify-self:start;font-size:8px;padding:4px 9px}.team-emblem{grid-column:1;grid-row:1/3;width:43px;height:46px;margin:0;align-self:center;border-radius:14px}.team-emblem .icon{width:25px;height:25px}.team-panel h2{grid-column:2;grid-row:2;font-size:19px}.members{grid-column:1/3;display:flex;margin:6px 0 0;gap:8px}.members>div{flex:1;padding:6px;font-size:10px;gap:7px}.members .avatar{width:28px;height:28px;border-radius:9px}.members .icon{width:12px;height:12px}.lobby-bottom{flex-direction:column;margin-top:26px;align-items:stretch}.lobby-bottom .btn{width:100%}.voice-note{max-width:100%}.voice-note small{font-size:9px}.family-tabs{gap:7px;justify-content:space-between;margin:20px 0 30px}.family-tab{flex:1;justify-content:center;gap:6px;padding:10px 5px;border-radius:13px;font-size:10px;min-height:48px}.family-tab .icon{width:16px;height:16px}.library-layout{display:flex;flex-direction:column;gap:25px}.library-layout>aside{width:100%;display:grid;grid-template-columns:1fr auto;gap:5px 15px}.big-family-icon{display:none}.library-layout>aside h2{font-size:22px;margin:0}.library-layout>aside>p{font-size:11px;margin:0;grid-column:1}.source-label{font-size:9px;margin-top:5px}.library-nav{grid-column:2;grid-row:1/4;margin:0;gap:12px;align-self:center}.library-nav .icon-btn{width:38px;height:40px}.source-details{grid-column:1/3;margin:0}.library-layout>.card-wrap{width:100%;max-width:470px}.quiz-card{padding:19px 20px;border-radius:22px}.question-title{font-size:21px;margin:12px 0 20px}.question-art{height:94px;margin:7px 0}.question-art .organ{height:96px;width:130px}.question-image{height:130px}.choice{min-height:53px;font-size:13px}.game-top{margin-bottom:19px;gap:12px}.game-top>div:first-child{font-size:11px;gap:10px}.game-top>div:first-child small{font-size:9px}.game-top>.icon-btn,.game-top>.icon-spacer{margin-left:0}.timer{padding:8px 14px;font-size:22px;gap:7px}.hourglass{font-size:17px}.game-top .icon-btn{width:38px;height:40px;flex-shrink:0}.game-layout{display:flex;flex-direction:column;gap:22px}.scoreboard{padding:0;display:flex;gap:7px;width:100%}.scoreboard h2,.team-chat{display:none}.score-row{flex:1;gap:6px;padding:9px 7px;margin:0;background:white;border-color:var(--line);min-width:0;border-radius:13px}.score-symbol{width:27px;height:30px;border-radius:9px}.score-symbol .icon{width:16px;height:16px}.score-row strong{font-size:9px}.score-row small{font-size:7px;margin-top:3px}.score-row>b{font-size:19px}.score-row>b small{display:none}.game-center{width:100%;max-width:470px;margin:0 auto}.game-aside{width:100%;padding:0;display:flex;gap:10px;flex-wrap:wrap}.game-aside .demo-skip{min-height:35px}.game-aside .bot-status{margin:0}.transition-card{min-height:380px;padding:27px 17px;gap:19px;border-radius:25px}.transition-card h1{font-size:29px}.transition-card .btn-big{font-size:14px;min-height:55px;padding:13px 22px}.transition-card .turn-recap{font-size:9px;gap:8px}.transition-card>small{font-size:8px}.game-top .timer{flex-shrink:0}.game-top>div:first-child{flex:none;margin-right:auto}.results-title h1{font-size:33px}.results-title>p{font-size:11px}.podium{gap:10px;margin-top:30px}.podium-avatar{width:64px;margin-bottom:17px}.podium-avatar>.avatar{width:64px;height:64px;border-radius:20px}.podium-avatar>span{left:19px;width:28px;height:28px}.podium-player h2{font-size:11px;margin-bottom:11px}.podium-step{padding:15px 5px;height:145px;border-radius:16px 16px 5px 5px}.podium-step>strong{font-size:30px}.podium-step>span{font-size:8px}.podium-step>b{font-size:11px}.rank-1 .podium-step{height:115px}.rank-2 .podium-step{height:95px}.result-actions{gap:10px;margin:26px 0 30px}.result-actions .btn{font-size:12px;padding:12px 15px;min-height:51px}.learning-summary h2{font-size:20px}.learning-summary>div>p{font-size:11px}.review-list summary{padding:12px;font-size:11px;gap:9px}.review-list summary .icon{width:18px;height:18px}dialog{padding:23px;border-radius:23px}.dialog-top h2{font-size:22px}.rules-list>div{font-size:11px}.dialog-actions .btn{min-width:160px}.card-bottom{font-size:9px}.card-bottom .text-btn{font-size:11px}}
@media(max-width:380px){.hero h1{font-size:49px}.hero-stage{transform:scale(.69);margin-left:-28px;margin-right:-28px}.header{padding:18px}.logo{font-size:19px}.logo i{font-size:7px}.hero-actions{gap:12px}.hero-actions .text-btn{font-size:10px}.page-view{padding-left:18px;padding-right:18px}.family-tab{font-size:9px;gap:4px}.family-tab .icon{width:14px}.quiz-card{padding:17px}.choice{font-size:12px}.score-row{padding:8px 5px;gap:4px}.score-row strong{font-size:8px}.score-row small{font-size:7px}.score-symbol{width:24px;height:28px}.members>div{gap:4px;font-size:9px}.library-nav{gap:8px}.question-title{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}#effects{display:none}.turn-progress>span{transition:none}.sample-front{transform:rotate(8deg)}.sample-back{transform:rotate(-12deg)}}
.reduce-motion *,.reduce-motion *:before,.reduce-motion *:after{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.reduce-motion #effects{display:none}
@supports(padding:max(0px)){.header{padding-top:max(20px,env(safe-area-inset-top))}.footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}.page-view{padding-left:max(23px,5vw,env(safe-area-inset-left));padding-right:max(23px,5vw,env(safe-area-inset-right))}}
/* Keep every icon control comfortably tappable, including the narrow layout. */
.icon-btn{min-width:44px;min-height:44px}.question-title{text-wrap:pretty}.hand-note{right:-15px;bottom:-18px}.spark-one{right:16px;bottom:38px}
.source-details summary,.transition-card .text-btn{min-height:44px;display:flex;align-items:center}.source-details summary{gap:8px}.source-details summary:before{content:'+';font-size:16px}.source-details[open] summary:before{content:'−'}.podium-player.place-1 .podium-step{height:150px;background:var(--yellow)}.podium-player.place-2 .podium-step{height:120px;background:var(--soft)}.podium-player.place-3 .podium-step{height:100px;background:#ffe1d3}.neutral-art>.icon{width:65px;height:65px;stroke-width:1.2;padding:12px;box-sizing:content-box;background:var(--soft);border-radius:25px;transform:rotate(-6deg)}
.switch{pointer-events:none}
.skip-link{opacity:0;pointer-events:none}.skip-link:focus{opacity:1;pointer-events:auto}
@media(max-width:760px){.hand-note{display:none}.spark-one{right:calc(50% - 225px);bottom:-60px}.hero h1{font-size:53px}.score-row strong{white-space:nowrap}.score-row>span:nth-child(2){min-width:0}.score-symbol{display:none}.score-row{padding:10px 8px}.score-row strong{font-size:10px}.score-row small{font-size:8px}.card-bottom{min-height:45px}.demo-skip{min-height:44px!important}}
@media(max-width:760px){.hero h1 br:nth-of-type(1){display:initial}.podium-player.place-1 .podium-step{height:145px}.podium-player.place-2 .podium-step{height:115px}.podium-player.place-3 .podium-step{height:95px}}

/* ——— Motion pass: 3D cards, deck, hourglass, team coin, mascot. Each effect falls back to a static state under .reduce-motion. ——— */
:root{--spring:cubic-bezier(.34,1.56,.64,1);--tb0:var(--yellow);--tb1:var(--orange);--tb2:#ffffff}

/* Buttons sink into their hard shadow */
.btn .icon{transition:transform 300ms var(--spring)}
.choice-letter{transition:transform 300ms var(--spring),background 150ms}
@media(hover:hover) and (pointer:fine){
.btn:not(:disabled):hover{transform:translate(-1px,-2px);box-shadow:3px 6px 0 var(--ink)}
.btn-dark:not(:disabled):hover{box-shadow:3px 6px 0 #20201e45}
.btn:not(:disabled):hover>.icon:last-child{transform:translateX(4px)}
.choice:not(:disabled):hover .choice-letter{transform:rotate(-8deg) scale(1.08);background:white}
.sample-front:hover{transform:none}
}
.btn:active:not(:disabled){transform:translate(2px,4px);box-shadow:0 0 0 var(--ink);transition-duration:60ms}
.btn-dark:active:not(:disabled){box-shadow:0 0 0 #20201e45}
.btn-small:active:not(:disabled){transform:translate(1px,2px)}

/* Two-faced question card */
.card-wrap{perspective:1600px}
.card-flip{position:relative;transform-style:preserve-3d}
.card-flip.is-flipped{transform:rotateY(180deg)}
.card-face{animation:none;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.card-front{position:relative;touch-action:pan-y}
.card-back{position:absolute;inset:0;transform:rotateY(180deg);display:flex;flex-direction:column}
.card-back.is-cover{align-items:center;justify-content:center;background:radial-gradient(circle at 1px 1px,#20201e2e 1.3px,transparent 1.6px) 0 0/14px 14px var(--yellow)}
.card-cover{display:flex;flex-direction:column;align-items:center;gap:16px}
.card-cover .logo-tiles b{width:66px;height:76px;font-size:34px;border-radius:18px}
.card-cover i{font-style:normal;font-weight:800;font-size:13px;background:white;border:1.5px solid var(--ink);border-radius:20px;padding:5px 12px}
.card-back.result-correct{background:#edf7ef}
.card-back.result-wrong{background:#fff0e9}
.card-back.result-library{background:var(--soft)}
.answer-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:8px 4px;min-height:0}
.verdict{width:68px;height:68px;border-radius:50%;border:2px solid var(--ink);display:flex;align-items:center;justify-content:center;background:var(--green);color:white;box-shadow:2px 3px 0 var(--ink);margin-bottom:6px}
.result-wrong .verdict{background:var(--orange);color:var(--ink)}
.result-library .verdict{background:var(--yellow);color:var(--ink)}
.verdict .icon{width:32px;height:32px}
.answer-eyebrow{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.answer-word{font-size:36px;letter-spacing:-.05em;line-height:1.1}
.answer-expl{font-size:13px;line-height:1.55;max-width:330px}
.answer-yours{font-size:12px;font-weight:700;color:#8a4a30}
.flip-sticker{position:absolute;top:20px;right:18px;background:var(--yellow);border:2px solid var(--ink);border-radius:14px;padding:7px 12px;font-size:13px;font-weight:800;transform:rotate(10deg);box-shadow:2px 3px 0 var(--ink)}
.card-back .card-bottom{margin-top:0}
.pass-badge{position:absolute;top:24px;right:22px;padding:6px 12px;border:2.5px solid var(--ink);border-radius:12px;background:var(--yellow);font-weight:800;font-size:15px;transform:rotate(10deg);opacity:0;pointer-events:none}
.pass-badge.left{right:auto;left:22px;transform:rotate(-10deg)}
.card-flip.dragging{transition:none}
.fx-flip{animation:card-flip 720ms 300ms both}
.fx-flip.fx-wrong{animation-delay:520ms}
.fx-flip.fx-wrong .card-front{animation:card-shake 420ms 40ms ease-out both}
.fx-flip .flip-sticker{animation:sticker-pop 450ms 860ms var(--spring) both}
.fx-unflip{animation:card-unflip 560ms both}
.fx-lib-next{animation:lib-next 420ms var(--ease-out) both}
.fx-lib-prev{animation:lib-prev 420ms var(--ease-out) both}
@keyframes card-flip{0%{transform:translateZ(0) rotateY(0deg) rotateZ(0deg);animation-timing-function:cubic-bezier(.45,0,.7,.5)}50%{transform:translateZ(90px) rotateY(95deg) rotateZ(-3deg);animation-timing-function:cubic-bezier(.3,1.35,.55,1)}100%{transform:translateZ(0) rotateY(180deg) rotateZ(0deg)}}
@keyframes card-unflip{0%{transform:translateZ(0) rotateY(180deg)}50%{transform:translateZ(80px) rotateY(85deg)}100%{transform:translateZ(0) rotateY(0deg)}}
@keyframes card-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-10px) rotate(-1deg)}40%{transform:translateX(9px) rotate(1deg)}60%{transform:translateX(-6px)}80%{transform:translateX(3px)}}
@keyframes sticker-pop{from{transform:rotate(-20deg) scale(0)}to{transform:rotate(10deg) scale(1)}}
@keyframes lib-next{from{opacity:0;transform:translateX(70px) rotateY(-35deg) rotateZ(4deg)}to{opacity:1;transform:none}}
@keyframes lib-prev{from{opacity:0;transform:translateX(-70px) rotateY(35deg) rotateZ(-4deg)}to{opacity:1;transform:none}}
.exit-card{position:absolute;perspective:1600px}

/* Draw pile and collected cards */
.game-aside{perspective:700px}
.pioche{position:relative;width:62px;height:82px;margin:4px 0 28px 22px;transform:rotateX(48deg) rotateZ(-18deg);transform-style:preserve-3d}
.pioche i{position:absolute;inset:0;border:2px solid var(--ink);border-radius:12px;background:radial-gradient(circle at 1px 1px,#20201e2e 1.2px,transparent 1.5px) 0 0/10px 10px var(--yellow);transform:translateZ(calc(var(--i) * 4px))}
.pioche i:last-child:not(.empty)::after{content:"VQ";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px}
.pioche i.empty{background:none;border-style:dashed;border-color:#20201e50}
.mini-pile{position:relative;width:24px;height:31px;flex-shrink:0;margin-left:auto}
.mini-pile:empty{border:1.5px dashed #20201e40;border-radius:6px}
.mini-pile i{position:absolute;inset:0;border:1.5px solid var(--ink);border-radius:6px;background:white}
.mini-pile i:nth-child(odd){background:var(--yellow)}
.mini-pile i:nth-child(1){transform:rotate(-6deg)}
.mini-pile i:nth-child(2){transform:translateY(-2px) rotate(4deg)}
.mini-pile i:nth-child(3){transform:translateY(-4px) rotate(-2deg)}
.mini-pile i:nth-child(4){transform:translateY(-6px) rotate(7deg)}
.mini-pile i:nth-child(5){transform:translateY(-8px) rotate(-4deg)}
.mini-pile i.fx-land{animation:pile-land 300ms 470ms var(--spring) both}
.mini-pile.fx-squash{animation:pile-squash 380ms 520ms var(--spring)}
@keyframes pile-land{from{opacity:0;scale:1.5}to{opacity:1;scale:1}}
@keyframes pile-squash{50%{transform:scale(1.18,.84)}}
.score-row>b{margin-left:10px}
.odo{position:relative;display:inline-block;overflow:hidden;height:1.15em;line-height:1.15;vertical-align:bottom}
.odo>span{display:block}
.odo.fx-roll .odo-old{position:absolute;inset:0;animation:odo-out 280ms var(--ease-out) both}
.odo.fx-roll .odo-new{animation:odo-in 460ms 90ms var(--spring) both}
@keyframes odo-out{to{transform:translateY(-110%)}}
@keyframes odo-in{from{transform:translateY(110%)}}

/* Hourglass timer */
.hourglass{width:20px;height:28px;display:inline-flex;font-size:0}
.hg{width:100%;height:100%;overflow:visible}
.timer .hg-sand,.turn-hourglass .hg-sand{fill:var(--orange)}
.timer.urgent .hg-sand{fill:#fff}
.hg-stream{stroke:transparent;stroke-width:2.6;stroke-dasharray:2 3}
.timer.live .hg-stream{stroke:var(--orange);animation:hg-stream .5s linear infinite}
@keyframes hg-stream{to{stroke-dashoffset:-10}}
.timer.urgent.live .hg-stream{stroke:#fff}
#time{display:inline-block}
.turn-hourglass{width:40px;height:56px;transform:rotate(180deg)}
.turn-hourglass.fx-timeup{animation:hg-flip 800ms 250ms var(--spring) both}
@keyframes hg-flip{from{transform:rotate(0)}to{transform:rotate(180deg)}}

/* Team coin and colour wipe */
.transition-card{position:relative}
.transition-card>*{position:relative;z-index:1}
.transition-card>.team-wipe{position:absolute;inset:0;z-index:0;border-radius:inherit;animation:team-wipe 700ms 160ms cubic-bezier(.77,0,.175,1) both}
@keyframes team-wipe{from{clip-path:circle(0% at 50% 30%)}to{clip-path:circle(150% at 50% 30%)}}
.ready-card.bg-team-2 .sticker{background:var(--yellow)}
.coin-scene{perspective:700px}
.coin{position:relative;width:88px;height:88px;transform-style:preserve-3d;transform:rotateY(180deg)}
.coin>span{position:absolute;inset:0;border-radius:50%}
.coin-edge{background:var(--ink)}
.coin-face{display:flex;align-items:center;justify-content:center;border:3px solid var(--ink);background:white;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.coin-face.f0{transform:translateZ(5px)}
.coin-face.f1{transform:rotateY(180deg) translateZ(5px)}
.coin-face .icon{width:42px;height:42px}
.coin-face.team-1{background:var(--yellow)}
.coin-face.team-2{background:var(--soft)}
.coin.fx-coin{animation:coin-flip 900ms 120ms both}
@keyframes coin-flip{0%{transform:translateY(0) rotateY(-360deg) scale(1);animation-timing-function:cubic-bezier(.2,.7,.4,1)}55%{transform:translateY(-60px) rotateY(20deg) scale(1.08);animation-timing-function:cubic-bezier(.5,0,.8,.4)}85%{transform:translateY(0) rotateY(180deg) scale(1.1,.88)}100%{transform:translateY(0) rotateY(180deg) scale(1)}}

/* Mascot: always breathing and blinking; waves hello on the home page */
.mascot .m-body{transform-box:view-box;transform-origin:105px 190px;animation:m-breathe 2.8s ease-in-out infinite}
.mascot .m-eyes circle{transform-box:fill-box;transform-origin:center;animation:m-blink 5s infinite}
.mascot .m-eyes{transition:transform 180ms var(--ease-out)}
.mascot .m-arm{transform-box:view-box}
.hero-mascot .m-arm-r{transform-origin:154px 125px;animation:m-wave 7s 900ms infinite}
@keyframes m-breathe{0%,100%{transform:scale(1,1)}50%{transform:scale(1.015,.985)}}
@keyframes m-blink{0%,93%,97%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
@keyframes m-wave{0%,62%,100%{transform:rotate(0)}68%{transform:rotate(-28deg)}74%{transform:rotate(6deg)}80%{transform:rotate(-24deg)}86%{transform:rotate(4deg)}92%{transform:rotate(0)}}
.hero-mascot .mascot-btn{display:block;width:100%;padding:0;border-radius:30px;cursor:pointer}
.hero-mascot .mascot-btn:focus-visible{outline-offset:2px}
.mascot-bubble{position:absolute;top:-10px;right:-34px;z-index:2;background:white;border:2px solid var(--ink);border-radius:16px 16px 16px 4px;padding:6px 11px;font-size:12px;font-weight:800;white-space:nowrap;box-shadow:1px 2px 0 var(--ink);opacity:0;pointer-events:none}
.mascot-bubble.show{animation:bubble 1600ms var(--ease-out) both}
.home-bubble{top:-62px;left:96px;right:auto;white-space:normal;width:max-content;max-width:230px;line-height:1.4;transform-origin:0 100%}
.home-bubble.show{animation:bubble-long 4.6s var(--ease-out) both}
@keyframes bubble{0%{opacity:0;transform:scale(.6) rotate(-8deg)}15%,80%{opacity:1;transform:scale(1) rotate(0)}100%{opacity:0;transform:scale(.95)}}
@keyframes bubble-long{0%{opacity:0;transform:scale(.6) rotate(-8deg)}6%,90%{opacity:1;transform:scale(1) rotate(0)}100%{opacity:0}}
.aside-mascot{position:relative;width:112px;margin:0 0 20px 8px}
.aside-mascot .mascot{transform-origin:50% 90%}
.aside-mascot.react-good .mascot{animation:m-jump 640ms ease-out}
.aside-mascot.react-bad .mascot{animation:m-wobble 560ms ease-in-out}
.aside-mascot.react-streak .mascot{animation:m-spin 850ms cubic-bezier(.45,0,.3,1)}
@keyframes m-jump{0%,100%{transform:translateY(0) scale(1,1)}15%{transform:translateY(4px) scale(1.06,.92)}50%{transform:translateY(-34px) scale(.96,1.05)}85%{transform:translateY(0) scale(1.08,.9)}}
@keyframes m-wobble{0%,100%{transform:rotate(0)}25%{transform:rotate(-7deg)}50%{transform:rotate(5deg)}75%{transform:rotate(-3deg)}}
@keyframes m-spin{0%{transform:perspective(600px) translateY(0) rotateY(0)}50%{transform:perspective(600px) translateY(-40px) rotateY(180deg)}100%{transform:perspective(600px) translateY(0) rotateY(360deg)}}
.burst-spark{position:absolute;color:var(--ink)}
.burst-spark .icon{width:22px;height:22px}
.confetti{width:11px;height:15px;border:1.5px solid var(--ink);border-radius:3px}

/* Home hero in relief */
.hero-stage{perspective:1300px}
.hero-tilt{position:absolute;inset:0;transform-style:preserve-3d;transition:transform 700ms var(--spring)}
.hero-tilt.tilting{transition:transform 90ms linear}
.hero-tilt>.sample-back{translate:0 0 10px}
.hero-tilt>.sample-front{translate:0 0 45px}
.hero-tilt>.win-sticker{translate:0 0 100px}
.hero-tilt>.hero-mascot{translate:0 0 75px}
.hero-tilt>.stage-spark{translate:0 0 130px}
.hero-tilt>.hand-note{translate:0 0 30px}
@media(hover:none){.hero-tilt{animation:hero-float 7s ease-in-out infinite}}
@keyframes hero-float{0%,100%{transform:rotateX(5deg) rotateY(-8deg)}50%{transform:rotateX(-3deg) rotateY(8deg)}}

@media(max-width:1100px){.aside-mascot{display:none}.pioche{width:30px;height:40px;margin:0 4px 0 6px}.pioche i{border-width:1.5px;border-radius:7px;background-size:6px 6px;transform:translateZ(calc(var(--i) * 2px))}.pioche i:last-child:not(.empty)::after{font-size:8px}}
@media(max-width:760px){.mini-pile{display:none}.score-row>b{margin-left:auto}.hourglass{width:17px;height:24px}.answer-word{font-size:30px}.home-bubble{left:70px;top:-70px;max-width:200px}}
@media(prefers-reduced-motion:reduce){.odo-old{display:none}.mascot-bubble.show{opacity:1}}
.reduce-motion .odo-old{display:none}
.reduce-motion .mascot-bubble.show{opacity:1}
