@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans','Noto Sans KR',sans-serif;color:#283954;background:#f4f7fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 55% 44%,#e7eeffaa,transparent 58%);min-height:100dvh}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.35}button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:3px solid #d39048;outline-offset:4px}button{touch-action:manipulation}a{color:inherit;text-decoration:none}.site-header{height:98px;display:flex;align-items:center;justify-content:space-between;margin:0 5%;border-bottom:1px solid #dce4f0}.brand{font-family:'Outfit',sans-serif;font-size:26px;font-weight:700;display:flex;gap:10px;align-items:center}.brand-mark{font-size:37px;color:#5576ad}.brand-games{font:13px 'DM Sans',sans-serif;color:#8190a8;margin:4px 0 0 5px}.edition{font-size:10px;letter-spacing:2.6px;color:#8090aa}.round{border:1px solid #dce4f1;border-radius:50%;background:transparent;width:36px;height:36px;font-size:20px;display:inline-grid;place-items:center}.round:hover{background:#e7effc}.site-header>.round{font-size:15px}main{max-width:1250px;margin:44px auto 40px;display:grid;grid-template-columns:1fr 490px .63fr;gap:55px;align-items:center;padding:0 35px}.intro{padding-bottom:26px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:700;white-space:nowrap;display:flex;align-items:center;gap:9px}.eyebrow>span{height:6px;width:6px;background:#7697db;border-radius:50%}h1{font-family:'Outfit',sans-serif;font-size:86px;line-height:.99;letter-spacing:-4px;font-weight:500;margin:27px 0 25px;position:relative}h1 em{font-style:normal;color:#7698dd}.flower{position:absolute;font-size:45px;color:#a58be4;top:12px;left:195px;font-weight:400}.intro-ko{font-size:15px;font-weight:600;letter-spacing:-.5px}.intro-text{font-size:12px;line-height:2.1;color:#7e8da5;margin-top:20px}.rule-card{display:flex;align-items:center;gap:14px;border-top:1px solid #dce5f2;border-bottom:1px solid #dce5f2;padding:19px 0;margin-top:31px;max-width:272px}.rule-number{font:40px 'Outfit',sans-serif;color:#7698dd}.rule-card p{font-size:11px;line-height:1.9;color:#7a8ba6;margin:0}.rule-card strong{color:#49658f}.mini-flower{font-size:31px;color:#91a7d0;margin-left:auto}.color-dots{display:flex;align-items:center;margin-top:24px;gap:5px}.color-dots i{height:8px;width:8px;border-radius:50%;background:#fa729e}.color-dots i:nth-child(2){background:#ffc955}.color-dots i:nth-child(3){background:#48cfb0}.color-dots i:nth-child(4){background:#62aeff}.color-dots i:nth-child(5){background:#aa8afa}.color-dots span{margin-left:7px;font-size:9px;color:#8492aa}.game{background:#ffffff;border:1px solid #dfe7f4;border-radius:28px;padding:24px 28px 18px;box-shadow:0 20px 70px #5277b010,0 3px 5px #5277b004;position:relative;min-width:0}.game-top{display:flex;justify-content:space-between;align-items:center}.level-pill{font-size:10px;letter-spacing:1.5px;background:#edf2ff;border:1px solid #dde7fc;padding:9px 13px;border-radius:30px;display:flex;align-items:center;gap:7px;color:#617eaf}.level-pill b{font-size:12px}.tiny-star{font-size:14px;color:#7898d6}.game-actions{display:flex;gap:7px}.game-actions .round{width:31px;height:31px;font-size:20px}.game-actions .round[aria-pressed=true]{background:#e5edff}.score-row{display:flex;justify-content:space-between;align-items:center;margin:23px 2px 17px}.caption{display:block;font-size:9px;font-weight:600;letter-spacing:1.8px;color:#7e90ad}.score-row strong{font-family:'Outfit',sans-serif;font-size:40px;font-weight:500;line-height:1.2;letter-spacing:-1px}.score-row .best{text-align:right}.best strong{font-size:24px;color:#859bc0}.goal-row{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#7489a9;margin:0 2px 7px}.goal-row b{font-weight:500;color:#5278b2;margin-left:6px}#goal-icon{font-size:18px;color:#7b9ee0}.progress{height:5px;background:#eaf0fa;border-radius:20px;overflow:hidden}.progress i{display:block;height:100%;width:0;background:#7ca7f1;border-radius:20px;transition:width .5s}.board-wrap{position:relative;margin:8px -13px 0}#board{width:100%;display:block;overflow:visible;touch-action:none;user-select:none}.cell{cursor:pointer;outline:none}.cell .socket{fill:#edf2fa;stroke:#dce5f2;stroke-width:1.5;transition:fill .2s,stroke .2s}.cell.empty:hover .socket,.cell.hover .socket,.cell:focus-visible .socket{fill:#dceafe;stroke:#7a9dd8;stroke-width:3}.cell.occupied{cursor:default}.cell .tile-face{stroke:#ffffff45;stroke-width:1.3}.cell.arrive .stack{animation:bounce .32s ease-out}.cell.clear .socket{animation:glow .45s ease-out}.stack text{font-family:'Outfit',sans-serif;font-size:17px;font-weight:600;fill:white;paint-order:stroke;stroke:#0000000a;stroke-width:2px}.slot-number{font-size:10px;fill:#8ea1bf}.cell:focus-visible .socket{stroke:#6487df}#toast{position:absolute;bottom:4px;left:0;right:0;text-align:center;font-size:11px;color:#8193ae;pointer-events:none;min-height:17px}#toast.highlight{color:#5b82c4;font-weight:700}.tray-label{display:flex;justify-content:space-between;align-items:center;font-size:8px;color:#8192ac;letter-spacing:1.6px;margin:15px 0 11px}.tray-label span:last-child{font-size:10px;letter-spacing:0}.tray{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.tray-slot{position:relative;height:96px;border:1px solid #e0e8f5;border-radius:16px;background:#f5f8fd;transition:background .18s,border .18s,transform .18s;touch-action:none;padding:0}.tray-slot svg{width:100%;height:100%;overflow:visible;pointer-events:none}.tray-slot.selected{background:#eaf1ff;border:1.5px solid #7d9ddd;box-shadow:0 0 0 3px #eaf1ff80;transform:translateY(-3px)}.tray-slot.selected:after{content:'';position:absolute;bottom:5px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:#7b9cdb}.tray-slot:disabled{opacity:.4}.game-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:20px;color:#8493aa}.game-bottom>button{border:0;background:none;font-size:10px;padding:3px 0}.game-bottom>button span{font-size:18px;vertical-align:-1px;margin-right:4px}.game-bottom>span{font-size:8px;letter-spacing:1.6px}.side-note{align-self:center;margin-top:60px}.side-note>span{font-size:40px;color:#9aaee0}.side-note>p{font-size:12px;color:#8196b9;line-height:2}.side-note>div{width:24px;height:1px;background:#cbd9ef;margin:22px 0}.side-note small{font-size:8px;line-height:1.9;letter-spacing:1.8px;color:#9aaac3}footer{margin:0 5%;border-top:1px solid #dce4f0;display:flex;justify-content:space-between;padding:22px 0;color:#92a2ba;font-size:9px;letter-spacing:1.5px}footer span:last-child{letter-spacing:.1px}footer i{font-style:normal;margin:0 8px}dialog{padding:40px 30px 30px;width:min(390px,calc(100% - 32px));border:1px solid #dce6f5;border-radius:26px;background:#ffffff;color:#425d88;box-shadow:0 20px 90px #28395440;text-align:center}dialog::backdrop{background:#293d6155;backdrop-filter:blur(5px)}.modal-close{position:absolute;right:12px;top:12px;width:28px;height:28px;font-size:18px}dialog h2{font-size:24px;margin:13px 0}dialog p{font-size:13px;line-height:1.9;color:#7f91ad}dialog .modal-flower{font-size:47px;color:#89a4dc}dialog .primary{background:#6d8ed0;color:#ffffff;border:0;border-radius:12px;padding:14px 20px;width:100%;margin-top:17px;font-weight:600;font-size:13px}dialog ol{text-align:left;font-size:12px;padding-left:23px;line-height:2.2;color:#7b8eac}.dialog-score{font:42px 'Outfit',sans-serif;color:#5f80bd}.drag-ghost{position:fixed;width:110px;height:110px;z-index:10;pointer-events:none;filter:drop-shadow(0 10px 8px #385c9833);transform:translate(-50%,-80%)}@keyframes bounce{0%{translate:0 -11px}60%{translate:0 3px}100%{translate:0 0}}@keyframes glow{0%{fill:#bbd7ff}100%{fill:#edf2fa}}@media(min-width:1450px){main{margin-top:60px;margin-bottom:60px}}@media(max-width:1100px){main{grid-template-columns:1fr 450px;max-width:900px;gap:45px}.side-note{display:none}h1{font-size:75px}.flower{left:175px}}@media(max-width:740px){.site-header{height:66px;margin:0 6%}.brand{font-size:22px}.brand-mark{font-size:30px}.edition{display:none}main{display:block;margin:21px auto 25px;max-width:460px;padding:0 13px}.intro{padding:0 6px 19px}.eyebrow,.intro-text,.rule-card,.color-dots,.flower{display:none}h1{font-size:29px;line-height:1;letter-spacing:-1px;display:inline-block;margin:0}h1 br{display:none}h1 em{margin-left:5px}.intro-ko{float:right;font-size:10px;margin:10px 0 0;color:#8496b3;font-weight:400}.game{border-radius:23px;padding:19px 20px 17px}.score-row{margin-top:17px}.score-row strong{font-size:35px}.best strong{font-size:23px}.board-wrap{margin-top:5px}.tray-slot{height:88px}.tray-label{margin-top:12px}.game-bottom{margin-top:14px}footer{font-size:7px;margin:0 6%;padding-top:16px;letter-spacing:1px}footer span:last-child{font-size:8px}}@media(max-width:360px){.intro-ko{font-size:8px}.game{padding:16px}.tray-slot{height:75px}.tray{gap:9px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Keep the entire play area within a short desktop window. */
@media (min-width:741px) and (max-height:820px){
  .site-header{height:66px}
  main{margin-top:20px;margin-bottom:20px}
  .game{padding-top:18px;padding-bottom:14px}
  .score-row{margin-top:12px;margin-bottom:10px}
  .board-wrap{max-width:360px;margin:4px auto 0}
  .tray-slot{height:78px}
  .tray-label{margin-top:8px}
  .game-bottom{margin-top:10px}
  footer{padding:14px 0}
}

