/* Guild boss screen v2 (docs/workorders/GUILDS_AND_CHAT.md §9b), its skill choice, its weekly ranking and the guild shops
   (backend/client/guild-boss-ui.ts, guild-shops-ui.ts). Built from the game's own parts: the duel HUD's crest and slanted
   bar, the Mountain fight button's count chip, the run's skill card and its selected state, the shared tab strip and
   timer, the Rankings podium's still figures on the Victory screen's floating island, and the guild UI v2 icons.
   App density: spacing 4/8/12, 44px targets, one control size per box, one ink edge where surfaces meet. */
.guild-boss-view #content{position:relative;display:flex;flex-direction:column;flex:1;min-height:0;padding:0;overflow:hidden}
:is(.guild-boss-view,.guild-boss-loadout-view,.guild-boss-ranking-view) #tabs{display:flex;align-items:center;gap:8px}
.gb-status{display:grid;gap:8px;place-items:center;margin:auto 0;padding:12px;text-align:center}

/* ---- Boss screen: the stage owns the screen ---- */
.gb-stage{position:relative;flex:1 1 auto;min-height:300px;overflow:hidden;background:#2b3156}
.gb-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.gb-stage>.help-button{position:absolute;top:8px;right:10px;z-index:3}
/* The fight-HUD plate: crest with the ladder position, outlined name, slanted bar with percent, two element orbs. */
.gb-hud{--duel-ink:#1b1220;--duel-slant:12px;--duel-tuck:10px;position:absolute;z-index:3;top:8px;left:10px;right:62px;display:grid;grid-template-columns:46px minmax(0,1fr) auto;grid-template-rows:24px 24px;column-gap:8px;row-gap:2px;pointer-events:none;color:var(--cream-300)}
.gb-hud-crest{grid-row:1/3;display:grid;place-items:center;width:46px;height:50px;padding-bottom:6px;box-sizing:border-box;background:linear-gradient(#ffe6a6,#c8984f 55%,#7a5023);clip-path:polygon(18% 0,82% 0,100% 15%,100% 72%,50% 100%,0 72%,0 15%);filter:drop-shadow(0 3px 0 #120b16)}
.gb-hud-crest>b{font:24px/1 Lucky,system-ui,sans-serif;color:#ffe7a8;-webkit-text-stroke:3px var(--duel-ink);paint-order:stroke fill}
.gb-hud-name{display:flex;align-items:center;min-width:0;font:20px/24px Lucky,system-ui,sans-serif;white-space:nowrap}
.gb-hud-name.is-long{font-size:17px}.gb-hud-name.is-longer{font-size:15px}
.gb-hud-name .gb-name{min-width:0;overflow:hidden;text-overflow:ellipsis;padding:0 2px;color:#fff3d8;-webkit-text-stroke:4px var(--duel-ink);paint-order:stroke fill}
.gb-hud-bar.duel-bar{grid-row:2;grid-column:2;margin:0;height:24px;box-sizing:border-box;padding:2px 3px 2px 2px}
.gb-hud :is(.duel-fill,.duel-trail){transform-origin:left center}
.gb-pool-pct{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:15px/1 Lucky,system-ui,sans-serif;-webkit-text-stroke:3px var(--duel-ink);paint-order:stroke fill;white-space:nowrap}
.gb-hud-orbs{grid-row:1/3;grid-column:3;display:flex;align-items:center;gap:6px;padding-bottom:6px}
/* Element orbs (icons 01–05) with a green up arrow (weakness) or a red down arrow (own element). */
.gb-orb{position:relative;display:inline-block;flex:none;width:38px;height:38px}
.gb-orb>img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 0 #0000004d)}
.gb-orb-arrow{position:absolute;left:50%;bottom:-7px;width:16px;height:14px;translate:-50% 0;overflow:visible}
.gb-orb-arrow path{stroke:var(--vs-ink);stroke-width:2;stroke-linejoin:round}
.gb-orb.is-weak .gb-orb-arrow path{fill:#6fd04f}.gb-orb.is-own .gb-orb-arrow path{fill:#ee5a45}
/* Events under the plate: the tails, the bonus banner or the small gong chip. */
.gb-stage-events{position:absolute;z-index:3;top:66px;left:10px;right:10px;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}
.gb-stage-events>*{pointer-events:auto}
.gb-tails{display:flex;align-items:center;gap:4px;width:100%;min-height:16px}
.gb-tail{flex:1;height:12px;border:2px solid var(--vs-ink);border-radius:6px;background:linear-gradient(90deg,#f08a3c var(--gb-tail),#4a3350 var(--gb-tail))}
.gb-tail.is-cut{background:#4a3350;opacity:.55}
.gb-tails-back{padding:4px 12px;border:2px solid var(--vs-ink);border-radius:999px;background:var(--panel-night);color:var(--cream-300);font:14px/1.1 Lucky,system-ui,sans-serif}
.gb-gong-chip{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;min-height:44px;box-sizing:border-box;margin:0;padding:0 14px 0 4px;border:2px solid var(--vs-ink);border-radius:999px;background:linear-gradient(#3a2f45,#231e29);color:#ffe7a8;font:17px/1 Lucky,system-ui,sans-serif;white-space:nowrap;cursor:pointer;box-shadow:inset 0 1px #ffffff26,0 3px 0 #120b16;transition:scale var(--tap-t,.12s ease-out)}
.gb-gong-chip>img{width:40px;height:40px;object-fit:contain}
.gb-gong-chip>small{font:800 12px/1 system-ui;color:var(--cream-300)}
.gb-gong-chip.is-off{color:var(--cream-300)}.gb-gong-chip.is-off>img{filter:saturate(.5)}
.gb-gong-chip:not(:disabled):active,.gb-bonus-banner:not(:disabled):active{scale:.96}
/* The bonus hour as an event: gong banner, ×2, the live countdown, who attacked; golden rays and warm light. */
.gb-bonus{position:relative;display:grid;place-items:center;margin-top:2px}
.gb-bonus-rays{position:absolute;left:50%;top:50%;width:360px;height:360px;translate:-50% -50%;border-radius:50%;pointer-events:none;
 background:repeating-conic-gradient(from 0deg,#ffe9a870 0 9deg,#ffe9a800 9deg 22deg);-webkit-mask:radial-gradient(circle,#000 14%,#0000 62%);mask:radial-gradient(circle,#000 14%,#0000 62%);animation:gb-rays 18s linear infinite}
@keyframes gb-rays{to{rotate:360deg}}
.gb-bonus-banner{position:relative;display:flex;align-items:center;min-height:60px;box-sizing:border-box;margin:0 0 0 24px;padding:5px 16px 5px 50px;border:2px solid #7a4510;border-radius:18px;
 background:linear-gradient(#fff4c8,#ffd86e 55%,#f3b13f);color:#5a3208;cursor:pointer;box-shadow:inset 0 2px #fffbe8,inset 0 -3px #d98f22,0 3px 0 #5a320a,0 0 22px 4px #ffcf4d8c;transition:scale var(--tap-t,.12s ease-out)}
.gb-bonus-gong{position:absolute;left:-30px;top:50%;width:72px;height:72px;translate:0 -50%;object-fit:contain;filter:drop-shadow(0 3px 0 #5a320a80)}
.gb-bonus-copy{display:grid;justify-items:center;gap:3px}
.gb-bonus-title{display:flex;align-items:baseline;gap:6px;font:21px/1 Lucky,system-ui,sans-serif;color:#fff8de;-webkit-text-stroke:4px #7a3f0a;paint-order:stroke fill;white-space:nowrap}
.gb-bonus-title>i{font-style:normal;font-size:25px;color:#ffe04a}
.gb-bonus-meta{display:flex;align-items:center;gap:6px}
.gb-bonus-meta .ui-timer.gb-bonus-timer{padding:2px 10px;font-size:15px;gap:6px}
.gb-bonus-attackers{display:inline-flex;align-items:center;gap:7px;padding:1px 9px 1px 2px;border:2px solid #7a4510;border-radius:999px;background:#fff4db;color:var(--ink-brown);font:15px/1 Lucky,system-ui,sans-serif}
.gb-bonus-attackers>img{width:24px;height:24px;object-fit:contain}
.gb-stage-light{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:0;transition:opacity .5s ease}
.gb-stage.is-bonus .gb-stage-light{opacity:1;mix-blend-mode:screen;animation:gb-glow 3.2s ease-in-out infinite alternate;
 background:radial-gradient(ellipse 85% 42% at 50% 16%,#ffd77a70,#ffd77a00 70%),radial-gradient(ellipse 130% 55% at 50% 100%,#ffb44a40,#ffb44a00 70%),linear-gradient(#ffcf6a1f,#ffcf6a0d)}
@keyframes gb-glow{from{opacity:.75}to{opacity:1}}
/* Two round painted buttons on the stage floor: Ranking on the left edge, Shop on the right edge (10px screen edges), each
 * as wide as a third of the row so both labels are the same width. Skills are not here: they open from Fight. */
.gb-rounds{position:absolute;z-index:3;left:50%;bottom:12px;width:min(100% - 20px,480px);translate:-50% 0;display:grid;grid-template-columns:repeat(2,calc((100% - 16px) / 3));justify-content:space-between}
.gb-round{display:flex;flex-direction:column;align-items:center;min-width:0;margin:0;padding:0;border:0;background:none;cursor:pointer;transition:scale var(--tap-t,.12s ease-out)}
.gb-round:not(:disabled):active{scale:.94}
.gb-round-face{display:grid;place-items:center;width:70px;height:70px;box-sizing:border-box;border:3px solid var(--vs-ink);border-radius:50%;
 background:radial-gradient(circle at 50% 36%,#fffaf0,#f6e4bf 58%,#dcbd86);box-shadow:inset 0 3px #fff,inset 0 -5px #c9a66b,0 4px 0 var(--vs-ink)}
.gb-round-face>img{width:76%;height:76%;object-fit:contain}
.gb-round-label{position:relative;margin-top:-12px;width:calc(100% - 9px);box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;padding:4px 8px 3px;border:2px solid var(--vs-ink);border-radius:999px;
 background:linear-gradient(#b9a8e4,#8b75cc);color:#fff;font:14px/1.1 Lucky,system-ui,sans-serif;-webkit-text-stroke:3px #3c2a63;paint-order:stroke fill;white-space:nowrap;text-align:center;box-shadow:inset 0 2px #ddd2f6,0 2px 0 var(--vs-ink)}
/* Bottom bar: Back and Fight with the battle ticket and today's count inside (the Mountain chip); during a fight the battle row. */
:is(.guild-boss-view,.guild-boss-loadout-view) #tabs>.gb-fight{flex:1;min-width:0;margin:0;display:flex;align-items:center;justify-content:center;gap:10px}
#tabs>.gb-fight .gb-count{font-size:19px}
#tabs>.gb-fight .gb-count img{width:26px;height:26px}
#tabs>.gb-fight .gb-count.is-empty{color:#b3261e}
.guild-boss-view #tabs>.gb-battle-row{flex:1;min-width:0}

/* ---- Skill choice ---- */
/* The four rows use the guild's 12px spacing step. Their 4px shadows leave 8px of visible space. */
.guild-boss-loadout-view #content{--gb-row-shadow:0 4px 0 #a58460;display:flex;flex-direction:column;flex:1;min-height:0;gap:12px;padding:8px 10px;overflow:hidden}
.gb-face-card,.gb-pick,.gb-skill-book{border:2px solid #b39b78;background:linear-gradient(var(--cream-200),#efdcb0);box-shadow:inset 0 2px #fff,var(--gb-row-shadow)}
.gb-face-card{flex:none;display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) var(--tier-compact);align-items:center;gap:8px;padding:8px;border-radius:18px}
/* Reserve the ring and its lower lip inside the face card's padding. */
.gb-portrait{display:block;width:68px;height:68px;margin:5px 0 8px 5px;box-sizing:border-box;border:3px solid #d49a2c;border-radius:50%;overflow:hidden;background:#2b3156;box-shadow:0 0 0 2px var(--vs-ink),0 0 0 5px #ffe08a,0 3px 0 5px #a58460}
.gb-portrait>canvas,.gb-portrait>img{display:block;width:100%;height:100%;object-fit:cover}
.gb-named{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;text-align:center}
.gb-named>span:last-child{display:grid;justify-items:center;min-width:0;max-width:100%}
.gb-named small{font:800 11px/1.2 system-ui;color:#7a5838;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gb-named b{font:18px/1.1 Lucky,system-ui,sans-serif;color:var(--text-on-cream);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gb-named .gb-orb{width:38px;height:38px;margin-bottom:4px}
.gb-pick{position:relative;flex:none;display:grid;gap:12px;padding:8px;border-radius:16px}
.gb-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.gb-slot{position:relative;display:grid;place-items:center;aspect-ratio:1;min-height:44px;margin:0;padding:0;box-sizing:border-box;border:2px solid #44363b;border-radius:12px;background:linear-gradient(110deg,var(--cream-250),#f3e2bd);box-shadow:inset 0 2px #fffced,0 3px #a78a5d;cursor:pointer;transition:scale var(--tap-t,.12s ease-out)}
.gb-slot:not(:disabled):active{scale:.95}
.gb-slot>img.skill-icon{position:absolute;inset:10%;width:80%;height:80%;object-fit:contain}
.gb-slot.is-empty{border:2px dashed #b39b78;background:var(--row-inset);box-shadow:inset 0 2px 0 #00000014;cursor:default}
.gb-slot.is-empty>i{font:30px/1 Lucky,system-ui,sans-serif;font-style:normal;color:#b39b78}
.gb-slot .gb-orb.gb-slot-orb,.gb-skill .gb-orb.gb-skill-orb{position:absolute;right:4px;top:4px;width:22px;height:22px}
.gb-slot-orb .gb-orb-arrow,.gb-skill-orb .gb-orb-arrow{width:11px;height:10px;bottom:-5px}
.gb-pick-foot{display:flex;padding-right:112px}
#online .gb-pick-foot>.gb-best{flex:1;min-width:0;margin:0;white-space:nowrap}
.gb-best .button-label{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.gb-best-icon{width:26px;height:26px;flex:none;object-fit:contain;margin:-2px 0}
/* The bonus of the pick: a sticker on the pick card's corner (the gong and a gold face inside the bonus hour). */
.gb-bonus-chip{position:absolute;z-index:2;right:4px;bottom:10px;display:inline-flex;align-items:center;gap:2px;min-width:100px;justify-content:center;height:44px;box-sizing:border-box;padding:0 12px 0 2px;rotate:-4deg;border:2px solid #2f5a1e;border-radius:999px;background:linear-gradient(#d4f59d,#8bd252);color:#fff;font:20px/1 Lucky,system-ui,sans-serif;-webkit-text-stroke:4px #2f5a1e;paint-order:stroke fill;box-shadow:inset 0 2px #f1ffd8,0 2px 0 #2f5a1e}
.gb-bonus-chip .gb-orb{width:34px;height:34px}.gb-bonus-chip .gb-orb-arrow{display:none}
.gb-bonus-chip>img{width:38px;height:38px;object-fit:contain}
.gb-bonus-chip.is-zero{border-color:#6c637d;background:linear-gradient(#ece6f2,#c9c1d6);-webkit-text-stroke-color:#4b4459;box-shadow:inset 0 2px #fff,0 2px 0 #6c637d}
.gb-bonus-chip.is-rally{border-color:#7a4510;background:linear-gradient(#fff4c8,#ffd86e 55%,#f3b13f);-webkit-text-stroke-color:#7a3f0a;box-shadow:inset 0 2px #fffbe8,0 2px 0 #7a4510,0 0 10px 2px #ffcf4d80}
#online .gb-set-tabs[role=tablist]{box-shadow:inset 0 2px 0 color-mix(in srgb,var(--vs-ink) 22%,transparent),var(--gb-row-shadow)}
.gb-set-tabs>button.secondary{width:100%;min-width:0;margin:0;white-space:nowrap}
.gb-skill-book{display:flex;flex-direction:column;flex:1;min-height:0;max-height:430px;border-radius:16px}
/* Keep the tile art, orb, check and pips at their normal size. The card frame stays outside the fade. */
.gb-skills{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:minmax(76px,1fr);gap:8px;flex:1;min-height:0;padding:8px;border-radius:14px;overflow:hidden auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;scrollbar-width:none}
/* A skill card is the run's skill card (.skill-offer): its face, and when picked its green face and check (.selected). */
.gb-skill.skill-offer{position:relative;display:block;width:100%;height:100%;min-height:44px;margin:0;padding:0;box-sizing:border-box;border:2px solid #44363b;border-radius:13px;
 background:linear-gradient(110deg,var(--cream-250),#f3e2bd);box-shadow:inset 0 2px #fffced,0 3px #a78a5d;color:#342d32;cursor:pointer;transition:scale var(--tap-t,.12s ease-out)}
.gb-skill.skill-offer.selected{border-color:#6e9b5c;background:linear-gradient(110deg,#f5ffdf,#e1edbe);box-shadow:inset 0 0 0 2px #b6d887,0 3px #526b46}
.gb-skill:not(:disabled):active{scale:.95}
.gb-skill.is-full:not(.selected){opacity:.7}
.gb-skill:disabled{cursor:default}
/* Everything stays inside the card (owner feedback 2026-11-21): the art is contained in a fixed box above the pip row,
 * the orb (with its arrow) sits in the top right corner, the check in the bottom right corner just above the pips. */
.gb-skill-art{position:absolute;inset:3px 3px 17px;overflow:hidden}
.gb-skill-art>img.skill-icon{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.gb-skill .skill-offer-check{right:3px;bottom:17px;width:20px;height:20px;padding:2px;font-size:14px;line-height:16px}
.gb-pips{position:absolute;left:3px;right:3px;bottom:3px;height:12px;display:flex;justify-content:center;gap:0}
.gb-pips>.ui-icon{width:12px;height:12px}
.gb-pips>.ui-icon:not(.is-on){filter:grayscale(1) brightness(1.15);opacity:.4}
@media (min-height:760px){.gb-skills{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ---- Weekly ranking: the Rankings pattern (podium of standing figures, bounded list, own row pinned) ---- */
.guild-boss-ranking-view #content{display:flex;flex-direction:column;flex:1;min-height:0;gap:8px;padding:6px 10px 8px;overflow:hidden}
.gb-rank-head-bar{flex:none;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;min-height:44px}
.gb-rank-head-bar>h1{grid-column:2;margin:0;font-size:26px;line-height:1.1;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Owner 2026-11-22 ("Podium trochę duże teraz? Mogłoby też lekko lewitować razem z postacią, jak góry w Avatarze, i
   może jakieś chmurki?"): the hero is the subject and the island a base under its feet. One size drives a seat:
   --gb-figure is the shared 600x480 still's drawn width, 124% of the seat (capped on short wide screens), so the
   longest blade the game has today (236 of the still's 300 px half width) ends inside its own seat and anything the
   shared fit can paint stays on the screen. The still's transparent margin is wider than the seat, so the podium clips
   its inline overflow (no scrollable area); painted pixels end 4 px or more inside their seat. The island is 1.45 (places 2, 3) / 1.57 (place 1) hero widths; it was 2.2
   to 2.45. A free seat is the same island, empty. */
.gb-podium{position:relative;isolation:isolate;overflow-x:clip;flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:6px;padding:clamp(2px,calc(6vh - 38px),14px) 2px 0;
 background:radial-gradient(ellipse 70% 80% at 50% 55%,#ffd98a40,#ffd98a00 70%),radial-gradient(ellipse 50% 40% at 50% 30%,#8fc6ff26,#8fc6ff00 70%)}
.gb-seat{--gb-figure:min(124cqw,27vh);--gb-island:calc(var(--gb-figure) * .565);container-type:inline-size;position:relative;display:flex;flex-direction:column;align-items:center;min-width:0}
.gb-seat.place-1{--gb-island:calc(var(--gb-figure) * .613)}
/* Headroom for the tallest still (430 of its 600 px width above the ground line), measured from the island's contact
   line. The stand (island + figure) is the one group that floats; the medal, name and damage under it stay put. */
.gb-seat-stand{--gb-bob:clamp(3px,3.2cqw,5px);position:relative;display:block;width:100%;margin-top:calc(var(--gb-figure) * .717 - var(--gb-island) * 134.5 / 512);
 animation:gb-seat-float 5s ease-in-out infinite;animation-delay:calc(var(--gb-clock,0s) + var(--gb-float-lag,0s))}
.gb-seat.place-1 .gb-seat-stand{margin-bottom:calc(var(--gb-figure) * .13)}
.gb-seat.place-2 .gb-seat-stand{--gb-float-lag:-1.7s}.gb-seat.place-3 .gb-seat-stand{--gb-float-lag:-3.4s}
@keyframes gb-seat-float{0%,100%{transform:translateY(0)}50%{transform:translateY(calc(-1 * var(--gb-bob)))}}
.gb-seat-island{display:block;width:var(--gb-island);height:auto;margin-inline:auto;aspect-ratio:512/432;object-fit:contain}
/* Meet the island's painted contact point (RESULT_PEDESTAL) at the shared portrait's ground line. */
.gb-seat-figure{position:absolute;left:calc(50% + var(--gb-island) * (264.9 / 512 - .5));top:calc(100% * 134.5 / 432);width:var(--gb-figure);max-width:none;height:auto;translate:-50% calc(-1 * var(--gb-figure-ground));pointer-events:none}
.gb-seat.place-1::before{content:'';position:absolute;left:-8%;right:-8%;top:0;bottom:30%;z-index:-1;border-radius:50%;background:radial-gradient(ellipse at 50% 60%,#ffd98a66,#ffcf6a00 70%);pointer-events:none}
/* Small clouds drift behind the islands (the Story cloud, no new art): decorative, clipped to the sky band above the
   names, faded at the screen edges. --gb-clock (set at render) keeps the drift and the float in phase across re-renders. */
.gb-clouds{position:absolute;inset:0 0 58px;z-index:-1;container-type:inline-size;overflow:hidden;pointer-events:none;
 -webkit-mask-image:linear-gradient(90deg,#0000,#000 12%,#000 88%,#0000),linear-gradient(#000 72%,#0000);-webkit-mask-composite:source-in;
 mask-image:linear-gradient(90deg,#0000,#000 12%,#000 88%,#0000),linear-gradient(#000 72%,#0000);mask-composite:intersect}
.gb-cloud{--w:calc(var(--wn) * 1cqw);position:absolute;left:calc(var(--x) * 1cqw);top:var(--y);width:var(--w);height:auto;max-width:none;aspect-ratio:2/1;object-fit:cover;opacity:var(--o);
 /* The lag starts each cloud where it rests (--x), which is also its place with reduced motion. */
 animation:gb-cloud-drift var(--t) linear infinite;animation-delay:calc(var(--gb-clock,0s) + var(--t) * (var(--x) - 100) / (100 + var(--wn)))}
.gb-cloud.cloud-1{--x:4;--y:2%;--wn:24;--o:.4;--t:104s}
.gb-cloud.cloud-2{--x:36;--y:32%;--wn:30;--o:.22;--t:132s}
.gb-cloud.cloud-3{--x:76;--y:8%;--wn:17;--o:.34;--t:90s}
.gb-cloud.cloud-4{--x:84;--y:50%;--wn:20;--o:.26;--t:118s}
@keyframes gb-cloud-drift{from{transform:translateX(calc((100 - var(--x)) * 1cqw))}to{transform:translateX(calc(var(--x) * -1cqw - 100%))}}
body:has(#modal[open]) :is(.gb-seat-stand,.gb-cloud){animation-play-state:paused}
.gb-seat .rank-medal.gb-seat-medal{position:relative;top:auto;left:auto;margin-top:calc(var(--gb-figure) * -.2);z-index:2;width:26px;height:26px;border:2px solid var(--vs-ink);background:linear-gradient(#eef1f4,#b9c0c8);box-shadow:inset 0 2px #ffffff80,0 2px var(--vs-ink);font:15px/1 Lucky,system-ui,sans-serif;color:var(--vs-ink)}
.gb-seat.place-1 .gb-seat-medal{background:linear-gradient(#f3d66d,#d9a93a)}.gb-seat.place-3 .gb-seat-medal{background:linear-gradient(#e7b48a,#b8784f)}
.gb-seat-name{max-width:100%;margin-top:4px;padding:3px 10px;box-sizing:border-box;border:2px solid var(--vs-ink);border-radius:10px;background:var(--ink-plum-2);color:var(--cream-250);font:15px/1.1 Lucky,system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gb-seat.is-you .gb-seat-name{background:#6b4a12;color:#ffe7a8}
.gb-seat-damage{display:inline-flex;align-items:center;gap:3px;margin-top:4px;padding:2px 10px 2px 4px;border:2px solid #8f7350;border-radius:10px;background:linear-gradient(#fffaf0,#f1dfb7);color:var(--text-on-cream);font:17px/1 Lucky,system-ui,sans-serif;font-variant-numeric:tabular-nums;box-shadow:0 2px 0 #a58460}
.gb-seat-damage>img{width:20px;height:20px;object-fit:contain}
.gb-seat.is-empty .gb-seat-medal{opacity:.7}
.gb-rank-board{display:flex;flex-direction:column;flex:1;min-height:0;gap:6px;padding:8px;border:2px solid #b39b78;border-radius:18px;background:linear-gradient(var(--cream-200),#efdcb0);box-shadow:inset 0 2px #fff,0 3px 0 #a58460}
.gb-rank-list{flex:1;min-height:0;display:grid;grid-auto-rows:52px;align-content:start;gap:6px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y}
.gb-rank-row{display:grid;grid-template-columns:34px 40px minmax(0,1fr) 46px 70px;align-items:center;gap:6px;min-height:52px;box-sizing:border-box;padding:3px 12px 3px 6px;border:2px solid #d2b98c;border-radius:14px;background:linear-gradient(#fffaf0,#f6e8c8);color:var(--text-on-cream)}
.gb-rank-place{display:grid;place-items:center;width:34px;height:34px;box-sizing:border-box;border:2px solid #8f7350;border-radius:50%;background:radial-gradient(circle at 50% 35%,#fff3d6,#d9bd8a);font:17px/1 Lucky,system-ui,sans-serif;color:var(--ink-brown)}
.gb-rank-head>img{display:block;width:40px;height:40px;box-sizing:border-box;object-fit:cover;border:2px solid var(--vs-ink);border-radius:10px;background:linear-gradient(#ffe7a6,#f3b54a)}
.gb-rank-name{min-width:0;font:17px/1.1 Lucky,system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gb-rank-attacks{display:inline-flex;align-items:center;gap:2px;font:15px/1 Lucky,system-ui,sans-serif;color:#7a5838}
.gb-rank-attacks>img{width:24px;height:24px;object-fit:contain}
.gb-rank-damage{font:19px/1 Lucky,system-ui,sans-serif;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.gb-rank-mine{flex:none}
.gb-rank-row.is-own{border-color:#b07a1c;background:linear-gradient(#fff1b8,#f7c75a);box-shadow:0 0 0 2px #ffe08a,0 3px 0 #a5741c}
.gb-rank-row.is-own .gb-rank-place{border-color:#b07a1c;background:radial-gradient(circle at 50% 35%,#fffbe8,#f3c35a)}
.gb-rank-empty{margin:auto;color:#7a5838;font:15px/1.2 Lucky,system-ui,sans-serif;text-align:center}
@media (max-height:700px){.gb-rank-list{grid-auto-rows:48px}.gb-rank-row{min-height:48px}.gb-rank-head>img{width:38px;height:38px}}
@media (prefers-reduced-motion:reduce){.gb-bonus-rays,.gb-stage.is-bonus .gb-stage-light,.gb-seat-stand,.gb-cloud{animation:none}}

/* ---- Sheets: result, bonus hour, help ---- */
.gb-result{display:grid;gap:8px;text-align:center}
.gb-result-damage{display:grid;gap:4px;justify-items:center;padding-top:20px}
.gb-result-damage>small{display:block;font-size:13px;line-height:1.2}
.gb-result-damage>b{font:36px/1 Lucky,system-ui,sans-serif}
.gb-result-bonus{display:inline-flex;align-items:center;gap:4px;min-height:36px;padding:0 12px 0 2px;border:2px solid #2f5a1e;border-radius:999px;background:linear-gradient(#d4f59d,#8bd252);color:#fff;font:18px/1 Lucky,system-ui,sans-serif;-webkit-text-stroke:3px #2f5a1e;paint-order:stroke fill}
.gb-result-bonus .gb-orb{width:30px;height:30px}.gb-result-bonus .gb-orb-arrow{display:none}
.gb-result-bonus>img{width:32px;height:32px;object-fit:contain}
.gb-result-bonus.is-rally{border-color:#7a4510;background:linear-gradient(#fff4c8,#ffd86e 55%,#f3b13f);-webkit-text-stroke-color:#7a3f0a}
.gb-result-row{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:36px;padding:0 4px;border-top:1px solid #92745a66}
.gb-result-row b{display:inline-flex;align-items:center;gap:4px;font:18px/1 Lucky,system-ui,sans-serif}
.gb-bracket{display:inline-flex;gap:0;margin-left:4px}
.gb-bracket>.ui-icon{width:16px;height:16px}.gb-bracket>.ui-icon:not(.is-on){filter:grayscale(1);opacity:.4}
.gb-points-icon{width:28px;height:28px;object-fit:contain}
.gb-result-kill{margin:4px 0 0;font:20px/1.1 Lucky,system-ui,sans-serif;color:var(--vs-good)}
.gb-result-next{margin:0;font-size:15px}
.gb-plan{display:grid;gap:12px;justify-items:center}
.gb-plan-gong{width:72px;height:72px;margin:-4px 0 -6px;object-fit:contain}
.gb-sheet-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.gb-chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;box-sizing:border-box;padding:2px 12px 2px 4px;border:2px solid #8b7493;border-radius:999px;background:#191820;color:var(--cream-50);font:15px/1.1 Lucky,system-ui,sans-serif;white-space:nowrap}
.gb-chip>b{font:inherit}
.gb-chip.is-rally{border-color:#ffd34f;background:#3d3014;color:#ffe7a8}
.gb-chip.is-pending{padding-left:12px}
.gb-chip-icon{width:28px;height:28px;object-fit:contain;flex:none}
#modal .gb-hour-stepper{grid-template-columns:56px minmax(110px,160px) 56px;justify-content:center;max-width:none}
#modal .gb-hour-stepper>button:is(:first-of-type,:last-of-type){min-width:0;padding-inline:3px;font-size:22px}
#modal .gb-hour-stepper>button{height:var(--tier-full-h,56px);min-height:var(--tier-full-h,56px)}
#modal .gb-hour-stepper>output{height:var(--tier-full-h,56px);font:20px/1 Lucky,system-ui,sans-serif}
.gb-sheet-actions{display:grid;grid-template-columns:repeat(var(--n,2),minmax(0,1fr));gap:8px;width:100%}
.gb-sheet-actions.is-1{--n:1}
#modal .gb-sheet-actions>button.secondary{width:100%;min-width:0;margin:0;white-space:nowrap}
.gb-help-body{max-height:calc(100dvh - 210px - var(--safe-top,0px) - var(--safe-bottom,0px));overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
.gb-help p{margin:4px 0 0;font-size:14px;line-height:1.25;text-align:left}

/* ---- Shops: the Bamboo Exchange grid (.exchange-view) with a second currency and two tabs ---- */
.guild-shops-view .gb-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:none}
.guild-shops-view .gb-tabs>button.secondary{width:100%;min-width:0;margin:0;white-space:nowrap}
/* Owner 2026-11-21 ("nieciekawie wyglądają odstępy w całym tym górnym headerze"): one rhythm, title → tabs → wallet
   line → cards, 8px (6px on short screens); the wallet line spans the card edges: the chip on the left edge, the
   weekly reset on the right edge, both centred on the chip's line. */
#online.guild-shops-view #content{gap:8px}
#online.guild-shops-view #content>h1{margin:0}
.guild-shops-view .gs-wallet-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;gap:8px;margin:0;min-height:24px}
.gs-reset{min-width:0;font:800 12px/1.2 system-ui;color:var(--cream-300,#f3e3c3);text-align:right}
@media(max-height:730px){#online.guild-shops-view #content{gap:6px}}
#online.guild-shops-view .catalog .exchange-price>.button-label .gs-guild-coin{width:30px;height:30px}
.guild-shops-view .exchange-card-art .gs-cosmetic-art .ui-icon{width:56px;height:56px}
.guild-shops-view .paper.is-gone .exchange-card-art{filter:saturate(.4);opacity:.75}
.exchange-balance .gs-currency{width:24px;height:24px}
/* Owner 2026-11-21 ("to miałeś pomniejszyć"): the wallet is the HUD currency chip's size (the header chips: 1px #53515e
   edge on #15151c, 13px heavy numbers, 24px tall with their icon), the icon inside it, 2px from the edge. */
.exchange-wallet>.exchange-chip.gs-wallet-chip{gap:4px;min-height:24px;height:24px;padding:0 9px 0 2px;border:1px solid #53515e;border-radius:999px;background:#15151c;box-shadow:none;font:800 13px/1 system-ui}
.exchange-wallet>.exchange-chip.gs-wallet-chip>img.gs-currency{width:20px;height:20px;object-fit:contain;filter:drop-shadow(0 1px 0 #0007)}
/* Owner 2026-11-21 ("tytuły to inaczej przedstawiamy"): a title is its title badge (titles-ui.css) across the card,
   with no item tile behind it; the purchase sheet shows it one size up. */
.exchange-view .exchange-catalog .exchange-card-art.gs-title-art,#modal .exchange-detail-art.gs-title-art{width:100%;border:0;border-radius:0;background:none;box-shadow:none}
.gs-title-badge{--badge-h:28px;width:max-content;max-width:calc(100% - 12px);height:var(--badge-h);padding:0 12px;white-space:nowrap}
.gs-title-badge>.title-badge-text{font-size:15px;line-height:1.2;white-space:nowrap}
#modal .gs-title-badge{--badge-h:34px;padding:0 15px}
#modal .gs-title-badge>.title-badge-text{font-size:18px}
#online.guild-shops-view .catalog .exchange-price>.button-label img.gs-currency{width:30px;height:30px;object-fit:contain;flex:none}
#modal .exchange-cost img.gs-currency{width:26px;height:26px;object-fit:contain}
/* Owner 2026-11-21: Ranking is a podium icon in the bar beside Back (same 48px face); the stage has no rounds. */
#tabs>.gb-rank-button{flex:none;display:grid;place-items:center;width:54px;height:48px;min-height:48px;margin:0;padding:0;border-radius:14px}
#tabs>.gb-rank-button:before{inset:0}
#tabs>.gb-rank-button img{width:34px;height:34px;object-fit:contain}
/* Owner 2026-11-21 ("w lewym górnym rogu coś źle wygląda"): the HUD sat loose on the sky; it gets a dark rounded plate,
   and the stage its rounded frame like the other cards. */
.gb-stage{border-radius:16px}
.gb-hud{padding:6px 10px 6px 6px;border-radius:14px;background:linear-gradient(#1b1220cc,#1b1220a6);box-shadow:inset 0 1px #ffffff22,0 2px 6px #0006}
/* Owner 2026-11-21: the ladder crest is gone; the HUD is name and bar, then the orbs. */
.gb-hud{grid-template-columns:minmax(0,1fr) auto}
.gb-hud .gb-hud-name{grid-row:1;grid-column:1}
.gb-hud .duel-bar{grid-row:2;grid-column:1}
.gb-hud .gb-hud-orbs{grid-column:2}
/* Owner 2026-11-21: a guild member wearing a guild frame (guildMemberAvatar): the frame replaces the row's avatar box
   edge, the portrait sits in the frame's opening like the profile card's. The guild frames are plain square frames
   with the shared 7% corner and never shine. */
.guild-avatar:has(>.guild-member-framed){border:0;border-radius:0;background:none;overflow:visible}
.guild-avatar>.guild-member-framed{position:relative;display:block;width:100%;height:100%;border-radius:7%}
.guild-avatar>.guild-member-framed>img{position:absolute;display:block;margin:0;padding:0;border:0;box-shadow:none}
.guild-avatar>.guild-member-framed>.avatar-portrait{inset:var(--avatar-inset);width:calc(100% - 2*var(--avatar-inset));height:calc(100% - 2*var(--avatar-inset));object-fit:cover;border-radius:4%}
.guild-avatar>.guild-member-framed.is-default>.avatar-portrait{object-fit:contain;object-position:50% 85%}
.guild-avatar>.guild-member-framed>.avatar-frame{inset:0;width:100%;height:100%;border-radius:0}

/* Owner 2026-11-21: the boss HUD is one line. The bar carries the name (left) and the percent (right); the orbs follow
   with their arrow on the orb's lower-right corner instead of hanging under it. */
.gb-hud{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:28px;row-gap:0;align-items:center;padding:5px 8px 5px 5px}
.gb-hud .duel-bar{grid-row:1;grid-column:1;height:28px}
.gb-hud .gb-hud-name{position:absolute;inset:0 62px 0 calc(var(--duel-slant) + 8px);grid-area:auto;display:flex;align-items:center;font:17px/1 Lucky,system-ui,sans-serif}
.gb-hud .gb-hud-name .gb-name{-webkit-text-stroke:3.5px var(--duel-ink)}
.gb-hud .gb-pool-pct{inset:0 9px 0 auto;place-items:center end}
.gb-hud .gb-hud-orbs{grid-row:1;grid-column:2;gap:8px;padding:0 4px 0 0}
.gb-hud .gb-orb{width:30px;height:30px}
.gb-hud .gb-orb-arrow{left:auto;right:-5px;bottom:-3px;width:14px;height:12px;translate:none}
/* Owner 2026-11-21: the attack result. The damage is the hero number on a navy plate with its bonus beside it; the pool
   (with a before/after meter) and the Hunter points are two cards, and the button keeps a gap from them. */
.gb-result{gap:10px;padding-bottom:8px}
.gb-result-damage{gap:6px;margin-top:20px;padding:10px 12px 12px;border:2px solid #cba967;border-radius:14px;background:linear-gradient(#294459,#1b3044);box-shadow:0 3px 0 #142334;color:var(--cream-300)}
.gb-result-damage>small{font:800 11px/1 system-ui;letter-spacing:.08em;text-transform:uppercase;color:#cfe0ea}
.gb-result-hit{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 12px}
.gb-result-hit>b{font:44px/1 Lucky,system-ui,sans-serif;color:#fff3d8;-webkit-text-stroke:5px #142334;paint-order:stroke fill;font-variant-numeric:tabular-nums}
.gb-result-stats{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.gb-result-stats>.gb-result-row{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;justify-content:stretch;align-content:start;gap:5px;min-height:0;padding:8px 6px 9px;border:2px solid #d8bf8f;border-radius:12px;background:#fff8e4;box-shadow:0 2px 0 #c9a56a66}
.gb-result-stats>.gb-result-row:last-child:nth-child(odd){grid-column:1/-1}
.gb-result-stats>.gb-result-row>span:first-child{font:700 12px/1.2 system-ui;color:#7a5a32}
.gb-result-stats>.gb-result-row b{font:18px/1 Lucky,system-ui,sans-serif;white-space:nowrap}
.gb-result-meter{position:relative;display:block;width:100%;max-width:150px;height:10px;border:1.5px solid #3a2414;border-radius:999px;background:#2c2132;overflow:hidden}
.gb-result-meter>i{position:absolute;inset:0 auto 0 0;border-radius:inherit;background:linear-gradient(#9be07a,#58b23c)}
.gb-result-meter>i.is-lost{background:#ffd9a0}
.gb-result-stats .gb-bracket{margin:0}
.gb-result-stats .gb-bracket>.ui-icon{width:18px;height:18px}
/* Owner 2026-11-21: centre the result ribbon on the sheet. */
.gb-result>.reward-claim-ribbon{justify-self:center;margin-inline:auto}
