/* V1.0.2 hourly coins, Fruit Storm, and Poki Restaurant King. */
.hourly-coin{position:relative;min-width:126px;padding-right:42px}.hourly-coin small{position:absolute;right:9px;color:#fff;font:700 9px var(--display)}.hourly-coin.available{border-color:#52dca5;background:#17372e;color:#7df0bd;box-shadow:inset 0 0 18px #48d99c18}.hourly-coin.claimed{color:#839087;border-color:#34423a;background:#1c2420}.fruit-feature .game-art{background:linear-gradient(#342428,#181a20 70%)}.fruit-art{position:relative;width:270px;height:190px}.fruit-art img{position:absolute;width:145px;height:145px;object-fit:contain;filter:drop-shadow(0 18px 16px #0008)}.fruit-art img:first-child{left:6px;bottom:3px;transform:rotate(-16deg)}.fruit-art img:nth-child(2){right:5px;top:0;transform:rotate(14deg)}.fruit-art i{position:absolute;left:10px;right:3px;top:94px;height:4px;background:#fff;box-shadow:0 0 12px #7fe9ff,0 0 32px #55bfff;transform:rotate(-17deg)}.restaurant-feature .game-art{background:linear-gradient(145deg,#2b2020,#151b21 55%,#18261d)}.restaurant-art{display:flex;align-items:center;gap:18px}.restaurant-art img{width:115px;height:115px;object-fit:contain;filter:drop-shadow(0 15px 15px #0009)}.restaurant-art b{font:900 28px var(--display);color:var(--yellow)}
.fruit-stage{position:relative;width:100%;aspect-ratio:16/10;max-height:620px;overflow:hidden;background:linear-gradient(#16232d,#0e141b 60%,#1c2529);border:1px solid #3b4750;touch-action:none;cursor:crosshair}.fruit-stage canvas{display:block;width:100%;height:100%;touch-action:none}.fruit-hud{position:absolute;z-index:2;inset:12px 14px auto;display:flex;justify-content:space-between;pointer-events:none}.fruit-hud span{min-width:98px;padding:9px 12px;background:#10161ccc;border-left:3px solid var(--yellow);font:800 18px var(--display)}.fruit-hud small{display:block;color:#86949d;font-size:9px}.fruit-instructions{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);width:max-content;max-width:90%;padding:8px 13px;background:#111820dd;color:#c6d0d5;font-size:11px;pointer-events:none}.fruit-result{position:absolute;z-index:3;inset:0;display:grid;place-content:center;text-align:center;background:#0a0f14d9;animation:resultIn .35s ease}.fruit-result b{font:900 54px var(--display);color:var(--yellow)}.fruit-result span{color:#fff;font-size:14px}.fruit-result.failed b{color:#ff5360}@keyframes resultIn{from{opacity:0;transform:scale(1.08)}}
.restaurant-board{display:grid;gap:14px}.restaurant-score{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:13px 16px;background:#10161c;border:1px solid #313c45}.restaurant-player:last-child{text-align:right}.restaurant-player small,.restaurant-player strong{display:block}.restaurant-player small{color:#85919a;font-size:9px}.restaurant-player strong{font:800 16px var(--display)}.health-pips{display:flex;gap:4px;margin-top:5px}.restaurant-player:last-child .health-pips{justify-content:flex-end}.health-pips i{width:17px;height:15px;background:#ef5260;clip-path:polygon(50% 100%,0 44%,8% 12%,33% 0,50% 18%,67% 0,92% 12%,100% 44%)}.health-pips i.empty{background:#343d44}.restaurant-vs{font:900 20px var(--display);color:var(--yellow)}.restaurant-table{position:relative;min-height:150px;padding:20px;display:grid;grid-template-columns:1fr 110px 1fr;align-items:center;background:radial-gradient(circle,#3d3523,#1b201d 68%);border:1px solid #4b4635}.restaurant-table>div{display:grid;justify-items:center;gap:6px}.restaurant-table img{width:85px;height:85px;object-fit:contain;filter:drop-shadow(0 11px 12px #0008)}.restaurant-table b{font:800 13px var(--display)}.restaurant-table .table-status{text-align:center;color:#d1d8d3;font-size:11px;line-height:1.6}.restaurant-table .card-back{width:68px;height:92px;border:3px solid #dbb94c;background:repeating-linear-gradient(45deg,#202b33 0 7px,#2f3d47 7px 14px);display:grid;place-items:center;color:#f6d54b;font:900 18px var(--display)}.restaurant-actions{display:flex;align-items:center;gap:9px}.restaurant-actions>button{flex:0 0 auto}.restaurant-hand{display:flex;gap:8px;overflow-x:auto;padding:3px 2px 9px;scrollbar-color:#4a5660 #151c22}.food-card{position:relative;flex:0 0 103px;height:145px;border:2px solid var(--food);background:#182027;color:#fff;padding:8px;display:grid;grid-template-rows:auto 1fr auto;text-align:left;transition:transform .15s,border-color .15s}.food-card:hover{transform:translateY(-5px);border-color:#fff}.food-card img{width:70px;height:70px;object-fit:contain;margin:auto}.food-card small{font:700 8px var(--display);color:#8e9ba3}.food-card b{font:800 14px var(--display)}.food-card em{position:absolute;right:6px;top:6px;width:22px;height:22px;display:grid;place-items:center;background:var(--food);color:#101419;font:900 13px var(--display);font-style:normal}.restaurant-log{height:72px;overflow-y:auto;padding:9px 12px;background:#10161c;color:#9ba6ad;font-size:10px;line-height:1.65}.restaurant-log p{margin:0}.restaurant-waiting{pointer-events:none;opacity:.5}.restaurant-result{padding:18px;text-align:center;border:1px solid #4e4930;background:#242318}.restaurant-result b{display:block;color:var(--yellow);font:900 30px var(--display)}
@media(max-width:900px){.hourly-coin{min-width:42px;width:42px;padding:0}.hourly-coin small{right:2px;bottom:1px;font-size:7px}.fruit-stage{aspect-ratio:4/3}.restaurant-table{grid-template-columns:1fr 80px 1fr}.restaurant-table img{width:70px;height:70px}}
@media(max-width:560px){.hourly-coin{width:34px;min-width:34px}.top-actions{gap:3px}.sidebar nav{display:flex;overflow-x:auto;overflow-y:hidden}.sidebar nav button{flex:0 0 66px;width:66px;min-width:66px}.fruit-stage{aspect-ratio:3/4;max-height:65dvh}.fruit-hud{inset:8px 8px auto}.fruit-hud span{min-width:76px;padding:6px 8px;font-size:14px}.restaurant-score{padding:9px}.restaurant-table{min-height:125px;padding:10px;grid-template-columns:1fr 70px 1fr}.restaurant-table img{width:58px;height:58px}.restaurant-table .table-status{font-size:9px}.restaurant-actions{align-items:stretch;flex-direction:column}.restaurant-actions>button{width:100%}.food-card{flex-basis:88px;height:128px}.food-card img{width:58px;height:58px}.restaurant-log{height:58px}.fruit-result b{font-size:39px}}
.restaurant-score{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.restaurant-player{min-width:0}.restaurant-player strong{overflow-wrap:anywhere}
@media(max-width:560px){.restaurant-player strong{font-size:13px;line-height:1.15}.restaurant-player small{font-size:7px}.health-pips i{width:13px;height:12px}.restaurant-vs{font-size:17px}}
.exchange-modal{width:min(430px,calc(100vw - 28px));padding:30px 28px;background:linear-gradient(145deg,#1c252d,#11171d);border:1px solid #6b622b;box-shadow:0 25px 80px #000d,inset 0 0 35px #f4d83d12}.exchange-modal h2{margin-bottom:8px}.exchange-modal .modal-note{margin:0 0 20px;color:#94a0a8;font-size:11px;line-height:1.7}.exchange-prompt{margin:12px 0;padding:12px;border-left:3px solid var(--yellow);background:#2c2814;color:#fff1a8;font-size:12px}.exchange-actions{display:grid;gap:9px}.game-help{position:absolute;right:58px;top:15px;z-index:4;width:35px;height:35px;border:1px solid #4a5660;background:#202a32;color:#f4d83d}.game-help:hover{background:#34424d}.tutorial-dialog{width:min(510px,calc(100vw - 28px))}.tutorial-content{padding:18px;background:#10171e;border-left:3px solid var(--yellow);color:#d9e0e4;font-size:13px;line-height:1.9}.tutorial-skip{display:flex;align-items:center;gap:8px;margin:18px 0;color:#9da9b1;font-size:11px}.tutorial-actions{display:flex;justify-content:flex-end;gap:9px}.clock-toggle{width:auto;min-width:42px;padding:0 8px;gap:5px}.clock-toggle span{font:700 10px var(--display);color:#cbd5d9}.team-rarity-filters{display:flex;gap:2px;flex-wrap:wrap;margin-top:5px}.team-rarity-filters label{display:flex;align-items:center;gap:2px;color:#aeb9bf;font:700 8px var(--display)}.team-rarity-filters input{width:11px;height:11px;accent-color:var(--yellow)}.toast-refresh{animation:toast-pulse .28s ease}@keyframes toast-pulse{50%{transform:scale(1.025);filter:brightness(1.3)}}
.battle-hud-actions{display:flex;align-items:center;gap:9px}.battle-hud-actions .game-help{position:static;flex:0 0 42px;width:42px;height:42px}.tower-stage>.game-help{right:16px;top:16px}.tower-stage{position:relative}
.battle-page-help,.ladder-page-help{position:absolute;z-index:8;right:24px;top:18px}.ladder-page-help{top:18px}.battle-view,#ladderView{position:relative}
.draw-celebrate .pet-card{animation:reveal .65s cubic-bezier(.2,.8,.2,1),cardGlow 1.4s ease-in-out infinite alternate}@keyframes cardGlow{to{filter:drop-shadow(0 0 24px #ffe66d)}}
@media(max-width:560px){.exchange-modal{padding:26px 18px}.exchange-modal .modal-close{top:10px;right:10px}.clock-toggle{min-width:36px;width:36px;padding:0}.clock-toggle span{display:none}.tutorial-actions{display:grid;grid-template-columns:1fr 1fr}.tutorial-actions button{width:100%}.game-help{right:48px}.team-rarity-filters{max-width:70px}.team-rarity-filters label{font-size:7px}.team-dock{gap:8px}.team-picker{min-width:0}}

/* Keep the game dialog fixed while only the hand scrolls. */
.restaurant-board,.restaurant-actions{min-width:0;max-width:100%}.restaurant-actions{display:grid;grid-template-columns:auto minmax(0,1fr)}.restaurant-hand{width:100%;min-width:0;max-width:100%;overscroll-behavior-inline:contain}.clock-toggle.clock-collapsed{width:42px;padding:0}
@media(max-width:560px){.restaurant-actions{grid-template-columns:minmax(0,1fr)}.restaurant-actions>button{width:100%}}
