/* LinaIme V3.1 • unified premium play surfaces for all existing games */
:root{--game-accent:#f7a2dc;--game-ink:#fef6ff}
@keyframes v31enter{from{opacity:0;transform:translateY(9px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes v31glow{0%,100%{box-shadow:0 0 0 1px #ffb1e833,0 13px 35px #080210a8}50%{box-shadow:0 0 0 2px #ffbbeb65,0 17px 48px #8f46b34d}}
@keyframes v31drop{from{transform:translateY(-110%) scale(.87);opacity:.5}70%{transform:translateY(5%) scale(1.06)}to{transform:translateY(0) scale(1);opacity:1}}
@keyframes v31breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes v31float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes v31swoosh{from{transform:rotate(-25deg)}to{transform:rotate(335deg)}}
#games.playing #gameArea{max-width:770px!important;margin:3px auto!important;padding:0!important}
#games.playing #gameArea>.matchonly{max-width:740px!important;border-radius:27px;padding:16px clamp(12px,4vw,24px) 28px!important;background:radial-gradient(ellipse at 15% 0%,#794b8b42,transparent 57%),radial-gradient(ellipse at 100% 85%,#4d62a43b,transparent 57%),linear-gradient(156deg,#20172f 5%,#120e20 72%,#25172d 100%)!important;border:1px solid #efb4ff4c;box-shadow:0 16px 60px #05030e8c;min-height:min(82dvh,680px);position:relative;overflow:hidden}
#games.playing #gameArea>.matchonly:before{content:'';position:absolute;pointer-events:none;inset:0 0 auto;height:3px;background:linear-gradient(90deg,transparent,#ffb9de,#b69dff,transparent)}
#games.playing #gameArea>.matchonly>h2:first-of-type{font-size:clamp(20px,4.8vw,29px)!important;font-weight:900;letter-spacing:-.7px;line-height:1.15;margin:6px 0 12px!important;max-width:calc(100% - 112px);padding-right:0!important;color:#fff6fe;text-shadow:0 3px 18px #e65bc737}
#games.playing #gameArea .game-exit{float:right;position:relative!important;top:0!important;z-index:4;border:1px solid #ffc4f25c!important;border-radius:999px!important;background:#ffffff14!important;color:#fbe9fb;padding:9px 12px!important;font-size:12px!important;box-shadow:none!important}
#games.playing #gameArea button:not(.game-exit){transition:filter .15s,transform .15s,background-color .15s,border-color .15s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#games.playing #gameArea button:active:not(:disabled){transform:scale(.965);filter:brightness(1.13)}
#games.playing #gameArea button:focus-visible{outline:3px solid #ffd1f2;outline-offset:3px}
#games.playing #gameArea .character-row{padding:7px 11px;border-radius:18px;background:#ffffff0b;border:1px solid #ffffff16;margin:12px 0 7px!important}
#games.playing #gameArea .avatar .portrait{filter:drop-shadow(0 6px 10px #f58bd955);animation:v31float 2.9s ease-in-out infinite}
#games.playing #gameArea .matchscore,#games.playing #gameArea .v30top{background:linear-gradient(130deg,#513a69a1,#3d254da3)!important;border:1px solid #e6b6fb45;box-shadow:inset 0 1px #ffffff18;border-radius:19px!important;margin:8px 0 12px!important;padding:12px!important}
#games.playing #gameArea .matchscore strong{color:#ffe5a8!important;font-size:clamp(27px,6vw,36px)!important;text-shadow:0 3px 15px #d88cfa45}
#games.playing #gameArea .matchscore small{letter-spacing:1px;font-weight:800}
#games.playing #gameArea .center.muted,#games.playing #gameArea .roomnotice{line-height:1.5}
#games.playing #gameArea .roomnotice,#games.playing #gameArea .phase-banner{border:1px solid #e3b1ff3b;background:linear-gradient(130deg,#764a8c35,#45355b45);border-radius:17px;padding:13px 15px}
#games.playing #gameArea .question,#games.playing #gameArea .v24-question{padding:19px 14px;border-radius:21px;background:linear-gradient(135deg,#4f285ea8,#2d254ba6);border:1px solid #ebb4ff3d;box-shadow:inset 0 1px #ffffff12;font-weight:750;line-height:1.45}
#games.playing #gameArea .picks button,#games.playing #gameArea .optiongrid button,#games.playing #gameArea .v24-choices button,#games.playing #gameArea .emoji-scene-grid button{border:1px solid #dcb1ff55;background:linear-gradient(135deg,#6a417a99,#4c3265bb);border-radius:16px;min-height:54px;box-shadow:0 7px 12px #0d061744}
#games.playing #gameArea .optiongrid button:disabled,#games.playing #gameArea button:disabled{opacity:.7;cursor:default}
#games.playing #gameArea .board{background:linear-gradient(130deg,#30244f,#251f42);padding:10px;border-radius:22px;border:2px solid #b89af06b;box-shadow:0 12px 32px #0006}
#games.playing #gameArea .board .cell{border:1px solid #d5b7ff62;border-radius:13px;background:#ffffff12;min-height:0;box-shadow:inset 0 2px 8px #08031748}
#games.playing #gameArea .memory-board{background:linear-gradient(150deg,#402854,#261d44);border:1px solid #d9a4e655;border-radius:22px;padding:10px;box-shadow:0 12px 30px #0005}
#games.playing #gameArea .memory-card{border:1px solid #ddbdff80!important;background:linear-gradient(135deg,#7952a1,#483171)!important;box-shadow:inset 0 2px #ffffff2a,0 6px 12px #0003;border-radius:13px!important}
#games.playing #gameArea .memory-card.found{background:#2d7e6299!important;box-shadow:0 0 20px #59e7b344}
#games.playing #gameArea .door-grid button{border:2px solid #d6b0fa8c;box-shadow:inset 0 2px #ffffff3a,0 8px 22px #0005;background:linear-gradient(145deg,#a267a8,#5c418e)}
#games.playing #gameArea .reactionbar{background:#ffffff09;border:1px solid #ffffff16;border-radius:18px;padding:7px;width:fit-content;max-width:100%}
#games.playing #gameArea .reactionbar button{border-radius:13px;border:1px solid #ffffff20}
#games.playing #gameArea .celebrate{border:1px solid #ffe2ad85!important;background:radial-gradient(circle at 50% 0,#c6a4ff58,transparent 65%),linear-gradient(140deg,#542c66,#302449)!important;animation:v31enter .32s ease;box-shadow:0 12px 32px #0006}
#games.playing #gameArea .celebrate .burst{filter:drop-shadow(0 4px 16px #ffd58d9d)}
#games.playing #gameArea .ad-stage,#games.playing #gameArea .v27-battle{border-radius:20px;box-shadow:0 14px 35px #08021077}
#games.playing #gameArea .ad-task{border:1px solid #e6b3ff55;background:radial-gradient(circle at top,#913f9077,#4525558c)!important;font-size:clamp(17px,4.6vw,23px);font-weight:700;padding:22px 17px}
#games.playing #gameArea .ad-wheel{box-shadow:0 0 32px #cc75fa70,inset 0 0 28px #ffffff20}
#games.playing #gameArea .v23puzzle{border:2px solid #d8acff66;border-radius:16px;padding:8px;background:#241a34}
#games.playing #gameArea .v23tile{border:1px solid #ffffff32}
#games.playing #gameArea .v24-speed{border:2px solid #ffffff3c;box-shadow:0 12px 32px #0005}
#games.playing #gameArea .v30match{max-width:100%!important}
#games.playing #gameArea .v30grid{width:min(100%,450px);max-width:450px;margin:12px auto;gap:7px;background:#130d23c2;padding:10px;border-radius:21px;border:2px solid #cba5f17a;box-shadow:0 12px 35px #0007}
#games.playing #gameArea .v30cell{background:linear-gradient(150deg,#4d3b6b,#2f244c);border:1px solid #a48bde88;border-radius:10px;min-width:0;aspect-ratio:1;box-shadow:inset 0 2px #ffffff16;position:relative;overflow:hidden}
#games.playing #gameArea .v30cell:disabled{opacity:1!important}
#games.playing #gameArea .v30cell:disabled:not(.v31filled){color:#6d6185}
#games.playing #gameArea .v30four{border-radius:50%;background:radial-gradient(circle at 30% 25%,#473860,#241b41 70%);box-shadow:inset 0 3px 9px #090713aa,0 1px #f7dcff2e;color:transparent}
#games.playing #gameArea .v30four.v31filled{color:transparent!important;box-shadow:inset 0 2px 4px #ffffff6b,0 3px 8px #0007,0 0 12px #ab5bce55;animation:v31drop .26s cubic-bezier(.15,.8,.3,1) both}
#games.playing #gameArea .v30four.v31-red{background:radial-gradient(circle at 27% 22%,#ffe9c1,#ff8b9d 31%,#d74580 71%,#91285b)}
#games.playing #gameArea .v30four.v31-yellow{background:radial-gradient(circle at 27% 22%,#fffce2,#fce38b 34%,#e5a944 71%,#996820)}
#games.playing #gameArea .v30cell[data-v30-shot]:not(:disabled){background:linear-gradient(140deg,#355e8c,#1f395e);border-color:#92c7ee75}
#games.playing #gameArea .v30cell[data-v30-shot]:not(:disabled):hover{box-shadow:inset 0 0 0 2px #dcecffaa}
#games.playing #gameArea .v30cell[data-v30-place]{background:radial-gradient(circle at 25% 25%,#315a87,#17385a);border-color:#90b8e277}
#games.playing #gameArea .v31sea-board .v30cell{font-size:clamp(12px,3vw,18px)}
#games.playing #gameArea .v31sea-board{width:min(100%,280px)!important;border-color:#75cafb66!important;background:#102638db!important}
#games.playing #gameArea .v31sea-board .v30cell{aspect-ratio:1;border-radius:7px;background:#173e59}
#games.playing #gameArea .v31battle-title{font-size:13px;letter-spacing:.5px;font-weight:900;color:#b5e4fa;text-align:center;margin-top:12px}
#games.playing #gameArea .v30hockey{display:none!important}
#games.playing #gameArea .v31rink{position:relative;margin:10px auto 14px;width:min(100%,520px);height:clamp(145px,42vw,240px);overflow:hidden;border:6px solid #bde4f7;border-radius:60px;background:linear-gradient(90deg,#55a6cc52 0 9%,transparent 9% 91%,#55a6cc52 91% 100%),repeating-linear-gradient(0deg,#b9e9f609 0 9px,#ffffff14 10px 20px),#236080;box-shadow:inset 0 0 35px #041b35a6,0 12px 35px #0007}
#games.playing #gameArea .v31rink:before{content:'';position:absolute;top:0;bottom:0;left:50%;width:3px;background:#f7d7e1a8}
#games.playing #gameArea .v31rink:after{content:'';position:absolute;width:74px;height:74px;left:calc(50% - 37px);top:calc(50% - 37px);border:3px solid #ffcbdaaa;border-radius:50%}
#games.playing #gameArea .v31puck{position:absolute;z-index:2;left:48%;top:42%;width:35px;height:35px;border:3px solid #8cbdd3;border-radius:50%;background:radial-gradient(circle at 25% 20%,#455766,#070d19 74%);box-shadow:0 5px 8px #0315248a;animation:v31float 2s ease-in-out infinite}
#games.playing #gameArea .v31goal{position:absolute;top:27%;bottom:27%;width:14px;border:3px solid #ffdfdfad;background:#ed50615c;z-index:3}
#games.playing #gameArea .v31goal.left{left:0;border-radius:0 14px 14px 0}.v31goal.right{right:0;border-radius:14px 0 0 14px}
#games.playing #gameArea .v31rink-score{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 auto 11px;max-width:500px;font-size:14px;font-weight:850}
#games.playing #gameArea .v31rink-score strong{font-size:25px;color:#ffe7af}
#games.playing #gameArea .v30bottle{display:none}
#games.playing #gameArea .v31bottle-stage{height:200px;width:min(100%,390px);margin:10px auto 17px;border:2px solid #e8b7f17a;border-radius:25px;display:grid;place-items:center;position:relative;background:radial-gradient(circle at center,#ab6abb4a,transparent 64%),linear-gradient(140deg,#492755,#291b42);overflow:hidden;box-shadow:0 11px 29px #0006}
#games.playing #gameArea .v31bottle-stage:before{content:'BLENDI';left:15px}#games.playing #gameArea .v31bottle-stage:after{content:'LINA';right:15px}
#games.playing #gameArea .v31bottle-stage:before,#games.playing #gameArea .v31bottle-stage:after{position:absolute;top:50%;font-size:11px;font-weight:900;letter-spacing:1px;color:#f7bfdf}
#games.playing #gameArea .v31bottle-inner{font-size:82px;filter:drop-shadow(0 8px 10px #0008);transform:rotate(var(--bottleangle,30deg));transition:transform .8s cubic-bezier(.15,.75,.25,1)}
#games.playing #gameArea .v31bottle-stage.v31spin .v31bottle-inner{animation:v31swoosh 2s linear infinite}
#games.playing #gameArea .v31bomb{width:min(100%,390px);padding:15px;margin:7px auto;text-align:center;background:radial-gradient(circle at center,#e86e8b30,transparent 70%);border:1px solid #ffb5df3d;border-radius:20px}
#games.playing #gameArea .v31bomb-icon{font-size:70px;line-height:1.2;animation:v31breathe 1.1s ease-in-out infinite}
#games.playing #gameArea .v31timer{font-variant-numeric:tabular-nums;font-size:34px;font-weight:950;color:#ffe8b1}
#games.playing #gameArea .v30masked{padding:19px 8px;background:#39234d;border:1px solid #d6adea77;border-radius:17px;color:#ffe8bd;line-height:1.7;font-size:clamp(21px,5.8vw,35px);letter-spacing:4px}
#games.playing #gameArea .v30alphabet button{min-height:40px;padding:8px 1px;background:#66458a;border:1px solid #d6b8f87c;border-radius:9px;font-weight:900}
#games.playing #gameArea .v30letters{padding:22px 12px;border:1px solid #d9b5f176;background:linear-gradient(145deg,#63397a,#332652);border-radius:20px;font-size:clamp(24px,7vw,36px);color:#fff1ce}
#games.playing #gameArea .v30inputs select{font-size:15px}
#games.playing #gameArea .v30btn{min-height:46px;border:1px solid #ffc0ed4e;background:linear-gradient(120deg,#a7489a,#7545b2)}
#games.playing #gameArea .v27-petemoji{font-size:clamp(72px,18vw,115px);background:radial-gradient(circle,#b77bdf45,transparent 70%);border-radius:50%;width:fit-content;margin:8px auto;filter:drop-shadow(0 9px 11px #eb88db77)}
#games.playing #gameArea .v24-form input,#games.playing #gameArea input,#games.playing #gameArea textarea{border:1px solid #dab9e46d;background:#211b36;font-size:16px}
#games.playing #gameArea .v31spark{position:absolute;pointer-events:none;z-index:1;opacity:.4;font-size:16px}
@media(max-width:540px){#games.playing{padding-top:3px!important}#games.playing #gameArea>.matchonly{padding:13px 11px 22px!important;border-radius:20px;min-height:0}#games.playing #gameArea .v30grid{gap:4px;padding:7px}#games.playing #gameArea .v30cell{border-radius:7px}#games.playing #gameArea .v30alphabet{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}#games.playing #gameArea .v30alphabet button{font-size:13px}#games.playing #gameArea .v31rink{border-width:4px;border-radius:36px}}
@media(prefers-reduced-motion:reduce){#games.playing #gameArea *,#games.playing #gameArea *:before,#games.playing #gameArea *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
