@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');
:root{font-family:Sora,Arial,sans-serif;color:#fff;background:#bfdfff;font-synthesis:none;letter-spacing:0;color-scheme:light}
*{box-sizing:border-box}body{margin:0;padding:24px;min-height:100svh}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #fff06b;outline-offset:4px}[hidden]{display:none!important}
.experience{position:relative;isolation:isolate;overflow:hidden;width:min(100%,520px);min-height:760px;min-height:min(850px,calc(100svh - 48px));margin:0 auto;border:7px solid #fff;border-radius:24px;background:#223644;box-shadow:0 16px 60px #25506d20;display:flex;flex-direction:column}
.experience::before{content:"";position:absolute;inset:-5px;z-index:-2;background:url('../assets/images/mara.jpg') center 35%/cover no-repeat;filter:blur(1.25px)}
.experience::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#11223125 20%,#10233150 48%,#102130ed 100%)}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:24px 25px;min-height:78px}.masthead a{color:white;text-decoration:none;font-size:19px;font-weight:700}.masthead a span{font-weight:400}.preview-tag{font-size:9px;line-height:1.5;background:#102332a8;padding:5px 8px;border-radius:4px;white-space:nowrap}
.screen{padding:20px 28px;flex:1;min-width:0}.intro{display:flex;align-items:flex-end;min-height:610px}.intro-content{padding-top:230px;width:100%}.eyebrow{font-size:11px;line-height:1.5;font-weight:600;margin:0 0 12px;color:#fff06b}.intro h1{font-size:42px;line-height:1.08;letter-spacing:0;margin:0 0 18px;text-shadow:0 2px 18px #0004}.intro-copy{font-size:14px;line-height:1.7;max-width:380px;margin:0 0 25px;color:#f6f8fa}
.primary{width:100%;min-height:54px;padding:15px 18px;display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:8px;background:#fff06b;color:#183650;font-weight:700;font-size:15px;line-height:1.35;box-shadow:0 5px 16px #0001;transition:transform .15s,background .15s}.primary:hover{background:#ffe65e;transform:translateY(-1px)}.primary:disabled{opacity:.65;transform:none}.primary svg{width:19px;height:19px;flex-shrink:0}.footnote{font-size:10px;line-height:1.6;text-align:center;color:#e9edf2c9;margin:15px 0 0}footer{padding:15px 22px 20px;text-align:center}footer a{color:#dbe5ec;font-size:10px;text-underline-offset:3px}
.play{padding-top:6px}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.game-heading .eyebrow{margin-bottom:5px}.game-heading h2{font-size:23px;line-height:1.2;margin:0;text-shadow:0 2px 10px #0005}.icon-button{width:40px;height:40px;flex-shrink:0;border:1px solid #ffffff60;border-radius:50%;background:#18365070;color:white;display:grid;place-items:center}.icon-button svg{width:18px;height:18px}.level-progress{display:flex;gap:7px;margin:18px 0}.level-progress span{height:4px;flex:1;border-radius:2px;background:#ffffff40}.level-progress span.current{background:#fff06b}.level-progress span.done{background:#8de6b4}.score-row{display:flex;justify-content:space-between;align-items:center;font-size:12px}.score-row strong{font-size:18px;font-variant-numeric:tabular-nums}
.playfield{position:relative;height:clamp(280px,49svh,440px);margin:8px -10px 14px;touch-action:pan-y}#canvas-host,#targets{position:absolute;inset:0}#canvas-host canvas{display:block}#targets{pointer-events:none}.heart-target{position:absolute;top:0;left:0;width:70px;height:70px;border:0;padding:0;background:transparent;pointer-events:auto;border-radius:50%;touch-action:manipulation}.heart-target:focus-visible{outline:3px solid #fff06b}.game-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}.switch-label{display:flex;align-items:center;gap:8px;font-size:11px;cursor:pointer}.switch-label input{appearance:none;width:30px;height:18px;border-radius:12px;background:#ffffff55;position:relative;margin:0;flex-shrink:0}.switch-label input::after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;background:white;border-radius:50%;transition:transform .15s}.switch-label input:checked{background:#fff06b}.switch-label input:checked::after{transform:translateX(12px);background:#183650}.quiet-button{border:0;padding:7px 0;background:transparent;color:#edf5fc;font-size:11px;line-height:1.4;display:inline-flex;gap:6px;align-items:center}.quiet-button svg{width:15px;height:15px;flex-shrink:0}.quiet-button:hover{color:#fff06b}
.message{display:flex;align-items:flex-end;text-align:center;min-height:610px;padding-bottom:65px}.message>div{width:100%}.message h2{font-size:30px;line-height:1.3;margin:0 0 28px}.success-mark{width:62px;height:62px;margin:0 auto 20px;color:#fff06b}.success-mark svg{width:62px;height:62px}.signup{display:flex;align-items:flex-end;min-height:610px;text-align:center;padding-top:190px}.signup>div{width:100%}.signup h2{font-size:24px;line-height:1.3;margin:0 0 14px}.signup p:not(.eyebrow):not(.footnote):not(.doi-note){font-size:13px;line-height:1.6}.signup label{display:block;font-size:11px;font-weight:600;margin:20px 0 7px}.signup input{width:100%;height:50px;border:2px solid white;background:#fffffff2;border-radius:8px;text-align:center;color:#183650;font-size:16px;padding:10px}.signup .primary{margin-top:9px;font-size:13px;background:#ffbd57}.doi-note{font-size:10px;line-height:1.7;margin-top:18px}.replay{margin:10px auto 0}.form-status{background:#ffffff18;border-radius:6px;padding:10px}
dialog{color:#183650;background:#fff;border:0;border-radius:8px;padding:30px;width:min(90vw,360px);text-align:center;box-shadow:0 20px 90px #0006}dialog::backdrop{background:#102332aa;backdrop-filter:blur(5px)}dialog .eyebrow{color:#557180}dialog h2{font-size:24px;margin:10px 0 24px}dialog .quiet-button{color:#183650;margin-top:15px}.no-script{padding:20px;background:white;color:#183650}
#memory-board{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;align-content:center;height:100%;padding:12px 0}#memory-board[data-pairs="3"]{grid-template-columns:repeat(3,1fr)}#memory-board[data-pairs="4"]{grid-template-columns:repeat(4,1fr)}.memory-card{min-width:0;aspect-ratio:3/4;padding:0;border:1px solid #ffffffb0;background:#eff6fa;border-radius:8px;position:relative;overflow:hidden;box-shadow:0 5px 16px #0002;max-height:170px}.memory-card .back,.memory-card .front{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px}.memory-card .back{background:#fff06b;color:#183650;font-size:16px;font-weight:700}.memory-card .front{visibility:hidden;color:#183650;font-size:10px;background:#dcf1f6}.memory-card[data-pair="1"] .front{background:#ffe1e6}.memory-card[data-pair="2"] .front{background:#e5ebd0}.memory-card[data-pair="3"] .front{background:#f9e8bf}.memory-card .front svg{width:30px;height:30px}.memory-card .front img{width:100%;height:100%;object-fit:cover}.memory-card.revealed .front,.memory-card.matched .front{visibility:visible}.memory-card.revealed .back,.memory-card.matched .back{visibility:hidden}.memory-card.matched{border:3px solid #8de6b4;opacity:.85}.memory-card.hinted{outline:3px solid #fff06b;outline-offset:2px}
@media(max-width:560px){body{padding:0;background:#183650}.experience{width:100%;min-height:100svh;border:0;border-radius:0;box-shadow:none}.masthead{padding:20px 22px}.screen{padding-left:24px;padding-right:24px}.intro,.message,.signup{min-height:calc(100svh - 128px)}.intro-content{padding-top:160px}.intro h1{font-size:38px}.intro-copy{font-size:13px}.message{padding-bottom:55px}.signup{padding-top:150px}.game-heading h2{font-size:21px}.playfield{height:clamp(260px,48svh,450px)}.game-controls{gap:8px}.quiet-button{font-size:10px}}
@media(max-height:700px){.masthead{padding-top:14px;padding-bottom:14px;min-height:60px}.intro-content{padding-top:110px}.intro h1{font-size:34px}.intro-copy{margin-bottom:16px}.signup{padding-top:100px}.playfield{height:280px}.screen{padding-top:10px}footer{padding-top:8px;padding-bottom:12px}}
.intro{padding-bottom:30px}.intro h1{font-size:56px;line-height:1.05;margin-bottom:16px}.intro h1 span{color:#fff06b}.intro-copy{font-size:17px;line-height:1.5;margin-bottom:25px}.play{padding-top:28px}.preview-label{font-size:10px;color:#dbe5ec99;margin-right:16px}
@media(max-width:560px){.intro h1{font-size:52px}.intro-copy{font-size:16px}}
@media(max-height:700px){.intro h1{font-size:44px}}
.intro{align-items:flex-end;text-align:center}
.intro-content{padding-top:0}
.intro-copy{margin-left:auto;margin-right:auto}
.heart-instruction{position:absolute;top:35%;left:0;right:0;text-align:center;font-size:28px;font-weight:700;line-height:1.3;color:#fff06b;text-shadow:0 2px 8px #000,0 0 22px #000;pointer-events:none;z-index:5}
.signup > div > .eyebrow{font-size:22px}
.intro #start{min-height:108px;font-size:22px;animation:start-shake 3.2s ease-in-out infinite}
.intro #start svg{width:26px;height:26px}
@keyframes start-shake{0%,24%,100%{transform:translateX(0) rotate(0)}4%,12%,20%{transform:translateX(-3px) rotate(-1deg)}8%,16%{transform:translateX(3px) rotate(1deg)}}
@media(prefers-reduced-motion:reduce){.intro #start{animation:none}}
body[data-game="memory"] .playfield{height:clamp(600px,calc(100svh - 260px),820px);margin-left:0;margin-right:0}
body[data-game="memory"] #memory-board{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;max-width:420px;margin:0 auto;align-content:stretch}
body[data-game="memory"] #memory-board[data-pairs="3"]{grid-template-rows:repeat(3,minmax(0,1fr))}
body[data-game="memory"] #memory-board[data-pairs="4"]{grid-template-rows:repeat(4,minmax(0,1fr))}
body[data-game="memory"] .memory-card{width:100%;height:100%;max-height:none;aspect-ratio:auto}
body[data-game="memory"] .memory-card .front img{object-position:center top}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
