/* owners' names over the flags: only for the building you're pointing at (or have picked) */
.vflagname { opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.vprop:hover .vflagname, .vprop.selected .vflagname, .vprop.vhover .vflagname { opacity: 1; }
.vprop.vocclude { opacity: 0.32; transition: opacity 0.15s; }
#vilmap .vprop { cursor: pointer; }
#stocks { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; text-align: left; }
.stock {
  display: grid; grid-template-columns: minmax(150px, 1.4fr) 160px minmax(90px, 0.8fr); grid-template-areas: "name spark price" "info info info" "hold hold hold" "trade trade trade";
  gap: 6px 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); border: 2px solid rgba(154, 168, 184, 0.3);
}
.stock .sname { grid-area: name; display: flex; align-items: center; gap: 10px; }
.stock .semoji { font-size: 30px; }
.stock .sfull { display: block; font-family: var(--f-ui); font-size: 14px; color: var(--ink); }
.stock .ssym { font-family: var(--f-ui); font-size: 15px; letter-spacing: 0.15em; color: var(--ink-dim); }
.stock .spark { grid-area: spark; width: 160px; height: 44px; }
.stock .sprice { grid-area: price; text-align: right; }
.stock .sprice b { display: block; font-family: var(--f-ui); font-size: 18px; color: var(--gold); }
.stock .sinfo { grid-area: info; font-family: var(--f-ui); font-size: 15px; color: var(--ink-dim); }
.stock .sinfo b { color: var(--ink); font-weight: 400; }
.stock.k-div { border-color: rgba(242, 182, 50, 0.35); } .stock.k-fund { border-color: rgba(79, 182, 255, 0.35); } .stock.k-crypto { border-color: rgba(199, 125, 255, 0.4); }
.mkttabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.mkttabs button { padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--ink); background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(154, 168, 184, 0.35); font-family: var(--f-ui); font-size: 17px; }
.mkttabs button.on { background: var(--gold); color: #2b1d02; border-color: var(--gold); }
.mkttabs button i { font-style: normal; font-size: 13px; opacity: 0.75; margin-left: 4px; }
.mktabout { margin: 10px 0 0; font-family: var(--f-ui); font-size: 16px; color: var(--ink-dim); }
.stock .shold { grid-area: hold; font-family: var(--f-ui); font-size: 16px; color: var(--ink-dim); }
.stock .shold b { color: var(--ink); }
.stock .strade { grid-area: trade; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stock .strade input {
  width: 80px; padding: 6px 10px; font-family: var(--f-ui); font-size: 14px; color: var(--gold);
  background: rgba(0, 0, 0, 0.5); border: 2px solid rgba(242, 182, 50, 0.4); border-radius: 10px;
}
.stock .strade button:disabled { opacity: 0.4; cursor: not-allowed; }
.stock .spreview { font-family: var(--f-ui); font-size: 15px; color: var(--ink-dim); }
.up { color: #7dff9e; } .down { color: #ff7b7b; }
.schange { font-family: var(--f-ui); font-size: 12px; }
.newsh { margin: 20px 0 6px; text-align: left; font-family: var(--f-ui); font-weight: 800; font-size: 20px; color: var(--skin); }
#mktnews { list-style: none; margin: 0; padding: 0; text-align: left; font-family: var(--f-ui); font-size: 17px; color: var(--ink); }
#mktnews li { padding: 4px 0; border-bottom: 1px dotted rgba(154, 168, 184, 0.2); }
#mktnews li span { font-family: var(--f-ui); font-size: 11px; margin-left: 6px; }
#mktnews .quiet { color: var(--ink-dim); }
@media (max-width: 760px) {
  .stock { grid-template-columns: 1fr auto; grid-template-areas: "name price" "spark spark" "info info" "hold hold" "trade trade"; }
  .stock .spark { width: 100%; }
}
#bjbtn {
  font-family: var(--f-ui); font-size: 12px; color: var(--ink); cursor: pointer; padding: 3px 10px; border-radius: 999px;
  border: 1px solid #10243d; background: radial-gradient(circle at 30% 25%, #7ab0ff, #24508f 45%, #0d2140); box-shadow: 0 3px 0 #06142a;
  vertical-align: middle; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
#bjbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #06142a; }
#bjcoins { color: var(--gold); }
.felt {
  margin-top: 16px; padding: 18px 14px 20px; border-radius: 120px 120px 26px 26px / 60px 60px 26px 26px;
  background: radial-gradient(ellipse at 50% 20%, #1f7a3e, #0d4a22 60%, #082e15); border: 6px solid #5c3a14;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6), 0 14px 30px rgba(0, 0, 0, 0.6);
}
#bjdealer { min-height: 120px; }
.feltline { margin: 12px 0; font-family: var(--f-ui); font-size: 16px; letter-spacing: 0.12em; color: rgba(242, 182, 50, 0.7); text-transform: uppercase; }
#bjseats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bjempty { font-family: var(--f-ui); font-size: 18px; color: rgba(255, 255, 255, 0.6); padding: 20px; }
.seat { min-width: 150px; padding: 10px; border-radius: 16px; background: rgba(0, 0, 0, 0.25); border: 2px solid rgba(255, 255, 255, 0.12); }
.seat.mine { border-color: var(--gold); box-shadow: 0 0 14px rgba(242, 182, 50, 0.35); }
.seat.win, .seat.blackjack { border-color: #4fe07a; box-shadow: 0 0 18px rgba(79, 224, 122, 0.5); }
.seat.lose, .seat.bust { opacity: 0.7; }
.seatname { font-family: var(--f-ui); font-size: 12px; color: var(--ink); margin-bottom: 4px; }
.seatbet { font-family: var(--f-ui); font-size: 15px; color: var(--gold); }
.seatstatus { margin-top: 6px; font-family: var(--f-ui); font-weight: 800; font-size: 16px; color: var(--ink); }
.seat.blackjack .seatstatus, .seat.win .seatstatus { color: #7dff9e; }
.seat.bust .seatstatus, .seat.lose .seatstatus { color: #ff8a8a; }
.cards { display: flex; justify-content: center; gap: 0; margin-top: 6px; min-height: 64px; }
.pcard {
  position: relative; width: 44px; height: 62px; margin-left: -10px; border-radius: 7px; background: #fbf7ec; border: 1px solid #c9bfa6;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.pcard:first-child { margin-left: 0; }
.pcard .r { font-family: var(--f-ui); font-size: 16px; }
.pcard .s { font-size: 20px; }
.pcard.red { color: #c0262f; } .pcard.black { color: #141414; }
.pcard.back {
  font-size: 22px; color: transparent; text-shadow: 0 0 0 rgba(255, 255, 255, 0.5); border-color: #f2b632;
  background: repeating-linear-gradient(45deg, #4f7a1c 0 6px, #2f4a17 6px 12px);
}
.pcard.dealt { animation: dealcard 0.35s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes dealcard { from { transform: translateY(-40px) rotate(-20deg) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
#bjmoves { margin-top: 16px; }
/* Hold'em: six seats round an oval of felt, the board and the pot in the middle */
.pkfelt { position: relative; height: 470px; padding: 0; border-radius: 50% / 46%; }
.pkmid { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); text-align: center; }
#hmboard .cards { min-height: 62px; }
.pkmid .feltline { margin: 6px 0 0; }
#hmseats { position: absolute; inset: 0; }
.pkseat { position: absolute; transform: translate(-50%, -50%); min-width: 116px; padding: 6px 8px; border-radius: 14px; text-align: center; background: rgba(0, 0, 0, 0.45); border: 2px solid rgba(255, 255, 255, 0.12); }
.pkseat.empty { min-width: 90px; font-family: var(--f-ui); color: rgba(255, 255, 255, 0.4); }
.pkseat.mine { border-color: var(--gold); box-shadow: 0 0 14px rgba(242, 182, 50, 0.35); }
.pkseat.toact { border-color: #7dff9e; box-shadow: 0 0 16px rgba(79, 224, 122, 0.55); }
.pkseat.winner { border-color: #4fe07a; box-shadow: 0 0 22px rgba(79, 224, 122, 0.7); }
.pkseat.folded { opacity: 0.55; }
.pkseat .seatstatus { font-size: 14px; margin-top: 2px; min-height: 16px; }
.pkseat .cards { min-height: 0; margin-top: 4px; }
.pksmall .pcard { width: 30px; height: 42px; margin-left: -8px; }
.pksmall .pcard .r { font-size: 11px; } .pksmall .pcard .s { font-size: 14px; } .pksmall .pcard.back { font-size: 14px; }
.pkbutton { display: inline-block; margin-left: 6px; width: 16px; height: 16px; line-height: 16px; border-radius: 50%; background: #f4f0e0; color: #1a1e26; font-size: 10px; }
.pkbet { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px; background: #f2b632; color: #1a1e26; font-family: var(--f-ui); font-size: 11px; white-space: nowrap; }
.pktimer { display: block; height: 3px; margin-top: 4px; border-radius: 2px; background: #7dff9e; width: 100%; transition: width 0.5s linear; }
#hmlog { margin-top: 10px; min-height: 60px; font-family: var(--f-ui); font-size: 15px; color: rgba(240, 236, 224, 0.75); text-align: center; }
#hmmoves { margin-top: 12px; flex-wrap: wrap; }
#hmraiserow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
#hmraise { width: 160px; }
.pkbuy { font-family: var(--f-ui); font-size: 18px; color: var(--ink); display: flex; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  .pkfelt { height: 520px; }
  .pkseat { min-width: 86px; padding: 4px 5px; }
  .pkseat .seatname { font-size: 10px; }
  #hmboard .pcard { width: 34px; height: 48px; margin-left: -6px; }
}
#bjmoves .gob:disabled, #bjbetting button:disabled { filter: grayscale(0.8) brightness(0.6); cursor: not-allowed; animation: none; }
#skillbtn {
  font-family: var(--f-ui); font-size: 12px; color: var(--ink); cursor: pointer; padding: 3px 10px; border-radius: 999px;
  border: 1px solid #1d3d10; background: radial-gradient(circle at 30% 25%, #a6d46a, #4f7a1c 45%, #22380d); box-shadow: 0 3px 0 #1a1e26;
  vertical-align: middle; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
#skillbtn.haspoints { animation: glowpulse 1.6s ease-in-out infinite; color: var(--bile); }
@keyframes glowpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 226, 60, 0.7), 0 3px 0 #1a1e26; } 50% { box-shadow: 0 0 0 8px rgba(217, 226, 60, 0), 0 3px 0 #1a1e26; } }
#skillbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #1a1e26; }
#skillpoints { color: var(--bile); }
.shoppurse a { color: var(--skin); }
#skillbar {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 58; display: none; align-items: center; gap: 12px;
  padding: 8px 14px; border-radius: 22px; max-width: calc(100vw - 32px);
  background: linear-gradient(180deg, rgba(58, 64, 72, 0.95), rgba(21, 24, 30, 0.95)); border: 2px solid rgba(242, 182, 50, 0.45);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.hasbar #skillbar { display: flex; }
body.hasbar #toast { bottom: 96px; }
body.hasbar #goblin { bottom: 70px; }
body.hasbar footer { padding-bottom: 110px; }
#skillbar .passives { display: flex; gap: 4px; padding-right: 10px; border-right: 1px dotted rgba(154, 168, 184, 0.4); }
#skillbar .passives:empty { display: none; }
#skillbar .passive { font-size: 18px; cursor: help; filter: drop-shadow(0 0 4px rgba(217, 226, 60, 0.5)); }
#skillbar .actives { display: flex; gap: 8px; }
#skillbar .skill {
  position: relative; width: 52px; height: 52px; border-radius: 14px; cursor: pointer; overflow: hidden; padding: 0;
  background: radial-gradient(circle at 35% 30%, #4f7a1c, #1a1e26); border: 2px solid var(--gold); box-shadow: 0 4px 0 #15181e;
}
#skillbar .skill .sicon { font-size: 26px; line-height: 52px; position: relative; z-index: 1; }
#skillbar .skill::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: conic-gradient(rgba(0, 0, 0, 0.72) calc(var(--cd, 0) * 360deg), transparent 0);
}
#skillbar .skill .scd { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; font-family: var(--f-ui); font-size: 12px; color: #fff; text-shadow: 0 1px 3px #000; }
#skillbar .skill.cooling { border-color: #555; cursor: not-allowed; }
#skillbar .skill.charged { box-shadow: 0 0 18px var(--torch), 0 4px 0 #15181e; animation: glowpulse 1.2s ease-in-out infinite; }
#skillbar .skill.aiming { outline: 3px dashed var(--bile); outline-offset: 3px; }
#skillbar .skill:not(.cooling):hover { transform: translateY(-3px); }
#picker {
  position: fixed; bottom: 84px; z-index: 66; width: 260px; display: none; flex-direction: column; gap: 6px; padding: 12px;
  border-radius: 16px; background: linear-gradient(170deg, #2a2e36, #070b05); border: 2px solid var(--gold); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}
#picker.show { display: flex; }
#picker .pickh { font-family: var(--f-ui); font-size: 18px; color: var(--skin); }
#picker .chip { text-align: left; }
#silencebanner {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 62; display: none; padding: 8px 14px; border-radius: 14px; max-width: calc(100vw - 32px); text-align: center;
  font-family: var(--f-ui); font-size: 18px; color: #fff; background: rgba(120, 20, 30, 0.92); border: 2px solid #ff5a5a;
}
#silencebanner.show { display: block; }
.gob.blinded { filter: grayscale(1) brightness(0.55); }
.gob .blindtag {
  position: absolute; left: 50%; top: -12px; transform: translateX(-50%); padding: 0 6px; border-radius: 8px; white-space: nowrap;
  font-family: var(--f-ui); font-size: 9px; color: #fff; background: #3a1010; border: 1px solid #ff5a5a;
}
.player { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; white-space: nowrap; vertical-align: middle; }
.player .gname { overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; word-break: normal; min-width: 0; }
.player .lvl, .player .mascot-emoji { flex: none; }
.mascot-emoji:empty { display: none; }
.mascot-emoji { font-size: 1.05em; line-height: 1; font-family: initial; font-style: normal; }
.player.framed { padding: 1px 8px 1px 6px; border-radius: 999px; }
/* (the border at no weight, so each frame's own border colour and style below win over it) */
:where(.player.framed) { border: 2px solid; }
.frame-moss { background: linear-gradient(160deg, #2f4a17, #1a1e26); border-color: #8fbf3a; }
.frame-bone { background: #1b1712; border-color: #f4ecd6; box-shadow: inset 0 0 0 1px #8a7f66; }
.frame-copper { background: linear-gradient(160deg, #3a1f0d, #1a0d05); border-color: #d77a3a; }
.frame-sapphire { background: linear-gradient(160deg, #0d2140, #050d1a); border-color: #4fb6ff; box-shadow: 0 0 8px rgba(79, 182, 255, 0.35); }
.frame-bloodstone { background: linear-gradient(160deg, #3a0a10, #1a0306); border-color: #c0392b; }
.frame-parchment { background: linear-gradient(160deg, #6b5532, #3d2f19); border-color: #e8d29a; border-style: double; border-width: 3px; }
.frame-hoard {
  background: linear-gradient(160deg, #3d2c06, #1a1203); border-color: #f2b632;
  box-shadow: 0 0 10px rgba(242, 182, 50, 0.6); animation: hoardglow 1.8s ease-in-out infinite alternate;
}
@keyframes hoardglow { to { box-shadow: 0 0 18px rgba(255, 215, 90, 0.95); border-color: #fff3b0; } }
.frame-hellgate {
  background: linear-gradient(0deg, #4a0d00, #120300 70%); border-color: #ff6a00;
  animation: hellglow 0.35s ease-in-out infinite alternate;
}
@keyframes hellglow { from { box-shadow: 0 0 8px #ff3c00, inset 0 -4px 8px rgba(255, 120, 0, 0.5); } to { box-shadow: 0 0 16px #ffa000, inset 0 -6px 10px rgba(255, 180, 0, 0.6); } }
.frame-spectral {
  background: rgba(170, 220, 255, 0.08); border-color: transparent; position: relative;
  background-image: linear-gradient(rgba(10, 14, 20, 0.85), rgba(10, 14, 20, 0.85)), linear-gradient(90deg, #ff004c, #ff9a00, #f2e600, #3dff6e, #00c8ff, #a64dff, #ff004c);
  background-origin: border-box; background-clip: padding-box, border-box; background-size: 100% 100%, 200% 100%;
  animation: spectral 2.5s linear infinite;
}
@keyframes spectral { to { background-position: 0 0, 200% 0; } }
#richpanel { left: 16px; }
#onlinepanel { right: 16px; }
#onlinepanel, #richpanel {
  position: fixed; top: 22px; z-index: 61; display: none; max-width: min(300px, calc(50vw - 24px));
  border-radius: 16px; background: linear-gradient(170deg, rgba(58, 64, 72, 0.95), rgba(21, 24, 30, 0.95));
  border: 2px solid rgba(154, 168, 184, 0.45); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
#onlinepanel.show, #richpanel.show { display: block; }
/* the company boards are wider so long company names fit */
#richpanel { max-width: min(380px, calc(50vw - 24px)); }
#richhead { color: var(--gold); }
#richpanel:not(.open) .caret { transform: rotate(-90deg); }
#richpanel:not(.open) #richbody { display: none; }
#richtabs { display: flex; flex-direction: column; gap: 4px; padding: 0 10px 4px; }
#richtabs .rsets, #richtabs .rtabs { display: flex; gap: 4px; }
#richtabs .rset { flex: 1; min-height: 40px; border-radius: 8px; cursor: pointer; font: 800 12px var(--f-ui); letter-spacing: 0.08em; text-transform: uppercase; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(154, 168, 184, 0.3); color: inherit; }
@media (max-width: 480px) { #richtabs .rset { min-width: 0; font-size: 10px; letter-spacing: 0.02em; padding: 0 2px; } }
#rich .rtick { white-space: nowrap; font: 800 10px var(--f-ui); letter-spacing: 0.08em; padding: 1px 4px; border-radius: 4px; background: rgba(255, 58, 192, 0.14); color: var(--wk-magenta); vertical-align: 1px; }
#richtabs .rtab { flex: 1; padding: 3px 0; border-radius: 8px; cursor: pointer; font-size: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(154, 168, 184, 0.3); }
#richtabs .rtab.on { background: var(--gold); border-color: var(--gold); }
#richlabel { padding: 0 14px 4px; font-family: var(--f-ui); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); text-align: left; }
#rich .logo { flex: none; margin-right: 4px; vertical-align: middle; }
#rich .who { display: inline-flex; flex-direction: column; min-width: 0; line-height: 1.1; }
/* long company names wrap rather than get cut off */
#rich .co { font-family: var(--f-ui); font-size: 12px; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
#rich .boss { font-size: 12px; opacity: 0.75; }
#rich .dole { font-size: 11px; color: #9fd8ff; }
#rich li.none { font-family: var(--f-ui); font-size: 15px; color: var(--ink-dim); }
body.locked #richpanel, body.locked #onlinepanel, body.locked #tickclock { display: none; }
/* the Exchange's Private companies (js/casino/exchange-private.js): a logo for the emoji, a padlock for the trade box */
.stock.k-private .plogo { display: grid; place-items: center; }
.stock.k-private .plock { font: 800 12px var(--f-ui); letter-spacing: 0.6px; text-transform: uppercase; color: #a8a090; padding: 10px 12px; border: 2px dashed rgba(240, 236, 224, 0.25); border-radius: 8px; }
.stock.k-private.mine { box-shadow: inset 0 0 0 2px var(--wk-magenta); }
.stock.k-private.pgold .ssym { color: #2a1604; background: linear-gradient(#ffe4a0, #d9971f); border-radius: 5px; padding: 0 4px; }
