:root{--cream:#fffaf0;--green:#215d49;--mint:#dff0df;--peach:#f7cda9}*{box-sizing:border-box}html,body{overscroll-behavior:none;width:100%;height:100%;overflow:hidden}body{color:#244c3d;letter-spacing:-.02em;background:#dcebd7;margin:0;font-family:Pretendard,Noto Sans KR,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-weight:600}button{font:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}.game-shell{background:radial-gradient(circle at 10% 5%,#fff8d9 0 7%,#0000 23%),radial-gradient(circle at 92% 94%,#bcd7b7 0 8%,#0000 28%),linear-gradient(145deg,#eaf3dc,#cce4cf);place-items:center;width:100vw;min-height:100dvh;padding:0;display:grid;position:relative;overflow:hidden}.game-shell:before,.game-shell:after{content:"";border:70px solid #4a7b4e1f;border-radius:45% 55% 60% 40%;width:360px;height:360px;position:absolute;transform:rotate(35deg)}.game-shell:before{top:-190px;left:-250px}.game-shell:after{bottom:-220px;right:-240px}.leaf{color:#2a68462b;font-size:190px;line-height:1;position:absolute}.leaf-a{bottom:8%;left:1%;transform:rotate(-25deg)}.leaf-b{top:7%;right:1%;transform:rotate(155deg)}.game-card{z-index:1;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#fffaf0e6;border:0;border-radius:0;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100dvh;padding:clamp(8px,2vh,18px);display:flex;position:relative;box-shadow:inset 0 1px #fff}.game-status{justify-content:center;align-items:center;gap:20px;margin:0 0 12px;display:flex}.level-only{text-align:center;color:#72917e;letter-spacing:3px;font-size:12px;font-weight:800}.level-only strong{color:#fff;letter-spacing:0;background:#34745a;border-radius:50%;place-items:center;width:34px;height:34px;margin-left:5px;font:800 19px Georgia,serif;display:inline-grid;box-shadow:0 5px 12px #29674b33}.countdown{color:#527563;min-width:82px;font-size:15px;font-weight:700}.countdown strong{font:800 21px Georgia,serif}.countdown.danger{color:#d34e59;animation:.65s infinite timer-pulse}@keyframes timer-pulse{50%{transform:scale(1.08)}}.board-wrap{aspect-ratio:3/4;width:min(96vw,75dvh - 88.5px);height:min(100dvh - 118px,128vw);max-height:calc(100dvh - 118px);position:relative}.board{background:linear-gradient(145deg,#a7d7b0,#78bc98);border-radius:24px;grid-template-rows:repeat(8,minmax(0,1fr));grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;width:100%;height:100%;padding:12px;display:grid;box-shadow:inset 0 2px 9px #205e3a38,0 9px 22px #3b68441f}.tile{border:2px solid color-mix(in srgb,var(--tile-color) 38%,#fff);background:linear-gradient(145deg,#fff 0 24%,var(--tile-bg) 100%);cursor:pointer;border-radius:14px;width:100%;min-width:0;height:100%;min-height:0;transition:transform .15s,box-shadow .15s,opacity .25s;position:relative;overflow:hidden;box-shadow:0 4px 8px #3a5d3933,inset 0 2px 2px #ffffffe6}.tile:after{content:"";background:radial-gradient(circle at 25% 15%,#fffffff2,transparent 32%),linear-gradient(135deg,transparent 55%,color-mix(in srgb,var(--tile-color) 12%,transparent));pointer-events:none;border-radius:10px;position:absolute;inset:3px}.art-wrap{z-index:1;place-items:center;display:grid;position:absolute;inset:0}.art-wrap b{filter:saturate(1.25)drop-shadow(0 4px 2px #4f3e3038);font-family:Apple Color Emoji,Segoe UI Emoji,sans-serif;font-size:clamp(42px,8vh,72px);line-height:1;transform:translateY(1px)}.art-wrap i,.art-wrap em{color:#fff;text-shadow:0 0 5px var(--tile-color);font-size:13px;font-style:normal;line-height:1;animation:1.8s ease-in-out infinite sparkle;position:absolute}.art-wrap i{top:10%;right:9%}.art-wrap em{font-size:9px;animation-delay:.7s;bottom:12%;left:10%}@keyframes sparkle{50%{opacity:.45;transform:scale(1.7)rotate(35deg)}}.tile:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 7px 13px #3a5d3947}.tile.selected{transform:scale(.92);box-shadow:0 0 0 5px #ffe06c,0 4px 10px #568269}.tile.hinted{animation:1s infinite hint}.tile.empty{opacity:0;pointer-events:none}.complete{animation:.7s ease-in-out breathe}@keyframes hint{50%{transform:scale(1.08);box-shadow:0 0 0 5px #ffd767bf,0 0 18px #ffe37e}}@keyframes breathe{50%{filter:brightness(1.12)}}.tile.vanishing{z-index:3;pointer-events:none;animation:.42s ease-out forwards card-flash}@keyframes card-flash{0%{opacity:1;filter:brightness()}18%{opacity:1;filter:brightness(3)saturate(1.8);box-shadow:0 0 0 7px #fff,0 0 28px #fff36b}42%{opacity:.42;filter:brightness(1.2)}64%{opacity:1;filter:brightness(2.7);box-shadow:0 0 0 5px #fff,0 0 24px var(--tile-color)}to{opacity:0;filter:brightness(1.5)}}.laser-layer{z-index:2;pointer-events:none;width:calc(100% - 30px);height:calc(100% - 30px);position:absolute;inset:15px;overflow:visible}.laser-layer polyline{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.laser-glow{stroke:#58f6ff;stroke-width:13px;opacity:.72;filter:blur(5px);animation:.42s ease-out forwards laser-flash}.laser-core{stroke:#fff;stroke-width:4px;filter:drop-shadow(0 0 4px #28e9ff);stroke-dasharray:12 5;animation:.42s linear forwards laser-run}@keyframes laser-run{0%{stroke-dashoffset:32px;opacity:0}15%{opacity:1}to{stroke-dashoffset:0;opacity:0}}@keyframes laser-flash{0%{opacity:0}20%{opacity:.9}to{opacity:0}}.combo-pop{z-index:4;color:#fff;text-shadow:0 3px #dd6d8e,0 0 14px #ffe56d;pointer-events:none;white-space:nowrap;font:900 27px Georgia,serif;animation:.8s ease-out forwards combo-pop;position:absolute;top:45%;left:50%;transform:translate(-50%,-50%)}.combo-pop strong{margin-right:7px;font-size:54px}@keyframes combo-pop{0%{opacity:0;transform:translate(-50%,-20%)scale(.5)}25%{opacity:1;transform:translate(-50%,-50%)scale(1.22)}to{opacity:0;transform:translate(-50%,-115%)scale(.9)}}.overlay,.celebration{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);text-align:center;z-index:5;background:#f4fae8e3;border-radius:24px;flex-direction:column;justify-content:center;align-items:center;padding:25px;display:flex;position:absolute;inset:0}.overlay-flower{font-size:56px}.overlay h2{color:#275e47;margin:8px 0;font:700 36px Georgia,serif}.overlay p{color:#617864;max-width:330px;margin:0 0 22px;line-height:1.65}.overlay button{color:#fff;cursor:pointer;background:#34745a;border:0;border-radius:99px;padding:13px 36px;font-weight:800;box-shadow:0 7px 16px #2d674c40}.overlay button:hover{background:#255f49;transform:translateY(-1px)}.celebration span{font-size:70px;animation:1.2s ease-in-out infinite fly}.celebration strong{color:#34745a;font:700 38px Georgia,serif}.celebration small{color:#78917e;margin-top:8px}@keyframes fly{50%{transform:translateY(-16px)rotate(8deg)}}.tools{justify-content:center;gap:10px;margin-top:15px;display:flex}.tools button{color:#3d6855;cursor:pointer;background:#f8f5e8;border:1px solid #d6e2d0;border-radius:14px;padding:10px 20px;font-size:13px;font-weight:700;box-shadow:0 3px 8px #375a3a14}.tools button:hover{background:#eaf3e3}.tools button:disabled{opacity:.4;cursor:not-allowed}.tools span{margin-right:7px}@media (width<=600px){.game-card{padding:7px 4px}.game-status{margin-bottom:7px}.board-wrap{width:min(98vw,75dvh - 78px);height:min(100dvh - 104px,131vw);max-height:calc(100dvh - 104px)}.board{border-radius:14px;gap:3px;padding:5px}.laser-layer{width:calc(100% - 10px);height:calc(100% - 10px);inset:5px}.tile{border-width:1.5px;border-radius:9px}.art-wrap b{font-size:clamp(38px,12.5vw,58px)}.art-wrap i{font-size:10px;top:7%;right:5%}.art-wrap em{font-size:7px;bottom:8%;left:7%}.tools{gap:4px;margin-top:7px}.tools button{padding:9px 10px;font-size:12px}.leaf{display:none}}@media (height<=720px) and (width>=601px){.art-wrap b{font-size:clamp(38px,7vh,58px)}}@media (width>=601px){.board-wrap{width:min(96vw,75dvh - 112.5px);height:min(100dvh - 150px,128vw);max-height:calc(100dvh - 150px)}.laser-layer{width:calc(100% - 24px);height:calc(100% - 24px);inset:12px}}.art-wrap b{color:var(--tile-color)}.art-wrap{filter:saturate(1.08)contrast(1.03);background-image:url(/flower-sprite.png);background-repeat:no-repeat;background-size:400% 400%;border-radius:10px;display:block;inset:2px;box-shadow:inset 0 0 0 1px #ffffffb3}.art-wrap b,.art-wrap i,.art-wrap em{display:none}.music-button{min-width:66px}.music-button span{margin-right:4px}@media (width<=600px){.tools button{padding-left:7px;padding-right:7px}.music-button{min-width:54px}.music-button span{margin-right:2px}}.level-only strong,.countdown strong,.combo-pop,.overlay h2,.celebration strong{font-family:Pretendard,Noto Sans KR,Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-style:normal}.overlay h2{letter-spacing:-.055em;font-weight:900}.combo-pop{font-weight:900}.tools button,.overlay button{letter-spacing:-.03em}.copyright{color:#527563;z-index:8;pointer-events:none;font-size:10px;position:fixed;bottom:3px;right:9px}html,body{overflow:clip}.game-shell{height:100dvh;min-height:0;overflow:clip}.game-card{flex-shrink:0;min-height:0}
