:root{--acid-green: #c8ff00;--gold: #d4a843;--accent-yellow-green: #d9da4a;--board-green: #2f5233;--bg-dark: #1a1a1a;--card-bg: #fdfaf3;--card-ink: #1a1a1a}*{box-sizing:border-box}body{margin:0;font-family:Niramit,system-ui,sans-serif;background:var(--bg-dark);color:#eee}.app{max-width:1100px;margin:0 auto;padding:24px 16px 60px}.game-layout{display:flex;gap:20px;align-items:flex-start}.main-panel{flex:1;min-width:0}.word-bank{width:220px;flex-shrink:0;background:#000;border:1px solid #333;border-radius:10px;padding:14px 16px;max-height:70vh;overflow-y:auto;position:relative}.word-bank h4{margin:0 0 10px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--accent-yellow-green)}.word-bank-empty{font-size:13px;color:#666;margin:0}.word-bank ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.word-bank li{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;gap:8px;cursor:pointer;border-radius:4px;padding:2px 4px;margin:0 -4px;transition:background .1s}.word-bank li:hover{background:#ffffff0f}.word-bank li.found .gloss{color:#666;text-decoration:line-through}.word-bank .check{color:var(--acid-green);font-size:13px;flex-shrink:0}.word-bank .gloss{font-size:13px;color:#ccc}.hud{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap}.round-banner{text-align:center;padding:20px;border-radius:10px;margin-bottom:24px}.round-banner-title{font-size:20px;font-weight:700;margin-bottom:4px}.round-banner-sub{font-size:14px;color:#ccc;margin-bottom:14px}.round-banner.won{background:#c8ff001a;border:1px solid rgba(200,255,0,.35)}.round-banner.won .round-banner-title{color:var(--acid-green)}.round-banner.lost{background:#ff505014;border:1px solid rgba(255,80,80,.3)}.round-banner.lost .round-banner-title{color:#ff8a8a}.hud-box{background:#000;border:1px solid #333;border-radius:8px;padding:8px 14px;font-size:13px;color:#aaa}.hud-box strong{display:block;font-size:20px;color:var(--acid-green)}.board{background:var(--board-green);border-radius:12px;padding:32px 16px;min-height:260px;display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:32px;position:relative}.board.inactive:after,.hand.inactive:after,.word-bank.inactive:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#1414148c;border-radius:inherit;pointer-events:none;z-index:5}.board-empty-hint{color:#fff6;font-size:14px;text-align:center}.board-empty-hint .gold-hint{color:var(--gold);font-weight:700}.hand{display:flex;justify-content:center;gap:4px;padding:12px 0;min-height:240px;position:relative}.hand>.card{flex:1 1 0;min-width:0;max-width:116px}.card{width:116px;height:220px;background:var(--card-bg);color:var(--card-ink);border-radius:10px;border:2px solid #fff;box-shadow:0 4px 10px #0006;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:grab;-webkit-user-select:none;user-select:none;position:relative}.card.board-card{cursor:pointer;background:transparent;border-color:transparent;box-shadow:none}.card.selected{outline:3px solid var(--acid-green);outline-offset:2px}.card.fixed{border-color:var(--gold);box-shadow:0 0 0 2px #d4a84380;cursor:default}.card.board-card.has-art.selected{outline:none}.card.board-card.has-art.selected .monster-art{filter:drop-shadow(0 0 2px var(--acid-green)) drop-shadow(0 0 2px var(--acid-green)) drop-shadow(0 0 2px var(--acid-green))}.card.board-card.has-art.fixed{border-color:transparent;box-shadow:none}.card.board-card.has-art.fixed .monster-art{filter:drop-shadow(0 0 2px var(--gold)) drop-shadow(0 0 2px var(--gold)) drop-shadow(0 0 2px var(--gold))}.card .lock{position:absolute;bottom:6px;left:8px;font-size:12px}.monster-art{width:89%;height:auto;aspect-ratio:1;object-fit:contain;margin-top:20px;margin-bottom:4px}.glyph-pair{display:flex;flex-direction:column;align-items:center;gap:2px}.card .glyph-looped{font-family:Niramit,serif;font-size:34px;line-height:1}.card .glyph-loopless{font-family:Noto Sans Thai,sans-serif;font-size:26px;line-height:1;color:#666;padding-top:2px;border-top:1px solid #ddd}.card.board-card .glyph-loopless{border-top-color:#ffffff4d;color:#ddd}.card .name{font-size:11px;color:#666;margin-top:4px}.card .points{position:absolute;top:6px;right:8px;font-size:11px;font-weight:700;color:var(--gold);white-space:nowrap}.controls{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:16px}.trash-zone{width:140px;height:140px;display:flex;align-items:center;justify-content:center}.trash-can{width:56px;height:56px;border-radius:10px;border:1px solid #333;background:#000;display:flex;align-items:center;justify-content:center;font-size:24px;cursor:default;transition:border-color .15s,background .15s}.trash-can.disabled{opacity:.35}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:100}.devil-deal-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px 16px;margin-bottom:24px;border-radius:12px;background:radial-gradient(ellipse 700px 320px at 50% 30%,rgba(122,32,32,.35),transparent 70%),var(--bg-dark);text-align:center}.devil-deal-banner{background:#2a0e0e;border:1px solid #5a1f1f;border-radius:6px;padding:10px 18px;color:var(--gold);font-weight:700;font-size:15px}.devil-deal-title{font-size:18px;max-width:520px}.devil-deal-stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:640px}.devil-crab-art{width:min(45vw,280px);filter:drop-shadow(0 14px 24px rgba(0,0,0,.5));pointer-events:none;-webkit-user-select:none;user-select:none}.devil-deal-card{position:absolute;display:flex;flex-direction:column;align-items:center;gap:8px;width:150px}.devil-deal-get{left:-18px;top:10px}.devil-deal-lose{right:-18px;top:10px}.devil-deal-get-label,.devil-deal-lose-label{font-size:12px;padding:6px 10px}.devil-deal-hint{color:#cfcabb;font-size:13px;max-width:620px;margin:0}.devil-deal-cant-afford{color:#e08a8a;font-size:12px}.devil-deal-actions{display:flex;gap:12px}.devil-deal-actions button{display:inline-flex;align-items:center;gap:5px}@media (max-width: 560px){.devil-deal-stage{flex-direction:column;gap:24px}.devil-deal-card{position:static}.devil-crab-art{width:min(70vw,280px)}}.modal{background:#161616;border:1px solid #333;border-radius:10px;padding:24px;max-width:320px;text-align:center}.modal p{margin:0 0 16px;font-size:15px}.modal-actions{display:flex;justify-content:center;gap:10px}.modal-actions button:not(.primary){background:transparent;border:1px solid #444;color:#ccc;border-radius:8px;padding:10px 18px;font-size:14px;cursor:pointer}button.primary{background:#3b82f6;color:#fff;border:none;border-radius:8px;padding:10px 22px;font-size:14px;font-weight:600;cursor:pointer}button.primary:disabled{background:#444;cursor:not-allowed}.result{text-align:center;margin-top:24px;padding:16px;border-radius:10px;background:#c8ff0014;border:1px solid rgba(200,255,0,.3)}.result.miss{background:#ff505014;border-color:#ff50504d}.result .thai{font-size:32px;color:var(--accent-yellow-green)}.match-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}.match-row{display:flex;align-items:center;justify-content:center;gap:12px;cursor:pointer;border-radius:6px;padding:4px 8px;transition:background .1s}.match-row:hover{background:#ffffff14}.match-thai-pair{display:flex;flex-direction:column;align-items:center}.match-row .thai{font-size:28px;line-height:1}.match-row .thai-loopless{font-family:Noto Sans Thai,sans-serif;font-size:18px;line-height:1.2;color:#888;border-top:1px solid rgba(255,255,255,.15);padding-top:2px;margin-top:2px}.match-info{display:flex;flex-direction:row;align-items:center;gap:8px}.match-row .gloss{font-size:14px;color:#bbb}.match-row .tag{font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:2px 6px;border-radius:4px;align-self:flex-start}.match-row .tag.new{background:#c8ff0033;color:var(--acid-green)}.match-row .tag.known{background:#ffffff14;color:#888}.result ul{list-style:none;padding:0;margin:8px 0 0}.start-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:24px;text-align:center}.start-tagline{font-size:18px;color:#ccc;max-width:420px;line-height:1.5}.start-tagline strong{color:var(--accent-yellow-green)}.start-logos{display:flex;align-items:center;gap:18px}.logo-badge{font-weight:800;font-size:19px;letter-spacing:.04em;padding:8px 14px;border-radius:6px}.logo-badge.scrabble{background:#e8dcc0;color:#6b2b1a;box-shadow:inset 0 0 0 2px #6b2b1a;font-family:Georgia,serif}.logo-badge.balatro{background:#1a0b2e;color:#ff3d6e;box-shadow:inset 0 0 0 2px #ff3d6e;text-shadow:0 0 8px rgba(255,61,110,.6)}.logo-plus{font-size:24px;font-weight:700;color:#888}.start-welcome{font-size:44px;font-weight:800;color:var(--acid-green);letter-spacing:.02em;text-shadow:0 0 24px rgba(200,255,0,.35)}.start-button{font-size:16px;padding:14px 36px}.start-cards-row{display:flex;align-items:center;gap:24px}.garuda-icon{vertical-align:middle;image-rendering:auto}.hud-box strong .garuda-icon{margin-right:2px}.garuda-amount{display:inline-flex;align-items:center;gap:4px;font-weight:700;color:#fff;margin-left:4px}.over-score-tag{color:var(--accent-yellow-green);font-weight:700;letter-spacing:.02em}.record-word{font-size:20px;color:var(--accent-yellow-green);font-weight:700}.round-banner-sub{margin-bottom:8px}.main-panel{position:relative}.record-toast-wrap{position:absolute;top:24px;left:0;right:0;display:flex;justify-content:center;pointer-events:none;z-index:20}.record-toast{background:#000;border:2px solid var(--gold);border-radius:12px;padding:12px 26px;text-align:center;box-shadow:0 6px 24px #0009}.record-toast-title{color:var(--gold);font-weight:800;font-size:18px}.record-toast-word{font-size:34px;line-height:1.4;color:var(--accent-yellow-green)}.record-toast-sub{font-size:12px;color:#999}.round-reveal.revealing{cursor:pointer}.reveal-pop{display:inline-block}.reveal-button{transition:opacity .25s}.reveal-button.hidden{visibility:hidden;opacity:0}.result-slot{min-height:84px;margin-bottom:20px}.result{margin-top:0;min-height:84px;padding:8px 18px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 24px}.result-jackpot{color:var(--acid-green);font-weight:700}.result-points{color:#fff;font-weight:600}.result .match-list{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 24px;margin-top:0}.match-row .thai{font-size:24px;line-height:1.1}.match-row .thai-loopless{font-size:15px}.thai-plate{display:inline-flex;flex-direction:column;align-items:center;background:var(--card-bg);color:var(--card-ink);border-radius:6px;padding:2px 10px 3px;line-height:1.15}.thai-plate-thai{font-family:Noto Sans Thai,sans-serif;font-weight:600;font-size:20px}.thai-plate-roman{font-size:10px;color:#777}.thai-plate.big{padding:4px 22px 6px;border-radius:8px}.thai-plate.big .thai-plate-thai{font-size:46px}.thai-plate.big .thai-plate-roman{font-size:14px}.shop-sign-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 28px}.shop-sign-center{display:flex;flex-direction:column;align-items:center;gap:12px}.shop-garuda{height:128px;width:auto}.word-bank.shop-list{width:320px}.shop-list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.shop-list-price-head{display:flex;align-items:center;gap:6px}.shop-list-balance{display:flex;align-items:center;justify-content:flex-end;gap:5px;font-size:13px;color:#9a9587;margin:-8px 0 12px}.shop-list-balance strong{color:var(--accent-yellow-green);font-size:15px}.word-bank.shop-list li{padding:6px 8px;margin:0 -8px}.word-bank.shop-list li .gloss{font-size:15px}.word-bank.shop-list li.selected{background:#ffffff24}.word-bank.shop-list li.owned .gloss{color:var(--acid-green)}.shop-item-price{color:var(--acid-green);font-weight:600;font-size:15px}.shop-detail{background:var(--board-green);border-radius:12px;padding:24px 28px;min-height:360px;margin-bottom:32px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}.shop-detail-title{margin:0;font-size:24px;font-weight:600}.shop-detail-desc{margin:0;font-size:17px;line-height:1.45;color:#e6e6e6;max-width:620px;min-height:4.35em}.shop-detail-body{display:flex;align-items:center;gap:56px;margin-top:12px}.shop-detail-art{width:170px;height:170px;display:flex;align-items:center;justify-content:center}.shop-art-img{max-width:100%;max-height:100%;object-fit:contain}.shop-art-fallback{position:relative;font-size:96px;line-height:1}.shop-art-badge{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:22px;font-weight:800;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.8)}.shop-price{font-size:24px;font-weight:700;color:var(--acid-green)}.thai-label{display:inline-flex;flex-direction:column;line-height:1.15}.thai-label-thai{font-family:Noto Sans Thai,sans-serif;font-weight:600;font-size:17px;color:#eee}.thai-label-roman{font-size:10px;color:#999}.shop-buy{width:250px;padding:16px 18px 12px;display:flex;flex-direction:column;gap:12px;background:#00000047;border:1px solid rgba(255,255,255,.16);border-radius:12px}.shop-buy-price{display:flex;align-items:center;justify-content:space-between;height:40px}.shop-buy-amount{display:inline-flex;align-items:center;gap:8px}.shop-price{min-width:2ch;text-align:right;font-size:30px;font-weight:700;line-height:1;color:var(--acid-green);font-variant-numeric:tabular-nums}.shop-buy-button{width:100%;height:46px;padding:0 12px;font-size:16px;border-radius:10px}.shop-buy-button:not(:disabled):hover{filter:brightness(1.12)}.shop-buy-button.owned:disabled{background:transparent;border:1px solid var(--acid-green);color:var(--acid-green);cursor:default}.shop-buy-status{height:16px;font-size:12px;line-height:16px;text-align:center;color:#f0b0b0}.hud-slots{display:flex;align-items:center;gap:10px;margin-left:14px}.hud-slot{width:62px;height:62px;border:3px solid var(--gold);border-radius:10px;background:#000;display:flex;align-items:center;justify-content:center}.hud-slot-item{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.hud-slot .shop-art-fallback{font-size:30px}.hud-slot .shop-art-badge{font-size:13px}.hud-slot .shop-art-img{max-width:85%;max-height:85%}button.hud-slot{padding:0;font:inherit;color:inherit;position:relative}.hud-slot.usable{cursor:pointer;transition:transform .12s,box-shadow .12s}.hud-slot.usable:hover{transform:translateY(-2px);box-shadow:0 4px 12px #d4a84373}.hud-slot:disabled{cursor:default;opacity:1}.hud-slot.active{border-color:var(--acid-green);box-shadow:0 0 10px 2px #c8ff0073;animation:slot-pulse 1.5s ease-in-out infinite}.hud-slot-tag{position:absolute;bottom:-9px;left:50%;transform:translate(-50%);background:var(--acid-green);color:#000;font-size:9px;font-weight:800;letter-spacing:.03em;line-height:1;padding:3px 5px;border-radius:4px;white-space:nowrap}@keyframes slot-pulse{0%,to{box-shadow:0 0 6px 1px #c8ff0059}50%{box-shadow:0 0 16px 4px #c8ff00b3}}@media (prefers-reduced-motion: reduce){.hud-slot.active{animation:none}}.hud-box strong .hud-boost{display:inline;font-size:14px;font-weight:700;color:var(--gold)}.result-boost{display:block;font-size:12px;font-weight:500;color:var(--acid-green)}.over-score-note{font-size:12px;font-weight:500;color:#aaa}.spell-panel{min-height:84px;padding:6px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:10px;background:#d4a84314;border:1px solid rgba(212,168,67,.4)}.spell-thai{font-family:Niramit,serif;font-size:46px;line-height:1.2;color:var(--gold)}.spell-thai-loopless{font-family:Noto Sans Thai,sans-serif;font-size:18px;line-height:1.2;color:#8a7a4a}.word-bank-hint{margin:-4px 0 10px;font-size:12px;color:var(--gold)}.word-bank li.selected{background:#d4a84338}.boom-flash{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:150px;line-height:1;pointer-events:none;z-index:30}.word-bank.shop-list{width:340px}.word-bank.shop-list li{align-items:center;gap:10px}.word-bank.shop-list li .gloss{flex:1}.shop-item-icon{width:30px;height:30px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.shop-item-icon .shop-art-fallback{font-size:22px}.shop-item-icon .shop-art-badge{font-size:10px}.shop-item-icon .shop-art-img{max-width:100%;max-height:100%}.app.vowels-on{max-width:1380px}.board-item{display:flex;align-items:flex-start;gap:2px;padding:4px;border:2px solid transparent;border-radius:16px;transition:background .12s,border-color .12s}.board-item.vowel-hover{border-color:#c8ff0099;background:#c8ff0012}.board-item.vowel-target{border-color:#d4a84359}.before-slot{flex:none;box-sizing:border-box;width:64px;height:100px;border:2px dashed var(--gold);border-radius:10px;background:#d4a84329;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--gold)}.before-piece{flex:none;padding:0;border:0;background:transparent;cursor:pointer;display:flex;align-items:flex-end;filter:drop-shadow(0 5px 5px rgba(0,0,0,.4))}.before-piece img{width:auto;display:block}.before-glyph{font-family:Niramit,serif;font-weight:700;line-height:1;color:#eee7d4}.vowels-on .card.board-card.has-art{height:auto;padding-bottom:6px}.vowels-on .card.board-card.has-art .glyph-pair{flex-direction:row;align-items:center;gap:8px}.vowels-on .card.board-card.has-art .glyph-looped{font-size:20px}.vowels-on .card.board-card.has-art .glyph-loopless{font-size:24px;border-top:0;border-left:1px solid rgba(255,255,255,.35);padding:0 0 0 8px}.vowel-rail{width:216px;flex:none;box-sizing:border-box;background:#000;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}.vowel-rail.disabled{opacity:.55;pointer-events:none}.vowel-rail-head,.vowel-group-head{display:flex;align-items:baseline;justify-content:space-between}.vowel-rail-title{font-size:14px;font-weight:700;letter-spacing:.06em;color:#d9da4a}.vowel-rail-sub,.vowel-group-hint{font-size:11px;color:#8f8f8f}.vowel-group-name{font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--acid-green)}.vowel-group.locked{opacity:.6}.vowel-group.locked .vowel-group-name{color:#aaa}.vowel-group-head{margin-bottom:6px}.vowel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;justify-items:start}.vowel-tile{position:relative;box-sizing:border-box;width:50px;height:50px;background:var(--card-bg);color:var(--card-ink);border:2px solid #fff;border-radius:9px;box-shadow:0 3px 8px #0006;display:flex;align-items:center;justify-content:center;cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.vowel-tile.selected{border-color:var(--acid-green);box-shadow:0 0 0 3px #c8ff0040,0 3px 8px #0006}.vowel-tile.locked{background:transparent;border:1px dashed #555;box-shadow:none;color:#aaa;cursor:default}.vowel-tile-glyph{font-family:Niramit,serif;font-size:28px;font-weight:700;line-height:1}.vowel-tile.locked .vowel-tile-glyph{font-size:22px;font-weight:400}.vowel-tile-dot{font-size:20px;font-weight:400;color:#b5b0a4}.vowel-caption{background:#111;border:1px solid #2a2a2a;border-radius:8px;padding:8px 10px;min-height:56px}.vowel-caption-name{font-size:17px;font-weight:700;line-height:1.2;color:#fff}.vowel-caption-eg{font-size:12px;line-height:1.3;color:#9a9a9a;margin-top:2px}.vowel-flyer{position:fixed;left:0;top:0;z-index:200;pointer-events:none;display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 6px 8px rgba(0,0,0,.45))}.vowel-flyer img{width:100%;height:100%;object-fit:contain;display:block}.word-bank-count{margin:10px 0 0;font-size:18px;color:#d6d6d6}.word-bank-count.muted{font-size:15px;color:#8f8f8f}.card-stack{position:relative;flex:none}.above-slot-wrap{position:absolute;left:0;right:0;display:flex;justify-content:center;align-items:flex-end;pointer-events:none;z-index:3}.above-slot-wrap>*{pointer-events:auto}.before-slot.above-slot{width:60px;height:40px;padding-bottom:0;align-items:center;font-size:10px}.above-piece{align-items:flex-end;justify-content:center;overflow:visible}.above-standin{line-height:1;pointer-events:none;color:transparent;padding-top:.3em;margin-top:-.3em;background:linear-gradient(to bottom,#eee7d4 0 47%,transparent 47%);-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 3px 3px rgba(0,0,0,.35))}.vowel-stack{position:relative;display:inline-block;line-height:1}.vowel-mark{display:inline-block;-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}.vowel-stack.above .vowel-mark{padding-top:.3em;margin-top:-.3em;background-image:linear-gradient(to bottom,currentColor 0 46%,transparent 46%)}.vowel-stack.below .vowel-mark{padding-bottom:.45em;margin-bottom:-.45em;background-image:linear-gradient(to bottom,transparent 0 66%,currentColor 66%)}.vowel-stack-dot{position:absolute;left:50%;bottom:.17em;width:.42em;height:.42em;box-sizing:border-box;transform:translate(-50%);border:max(1.5px,.05em) dashed #b5b0a4;border-radius:50%}.vowel-stack.below .vowel-stack-dot{left:60%;bottom:.06em}.vowel-tile .vowel-stack{font-size:1.4em}.vowel-tile .vowel-stack.above{margin-top:.25em}.vowel-tile .vowel-stack.below{position:relative;top:-.32em}.modal.modal-pointing:before{content:"";position:absolute;top:-8px;left:var(--arrow-x, 50%);width:14px;height:14px;background:#161616;border-left:1px solid #333;border-top:1px solid #333;transform:translate(-50%) rotate(45deg)}.below-slot-wrap{position:absolute;left:0;right:0;display:flex;justify-content:center;align-items:flex-start;pointer-events:none;z-index:3}.below-slot-wrap>*{pointer-events:auto}.before-slot.below-slot{width:60px;height:36px;padding-bottom:0;align-items:center;font-size:10px}.below-piece{align-items:flex-start;justify-content:center;overflow:visible}.card-stack.has-below .card.board-card.has-art .glyph-pair{margin-top:40px}.card-stack.has-below .card.board-card:not(.has-art) .glyph-loopless{margin-top:40px}.below-standin{line-height:1;pointer-events:none;color:transparent;padding-bottom:.45em;background:linear-gradient(to bottom,transparent 0 69%,#eee7d4 69%);-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 3px 3px rgba(0,0,0,.35))}.vowel-intro{z-index:50;width:410px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:20px 22px;background:#161616;border:1px solid #333;border-radius:12px;box-shadow:0 12px 32px #0000008c;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.vowel-intro.pointing:after{content:"";position:absolute;right:-8px;top:var(--arrow-y, 50%);width:14px;height:14px;background:#161616;border-right:1px solid #333;border-top:1px solid #333;transform:translateY(-50%) rotate(45deg)}.vowel-intro-title{font-size:20px;font-weight:700;color:var(--acid-green)}.vowel-intro-body p{margin:0;font-size:15px;line-height:1.45;color:#eee}.vowel-tip{position:fixed;z-index:70;width:max-content;max-width:260px;padding:8px 12px;background:#111;border:1px solid #3a3a3a;border-radius:10px;box-shadow:0 8px 22px #0000008c;pointer-events:none}.vowel-tip:after{content:"";position:absolute;width:12px;height:12px;background:#111}.vowel-tip.left:after{right:-7px;top:var(--arrow, 50%);border-right:1px solid #3a3a3a;border-top:1px solid #3a3a3a;transform:translateY(-50%) rotate(45deg)}.vowel-tip.below:after{top:-7px;left:var(--arrow, 50%);border-left:1px solid #3a3a3a;border-top:1px solid #3a3a3a;transform:translate(-50%) rotate(45deg)}.vowel-tip-name{font-size:17px;font-weight:700;line-height:1.25;color:#fff;white-space:nowrap}.vowel-tip-eg{margin-top:2px;font-size:12px;line-height:1.35;color:#a8a8a8}.vowel-tip-thai{font-family:Niramit,serif;font-size:15px;color:#fff}.above-slot-wrap.on-art,.below-slot-wrap.on-art{justify-content:flex-end;padding-right:6%}.above-slot-wrap.on-art{padding-right:15%}.card-speak{position:absolute;top:6px;left:6px;z-index:2;width:26px;height:26px;padding:0;display:flex;align-items:center;justify-content:center;border:none;border-radius:50%;background:#141414bf;color:#fff;cursor:pointer;opacity:0;transition:opacity .15s,transform .15s}.card:hover .card-speak,.card-speak:focus-visible{opacity:1}.card-speak:hover{background:var(--acid-green);color:#111;transform:scale(1.1)}@media (hover: none){.card-speak{display:none}}.syl.live{color:#ffc24d;text-shadow:0 0 8px rgba(255,170,40,.75);animation:syl-breathe 2s ease-in-out infinite}.syl.dead{color:#6e6e6e}@keyframes syl-breathe{0%,to{text-shadow:0 0 4px rgba(255,170,40,.5)}50%{text-shadow:0 0 10px rgba(255,170,40,.95),0 0 18px rgba(255,150,20,.6)}}@media (prefers-reduced-motion: reduce){.syl.live{animation:none}}.live-dead-key{display:flex;align-items:baseline;gap:8px;font-size:13px}.live-dead-key-label{font-size:11px;font-weight:600;color:#8a8a8a}.match-info{flex-wrap:wrap}.tone-reasons{flex-basis:100%;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:1px;margin-top:2px}.tone-reason{font-size:12px;line-height:1.4;color:#b8b8b8}.tone-reason-syl{display:inline-block;min-width:3.2em;margin-right:4px;font-weight:700;color:#fff}@media (pointer: coarse){html{touch-action:manipulation;-webkit-text-size-adjust:100%}body{overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}img{-webkit-touch-callout:none;-webkit-user-drag:none}}.rotate-hint{display:none}@media (orientation: portrait) and (max-width: 500px){.rotate-hint{display:flex;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:32px;background:var(--bg-dark);color:#ddd;font-size:18px;text-align:center}.rotate-hint svg{color:var(--acid-green)}}@media (max-height: 500px) and (orientation: landscape){.app,.app.vowels-on{position:relative;max-width:none;height:100vh;height:100dvh;margin:0;padding:max(6px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:6px;overflow-y:auto}.hud{flex:none;flex-wrap:nowrap;align-items:center;gap:6px;margin:0}.hud-box{padding:2px 8px;border-radius:6px;font-size:10px;line-height:1.15;white-space:nowrap}.hud-box strong{font-size:15px}.hud-box strong .garuda-icon{width:15px!important;height:15px!important}.hud-slots{margin-left:auto;gap:6px}.hud-slot{width:36px;height:36px;border-width:2px;border-radius:8px}.hud-slot .shop-art-fallback{font-size:18px}.hud-slot .shop-art-badge{font-size:10px}.hud-slot-tag{font-size:7px;bottom:-6px;padding:2px 3px}.hud{height:40px}.hud .result-slot{flex:1;min-width:0;align-self:flex-start;min-height:0;margin:0;display:flex;justify-content:center;position:relative;z-index:40}.hud .result,.hud .spell-panel{min-height:0;max-width:100%;margin:0;padding:3px 10px;flex-wrap:nowrap;gap:2px 10px;font-size:12px;background:#111;border:1px solid rgba(200,255,0,.35);border-radius:10px;box-shadow:0 6px 18px #00000080}.hud .result{overflow:hidden}.hud .match-row .gloss{white-space:normal;max-width:210px;line-height:1.2;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}.hud{position:relative}.hud .result-slot:has(.multi){position:static}.hud .result.multi{position:absolute;top:0;left:0;right:0;margin:0 auto;width:fit-content;max-width:92%;overflow:visible;z-index:45;display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;gap:4px 16px;padding:6px 12px 8px}.hud .result.multi .result-jackpot{grid-column:1;grid-row:1;justify-self:end}.hud .result.multi .result-points{grid-column:2;grid-row:1;justify-self:start}.hud .result.multi .match-list{grid-column:1 / -1;grid-row:2;flex-wrap:wrap;justify-content:center;gap:4px 12px}.hud .result.multi .match-row .gloss{max-width:120px}.hud .result-slot:has(.folded){position:relative}.hud .result.multi.folded{position:static;width:auto;max-width:100%;margin:0;overflow:hidden;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;padding:4px 10px;cursor:pointer}.hud .result.multi.folded .result-jackpot{order:1}.hud .result.multi.folded .result-points{order:2}.hud .result.multi.folded .match-list{display:none}.hud .result.multi.folded:after{content:"▾";order:3;font-size:12px;color:var(--acid-green)}.hud .result.miss{background:#1a0f0f;border-color:#ff505066}.hud .spell-panel{flex-direction:row;border-color:#d4a84373}.hud .result .match-list{flex-wrap:nowrap;gap:2px 10px}.hud .match-row{padding:0 4px;gap:8px}.hud .match-row .thai{font-size:18px}.hud .match-row .thai-loopless{font-size:13px}.hud .match-row .gloss{font-size:11px}.hud .match-row .tag{font-size:9px;align-self:center}.hud .result-jackpot,.hud .result-points{font-size:12px;white-space:nowrap}.hud .spell-thai{font-size:24px}.hud .spell-thai-loopless{font-size:13px}.game-layout{flex:1;min-height:0;gap:8px;align-items:stretch}.word-bank{width:138px;max-height:none;padding:8px 10px;border-radius:8px}.vowels-on .word-bank:not(.shop-list){width:112px}.word-bank h4{font-size:10px;margin-bottom:6px}.word-bank ul{gap:6px}.word-bank .gloss{font-size:11px;line-height:1.3}.word-bank-count{margin-top:4px;font-size:13px}.word-bank-count.muted,.word-bank-empty,.word-bank-hint{font-size:11px}.word-bank.shop-list{width:200px}.main-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) auto;gap:6px;min-height:0}.main-panel>.board,.main-panel>.shop-detail{grid-column:1 / -1;grid-row:1}.main-panel>.hand{grid-column:1;grid-row:2}.main-panel>.controls{grid-column:2;grid-row:2}.board{min-height:0;margin:0;padding:6px 8px 8px;border-radius:10px;align-items:flex-end}.board-empty-hint{align-self:center;font-size:11px;line-height:1.35}.card.board-card{width:68px;height:auto;border-radius:8px;padding-bottom:4px}.card.board-card:not(.has-art){height:96px;padding-bottom:0}.card.board-card .monster-art{width:60px;margin-top:6px;margin-bottom:2px}.card.board-card .glyph-looped{font-size:18px}.card.board-card .glyph-loopless{font-size:15px}.card.board-card:not(.has-art) .glyph-looped{font-size:30px}.card.board-card:not(.has-art) .glyph-loopless{font-size:22px}.vowels-on .card.board-card.has-art .glyph-pair{gap:5px}.vowels-on .card.board-card.has-art .glyph-looped{font-size:14px}.vowels-on .card.board-card.has-art .glyph-loopless{font-size:16px;padding-left:5px}.card .lock{font-size:10px;bottom:3px;left:4px}.board-item{border-radius:12px}.before-slot{width:40px;height:60px;padding-bottom:4px;font-size:8px;letter-spacing:.04em}.hand{min-height:0;height:104px;padding:0;gap:4px;align-items:flex-end}.hand>.card{max-width:74px;height:100px;border-radius:8px}.hand .card .monster-art{width:76%;margin-top:12px;margin-bottom:0}.hand .card .glyph-looped{font-size:20px}.hand .card:not(.has-art) .glyph-looped{font-size:38px}.hand .card .glyph-loopless,.hand .card .name{display:none}.card .points{top:4px;right:5px;font-size:10px}.hand>.card.held{height:142px;box-shadow:0 0 0 2px var(--acid-green),0 14px 30px #0009}.hand .card.held .glyph-loopless,.hand .card.held .name{display:block}.hand .card.held .glyph-loopless{font-size:16px}.hand .card.held:not(.has-art) .glyph-loopless{font-size:26px}.hand .card.held .name{font-size:10px;margin-top:2px}.controls{margin:0;flex-direction:column;justify-content:flex-end;gap:4px}.controls button.primary{width:76px;min-height:56px;padding:6px 4px;font-size:13px;line-height:1.15}.trash-zone{width:76px;height:44px}.trash-can{width:40px;height:40px;font-size:18px;border-radius:8px}.vowel-rail{width:56px;padding:6px;gap:6px;border-radius:10px;justify-content:center}.vowel-rail-head,.vowel-group-head,.vowel-group.locked,.vowel-caption{display:none}.vowel-grid{grid-template-columns:minmax(0,1fr);gap:6px;justify-items:center}.vowel-rail{width:auto;flex-direction:row;align-items:center}.vowel-rail .vowel-group{align-self:center}.vowel-tile{width:42px;height:42px;border-radius:8px}.vowel-tile-glyph{font-size:22px}.vowel-tile-dot{font-size:15px}.record-toast-wrap{top:8px}.record-toast{padding:6px 16px}.record-toast-title{font-size:13px}.record-toast-word{font-size:22px}.record-toast-sub{font-size:10px}.boom-flash{font-size:90px}.round-banner{flex:none;padding:8px 12px;margin:0}.round-banner-title{font-size:16px}.round-banner-sub{font-size:12px;margin-bottom:8px}.modal{max-width:min(360px,80vw);max-height:90dvh;overflow-y:auto;padding:16px}.modal p{font-size:14px;margin-bottom:12px}.main-panel>.shop-detail{min-height:0;margin:0;padding:12px 16px;overflow-y:auto}.start-screen{min-height:100vh;min-height:100dvh;gap:10px;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left))}.start-tagline{margin:0;font-size:13px}.start-logos{gap:10px}.logo-badge{font-size:13px;padding:5px 10px}.start-welcome{margin:0;font-size:26px}.start-cards-row{gap:16px}.start-cards-row .card{width:76px;height:110px;border-radius:8px}.start-cards-row .card .monster-art{width:76%;margin-top:12px;margin-bottom:0}.start-cards-row .card .glyph-looped{font-size:20px}.start-cards-row .card:not(.has-art) .glyph-looped{font-size:38px}.start-cards-row .card .glyph-loopless,.start-cards-row .card .name{display:none}}@media (max-height: 500px) and (orientation: landscape){.shop-sign-bar{flex:none;padding:4px 16px;gap:12px}.shop-sign-center{flex-direction:row;gap:16px}.shop-garuda{height:40px}.thai-plate.big{padding:1px 12px 2px;border-radius:6px}.thai-plate.big .thai-plate-thai{font-size:22px}.thai-plate.big .thai-plate-roman{font-size:10px}.shop-sign-bar button.primary{padding:8px 16px;font-size:13px}.app:has(.shop-sign-bar) .main-panel>.hand{display:none}.app:has(.shop-sign-bar) .main-panel{grid-template-rows:minmax(0,1fr)}.word-bank.shop-list{width:210px;padding:8px 10px}.shop-list-head{margin-bottom:6px}.shop-list-head .thai-label-thai{font-size:14px}.shop-list-price-head .garuda-icon{width:16px!important;height:16px!important}.shop-list-balance{margin:-2px 0 6px;font-size:11px}.shop-list-balance strong{font-size:13px}.word-bank.shop-list ul{gap:2px}.word-bank.shop-list li{padding:4px 6px;margin:0 -6px;gap:8px}.word-bank.shop-list li .gloss{font-size:12px}.shop-item-icon{width:24px;height:24px}.shop-item-icon .shop-art-fallback{font-size:18px}.shop-item-icon .shop-art-badge{font-size:8px}.shop-item-price{font-size:13px}.main-panel>.shop-detail{padding:10px 16px;gap:4px;justify-content:center}.shop-detail-title{font-size:17px}.shop-detail-desc{font-size:12px;line-height:1.4;min-height:calc(3 * 1.4em)}.shop-detail-body{gap:24px;margin-top:4px}.shop-detail-art{width:84px;height:84px}.shop-detail-art .shop-art-fallback{font-size:56px}.shop-detail-art .shop-art-badge{font-size:14px}.shop-buy{width:210px;padding:8px 12px 6px;gap:6px;border-radius:10px}.shop-buy-price{height:30px}.shop-buy-price .thai-label-thai{font-size:14px}.shop-buy-amount .garuda-icon{width:22px!important;height:22px!important}.shop-price{font-size:22px}.shop-buy-button{height:38px;font-size:14px;border-radius:8px}.shop-buy-status{height:14px;font-size:11px;line-height:14px}.app:has(.devil-deal-panel) .shop-list,.app:has(.devil-deal-panel) .main-panel>.shop-detail{display:none}.app:has(.devil-deal-panel) .vowel-rail,.app:has(.shop-sign-bar) .vowel-rail{display:none}.app:has(.devil-deal-panel) .game-layout{flex:none}.app:has(.devil-deal-panel) .main-panel{grid-template-rows:auto}.app:has(.devil-deal-panel) .main-panel>.hand{grid-row:1}.devil-deal-panel{flex:1;min-height:0;margin:0;padding:6px 12px 8px;gap:4px;border-radius:10px;background:radial-gradient(ellipse 420px 180px at 50% 40%,rgba(122,32,32,.35),transparent 70%),var(--bg-dark)}.devil-deal-banner{padding:4px 12px;font-size:12px}.devil-deal-title{font-size:13px}.devil-deal-stage{flex:1;min-height:0;max-width:560px}.devil-crab-art{width:auto;height:100%;max-height:130px}.devil-deal-card{width:100px;gap:4px;top:max(0px,calc(50% - 64px))}.devil-deal-get{left:0}.devil-deal-lose{right:0}.devil-deal-get-label,.devil-deal-lose-label{font-size:10px;padding:3px 7px;white-space:nowrap}.devil-deal-card .card{width:72px;height:100px;border-radius:8px}.devil-deal-card .card .monster-art{width:76%;margin-top:12px;margin-bottom:0}.devil-deal-card .card .glyph-looped{font-size:20px}.devil-deal-card .card:not(.has-art) .glyph-looped{font-size:38px}.devil-deal-card .card .glyph-loopless,.devil-deal-card .card .name{display:none}.devil-deal-hint{font-size:11px;line-height:1.3}.devil-deal-actions{gap:10px}.devil-deal-actions button{padding:7px 18px;font-size:13px}}@media (max-height: 500px) and (orientation: landscape){.before-slot.above-slot{width:40px;height:26px;font-size:7px}}@media (max-height: 500px) and (orientation: landscape){.vowel-rail.compact{position:relative;width:64px;flex-direction:column;align-items:stretch;justify-content:center;gap:6px;padding:6px}.vowel-group-btn{flex:1 1 0;max-height:78px;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 0;border:1px solid #3a352b;border-radius:10px;background:#1f1c17;color:#ede5d6;font-family:inherit;cursor:pointer}.vowel-group-btn.open{background:var(--card-bg);color:var(--card-ink);border-color:var(--acid-green)}.vowel-group-btn-glyph{font-family:Niramit,serif;font-size:22px;font-weight:700;line-height:1.1}.vowel-group-btn-name{font-size:10px;font-weight:600}.vowel-flyout{position:absolute;top:6px;right:calc(100% + 6px);z-index:30;display:flex;gap:6px;padding:6px;background:#26231d;border:1px solid #3a352b;border-radius:12px;box-shadow:0 8px 24px #00000080}.vowel-rail.compact.disabled .vowel-group-btn{opacity:.4;pointer-events:none}}@media (max-height: 500px) and (orientation: landscape){.modal.modal-pointing{overflow:visible;max-height:none}}@media (max-height: 500px) and (orientation: landscape){.before-slot.below-slot{width:40px;height:24px;font-size:7px}.card-stack.has-below .card.board-card.has-art .glyph-pair,.card-stack.has-below .card.board-card:not(.has-art) .glyph-loopless{margin-top:24px}}@media (max-height: 500px) and (orientation: landscape){.vowel-intro{width:300px;padding:12px 14px;gap:8px}.vowel-intro-title{font-size:14px}.vowel-intro-body p{font-size:12px;line-height:1.35}.vowel-intro button.primary{padding:6px 16px;font-size:13px}}@media (max-height: 500px) and (orientation: landscape){.vowel-group-btn .vowel-stack.below{position:relative;top:-.3em}}@media (max-height: 500px) and (orientation: landscape){.vowel-tip{max-width:220px;padding:5px 9px}.vowel-tip-name{font-size:14px}.vowel-tip-eg{font-size:11px}}@media (max-height: 500px) and (orientation: landscape){.card-speak{display:none}}@media (max-height: 500px) and (orientation: landscape){.hud .result .live-dead-key{display:none}.hud .result.multi:not(.folded) .live-dead-key{display:flex;grid-column:1 / -1;justify-content:center}}@media (max-height: 500px) and (orientation: landscape){.hud .result .tone-reasons{display:none}.hud .result.multi:not(.folded) .tone-reasons{display:flex}.hud .result.multi:not(.folded) .tone-reason{font-size:10px}}
