#onlineRoot{display:none;position:fixed;inset:0;z-index:20000;background:#101a2be8;backdrop-filter:blur(9px);overflow:auto;padding:28px;color:#edf1fb;font-family:Arial,sans-serif}#onlineRoot.active{display:flex;align-items:flex-start;justify-content:center}#onlineRoot *{box-sizing:border-box}#onlineRoot .online-panel{background:#1b2840;border:1px solid #ffffff21;border-radius:24px;padding:26px;max-width:1000px;width:100%;margin:auto;box-shadow:0 30px 100px #0008}#onlineRoot .intro{max-width:620px;text-align:center;padding:44px}#onlineRoot h1{font-size:30px;letter-spacing:-1px}#onlineRoot h2{margin:7px 0;font-size:25px}#onlineRoot header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.online-kicker{color:#b5c8f8;font-size:11px;letter-spacing:3px;font-weight:bold}#onlineRoot p{line-height:1.7;color:#c7d3e8}#onlineRoot button,.village-skins button,#onlineToolbar button{background:#324461;color:#fff;border:1px solid #ffffff22;border-radius:10px;padding:12px 17px;cursor:pointer;font-weight:bold}#onlineRoot button:hover:not(:disabled){background:#465f86}#onlineRoot button:disabled{opacity:.5;cursor:default}#onlineRoot button.primary{background:#ffd073;color:#332813}#onlineRoot input,#onlineRoot select{background:#111d30;border:1px solid #536681;border-radius:9px;color:white;padding:12px;max-width:100%;font-size:16px}#onlineRoot label{display:inline-flex;align-items:center;gap:12px;margin:10px}.character-choices{display:flex;gap:18px;justify-content:center;margin:26px 0}.character-choices button{width:43%;display:grid;justify-items:center;gap:16px}.character-choices img{width:130px;height:150px;object-fit:contain}.character-choices .selected{border:2px solid #ffd073!important;background:#424655!important}.online-muted{font-size:12px;color:#9faec8!important}.room-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.room-list{display:grid;gap:10px}.room-list button{display:flex;justify-content:space-between;gap:12px}.room-banner{display:flex;gap:15px;align-items:center;flex-wrap:wrap;background:#101c30;padding:15px;border-radius:12px}.room-banner strong span{font-size:24px;letter-spacing:4px;color:#ffd073}#roomClock{margin-left:auto;color:#ffd073}.online-players{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:16px 0}.online-player{background:#111e33;border-top:3px solid var(--player-color);border-radius:10px;padding:9px 3px;display:grid;justify-items:center;text-align:center;font-size:12px;gap:5px;overflow:hidden}.online-player img{width:45px;height:52px;object-fit:contain}.online-player.turn{outline:2px solid #ffd073}.online-player small{color:#b6c5dd}.lobby-controls{text-align:center;padding:18px 0}.stone-shop{margin:14px 0}.stone-shop button{display:inline-grid;justify-items:center;gap:8px;margin:5px}.stone-shop small{color:#ffe1a5}.stone-swatch{display:block;width:32px;height:32px;border-radius:50%;box-shadow:inset -5px -5px 7px #0004}.memory-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:8px}.memory-grid button{height:78px;font-size:30px!important;padding:5px!important;background:#485ca5!important}.memory-grid button.flipped,.memory-grid button.matched{background:#eee6d6!important;opacity:1!important}.memory-grid button.matched{box-shadow:inset 0 0 0 3px #69bc8b}.memory-grid img{width:100%;height:100%;object-fit:contain}.online-hand{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}.online-hand span{padding:14px;background:#f2eee3;color:#282937;border-radius:8px}.online-hand button{font-size:30px}#onlineCanvas{display:block;max-width:100%;width:min(100%,650px);height:auto;margin:0 auto;border-radius:14px;touch-action:none}.bomb-controls{display:flex;justify-content:center;gap:8px;margin-top:15px}.online-fishing{text-align:center;padding:40px 10px}#fishingBite{font-size:30px;padding:25px}.bite{color:#ffd073;animation:bite .3s alternate infinite}@keyframes bite{to{transform:scale(1.04)}}#onlineResult{text-align:center;padding:40px}#onlineMessage{min-height:28px;text-align:center;color:#ffd073!important}#onlineToast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:30000;padding:14px 22px;background:#fff1cc;color:#2c2e39;border-radius:12px;display:none;max-width:90vw}#onlineToast.visible{display:block}#onlineToolbar{position:fixed;bottom:20px;left:20px;display:flex;gap:8px;z-index:100}.remote-player{position:absolute;width:64px;height:64px;pointer-events:none;z-index:20}.remote-player img{width:64px;height:64px;object-fit:contain}.remote-player>div{position:absolute;bottom:64px;left:50%;transform:translateX(-50%);background:#15233bdc;color:white;padding:3px 8px;border-radius:6px;white-space:nowrap;font-size:12px}.village-skins{padding:18px;grid-column:1/-1}.village-skins button{margin:5px}#connectStatus{color:#ffc0a9;margin-top:15px}@media(max-width:650px){#onlineRoot{padding:10px}#onlineRoot .online-panel{padding:16px}#onlineRoot .intro{padding:25px 15px}.online-players{grid-template-columns:repeat(3,1fr)}.memory-grid{grid-template-columns:repeat(5,1fr);gap:5px}.memory-grid button{height:60px}.character-choices img{width:100px;height:120px}.room-list button{flex-direction:column}.room-banner strong span{font-size:20px}.bomb-controls button{padding:12px!important}#onlineToolbar{bottom:8px;left:8px}#onlineToolbar button{padding:8px;font-size:12px}}
.shop-window{max-height:92vh;overflow-y:auto}.village-skins{background:#1b2840;border-radius:14px;color:#eef2ff}
#firebaseGate{position:fixed;inset:0;z-index:22000;background:#111d32f5;display:flex;align-items:center;justify-content:center;padding:20px;color:#eef3ff;overflow:auto}#firebaseGate[hidden]{display:none}.auth-card{width:440px;max-width:100%;padding:32px;background:#1b2840;border:1px solid #ffffff26;border-radius:22px;box-shadow:0 25px 90px #0007}.auth-card h1{font-size:26px}.auth-card>p{color:#b3c3dc}.auth-card label{display:grid;gap:8px;margin:18px 0;font-size:13px}.auth-card input{width:100%;padding:13px;background:#101c2f;color:white;border:1px solid #50627e;border-radius:9px;font-size:16px}.auth-card button,#accountBar button{padding:11px 15px;background:#324663;color:#fff;border:0;border-radius:8px;cursor:pointer}.auth-card button.primary{width:100%;background:#ffd073;color:#332813;font-weight:bold;margin:10px 0}.auth-links{display:flex;gap:8px;flex-wrap:wrap;font-size:12px}#authStatus{font-size:13px;line-height:1.6;color:#ffdc98}#accountBar{position:fixed;top:12px;left:12px;z-index:120;display:flex;align-items:center;gap:8px;background:#17243ae8;color:white;padding:8px 10px;border-radius:10px;font-size:12px}#accountBar span{max-width:180px;overflow:hidden;text-overflow:ellipsis}#accountBar button{font-size:11px;padding:7px}@media(max-width:600px){#accountBar span{max-width:100px}#accountBar{top:5px;left:5px;gap:4px}}
.nickname-preview{width:100px;height:120px;object-fit:contain}.welcome-coins{color:#ffd073;font-size:32px;font-weight:bold;padding:24px}#mobileWorldControls{display:none;position:fixed;inset:auto 0 14px;z-index:150;pointer-events:none;padding:0 16px env(safe-area-inset-bottom)}#mobileWorldControls button{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;border:1px solid #ffffff55;background:#20334ee8;color:white;border-radius:15px;min-width:52px;min-height:52px;font-size:22px;box-shadow:0 3px 12px #0005}.world-dpad{display:grid;grid-template-columns:repeat(3,52px);grid-template-rows:repeat(2,52px);gap:4px}.world-dpad [data-walk=w]{grid-column:2}.world-dpad [data-walk=a]{grid-column:1;grid-row:2}.world-dpad [data-walk=s]{grid-column:2;grid-row:2}.world-dpad [data-walk=d]{grid-column:3;grid-row:2}.world-actions{display:flex;flex-direction:column;justify-content:flex-end;gap:8px}.world-actions button{font-size:14px!important;padding:8px 12px}.bomb-controls button{touch-action:none;min-height:48px;min-width:48px}#onlineRoot button,.auth-card button{min-height:44px}.online-panel,.auth-card{overscroll-behavior:contain}@media(pointer:coarse),(max-width:800px){#mobileWorldControls.world-ready{display:flex;justify-content:space-between}#onlineToolbar{bottom:136px}#accountBar{max-width:calc(100vw - 10px);flex-wrap:wrap}#hud{top:58px!important;left:10px!important;font-size:12px;max-width:75vw}#minimap{width:130px!important;right:10px!important;top:58px!important}#minimapCanvas{width:130px!important;height:auto!important}.game-center-window,.shop-window,.inventory-window{max-height:85dvh!important;overflow:auto!important}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.game-card{min-width:0!important}.fishing-control-help{font-size:12px}.character-choices button{min-width:0}#onlineRoot .intro h1{font-size:25px}#onlineRoot{padding:10px;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}}@media(max-width:420px){.game-grid{grid-template-columns:1fr!important}.room-actions input{width:100%}.online-players{grid-template-columns:repeat(3,minmax(0,1fr))}.online-player strong{overflow-wrap:anywhere}.bomb-controls{gap:4px}.bomb-controls button{padding:8px!important}}
.match-switch,.ranking-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.match-switch button.selected,.ranking-tabs button.selected{background:#ffd073!important;color:#332813!important;border-color:#ffd073!important}.my-ranking{background:#111e33;border:1px solid #ffffff20;border-radius:16px;padding:20px;margin:20px 0}.my-ranking>div,.result-rank{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:15px 0}.rank-badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:7px;font-weight:bold;white-space:nowrap;background:#69503c;color:#f6e5d1;border:1px solid #b69571}.rank-badge[data-tier="브론즈"]{background:#684322;border-color:#c6945f;color:#ffe1bc}.rank-badge[data-tier="실버"]{background:#4c5c73;border-color:#b6c6d9;color:#e6f0fc}.rank-badge[data-tier="골드"]{background:#6d5724;border-color:#f5cf63;color:#ffe49d}.rank-badge[data-tier="다이아"]{background:#285d70;border-color:#88e7ff;color:#c7f5ff}.rank-unplayed{color:#99aac4;font-size:13px}.ranking-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;font-size:13px;color:#b8c8df}.ranking-table-scroll{overflow-x:auto}.ranking-table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}.ranking-table th,.ranking-table td{padding:15px 10px;border-bottom:1px solid #ffffff16}.ranking-table th{color:#a7bddc;font-size:12px}.ranking-table td>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ranking-table tr:nth-child(even){background:#ffffff03}.ranking-empty{text-align:center;color:#b0bfd7;padding:50px 15px;line-height:1.8}.result-rank{justify-content:center}.result-rank p{width:100%;font-size:13px}@media(max-width:600px){.ranking-table{min-width:520px}.ranking-tabs button{flex:1 0 29%;padding:8px!important;font-size:12px}.ranking-toolbar{align-items:flex-start}.ranking-center .my-ranking{padding:15px}}
.remote-player>.remote-chat-bubble{bottom:90px;max-width:220px;min-width:60px;white-space:normal;overflow-wrap:anywhere;padding:9px 12px;border-radius:12px;background:#fff;color:#17233b;text-align:center;box-shadow:0 3px 12px #0004;font-size:13px;z-index:30}.room-list button span{font-size:13px}
.account-shop-item{display:flex;flex-direction:column;align-items:center;gap:10px}.account-shop-item h3{margin:5px 0}.account-shop-item p{margin:0}.account-shop-item button,.inventory-item button{border:0;border-radius:9px;padding:12px 15px;background:#304c70;color:white;font-weight:bold;cursor:pointer;min-height:44px}.account-shop-item button:disabled,.inventory-item button:disabled{opacity:.45;cursor:default}.ticket-icon{font-size:36px}#ticketDialog{background:#1b2840;color:#eff3fb;border:1px solid #ffffff40;border-radius:20px;width:min(450px,92vw);padding:26px;box-shadow:0 20px 80px #0008}#ticketDialog::backdrop{background:#111b30cc;backdrop-filter:blur(5px)}#ticketDialog p{font-size:14px;line-height:1.7;color:#becce1}#ticketDialog label{display:grid;gap:10px;margin:20px 0}#ticketDialog input,#ticketDialog select{padding:13px;background:#111e33;color:white;border:1px solid #596c89;border-radius:9px;font-size:16px;max-width:100%}#ticketDialog button{padding:13px;background:#365275;color:white;border:0;border-radius:8px;font-weight:bold;cursor:pointer}#ticketDialog button[type=submit]{background:#ffd073;color:#332713}#ticketDialog form>div{display:flex;justify-content:space-between;gap:12px}#ticketDialog .ticket-status{color:#ffd073}.account-shop-item .stone-swatch{width:44px;height:44px;margin:10px}
.stone-image-preview{display:block;width:46px;height:46px;object-fit:contain;border-radius:50%;background:#ffffff18}.account-shop-item .stone-image-preview{width:70px;height:70px;margin:8px}.inventory-item .stone-image-preview{margin:auto}
#onlineRoot .classic-treasure{background:radial-gradient(circle at center,#264c39,#10271c 75%);padding:22px;border-radius:20px;color:#edf4ec}#onlineTreasureStatus{margin-top:7px;color:#ffe083;font-weight:bold}#onlineRoot .classic-treasure .treasure-number{padding:0;min-height:40px;background:#ffffff17;border:2px solid #ffffff26;font-size:15px}#onlineRoot .classic-treasure .treasure-number.removed{opacity:.18}#onlineRoot .classic-treasure .treasure-number:hover:not(:disabled){background:#ffb43e;color:#171717}#onlineRoot .treasure-mode.active{border-color:#ffd05c;background:#ffd05c25}#onlineTreasureLog{margin-top:8px;font-size:12px;line-height:1.8}.treasure-stat{display:grid;gap:7px;overflow-wrap:anywhere}.classic-treasure .treasure-player-panel{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:600px){#onlineRoot .classic-treasure{padding:14px}.classic-treasure .treasure-board{grid-template-columns:repeat(5,minmax(0,1fr))}.classic-treasure .treasure-bottom{grid-template-columns:1fr}#onlineRoot .classic-treasure .treasure-number{aspect-ratio:auto;height:44px}.classic-treasure .treasure-game-title{font-size:23px}}
.shop-category-title{grid-column:1/-1;color:#e5c981;padding:15px 5px;border-top:1px solid #ffffff25}.effect-preview{display:block;width:68px;height:68px;object-fit:contain;margin:8px auto}.head-decoration{position:absolute;left:50%;bottom:51px;transform:translateX(-50%);width:46px;height:46px;pointer-events:none;z-index:25}.head-decoration>img{width:100%!important;height:100%!important;object-fit:contain;filter:drop-shadow(0 1px 2px #0005)}.halo-decoration{width:35px;height:10px;bottom:62px;border:3px solid #ffdb55;border-radius:50%;background:transparent;box-shadow:0 0 7px #ffd85c,0 0 14px #ffe3a080;animation:haloGlow 1.3s ease-in-out alternate infinite}.halo-preview{display:block;width:54px;height:17px;border:4px solid #ffdc67;border-radius:50%;box-shadow:0 0 14px #ffc84e;margin:34px auto}.bubble-preview{display:block;padding:12px 20px;border-radius:13px;margin:15px auto;color:#27354b;background:white;font-weight:bold}[data-bubble="gold"]{background:linear-gradient(120deg,#fff3c7,#ffd371)!important;color:#66410c!important;border:2px solid #e6a836!important;box-shadow:0 0 11px #ffcb6755!important}[data-bubble="pink"]{background:linear-gradient(120deg,#fff1f7,#ffbdd9)!important;color:#843453!important;border:2px solid #ed85b2!important}[data-bubble="blue"]{background:linear-gradient(120deg,#effaff,#aedfff)!important;color:#27577d!important;border:2px solid #75b5e6!important}[data-bubble="image"]{background-image:var(--bubble-art)!important;background-size:100% 100%!important;background-color:#fff!important;color:#25354b!important;padding:15px 20px!important}.head-decoration~.remote-chat-bubble{bottom:113px}@keyframes haloGlow{to{filter:brightness(1.25);box-shadow:0 0 12px #ffd85c,0 0 19px #ffe3a080}}@media(prefers-reduced-motion:reduce){.halo-decoration{animation:none}}
.remote-player:has(.head-decoration)>.remote-chat-bubble{bottom:113px}
.shop-categories{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;padding:4px 0 15px}.shop-categories button{flex:1;min-width:95px;padding:12px 10px;border:1px solid #ffffff26;border-radius:9px;background:#233c5a;color:#ecf3ff;font-weight:bold;cursor:pointer}.shop-categories button.active{background:#ffd073;color:#342914;border-color:#ffd073}.account-shop-item[hidden]{display:none!important}
/* Nine-slice balloons: fixed corners and border thickness; only strips/center stretch. */
[data-bubble="image"]{background-image:none!important;background-color:transparent!important;border-style:solid!important;border-color:transparent!important;border-width:var(--bubble-border,16px)!important;border-image-source:var(--bubble-art)!important;border-image-slice:var(--bubble-slice,25%) fill!important;border-image-width:1!important;border-image-repeat:stretch!important;border-radius:0!important;padding:4px 7px!important;box-sizing:border-box;overflow-wrap:anywhere}.bubble-preview[data-bubble="image"]{width:max-content;max-width:220px;min-height:44px}
[data-bubble="image"]::before,[data-bubble="image"]::after{display:none!important}.player-chat-bubble[data-bubble="gold"]::before{border-top-color:#ffd371}.player-chat-bubble[data-bubble="gold"]::after{border-top-color:#e6a836}.player-chat-bubble[data-bubble="pink"]::before{border-top-color:#ffbdd9}.player-chat-bubble[data-bubble="pink"]::after{border-top-color:#ed85b2}.player-chat-bubble[data-bubble="blue"]::before{border-top-color:#aedfff}.player-chat-bubble[data-bubble="blue"]::after{border-top-color:#75b5e6}

/* Intrinsic message width must not shrink to the 64px avatar container. */
.player-chat-bubble,.remote-player>.remote-chat-bubble{width:max-content;min-width:100px;max-width:min(340px,calc(100vw - 24px));white-space:normal;word-break:normal;overflow-wrap:anywhere;box-sizing:border-box;line-height:1.45}
.head-decoration{bottom:45px}.halo-decoration{bottom:56px}

/* The artwork keeps its corner proportions; text uses the whole inside area. */
[data-bubble="image"]{position:relative;border:0!important;padding:var(--bubble-text-top,20px) var(--bubble-text-side,14px) var(--bubble-text-bottom,20px)!important;min-width:var(--bubble-min-width,34px)!important;min-height:68px;text-align:center!important;isolation:isolate}
.player-chat-bubble[data-bubble="image"]{position:fixed}
[data-bubble="image"]>.bubble-frame{position:absolute!important;inset:0!important;box-sizing:border-box;pointer-events:none;border:solid transparent;border-width:var(--bubble-border,16px);border-image:var(--bubble-art) var(--bubble-slice,25%) fill / 1 stretch;z-index:-1;background:none!important;transform:none!important;padding:0!important;border-radius:0!important}
[data-bubble="image"]>.bubble-content{display:block;position:relative;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
#player .nickname,.remote-player>.remote-name{z-index:40;background:rgba(19,30,48,.66);color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:7px;padding:3px 8px;white-space:nowrap;text-shadow:0 1px 2px #000}
.remote-player>.remote-chat-bubble{z-index:50}
.coupon-form{margin:12px 0;padding:14px;border:1px solid #d4ddec;border-radius:12px;background:#f6f8fc;color:#17233b}
.coupon-form label{display:block;font-weight:700;margin-bottom:8px}.coupon-form>div{display:flex;gap:8px}.coupon-form input{flex:1;min-width:0;padding:10px;border:1px solid #c6cfdf;border-radius:8px;font-size:16px}.coupon-form button{padding:8px 14px;border-radius:8px;background:#4065db;color:white;border:0}.coupon-form p{font-size:13px;margin:8px 0 0}

/* Mobile world: bottom controls, chat history above, keyboard-aware composer. */
#mobileChatClose{display:none}
@media(pointer:coarse),(max-width:800px){
  :root{--mobile-safe-bottom:env(safe-area-inset-bottom,0px);--mobile-controls-bottom:calc(14px + var(--mobile-safe-bottom));--mobile-controls-height:152px}
  #mobileWorldControls{inset:auto 0 var(--mobile-controls-bottom);padding:0 12px}
  #mobileWorldControls .world-dpad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:4px}
  #mobileWorldControls button{min-width:44px;min-height:44px}
  #mobileWorldControls .world-actions{max-width:132px;gap:8px}
  #mobileWorldControls .world-actions button{height:44px;font-size:13px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #worldChat{display:none;left:12px;right:12px;width:auto;bottom:calc(var(--mobile-controls-bottom) + var(--mobile-controls-height) + 10px)}
  body.mobile-world-active #worldChat{display:block}
  #chatMessages{height:clamp(56px,12dvh,96px);padding:8px 10px;font-size:12px;line-height:1.4;border-radius:12px;overscroll-behavior:contain}
  #worldChat:not(.chatting) #chatInputArea{display:none}
  #worldChat.chatting{bottom:calc(var(--mobile-keyboard-inset,0px) + var(--mobile-safe-bottom) + 8px)}
  #worldChat.chatting #chatMessages{height:clamp(48px,18dvh,120px);max-height:28dvh;border-radius:12px 12px 0 0}
  #worldChat.chatting #chatInputArea{display:flex;align-items:center;min-height:48px}
  #chatInput{min-width:0;width:0;height:46px;font-size:16px;padding:0 10px}
  #chatSendButton{flex:0 0 52px;width:52px;min-height:46px}
  #worldChat.chatting #mobileChatClose{display:block;flex:0 0 48px;min-height:46px;border:0;border-left:1px solid #ffffff25;background:#33445d;color:white;font-size:13px}
  #onlineToolbar{left:auto;right:12px;bottom:calc(var(--mobile-controls-bottom) + 104px)}
  #onlineToolbar button{min-height:44px;max-width:132px;padding:8px 12px;font-size:13px}
  body:not(.mobile-world-active) #onlineToolbar,body.mobile-chatting #onlineToolbar{display:none}
  body.mobile-chatting #mobileWorldControls{display:none!important}
}

/* Fit the mobile minimap frame to the actual 16:9 map, without a fixed-height footer. */
@media(pointer:coarse),(max-width:800px){
  #minimap{height:auto!important;bottom:auto!important;min-height:0;display:block;padding:0;border-width:3px;border-radius:10px}
  #minimapCanvas{width:100%!important;height:auto!important;aspect-ratio:16 / 9;display:block}
  .minimap-title{top:4px;left:4px;padding:2px 5px;font-size:9px}
}

/* Composite fishing motion without laying out the scene on every animation frame. */
#fishingMiniGame .fishing-fish,#fishingMiniGame .fishing-catch-zone,#fishingMiniGame .fishing-progress-fill{will-change:transform;transition:none}

/* Restore the original green joker table and warm wooden alkkagi board. */
#onlineRoot .classic-joker-panel{background:radial-gradient(ellipse at center,#24553d,#153525 75%);max-width:1100px;border-color:#d9c58b55}
.classic-joker-panel #onlinePlayers{display:none}
.classic-joker{min-height:480px;display:flex;flex-direction:column;gap:18px}
.classic-table-label{font-size:10px;letter-spacing:3px;color:#d8d5a7;white-space:nowrap;padding:8px}
#onlineRoot .classic-joker #jokerTarget{font-size:14px;color:#ffe084;margin:8px 0 0}
.classic-joker .opponent-area{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-top:8px}
.classic-joker .opponent{min-width:0;min-height:160px;overflow:hidden}
.classic-joker .opponent-cards{padding:14px 8px 6px;overflow-x:auto;justify-content:center}
#onlineRoot .classic-joker .back-card{flex:0 0 42px;width:42px;min-width:0;height:64px;min-height:64px;padding:0;margin-left:-18px;border:2px solid #fff;border-radius:7px;background:repeating-linear-gradient(45deg,#273c75,#273c75 5px,#192a56 5px,#192a56 10px);color:#f9dc8e;box-shadow:0 3px 6px #0004}
#onlineRoot .classic-joker .back-card:first-child{margin-left:0}
#onlineRoot .classic-joker .back-card:disabled{opacity:1;cursor:default}
#onlineRoot .classic-joker .back-card:not(:disabled):hover,#onlineRoot .classic-joker .back-card:not(:disabled):focus-visible{transform:translateY(-10px);outline:2px solid #ffdb70;outline-offset:2px}
.classic-joker-message{flex:1;display:grid;place-items:center;min-height:55px;color:#fff3c0;text-align:center;font-weight:700;font-size:14px}
.classic-joker .my-joker-area{margin-top:auto}
#classicMyCount{color:#ffe075}
#myOnlineHand{display:flex;align-items:flex-end;justify-content:center;min-height:125px;overflow-x:auto;padding:12px 6px}
#myOnlineHand .my-card{flex:0 0 72px;flex-direction:column;min-width:0;font-size:30px}
#myOnlineHand .my-card small{position:absolute;left:6px;top:5px;font-size:12px;font-style:normal}
#myOnlineHand .my-card em{position:absolute;right:6px;bottom:5px;transform:rotate(180deg);font-size:12px;font-style:normal}
#myOnlineHand .red-suit{color:#ce3544}
.classic-cleared{color:#ffe7a0!important;font-weight:bold}
#onlineRoot .classic-alkkagi-panel{background:linear-gradient(145deg,#243d39,#142722);border-color:#d7b57b55}
.classic-board-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0;color:#f9e9c8}
.classic-board-heading small{letter-spacing:3px;color:#c5b58c;font-size:10px}.classic-board-heading h2{margin:5px 0!important}.classic-board-heading>span{text-align:right;color:#ffe49a;font-size:14px}
.classic-board-help{font-size:12px;text-align:center;margin:10px 0!important}
.classic-alkkagi #onlineCanvas{border-radius:16px;box-shadow:0 12px 30px #0006,0 0 0 4px #6b4324}
.classic-power{max-width:650px;margin:18px auto 0;display:flex;align-items:center;gap:12px;font-size:12px;color:#f5e4c3}.classic-power>div{height:10px;background:#ffffff17;border-radius:12px;flex:1;overflow:hidden}.classic-power i{display:block;height:100%;width:0;background:linear-gradient(90deg,#9edc91,#ffdd78,#ef795e);border-radius:12px}.classic-power strong{min-width:36px;text-align:right}
@media(max-width:650px){.classic-joker{min-height:65dvh;gap:12px}.classic-table-label{display:none}.classic-joker .opponent-area{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.classic-joker .opponent{padding:10px 6px;min-height:140px}.classic-joker .opponent-name{font-size:14px}.classic-joker .opponent-status{font-size:10px}#onlineRoot .classic-joker .back-card{flex-basis:34px;width:34px;height:54px;min-height:54px;margin-left:-20px}#myOnlineHand{justify-content:flex-start;min-height:100px;padding:12px 2px}#myOnlineHand .my-card{flex-basis:54px;width:54px;height:82px;font-size:25px;margin-left:-12px}.classic-joker .my-joker-area{padding:12px 8px}.classic-joker-message{font-size:12px;min-height:40px}.classic-board-heading{align-items:flex-start}.classic-board-heading>span{font-size:12px;max-width:52%}}

.classic-joker .opponent-area{grid-template-columns:repeat(3,minmax(0,1fr))}
.classic-joker .opponent:only-child{grid-column:1/-1}
.classic-joker .opponent-cards{display:grid;grid-template-columns:repeat(var(--card-count),minmax(0,1fr));justify-content:initial;padding-right:40px;overflow:visible}
#onlineRoot .classic-joker .opponent-cards .back-card{margin-left:0}
@media(max-width:650px){.classic-joker .opponent-area{grid-template-columns:repeat(2,minmax(0,1fr))}.classic-joker .opponent.my-target{grid-column:1/-1}.classic-joker .opponent-cards{padding-right:32px}}
/* Logs stay scrollable even when the composer is closed. */
#chatMessages{pointer-events:auto;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;overflow-y:auto}
#fishingPlayerSprite{display:none!important}
/* World tabs and unobtrusive gameplay chat. */
#worldAccountPanel{position:fixed;top:max(12px,env(safe-area-inset-top));left:12px;z-index:1000;width:270px;max-width:calc(100vw - 24px);color:#f5f0e5;background:#192639ed;border:1px solid #ffffff30;border-radius:14px;box-shadow:0 6px 24px #0005;font:14px Arial,sans-serif;overflow:hidden}
#worldAccountPanel[hidden],#worldAccountPanel [hidden],#recentGameChat[hidden]{display:none!important}
#worldAccountPanel nav{display:flex}#worldAccountPanel button{background:#30435e;color:#fff;border:0;border-radius:8px;padding:10px;cursor:pointer}#worldAccountPanel nav button{flex:1;border-radius:0;font-weight:bold}#worldAccountPanel nav button[aria-expanded=true]{background:#e9c781;color:#302819}
#worldPresence{max-height:220px;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;padding:8px 12px}.presence-person{display:flex;align-items:center;gap:9px;min-height:36px}.presence-person img{width:25px;height:30px;object-fit:contain}.presence-person span{flex:1;overflow-wrap:anywhere}.presence-person i{width:7px;height:7px;border-radius:50%;background:#75dea0}.presence-person small{color:#e9c781}
#worldMyInfo{padding:12px}#worldAccountPanel #hud{position:static;min-width:0;padding:0;margin:0;background:none;box-shadow:none;font-size:14px}#worldAccountPanel #accountBar{position:static!important;display:flex;flex-wrap:wrap;gap:7px;padding:8px 0 0;background:none;box-shadow:none;border:0;max-width:100%;font-size:12px}#worldAccountPanel #accountBar span{flex-basis:100%;overflow-wrap:anywhere}#worldMyInfo>small{display:block;margin-top:12px;color:#b8c8dc}
#recentGameChat{position:fixed;right:12px;top:max(12px,env(safe-area-inset-top));z-index:20010;width:260px;max-width:40vw;background:#132033d9;color:#fff;padding:10px 12px;border:1px solid #ffffff26;border-radius:12px;pointer-events:none;font:12px/1.45 Arial,sans-serif}#recentGameChat>strong{font-size:10px;color:#e9c781}#recentGameChat p{margin:5px 0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#recentGameChat b{color:#ffe1a0}.match-reward,.reward-guide{color:#ffe1a0!important}
@media(max-width:600px){#worldAccountPanel{width:220px;top:max(8px,env(safe-area-inset-top));left:8px;font-size:12px}#worldPresence{max-height:150px}#worldAccountPanel nav button{padding:9px 7px}#recentGameChat{top:max(62px,env(safe-area-inset-top));right:8px;width:190px;max-width:48vw;padding:7px 9px;font-size:11px}}
#worldAccountPanel .presence-person{width:100%;border-radius:6px;background:transparent;padding:3px 0;text-align:left;font-size:inherit}#worldAccountPanel .presence-person:hover{background:#ffffff12}.presence-person i[data-status=offline]{background:#89929e}.presence-person i[data-status=gaming]{background:#ff626b}.presence-person i[data-status=fishing]{background:#62a6ff}.remote-player>.remote-name{pointer-events:auto;cursor:pointer}
#socialDialog{position:fixed;inset:0;z-index:21000;background:#101a2bdd;display:flex;align-items:center;justify-content:center;padding:18px;color:#edf1fb;font:14px/1.5 Arial,sans-serif}#socialDialog[hidden],#socialDialog [hidden]{display:none!important}.social-card{width:540px;max-width:100%;max-height:90dvh;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;background:#1b2840;border:1px solid #ffffff26;border-radius:20px;padding:22px;box-sizing:border-box}.social-card header{display:flex;justify-content:space-between;align-items:center;gap:12px}.social-card h2{font-size:20px;margin:0 0 12px}.social-card button{background:#354e70;color:#fff;border:1px solid #ffffff2b;border-radius:9px;padding:9px 12px;cursor:pointer}.social-card button:disabled{opacity:.5}.social-card label{display:grid;gap:7px;margin:12px 0}.social-card input,.social-card select,.social-card textarea{box-sizing:border-box;width:100%;max-width:100%;background:#111d30;border:1px solid #536681;color:#fff;border-radius:8px;padding:10px;font:16px Arial,sans-serif}.social-card textarea{resize:vertical}.social-actions{display:grid;gap:12px}.social-status{color:#ffd073;overflow-wrap:anywhere}.mail-list{display:grid;gap:12px}.mail-row{border:1px solid #ffffff28;background:#111e33;border-radius:12px;padding:12px}.mail-row.read{filter:saturate(.35);background:#172235}.mail-row.read .mail-open{opacity:.6}.social-card .mail-open{display:grid;gap:7px;width:100%;text-align:left;border:0;padding:0;background:none;overflow-wrap:anywhere;white-space:pre-wrap}.mail-open time,.mail-open small,.mail-hint{font-size:11px;color:#b4c2d8}.mail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.mail-actions small{align-self:center;color:#a8c6b4}
@media(max-width:600px){.social-card{padding:16px;max-height:85dvh}.social-card h2{font-size:18px}}
/* Suppress iOS selection/callout outside text fields; scrolling remains enabled. */
@media(pointer:coarse){#game,#world,#world *,#mobileWorldControls,#mobileWorldControls *,#worldAccountPanel,#worldAccountPanel *,#onlineToolbar,#onlineToolbar *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}#worldChat,#worldChat *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}body input,body textarea,body [contenteditable=true]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}#world img{-webkit-user-drag:none}}
.pc-chat-close-hint{font-size:11px;color:#d6dfed;white-space:nowrap;align-self:center}@media(pointer:coarse){.pc-chat-close-hint{display:none}}
.muk-game{text-align:center;max-width:650px;margin:20px auto;padding:22px;background:radial-gradient(at top,#394d70,#15233b);border:1px solid #ffffff25;border-radius:22px}.muk-score{display:flex;justify-content:space-around;gap:12px}.muk-score span{display:grid;gap:8px}.muk-score b{font-size:24px;color:#ffd073}.muk-hands{display:flex;justify-content:center;gap:14px;margin:25px 0}.muk-hands button{display:grid;gap:8px;justify-items:center;min-width:90px}.muk-hands button span{font-size:48px}.muk-reveal{padding:12px;border-radius:10px;background:#ffffff12;color:#f7dfb2;font-size:14px}@media(max-width:600px){.muk-game{padding:16px 10px}.muk-hands{gap:8px}.muk-hands button{min-width:70px;padding:12px 7px!important}.muk-hands button span{font-size:36px}}
.forge-panel{max-width:900px!important}.forge-tabs,.forge-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.forge-tabs button.selected{background:#d5a85e!important;color:#261805!important}.forge-work{display:flex;gap:20px;align-items:center;justify-content:center;background:#231d26;border-radius:18px;padding:18px;text-align:center}.forge-person{width:min(30%,190px);height:220px;object-fit:contain}.forge-sword{flex:1}.forge-sword img{width:150px;height:160px;object-fit:contain}.forge-protect{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.forge-protect label{font-size:14px}.forge-status{font-weight:bold;color:#ffdc91!important}.collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}.collection-grid article{background:#101c30;border-radius:12px;padding:10px;display:grid;gap:7px;text-align:center;justify-items:center;overflow-wrap:anywhere}.collection-grid img{width:100px;height:100px;object-fit:contain}.collection-grid small{color:#b8c8dc}.collection-locked{filter:grayscale(1);opacity:.6}.collection-locked span{font-size:60px}.caught-fish-image{width:110px;height:100px;object-fit:contain}@media(max-width:600px){.forge-work{padding:10px;gap:4px}.forge-person{height:150px}.forge-sword img{width:100px;height:110px}.collection-grid{grid-template-columns:repeat(2,1fr)}}

.attendance-panel{max-width:760px!important}.attendance-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:24px 0}.attendance-day{background:#111e33;border:1px solid #ffffff20;border-radius:12px;padding:12px 4px;display:grid;justify-items:center;text-align:center;gap:8px}.attendance-day span{font-size:27px}.attendance-day small{font-size:11px;color:#ffe1a5}.attendance-day.done{background:#365b4d;border-color:#8cddb2}@media(max-width:600px){.attendance-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.attendance-day{padding:10px 3px}#onlineToolbar{gap:4px}#onlineToolbar button{min-height:40px;padding:6px 7px;font-size:11px;max-width:none}}
/* Character titles sit above the name and remain readable over the map. */
#player>.player-title,.remote-player>.player-title{position:absolute;left:50%;top:-49px;bottom:auto;transform:translateX(-50%);z-index:45;white-space:nowrap;padding:3px 9px;border:1px solid color-mix(in srgb,var(--title-color),transparent 35%);border-radius:10px;background:rgba(18,27,42,.86);color:var(--title-color);font:bold 11px/1.3 Arial,sans-serif;text-shadow:0 1px 2px #000,0 0 6px var(--title-color);pointer-events:none}.player-title.title-shine{animation:titleGlow 1.5s ease-in-out infinite alternate}.player-title.title-shine:before,.player-title.title-shine:after{content:'✦';margin:0 4px;font-size:9px}.remote-player:has(.player-title)>.remote-chat-bubble{bottom:145px}@keyframes titleGlow{from{filter:brightness(.95);box-shadow:0 0 4px var(--title-color)}to{filter:brightness(1.3);box-shadow:0 0 12px var(--title-color)}}@media(prefers-reduced-motion:reduce){.player-title.title-shine{animation:none}}
.title-collection{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}.title-collection .title-card{display:grid;gap:8px;justify-items:center;min-height:80px;border:1px solid #ffffff33}.title-card strong{color:var(--title-color,#dbe3f1);text-shadow:0 0 5px var(--title-color,transparent)}.title-card small{font-size:11px;color:#b4c2d8}.title-card.equipped{outline:2px solid #ffe29a}.title-card.title-locked{filter:grayscale(1);background:#253142!important}.title-hint{padding:12px;background:#101c30;border-radius:10px;min-height:24px}@media(max-width:600px){.title-collection{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}}
/* Keep nearby players' balloons readable without distorting their 9-slice art. */
.player-chat-bubble{transform:translate(-50%,calc(-100% - var(--bubble-offset,0px)))}
.remote-player>.remote-chat-bubble{transform:translate(-50%,calc(0px - var(--bubble-offset,0px)))}
/* Two selected cards stay gold; previously matched pairs are clearly green. */
.memory-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin:10px 0 14px;color:#e4ebf5;font-size:13px}.memory-legend span{display:flex;align-items:center;gap:6px}.memory-legend i{width:16px;height:16px;border-radius:4px;border:3px solid}.memory-legend-selected{border-color:#ffce42!important}.memory-legend-matched{border-color:#37d69a!important}
#onlineRoot .memory-grid button{border:3px solid transparent!important;position:relative;opacity:1!important}
#onlineRoot .memory-grid button.flipped{border-color:#ffce42!important;background:#fff6d7!important;box-shadow:0 0 0 2px #7b4d00,0 0 14px #ffcf6cbb!important;z-index:2}
#onlineRoot .memory-grid button.matched{border-color:#37d69a!important;background:#d6f8e8!important;box-shadow:0 0 0 1px #126f4c!important;z-index:1}
#onlineRoot .memory-grid button img{border-radius:5px}
.farm-panel{width:min(960px,96vw);max-height:90dvh;overflow:auto;background:linear-gradient(150deg,#f5ffe8,#d8f1d2);color:#254731}
.farm-panel header{display:flex;justify-content:space-between;align-items:center}
.farm-panel p{font-size:.9rem}
.farm-tools{display:flex;flex-wrap:wrap;gap:6px}
.farm-tools button,.farm-panel [data-farm-expand]{border:1px solid #80ac78;border-radius:10px;background:#fff;padding:9px;color:#254731}
.farm-tools button.selected{background:#3d8a58;color:white;box-shadow:0 0 0 3px #aee2a3}
.farm-blocks{display:flex;gap:16px;overflow:auto;padding:12px 2px}
.farm-block{flex:0 0 min(300px,80vw);background:#b9d99d;padding:10px;border-radius:16px}
.farm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:8px}
.farm-tile{position:relative;min-height:82px;border:2px solid #966c49;border-radius:10px;background:#ad7953;color:white;font-size:30px;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden}
.farm-tile.wet{background:#815943}.farm-tile.ready{border-color:#ffe064;box-shadow:inset 0 0 0 2px #ffe064}
.farm-tile small{font-size:11px;background:#403020aa;padding:2px 5px;border-radius:6px;z-index:2}
.farm-plant{height:46px;display:flex;justify-content:center;align-items:center;animation:farm-sway 2.8s ease-in-out infinite;transform-origin:bottom center}
.farm-plant img{width:44px;height:44px;object-fit:contain}.farm-plant.stage-7 img{width:35px;height:35px}
.farm-crow{position:absolute;width:54px;height:54px;object-fit:contain;top:0;right:0;z-index:3;animation:farm-sway 1s ease-in-out infinite}
@keyframes farm-sway{0%,100%{rotate:-3deg}50%{rotate:3deg}}
@media(max-width:600px){.farm-panel{max-height:85dvh}.farm-tools button{font-size:12px;padding:7px}.farm-tile{min-height:72px}}
.farm-plant.stage-1{scale:.45}.farm-plant.stage-2{scale:.6}.farm-plant.stage-3{scale:.75}.farm-plant.stage-4{scale:.6}.farm-plant.stage-5{scale:.75}.farm-plant.stage-6{scale:.9}.farm-plant.stage-7{scale:.85}.farm-plant.stage-8{scale:1}
#onlineRoot .ranking-center{min-width:0;overflow-x:hidden}
.ranking-center .ranking-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
/* Keep long ranking pages scrollable inside the viewport. */
#onlineRoot .ranking-center{
  max-height:calc(100dvh - 56px);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior-y:contain;
  touch-action:pan-y;
  -webkit-overflow-scrolling:touch;
}
@media(max-width:800px){
  #onlineRoot .ranking-center{max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
}
.mole-mode-buttons{display:flex;justify-content:center;gap:12px;margin:18px 0}
#onlineRoot .mole-mode-buttons .selected{background:#ffd073;color:#332813;border-color:#ffd073}
.mole-game{max-width:560px;margin:0 auto;padding:16px;border-radius:22px;background:linear-gradient(#2c6849,#194430);border:2px solid #80aa6e}
.mole-heading{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:14px;color:#ffdf8b}
.mole-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:10px 0}
#onlineRoot .mole-hole{height:115px;position:relative;overflow:hidden;border:0;border-bottom:7px solid #6d452b;border-radius:50%;background:radial-gradient(ellipse at center,#16140f 45%,#604631 48%,#976b41 67%,#346641 69%);padding:0;touch-action:manipulation;user-select:none;-webkit-user-select:none;opacity:1;isolation:isolate}
#onlineRoot .mole-hole:hover{background-color:transparent}
.mole-target{position:absolute;inset:12px 0 0;display:flex;align-items:center;justify-content:center;font-size:54px;pointer-events:none}
.mole-body{display:block;width:70px;height:86px;position:relative;border-radius:45% 45% 35% 35%;background:linear-gradient(110deg,#c48c61,#8d573b);box-shadow:inset -7px 0 0 #75412f}
.mole-body:before,.mole-body:after{content:'';position:absolute;top:5px;width:19px;height:20px;border-radius:50%;background:#a26445;z-index:-1}
.mole-body:before{left:-8px}.mole-body:after{right:-8px}
.mole-eye{position:absolute;top:28px;width:9px;height:11px;border-radius:50%;background:#201810;border-top:3px solid #fff}
.mole-eye.left{left:15px}.mole-eye.right{right:15px}
.mole-nose{position:absolute;left:24px;top:45px;width:24px;height:17px;border-radius:50%;background:#efbfa0;border-bottom:4px solid #6e3b2b}
.mole-ground{position:absolute;bottom:-7px;left:0;right:0;height:21px;border-radius:50%;background:#9c6c40;box-shadow:0 -3px 0 #c89b5b}
.has-mole .mole-target,.has-bomb .mole-target{animation:molePop .13s ease-out}
@keyframes molePop{from{translate:0 40px;opacity:.3}to{translate:0 0;opacity:1}}
@media(max-width:600px){.mole-game{padding:10px}.mole-grid{gap:7px}#onlineRoot .mole-hole{height:90px}.mole-body{scale:.8;transform-origin:bottom}.mole-heading{font-size:12px}}
@media(prefers-reduced-motion:reduce){.has-mole .mole-target,.has-bomb .mole-target{animation:none}}
.player-title.title-bold{font-weight:900!important;-webkit-text-stroke:.2px currentColor}
.player-title.title-crown:before{content:'👑';display:inline-block;margin-right:5px;font-size:12px;filter:drop-shadow(0 0 3px #ffce68);vertical-align:baseline}
.title-card.title-crown>strong:before{content:'👑 ';filter:drop-shadow(0 0 3px #ffce68)}
.title-card.title-bold>strong{font-weight:900;-webkit-text-stroke:.2px currentColor}
.forge-npc{position:relative;width:min(30%,190px);flex-shrink:0}
#onlineRoot .forge-person-button{display:block;width:100%;padding:0;border:0;border-radius:12px;background:transparent;touch-action:manipulation}
#onlineRoot .forge-person-button:hover:not(:disabled){background:#ffffff0a}
#onlineRoot .forge-person-button:active{transform:translateY(2px)}
#onlineRoot .forge-person-button:focus-visible{outline:2px solid #ffd073;outline-offset:3px}
.forge-npc .forge-person{display:block;width:100%;height:220px}
.blacksmith-bubble{position:absolute;bottom:77%;left:50%;transform:translateX(-50%);z-index:5;width:max-content;max-width:210px;padding:10px 13px;border:2px solid #755238;border-radius:15px;background:#fff5dc;color:#38281c;font:bold 13px/1.4 Arial,sans-serif;box-shadow:0 4px 12px #0003;pointer-events:none}
.blacksmith-bubble[hidden]{display:none!important}
.blacksmith-bubble:after{content:'';position:absolute;top:100%;left:50%;margin-left:-7px;border:7px solid transparent;border-top-color:#755238}
@media(max-width:600px){.forge-npc .forge-person{height:150px}.blacksmith-bubble{max-width:180px;font-size:12px;padding:8px 10px}}
.player-title .title-particles{position:absolute;inset:-10px -6px;pointer-events:none;overflow:visible}
.player-title .title-particle{position:absolute;left:calc(var(--i)*15%);font-size:10px;line-height:1;opacity:0;text-shadow:none;will-change:transform,opacity}
.title-effect-snow .title-particle{top:-8px;color:#effaff;text-shadow:0 0 3px #a6dfff;animation:titleSnow 2.7s linear infinite;animation-delay:calc(var(--i)*-.39s)}
.title-effect-hearts .title-particle{bottom:-4px;color:#ff83ad;animation:titleHearts 2.8s ease-out infinite;animation-delay:calc(var(--i)*-.4s)}
.title-effect-fire .title-particle{bottom:-5px;font-size:11px;animation:titleFire 1.8s ease-out infinite;animation-delay:calc(var(--i)*-.25s)}
.player-title.title-effect-rainbow,.title-card.title-preview-rainbow>strong{animation:titleRainbow 5s linear infinite}
.player-title.title-effect-rainbow{border-color:currentColor;text-shadow:0 1px 2px #000,0 0 7px currentColor}
.title-card.title-preview-snow>strong:before{content:'❄ '}.title-card.title-preview-hearts>strong:before{content:'♥ ';color:#ff83ad}.title-card.title-preview-fire>strong:before{content:'🔥 '}
@keyframes titleSnow{0%{transform:translate(10px,-8px) rotate(0deg);opacity:0}15%{opacity:.95}85%{opacity:.8}100%{transform:translate(-12px,30px) rotate(100deg);opacity:0}}
@keyframes titleHearts{0%{transform:translateY(3px) scale(.65);opacity:0}20%{opacity:.9}100%{transform:translateY(-35px) scale(1.15);opacity:0}}
@keyframes titleFire{0%{transform:translateY(5px) scale(.7);opacity:0}20%{opacity:.95}100%{transform:translate(5px,-29px) scale(.4);opacity:0}}
@keyframes titleRainbow{0%,100%{color:#ff99b5}16%{color:#ffbd80}33%{color:#fff08a}50%{color:#94e5b0}66%{color:#93d8ff}83%{color:#d1b0ff}}
@media(prefers-reduced-motion:reduce){.player-title.title-effect-rainbow,.title-card.title-preview-rainbow>strong{animation:none}.player-title .title-particle{animation:none;opacity:.6}}
.title-effect-flies .title-fly{left:calc(var(--i)*43%);top:8px;width:5px;height:8px;opacity:.95;border-radius:50%;background:#282119;box-shadow:0 -3px 0 -1px #17130f;filter:drop-shadow(0 0 1px #fff8);animation:titleFlies 2.8s linear infinite;animation-delay:calc(var(--i)*-.85s)}
.title-effect-flies .title-fly:before,.title-effect-flies .title-fly:after{content:'';position:absolute;top:0;width:6px;height:4px;border-radius:60%;background:#dce9eecc}
.title-effect-flies .title-fly:before{left:-5px;rotate:-28deg}.title-effect-flies .title-fly:after{right:-5px;rotate:28deg}
.title-effect-flies .title-smoke{left:calc((var(--i) - 3)*29%);bottom:-7px;width:17px;height:14px;border-radius:50%;background:radial-gradient(ellipse,#8f633b99 5%,#6d472b55 45%,transparent 72%);filter:blur(1px);animation:titleBrownSmoke 3s ease-out infinite;animation-delay:calc((var(--i) - 3)*-.75s)}
.title-card.title-preview-flies>strong:before{content:'🪰 '}
@keyframes titleFlies{0%,100%{transform:translate(0,-7px) rotate(-20deg)}16%{transform:translate(9px,1px) rotate(30deg)}34%{transform:translate(-5px,12px) rotate(-45deg)}51%{transform:translate(7px,-3px) rotate(25deg)}73%{transform:translate(-9px,-13px) rotate(-10deg)}89%{transform:translate(4px,5px) rotate(40deg)}}
@keyframes titleBrownSmoke{0%{transform:translateY(2px) scale(.5);opacity:0}20%{opacity:.6}70%{opacity:.3}100%{transform:translate(8px,-30px) scale(1.7);opacity:0}}
@media(prefers-reduced-motion:reduce){.title-effect-flies .title-particle{animation:none}.title-effect-flies .title-fly{opacity:.8}.title-effect-flies .title-smoke{opacity:.3}}
.player-title .title-emphasis,.title-card .title-emphasis{font-weight:900;font-size:1.22em;line-height:1;vertical-align:baseline;-webkit-text-stroke:.2px currentColor}
.player-title.title-palm:before,.title-card.title-palm>strong:before{content:'🖐️';display:inline-block;margin-right:5px;font-size:1.1em;vertical-align:baseline}
#player.evolution-flash{animation:evolutionFlash .9s ease-out}
@keyframes evolutionFlash{0%,100%{filter:none}35%{filter:brightness(2.3) drop-shadow(0 0 18px #ffe89a)}65%{filter:brightness(1.5) drop-shadow(0 0 10px #ffcf75)}}
@media(prefers-reduced-motion:reduce){#player.evolution-flash{animation:none}}
#player.evolution-flash,.remote-player.evolution-flash{animation:evolutionFlash 1.1s ease-out}
#player.evolution-flash:before,.remote-player.evolution-flash:before{content:'';position:absolute;left:50%;top:40%;width:130px;height:130px;border-radius:50%;background:radial-gradient(circle,#fff 0%,#fffdecd9 22%,#ffe9a166 45%,transparent 70%);pointer-events:none;z-index:60;opacity:0;animation:evolutionBurst 1.1s ease-out}
#player.evolution-flash:after,.remote-player.evolution-flash:after{content:'';position:absolute;left:50%;top:40%;width:100px;height:100px;border:3px solid #ffe08a;border-radius:50%;box-shadow:0 0 14px #fff4be,inset 0 0 12px #fff1b5;pointer-events:none;z-index:59;opacity:0;animation:evolutionRing 1.1s ease-out}
@keyframes evolutionBurst{0%{transform:translate(-50%,-50%) scale(.25);opacity:0}22%{transform:translate(-50%,-50%) scale(.9);opacity:1}50%{transform:translate(-50%,-50%) scale(1.2);opacity:.8}100%{transform:translate(-50%,-50%) scale(1.5);opacity:0}}
@keyframes evolutionRing{0%{transform:translate(-50%,-50%) scale(.2);opacity:0}25%{opacity:1}100%{transform:translate(-50%,-50%) scale(1.8);opacity:0}}
@media(prefers-reduced-motion:reduce){#player.evolution-flash,.remote-player.evolution-flash,#player.evolution-flash:before,.remote-player.evolution-flash:before,#player.evolution-flash:after,.remote-player.evolution-flash:after{animation:none}}
#onlineRoot .solsol-panel{max-width:940px;max-height:calc(100dvh - 56px);overflow-y:auto;overflow-x:hidden;touch-action:pan-y;background:linear-gradient(140deg,#203c45,#162331)}
.solsol-panel>header{position:sticky;top:-1px;background:#20343f;z-index:8;padding:7px 0}
.solsol-intro{text-align:center}.solsol-intro small{color:#a9bec6}
.solsol-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:22px;align-items:start}
.solsol-owner{position:relative;text-align:center;padding-top:15px}
#onlineRoot .solsol-owner button{display:block;margin:auto;background:transparent;border:0;padding:0}
.solsol-owner img{width:190px;height:290px;max-width:100%;object-fit:contain}
.solsol-owner strong{display:block;color:#f1d68e;margin-top:8px}
.solsol-speech{position:absolute;top:10px;left:50%;transform:translateX(-50%);z-index:3;width:max-content;max-width:200px;border:2px solid #8c6941;border-radius:14px;padding:9px 12px;background:#fff5dc;color:#402c22;font:bold 13px/1.4 Arial,sans-serif;box-shadow:0 4px 15px #0004;pointer-events:none}
.solsol-speech[hidden]{display:none!important}.solsol-speech:after{content:'';position:absolute;top:100%;left:50%;border:7px solid transparent;border-top-color:#8c6941;margin-left:-7px}
.solsol-play{min-width:0}.solsol-machine{--reach:150px;--draw-time:4800ms;border:8px solid #f1d59c;border-radius:22px;background:#f4e7cc;box-shadow:0 9px 0 #a07f53,0 14px 25px #0005;overflow:hidden}
.solsol-sign{padding:13px 8px;text-align:center;font:bold 17px/1.2 Arial,sans-serif;letter-spacing:2px;color:#3e5862;background:#fff3d7;border-bottom:5px solid #dfbf84}
.solsol-glass{position:relative;height:280px;background:linear-gradient(125deg,#d6f7fa55,#6dafc455 45%,#dff9ff33);overflow:hidden;border:4px solid #5f8394;margin:10px;border-radius:12px;box-shadow:inset 0 0 30px #174d6255}
.solsol-glass:before{content:'';position:absolute;inset:0;background:linear-gradient(115deg,transparent 20%,#ffffff33 21%,transparent 35%,transparent 65%,#ffffff22 66%,transparent 75%);pointer-events:none;z-index:4}
.solsol-rail{position:absolute;left:6%;right:6%;top:21px;height:8px;border-radius:5px;background:linear-gradient(#fff,#a1b3bc,#e6f2f7);box-shadow:0 2px 3px #0004}
.solsol-carriage{position:absolute;top:12px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;width:36px;z-index:3}
.solsol-cart{height:23px;width:36px;border:2px solid #6e8590;background:#d9e9eb;border-radius:7px;text-align:center;line-height:17px;color:#e5af4d;font-size:17px}
.solsol-cable{width:3px;height:30px;background:linear-gradient(90deg,#526d7c,#f0fbff,#738d9a)}
.solsol-claw{position:relative;width:34px;height:27px}
.solsol-claw i{position:absolute;top:0;width:17px;height:26px;border:3px solid #e5f2f5;border-top:0;border-radius:0 0 12px 12px;transform-origin:top center;filter:drop-shadow(0 1px 1px #365365)}
.solsol-claw i:first-child{left:0;--jaw-open:28deg;transform:rotate(28deg)}.solsol-claw i:nth-child(2){right:0;--jaw-open:-28deg;transform:rotate(-28deg)}
.solsol-held-ball,.solsol-prize-ball{width:27px;height:27px;border:2px solid #fff9;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff,#d6b8f2 30%,#aa82d5 80%);box-shadow:0 2px 5px #0003}
.solsol-held-ball{position:absolute;bottom:-18px;left:4px;opacity:0}
.solsol-capsules{position:absolute;bottom:14px;left:4%;right:4%;height:38%;display:block;pointer-events:none;z-index:1}
.solsol-capsule{position:absolute;display:block;width:clamp(18px,var(--size),44px);height:auto;aspect-ratio:1;border-radius:50%;border:2px solid #ffffffa6;background:radial-gradient(circle at 30% 25%,#fffd,transparent 43%),var(--ball);box-shadow:inset -3px -4px 5px #23445b25,0 3px 5px #183c4b66;transform:translateX(-50%) rotate(var(--tilt))}
.solsol-capsule:after{content:'';position:absolute;left:-1px;right:-1px;top:48%;height:2px;background:#ffffff77;box-shadow:0 1px 1px #29435733}

.solsol-chute{position:absolute;right:5%;bottom:8px;width:58px;height:44px;border:5px solid #d7bb88;background:#243d4c;border-radius:10px;z-index:4;display:flex;justify-content:center;align-items:center}
.solsol-prize-ball{display:none}.has-result .solsol-prize-ball{display:block}
.solsol-controls{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:7px;padding:10px}
#onlineRoot .solsol-controls button{min-width:0;min-height:48px;padding:8px 5px;font-size:13px;touch-action:none}
.solsol-result{min-height:60px;margin:14px 0;padding:15px;border-radius:12px;background:#0d1d2c;color:#ffe29e;text-align:center;line-height:1.5;overflow-wrap:anywhere}

.is-drawing .solsol-carriage{animation:solsolDelivery var(--draw-time) ease-in-out both}
.is-drawing .solsol-cable{animation:solsolCable var(--draw-time) ease-in-out both}
.is-drawing .solsol-claw i{animation:solsolJaw var(--draw-time) ease-in-out both}
.is-drawing .solsol-held-ball{animation:solsolCarry var(--draw-time) linear both}
@keyframes solsolDelivery{0%,68%{left:var(--drop-x)}85%,100%{left:85%}}
@keyframes solsolCable{0%,8%{height:30px}28%,48%{height:var(--reach)}70%,100%{height:30px}}
@keyframes solsolJaw{0%,28%,100%{transform:rotate(var(--jaw-open))}40%,88%{transform:rotate(0deg)}}
@keyframes solsolCarry{0%,34%{opacity:0;transform:translateY(0)}40%,87%{opacity:1;transform:translateY(0)}98%{opacity:1;transform:translateY(125px)}100%{opacity:0;transform:translateY(125px)}}
.player-title.title-clover:before,.title-card.title-clover>strong:before{content:'🍀';display:inline-block;margin-right:5px;font-size:1.1em;vertical-align:baseline}
@media(max-width:650px){#onlineRoot .solsol-panel{max-height:calc(100dvh - 20px)}.solsol-layout{grid-template-columns:minmax(0,1fr);gap:12px}.solsol-owner{padding-top:0}.solsol-owner img{height:150px;width:110px}.solsol-owner strong{font-size:12px;margin-top:0}.solsol-speech{top:3px}.solsol-machine{--reach:130px}.solsol-glass{height:255px}.solsol-sign{font-size:14px}}
@media(prefers-reduced-motion:reduce){.is-drawing .solsol-carriage,.is-drawing .solsol-cable,.is-drawing .solsol-claw i,.is-drawing .solsol-held-ball{animation:none}}
/* Pantry, shared kitchens, and an analog mobile movement control. */
.pantry-section{grid-column:1/-1;width:100%;min-width:0;border-bottom:1px solid #ffffff30;padding-bottom:20px;margin-bottom:12px}.pantry-tabs{display:flex;flex-wrap:wrap;gap:6px}.pantry-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.pantry-card{background:#ffffff0a;padding:12px;border:1px solid #ffffff20;border-radius:12px;display:flex;flex-direction:column;gap:7px}.pantry-card input,[data-food-shop] input{width:80px;min-height:36px;color:inherit;background:#ffffff12;border:1px solid #ffffff50;border-radius:6px;padding:6px}.pantry-card button{margin:3px;min-height:38px}.food-picture{display:grid;place-items:center;width:90px;height:90px;max-width:100%;margin:auto}.food-picture img{grid-area:1/1;width:100%;height:100%;object-fit:contain}.food-picture>span{grid-area:1/1;display:none;font-size:36px}.food-picture img.missing{display:none}.food-picture img.missing+span{display:block}.pantry-tabs .selected{outline:2px solid #e4c76c}
#onlineRoot .kitchen-panel{width:min(980px,96vw);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}.kitchen-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.kitchen-card{display:flex;flex-direction:column;gap:8px;text-align:left;border:1px solid #718b8155!important;min-height:170px;background:linear-gradient(145deg,#263c36,#172723)!important}.kitchen-card.premium{border-color:#c9aa57!important;background:linear-gradient(145deg,#4b3c27,#29221a)!important}.kitchen-card.selected{outline:2px solid #f8df8c}.kitchen-card.occupied{border-color:#a2b7b0!important}.kitchen-icon{font-size:32px}.kitchen-prep{margin-top:18px;padding-top:12px;border-top:1px solid #ffffff30}.ingredient-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.ingredient-slots button{min-height:55px;overflow-wrap:anywhere}.ingredient-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;max-height:260px;overflow:auto;overscroll-behavior:contain;margin-bottom:14px}.ingredient-list button{display:flex;flex-direction:column;align-items:center;font-size:12px}.ingredient-list .food-picture{width:56px;height:56px}.kitchen-prep>button{margin:4px;min-height:44px}
/* Bubble occupies its own row above the portrait, including on narrow screens. */
.solsol-owner{display:flex;flex-direction:column;align-items:center;padding-top:0;gap:8px}.solsol-speech{position:relative!important;top:auto!important;left:auto!important;transform:none!important;order:-1;min-height:40px;max-width:210px;box-sizing:border-box}.solsol-speech[hidden]{display:block!important;visibility:hidden}.solsol-owner img{display:block}.solsol-owner strong{margin-top:0}
.world-joystick{width:116px;height:116px;border:2px solid #ffffff55;border-radius:50%;background:radial-gradient(circle,#426b6380,#0e242ba8);box-shadow:inset 0 0 0 10px #ffffff0b,0 4px 18px #0005;display:grid;place-items:center;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.joystick-knob{display:block;width:47px;height:47px;border-radius:50%;background:linear-gradient(#d9ebe6,#8cafa8);border:2px solid #f2fff4b3;box-shadow:0 4px 10px #0005;pointer-events:none;will-change:transform}
@media(max-width:650px){.kitchen-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.kitchen-card{padding:11px!important;min-height:155px;font-size:12px!important}.pantry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pantry-card{padding:8px}.pantry-card strong,.pantry-card p{overflow-wrap:anywhere}.ingredient-slots{gap:4px}.ingredient-slots button{font-size:12px!important;padding:5px!important}.solsol-owner{gap:5px}.solsol-speech{font-size:12px;min-height:34px}.world-joystick{width:108px;height:108px}.joystick-knob{width:44px;height:44px}}
.world-joystick{pointer-events:auto}
#kitchenTakeoverDialog{width:min(430px,calc(100vw - 32px));box-sizing:border-box;border:1px solid #d9b875;border-radius:18px;background:#1b2a28;color:#fff3d7;padding:24px;box-shadow:0 20px 70px #0008}#kitchenTakeoverDialog::backdrop{background:#0009}#kitchenTakeoverDialog h2{font-size:20px;line-height:1.5}#kitchenTakeoverDialog p{line-height:1.7;color:#ded8c9;font-size:14px}#kitchenTakeoverDialog>div{display:flex;flex-wrap:wrap;gap:10px}#kitchenTakeoverDialog button{min-height:46px;border:1px solid #aa9977;border-radius:10px;padding:10px 15px;background:#334c43;color:white;cursor:pointer}#kitchenTakeoverDialog [data-takeover-yes]{background:#ab5636}
#player.player-jailed{display:none!important}.remote-player{cursor:pointer}.remote-player .remote-character{pointer-events:auto}.prison-panel{max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}.prison-own{border:1px solid #8ba0b74a;background:#0e1b2c;padding:16px;border-radius:14px;margin-bottom:22px}.prison-cells{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}.prison-cell{padding:14px;background:#101a29;border:1px solid #6c819455;border-radius:12px;text-align:center}.prison-cell>strong{display:block;margin-bottom:10px}.prison-cell-scene{position:relative;height:175px;background:linear-gradient(160deg,#26333e,#10171d 70%);border:5px solid #586c78;border-bottom:10px solid #586c78;overflow:hidden;margin-bottom:12px}.prison-cell-scene img{position:absolute;inset:auto 0 7px;width:110px;height:140px;object-fit:contain;margin:auto;image-rendering:pixelated}.prison-bars{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0,transparent 23px,#81929d 23px,#9badb7 27px,#43545d 30px);box-shadow:inset 0 0 14px #0008}.prison-cell small{display:block;color:#c5d3e1}.poke-shake .remote-character,.poke-shake #characterSprite{animation:poke-wiggle .3s ease-out}.player-imprisoned #mobileWorldControls{display:none!important}@keyframes poke-wiggle{0%,100%{translate:0}25%{translate:-5px}65%{translate:5px}}@media(max-width:600px){.prison-cells{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.prison-cell{padding:8px}.prison-cell-scene{height:150px}.prison-cell-scene img{width:95px;height:120px}}@media(prefers-reduced-motion:reduce){.poke-shake .remote-character,.poke-shake #characterSprite{animation:none}}
/* Large category targets and a scroll area contained within inventory. */
#inventoryItems{display:block!important;width:100%;min-width:0;max-width:100%;overflow:hidden}.inventory-window{overflow-x:hidden!important}.pantry-section{width:100%;max-width:100%;min-width:0;border:0;padding:0;margin:0}.pantry-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 12px}.pantry-tabs button{min-height:54px;font-size:16px;font-weight:800;border:1px solid #8eabc066;border-radius:12px;background:#233a4e;color:#ecf6ff;padding:10px 12px;cursor:pointer;touch-action:manipulation}.pantry-tabs button.selected{outline:none;border:2px solid #f4cc70;background:#4e452f;color:#ffe5a2}.inventory-scroll-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#a9bfd0;font-size:12px;margin:8px 0}.inventory-scroll-tools>div{display:flex;gap:7px}.inventory-scroll-tools button{width:44px;min-height:40px;background:#304d60;color:#fff;border:1px solid #829eaf88;border-radius:9px;cursor:pointer}.inventory-card-strip.pantry-grid,.inventory-card-strip.inventory-equipment-strip{display:flex!important;flex-wrap:nowrap;gap:14px;overflow-x:auto!important;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scroll-snap-type:x proximity;scroll-padding:3px;-webkit-overflow-scrolling:touch;padding:5px 3px 14px;max-width:100%;min-width:0;scrollbar-color:#7a9cae #132636;scrollbar-width:auto}.inventory-card-strip>.pantry-card,.inventory-card-strip>.inventory-item{flex:0 0 220px;width:220px;min-width:0;max-width:none;box-sizing:border-box;scroll-snap-align:start;margin:0;overflow:hidden}.inventory-card-strip .pantry-card{padding:16px;align-items:stretch;gap:12px}.pantry-card>strong{text-align:center;font-size:17px}.pantry-card>p{text-align:center;font-size:14px;line-height:1.6}.pantry-card .food-picture{width:110px;height:110px}.pantry-card label{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:13px}.pantry-card input{min-width:0;max-width:82px}.pantry-sell-actions{display:grid;gap:7px;margin-top:auto}.pantry-sell-actions button{width:100%;min-height:43px;margin:0!important;white-space:normal;line-height:1.4}.inventory-card-strip>.inventory-empty{flex:1 0 100%;min-height:120px;box-sizing:border-box;text-align:center;padding:30px 12px}.inventory-bottom-hint{font-size:12px;line-height:1.6;color:#9fb5c6}.inventory-card-strip .inventory-item{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px}.inventory-card-strip .inventory-item h3{text-align:center;overflow-wrap:anywhere}.inventory-card-strip:focus-visible{outline:2px solid #e5c16e;outline-offset:2px}@media(max-width:600px){.pantry-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pantry-tabs button{font-size:15px;min-height:52px;padding:10px 6px}.inventory-card-strip>.pantry-card,.inventory-card-strip>.inventory-item{flex-basis:190px;width:190px}.inventory-card-strip{gap:10px!important}.inventory-scroll-tools{font-size:11px}.inventory-card-strip .pantry-card{padding:13px}.pantry-card .food-picture{width:95px;height:95px}}
.farm-tractor-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px;background:#102b22;border:1px solid #6da87d66;border-radius:12px;margin:12px 0}.farm-tractor-row small{color:#adceb5}.farm-tractor-button{background:#467347!important;border-color:#add686!important;color:#fff9d1!important;min-height:48px;font-size:15px!important}
@media(min-width:801px){#inventoryItems .pantry-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}#inventoryItems .pantry-tabs button{min-height:56px;font-size:16px}}
.social-card .poke-action-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:66px;font-size:20px;font-weight:800;background:#913f35;border:2px solid #e2aa79;color:#fff3df}.social-card .poke-action-button small{font-size:12px;font-weight:400;color:#f4d3ba}#onlineToolbar #pokeButton{background:#783d32;border-color:#e2aa7977}
.title-effect-smoke .title-smoke{position:absolute;left:calc(var(--i)*16% - 6px);bottom:-6px;width:19px;height:15px;border-radius:50%;background:radial-gradient(ellipse,#d8e0e099 5%,#84939c66 45%,transparent 73%);filter:blur(1px);opacity:0;animation:titleGreySmoke 3.2s ease-out infinite;animation-delay:calc(var(--i)*-.46s)}@keyframes titleGreySmoke{0%{opacity:0;transform:translate(0,5px) scale(.5)}20%{opacity:.65}100%{opacity:0;transform:translate(10px,-23px) scale(1.6)}}.title-preview-smoke strong{text-shadow:0 0 7px #e2ebef99,0 0 16px #8e9da488}@media(prefers-reduced-motion:reduce){.title-effect-smoke .title-smoke{animation:none;opacity:.25}}
#onlineToolbar #prisonButton[hidden]{display:none!important}
.kitchen-panel,.ingredient-list{overflow-anchor:none}.cooking-ingredients{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.6;color:#d9c59c}.cooking-collection article{min-width:0;gap:8px}.cooking-collection .cooking-undiscovered{display:grid;place-items:center;height:90px;font-size:38px;opacity:.5}.cooking-collection .collection-locked>b{color:#d2dfed}

/* Agriculture and server-authoritative solo hunting. */
.agriculture-choices,.ranch-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.agriculture-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.agriculture-choices button{display:flex;flex-direction:column;align-items:center;gap:15px;min-height:190px}.agriculture-choices span,.ranch-animal{font-size:64px}.ranch-cards article{display:flex;flex-direction:column;gap:9px;padding:18px;border:1px solid #7f96af66;border-radius:18px;background:#172332}.ranch-cards article p{margin:0}.hunt-panel{max-width:620px!important}.hunt-opponent{display:flex;align-items:center;gap:15px;justify-content:center;margin:8px}.hunt-opponent>span{font-size:58px}.hunt-canvas{display:block;width:min(100%,400px);height:auto;margin:auto;touch-action:none}.hunt-timing{position:relative;height:24px;max-width:400px;margin:15px auto;background:linear-gradient(90deg,#d85b5b,#e4b752 35%,#77dd9b 46%,#77dd9b 54%,#e4b752 65%,#d85b5b);border-radius:5px}.hunt-timing[hidden]{display:none}.hunt-timing i{position:absolute;top:-4px;bottom:-4px;width:5px;background:#fff;box-shadow:0 0 5px #000}.hunt-controls{display:flex;align-items:center;justify-content:space-around;gap:30px;margin:15px}.hunt-joystick{position:relative;width:100px;height:100px;border-radius:50%;border:2px solid #8e9ab6;background:#ffffff15;touch-action:none;user-select:none;-webkit-user-select:none}.hunt-joystick span{position:absolute;left:31px;top:31px;width:34px;height:34px;border-radius:50%;background:#afbddc;pointer-events:none}.hunt-attack{min-width:130px;min-height:65px;touch-action:manipulation}.hunt-panel #huntHint{text-align:center;min-height:24px}.hunt-panel small{display:block;text-align:center}@media(max-width:650px){.ranch-cards{grid-template-columns:1fr}.agriculture-choices{gap:8px}.agriculture-choices button{padding:15px}.hunt-panel{padding:14px!important}.hunt-opponent>span{font-size:38px}.hunt-controls{margin:8px}.hunt-canvas{max-height:36dvh;width:auto;max-width:100%}}

/* Direct ranch combat */
.hunt-panel{max-width:780px!important}.hunt-canvas{width:100%;max-width:600px;image-rendering:auto;border-radius:12px;box-shadow:0 9px 24px #0004}.hunt-status{display:flex;justify-content:space-between;gap:10px;margin:12px 0}.hunt-panel header>div{display:flex;gap:6px}.hunt-panel header button{font-size:13px}.hunt-impact{animation:huntImpact .2s ease-out}@keyframes huntImpact{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@media(max-width:650px){.hunt-canvas{width:100%;height:auto;max-height:none}.hunt-status{font-size:12px;flex-wrap:wrap}.hunt-panel #huntHint{font-size:13px;margin:8px 0}.hunt-panel{max-height:96dvh;overflow-y:auto}.hunt-controls{margin:8px 0}.hunt-panel small{font-size:11px}}@media(prefers-reduced-motion:reduce){.hunt-impact{animation:none}}

/* Touch-first number-order hunt. */
.number-hunt-panel{width:min(96vw,520px)!important;max-width:520px!important;padding:18px!important;max-height:96dvh;overflow-y:auto}.number-hunt-heading{display:flex;justify-content:space-between;align-items:center;margin:12px 0}.number-hunt-clock{font-size:28px;font-weight:800;font-variant-numeric:tabular-nums;color:#f5d185}.number-hunt-clock.time-low{color:#ff8075}.number-hunt-instruction{text-align:center;margin:8px 0!important}.number-hunt-progress{height:7px;border-radius:8px;background:#ffffff20;overflow:hidden}.number-hunt-progress span{display:block;height:100%;background:#edbe68}.number-hunt-next{text-align:center;min-height:25px;margin:10px 0!important;font-weight:700}.number-hunt-arena{position:relative;min-height:340px;border-radius:14px;background:#101e28;padding:10px}.number-hunt-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.number-hunt-tile{min-width:0;min-height:57px;font-size:25px!important;font-weight:800!important;border-radius:10px!important;background:#f4e5c7!important;color:#3d413c!important;border:2px solid #d0bc94!important;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:opacity .08s,transform .08s}.number-hunt-tile.number-done{opacity:.13;pointer-events:none;transform:scale(.9)}.number-hunt-tile.number-wrong{background:#ff9b8f!important;border-color:#ff6259!important}.number-hunt-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:14px;background:#10212ae8;font-size:31px;color:#ffe4aa}.number-hunt-cover[hidden]{display:none}.number-hunt-cover[data-mode=countdown]{background:#10212a77;pointer-events:auto}.number-hunt-cover .primary{min-height:65px;min-width:180px;font-size:24px}.number-hunt-result{text-align:center;min-height:26px;margin:10px 0 0!important}@media(max-width:650px){.number-hunt-panel{padding:12px!important}.number-hunt-tile{min-height:53px;font-size:23px!important}.number-hunt-board{gap:7px}.number-hunt-arena{min-height:315px;padding:8px}.number-hunt-panel header h2{font-size:20px}.number-hunt-clock{font-size:25px}}