/* Independent effects layer survives each animated board update. */
.effects{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:3}
.fx-points{font:800 32px 'Outfit',sans-serif;fill:#527dc0;stroke:#ffffff;stroke-width:5px;paint-order:stroke;stroke-linejoin:round}
.fx-combo{font:800 19px 'Outfit',sans-serif;letter-spacing:2px;fill:#9674dd;stroke:#ffffff;stroke-width:4px;paint-order:stroke}
#score{display:inline-block;transform-origin:left center}
.cell.arrive .stack{animation:stack-land .19s ease-out;transform-box:fill-box;transform-origin:center bottom}
@keyframes stack-land{0%{transform:scale(1.07,.88) translateY(3px)}60%{transform:scale(.98,1.04) translateY(-2px)}100%{transform:scale(1) translateY(0)}}
.tray-slot.selected .stack{filter:drop-shadow(0 5px 3px #466da925)}
@media(prefers-reduced-motion:reduce){.cell.arrive .stack{animation:none}}

/* Korean headings and labels use natural spacing instead of Latin tracking. */
h1{font-family:'Noto Sans KR',sans-serif;font-weight:700;font-size:74px;line-height:1.15;letter-spacing:-4px}
.edition,.eyebrow,.caption,.level-pill,.tray-label,.game-bottom>span,.side-note small,footer{letter-spacing:.2px}
.caption,.level-pill,.tray-label,.game-bottom>span{font-size:11px}
.edition,.eyebrow,.side-note small{font-size:11px}
.fx-combo{font-family:'Noto Sans KR',sans-serif;letter-spacing:0}
@media(max-width:1100px){h1{font-size:66px}.flower{left:165px}}
@media(max-width:740px){h1{font-size:28px;line-height:1.1;letter-spacing:-1.5px}.intro-ko{font-size:10px}footer{font-size:9px;letter-spacing:0}}

.languages{display:flex;align-items:center;gap:5px;margin-left:auto;margin-right:18px;white-space:nowrap}
.languages a{font-size:11px;color:#7285a5;padding:7px 9px;border-radius:9px}
.languages a:hover{background:#e9f0ff}
.languages a[aria-current=page]{background:#e5edfc;color:#43689e;font-weight:700}
.edition{margin-left:auto;margin-right:auto}
html:not([lang=ko]) h1{font-family:'Outfit','Noto Sans KR',sans-serif;font-size:70px;letter-spacing:-3px}
html[lang=ja] h1{font-size:57px;letter-spacing:-3px}
html:not([lang=ko]) .flower{display:none}
@media(max-width:740px){
 .site-header{flex-wrap:wrap;height:auto;min-height:85px;padding:12px 0 8px;gap:6px}
 .site-header>.round{margin-left:auto}
 .languages{order:3;flex-basis:100%;justify-content:flex-end;margin:0;gap:4px}
 .languages a{font-size:11px;padding:4px 8px}
 html:not([lang=ko]) h1{font-size:29px;letter-spacing:-1px}
 html[lang=ja] h1{font-size:26px}
 html:not([lang=ko]) .intro-ko{float:none;margin:8px 0 0;font-size:11px}
 html:not([lang=ko]) .tray-label{gap:10px}
 html:not([lang=ko]) .tray-label span:last-child{text-align:right}
}
