/* Visual pass 2 (see docs/visual-study.md): depth on everything. Chunky buttons with a lip and a gloss line, framed panels with a highlight and an outline, medallion HUD buttons with
   a gold ring, outlined numbers, glossy badges, segmented tabs. Loaded after style.css so it restyles the shared pieces without touching their layout. */
:root {
  --ink: #0B0E17;
  --btn1: #56628C; --btn2: #39436B; --btn3: #272F4E; --btn-lip: #0E1120;
  --gold1: #FFE58A; --gold2: #F2B63D; --gold3: #C98618; --gold-lip: #6B4208;
  --green1: #A6F591; --green2: #43B450; --green3: #2A8A3A; --green-lip: #17501F;
  --teal1: #82E8F4; --teal2: #29AFC8; --teal3: #1B7F9A; --teal-lip: #0C4558;
  --red1: #FF8F80; --red2: #D6453B; --red3: #A12A24; --red-lip: #5A1410;
  --outline: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink), 0 2px 0 var(--ink);
}
body { background: radial-gradient(120% 60% at 50% 0, #1C2240, var(--bg) 70%) fixed, var(--bg); }

/* buttons */
button { border: 2px solid var(--ink); border-radius: 12px; background: linear-gradient(180deg, var(--btn1) 0%, var(--btn2) 55%, var(--btn3) 100%); font-weight: 600; text-shadow: 0 1px 0 rgba(0, 0, 0, .65);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .30), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 3px 0 var(--btn-lip), 0 6px 8px rgba(0, 0, 0, .32); transition: transform .06s ease, box-shadow .06s ease, filter .15s; }
button:hover:not(:disabled) { border-color: var(--ink); filter: brightness(1.1); }
button:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 1px 0 var(--btn-lip), 0 2px 4px rgba(0, 0, 0, .3); }
button:disabled { opacity: 1; filter: grayscale(.85) brightness(.62); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 2px 0 var(--btn-lip); }
button.primary { clip-path: none; padding-right: 14px; color: #2B1A05; border-color: #4A2E06; text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  background: linear-gradient(180deg, var(--gold1) 0%, var(--gold2) 55%, var(--gold3) 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(120, 70, 0, .3), 0 3px 0 var(--gold-lip), 0 6px 10px rgba(0, 0, 0, .4); }
button.primary:active:not(:disabled) { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(120, 70, 0, .3), 0 1px 0 var(--gold-lip), 0 2px 4px rgba(0, 0, 0, .3); }
button.danger { color: #fff; border-color: #3A0C09; background: linear-gradient(180deg, var(--red1), var(--red2) 55%, var(--red3)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(90, 20, 16, .35), 0 3px 0 var(--red-lip), 0 6px 8px rgba(0, 0, 0, .32); }
button.go { color: #fff; border-color: #0E3A14; text-shadow: var(--outline); background: linear-gradient(180deg, var(--green1), var(--green2) 55%, var(--green3)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(20, 80, 30, .35), 0 3px 0 var(--green-lip), 0 6px 8px rgba(0, 0, 0, .32); }
button.teal { color: #fff; border-color: #07303D; text-shadow: var(--outline); background: linear-gradient(180deg, var(--teal1), var(--teal2) 55%, var(--teal3)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(10, 60, 80, .35), 0 3px 0 var(--teal-lip), 0 6px 8px rgba(0, 0, 0, .32); }
button.on { color: #2B1A05; border-color: #4A2E06; background: linear-gradient(180deg, var(--gold1), var(--gold2) 55%, var(--gold3)); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 3px 0 var(--gold-lip), 0 5px 8px rgba(0, 0, 0, .35); }
select { border: 2px solid var(--ink); border-radius: 10px; background: linear-gradient(180deg, #2F3858, #232A44); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .45); }
input[type=text], input[type=number], input:not([type]), textarea { border: 2px solid var(--ink); border-radius: 10px; background: #151A2E; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .55); }

/* panels */
.card { border: 2px solid var(--ink); border-radius: 14px; background: linear-gradient(180deg, #2B3453 0%, #1D2339 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px #4A5580, 0 4px 10px rgba(0, 0, 0, .35); }
.card.locked { filter: saturate(.5); }
.job { border: 2px solid var(--ink); border-radius: 10px; background: linear-gradient(180deg, #2B3453, #1D2339); } .job.res { border-color: var(--ink); box-shadow: inset 0 0 0 1px #8A7336; }
.job .bar { height: 5px; border-radius: 3px; background: #0E1220; } .job .bar i { background: linear-gradient(180deg, #FFE58A, #E8A21E); border-radius: 3px; }
.card .bar, .gl .bar { height: 12px; margin-top: 8px; border-radius: 7px; background: #0E1220; border: 2px solid var(--ink); overflow: hidden; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .5); }
.card .bar i, .gl .bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(180deg, #FFF0A8 0%, #F2B63D 55%, #C98618 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5); }
.mdl { border: 3px solid var(--ink); border-radius: 18px; background: linear-gradient(180deg, #2C3556 0%, #1A2038 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 0 0 2px rgba(242, 193, 79, .35), 0 0 0 2px #F2C14F, 0 16px 40px rgba(0, 0, 0, .65); }
.mdl h3, .card h3 { text-shadow: 0 2px 0 rgba(0, 0, 0, .55); }
.mdl-x { color: #fff; }
.mdl-x, .wmc-x { width: 34px; min-height: 34px; border-radius: 50%; border: 2px solid #fff; background: radial-gradient(circle at 35% 28%, var(--red1), var(--red2) 60%, var(--red3)); box-shadow: 0 0 0 2px var(--ink), 0 2px 0 2px var(--red-lip); top: 8px; right: 8px; }
.mdl-x svg.ico, .wmc-x svg.ico { stroke-width: 2.6; }
.group-title { text-shadow: 0 1px 0 #000; color: #C9CFE4; }
.group-title::before { background: linear-gradient(135deg, #FFE58A, #C98618); border: 1px solid var(--ink); }
.rq, .stat td { border-bottom-color: rgba(255, 255, 255, .08); }
#toast { border: 2px solid var(--ink); border-radius: 14px; background: linear-gradient(180deg, #3A4570, #232B4A); box-shadow: 0 0 0 2px #F2C14F, 0 6px 14px rgba(0, 0, 0, .5); font-weight: 600; text-shadow: 0 1px 0 #000; }

/* title bar of a panel and its close button */
#panel-bar { height: 48px; background: linear-gradient(180deg, #43517F 0%, #29325A 60%, #1C2344 100%); border-bottom: 3px solid var(--ink); box-shadow: 0 2px 0 #F2C14F, 0 6px 12px rgba(0, 0, 0, .45); color: #FFF3C8; text-shadow: 0 2px 0 var(--ink), 0 0 10px rgba(242, 193, 79, .5); }
#panel-x { top: 5px; right: 8px; width: 38px; min-height: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; background: radial-gradient(circle at 35% 28%, var(--red1), var(--red2) 60%, var(--red3)); box-shadow: 0 0 0 2px var(--ink), 0 2px 0 2px var(--red-lip); color: #fff; }
#panel-x svg.ico { stroke-width: 2.6; }
#panel-back { padding-left: 12px; }

/* tabs */
.hd-tabs { gap: 5px; padding: 4px; border: 0; border-radius: 14px; background: #0F1322; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .65), 0 1px 0 rgba(255, 255, 255, .08); }
.hd-tabs button { border: 0; border-radius: 10px; min-height: 38px; background: transparent; box-shadow: none; text-shadow: none; color: #AEB7D0; }
.hd-tabs button:hover:not(:disabled) { filter: none; color: #fff; }
.hd-tabs button.on { color: #2B1A05; background: linear-gradient(180deg, var(--gold1), var(--gold2) 55%, var(--gold3)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 2px 0 var(--gold-lip); text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
.chips button.on { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 3px 0 var(--gold-lip); }
.tbd { background: radial-gradient(circle at 35% 30%, var(--red1), var(--red2) 60%, var(--red3)); color: #fff; border: 2px solid #fff; padding: 0 5px; line-height: 14px; text-shadow: 0 1px 0 rgba(0, 0, 0, .6); box-shadow: 0 0 0 1px var(--ink); }

/* header: resource pills with a coin of colour overlapping the edge, outlined numbers, the gem bar */
#top { gap: 12px; padding-bottom: 8px; background: linear-gradient(180deg, #2F3960 0%, #1B2240 100%); border-bottom: 3px solid var(--ink); box-shadow: 0 2px 0 #6B5A2E, 0 5px 10px rgba(0, 0, 0, .4); }
.res { position: relative; flex-direction: column; justify-content: center; min-height: 40px; padding: 1px 4px 1px 22px; border: 2px solid var(--ink); border-radius: 13px; background: linear-gradient(180deg, #0C101E, #1A2138); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.res .rico { position: absolute; left: -9px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .55)); } .res .rico .ico2 { width: 100%; height: 100%; }
.res b { font-size: 14px; line-height: 1.1; text-shadow: var(--outline); margin: 0; } .res small { font-size: 10px; min-height: 11px; line-height: 1.1; color: #9AD6A0; text-shadow: 0 1px 0 #000; }
.lpow b, .cart b { text-shadow: var(--outline); } .lpow .ico2, .lpow .pwr { width: 20px; height: 20px; }
.lshield svg { fill: #2A3358; stroke: #F2C14F; stroke-width: 2; filter: drop-shadow(0 2px 0 var(--ink)); } .lshield b { text-shadow: var(--outline); color: #FFE58A; }
.cart { position: relative; display: flex; align-items: center; gap: 4px; min-height: 40px; padding: 2px 8px 2px 6px; border: 2px solid var(--ink); border-radius: 13px; background: linear-gradient(180deg, #FFD75E 0%, #E8A21E 55%, #B9741A 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 3px 0 #6B4208; }
.cart svg.ico { width: 20px; height: 20px; color: #5A3004; stroke-width: 2; } .cart .gem { width: 22px; height: 22px; } .cart b { color: #fff; font-size: 14px; }

/* the home buttons become medallions: a gold-ringed disc, the label outlined below */
.hbtn, .chip { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0; gap: 2px; min-height: 0; width: 54px; }
.hbtn > svg.ico, .chip > svg.ico { width: 46px; height: 46px; padding: 11px; border-radius: 50%; color: #fff; stroke-width: 2.1; background: radial-gradient(circle at 35% 25%, #707FB8, #38426B 58%, #232A47); border: 3px solid #F2C14F; box-shadow: 0 0 0 2px var(--ink), 0 3px 0 2px #6B4208, 0 6px 8px rgba(0, 0, 0, .4); }
.hbtn .ic2 { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 25%, #707FB8, #38426B 58%, #232A47); border: 3px solid #F2C14F; box-shadow: 0 0 0 2px var(--ink), 0 3px 0 2px #6B4208, 0 6px 8px rgba(0, 0, 0, .4); }
.hbtn .ic2 .ico2 { width: 30px; height: 30px; }
.hbtn.sm { width: 50px; } .hbtn.sm > svg.ico, .hbtn.sm .ic2 { width: 42px; height: 42px; } .hbtn.sm > svg.ico { padding: 10px; } .hbtn.sm .ic2 .ico2 { width: 28px; height: 28px; }
.hbtn > span:last-of-type, .chip b { color: #fff; font: 700 10px/1.05 var(--font-ui); text-shadow: var(--outline); margin-top: 3px; }
.chip.busy > svg.ico { border-color: #fff; background: radial-gradient(circle at 35% 25%, #8AA0E8, #3A55A8 58%, #24306A); } .chip.busy b { color: #FFE58A; }
.chip.ready > svg.ico, .chip.collect > svg.ico { background: radial-gradient(circle at 35% 25%, var(--green1), var(--green2) 58%, var(--green3)); border-color: #fff; animation: chipPulse 1.1s ease-in-out infinite alternate; } .chip.ready b, .chip.collect b { color: #fff; font-size: 12px; }
@keyframes chipPulse { to { transform: scale(1.08); } } @media (prefers-reduced-motion: reduce) { .chip.ready > svg.ico, .chip.collect > svg.ico { animation: none; } }
.cbar { left: 7px; right: 7px; bottom: -3px; height: 5px; border-radius: 3px; background: #0E1220; border: 1px solid var(--ink); } .cbar u { border-radius: 3px; background: linear-gradient(180deg, #FFF0A8, #E8A21E); }
.bd { top: -5px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; clip-path: none; border-radius: 10px; border: 2px solid #fff; background: radial-gradient(circle at 35% 30%, var(--red1), var(--red2) 60%, var(--red3)); color: #fff; font: 700 11px/16px var(--font-ui); text-shadow: 0 1px 0 rgba(0, 0, 0, .6); box-shadow: 0 0 0 1px var(--ink), 0 2px 3px rgba(0, 0, 0, .5); }
.big { width: 84px; min-height: 74px; border: 3px solid var(--ink); border-radius: 18px; background: linear-gradient(180deg, var(--teal1) 0%, var(--teal2) 52%, var(--teal3) 100%); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), inset 0 -5px 0 rgba(10, 60, 80, .28), 0 4px 0 var(--teal-lip), 0 9px 12px rgba(0, 0, 0, .45); }
.big svg.ico { width: 32px; height: 32px; color: #fff; stroke-width: 2.2; filter: drop-shadow(0 2px 0 var(--ink)); } .big span { color: #fff; font: 700 15px/1 var(--font-display); letter-spacing: .06em; text-shadow: var(--outline); }
.big:active { transform: translateY(2px); }
#qline, #h-chat { border: 2px solid var(--ink); border-radius: 14px; background: linear-gradient(180deg, rgba(43, 52, 83, .96), rgba(24, 30, 52, .96)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 8px rgba(0, 0, 0, .45); }
#qline .qt { text-shadow: 0 1px 0 #000; } #qline.done { border-color: #F2C14F; box-shadow: inset 0 0 0 1px #F2C14F, 0 0 12px rgba(242, 193, 79, .5); }
.scene-ui button { border-radius: 50%; width: 42px; min-height: 42px; }

/* the radial menu on a tapped building, collect bubbles */
.rd { width: 54px; height: 54px; border: 4px solid #fff; color: #fff; background: radial-gradient(circle at 35% 25%, var(--teal1), var(--teal2) 55%, var(--teal3)); box-shadow: 0 0 0 2px var(--ink), 0 4px 0 2px var(--teal-lip), 0 9px 12px rgba(0, 0, 0, .5); }
.rd.go { background: radial-gradient(circle at 35% 25%, var(--green1), var(--green2) 55%, var(--green3)); color: #fff; box-shadow: 0 0 0 2px var(--ink), 0 4px 0 2px var(--green-lip), 0 9px 12px rgba(0, 0, 0, .5); }
.rd svg.ico { width: 24px; height: 24px; stroke-width: 2.4; filter: drop-shadow(0 1px 0 var(--ink)); } .rd small { text-shadow: var(--outline); font-weight: 700; }
.rlabel { border: 3px solid var(--ink); border-radius: 14px; background: linear-gradient(180deg, #FFF8E0, #E8D9A8); color: #2B1A05; box-shadow: 0 0 0 2px #F2C14F, 0 4px 8px rgba(0, 0, 0, .4); text-shadow: none; }
.cb { background: linear-gradient(180deg, #FFFFFF, #DCE2F0); color: #1B2030; border: 3px solid var(--ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 3px 0 var(--ink), 0 6px 8px rgba(0, 0, 0, .35); } .cb::after { border-top-color: var(--ink); bottom: -9px; margin-left: -6px; border-width: 6px; }
.cb.full { border-color: var(--ink); background: linear-gradient(180deg, #FFE0DA, #FF9A8C); } .cb.full::after { border-top-color: var(--ink); }
.bub { background: linear-gradient(180deg, #FFFFFF, #DCE2F0); color: #1B2030; border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.gain { text-shadow: var(--outline); color: #FFE58A; }
.inv-i, .hc { border-radius: 12px; border: 2px solid var(--ink); background: linear-gradient(180deg, #2B3453, #1D2339); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 0 0 1px #4A5580, 0 3px 6px rgba(0, 0, 0, .3); }

/* header fit: the lord block stacks (shield over power), the cart bar is just gems and a plus */
#top { padding-left: 8px; padding-right: 8px; gap: 10px; }
.lord { flex-direction: column; align-items: center; gap: 0; min-width: 46px; } .lshield { width: 32px; height: 36px; } .lshield b { font-size: 15px; }
.lpow { font-size: 11px; gap: 2px; margin-top: -1px; } .lpow .pwr { width: 14px; height: 14px; }
.cart > svg.ico { display: none; } .cart::after { content: "+"; display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: linear-gradient(180deg, var(--green1), var(--green3)); color: #fff; font: 700 14px/1 var(--font-ui); text-shadow: 0 1px 0 #000; }
.cart { padding: 2px 6px 2px 4px; } .cart b { font-size: 13px; }
@media (hover: none) { #z-in, #z-out { display: none; } }

/* stage campaign (stage.js): chapter road, stage card, hero slots, idle chest; the battle canvas with its HUD and result card */
body[data-panel="battle"].stg-on #top, body[data-panel="battle"].stg-on #panel-bar, body[data-panel="battle"].stg-on #panel-back { display: none; }
#tab-battle.fighting { padding: 0 0 env(safe-area-inset-bottom); padding-top: env(safe-area-inset-top); overflow: hidden; } #tab-battle.fighting #cmp-box { display: none; } #tab-battle:not(.fighting) #stg-wrap { display: none; }
.cmp-map { position: relative; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); margin-bottom: 10px; }
.cmp-path { display: block; width: 100%; height: auto; }
.cmp-pulse { transform-box: fill-box; transform-origin: center; animation: cmpp 1.6s ease-in-out infinite; } @keyframes cmpp { 50% { transform: scale(1.35); opacity: .1; } }
.cmp-ch { position: absolute; left: 10px; top: 8px; display: flex; flex-direction: column; color: #fff; text-shadow: var(--outline); }
.cmp-ch b { font: 700 20px/1 var(--font-display); letter-spacing: .03em; } .cmp-ch span { font-size: 12px; font-weight: 700; }
.cmp-prog { position: absolute; right: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(11, 14, 23, .7); color: var(--gold1); font-size: 12px; font-weight: 800; }
.cmp-card { display: flex; flex-direction: column; gap: 8px; }
.cmp-st { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cmp-n { font: 800 24px/1 var(--font-ui); color: #fff; text-shadow: var(--outline); } .cmp-goal { font-size: 13px; font-weight: 700; color: var(--gold1); }
.cmp-pw { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); } .cmp-pw b { color: var(--text); } .cmp-pw b.ok { color: #8BE07A; } .cmp-pw b.warn { color: var(--gold2); } .cmp-pw b.bad { color: var(--red1); }
.cmp-pw .tag { padding: 2px 8px; border-radius: 999px; font-weight: 800; color: var(--ink); background: #8BE07A; } .cmp-pw .tag.warn { background: var(--gold2); } .cmp-pw .tag.bad { background: var(--red1); }
.cmp-team { display: flex; gap: 8px; align-items: stretch; }
.cmp-slot { position: relative; flex: 1; min-width: 0; aspect-ratio: 3 / 4; padding: 0; border-radius: 10px; overflow: hidden; border: 3px solid #6FA0E8; background: #1B2030; display: grid; place-items: center; font-size: 28px; color: var(--muted); }
.cmp-slot.SSR { border-color: #B58AE6; } .cmp-slot.UR { border-color: #F2C14F; } .cmp-slot.empty { border-style: dashed; border-color: #4A5580; }
.cmp-slot svg { width: 100%; height: 100%; display: block; }
.cmp-slot i { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; font: 800 11px/1.2 var(--font-ui); font-style: normal; color: #fff; text-shadow: var(--outline); background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); }
.cmp-slot small { position: absolute; top: 3px; right: 4px; font-size: 10px; font-weight: 800; color: var(--gold1); text-shadow: var(--outline); }
.cmp-slot.on { box-shadow: 0 0 0 3px var(--gold1); }
.cmp-auto { flex: none; align-self: center; }
.cmp-go { font-size: 20px; padding: 12px; } .cmp-card .rwi { margin-right: 8px; }
.cmp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin: 8px 0; max-height: 52vh; overflow: auto; }
#stg-wrap { position: relative; height: 100%; display: flex; justify-content: center; background: #2D3A4E; }
#tab-battle #battle { width: 100%; max-width: none; height: 100%; object-fit: contain; border: 0; background: #6A707C; touch-action: none; }
#stg-hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; }
#stg-hud button { pointer-events: auto; }
.stg-top { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px 4px; }
.stg-x { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; flex: none; } span.stg-x { visibility: hidden; }
.stg-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stg-title > b { font: 900 20px/1 var(--font-ui); color: #fff; text-shadow: var(--outline); letter-spacing: .01em; }
.stg-kc { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px 2px 3px; border-radius: 999px; background: rgba(11, 14, 23, .78); border: 1.5px solid rgba(255, 255, 255, .18); }
.stg-kc svg { width: 22px; height: 22px; } .stg-kc b { font: 900 16px/1 var(--font-ui); color: #fff; min-width: 2ch; }
.stg-hint { margin-top: auto; margin-bottom: 26px; text-align: center; font-weight: 700; font-size: 14px; color: #fff; text-shadow: var(--outline); animation: stgh 1.2s ease-in-out infinite alternate; } @keyframes stgh { to { opacity: .55; } }
.stg-end { pointer-events: auto; margin: auto 0; padding: 0 0 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; background: radial-gradient(60% 50% at 50% 30%, rgba(40, 70, 140, .55), rgba(0, 0, 0, 0)); box-shadow: 0 0 0 9999px rgba(5, 8, 16, .62); }
.stg-emb { width: 120px; height: 110px; margin-bottom: -26px; position: relative; z-index: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.stg-rib { align-self: stretch; padding: 22px 0 8px; background: linear-gradient(90deg, rgba(47, 116, 216, 0), #2F74D8 18%, #4F9BFF 50%, #2F74D8 82%, rgba(47, 116, 216, 0)); box-shadow: 0 0 18px rgba(79, 155, 255, .5); }
.stg-rib span { font: 900 34px/1 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; color: #FFE58A; text-shadow: -2px -2px 0 #5A3A08, 2px -2px 0 #5A3A08, -2px 2px 0 #5A3A08, 2px 2px 0 #5A3A08, 0 4px 0 #5A3A08; }
.stg-end.lose .stg-rib { background: linear-gradient(90deg, rgba(90, 96, 117, 0), #5A6075 18%, #7A8197 50%, #5A6075 82%, rgba(90, 96, 117, 0)); box-shadow: none; } .stg-end.lose .stg-rib span { color: #E8ECF2; text-shadow: -2px -2px 0 #1B2030, 2px -2px 0 #1B2030, -2px 2px 0 #1B2030, 2px 2px 0 #1B2030, 0 4px 0 #1B2030; }
.stg-sub { font-weight: 800; font-size: 16px; color: #fff; text-shadow: var(--outline); }
.stg-rows { width: calc(100% - 40px); max-width: 320px; display: flex; flex-direction: column; gap: 6px; }
.stg-rows > div { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 8px; background: rgba(11, 14, 23, .72); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: 14px; }
.stg-rows svg { width: 22px; height: 22px; flex: none; } .stg-rows span { flex: 1; text-align: left; } .stg-rows b { font: 900 16px/1 var(--font-ui); }
.stg-rw { width: calc(100% - 40px); max-width: 320px; } .stg-rw .rw-grid { justify-content: center; }
.stg-end p { margin: 0 24px; font-size: 14px; color: #DCE2EE; } .stg-end .sub { color: #B8C0D2; }
.stg-btns { display: flex; gap: 10px; justify-content: center; width: calc(100% - 40px); max-width: 320px; } .stg-btns button { flex: 1; font-size: 17px; padding: 11px; }
/* the stage title card (stage.js introHtml): it fades in, holds and fades out over the intro's length */
.stg-intro { pointer-events: auto; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; text-align: center; cursor: pointer;
  background: radial-gradient(70% 50% at 50% 40%, rgba(40, 60, 110, .7), rgba(5, 8, 16, .9)); animation: sti 2.8s linear forwards; }
@keyframes sti { 0% { opacity: 0; } 9% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
.sti-art { position: relative; width: min(100%, 360px); aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; border: 3px solid #E8C46A; box-shadow: 0 0 0 2px #0B0E17, 0 8px 28px rgba(0, 0, 0, .6); margin-bottom: 8px; animation: stiz 2.8s ease-out both; }
.sti-art > svg { display: block; width: 100%; height: 100%; } @keyframes stiz { from { transform: scale(.92); } to { transform: scale(1); } }
.sti-art > img { position: absolute; right: -6%; bottom: -14%; height: 118%; width: auto; max-width: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .55)); animation: stih 2.8s ease-out both; } @keyframes stih { from { transform: translateX(14px); } to { transform: none; } }
.sti-ch { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #E8C46A; text-shadow: var(--outline); }
.sti-n { font: 900 40px/1 var(--font-ui); color: #fff; text-shadow: -2px -2px 0 #0B0E17, 2px -2px 0 #0B0E17, -2px 2px 0 #0B0E17, 2px 2px 0 #0B0E17, 0 4px 0 #0B0E17; }
.sti-name { font: 900 24px/1.1 var(--font-ui); color: #FFE58A; text-wrap: balance; text-shadow: -2px -2px 0 #5A3A08, 2px -2px 0 #5A3A08, -2px 2px 0 #5A3A08, 2px 2px 0 #5A3A08, 0 3px 0 #5A3A08; }
.sti-goal { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 12px 3px 3px; border-radius: 999px; background: rgba(11, 14, 23, .8); border: 1.5px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 700; font-size: 14px; }
.sti-goal svg { width: 22px; height: 22px; flex: none; }
.sti-fac { margin-top: 6px; padding: 3px 12px; border-radius: 999px; background: rgba(11, 14, 23, .8); border: 1.5px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 700; font-size: 13px; }
/* factions in battle: the enemy's faction as a pill in its colour, the edge in green or red */
.fac { display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--fc); color: #fff; font-weight: 800; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.edge { font-weight: 800; color: var(--muted); } .edge.up { color: #8BE07A; } .edge.down { color: var(--red1); }
.cmp-fac { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 13px; color: var(--muted); } .cmp-fac small { font-size: 11px; }
.pb-fac { position: relative; z-index: 2; text-align: center; margin-top: 4px; font-weight: 800; font-size: 13px; color: #fff; text-shadow: var(--outline); } .pb-fac .fac { text-shadow: none; }
.pb-edge { position: absolute; left: -6px; top: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); font-size: 10px; line-height: 1; color: #fff; text-decoration: none; }
.pb-edge.up { background: #43B450; } .pb-edge.down { background: #D2382E; }
.sti-tap { margin-top: 10px; font-size: 13px; font-weight: 700; color: #C8D0E0; animation: stgh 1.2s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .sti-art, .sti-art > img { animation: none; } }

/* VIP and lord profile (vip.js) */
.vipchip { min-height: 44px; } .vipchip .vipi { display: block; width: 28px; height: 24px; } .vipchip b { color: #FFE58A; font-weight: 800; }
.vipc { display: block; width: 56px; height: 50px; filter: drop-shadow(0 2px 0 var(--ink)); } .vipc.sm { width: 28px; height: 24px; }
.vp-head { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; border: 2px solid var(--ink); border-radius: 14px; background: linear-gradient(135deg, #5A1A2E, #2A1840 60%, #1D2339); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 4px 10px rgba(0, 0, 0, .35); }
.vp-head .grow { flex: 1; min-width: 0; } .vp-badge { display: flex; flex-direction: column; align-items: center; } .vp-badge b { font: 900 18px/1 var(--font-ui); color: #FFE58A; text-shadow: var(--outline); margin-top: 2px; }
.vp-pts { font-weight: 800; color: #fff; text-shadow: var(--outline); }
.vp-bar { height: 9px; margin-top: 6px; border-radius: 5px; background: #0B0E17; overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); } .vp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold3), var(--gold1)); }
.vp-daily { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.vp-daily button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; text-align: left; } .vp-daily .ico2 { width: 34px; height: 34px; flex: none; } .vp-daily span { display: flex; flex-direction: column; } .vp-daily small { font-size: 12px; opacity: .85; }
.vp-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; } .vp-nav b { font: 800 17px/1 var(--font-ui); color: #FFE58A; text-shadow: var(--outline); }
.vp-nav button { width: 40px; height: 36px; padding: 0; display: grid; place-items: center; } .vp-nav .flip svg { transform: scaleX(-1); }
.vp-list { display: flex; flex-direction: column; gap: 6px; }
.vp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(11, 14, 23, .45); font-size: 14px; }
.vp-row.new { background: rgba(242, 182, 61, .16); box-shadow: inset 0 0 0 1px rgba(242, 182, 61, .5); } .vp-row i { font-style: normal; font-size: 11px; font-weight: 900; padding: 2px 6px; border-radius: 4px; background: var(--red2); color: #fff; }
.vp-pack { display: flex; align-items: center; gap: 10px; } .vp-pack .grow { flex: 1; min-width: 0; } .vp-pack .rwi { margin-right: 8px; }
.lp-head { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; border: 2px solid var(--ink); border-radius: 14px; background: linear-gradient(135deg, #2F4A80, #1D2339); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 4px 10px rgba(0, 0, 0, .35); }
.lp-head .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lp-av { position: relative; width: 84px; height: 96px; padding: 0; border-radius: 12px; overflow: hidden; border: 3px solid #F2C14F; background: #1B2030; flex: none; }
.lp-av svg { width: 100%; height: 100%; display: block; } .lp-av i { position: absolute; left: 4px; bottom: 4px; min-width: 24px; padding: 2px 5px; border-radius: 999px; font: 900 13px/1.1 var(--font-ui); font-style: normal; color: #fff; background: #2F74D8; border: 1.5px solid var(--ink); }
.lp-name { display: flex; align-items: center; gap: 6px; } .lp-name b { font: 800 19px/1.1 var(--font-ui); color: #fff; text-shadow: var(--outline); overflow: hidden; text-overflow: ellipsis; }
.lp-ed { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 8px; }
.lp-vip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; font-weight: 800; color: #FFE58A; }
.lp-lv { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .lp-lv b { font: 800 17px/1 var(--font-ui); } .lp-lv span { font-size: 13px; color: var(--muted); }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 12px; }
.lp-stats div { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 10px; background: rgba(11, 14, 23, .5); border: 1px solid rgba(255, 255, 255, .1); min-width: 0; }
.lp-stats small { font-size: 11px; color: var(--muted); } .lp-stats b { font: 800 15px/1.1 var(--font-ui); color: #fff; overflow: hidden; text-overflow: ellipsis; }
.lc-note { margin: -4px 0 8px; } .lc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lc-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px; text-align: left; min-width: 0; }
.lc-card .lc-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 25%, #707FB8, #38426B 58%, #232A47); border: 2px solid #F2C14F; } .lc-card .lc-ic svg { width: 18px; height: 18px; color: #fff; }
.lc-card b { font-size: 15px; } .lc-card small { font-size: 12px; opacity: .85; line-height: 1.25; } .lc-card em { font-style: normal; font-size: 12px; font-weight: 800; color: #9CFF8A; }
.lord { cursor: pointer; }

/* Lord Status and Cosmetics (lordtitle.js) */
.lp-title { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 10px; border-radius: 8px; clip-path: none; text-align: left; background: linear-gradient(180deg, #F6D77A, #C98A1E); border: 2px solid #5B3A08; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); max-width: 100%; }
.lp-title b { font: 900 14px/1.15 var(--font-ui); color: #3A2205; } .lp-title small { font-size: 11px; font-weight: 700; color: #5B3A08; line-height: 1.2; }
.lp-tabs button { position: relative; } .lp-tabs .rd, .hd2-st .rd { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: #E0443B; border: 2px solid #fff; box-shadow: none; }
.gts, .gtc { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.gts-rib { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 8px; background: linear-gradient(180deg, #8A5A2B, #5B3A1C); border: 2px solid #2B1A08; color: #FFE9B8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); } .gts-rib b { font: 800 16px/1.1 var(--font-ui); } .gts-rib svg { color: #F2C14F; }
.gts-art { width: min(200px, 60%); aspect-ratio: 92 / 112; border-radius: 14px; overflow: hidden; border: 3px solid #F2C14F; background: #1B2030; position: relative; } .gts-art > svg { width: 100%; height: 100%; display: block; } .gts-art.sm { width: min(150px, 50%); margin: 0 auto 8px; }
.gts-box { align-self: stretch; padding: 10px; border-radius: 10px; background: rgba(11, 14, 23, .55); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 8px; } .gts-up { font-weight: 700; font-size: 14px; }
.gts-bar { display: flex; gap: 4px; } .gts-bar i { flex: 1; height: 12px; border-radius: 3px; background: #12151D; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); } .gts-bar i.on { background: linear-gradient(180deg, #9CFF8A, #2E9A4E); }
.gts-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; } .gts-have { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; } .gts-have .ico2 { width: 28px; height: 28px; } .gts-have b.short { color: #FF8A7A; }
.gts-row .go, .gts-row .primary { min-width: 130px; } .gts-prev { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 8px; border-radius: 10px; clip-path: none; background: linear-gradient(180deg, #8A62C8, #4E2E8A); border: 2px solid #2A1450; color: #fff; } .gts-prev small { font-size: 10px; }
.gtc-tabs { display: flex; gap: 4px; align-self: stretch; } .gtc-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; clip-path: none; border-radius: 8px; } .gtc-tabs button small { font-size: 10px; } .gtc-tabs button.on { background: #4F86D8; color: #fff; }
.gtc-name { font: 800 15px/1.2 var(--font-ui); } .gtc-name.q1 { color: #7FC0FF; } .gtc-name.q2 { color: #D8A8FF; } .gtc-name.q3 { color: #FFC266; }
.gtc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; align-self: stretch; }
.gtc-it { position: relative; padding: 4px; border-radius: 10px; clip-path: none; border: 2px solid transparent; } .gtc-it.q1 { background: linear-gradient(180deg, #5FB0F0, #2A6AB0); } .gtc-it.q2 { background: linear-gradient(180deg, #C58AF0, #7A3FC0); } .gtc-it.q3 { background: linear-gradient(180deg, #F2B04A, #A4661A); }
.gtc-it.sel { border-color: #FFE58A; box-shadow: 0 0 0 2px #F2C14F, 0 0 10px rgba(242, 193, 79, .6); } .gtc-it.lock .gt-art { filter: grayscale(.7) brightness(.6); }
.gtc-on, .gtc-lk { position: absolute; right: 3px; bottom: 3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; } .gtc-on { background: #2E9A4E; color: #fff; } .gtc-lk { background: rgba(11, 14, 23, .85); color: #fff; } .gtc-on svg, .gtc-lk svg { width: 12px; height: 12px; }
.gt-art { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 100 / 125; background: #1B2030; } .gt-art svg { width: 100%; height: 100%; display: block; }
.mdl.gt-promo { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; background: radial-gradient(circle at 50% 35%, #A77CF0, #5B2FA8 60%, #2A1450); color: #fff; }
.gt-promo h3 { margin: 0; font: 900 22px/1.1 var(--font-ui); color: #FFE58A; text-shadow: var(--outline); } .gtp-crown svg { width: 40px; height: 40px; color: #F2C14F; } .gtp-who { font-weight: 800; opacity: .85; }
.gt-promo .gts-art { width: min(220px, 70%); } .mdl.gt-promo > *, .gts > *, .gtc > * { flex: none; } .gtp-say { position: absolute; right: 6px; top: 6px; max-width: 60%; padding: 4px 8px; border-radius: 10px; background: #fff; color: #1E2340; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: left; }
.gtp-gain { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #9CFF8A; } .gtp-got { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .gtp-got span { padding: 4px 10px; border-radius: 8px; background: rgba(216, 168, 255, .25); border: 1px solid #D8A8FF; font-weight: 700; font-size: 13px; } .gtp-got i { font-style: normal; font-size: 10px; font-weight: 900; margin-right: 6px; padding: 1px 5px; border-radius: 4px; background: #E8423A; color: #fff; }
.gt-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; max-height: 60vh; overflow: auto; }
.gt-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(11, 14, 23, .08); } .gt-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; } .gt-row small { font-size: 12px; opacity: .75; }
.gt-row.now { background: rgba(242, 182, 61, .25); box-shadow: inset 0 0 0 2px #E0A32E; } .gt-row.done { opacity: .8; } .gt-row > i { font-style: normal; font-size: 11px; font-weight: 900; padding: 2px 6px; border-radius: 4px; background: #E0A32E; color: #fff; } .gt-row > svg { width: 18px; height: 18px; color: #2E9A4E; }
.gt-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: radial-gradient(circle at 35% 25%, #707FB8, #38426B 58%, #232A47); border: 2px solid #F2C14F; }
.hd2-st { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 5px; border-radius: 999px; clip-path: none; background: linear-gradient(180deg, #F6D77A, #C98A1E); border: 2px solid #5B3A08; color: #3A2205; font-weight: 800; } .hd2-st svg { width: 16px; height: 16px; } .hd2-st small { font-size: 12px; }

/* Arena (arena.js) */
.ar-head { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 10px; margin-bottom: 8px; border: 2px solid var(--ink); border-radius: 14px; background: linear-gradient(135deg, #7A2A1E, #3A1A2E 60%, #1D2339); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 4px 10px rgba(0, 0, 0, .35); }
.ar-head > div { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; } .ar-head small { font-size: 11px; color: #E8D8C8; } .ar-head b { display: flex; align-items: center; gap: 4px; font: 900 18px/1 var(--font-ui); color: #fff; text-shadow: var(--outline); } .ar-head .pwr { width: 18px; height: 18px; }
.ar-plus { width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%; font-size: 16px; line-height: 1; display: grid; place-items: center; }
.ar-wins { margin-bottom: 8px; } .ar-track { position: relative; display: flex; justify-content: space-around; align-items: center; margin-top: 4px; padding: 4px 0; }
.ar-track::before { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: #0B0E17; }
.ar-track > i { position: absolute; left: 8%; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold3), var(--gold1)); max-width: 84%; }
.ar-chest { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; min-height: 0; } .ar-chest .ico2 { width: 34px; height: 34px; } .ar-chest small { font-size: 11px; }
.ar-chest.ready { animation: arpulse 1s ease-in-out infinite alternate; } .ar-chest.done { opacity: .55; } @keyframes arpulse { to { transform: scale(1.08); } }
.ar-tabs { margin-bottom: 8px; display: flex; } .ar-tabs button { flex: 1; }
.ar-mine, .ar-opp { display: flex; align-items: center; gap: 8px; } .ar-mine .grow, .ar-opp .grow { flex: 1; min-width: 0; } .ar-opp .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-line { display: flex; gap: 3px; } .ar-h { width: 30px; height: 36px; border-radius: 6px; overflow: hidden; border: 2px solid #6FA0E8; background: #1B2030; flex: none; } .ar-h.SSR { border-color: #B58AE6; } .ar-h.UR { border-color: #F2C14F; } .ar-h svg { width: 100%; height: 100%; display: block; }
.ar-line.sm .ar-h { width: 22px; height: 26px; border-width: 1.5px; }
.ar-orank { font: 900 15px/1 var(--font-ui); color: #FFE58A; text-shadow: var(--outline); min-width: 44px; text-align: center; } .ar-av { width: 40px; height: 40px; flex: none; }
.ar-opp .sub b.ok { color: #8BE07A; } .ar-opp .sub b.warn { color: var(--gold2); } .ar-opp .sub b.bad { color: var(--red1); }
.ar-ref { width: 100%; margin-top: 4px; }
.ar-board { padding: 6px 10px; } .ar-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; } .ar-row .avt { width: 30px; height: 30px; } .ar-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-row.me { background: rgba(242, 182, 61, .14); border-radius: 8px; padding-left: 6px; padding-right: 6px; } .ar-no { width: 34px; text-align: center; font-weight: 900; } .ar-no.m1 { color: #FFD36B; } .ar-no.m2 { color: #DCE2EE; } .ar-no.m3 { color: #E0A070; }
.ar-log { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13px; flex-wrap: wrap; } .ar-log b { width: 62px; } .ar-log.w b { color: #8BE07A; } .ar-log.l b { color: var(--red1); } .ar-log .grow { flex: 1; min-width: 0; } .ar-log small { color: var(--muted); }
.arf { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 8px; min-height: 70vh; border-radius: 16px; background: radial-gradient(80% 60% at 50% 50%, #4A2A3A, #1D2339 70%); border: 2px solid var(--ink); position: relative; }
.arf-side { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; } .arf-name { font: 800 16px/1 var(--font-ui); color: #fff; text-shadow: var(--outline); }
.arf-line { display: flex; gap: 8px; } .arf-line .ar-h { width: 64px; height: 76px; border-width: 3px; border-radius: 10px; }
.arf-side.them .arf-line .ar-h { animation: arfh .5s ease-in-out infinite alternate; } .arf-side.me .arf-line .ar-h { animation: arfh .5s .25s ease-in-out infinite alternate; } @keyframes arfh { to { transform: translateY(-3px); } }
.arf-hp { width: 80%; height: 12px; border-radius: 6px; background: #0B0E17; border: 1.5px solid #0B0E17; overflow: hidden; } .arf-hp i { display: block; height: 100%; background: linear-gradient(180deg, #FF8F80, #C8332B); } .arf-side.me .arf-hp i { background: linear-gradient(180deg, #8BE07A, #2A8A3A); }
.arf-vs { font: 900 34px/1 var(--font-ui); color: #FFE58A; text-shadow: -2px -2px 0 #5A3A08, 2px -2px 0 #5A3A08, -2px 2px 0 #5A3A08, 2px 2px 0 #5A3A08, 0 4px 0 #5A3A08; }
.arf-res { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; background: rgba(5, 8, 16, .72); text-align: center; color: #fff; }
.arf-res .stg-rib { width: 100%; } .arf-res.lose .stg-rib { background: linear-gradient(90deg, rgba(90, 96, 117, 0), #5A6075 18%, #7A8197 50%, #5A6075 82%, rgba(90, 96, 117, 0)); box-shadow: none; }
.arf-res.lose .stg-rib span { color: #E8ECF2; text-shadow: -2px -2px 0 #1B2030, 2px -2px 0 #1B2030, -2px 2px 0 #1B2030, 2px 2px 0 #1B2030, 0 4px 0 #1B2030; }
.arf-rk { font-size: 16px; font-weight: 700; } .arf-rk b { color: #FFE58A; } .arf-res button { min-width: 160px; } .arf-res .rwi { margin: 0 5px; }

/* castle scouting and attacks (castle.js) */
.wc-b { display: flex; gap: 8px; align-items: stretch; } .wc-b .teal { flex: 1; } .wc-shield { color: #9CD8FF; font-weight: 700; } .wc-burn { color: #FFB25C; font-weight: 700; }

/* moving buildings (move.js) */
.mv-svg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.mv-svg polygon { stroke-width: 2.5; stroke-linejoin: round; }
.mv-foot { stroke-width: 2.5; stroke-linejoin: round; } .mv-foot.ok { fill: rgba(110, 230, 120, .32); stroke: #7FE06B; } .mv-foot.bad { fill: rgba(240, 80, 70, .34); stroke: #FF6B5E; }
.mv-art { animation: mvlift .9s ease-in-out infinite alternate; } .mv-art.ghost { opacity: .8; } @keyframes mvlift { from { transform: translateY(-4px); } to { transform: translateY(-10px); } }
.mv-edge { fill: none; stroke-width: 3; stroke-dasharray: 8 5; animation: mvdash 1s linear infinite; } .mv-edge.ok { stroke: #9CFF8A; } .mv-edge.bad { stroke: #FF6B5E; fill: rgba(240, 80, 70, .22); } @keyframes mvdash { to { stroke-dashoffset: -26; } }
.mv-svg .mv-grab { fill: transparent; pointer-events: all; touch-action: none; cursor: grab; }
.mv-rot { background: linear-gradient(180deg, #6FA8E8, #3C74C2 55%, #2A5596); } .mv-btns button[disabled] { filter: grayscale(1) brightness(.7); }
.mv-bar span.bad { color: #FF8A7E; }
.mv-btns { position: absolute; transform: translate(-50%, -100%); display: flex; gap: 14px; pointer-events: auto; }
.mv-btns button { width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.mv-btns svg.ico { width: 22px; height: 22px; stroke-width: 2.6; color: #fff; }
.mv-yes { background: linear-gradient(180deg, var(--green1), var(--green2) 55%, var(--green3)); } .mv-no { background: linear-gradient(180deg, var(--red1), var(--red2) 55%, var(--red3)); }
.mv-bar { position: absolute; left: 10px; right: 10px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 6; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: linear-gradient(180deg, #2B3453, #1D2339); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.mv-bar .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .mv-bar b { color: #fff; font-size: 15px; } .mv-bar span { font-size: 12px; color: var(--muted); }
.mv-bar button { padding: 8px 12px; }

/* Alliance Duel and battles feed (allywar.js) */
.dl-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 12px 8px; margin-bottom: 8px; border: 2px solid var(--ink); border-radius: 14px; background: linear-gradient(90deg, #1E3F8A, #1D2339 45%, #1D2339 55%, #8A1E2A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 4px 10px rgba(0, 0, 0, .35); }
.dl-side { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; } .dl-side svg { width: 46px; height: 52px; } .dl-side b { color: #fff; text-shadow: var(--outline); } .dl-side small { font-size: 11px; color: #DCE2EE; }
.dl-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; } .dl-mid b { font: 900 26px/1 var(--font-ui); color: #FFE58A; text-shadow: var(--outline); } .dl-mid small { font-size: 11px; color: #DCE2EE; } .dl-mid span { font-size: 11px; color: #fff; margin-top: 4px; text-align: center; }
.dl-days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 8px; }
.dl-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; border-radius: 8px; background: rgba(11, 14, 23, .5); border: 1px solid rgba(255, 255, 255, .1); min-width: 0; } .dl-day b { font-weight: 900; } .dl-day small { font-size: 9px; color: var(--muted); text-align: center; line-height: 1.1; } .dl-day i { font-style: normal; font-size: 10px; font-weight: 800; }
.dl-day.now { border-color: var(--gold2); background: rgba(242, 182, 61, .16); } .dl-day.won i, .dl-day.ahead i { color: #8BE07A; } .dl-day.lost i, .dl-day.behind i { color: var(--red1); }
/* the raid weekend (raid.js): the stronghold's five districts in a row, the one under attack, its walls */
.rd-ttl { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .rd-ttl h3 { margin: 0; }
.rd-map { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
.rd-map::before { content: ""; position: absolute; left: 10%; right: 10%; top: 17px; height: 3px; background: rgba(255, 255, 255, .14); }
.rd-d { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.rd-d b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #1A2033; border: 3px solid var(--fc); font-weight: 900; color: #fff; }
.rd-d.cur b { background: var(--fc); box-shadow: 0 0 0 3px rgba(255, 229, 138, .55); }
.rd-d.done b { background: linear-gradient(180deg, var(--gold1), var(--gold3)); border-color: var(--gold-lip); color: #2B1A05; }
.rd-d small { font-size: 9px; line-height: 1.1; text-align: center; color: var(--muted); } .rd-d.cur small { color: #fff; font-weight: 700; }
.rd-d i { display: block; width: 80%; height: 4px; border-radius: 2px; background: rgba(0, 0, 0, .45); overflow: hidden; } .rd-d i u { display: block; height: 100%; background: #D2382E; }
.rd-d.done i { visibility: hidden; }
.rd-fac { margin-top: 6px; font-size: 13px; color: var(--muted); }
.rd-hp { height: 10px; margin-top: 10px; border-radius: 5px; background: rgba(0, 0, 0, .45); overflow: hidden; } .rd-hp i { display: block; height: 100%; background: linear-gradient(180deg, #F0574A, #A12A24); }
.rd-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.dl-bar { position: relative; height: 22px; margin-top: 10px; border-radius: 11px; overflow: hidden; background: linear-gradient(180deg, #E8584A, #A12A24); border: 2px solid var(--ink); }
.dl-bar i { display: block; height: 100%; background: linear-gradient(180deg, #5FA4FF, #2457B5); } .dl-bar span { position: absolute; top: 2px; font-weight: 900; font-size: 13px; color: #fff; text-shadow: var(--outline); } .dl-bar span:nth-of-type(1) { left: 8px; } .dl-bar span:nth-of-type(2) { right: 8px; }
.dl-track .ar-chest small { font-size: 10px; }

/* the opening (opening.js): title card, conquest map, the greeting at the castle */
#open { position: fixed; inset: 0; z-index: 60; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.op-title { background: #7FB6E6; }
.opt-sky { position: absolute; inset: 0; background: radial-gradient(70% 45% at 50% 30%, #FFFFFF, rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, #5E9ED8 0%, #A9D2F0 50%, #EAF4FB 100%); }
.opt-castle { position: absolute; left: 50%; top: 14%; width: min(80%, 380px); transform: translateX(-50%); opacity: .95; filter: drop-shadow(0 6px 10px rgba(30, 60, 100, .25)); }
.opt-snow { position: absolute; left: -10%; right: -10%; bottom: 0; height: 42%; background: radial-gradient(120% 70% at 50% 100%, #FFFFFF 40%, #E2ECF5 75%, rgba(226, 236, 245, 0) 100%); }
.opt-hero { position: absolute; left: 50%; bottom: 18%; width: min(70%, 320px); aspect-ratio: 92 / 112; transform: translateX(-50%); border-radius: 50% 50% 18px 18px; overflow: hidden; border: 4px solid #F2C14F; box-shadow: 0 0 0 3px var(--ink), 0 14px 28px rgba(20, 40, 80, .4); background: #2A3A5E; }
.opt-hero svg { width: 100%; height: 100%; display: block; }
.opt-band { position: absolute; left: 0; right: 0; bottom: 6%; display: flex; flex-direction: column; align-items: flex-start; }
.opt-cap { margin-left: 8%; padding: 5px 16px; font: 900 15px/1 var(--font-ui); color: #fff; text-shadow: var(--outline); background: linear-gradient(90deg, #2F74D8, #4F9BFF); border: 2px solid var(--ink); border-radius: 6px 6px 0 0; transform: skewX(-8deg); }
.opt-band b { align-self: stretch; padding: 12px 8%; font: 900 24px/1 var(--font-ui); color: #1B2030; background: linear-gradient(180deg, #FFFFFF, #E2E8F0); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.opt-tap { position: absolute; left: 0; right: 0; bottom: calc(1.5% + env(safe-area-inset-bottom)); text-align: center; font-weight: 800; color: #fff; text-shadow: var(--outline); animation: stgh 1s ease-in-out infinite alternate; }
.op-map { background: #EEF3F8; } #op-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.opm-ui { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.opm-vic { position: relative; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 0 70px; background: radial-gradient(60% 45% at 50% 40%, rgba(10, 20, 40, .55), rgba(10, 20, 40, 0)); animation: opin .35s ease-out; }
.opm-vic .stg-rib { align-self: stretch; } .opm-sub { font: 800 18px/1.2 var(--font-ui); color: #fff; text-shadow: var(--outline); } .opm-rw { color: #fff; text-shadow: var(--outline); font-weight: 800; } .opm-rw .rwi { margin: 0 6px; }
.opm-vic .opt-tap { bottom: 16px; }
@keyframes opin { from { transform: scale(.8); opacity: 0; } }
.op-talk { background: linear-gradient(180deg, rgba(5, 8, 16, 0) 40%, rgba(5, 8, 16, .65)); }
.opk-hero { position: absolute; left: -4%; bottom: calc(110px + env(safe-area-inset-bottom)); width: 58%; max-width: 280px; aspect-ratio: 92 / 112; animation: opin .4s ease-out; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.opk-hero svg { width: 100%; height: 100%; display: block; border-radius: 40% 40% 0 0; }
.opk-bub { position: absolute; left: 12px; right: 12px; bottom: calc(18px + env(safe-area-inset-bottom)); padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: linear-gradient(180deg, #FFFDF6, #EFE6D2); color: #2B2418; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.opk-bub b { display: inline-block; margin: -26px 0 4px; padding: 4px 12px; border-radius: 8px; border: 2px solid var(--ink); background: linear-gradient(180deg, var(--gold1), var(--gold3)); color: #2B1A05; font: 900 14px/1 var(--font-ui); }
.opk-bub p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; } .opk-bub small { display: block; margin-top: 6px; text-align: right; color: #8A7A5A; font-weight: 700; }

/* home HUD laid out like the game: Heroes | chat ticker | World along the bottom, the quest line above it with a portrait */
#hud-b { align-items: stretch; }
#hud-b #h-chat { position: static; flex: 1; min-width: 0; min-height: 54px; padding: 5px 10px; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 2px; text-align: left; }
#h-chat .hc1, #h-chat .hc2 { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#h-chat .hc1 { font-size: 12px; font-weight: 800; color: #FFD36B; text-shadow: 0 1px 0 #000; } #h-chat .hc2 { font-size: 12px; color: #E9E4D6; }
#h-chat .bd { position: absolute; right: -4px; top: -6px; } #hud-b #h-chat { position: relative; left: auto; right: auto; bottom: auto; top: auto; pointer-events: auto; }   /* #hud-b passes taps through; the chat bar must take them */
#qline { position: absolute; z-index: 3; left: 6px; bottom: calc(88px + env(safe-area-inset-bottom)); max-width: calc(100% - 76px); min-height: 40px; flex: none; flex-direction: row; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; }
#qline .qav { position: relative; width: 44px; height: 44px; margin: -8px 0 -8px -2px; flex: none; border-radius: 50%; overflow: hidden; border: 2.5px solid #F2C14F; background: #2A3358; box-shadow: 0 0 0 2px var(--ink); }
#qline .qav svg { width: 100%; height: 118%; display: block; margin-top: -6%; }
#qline .qtx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 800; color: #fff; text-shadow: var(--outline); }
#qline .qt { font-size: 14px; font-weight: 800; } #qline .qp { font-size: 14px; color: #fff; } #qline.done .qp { color: #FFD36B; }

/* the pre-battle screen (prebattle.js) */
body[data-panel="battle"].pb-on #top, body[data-panel="battle"].pb-on #panel-bar, body[data-panel="battle"].pb-on #panel-back { display: none; }
#tab-battle.pre { padding: 0; overflow: hidden; } #tab-battle.pre #cmp-box { display: none; } #tab-battle:not(.pre) #pb-box { display: none; }
#pb-box { position: absolute; inset: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, #2A4E72 0%, #1B3654 100%); }
.pb-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 12px 0; }
.pb-pw { display: flex; align-items: center; gap: 6px; min-width: 104px; padding: 5px 12px 5px 8px; border-radius: 8px; border: 2px solid var(--ink); font-weight: 900; font-size: 17px; color: #fff; text-shadow: var(--outline); }
.pb-pw .pwr { width: 22px; height: 22px; } .pb-pw.me { background: linear-gradient(180deg, #5FA4FF, #2457B5); } .pb-pw.foe { justify-content: flex-end; background: linear-gradient(180deg, #E8584A, #A12A24); }
.pb-pw b.bad, .pb-pw b.warn, .pb-pw b.ok { color: #fff; }
.pb-shield { position: relative; width: 54px; height: 62px; margin: 0 4px; } .pb-shield svg { position: absolute; inset: 0; width: 100%; height: 100%; } .pb-shield b { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 6px; font: 900 20px/1 var(--font-ui); color: #fff; text-shadow: var(--outline); }
.pb-goal { position: relative; z-index: 2; text-align: center; margin-top: 4px; font-weight: 800; font-size: 13px; color: #fff; text-shadow: var(--outline); } .pb-goal .tag { padding: 1px 8px; border-radius: 999px; font-weight: 800; color: var(--ink); text-shadow: none; background: #8BE07A; } .pb-goal .tag.warn { background: var(--gold2); } .pb-goal .tag.bad { background: var(--red1); }
.pb-field { position: relative; flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; margin-top: -20px; }
.pb-field::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: min(78%, 330px); transform: translateX(-50%); background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .1) 0 2px, transparent 2px 36px), linear-gradient(90deg, #6E7480 0 9%, #AEB4BE 9% 91%, #6E7480 91%); border-left: 6px solid #4A505C; border-right: 6px solid #4A505C; box-shadow: 0 0 0 9999px rgba(27, 54, 84, .0); }
.pb-field::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 5px; margin-left: -2px; background: rgba(255, 255, 255, .55); }
.pb-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 76px); grid-auto-rows: 88px; gap: 8px 10px; }
.pb-c { position: relative; display: block; padding: 0; border-radius: 14px; } span.pb-c { visibility: hidden; }
.pb-add { display: grid; place-items: center; font-size: 34px; color: #fff; background: rgba(11, 14, 23, .35); border: 3px dashed rgba(255, 255, 255, .7); }
.pb-hero { overflow: visible; border: 3px solid #6FA0E8; background: #1B2030; box-shadow: 0 6px 0 rgba(0, 0, 0, .35); } .pb-hero.SSR { border-color: #B58AE6; } .pb-hero.UR { border-color: #F2C14F; }
.pb-hero svg { width: 100%; height: 100%; display: block; border-radius: 10px; }
.pb-hero i { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px; font: 900 12px/1.3 var(--font-ui); font-style: normal; color: #fff; background: #2F74D8; border: 2px solid var(--ink); white-space: nowrap; }
.pb-hero .role { position: absolute; left: -6px; top: -6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #1B2030; border: 2px solid #F2C14F; } .pb-hero .role svg { width: 14px; height: 14px; border-radius: 0; color: #fff; }
.pb-panel { position: relative; z-index: 2; padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #E8EEF8, #C4D2E8); border-top: 3px solid var(--ink); box-shadow: 0 -6px 14px rgba(0, 0, 0, .35); }
.pb-cards { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 12px; scrollbar-width: none; } .pb-cards::-webkit-scrollbar { display: none; }
.pb-card { position: relative; flex: none; width: 64px; height: 78px; padding: 0; border-radius: 10px; border: 3px solid #6FA0E8; background: #1B2030; } .pb-card.SSR { border-color: #B58AE6; } .pb-card.UR { border-color: #F2C14F; }
.pb-card svg { width: 100%; height: 100%; display: block; border-radius: 7px; } .pb-card i { position: absolute; left: 0; right: 0; bottom: 0; font: 900 11px/1.4 var(--font-ui); font-style: normal; color: #fff; text-shadow: var(--outline); background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); }
.pb-card.on { box-shadow: 0 0 0 3px #43B450; } .pb-ck { position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #43B450; border: 2px solid var(--ink); } .pb-ck svg { width: 13px; height: 13px; color: #fff; border-radius: 0; stroke-width: 3; }
.pb-btns { display: flex; gap: 10px; align-items: stretch; } .pb-btns button { flex: 1; font-size: 17px; padding: 11px 6px; } .pb-btns .pb-back { flex: none; width: 52px; padding: 0; display: grid; place-items: center; } .pb-panel .sub { color: #46526C; }
.cmp-sum { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); } .cmp-faces { display: inline-flex; gap: 3px; }

/* art review (artreview.js) */
.arv-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); } .arv-n { flex: 1; min-width: 0; display: flex; flex-direction: column; } .arv-n small { color: var(--muted); font-size: 11px; }
.arv-pair { display: flex; gap: 8px; } .arv-pair figure, .arv-icons figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; } .arv-pair figcaption, .arv-icons figcaption { font-size: 10px; color: var(--muted); }
.arv-pair svg.pt { width: 82px; height: 102px; border-radius: 8px; } .arv-pair img { object-fit: contain; border-radius: 8px; background: repeating-conic-gradient(#2A3358 0 25%, #1B2030 0 50%) 0 0 / 14px 14px; }
.arv-miss { width: 82px; height: 102px; display: grid; place-items: center; border: 2px dashed #4A5580; border-radius: 8px; color: var(--muted); font-size: 11px; text-align: center; }
.arv-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 8px; } .arv-icons img { border-radius: 8px; background: repeating-conic-gradient(#2A3358 0 25%, #1B2030 0 50%) 0 0 / 14px 14px; } .arv-icons .arv-miss { width: 64px; height: 64px; }
.arv-head { margin-bottom: 8px; }

/* the Victory card's damage report (stage.js dmgReport) */
.stg-tabs { display: flex; width: calc(100% - 40px); max-width: 320px; gap: 0; border-radius: 10px; overflow: hidden; border: 2px solid var(--ink); }
.stg-tabs button { flex: 1; padding: 7px 4px; border: 0; border-radius: 0; font-size: 14px; font-weight: 800; background: #3A4466; color: #AEB7D0; box-shadow: none; text-shadow: none; } .stg-tabs button.on { background: linear-gradient(180deg, #5FA4FF, #2457B5); color: #fff; text-shadow: var(--outline); }
.stg-rep { width: calc(100% - 40px); max-width: 320px; display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 0 0 10px 10px; background: rgba(11, 14, 23, .72); border: 1px solid rgba(255, 255, 255, .12); margin-top: -8px; }
.stg-rep > div { display: grid; grid-template-columns: 34px 64px 1fr 44px; align-items: center; gap: 6px; font-size: 13px; color: #fff; text-align: left; }
.stg-rep .rp-av { width: 34px; height: 40px; border-radius: 7px; overflow: hidden; border: 2px solid #6FA0E8; background: #1B2030; } .stg-rep .rp-av svg { width: 100%; height: 100%; display: block; }
.stg-rep b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; } .stg-rep em { font-style: normal; font-weight: 800; text-align: right; color: #FFE58A; }
.stg-rep .rp-bar { display: block; height: 10px; border-radius: 5px; background: #0B0E17; overflow: hidden; } .stg-rep .rp-bar u { display: block; height: 100%; background: linear-gradient(90deg, #E8584A, #FF9F5C); text-decoration: none; }
.stg-rep .me .rp-bar u { background: linear-gradient(90deg, #2F74D8, #7FC2FF); } .stg-rep .me .rp-av { border-color: #F2C14F; }
.stg-wv { font-size: 13px; font-weight: 800; color: #FFE58A; margin-left: 4px; }
.lp-hr { display: flex; align-items: center; gap: 10px; } .lp-hr b { font: 800 15px/1.2 var(--font-ui); }

/* production building dialog (workerlist.js bldHtml) */
.bp-rate { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: #9CFF8A; } .bp-rate .ico { width: 18px; height: 18px; }
.bp-store .su-left { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; } .bp-store .su-left .ico { width: 22px; height: 22px; } .bp-store .sub { margin-top: 6px; }
.bp-slots .sl { width: 72px; position: relative; } .bp-slots .sl small { display: block; padding: 2px 0 3px; font: 700 11px/1.1 var(--font-ui); color: #9CFF8A; background: rgba(0, 0, 0, .55); text-align: center; }

/* worker recruit: the Worker Pack banner, this week's featured Legendary and the guarantee bar (heroscreens.js) */
.rc-pack { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; margin: 0 0 10px; padding: 6px 10px 6px 6px; text-align: left; border: 2px solid var(--ink); border-radius: 12px; background: linear-gradient(100deg, #2F7A55 0%, #3F9A5E 40%, #E8A21E 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 10px rgba(0, 0, 0, .35); color: #fff; clip-path: none; overflow: hidden; }
.rc-pack.off { background: linear-gradient(100deg, #24303A, #2C3A44); opacity: .85; padding-left: 12px; }
.rcp-pt { flex: none; width: 46px; aspect-ratio: 4 / 5; border: 2px solid #D9A441; border-radius: 6px; overflow: hidden; background: #12151D; } .rcp-pt svg { display: block; width: 100%; height: 100%; }
.rcp-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; } .rcp-t b { font: 700 18px/1.05 var(--font-display); letter-spacing: .04em; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); } .rcp-t small { font-size: 11.5px; color: #F2FFF4; }
.rcp-rib { position: absolute; top: 0; right: 0; padding: 1px 8px 1px 12px; font: 800 12px/1.4 var(--font-ui); background: linear-gradient(180deg, #E0584F, #A41E18); clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%); }
.rcp-buy { flex: none; display: inline-flex; align-items: center; gap: 3px; margin-top: 12px; padding: 4px 10px; border: 1px solid #FFF3C4; border-radius: 8px; background: linear-gradient(180deg, #FFE58A, #E8A21E); color: #3A2108; font: 800 14px/1 var(--font-ui); } .rcp-buy svg { width: 18px; height: 18px; }
.rc-art.work { align-items: stretch; justify-content: flex-start; }
.rc-feat { position: absolute; right: 6%; bottom: 0; height: 96%; aspect-ratio: 4 / 5; border: 3px solid #D9A441; border-bottom: 0; box-shadow: 0 0 40px rgba(217, 164, 65, .35), 0 6px 20px rgba(0, 0, 0, .6); overflow: hidden; } .rc-feat svg { display: block; width: 100%; height: 100%; }
.rc-fname { position: relative; z-index: 1; align-self: center; display: flex; flex-direction: column; gap: 4px; max-width: 44%; } .rc-fname small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #FFE58A; }
.rc-fname b { font: 700 24px/1.05 var(--font-display); color: #fff; text-shadow: 0 2px 0 #0B0E17, 0 0 14px rgba(217, 164, 65, .6); text-wrap: balance; } .rc-fname span { font-size: 12.5px; color: #DCE2EE; }
.rc-pity { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; color: var(--text); } .rc-pity small { color: var(--muted); }
.rc-pbar { position: relative; height: 18px; border: 2px solid var(--ink); border-radius: 9px; background: #0B0E17; overflow: hidden; } .rc-pbar i { display: block; height: 100%; background: linear-gradient(180deg, #FFE58A, #E8A21E); }
.rc-pbar em { position: absolute; inset: 0; display: grid; place-items: center; font: 800 11.5px/1 var(--font-ui); font-style: normal; color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.dl.wpk { margin: 26px 0 0; } .dl.wpk .dl-hero svg { display: block; width: 100%; height: 100%; }

/* Breakout (breakout.js): the five stages of the current block, the soldiers line on the title card */
.bo-dots { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.bo-dot { flex: 1; display: grid; place-items: center; height: 26px; border-radius: 13px; border: 2px solid var(--ink); background: #2A3148; color: #DCE2EE; font: 800 12px/1 var(--font-ui); }
.bo-dot.done { background: linear-gradient(180deg, #FFE58A, #E8A21E); color: #3A2108; } .bo-dot.cur { background: linear-gradient(180deg, #8BE07A, #3F9A5E); color: #fff; box-shadow: 0 0 0 2px #FFE58A; }
.bo-dot.boss { color: #FF8A7A; } .bo-dot.boss.done { color: #7A1712; }
.bo-run .sub svg, .sti-goal.bo-n svg { width: 16px; height: 16px; vertical-align: -3px; }
.bo-rew { margin: 10px 2px 4px; line-height: 1.7; }

/* Clearing the castle plots (land.js): the rebels' marker, the reclaim scroll and the Congratulations card */
.scn .bdg.land { cursor: pointer; } .scn .bdg.land.ready { animation: none; } .scn .bdg.land .lmk.go { animation: lmkbob 1.1s ease-in-out infinite alternate; transform-box: fill-box; } @keyframes lmkbob { to { translate: 0 -5px; } }
.mdl.lscroll { text-align: center; color: #4A2E10; background: linear-gradient(180deg, #F6E9C8, #E9D3A0); border: 3px solid #8A5A2B; box-shadow: inset 0 0 0 2px #F9F0D8, 0 10px 30px rgba(0, 0, 0, .5); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mdl.lscroll > * { flex: none; } .mdl.lscroll .mdl-x { color: #4A2E10; }
.ls-seal { width: 52px; height: 52px; margin-top: -4px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #E0544A, #A3241C 70%); border: 3px solid #6E140E; color: #FBD9A8; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); } .ls-seal svg { width: 26px; height: 26px; }
.lscroll h3 { margin: 0; font: 800 22px/1.15 var(--font-display, var(--font-ui)); color: #6B3410; }
.ls-line { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35; text-transform: uppercase; letter-spacing: .02em; color: #6B3E18; max-width: 34ch; }
.ls-rev { align-self: stretch; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(138, 90, 43, .16); } .ls-rev .ico2 { width: 40px; height: 40px; } .ls-rev b { color: #2E7A3E; font-size: 16px; }
.mdl.lcongrats { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; } .mdl.lcongrats > * { flex: none; }
.lc-rib { padding: 8px 26px; border-radius: 6px; background: linear-gradient(180deg, #FFB347, #E07A12); border: 2px solid #8A4A08; color: #fff; font: 900 20px/1 var(--font-ui); text-transform: uppercase; text-shadow: var(--outline); box-shadow: 0 4px 0 #8A4A08; }
.lc-cells { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; } .lc-cell { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; background: rgba(11, 14, 23, .45); border: 1px solid rgba(255, 255, 255, .14); }
.lc-cell .ico2 { width: 40px; height: 40px; } .lc-cell b { font-size: 14px; } .lc-cell small { font-size: 10px; opacity: .8; line-height: 1.1; }
@media (prefers-reduced-motion: reduce) { .scn .bdg.land .lmk.go { animation: none; } }

/* Lord cosmetics, second version: the queen / king switch, Lord Set pieces, Unlock (lordtitle.js), and the choice on a new game's title card (opening.js) */
.gtc { position: relative; } .gtc-sex { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 2; }
.gtc-sex button { width: 42px; height: 52px; padding: 0; border-radius: 10px; overflow: hidden; clip-path: none; border: 2px solid rgba(255, 255, 255, .25); opacity: .65; } .gtc-sex button.on { border-color: #F2C14F; opacity: 1; box-shadow: 0 0 0 2px #F2C14F; } .gtc-sex svg { width: 100%; height: 100%; display: block; }
.gtc-name.q3 { color: #FFC266; } .gtc-bonus { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 8px; background: rgba(11, 14, 23, .45); font-size: 13px; } .gtc-bonus small { opacity: .75; } .gtc-bonus b { color: #9CFF8A; }
.gtc-none { display: grid; place-items: center; background: #2A6AB0; } .gtc-none svg { width: 60%; height: 60%; color: #fff; }
.gtu { display: flex; gap: 12px; align-items: stretch; } .gtu-it { width: 120px; flex: none; padding: 6px; border-radius: 10px; background: linear-gradient(180deg, #F2B04A, #A4661A); display: flex; flex-direction: column; gap: 4px; text-align: center; } .gtu-it b { font-size: 12px; color: #3A2205; }
.gtu-src { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; background: rgba(11, 14, 23, .1); } .gtu-src b { font: 800 16px/1.25 var(--font-ui); }
.op-sex { display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #2F4A80, #12151D 70%); } .ops { text-align: center; padding: 20px; color: #fff; max-width: 420px; }
.ops h2 { margin: 0 0 14px; font: 800 24px/1.2 var(--font-display, var(--font-ui)); text-wrap: balance; } .ops p { opacity: .75; font-size: 13px; }
.ops-row { display: flex; gap: 14px; justify-content: center; } .ops-row button { flex: 1; max-width: 170px; padding: 6px 6px 10px; border-radius: 14px; clip-path: none; display: flex; flex-direction: column; gap: 6px; border: 3px solid #F2C14F; background: #1B2030; color: #fff; }
.ops-art { display: block; aspect-ratio: 92 / 112; border-radius: 10px; overflow: hidden; } .ops-art svg { width: 100%; height: 100%; display: block; } .ops-row b { font: 800 18px/1 var(--font-ui); }
.gt-art .gtc-img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8%; box-sizing: border-box; } .gtc-it .gt-art:has(.gtc-img), .gtu-it .gt-art:has(.gtc-img) { background: rgba(255, 255, 255, .12); aspect-ratio: 1; }

/* a hero freed on the road joins your heroes (stage.js) */
.stg-join { display: flex; flex-direction: column; gap: 6px; align-items: center; margin: 4px 0; } .stg-join span { width: 64px; height: 78px; border-radius: 10px; overflow: hidden; border: 3px solid #F2C14F; display: block; } .stg-join span svg { width: 100%; height: 100%; display: block; } .stg-join b { color: #FFE58A; font: 800 15px/1.2 var(--font-ui); text-shadow: var(--outline); }

/* the art session's title picture behind the opening's title card and the queen / king choice (opening.js); its own sky, castle and snow are hidden then */
.opt-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; } .opt-bg ~ .opt-sky, .opt-bg ~ .opt-castle, .opt-bg ~ .opt-snow { display: none; } .opt-bg.dim::after { content: ''; position: absolute; inset: 0; background: rgba(10, 14, 28, .55); } .op-sex .ops { position: relative; z-index: 1; }

/* Story scenes and the Town Register (story.js) */
.sty { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(12px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: linear-gradient(180deg, rgba(10, 12, 20, .25), rgba(10, 12, 20, .85) 55%); cursor: pointer; animation: styin .25s ease-out; }
@keyframes styin { from { opacity: 0; } }
.sty-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; color: #F6E9C8; font: 800 13px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; text-shadow: var(--outline); }
.sty-skip { padding: 6px 14px; border-radius: 999px; clip-path: none; background: rgba(11, 14, 23, .7); color: #fff; border: 1px solid rgba(255, 255, 255, .3); font-size: 13px; }
.sty-row { display: flex; align-items: flex-end; gap: 10px; max-width: 560px; width: 100%; margin: 0 auto; } .sty-row.r { flex-direction: row-reverse; }
.sty-art { width: min(34vw, 150px); flex: none; aspect-ratio: 92 / 112; border-radius: 14px; overflow: hidden; border: 3px solid #F2C14F; background: #1B2030; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); } .sty-art svg { width: 100%; height: 100%; display: block; } .sty-art.foe { border-color: #B0302A; }
.sty-bub { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; background: #F6E9C8; color: #2E1E0A; border: 3px solid #8A5A2B; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.sty-bub b { display: block; font: 800 14px/1.2 var(--font-ui); color: #6B3410; margin-bottom: 4px; } .sty-bub p { margin: 0 0 6px; font-size: 15px; line-height: 1.4; } .sty-bub small { font-size: 11px; opacity: .6; }
.scn .bdg.reg { cursor: pointer; }
.reg-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; margin-top: 8px; }
.reg-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: rgba(11, 14, 23, .08); } .reg-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .reg-row small { font-size: 12px; opacity: .75; } .reg-row em { font-size: 12px; font-style: italic; opacity: .85; }
.reg-art { width: 46px; height: 56px; flex: none; border-radius: 8px; overflow: hidden; border: 2px solid #8A5A2B; display: block; } .reg-art svg { width: 100%; height: 100%; display: block; } .reg-q { display: grid; place-items: center; font: 900 22px/1 var(--font-ui); color: #8A5A2B; background: rgba(138, 90, 43, .15); }
.reg-row.off { opacity: .65; }
@media (prefers-reduced-motion: reduce) { .sty { animation: none; } }

/* The shared realm (realm.js): players' marks, the found-an-alliance form */
.tag.rlm { display: inline-block; padding: 0 5px; border-radius: 6px; border: 1px solid #D9A441; color: #D9A441; font: 800 10px/1.5 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.cm.real .cbub { box-shadow: inset 0 0 0 1.5px rgba(217, 164, 65, .7); }
.rlm-f { display: flex; gap: 8px; margin-top: 8px; } .rlm-f input { flex: 1; min-width: 0; } .rlm-f input + input { flex: 0 0 5.5em; text-transform: uppercase; }

/* The More menu's feedback link looks like its buttons */
.mdl.menu a.mi { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 15px; font-weight: 600; color: #E9E4D6; background: linear-gradient(#56628C, #39436B 55%, #272F4E); border: 2px solid #0B0E17; border-radius: 12px; padding: 8px 14px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 3px 0 #0E1120, 0 6px 8px rgba(0, 0, 0, .32); text-decoration: none; box-sizing: border-box; }
.mdl.menu a.mi svg.ico { width: 22px; height: 22px; color: var(--accent); }
.mdl.menu a.mi:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The home screen's side columns (31 Oct 2026, a tester saw buttons on top of each other): each column stops above what is below it and wraps into a second
   column (inward) when the screen is too short, and the map controls (zoom, centre, time of day) are a row under the right column, above the quest line,
   so no button can cover another at any screen size. */
#hud-l, #hud-r { flex-wrap: wrap; align-content: flex-start; }
#hud-l { bottom: calc(136px + env(safe-area-inset-bottom)); }
#hud-r { bottom: calc(188px + env(safe-area-inset-bottom)); direction: rtl; } #hud-r > * { direction: ltr; }
.scene-box > .scene-ui { flex-direction: row; bottom: calc(136px + env(safe-area-inset-bottom)); }
/* the ash blight (ash.js): the broom in front of a building under ash, and the puff when it is swept */
.ab { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 3px; min-height: 0; padding: 3px 9px 3px 5px; border-radius: 999px; background: linear-gradient(180deg, #F1EDE6, #ABA49C); color: #1B2030; border: 3px solid var(--ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 3px 0 var(--ink), 0 6px 8px rgba(0, 0, 0, .35); font: 800 12px/1 var(--font-ui); font-variant-numeric: tabular-nums; cursor: pointer; animation: abob 1.4s ease-in-out infinite alternate; }
.ab svg.ico { width: 19px; height: 19px; stroke-width: 2.2; color: #5A3A1C; }
.ab b { color: #8A2A1E; }
@keyframes abob { from { transform: translate(-50%, -50%) rotate(-4deg); } to { transform: translate(-50%, -50%) rotate(4deg); } }
.ashp { position: fixed; z-index: 60; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle, #DAD4CC, #8C8580 70%, transparent 72%); pointer-events: none; }
[data-bsweep] svg.ico { width: 17px; height: 17px; vertical-align: -3px; }
@media (prefers-reduced-motion: reduce) { .ab { animation: none; } }

/* seasons (season.js): the Season screen, the Beacon on the plaza */
.c-sun { color: #F0902C; }
.sea-tabs .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #E0443B; vertical-align: 2px; }
.sea-head { background: linear-gradient(160deg, #3A2A22, var(--panel) 72%); border-color: #6B4A2A; }
.sea-ttl { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .sea-ttl h3 { margin: 0; }
.sea-ph { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.sea-ph > div { background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-radius: 6px; padding: 5px 3px; text-align: center; min-width: 0; }
.sea-ph b { display: block; font-size: 11px; color: var(--muted); font-weight: 600; } .sea-ph small { display: block; font-size: 11.5px; }
.sea-ph .cur { border-color: #F0902C; background: rgba(240, 144, 44, .16); } .sea-ph .cur b { color: #F0902C; } .sea-ph .done { opacity: .5; }
.sea-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 10px; }
.sea-stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; min-width: 0; }
.sea-stats small { display: block; color: var(--muted); font-size: 11px; } .sea-stats b { display: flex; align-items: center; gap: 4px; font-size: 16px; white-space: nowrap; }
.sea-go { margin-top: 10px; } .sea-go .primary { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sea-how > div { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); } .sea-how > div:first-child { border-top: 0; }
.sea-how span { flex: 1; } .sea-how .off { opacity: .5; }
.sea-bc { display: flex; gap: 10px; align-items: flex-start; } .sea-bc .grow { flex: 1; min-width: 0; } .sea-bc .sub { margin-top: 4px; }
.sea-art { width: 76px; height: 108px; flex: none; }
.sea-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.sea-feed button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; }
.sea-feed small { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); }
.card .sea-bar i { background: linear-gradient(180deg, #FFD08A 0%, #F0902C 55%, #B8561A 100%); }
.sea-tier { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.sea-tier .grow { flex: 1; min-width: 0; } .sea-tier.ok { border-color: #F0902C; } .sea-tier.got { opacity: .55; }
.sea-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #2A2430; border: 1px solid #6B4A2A; font-weight: 700; font-size: 12px; flex: none; }
.sea-tier.ok .sea-n { background: #F0902C; color: #1A1405; }
.sea-tier small { color: var(--muted); font-size: 11px; } .sea-rw { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 2px; }
.sea-note { text-align: center; margin: 10px 0 20px; }
.rch-row { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.rch-row img { width: 44px; height: 44px; border-radius: 6px; flex: none; }
.rch-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rch-row small { color: var(--muted); font-size: 11.5px; } .rch-row.me { border-color: #D9A441; } .rch-row.off { opacity: .6; }
.rch-row > button { flex: none; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; }
.rch-t { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; } .rch-t b { font-size: 14px; }
.rch-chip { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 9px; border: 1px solid hsl(var(--h), 60%, 55%); color: hsl(var(--h), 70%, 74%); background: hsla(var(--h), 50%, 30%, .25); }
.rch-chip.me { border-color: #D9A441; color: #F2D26B; background: rgba(217, 164, 65, .15); } .rch-chip .ico { width: 12px; height: 12px; }
.bar.rch-bar { height: 7px; margin: 4px 0 2px; border: 0; border-radius: 4px; background: #0E1220; overflow: hidden; box-shadow: none; }
.bar.rch-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(180deg, #FFD08A 0%, #F0902C 55%, #B8561A 100%); box-shadow: none; }
.scn .beacon { cursor: pointer; }
.sea-raise { display: flex; align-items: center; gap: 10px; margin-top: 8px; } .sea-raise .grow { flex: 1; display: inline-flex; align-items: center; gap: 4px; } .sea-raise .short { color: var(--bad); }

.pb-pl { position: absolute; left: -6px; right: -6px; bottom: -17px; font-style: normal; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #fff; text-shadow: 0 1px 2px #0B0E17, 0 0 3px #0B0E17; pointer-events: none; }
.pb-hero.sel { outline: 3px solid #FFE04A; outline-offset: 2px; }
.pb-posts { position: relative; z-index: 2; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 20px 8px 4px; font-size: 11px; color: #E6EDF8; } .pb-posts b { color: #FFD36B; }

.pb-grid { row-gap: 26px; } .pb-pl { left: 2px; right: 2px; bottom: -19px; padding: 1px 3px; font-size: 11px; background: rgba(11, 14, 23, .88); border-radius: 8px; text-shadow: none; }

.br-stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 0; } .br-stars span { width: 34px; height: 34px; filter: drop-shadow(0 2px 0 #0B0E17); } .br-stars svg { width: 100%; height: 100%; fill: #3A4466; stroke: #0B0E17; stroke-width: 1.6; stroke-linejoin: round; } .br-stars .on svg { fill: #FFD36B; }
.br-note { text-align: center; font-size: 10px; opacity: .75; margin-bottom: 6px; }
.br-bars { display: grid; gap: 5px; margin: 4px 10px 8px; } .br-bar { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; } .br-bar i { height: 9px; border-radius: 5px; background: #1B2030; overflow: hidden; } .br-bar u { display: block; height: 100%; background: linear-gradient(90deg, #43B450, #8CE06B); } .br-bar b { font-size: 10px; min-width: 70px; text-align: right; }
.br-badge { font-style: normal; font-size: 10px; font-weight: 700; color: #FFD36B; grid-column: 3 / 5; text-align: right; }

.sh-street { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 6px 0 10px; } .sh-stall { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 2px 6px; border-radius: 0 0 10px 10px; background: #2B2F3C; color: #fff; border: 2px solid #0B0E17; opacity: .8; }
.sh-stall.on { opacity: 1; background: #3B4052; box-shadow: 0 0 0 2px #FFD36B inset; } .sh-stall b { font-size: 12px; } .sh-stall small { display: flex; align-items: center; gap: 3px; font-size: 10px; opacity: .9; } .sh-stall small svg { width: 12px; height: 12px; }
.sh-awn { position: absolute; left: -2px; right: -2px; top: -2px; height: 18px; border-radius: 8px 8px 0 0; background: repeating-linear-gradient(90deg, var(--awn) 0 12px, #F4EBD0 12px 24px); border: 2px solid #0B0E17; border-bottom: 0; }
.sh-item.special { box-shadow: 0 0 0 2px #FFD36B; position: relative; } .sh-sp { position: absolute; top: -6px; left: -4px; z-index: 2; font-style: normal; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 7px; background: #E8B23E; color: #3A2A08; }

.sh-stall b, .sh-stall.on b { color: #fff; } .sh-stall small { color: #E6EDF8; }

.ah-table { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; margin-bottom: 10px; border-radius: 14px; background: radial-gradient(ellipse at 50% 50%, #6A4A2A 0, #4A3220 62%, #2E1F14 100%); border: 3px solid #2A1B10; box-shadow: inset 0 0 18px rgba(0, 0, 0, .5); }
.ah-room { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 6px 10px; min-height: 96px; border-radius: 10px; background: linear-gradient(180deg, #E8D6A8, #C9B07A); color: #3A2A10; border: 2px solid #5A3E1A; text-align: center; }
.ah-room svg.ico { width: 34px; height: 34px; color: #7A4A12; } .ah-room b { font-size: 15px; font-weight: 800; letter-spacing: .02em; } .ah-room small { font-size: 11px; opacity: .85; }
.ah-rtabs { margin-bottom: 8px; }

.sg-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; } .sg-mod { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 40px 8px 10px; min-height: 58px; } .sg-mod b { font-size: 13px; } .sg-mod small { font-size: 10.5px; opacity: .8; } .sg-mod i { position: absolute; right: 8px; top: 8px; font-style: normal; font-weight: 800; color: #FFD36B; } .sg-mod.on { box-shadow: 0 0 0 2px #FFD36B inset; background: #3B4052; }
.ch-clause.on { box-shadow: 0 0 0 1px #E8B23E inset; } .ch-clause .card-top { gap: 10px; align-items: center; } .ch-ban { flex: none; }

.sti-parley,.sti-stone{margin:6px 14px 0;padding:6px 10px;border-radius:8px;font-size:12px;line-height:1.3;text-align:center}
.sti-parley{background:rgba(120,30,20,.55);color:#FFE9D6;font-style:italic}
.sti-stone{background:rgba(60,64,74,.6);color:#E8E4D8}
.sti-parley small,.sti-stone small{display:block;font-size:10px;opacity:.75;font-style:normal;text-transform:uppercase;letter-spacing:.06em}

.fg-tabs{display:flex;gap:6px;margin:8px 0}
.fg-tabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px;border-radius:8px;opacity:.7}
.fg-tabs button.on{opacity:1;outline:2px solid #F2B63D}
.fg-tabs .ico2{width:30px;height:30px}
.fg-tier{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 8px}
.fg-tier>div{text-align:center;flex:1}
.fg-tier button.r svg{transform:scaleX(-1)}

.st-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.st-pack{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:10px}
.st-pack .st-g{display:flex;align-items:center;gap:4px}
.st-pack .ico2{width:26px;height:26px}
.st-pack em{font-style:normal;font-weight:700}
.st-refs{display:flex;gap:8px;margin-top:6px}
.st-ref{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px;border-radius:10px}
.st-ref .ico2{width:26px;height:26px}
.st-odds{margin-top:6px}
.sea-rw.prem{opacity:.9;border-top:1px dashed rgba(255,255,255,.25);margin-top:2px;padding-top:2px}
/* chat moderation actions (allynet.js) */
.cact { margin-top: 4px; display: flex; gap: 10px; } .cact button { background: none; border: 0; padding: 0; font-size: 11px; color: var(--dim, #9a917c); text-decoration: underline; cursor: pointer; min-height: 0; }
