/* Farm HUD, glass style ("B"): one translucent panel with the profile (XP ring from the game's own
   --xp), name, level and XP bar, coins and drops stacked, and the gear; the next-drop timer as a chip
   under it; the side buttons as glass tiles. Only styles: the game's elements and handlers stay. */
:root .game-hud{position:fixed!important;left:10px!important;right:10px!important;transform:none!important;width:auto!important;max-width:none!important;margin:0!important;top:calc(10px + env(safe-area-inset-top))!important;z-index:30;
 display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-rows:auto auto;align-items:center;column-gap:10px;row-gap:5px;
 height:auto!important;padding:9px 10px!important;border-radius:24px;background:rgba(10,30,22,.48)!important;
 -webkit-backdrop-filter:blur(12px) saturate(1.2);backdrop-filter:blur(12px) saturate(1.2);
 border:1px solid #ffffff33!important;box-shadow:0 8px 24px #0007,inset 0 1px 0 #ffffff33!important}
/* profile */
:root .game-hud .world-profile{grid-column:1/3;grid-row:1/3;display:flex!important;align-items:center;gap:10px;min-width:0;margin:0!important;position:static!important}
:root .game-hud #playerAvatar{position:relative;flex:none;width:50px!important;height:50px!important;border-radius:50%!important;padding:0;
 border:0!important;font:800 19px/1 inherit;color:#fff6dc;
 background:radial-gradient(circle at 35% 30%,#4f8f6c,#1d4a37 70%) content-box,conic-gradient(#f6d06a var(--xp,0%),#ffffff26 0) border-box!important;
 border:4px solid transparent!important;box-shadow:0 4px 10px #0008!important}
:root .game-hud .world-profile-meta{min-width:0;display:flex!important;flex-direction:column;gap:2px}
:root .game-hud #worldPlayerName{display:block;font:800 14.5px/1.15 inherit;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 3px #000a}
:root .game-hud .level-hud{display:block!important;background:none!important;border:0!important;padding:0!important;margin:0!important;min-width:0}
:root .game-hud .level-hud>.hud-label{display:none!important}
:root .game-hud .level-hud>div{display:flex!important;align-items:center;gap:6px;flex-wrap:wrap}
:root .game-hud #level{font:700 11.5px/1.2 inherit;color:#f3d98a;white-space:nowrap}
:root .game-hud #prestigeHud{font:700 10.5px inherit;color:#f3d98a;opacity:.85}
:root .game-hud #levelProgress{display:none!important}
:root .game-hud #xpProgress{display:block!important;width:100%!important;max-width:150px;height:5px!important;margin-top:4px;border:0;border-radius:3px;overflow:hidden;
 -webkit-appearance:none;appearance:none;background:#ffffff26}
:root .game-hud #xpProgress::-webkit-progress-bar{background:#ffffff26;border-radius:3px}
:root .game-hud #xpProgress::-webkit-progress-value{background:linear-gradient(90deg,#f6d06a,#fff0b0);border-radius:3px}
:root .game-hud #xpProgress::-moz-progress-bar{background:linear-gradient(90deg,#f6d06a,#fff0b0);border-radius:3px}
/* coins and drops: chips stacked in one column */
:root .game-hud .coin-hud,:root .game-hud .gift-hud{display:flex!important;align-items:center;gap:6px;height:28px!important;min-width:0;width:auto!important;margin:0!important;padding:0 4px 0 4px!important;
 border-radius:14px!important;background:#00000045!important;border:1px solid #ffffff2b!important;box-shadow:none!important;color:#fff;position:static!important}
:root .game-hud .coin-hud{grid-column:3;grid-row:1}
:root .game-hud .gift-hud{grid-column:3;grid-row:2}
:root .game-hud .coin-hud img{width:22px!important;height:22px!important;flex:none}
:root .game-hud .gift-hud>span:first-child{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;flex:none;font-size:12px;
 background:radial-gradient(circle at 35% 30%,#bfe9ff,#3aa0e8 55%,#1a5e9a);box-shadow:0 1px 0 #134a7a}
:root .game-hud .coin-hud>div,:root .game-hud .gift-hud>div{display:flex!important;align-items:baseline;min-width:0}
:root .game-hud #coins,:root .game-hud #giftProgress{font:800 13.5px/1 inherit;color:#fff;white-space:nowrap;font-variant-numeric:tabular-nums}
:root .game-hud .coin-hud small,:root .game-hud .gift-hud>div>small{display:none!important}
:root .game-hud .hud-plus{display:grid!important;place-items:center;width:20px!important;height:20px!important;margin-left:auto;border-radius:50%!important;flex:none;
 background:#e3c46f!important;color:#2a1d07!important;font:900 14px/1 inherit!important;box-shadow:0 1px 0 #8a6122!important}
/* next drop: a chip under the panel */
:root .game-hud #worldNextDrop{position:absolute!important;left:50%!important;right:auto!important;top:calc(100% + 7px)!important;transform:translateX(-50%);
 display:block;white-space:nowrap;padding:4px 12px;border-radius:12px;font:700 11px/1.2 inherit;color:#fff;
 background:rgba(10,30,22,.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid #ffffff2a;text-shadow:none;margin:0!important}
:root .game-hud #worldNextDrop:empty{display:none}
:root .game-hud #worldNextDrop::before{content:"💧 "}
/* gear */
:root .game-hud #worldGear{grid-column:4;grid-row:1/3;width:38px!important;height:38px!important;margin:0!important;padding:0!important;border-radius:13px!important;
 display:grid!important;place-items:center;font-size:20px!important;color:#f3d98a!important;background:#ffffff1a!important;border:1px solid #ffffff33!important;position:static!important;box-shadow:none!important}
/* side buttons: glass tiles under the panel */
:root #leagueOpen,:root #worldDecorations,:root #friendsOpen{width:52px!important;height:52px!important;right:10px!important;left:auto!important;border-radius:16px!important;
 display:grid!important;place-items:center;padding:0!important;font-size:24px;
 background:rgba(10,30,22,.5)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid #ffffff33!important;
 box-shadow:0 6px 14px #0007,inset 0 1px 0 #ffffff33!important;overflow:visible!important}
:root #leagueOpen{top:calc(126px + env(safe-area-inset-top))!important}
:root #worldDecorations{top:calc(196px + env(safe-area-inset-top))!important}
:root #friendsOpen{top:calc(266px + env(safe-area-inset-top))!important}
:root #leagueOpen>span,:root #worldDecorations>span,:root #friendsOpen>span{display:grid;place-items:center;font-size:24px;line-height:1}
:root #friendsOpen>span svg{width:24px;height:24px}
:root #leagueOpen>small,:root #worldDecorations>small,:root #friendsOpen>small{position:absolute!important;left:50%!important;top:calc(100% + 2px)!important;transform:translateX(-50%);
 margin:0!important;white-space:nowrap;font:700 10px/1.2 inherit!important;color:#fff!important;text-shadow:0 1px 3px #000!important}
:root #worldDecorations.has-gift::after{content:"!";position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:10px;background:#e2553f;color:#fff;
 font:800 11px/20px inherit;text-align:center;padding:0 5px;border:2px solid #fff;box-shadow:0 2px 4px #0007}
@media (max-width:360px){:root .game-hud{column-gap:7px}:root .game-hud #playerAvatar{width:44px!important;height:44px!important}:root .game-hud #worldPlayerName{font-size:13px}}
/* Keep the game's own hiding (the panel during the workshop and the skill game, the side buttons
   outside the farm view): these win over the display rules above. */
:root body.skill-playing .game-hud,:root .workshop-open .game-hud{display:none!important}
:root body:not([data-game-view=farm]) #leagueOpen,:root body:not([data-game-view=farm]) #worldDecorations,:root body:not([data-game-view=farm]) #friendsOpen{display:none!important}
:root body:not([data-game-view=farm]) .game-hud #worldNextDrop{display:none!important}
/* Reyting holds Bezaklar and Do'stlar (game-league.js): only the Reyting tile stays on the side. */
/* doubled ids: the game shows these with a stronger selector in farm-garden-scene.css */
:root body #worldDecorations#worldDecorations#worldDecorations,:root body #friendsOpen#friendsOpen#friendsOpen{display:none!important}
:root body.gl-has-gift #leagueOpen::after{content:"!";position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:10px;background:#e2553f;color:#fff;
 font:800 11px/20px inherit;text-align:center;padding:0 5px;border:2px solid #fff;box-shadow:0 2px 4px #0007}
.gl-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px}
.gl-card{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;margin:0;padding:0 10px;border-radius:15px;
 border:1px solid #c9ab6266;background:linear-gradient(#2c4a36,#18301f);color:#f4efdf;font:700 15px/1.1 inherit;cursor:pointer;
 box-shadow:inset 0 1px 0 #ffffff26,0 3px 6px #0006}
.gl-card:active{transform:translateY(1px)}
.gl-ico{font-size:19px;line-height:1;color:#f3d98a}
.gl-card.gl-dot::after{content:"!";position:absolute;top:-6px;right:-4px;min-width:20px;height:20px;border-radius:10px;background:#e2553f;color:#fff;
 font:800 11px/20px inherit;text-align:center;padding:0 5px;border:2px solid #fff;box-shadow:0 2px 4px #0007}
.gl-menu{position:fixed;z-index:60;right:72px;top:calc(122px + env(safe-area-inset-top));width:250px;padding:10px 10px 0;border-radius:20px;
 background:rgba(10,30,22,.78);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid #ffffff33;box-shadow:0 10px 24px #0008}
