:root {
  --bg: #3a7ec9;
  --doodle: #2a5f9a;
  --panel: #0e4d8c;
  --panel-2: #0a3c70;
  --panel-3: #12599e;
  --play: #5ad15a;
  --play-d: #3da83d;
  --priv: #4aa3e8;
  --priv-d: #2d86cc;
  --ink: #1a1a1a;
  --paper: #f7f7f6;
  --paper-deep: #ececec;
  --paper-line: rgba(80, 80, 80, 0.1);
  --paper-photo: url("../assets/paper.webp?v=7");
  --paper-size: cover;
  --chat-ok: #1a9c2c;
  --chat-ok-bg: #c8f5c8;
  --chat-sys: #1a9c2c;
  --chat-leave: #e05a2b;
  --chat-draw: #1a6fd4;
  --chat-close: #8a6d00;
  --you: #1a6fd4;
  --shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
  --ui: "Atkinson Hyperlegible Next", Arial, sans-serif;
  --display: var(--ui);
}

/* ---------- DrawCoins economy ---------- */
.shop-utility {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.shop-balance {
  min-width: 184px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 5px 12px 5px 7px;
  border: 1px solid rgba(255, 222, 91, .68);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 228, 105, .22), rgba(155, 99, 0, .2)),
    rgba(4, 34, 65, .72);
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 3px 0 rgba(2, 22, 43, .26);
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.shop-balance:hover,
.shop-balance:focus-visible {
  transform: translateY(-1px);
  border-color: #fff0a7;
  background: linear-gradient(180deg, rgba(255, 229, 105, .32), rgba(155, 99, 0, .25)), #073d70;
}
.shop-balance > span:last-child { display: grid; min-width: 0; line-height: 1.05; }
.shop-balance small {
  color: #c6e2f5;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.shop-balance strong { margin-top: 3px; color: #ffe578; font-size: 13px; font-weight: 1000; white-space: nowrap; }
.shop-balance.has-coins strong { color: #fff09c; text-shadow: 0 0 13px rgba(255, 215, 58, .34); }

.drawcoin-icon {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  width: 58px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 4px solid #e29b08;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 27%, rgba(255,255,255,.94) 0 4%, rgba(255,255,255,.2) 5% 11%, transparent 12%),
    radial-gradient(circle at 38% 34%, #fff8a8 0%, #ffd84f 28%, #f5b51b 62%, #c87805 100%);
  color: #8b4c00;
  box-shadow:
    inset 0 0 0 3px #ffe87b,
    inset 0 -7px 0 rgba(173, 87, 0, .22),
    inset 0 4px 0 rgba(255,255,255,.42),
    0 5px 0 #985200,
    0 8px 13px rgba(0, 20, 42, .36);
  font-family: var(--display);
  transform: rotate(-6deg);
}
.drawcoin-icon::before {
  content: "FD";
  position: relative;
  z-index: 3;
  padding-right: .08em;
  color: #8b4c00;
  font-size: 21px;
  font-weight: 1000;
  letter-spacing: -.11em;
  line-height: 1;
  paint-order: stroke fill;
  -webkit-text-stroke: .45px rgba(105, 51, 0, .45);
  text-shadow: 0 2px 0 rgba(255,255,255,.5), 0 -1px 0 rgba(103,48,0,.22);
}
.drawcoin-icon::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: -40%;
  bottom: -40%;
  left: -58%;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  transform: rotate(22deg);
  animation: drawCoinGlint 3.4s ease-in-out infinite;
}
.drawcoin-icon > i {
  position: absolute;
  z-index: 1;
  inset: 7px;
  border: 1px solid rgba(156, 80, 0, .34);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 244, 155, .62), 0 1px rgba(255,255,255,.34);
}
.drawcoin-icon > i::after {
  content: none;
}
.drawcoin-icon-small { width: 34px; border-width: 3px; box-shadow: inset 0 0 0 2px #ffe87b, inset 0 -4px rgba(173,87,0,.2), 0 3px 0 #985200, 0 5px 8px rgba(0,20,42,.3); }
.drawcoin-icon-small::before { font-size: 12px; -webkit-text-stroke-width: .3px; }
.drawcoin-icon-small > i { inset: 4px; }
.drawcoin-icon-tiny { width: 25px; border-width: 2px; box-shadow: inset 0 0 0 1px #ffe87b, inset 0 -3px rgba(173,87,0,.2), 0 2px 0 #985200, 0 3px 5px rgba(0,20,42,.28); }
.drawcoin-icon-tiny::before { font-size: 9px; -webkit-text-stroke-width: .2px; }
.drawcoin-icon-tiny > i { inset: 3px; }
.drawcoin-icon-hero { width: 82px; border-width: 5px; box-shadow: inset 0 0 0 4px #ffe87b, inset 0 -9px rgba(173,87,0,.22), inset 0 5px rgba(255,255,255,.42), 0 7px 0 #985200, 0 12px 20px rgba(0,20,42,.38); }
.drawcoin-icon-hero::before { font-size: 30px; -webkit-text-stroke-width: .7px; }
.drawcoin-icon-hero > i { inset: 10px; border-width: 2px; }

@keyframes drawCoinGlint {
  0%, 42% { transform: translateX(0) rotate(22deg); opacity: 0; }
  52% { opacity: .9; }
  66%, 100% { transform: translateX(520%) rotate(22deg); opacity: 0; }
}
@keyframes drawCoinFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -3px; }
}

.shop-tab.drawcoins-tab {
  border-color: #ffe785;
  background: linear-gradient(180deg, #ffec8f, #eeb126);
  color: #422800;
  box-shadow: inset 0 -3px 0 rgba(146,84,0,.28), inset 0 1px rgba(255,255,255,.72), 0 2px 0 rgba(3,26,48,.2);
}
.shop-tab.drawcoins-tab:hover { background: linear-gradient(180deg, #fff3ad, #f6c33c); }
.shop-tab.drawcoins-tab b { background: rgba(93,52,0,.14); color: #5d3500; }
.shop-tab.drawcoins-tab.on {
  border-color: #fff8c9;
  background: linear-gradient(180deg, #fff6c7, #ffd64f 52%, #efac19);
  box-shadow: inset 0 -4px 0 rgba(146,84,0,.3), inset 0 2px rgba(255,255,255,.85), 0 0 0 2px rgba(255,218,68,.26), 0 4px 10px rgba(2,23,44,.24);
}

.shop-skus.tab-coins {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
}
.drawcoins-hero {
  position: relative;
  grid-column: 1 / -1;
  min-height: 128px;
  display: grid;
  grid-template-columns: 100px minmax(230px, 1.4fr) minmax(280px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 222, 92, .56);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 45%, rgba(255, 224, 78, .28), transparent 23%),
    radial-gradient(circle at 92% 0%, rgba(255, 238, 146, .14), transparent 34%),
    linear-gradient(135deg, #9d5d08, #6e3b05 34%, #173f6c 78%, #092d54);
  box-shadow: inset 0 1px rgba(255,255,255,.24), 0 10px 24px rgba(1, 18, 37, .24);
  color: #fff;
}
.drawcoins-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 38px, rgba(255,255,255,.025) 39px 40px);
}
.drawcoins-hero-mark { position: relative; z-index: 1; display: grid; place-items: center; }
.drawcoins-hero-mark .drawcoin-icon { animation: drawCoinFloat 3s ease-in-out infinite; }
.drawcoins-hero > div:nth-child(2) { position: relative; z-index: 1; display: grid; gap: 3px; }
.drawcoins-hero small { color: #ffe985; font-size: 10px; font-weight: 1000; letter-spacing: .13em; text-transform: uppercase; }
.drawcoins-hero strong { font-family: var(--display); font-size: clamp(23px, 2.7vw, 32px); line-height: 1; }
.drawcoins-hero > div:nth-child(2) > span { max-width: 530px; color: #e4eff8; font-size: 11px; font-weight: 760; line-height: 1.42; }
.drawcoins-hero .drawcoin-icon { color: #8b4c00; }
.drawcoins-hero ul {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.drawcoins-hero li {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(255, 232, 139, .18);
  border-radius: 12px;
  background: rgba(3, 28, 55, .31);
  text-align: center;
}
.drawcoins-hero li b { color: #fff4ae; font-size: 10px; font-weight: 1000; }
.drawcoins-hero li span { color: #d4e9f7; font-size: 9px; line-height: 1.3; }

.coin-pack {
  position: relative;
  min-width: 0;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 218, 73, .5);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 227, 91, .23), transparent 31%),
    linear-gradient(160deg, #145b94 0%, #073c6d 50%, #062d55 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.18), 0 8px 18px rgba(2,20,40,.2);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.coin-pack:hover,
.coin-pack:focus-within { transform: translateY(-3px); border-color: #ffe77c; box-shadow: inset 0 1px rgba(255,255,255,.2), 0 14px 26px rgba(1,17,34,.3); }
.coin-pack.popular { border-color: #7be3ff; box-shadow: inset 0 0 0 2px rgba(60,202,243,.28), 0 10px 22px rgba(1,18,36,.25); }
.coin-pack.best { border-color: #fff0a3; box-shadow: inset 0 0 0 2px rgba(255,216,73,.34), 0 10px 22px rgba(1,18,36,.25); }
.coin-pack-1 { background: radial-gradient(circle at 50% 19%, rgba(255,227,91,.2), transparent 32%), linear-gradient(160deg, #1b7b9c, #07516e 55%, #063b58); }
.coin-pack-2 { background: radial-gradient(circle at 50% 19%, rgba(255,227,91,.23), transparent 34%), linear-gradient(160deg, #286aaf, #0b4c85 55%, #07335f); }
.coin-pack-3 { background: radial-gradient(circle at 50% 19%, rgba(255,227,91,.26), transparent 35%), linear-gradient(160deg, #7757b8, #423778 56%, #172e5a); }
.coin-pack-4 { background: radial-gradient(circle at 50% 19%, rgba(255,227,91,.28), transparent 37%), linear-gradient(160deg, #ad5f31, #70402d 54%, #293158); }
.coin-pack-5 { background: radial-gradient(circle at 50% 18%, rgba(255,240,149,.34), transparent 38%), linear-gradient(160deg, #9d720c, #684307 48%, #263661); }
.coin-pack-visual {
  position: relative;
  min-height: 138px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent);
  border-bottom: 1px solid rgba(255, 231, 131, .12);
}
.coin-pack-ribbon {
  position: absolute;
  z-index: 30;
  top: 10px;
  right: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: #ffd850;
  color: #553200;
  font-size: 9px;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(80,43,0,.28);
}
.coin-pack.popular .coin-pack-ribbon { background: #88e9ff; color: #06334c; }
.drawcoin-stack { position: relative; width: 166px; height: 112px; filter: drop-shadow(0 10px 10px rgba(0,19,39,.28)); }
.stacked-drawcoin {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(calc(-50% + var(--coin-x)), calc(-50% + var(--coin-y))) rotate(var(--coin-r));
  animation: drawCoinStackBob 3.2s ease-in-out infinite var(--coin-delay);
}
.stacked-drawcoin .drawcoin-icon { width: 58px; }
.stacked-drawcoin:nth-child(n+3) { z-index: 3; }
.stacked-drawcoin:nth-child(n+6) { z-index: 4; }
.stacked-drawcoin:nth-child(n+10) { z-index: 5; }
.coin-stack-glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 3px;
  width: 130px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 210, 42, .32);
  filter: blur(12px);
  transform: translateX(-50%);
}
@keyframes drawCoinStackBob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -2px; }
}
.coin-pack-copy { min-height: 115px; display: grid; align-content: start; gap: 4px; padding: 12px 12px 8px; }
.coin-pack-copy > small { color: #d0e7f7; font-size: 9px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.coin-pack-copy h4 { margin: 0; color: #fff5b3; font-size: 22px; line-height: 1; }
.coin-pack-copy h4 span { display: block; margin-top: 2px; color: #fff; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.coin-bonus {
  width: max-content;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(61, 187, 95, .34);
  color: #caffd4;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.coin-bonus-base { background: rgba(142, 190, 225, .14); color: #c6e1f4; }
.coin-pack-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 2px 0 0; color: #d0e6f5; font-size: 10px; font-weight: 750; line-height: 1.4; }
.coin-pack-buy { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; margin-top: auto; padding: 0 11px 12px; }
.coin-pack-buy > strong { color: #fff; font-size: 16px; }
.btn-coin-pack {
  min-width: 0;
  height: 34px;
  margin: 0;
  padding: 0 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe982, #f4b826);
  color: #472c00;
  font-size: 10px;
  box-shadow: inset 0 1px rgba(255,255,255,.62), 0 3px 0 #9f6808;
}
.btn-coin-pack:disabled { opacity: .62; background: linear-gradient(180deg, #b7cad7, #7d98ac); color: #29445a; box-shadow: inset 0 1px rgba(255,255,255,.35), 0 3px 0 #405b70; }

.drawcoin-price { display: inline-flex; min-width: 0; align-items: center; gap: 5px; color: #ffe372; line-height: 1; }
.drawcoin-price strong { color: #ffe372; font-size: 17px; font-weight: 1000; text-shadow: 0 2px rgba(85,52,0,.38); }
.drawcoin-price small { color: #d8eaf7; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.sku.deal .drawcoin-price.current-price { font-size: inherit; }
.sku.deal .drawcoin-price.current-price strong { font-size: 20px; }

.coin-history {
  grid-column: 1 / -1;
  padding: 13px 15px;
  border: 1px solid rgba(143, 198, 238, .22);
  border-radius: 16px;
  background: rgba(3, 31, 61, .52);
  color: #fff;
}
.coin-history-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.coin-history-head strong { font-size: 12px; }
.coin-history-head span { color: #a7f3bd; font-size: 9px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.coin-history ul { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.coin-history li { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 8px; border-radius: 10px; background: rgba(133, 190, 231, .09); }
.coin-history li > span { min-width: 0; overflow: hidden; color: #d9ebf8; font-size: 9px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.coin-history li small { display: block; margin-top: 2px; color: #afd2e9; font-size: 9px; }
.coin-history li b { flex: 0 0 auto; font-size: 10px; }
.coin-history li b.credit { color: #8ff0aa; }
.coin-history li b.debit { color: #ffe27a; }
.coin-history-empty { display: flex; min-height: 65px; align-items: center; justify-content: center; gap: 11px; }
.coin-history-empty > div { display: grid; place-items: center; }
.coin-history-empty p { display: grid; gap: 3px; margin: 0; }
.coin-history-empty p strong { font-size: 11px; }
.coin-history-empty p span { color: #a9cce4; font-size: 9px; font-weight: 720; }

@media (max-width: 900px) {
  .shop-skus.tab-coins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drawcoins-hero { grid-template-columns: 88px 1fr; }
  .drawcoins-hero ul { grid-column: 1 / -1; }
  .coin-history ul { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .shop-utility { grid-template-columns: minmax(0, 1fr) auto; }
  .shop-balance { min-width: 132px; min-height: 38px; padding: 3px 7px 3px 5px; gap: 5px; }
  .shop-balance .drawcoin-icon-small { width: 28px; }
  .shop-balance .drawcoin-icon-small::before { font-size: 10px; }
  .shop-balance .drawcoin-icon-small > i { inset: 3px; }
  .shop-balance small { font-size: 8px; }
  .shop-balance strong { font-size: 10px; }
  .shop-skus.tab-coins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .drawcoins-hero { min-height: 0; grid-template-columns: 56px 1fr; gap: 9px; padding: 11px; border-radius: 15px; }
  .drawcoins-hero-mark .drawcoin-icon-hero { width: 48px; border-width: 3px; box-shadow: inset 0 0 0 2px #ffe87b, inset 0 -5px rgba(173,87,0,.22), 0 4px 0 #985200, 0 7px 11px rgba(0,20,42,.35); }
  .drawcoins-hero-mark .drawcoin-icon-hero::before { font-size: 17px; -webkit-text-stroke-width: .4px; }
  .drawcoins-hero-mark .drawcoin-icon-hero > i { inset: 6px; border-width: 1px; }
  .drawcoins-hero strong { font-size: 18px; }
  .drawcoins-hero > div:nth-child(2) > span { font-size: 10px; line-height: 1.35; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .drawcoins-hero ul { gap: 4px; }
  .drawcoins-hero li { min-height: 42px; padding: 5px 3px; border-radius: 9px; }
  .drawcoins-hero li b { font-size: 9px; }
  .drawcoins-hero li span { font-size: 8px; }
  .coin-pack { min-height: 274px; border-radius: 15px; }
  .coin-pack-visual { min-height: 111px; }
  .drawcoin-stack { transform: scale(.74); }
  .coin-pack-ribbon { top: 6px; right: 5px; padding: 4px 6px; font-size: 8px; }
  .coin-pack-copy { min-height: 116px; gap: 4px; padding: 10px 9px 7px; }
  .coin-pack-copy > small { font-size: 8px; }
  .coin-pack-copy h4 { font-size: 17px; }
  .coin-pack-copy h4 span { font-size: 9px; }
  .coin-bonus { font-size: 8px; padding: 3px 6px; }
  .coin-pack-copy p { font-size: 9px; line-height: 1.35; -webkit-line-clamp: 3; }
  .coin-pack-buy { grid-template-columns: 1fr; gap: 5px; padding: 0 8px 9px; }
  .coin-pack-buy > strong { font-size: 13px; }
  .btn-coin-pack { width: 100%; height: 34px; font-size: 10px; }
  .drawcoin-price { gap: 3px; }
  .drawcoin-price .drawcoin-icon-tiny { width: 20px; }
  .drawcoin-price .drawcoin-icon-tiny::before { font-size: 7px; }
  .drawcoin-price .drawcoin-icon-tiny > i { inset: 2px; }
  .drawcoin-price strong { font-size: 13px; }
  .drawcoin-price small { font-size: 8px; }
  .sku.deal .drawcoin-price.current-price strong { font-size: 15px; }
  .coin-history { padding: 9px; }
  .coin-history ul { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .coin-history li:nth-child(n+5) { display: none; }
}

html.motion-off .drawcoin-icon::after,
html.motion-off .drawcoins-hero-mark .drawcoin-icon,
html.motion-off .stacked-drawcoin { animation: none !important; }

.site-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.65rem auto max(0.7rem, env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.82);
  font: 800 0.76rem/1.2 "Nunito", sans-serif;
}

.site-legal-links a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-legal-links a:hover,
.site-legal-links a:focus-visible { color: #fff; }

* { box-sizing: border-box; }
.sheet,
.hud,
.players,
.board-wrap,
.chat-col,
.board-stage,
.scoreboard,
.board-modal,
.tools,
.settings-pop {
  background-color: var(--paper);
  background-image: var(--paper-photo);
  background-size: var(--paper-size);
  background-repeat: no-repeat;
  background-position: center;
}
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--ui);
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("../assets/doodles-clean.webp?v=3");
  background-size: 520px 520px;
  background-repeat: repeat;
}
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
#app {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- screens ---------- */
.screen { display: none !important; }
.screen.on { display: block; }
.screen.lobby.on {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: clamp(6px, 1.2vh, 14px) 16px clamp(8px, 1.4vh, 16px);
}
.screen.lobby.on > * { flex-shrink: 0; }
.screen.game.on {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  overflow: auto;
  padding: 6px 10px 10px;
  box-sizing: border-box;
}

/* ---------- logo ---------- */
.brand {
  --brand-outline: #061f38;
  --brand-stroke: clamp(1.8px, .34vh, 3px);
  --brand-depth: clamp(1px, .2vh, 2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.brand .ch {
  font-family: "Dekko", "Comic Sans MS", cursive;
  font-size: clamp(46px, 9.6vh, 92px);
  line-height: .88;
  letter-spacing: -2px;
  font-weight: 700;
  display: inline-block;
  paint-order: stroke fill;
  -webkit-text-stroke: var(--brand-stroke) var(--brand-outline);
  text-shadow:
    0 var(--brand-depth) 0 var(--brand-outline),
    0 4px 0 rgba(5, 49, 91, .14),
    0 9px 18px rgba(3, 30, 63, .16);
  transform-origin: 50% 100%;
  animation: logoSway var(--d, 3.6s) cubic-bezier(.45, .05, .55, .95) infinite;
  animation-delay: var(--delay, 0s);
}
.brand .period {
  width: .24em;
  margin: 0 .015em 0 .025em;
  letter-spacing: 0;
  text-align: center;
  transform-origin: 50% 88%;
}
.brand .pencil {
  width: clamp(38px, 8vh, 64px);
  height: clamp(38px, 8vh, 64px);
  margin: 0 0 4px 4px;
  animation: logoSway 3.8s cubic-bezier(.45, .05, .55, .95) infinite;
  animation-delay: .16s;
  transform-origin: 50% 100%;
}
.brand.sm {
  --brand-stroke: 1.35px;
  --brand-depth: 1px;
  cursor: pointer;
}
.brand.sm:hover { filter: brightness(1.08); }
.brand.sm .ch { font-size: 32px; letter-spacing: -1px; }
.brand.sm .period { width: .25em; margin-inline: .02em; letter-spacing: 0; }
.brand.sm .pencil { width: 28px; height: 28px; margin-bottom: 0; }

.brand .c0 { color: #ff3b30; }
.brand .c1 { color: #ff8a00; }
.brand .c2 { color: #ffd000; }
.brand .c3 { color: #22c55e; }
.brand .c4 { color: #22d3ee; }
.brand .c5 { color: #6366f1; }
.brand .c6 { color: #a855f7; }
.brand .c7 { color: #ffffff; }
.brand .c8 { color: #ffffff; }
.brand .c9 { color: #ffffff; }

@keyframes logoWobble {
  0%, 100% { transform: rotate(var(--r, -8deg)); }
  50% { transform: rotate(calc(var(--r, -8deg) * -1)); }
}
@keyframes logoSway {
  0%, 100% { transform: rotate(var(--r, -2.6deg)) translateY(0); }
  50% { transform: rotate(calc(var(--r, -2.6deg) * -1)) translateY(-1.5px); }
}
.wobble {
  display: inline-block;
  transform-origin: 50% 80%;
  animation: logoWobble .8s ease-in-out infinite;
}

/* ---------- lobby ---------- */
.lobby {
  flex-direction: column;
  align-items: center;
}
.lobby .brand { margin-top: 0; }
.tagline {
  margin: 2px 0 0;
  color: #e8f4ff;
  font-weight: 800;
  font-size: clamp(13px, 1.7vh, 16px);
  text-shadow: 0 2px 0 #0a3366;
}
.room-chip {
  margin-left: auto;
  margin-right: 8px;
  background: #fff;
  border: 0;
  color: #0a3366;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
  letter-spacing: 0.06em;
}

.mascots {
  display: flex;
  gap: 2px;
  margin: clamp(4px, 1vh, 10px) 0 clamp(6px, 1.2vh, 12px);
  height: clamp(44px, 7.2vh, 64px);
  align-items: flex-end;
  justify-content: center;
}
.mascot {
  width: clamp(36px, 5.6vh, 52px);
  height: clamp(42px, 6.4vh, 58px);
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  animation: mascotBob 2.8s ease-in-out infinite;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.18));
}
.mascot:hover { animation-play-state: paused; transform: scale(1.08); }
.mascot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mascot:nth-child(1) { animation-delay: 0s; }
.mascot:nth-child(2) { animation-delay: .18s; }
.mascot:nth-child(3) { animation-delay: .36s; }
.mascot:nth-child(4) { animation-delay: .54s; }
.mascot:nth-child(5) { animation-delay: .72s; }
.mascot:nth-child(6) { animation-delay: .9s; }
.mascot:nth-child(7) { animation-delay: 1.08s; }
.mascot:nth-child(8) { animation-delay: 1.26s; }

@keyframes mascotBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.login {
  position: relative;
  isolation: isolate;
  width: min(460px, 100%);
  background: linear-gradient(180deg, #1763b0 0%, #0c3f7a 100%);
  border: 2px solid rgba(255,255,255,.14);
  outline: 0;
  border-radius: 18px;
  padding: clamp(8px, 1.2vh, 12px);
  box-shadow: 0 0 0 3px #07284d, 0 14px 36px rgba(4, 18, 40, .28), 0 6px 0 #07284d;
  overflow: hidden;
}
.login-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 8px;
  margin-bottom: 5px;
}
.login-row[hidden], .login-note[hidden], .account-session[hidden] { display: none !important; }
.login-field { display: grid; min-width: 0; gap: 4px; }
.login-field > span {
  padding-left: 2px;
  color: #d8ecff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.login-field > span em {
  font-size: .82em;
  font-style: normal;
  letter-spacing: 0;
  opacity: .78;
  text-transform: none;
}
.account-submit {
  align-self: end;
  min-width: 104px;
  height: clamp(34px, 4.6vh, 40px);
  padding: 0 10px;
  border-color: #fff0a0;
  background: linear-gradient(180deg, #ffe77a, #f4bd2e);
  color: #432900;
  font-size: 10px;
  line-height: 1.05;
  box-shadow: inset 0 -3px rgba(145,89,0,.2), 0 3px 0 #9a6507;
}
.login input {
  width: 100%;
  height: clamp(34px, 4.6vh, 40px);
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  outline: none;
  background-color: #f1f0eb;
  background-image: var(--paper-photo);
  background-size: var(--paper-size);
  background-repeat: no-repeat;
  background-position: center;
  background-blend-mode: multiply;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 rgba(0,0,0,.12);
}
.login input:focus { box-shadow: 0 0 0 3px rgba(90,209,90,.45); }
.login-note {
  min-height: 15px;
  margin: 0 2px 7px;
  color: #b8d9f5;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.login-note.error { color: #ffd1d1; }
.login-note.ok { color: #bdf5c8; }

.account-session {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(181, 235, 198, .38);
  border-radius: 12px;
  background: rgba(5, 54, 75, .56);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.account-session-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #39c96b;
  color: #fff;
  font-size: 19px;
  font-weight: 1000;
  box-shadow: inset 0 -3px rgba(0,0,0,.16);
}
.account-session-copy { display: grid; min-width: 0; line-height: 1.05; }
.account-session-copy small { color: #9fd0ee; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.account-session-copy strong { overflow: hidden; color: #fff; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.account-session-copy em { margin-top: 3px; color: #bdf5c8; font-size: 9px; font-style: normal; font-weight: 800; }
.account-session-mark,
.account-session-copy { grid-row: 1 / 3; }
.account-signout { grid-column: 3; grid-row: 1; }
.account-delete { grid-column: 3; grid-row: 2; }
.account-signout,
.account-delete {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px;
  background: rgba(8, 40, 79, .82);
  color: #dceeff;
  font-size: 10px;
  font-weight: 900;
}
.account-signout:hover { background: #125891; color: #fff; }
.account-delete {
  border-color: rgba(255, 193, 193, .28);
  background: rgba(94, 26, 42, .72);
  color: #ffd9df;
}
.account-delete:hover { background: #8a2941; color: #fff; }

.avatar-stage {
  position: relative;
  background: radial-gradient(circle at 50% 32%, #1a5ca3 0%, #08284f 72%);
  border-radius: 14px;
  height: clamp(118px, 20vh, 158px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.avatar-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, transparent 40%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
}
.picker-avatar {
  width: clamp(92px, 16vh, 118px);
  height: clamp(100px, 17.5vh, 128px);
  animation: pickerIdle 2.6s ease-in-out infinite;
  z-index: 1;
}
.picker-avatar svg { width: 100%; height: 100%; animation: blobBob 2.2s ease-in-out infinite; }
@keyframes pickerIdle {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-4px) rotate(1.4deg); }
}

.look-chev {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  width: 40px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #7ec8ff;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 #062445;
  z-index: 4;
}
.look-chev[data-dir="-1"] { left: 6px; }
.look-chev[data-dir="1"] { right: 6px; }
.look-chev:hover { color: #fff; transform: scale(1.12); }
.look-rack { margin-bottom: 8px; }
.look-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 6px;
}
.look-tab {
  border: 0;
  background: #0a3c70;
  color: #d7ecff;
  font-weight: 800;
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 8px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
}
.look-tab.on { background: #f7d048; color: #3a2500; }
.look-now {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
  min-height: 36px;
}
.look-sample { grid-column: 1 / -1; min-height: 18px; }
.look-sample .nm { font-weight: 900; font-size: 16px; }
#look-label { font-size: 13px; color: #fff; }
.look-acts { display: flex; gap: 6px; }
.look-unlock, .look-off, .look-reset {
  border: 0;
  font-weight: 900;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}
.look-unlock { background: #f7d048; color: #3a2500; }
.look-off { background: #0a3366; color: #dbeafe; }
.look-off:disabled { opacity: .4; }
.look-reset {
  width: 100%;
  margin-top: 6px;
  background: #0a3366;
  color: #cfe8ff;
}
.look-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  min-height: 22px;
}
.look-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #08284f;
  color: #e8f4ff;
  border: 1px solid #1a6ec0;
  border-radius: 999px;
  padding: 3px 6px 3px 8px;
  font-size: 11px;
  font-weight: 800;
}
.look-chip b { font-weight: 800; }
.look-chip button {
  border: 0;
  background: transparent;
  color: #fca5a5;
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
  padding: 0 2px;
}

.dice {
  position: absolute;
  top: 8px;
  right: 46px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  z-index: 3;
  padding: 0;
}
.dice svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 0 #062445);
  transform-origin: 50% 80%;
  animation: logoWobble .76s ease-in-out infinite;
  --r: -9deg;
}
.dice:hover svg { transform: scale(1.1); }
.dice.spin svg { animation: diceSpin .55s ease; }
@keyframes diceSpin {
  0% { transform: rotate(0) scale(1); }
  40% { transform: rotate(200deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.18);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.btn-play {
  background: linear-gradient(180deg, #6ee06e 0%, #3db83d 100%);
  height: clamp(42px, 6vh, 52px);
  font-size: clamp(24px, 3.4vh, 30px);
  margin-bottom: 6px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 2px 0 rgba(0,0,0,.18);
  animation: playPulse 2s ease-in-out infinite;
}
@keyframes playPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012); }
}
.btn-priv {
  background: linear-gradient(180deg, #5bb4f0 0%, #2d86cc 100%);
  height: clamp(36px, 5vh, 42px);
  font-size: 17px;
  font-weight: 800;
}
.btn-shop {
  background: linear-gradient(180deg, #ffe06a 0%, #e0a21b 100%);
  color: #3a2500;
  text-shadow: none;
  height: clamp(36px, 5vh, 42px);
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 6px;
}
.lock-hint {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff3bf;
  margin: 0 0 8px;
}
.shop-chip {
  background: #f7d048;
  border: 2px solid #0a3366;
  color: #3a2500;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 12px;
}
.safety-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 2px solid #0a3366;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #0a3366;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.shop-pop {
  position: fixed;
  inset: 0;
  background: rgba(6, 18, 40, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 62;
  padding: 16px;
  overflow: hidden;
}
.shop-pop.on { display: flex; }
.shop-card {
  width: min(860px, 96vw);
  height: min(92vh, 760px);
  max-height: min(92vh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #155aa3 0%, #0c3f7a 100%);
  color: #eef6ff;
  border: 3px solid #07284d;
  border-radius: 16px;
  padding: 20px 20px 16px;
  position: relative;
  box-shadow: 0 10px 0 rgba(0,0,0,.22);
}
.shop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 28px;
}
.shop-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 800;
  text-transform: uppercase;
  color: #f7d048;
}
.shop-card h3 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
}
.shop-head, .shop-lead, .shop-tabs { flex-shrink: 0; }
.shop-lead { margin: 10px 0 12px; line-height: 1.45; font-weight: 700; max-width: 46rem; }
.shop-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.shop-pop,
.shop-card {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shop-pop::-webkit-scrollbar,
.shop-card::-webkit-scrollbar { width: 0; height: 0; display: none; }
.shop-tab {
  border: 0;
  background: #0a3c70;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 7px 12px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.shop-tab.on { background: #f7d048; color: #3a2500; }
.shop-skus {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  grid-auto-rows: min-content;
  gap: 14px;
  flex: 1 1 0%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 12px 20px;
  align-content: start;
  align-items: start;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shop-skus.tab-deals,
.shop-skus.deals-on {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.shop-skus.tab-names,
.shop-skus.names-on {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.shop-skus::-webkit-scrollbar { width: 0; height: 0; display: none; }
.sku {
  background: radial-gradient(circle at 50% 18%, #1a5ca3 0%, #0a3c70 58%);
  border: 2px solid #1a6ec0;
  border-radius: 14px;
  padding: 10px 10px 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 228px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  overflow: hidden;
  isolation: isolate;
}
.sku.best {
  border-color: #f7d048;
  box-shadow: inset 0 0 0 2px #f7d048;
}
.sku.owned {
  outline: none;
  border-color: #5ad15a;
  box-shadow: inset 0 0 0 2px #5ad15a;
}
.sku.best.owned {
  border-color: #f7d048;
  box-shadow: inset 0 0 0 2px #5ad15a;
}
.sku .preview {
  height: 140px;
  flex: 0 0 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  padding: 10px 8px 6px;
  background: #08284f;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.sku .preview svg {
  width: 100px;
  height: 108px;
  flex: 0 0 auto;
  display: block;
  overflow: visible;
}
.sku h4 {
  margin: 0 0 2px;
  font-size: 15px;
  line-height: 1.2;
  flex: 0 0 auto;
  overflow-wrap: anywhere;
}
.sku .price {
  font-weight: 900;
  color: #f7d048;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.sku .save {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #2f8f46;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
}
.sku p { display: none !important; }
.sku .btn {
  width: 100%;
  height: 34px;
  padding: 0;
  font-size: 14px;
  margin: 8px 0 0;
  flex: 0 0 34px;
}
.sku.owned .btn { background: #2f8f46; color: #fff; }
.sku.deal {
  min-height: 200px;
}
.sku.deal .preview { display: none !important; }
.sku.deal h4 { font-size: 16px; margin: 2px 0 6px; }
.sku.deal p { margin: 6px 0 10px; font-size: 13px; line-height: 1.4; }
.deal-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #08284f;
  border-radius: 10px;
  flex: 0 0 auto;
}
.deal-mark b {
  font-size: 28px;
  line-height: 1;
  color: #f7d048;
  font-weight: 900;
}
.deal-mark span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9ec5ea;
}
.deal-mark.is-best {
  background: linear-gradient(90deg, #4a3500 0%, #08284f 70%);
}
.deal-mark.is-best b { color: #ffe08a; }
.deal-mark.is-best span { color: #f7d048; }
.sku.name-sku { min-height: 176px; }
.sku.name-sku p,
#shop-skus.names-on p { display: none !important; }
.sku.name-sku .preview,
.sku.name-sku .name-prev {
  height: 76px;
  flex: 0 0 76px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.sku.name-sku { min-height: 202px; }
.sku.name-sku .sku-copy { min-height: 44px; }
.sku.name-sku .name-prev .nm { font-size: 24px; line-height: 1; }
.shop-restore { margin-top: 14px; }
.shop-restore label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.shop-code-out { font-size: 13px; font-weight: 800; color: #f7d048; min-height: 1.2em; }
.pname.plus, .nm.plus {
  color: #c98900;
  text-shadow: 0 0 8px rgba(247, 208, 72, .35);
}
.pname.rainbow, .nm.rainbow {
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pname.ice, .nm.ice { color: #7dd3fc; text-shadow: 0 0 8px rgba(125,211,252,.45); }
.pname.fire, .nm.fire { color: #fb7185; text-shadow: 0 0 8px rgba(251,113,133,.4); }
.pname.neon, .nm.neon { color: #ff2bd6; text-shadow: 0 0 10px rgba(255,43,214,.55); }
.pname.shadow, .nm.shadow { color: #e2e8f0; text-shadow: 0 0 8px #020617; }
.pname .star, .nm .star { color: #f7d048; margin-left: 3px; }
.name-prev {
  display: grid;
  place-items: center;
  background: #08284f;
  border-radius: 10px;
}
.name-prev .nm { font-weight: 900; font-size: 22px; }
.nm.gold, .name-prev .nm.gold { color: #f7d048; }

.pav, .picker-avatar, .character-render {
  position: relative;
  overflow: visible;
}
.character-render svg { width: 100%; height: 100%; overflow: visible; }
svg .hat {
  filter: drop-shadow(0 1.1px .45px rgba(2, 16, 38, .24));
  shape-rendering: geometricPrecision;
}
svg .hair-back-layer,
svg .hair-style {
  shape-rendering: geometricPrecision;
}
svg .hair-back-layer {
  filter: drop-shadow(0 1.4px .6px rgba(2, 16, 38, .2));
}
svg .headwear-3,
svg .headwear-art.cloud-halo {
  animation: headwearHover 2.8s ease-in-out infinite;
}
svg .headwear-art.peacock-plume {
  transform-box: fill-box;
  transform-origin: 36px 20px;
  animation: headwearPlume 3.4s ease-in-out infinite;
}
svg .headwear-art.lightning-crown { animation: headwearCharge 2.2s ease-in-out infinite; }
svg .headwear-art.gamer-headset { animation: headwearHeadset 2.6s ease-in-out infinite; }
@keyframes headwearHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-.75px); }
}
@keyframes headwearPlume {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1.5deg); }
}
@keyframes headwearCharge {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0 rgba(250,204,21,0)); }
  50% { filter: brightness(1.12) drop-shadow(0 0 1.8px rgba(250,204,21,.7)); }
}
@keyframes headwearHeadset {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(34,211,238,0)); }
  50% { filter: drop-shadow(0 0 1.5px rgba(34,211,238,.55)); }
}
.fx-color-neon { filter: drop-shadow(0 0 7px rgba(255, 43, 214, .7)); }
.fx-color-gold { filter: drop-shadow(0 0 5px rgba(250, 204, 21, .45)); }
.fx-color-silver { filter: drop-shadow(0 0 4px rgba(226, 232, 240, .4)); }
.fx-color-rainbow { filter: drop-shadow(0 0 5px rgba(236, 72, 153, .35)); }
.fx-color-sun { filter: drop-shadow(0 0 6px rgba(250, 204, 21, .45)); }
.fx-color-hole { filter: drop-shadow(0 0 5px rgba(251, 191, 36, .35)); }
.fx-color-holo { animation: skinHoloGlow 3s ease-in-out infinite; }
.fx-color-diamond { filter: drop-shadow(0 0 5px rgba(125, 211, 252, .34)); }
.fx-color-obsidian { filter: drop-shadow(0 0 5px rgba(129, 140, 248, .22)); }
.skin-dark-face .mouth path { stroke: #edf6ff !important; }
.skin-dark-face .mouth path[fill="#1a1a1a"],
.skin-dark-face .mouth ellipse[fill="#1a1a1a"],
.skin-dark-face .mouth circle[fill="#1a1a1a"] { fill: #edf6ff !important; }
@keyframes skinHoloGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(103, 232, 249, .25)); }
  50% { filter: drop-shadow(0 0 6px rgba(249, 168, 212, .38)); }
}
.fx-orb, .fx-bits {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 140%;
  height: 140%;
  margin: -70% 0 0 -70%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: none;
}
.pav svg, .picker-avatar svg, .sku .preview svg { position: relative; z-index: 1; }
.fx-aura .fx-orb,
.fx-aura .fx-bits { display: none; }
.sku .preview.aura-prev,
.sku .preview.rank-prev { overflow: hidden; }
.aura-bits .aura-bit { transform-box: fill-box; }
svg .fx-float { animation: auraFloat 1.5s ease-in-out infinite; }
svg .fx-flicker { animation: auraFlick .55s ease-in-out infinite; }
svg .fx-twinkle { animation: auraTwinkle 1.1s ease-in-out infinite; }
svg .rain-drop,
svg .snow-flake,
svg .rise-bit,
svg .twinkle-bit,
svg .flash-bit,
svg .petal-bit,
svg .coin-bit,
svg .orbit-bit,
svg .drip-bit,
svg .wisp-bit,
svg .ribbon-bit,
svg .bob-bit,
svg .blink-bit {
  transform-box: fill-box;
  transform-origin: center;
}
svg .confetti-bit,
svg .firefly-bit,
svg .rose-bit,
svg .solar-bit,
svg .plasma-bit,
svg .meteor-bit,
svg .cosmic-bit,
svg .leaf-bit,
svg .music-bit,
svg .candy-bit,
svg .diamond-bit,
svg .erupt-bit,
svg .crystal-bit,
svg .smoke-bit,
svg .feather-bit,
svg .burst-bit,
svg .gear-bit,
svg .gear-rev-bit,
svg .ring-bit,
svg .clover-bit,
svg .jelly-bit,
svg .flow-right-bit,
svg .flow-left-bit,
svg .lift-up-bit,
svg .drop-down-bit,
svg .bat-right-bit,
svg .bat-left-bit,
svg .butterfly-loop-a,
svg .butterfly-loop-b,
svg .card-right-bit,
svg .card-left-bit,
svg .arrow-right-bit,
svg .arrow-left-bit,
svg .portal-bit,
svg .lantern-rise-bit,
svg .plane-right-bit,
svg .plane-left-bit,
svg .star-stream-bit,
svg .sand-down-bit,
svg .sand-up-bit,
svg .duck-right-bit,
svg .duck-left-bit,
svg .rocket-up-bit,
svg .rocket-down-bit,
svg .paint-pop-bit,
svg .data-up-bit,
svg .data-down-bit,
svg .ghost-train-bit,
svg .bloom-bit,
svg .bass-right-bit,
svg .bass-left-bit {
  transform-box: fill-box;
  transform-origin: center;
}
svg .rain-drop { animation: auraRain .7s linear infinite; }
svg .snow-flake { animation: auraSnow 1.75s linear infinite; }
svg .rise-bit { animation: auraRise 1.15s ease-out infinite; }
svg .twinkle-bit { animation: auraTwinkleBit 1.15s ease-in-out infinite; }
svg .flash-bit { animation: auraFlash 1.45s linear infinite; }
svg .petal-bit { animation: auraPetal 2.15s linear infinite; }
svg .coin-bit { animation: auraCoin 1.55s linear infinite; }
svg .orbit-bit { animation: auraOrbit 2.4s ease-in-out infinite; }
svg .drip-bit { animation: auraDrip 1.25s ease-in infinite; }
svg .wisp-bit { animation: auraWisp 2s ease-in-out infinite; }
svg .ribbon-bit { animation: auraRibbon 2.2s ease-in-out infinite; }
svg .bob-bit { animation: auraBob 1.7s ease-in-out infinite; }
svg .blink-bit { animation: auraBlink .85s steps(1, end) infinite; }
svg .confetti-bit { animation: auraConfetti 2.1s linear infinite; }
svg .firefly-bit { animation: auraFirefly 2.6s ease-in-out infinite; }
svg .rose-bit { animation: auraRose 2.8s ease-in-out infinite; }
svg .solar-bit { animation: auraSolar 1.7s ease-in-out infinite; }
svg .plasma-bit { animation: auraPlasma 2.2s ease-in-out infinite; }
svg .meteor-bit { animation: auraMeteor 1.8s linear infinite; }
svg .cosmic-bit { animation: auraCosmic 2.8s ease-in-out infinite; }
svg .leaf-bit { animation: auraLeaf 2.5s linear infinite; }
svg .music-bit { animation: auraMusic 1.35s ease-in-out infinite; }
svg .candy-bit { animation: auraCandy 1.9s linear infinite; }
svg .diamond-bit { animation: auraDiamond 1.35s ease-in-out infinite; }
svg .erupt-bit { animation: auraErupt 1.3s ease-out infinite; }
svg .crystal-bit { animation: auraCrystal 2.4s ease-in-out infinite; }
svg .smoke-bit { animation: auraSmoke 3.2s ease-out infinite; }
svg .feather-bit { animation: auraFeather 3s linear infinite; }
svg .burst-bit { animation: auraBurst 1.8s ease-out infinite; }
svg .gear-bit { animation: auraGear 3s linear infinite; }
svg .gear-rev-bit { animation: auraGearReverse 3.7s linear infinite; }
svg .ring-bit { animation: auraRing 1.8s ease-out infinite; }
svg .clover-bit { animation: auraClover 2s ease-in-out infinite; }
svg .jelly-bit { animation: auraJelly 2.3s ease-in-out infinite; }
svg .flow-right-bit { animation: auraFlowRight 2.2s linear infinite; }
svg .flow-left-bit { animation: auraFlowLeft 2.45s linear infinite; }
svg .lift-up-bit { animation: auraLiftUp 1.8s ease-in infinite; }
svg .drop-down-bit { animation: auraDropDown 1.65s ease-in infinite; }
svg .bat-right-bit { animation: auraBatRight 2.35s linear infinite; }
svg .bat-left-bit { animation: auraBatLeft 2.7s linear infinite; }
svg .butterfly-loop-a { animation: auraButterflyA 3.2s ease-in-out infinite; }
svg .butterfly-loop-b { animation: auraButterflyB 3.65s ease-in-out infinite; }
svg .card-right-bit { animation: auraCardRight 2.55s linear infinite; }
svg .card-left-bit { animation: auraCardLeft 2.8s linear infinite; }
svg .arrow-right-bit { animation: auraArrowRight 1.55s linear infinite; }
svg .arrow-left-bit { animation: auraArrowLeft 1.75s linear infinite; }
svg .portal-bit { animation: auraPortal 2.2s ease-out infinite; }
svg .lantern-rise-bit { animation: auraLantern 3.15s ease-in-out infinite; }
svg .plane-right-bit { animation: auraPlaneRight 2.65s linear infinite; }
svg .plane-left-bit { animation: auraPlaneLeft 2.95s linear infinite; }
svg .star-stream-bit { animation: auraStarStream 1.7s linear infinite; }
svg .sand-down-bit { animation: auraSandDown 1.9s linear infinite; }
svg .sand-up-bit { animation: auraSandUp 2.1s linear infinite; }
svg .duck-right-bit { animation: auraDuckRight 3s linear infinite; }
svg .duck-left-bit { animation: auraDuckLeft 3.35s linear infinite; }
svg .rocket-up-bit { animation: auraRocketUp 2.3s ease-in infinite; }
svg .rocket-down-bit { animation: auraRocketDown 2.55s ease-in infinite; }
svg .paint-pop-bit { animation: auraPaintPop 1.65s ease-out infinite; }
svg .data-up-bit { animation: auraDataUp 1.85s linear infinite; }
svg .data-down-bit { animation: auraDataDown 2.05s linear infinite; }
svg .planet-orbit { transform-box: view-box; transform-origin: 40px 42px; animation: auraPlanetOrbit 6s linear infinite; }
svg .planet-orbit-rev { transform-box: view-box; transform-origin: 40px 42px; animation: auraPlanetOrbitReverse 7.2s linear infinite; }
svg .ghost-train-bit { animation: auraGhostTrain 2.85s linear infinite; }
svg .bloom-bit { animation: auraBloom 2.15s ease-in-out infinite; }
svg .bass-right-bit { animation: auraBassRight 1.8s linear infinite; }
svg .bass-left-bit { animation: auraBassLeft 2s linear infinite; }
@keyframes auraFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes auraRain {
  0% { transform: translate(3px, -16px); opacity: 0; }
  12% { opacity: 1; }
  86% { opacity: 1; }
  100% { transform: translate(-7px, 34px); opacity: 0; }
}
@keyframes auraSnow {
  0% { transform: translate(4px, -14px) rotate(0deg); opacity: 0; }
  14% { opacity: 1; }
  100% { transform: translate(-7px, 32px) rotate(80deg); opacity: 0; }
}
@keyframes auraRise {
  0% { transform: translateY(10px); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(-22px); opacity: 0; }
}
@keyframes auraTwinkleBit {
  0%, 100% { opacity: .2; transform: scale(.72); }
  50% { opacity: 1; transform: scale(1.18); }
}
@keyframes auraFlash {
  0%, 72%, 100% { opacity: 0; }
  76%, 84% { opacity: 1; }
  80% { opacity: .35; }
  88% { opacity: .12; }
}
@keyframes auraPetal {
  0% { transform: translate(4px, -14px) rotate(0deg); opacity: 0; }
  14% { opacity: 1; }
  100% { transform: translate(-11px, 32px) rotate(170deg); opacity: 0; }
}
@keyframes auraCoin {
  0% { transform: translate(2px, -12px) rotate(0deg); opacity: 0; }
  14% { opacity: 1; }
  100% { transform: translate(-5px, 30px) rotate(230deg); opacity: 0; }
}
@keyframes auraOrbit {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(3px, -5px); }
  50% { transform: translate(0, -8px); }
  75% { transform: translate(-3px, -3px); }
}
@keyframes auraDrip {
  0% { transform: translateY(-8px) scaleY(.65); opacity: 0; }
  16% { opacity: 1; }
  100% { transform: translateY(28px) scaleY(1.12); opacity: 0; }
}
@keyframes auraWisp {
  0% { transform: translate(2px, 8px); opacity: 0; }
  22% { opacity: .88; }
  100% { transform: translate(-6px, -22px); opacity: 0; }
}
@keyframes auraRibbon {
  0%, 100% { opacity: .35; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}
@keyframes auraBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes auraBlink {
  0%, 48% { opacity: 1; }
  50%, 100% { opacity: .12; }
}
@keyframes auraConfetti {
  0% { transform: translate(3px,-15px) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(-7px,34px) rotate(300deg); opacity: 0; }
}
@keyframes auraFirefly {
  0%,100% { transform: translate(-2px,2px) scale(.75); opacity: .25; }
  35% { transform: translate(5px,-6px) scale(1.25); opacity: 1; }
  70% { transform: translate(-5px,-2px) scale(.9); opacity: .55; }
}
@keyframes auraRose {
  0%,100% { transform: rotate(-10deg) translateY(3px) scale(.86); }
  50% { transform: rotate(18deg) translateY(-5px) scale(1.08); }
}
@keyframes auraSolar {
  0%,100% { opacity: .35; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes auraPlasma {
  0%,100% { transform: translate(-3px,1px) scale(.82); opacity: .55; }
  50% { transform: translate(5px,-5px) scale(1.18); opacity: 1; }
}
@keyframes auraMeteor {
  0% { transform: translate(-14px,-12px); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translate(22px,19px); opacity: 0; }
}
@keyframes auraCosmic {
  0% { transform: translate(-7px,5px) rotate(-8deg); opacity: 0; }
  22% { opacity: 1; }
  55% { transform: translate(4px,-8px) rotate(8deg); opacity: .9; }
  100% { transform: translate(11px,-14px) rotate(18deg); opacity: 0; }
}
@keyframes auraLeaf {
  0% { transform: translate(5px,-12px) rotate(0deg); opacity: 0; }
  16% { opacity: 1; }
  100% { transform: translate(-12px,30px) rotate(240deg); opacity: 0; }
}
@keyframes auraMusic {
  0%,100% { transform: translateY(4px) rotate(-5deg); opacity: .45; }
  50% { transform: translateY(-7px) rotate(7deg); opacity: 1; }
}
@keyframes auraCandy {
  0%,100% { transform: translateY(3px) rotate(-8deg) scale(.9); opacity: .65; }
  50% { transform: translateY(-7px) rotate(10deg) scale(1.08); opacity: 1; }
}
@keyframes auraDiamond {
  0%,100% { transform: scale(.7) rotate(-12deg); opacity: .25; }
  50% { transform: scale(1.18) rotate(12deg); opacity: 1; }
}
@keyframes auraErupt {
  0% { transform: translateY(10px) scale(.5); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(-28px) rotate(150deg) scale(1); opacity: 0; }
}
@keyframes auraCrystal {
  0%,100% { transform: translateY(2px) rotate(-8deg); opacity: .55; }
  50% { transform: translateY(-6px) rotate(14deg); opacity: 1; }
}
@keyframes auraSmoke {
  0% { transform: translate(2px,9px) scale(.78); opacity: 0; }
  20% { opacity: .65; }
  100% { transform: translate(-7px,-22px) scale(1.2); opacity: 0; }
}
@keyframes auraFeather {
  0% { transform: translate(4px,-14px) rotate(-8deg); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translate(-10px,31px) rotate(150deg); opacity: 0; }
}
@keyframes auraBurst {
  0% { transform: scale(.15) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: .8; }
  100% { transform: scale(1.35) rotate(18deg); opacity: 0; }
}
@keyframes auraGear { to { transform: rotate(360deg); } }
@keyframes auraGearReverse { to { transform: rotate(-360deg); } }
@keyframes auraRing {
  0% { transform: scale(.35); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes auraClover {
  0%,100% { transform: translateY(3px) rotate(-7deg); opacity: .6; }
  50% { transform: translateY(-7px) rotate(8deg); opacity: 1; }
}
@keyframes auraJelly {
  0%,100% { transform: translateY(4px) scaleY(.88); opacity: .55; }
  50% { transform: translateY(-8px) scaleY(1.12); opacity: 1; }
}
@keyframes auraFlowRight {
  0% { transform: translateX(-28px) scaleX(.82); opacity: 0; }
  14%, 82% { opacity: .9; }
  100% { transform: translateX(92px) scaleX(1.08); opacity: 0; }
}
@keyframes auraFlowLeft {
  0% { transform: translateX(28px) scaleX(.86); opacity: 0; }
  14%, 82% { opacity: .95; }
  100% { transform: translateX(-94px) scaleX(1.06); opacity: 0; }
}
@keyframes auraLiftUp {
  0% { transform: translateY(22px) scale(.72); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(-82px) scale(1.08); opacity: 0; }
}
@keyframes auraDropDown {
  0% { transform: translateY(-22px) scale(.74); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(82px) scale(1.06); opacity: 0; }
}
@keyframes auraBatRight {
  0% { transform: translateX(-22px) translateY(4px) scaleY(.7); opacity: 0; }
  18% { opacity: 1; }
  48% { transform: translateX(42px) translateY(-5px) scaleY(1.15); }
  100% { transform: translateX(92px) translateY(3px) scaleY(.72); opacity: 0; }
}
@keyframes auraBatLeft {
  0% { transform: translateX(22px) translateY(-3px) scaleY(.72); opacity: 0; }
  18% { opacity: 1; }
  52% { transform: translateX(-44px) translateY(6px) scaleY(1.16); }
  100% { transform: translateX(-92px) translateY(-2px) scaleY(.7); opacity: 0; }
}
@keyframes auraButterflyA {
  0%,100% { transform: translate(-3px,4px) rotate(-10deg) scaleY(.72); opacity: .45; }
  25% { transform: translate(7px,-7px) rotate(7deg) scaleY(1.12); opacity: 1; }
  55% { transform: translate(12px,3px) rotate(15deg) scaleY(.75); }
  78% { transform: translate(3px,9px) rotate(-4deg) scaleY(1.08); }
}
@keyframes auraButterflyB {
  0%,100% { transform: translate(4px,-2px) rotate(9deg) scaleY(1.08); opacity: .55; }
  30% { transform: translate(-8px,7px) rotate(-12deg) scaleY(.7); opacity: 1; }
  62% { transform: translate(-12px,-5px) rotate(-17deg) scaleY(1.15); }
}
@keyframes auraCardRight {
  0% { transform: translateX(-24px) rotate(-45deg) scale(.7); opacity: 0; }
  16% { opacity: 1; }
  100% { transform: translateX(94px) rotate(315deg) scale(1.04); opacity: 0; }
}
@keyframes auraCardLeft {
  0% { transform: translateX(24px) rotate(45deg) scale(.72); opacity: 0; }
  16% { opacity: 1; }
  100% { transform: translateX(-94px) rotate(-315deg) scale(1.02); opacity: 0; }
}
@keyframes auraArrowRight {
  0% { transform: translateX(-28px) scaleX(.7); opacity: 0; }
  15%,80% { opacity: 1; }
  100% { transform: translateX(98px) scaleX(1.25); opacity: 0; }
}
@keyframes auraArrowLeft {
  0% { transform: translateX(28px) scaleX(.7); opacity: 0; }
  15%,80% { opacity: 1; }
  100% { transform: translateX(-98px) scaleX(1.25); opacity: 0; }
}
@keyframes auraPortal {
  0% { transform: scale(.2) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  72% { opacity: .9; }
  100% { transform: scale(2.1) rotate(180deg); opacity: 0; }
}
@keyframes auraLantern {
  0% { transform: translateY(22px) rotate(-6deg) scale(.7); opacity: 0; }
  16% { opacity: 1; }
  48% { transform: translateY(-30px) rotate(7deg) scale(.95); }
  100% { transform: translateY(-92px) rotate(-5deg) scale(1.08); opacity: 0; }
}
@keyframes auraPlaneRight {
  0% { transform: translate(-28px,18px) rotate(-15deg); opacity: 0; }
  14%,82% { opacity: 1; }
  100% { transform: translate(100px,-22px) rotate(7deg); opacity: 0; }
}
@keyframes auraPlaneLeft {
  0% { transform: translate(28px,-16px) rotate(14deg); opacity: 0; }
  14%,82% { opacity: 1; }
  100% { transform: translate(-100px,24px) rotate(-8deg); opacity: 0; }
}
@keyframes auraStarStream {
  0% { transform: translateX(-28px) scale(.55); opacity: 0; }
  12%,80% { opacity: 1; }
  100% { transform: translateX(102px) scale(1.12); opacity: 0; }
}
@keyframes auraSandDown {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  15%,82% { opacity: 1; }
  100% { transform: translateY(90px) rotate(240deg); opacity: 0; }
}
@keyframes auraSandUp {
  0% { transform: translateY(20px) rotate(0deg); opacity: 0; }
  15%,82% { opacity: 1; }
  100% { transform: translateY(-90px) rotate(-240deg); opacity: 0; }
}
@keyframes auraDuckRight {
  0% { transform: translateX(-28px) translateY(0); opacity: 0; }
  12% { opacity: 1; }
  28% { transform: translateX(18px) translateY(-5px); }
  55% { transform: translateX(52px) translateY(3px); }
  78% { transform: translateX(78px) translateY(-4px); }
  100% { transform: translateX(100px); opacity: 0; }
}
@keyframes auraDuckLeft {
  0% { transform: translateX(28px) translateY(0); opacity: 0; }
  12% { opacity: 1; }
  28% { transform: translateX(-18px) translateY(5px); }
  55% { transform: translateX(-52px) translateY(-3px); }
  78% { transform: translateX(-78px) translateY(4px); }
  100% { transform: translateX(-100px); opacity: 0; }
}
@keyframes auraRocketUp {
  0% { transform: translateY(26px) scale(.68); opacity: 0; }
  14%,78% { opacity: 1; }
  100% { transform: translateY(-98px) scale(1.1); opacity: 0; }
}
@keyframes auraRocketDown {
  0% { transform: translateY(-25px) scale(.7); opacity: 0; }
  14%,78% { opacity: 1; }
  100% { transform: translateY(98px) scale(1.08); opacity: 0; }
}
@keyframes auraPaintPop {
  0% { transform: scale(.18) rotate(-35deg); opacity: 0; }
  28% { transform: scale(1.25) rotate(8deg); opacity: 1; }
  62% { transform: scale(.96) rotate(-5deg); opacity: .9; }
  100% { transform: scale(1.45) rotate(18deg); opacity: 0; }
}
@keyframes auraDataUp {
  0% { transform: translateY(24px) scale(.72); opacity: 0; }
  15%,82% { opacity: 1; }
  100% { transform: translateY(-92px) scale(1.08); opacity: 0; }
}
@keyframes auraDataDown {
  0% { transform: translateY(-24px) scale(.72); opacity: 0; }
  15%,82% { opacity: 1; }
  100% { transform: translateY(92px) scale(1.08); opacity: 0; }
}
@keyframes auraPlanetOrbit { to { transform: rotate(360deg); } }
@keyframes auraPlanetOrbitReverse { to { transform: rotate(-360deg); } }
@keyframes auraGhostTrain {
  0% { transform: translateX(28px) scale(.72); opacity: 0; }
  16% { opacity: .9; }
  50% { transform: translateX(-44px) translateY(-4px) scale(1); }
  100% { transform: translateX(-104px) translateY(3px) scale(1.12); opacity: 0; }
}
@keyframes auraBloom {
  0%,100% { transform: scale(.25) rotate(-18deg); opacity: .2; }
  42% { transform: scale(1.18) rotate(8deg); opacity: 1; }
  68% { transform: scale(.92) rotate(-4deg); opacity: .85; }
}
@keyframes auraBassRight {
  0% { transform: translateX(-30px) scaleY(.55); opacity: 0; }
  18% { opacity: 1; }
  48% { transform: translateX(48px) scaleY(1.35); }
  100% { transform: translateX(112px) scaleY(.72); opacity: 0; }
}
@keyframes auraBassLeft {
  0% { transform: translateX(30px) scaleY(.65); opacity: 0; }
  18% { opacity: 1; }
  52% { transform: translateX(-48px) scaleY(1.4); }
  100% { transform: translateX(-112px) scaleY(.7); opacity: 0; }
}
@keyframes auraFlick {
  0%, 100% { opacity: .55; }
  40% { opacity: 1; }
  70% { opacity: .4; }
}
@keyframes auraTwinkle {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
.fx-aura-gold .fx-orb {
  background: conic-gradient(from 0deg, rgba(250,204,21,.85), rgba(253,230,138,.15), rgba(250,204,21,.85));
  animation: fxSpin 2.4s linear infinite;
}
.fx-aura-ice .fx-orb {
  background: radial-gradient(circle, rgba(186,230,253,.7) 0%, rgba(56,189,248,.25) 42%, transparent 68%);
  animation: fxPulse 1.6s ease-in-out infinite;
}
.fx-aura-fire .fx-orb {
  background: radial-gradient(circle, rgba(251,146,60,.8) 0%, rgba(239,68,68,.3) 42%, transparent 70%);
  animation: fxFlick 0.55s ease-in-out infinite;
}
.fx-aura-void .fx-orb {
  background: radial-gradient(circle, rgba(125,211,252,.35) 0%, rgba(56,189,248,.12) 48%, transparent 70%);
  animation: fxPulse 1.8s ease-in-out infinite;
}
.fx-aura-hearts .fx-orb {
  background: radial-gradient(circle, rgba(251,113,133,.55) 0%, transparent 66%);
  animation: fxPulse 1.5s ease-in-out infinite;
}
.fx-aura-bolts .fx-orb, .fx-aura-sparkle .fx-orb, .fx-sparkle .fx-orb {
  background: radial-gradient(circle, rgba(253,230,138,.55) 0%, transparent 66%);
  animation: fxFlick 0.7s ease-in-out infinite;
}
.fx-aura-hearts .fx-bits,
.fx-aura-sakura .fx-bits,
.fx-aura-bolts .fx-bits,
.fx-aura-stars .fx-bits,
.fx-sparkle .fx-bits, .fx-aura-sparkle .fx-bits {
  width: 8px;
  height: 8px;
  margin: 0;
  left: 50%;
  top: 30%;
  background: #fde68a;
  box-shadow:
    -28px 18px 0 -2px #fff,
    32px 10px 0 -1px #facc15,
    18px 36px 0 -2px #fff,
    -22px 40px 0 -1px #fde68a,
    4px 48px 0 -2px #fff;
  animation: fxTwinkle 1.2s ease-in-out infinite;
}
@keyframes fxPulse {
  0%, 100% { opacity: .55; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.1); }
}
@keyframes fxSpin {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1) rotate(360deg); }
}
@keyframes fxFlick {
  0%, 100% { opacity: .4; transform: scale(.9); }
  40% { opacity: 1; transform: scale(1.12); }
  60% { opacity: .55; transform: scale(.98); }
}
@keyframes fxTwinkle {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}
.fx-aura-aurora .fx-orb { animation: fxSpin 4s linear infinite; }
.fx-aura-prism .fx-orb { animation: fxSpin 2.2s linear infinite; }
.fx-aura-hex .fx-orb { animation: fxSpin 6s linear infinite; }
.fx-aura-storm .fx-orb { animation: fxFlick .45s ease-in-out infinite; }
.fx-aura-ember .fx-orb { animation: fxFlick .7s ease-in-out infinite; }
.pname.rainbow, .nm.rainbow {
  background-size: 220% 100%;
  animation: rainbowSlide 2.2s linear infinite;
}
@keyframes rainbowSlide {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.pname.fire, .nm.fire { animation: fireFlicker .7s ease-in-out infinite; }
@keyframes fireFlicker {
  0%, 100% { color: #fb7185; text-shadow: 0 0 8px rgba(251,113,133,.45); }
  50% { color: #fdba74; text-shadow: 0 0 14px rgba(251,146,60,.7); }
}
.pname.ice, .nm.ice { animation: iceShimmer 1.8s ease-in-out infinite; }
@keyframes iceShimmer {
  0%, 100% { text-shadow: 0 0 6px rgba(125,211,252,.35); }
  50% { text-shadow: 0 0 16px rgba(224,242,254,.9); }
}
.pname.neon, .nm.neon { animation: neonPulse 1.1s ease-in-out infinite; }
@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(255,43,214,.45); }
  50% { text-shadow: 0 0 18px rgba(255,43,214,.95), 0 0 4px #fff; }
}
.pname.mint, .nm.mint { color: #5eead4; text-shadow: 0 0 8px rgba(45,212,191,.45); }
.pname.lava, .nm.lava { color: #fb923c; text-shadow: 0 0 10px rgba(249,115,22,.55); }
.pname.ocean, .nm.ocean { color: #22d3ee; text-shadow: 0 0 8px rgba(6,182,212,.45); }
.pname.candy, .nm.candy { color: #fda4af; text-shadow: 0 0 8px rgba(251,113,133,.45); }
.pname.royal, .nm.royal { color: #fde68a; text-shadow: 0 0 8px rgba(168,85,247,.55); }
.pname.ghost, .nm.ghost { color: #e2e8f0; opacity: .86; text-shadow: 0 0 12px rgba(226,232,240,.5); }
.pname.toxic, .nm.toxic { color: #a3e635; text-shadow: 0 0 8px rgba(132,204,22,.5); }
.pname.chrome, .nm.chrome { color: #e2e8f0; text-shadow: 0 1px 0 #64748b, 0 0 8px rgba(148,163,184,.4); }
.pname.sunset, .nm.sunset {
  background: linear-gradient(90deg, #fb7185, #fdba74, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pname.matrix, .nm.matrix { color: #4ade80; text-shadow: 0 0 8px rgba(22,163,74,.6); }
.pname.honey, .nm.honey { color: #fbbf24; text-shadow: 0 0 8px rgba(245,158,11,.45); }
.pname.ink, .nm.ink { color: #0f172a; text-shadow: 0 0 6px rgba(248,250,252,.35); }
.pname.glitch, .nm.glitch {
  color: #f8fafc;
  text-shadow: 2px 0 #ff2bd6, -2px 0 #22d3ee;
  animation: glitchName .35s steps(2, end) infinite;
}
@keyframes glitchName {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(1px); }
}
.pname.star .star, .nm.star .star { color: #f7d048; }
.pname.ruby, .nm.ruby { color: #fb7185; text-shadow: 0 0 8px rgba(190,18,60,.6); }
.pname.emerald, .nm.emerald { color: #34d399; text-shadow: 0 0 8px rgba(5,150,105,.55); }
.pname.sapphire, .nm.sapphire { color: #60a5fa; text-shadow: 0 0 8px rgba(37,99,235,.55); }
.pname.amethyst, .nm.amethyst { color: #c4b5fd; text-shadow: 0 0 8px rgba(124,58,237,.55); }
.pname.bronze, .nm.bronze { color: #fdba74; text-shadow: 0 1px 0 #9a3412, 0 0 8px rgba(180,83,9,.4); }
.pname.copper, .nm.copper { color: #f97316; text-shadow: 0 1px 0 #7c2d12, 0 0 8px rgba(234,88,12,.4); }
.pname.pearl, .nm.pearl { color: #fce7f3; text-shadow: 0 0 10px rgba(251,207,232,.7); }
.pname.obsidian, .nm.obsidian { color: #c4b5fd; text-shadow: 0 0 8px rgba(2,6,23,.9), 0 0 2px #fff; }
.pname.snow, .nm.snow { color: #f8fafc; text-shadow: 0 0 10px rgba(224,242,254,.8); }
.pname.thunder, .nm.thunder {
  color: #fde68a;
  animation: thunderFlick .45s ease-in-out infinite;
}
@keyframes thunderFlick {
  0%, 100% { color: #fde68a; text-shadow: 0 0 6px #facc15; }
  40% { color: #fff; text-shadow: 0 0 16px #38bdf8, 0 0 4px #fff; }
}
.pname.aurora, .nm.aurora {
  background: linear-gradient(90deg, #34d399, #818cf8, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: rainbowSlide 2.8s linear infinite;
}
.pname.galaxy, .nm.galaxy {
  background: linear-gradient(90deg, #c4b5fd, #fde68a, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: rainbowSlide 3s linear infinite;
}
.pname.holo, .nm.holo {
  background: linear-gradient(90deg, #67e8f9, #f9a8d4, #86efac, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 240% 100%;
  animation: rainbowSlide 1.6s linear infinite;
}
.pname.plasma, .nm.plasma { color: #e879f9; text-shadow: 0 0 10px rgba(232,121,249,.7), 0 0 2px #fff; }
.pname.venom, .nm.venom { color: #a3e635; text-shadow: 0 0 8px rgba(132,204,22,.55), 1px 0 #7c3aed; }
.pname.rose, .nm.rose { color: #fb7185; text-shadow: 0 0 8px rgba(251,113,133,.45); }
.pname.lemon, .nm.lemon { color: #facc15; text-shadow: 0 0 8px rgba(250,204,21,.55); }
.pname.grape, .nm.grape { color: #a78bfa; text-shadow: 0 0 8px rgba(139,92,246,.5); }
.pname.sky, .nm.sky { color: #7dd3fc; text-shadow: 0 0 8px rgba(56,189,248,.45); }
.pname.midnight, .nm.midnight { color: #818cf8; text-shadow: 0 0 10px rgba(49,46,129,.7); }
.pname.blush, .nm.blush { color: #fda4af; text-shadow: 0 0 8px rgba(253,164,175,.5); }
.pname.steel, .nm.steel { color: #94a3b8; text-shadow: 0 1px 0 #0f172a, 0 0 6px rgba(148,163,184,.4); }
.pname.retro, .nm.retro { color: #fb923c; text-shadow: 2px 0 #22d3ee, -2px 0 #f472b6; }
.pname.comic, .nm.comic {
  color: #fde68a;
  -webkit-text-stroke: 1.2px #111827;
  text-shadow: 2px 2px 0 #111827;
}
.pname.outline, .nm.outline {
  color: #f8fafc;
  -webkit-text-stroke: 1.1px #0f172a;
  paint-order: stroke fill;
}
.pname.bubblegum, .nm.bubblegum { color: #f472b6; text-shadow: 0 0 8px rgba(244,114,182,.55); }
.pname.forest, .nm.forest { color: #4ade80; text-shadow: 0 0 8px rgba(22,163,74,.5); }
.pname.desert, .nm.desert { color: #fbbf24; text-shadow: 0 0 8px rgba(180,83,9,.45); }
.pname.slime, .nm.slime { color: #84cc16; text-shadow: 0 0 10px rgba(132,204,22,.55); }
.pname.magma, .nm.magma { color: #fb923c; animation: magmaPulse 1s ease-in-out infinite; }
@keyframes magmaPulse {
  0%, 100% { color: #fb923c; text-shadow: 0 0 8px #ea580c; }
  50% { color: #facc15; text-shadow: 0 0 16px #f97316; }
}
.pname.frost, .nm.frost {
  color: #e0f2fe;
  text-shadow: 0 0 8px #38bdf8, 0 1px 0 #fff;
}
.pname.pulse, .nm.pulse { color: #f8fafc; animation: namePulse 1.1s ease-in-out infinite; }
@keyframes namePulse {
  0%, 100% { opacity: .7; text-shadow: 0 0 4px #fff; }
  50% { opacity: 1; text-shadow: 0 0 14px #fff; }
}
.pname.wobble, .nm.wobble { color: #fde68a; display: inline-block; animation: nameWobble .7s ease-in-out infinite; }
@keyframes nameWobble {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
.pname.spark, .nm.spark { color: #facc15; animation: sparkName 1s steps(2, end) infinite; }
@keyframes sparkName {
  0%, 100% { text-shadow: 0 0 6px #facc15; }
  50% { text-shadow: 0 0 16px #fff, 2px -2px 0 #fde68a; }
}
.pname.void, .nm.void { color: #c4b5fd; text-shadow: 0 0 10px #6d28d9, 0 0 2px #fff; }
.pname.ivory, .nm.ivory { color: #fffbeb; text-shadow: 0 0 8px rgba(254,243,199,.5); }
.pname.blood, .nm.blood { color: #ef4444; text-shadow: 0 0 8px rgba(127,29,29,.7); }
.pname.cotton, .nm.cotton { color: #fbcfe8; text-shadow: 0 0 10px rgba(251,207,232,.6); }
.pname.ghost, .nm.ghost { animation: ghostFade 1.8s ease-in-out infinite; }
@keyframes ghostFade {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

/* Every name style has its own readable visual identity, not just a colour swap. */
.pname,
.nm,
.name-prev .nm,
.shop-live-copy .nm {
  display: inline-block;
  transform-origin: 50% 70%;
}
.pname.gold, .nm.gold, .pname.plus, .nm.plus {
  background: linear-gradient(180deg, #fff8bf 5%, #facc15 48%, #b66a05 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: .55px #7c3f00;
  letter-spacing: .035em;
  paint-order: stroke fill;
}
.pname.rainbow, .nm.rainbow { font-style: italic; letter-spacing: .025em; }
.pname.ice, .nm.ice { font-family: "Fredoka", sans-serif; letter-spacing: .085em; text-transform: uppercase; -webkit-text-stroke: .35px #e0f2fe; }
.pname.fire, .nm.fire { font-family: "Dekko", cursive; font-style: italic; letter-spacing: .025em; }
.pname.neon, .nm.neon { font-family: "Fredoka", sans-serif; letter-spacing: .095em; text-transform: uppercase; -webkit-text-stroke: .4px #fff; }
.pname.shadow, .nm.shadow { font-weight: 1000; letter-spacing: -.035em; text-shadow: 3px 3px 0 #020617, 0 0 8px #020617; }
.pname.star, .nm.star { color: #fff4a3; letter-spacing: .065em; text-decoration: underline dotted #facc15 2px; text-underline-offset: 3px; }
.pname.mint, .nm.mint { font-family: "Dekko", cursive; letter-spacing: .11em; font-weight: 700; }
.pname.lava, .nm.lava { font-style: italic; font-weight: 1000; text-transform: uppercase; -webkit-text-stroke: .45px #7c2d12; }
.pname.ocean, .nm.ocean {
  background: linear-gradient(180deg, #e0fbff, #22d3ee 48%, #0284c7 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  letter-spacing: .045em;
}
.pname.candy, .nm.candy {
  background: repeating-linear-gradient(115deg, #fff 0 4px, #fda4af 4px 9px, #f472b6 9px 13px);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Dekko", cursive;
  -webkit-text-stroke: .25px #be185d;
}
.pname.royal, .nm.royal { font-family: Georgia, serif; font-variant: small-caps; letter-spacing: .085em; text-decoration: underline #a855f7 1px; text-underline-offset: 3px; }
.pname.ghost, .nm.ghost { font-family: Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: .07em; }
.pname.toxic, .nm.toxic { font-family: "Fredoka", sans-serif; transform: skewX(-7deg); -webkit-text-stroke: .45px #365314; letter-spacing: -.02em; }
.pname.chrome, .nm.chrome {
  background: linear-gradient(180deg, #fff 8%, #94a3b8 43%, #f8fafc 57%, #475569 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .055em;
  -webkit-text-stroke: .35px #1e293b;
}
.pname.sunset, .nm.sunset { font-style: italic; letter-spacing: .075em; font-weight: 800; }
.pname.matrix, .nm.matrix { font-family: Consolas, "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 2px 0 #052e16, 0 0 9px #22c55e; }
.pname.honey, .nm.honey { font-family: "Dekko", cursive; letter-spacing: .075em; text-decoration: underline wavy #92400e 1px; text-underline-offset: 3px; }
.pname.ink, .nm.ink { font-family: Georgia, serif; font-style: italic; color: #111827; -webkit-text-stroke: .55px #f8fafc; paint-order: stroke fill; letter-spacing: -.025em; }
.pname.glitch, .nm.glitch { font-family: Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.pname.ruby, .nm.ruby { color: #fb7185; font-variant: small-caps; letter-spacing: .075em; -webkit-text-stroke: .5px #881337; text-shadow: 0 2px 0 #4c0519; }
.pname.emerald, .nm.emerald { font-family: Georgia, serif; font-weight: 800; letter-spacing: .035em; text-decoration: underline double #065f46 2px; text-underline-offset: 3px; }
.pname.sapphire, .nm.sapphire { font-family: "Fredoka", sans-serif; text-transform: uppercase; letter-spacing: .1em; -webkit-text-stroke: .4px #172554; }
.pname.amethyst, .nm.amethyst { font-family: Georgia, serif; font-style: italic; letter-spacing: .08em; text-decoration: underline #7c3aed 2px; text-underline-offset: 3px; }
.pname.bronze, .nm.bronze { font-family: Georgia, serif; font-style: italic; letter-spacing: .015em; -webkit-text-stroke: .3px #7c2d12; }
.pname.copper, .nm.copper { font-family: "Fredoka", sans-serif; text-transform: uppercase; letter-spacing: .065em; -webkit-text-stroke: .55px #431407; }
.pname.pearl, .nm.pearl { font-family: Georgia, serif; font-style: italic; letter-spacing: .09em; font-weight: 600; text-decoration: underline dotted #fff 1px; text-underline-offset: 3px; }
.pname.obsidian, .nm.obsidian { color: #d8b4fe; font-weight: 1000; letter-spacing: -.045em; -webkit-text-stroke: .75px #020617; text-shadow: 2px 2px 0 #020617, 0 0 9px #7c3aed; }
.pname.snow, .nm.snow { font-family: "Dekko", cursive; letter-spacing: .14em; text-decoration: underline dotted #bae6fd 2px; text-underline-offset: 4px; }
.pname.thunder, .nm.thunder { font-family: Consolas, monospace; font-style: italic; font-weight: 1000; letter-spacing: -.025em; text-transform: uppercase; }
.pname.aurora, .nm.aurora { font-family: "Dekko", cursive; letter-spacing: .105em; font-weight: 700; }
.pname.galaxy, .nm.galaxy { font-family: Georgia, serif; font-style: italic; letter-spacing: .075em; }
.pname.holo, .nm.holo { font-family: "Fredoka", sans-serif; text-transform: uppercase; letter-spacing: .085em; -webkit-text-stroke: .25px rgba(255,255,255,.75); }
.pname.plasma, .nm.plasma { font-style: italic; letter-spacing: -.015em; -webkit-text-stroke: .35px #701a75; text-shadow: 2px 0 #22d3ee, -2px 0 #e879f9, 0 0 10px #d946ef; }
.pname.venom, .nm.venom { font-family: "Fredoka", sans-serif; transform: skewX(8deg); letter-spacing: .03em; text-transform: uppercase; }
.pname.rose, .nm.rose { font-family: Georgia, serif; font-style: italic; font-weight: 700; letter-spacing: .065em; text-decoration: underline #166534 1px; text-underline-offset: 3px; }
.pname.lemon, .nm.lemon { font-family: "Dekko", cursive; color: #fff06a; letter-spacing: .12em; -webkit-text-stroke: .45px #854d0e; }
.pname.grape, .nm.grape { font-family: Georgia, serif; font-weight: 900; letter-spacing: .035em; text-decoration: underline double #5b21b6 2px; text-underline-offset: 3px; }
.pname.sky, .nm.sky { font-style: italic; font-weight: 700; letter-spacing: .115em; text-shadow: 1px 2px 0 #0369a1; }
.pname.midnight, .nm.midnight { font-family: Consolas, monospace; text-transform: uppercase; letter-spacing: .045em; -webkit-text-stroke: .35px #020617; }
.pname.blush, .nm.blush { font-family: Georgia, serif; font-variant: small-caps; font-weight: 600; letter-spacing: .13em; }
.pname.steel, .nm.steel { font-family: Consolas, monospace; text-transform: uppercase; letter-spacing: -.015em; -webkit-text-stroke: .4px #020617; }
.pname.retro, .nm.retro { font-family: "Dekko", cursive; font-style: italic; letter-spacing: .09em; text-transform: uppercase; }
.pname.comic, .nm.comic { font-family: "Fredoka", sans-serif; text-transform: uppercase; letter-spacing: -.035em; transform: rotate(-1.5deg); }
.pname.outline, .nm.outline { font-family: Consolas, monospace; letter-spacing: .14em; color: transparent; -webkit-text-stroke: 1px #f8fafc; }
.pname.bubblegum, .nm.bubblegum { font-family: "Fredoka", sans-serif; letter-spacing: .045em; -webkit-text-stroke: .65px #831843; text-shadow: 2px 2px 0 #f9a8d4, 0 0 8px #f472b6; }
.pname.forest, .nm.forest { font-family: Georgia, serif; font-style: italic; letter-spacing: .04em; text-decoration: underline wavy #14532d 1px; text-underline-offset: 3px; }
.pname.desert, .nm.desert { font-family: "Fredoka", sans-serif; text-transform: uppercase; letter-spacing: .11em; -webkit-text-stroke: .35px #78350f; }
.pname.slime, .nm.slime { font-family: "Dekko", cursive; font-weight: 700; letter-spacing: -.015em; text-decoration: underline wavy #3f6212 2px; text-underline-offset: 2px; }
.pname.magma, .nm.magma { font-family: "Fredoka", sans-serif; font-style: italic; text-transform: uppercase; letter-spacing: .035em; -webkit-text-stroke: .5px #7f1d1d; }
.pname.frost, .nm.frost { font-family: Consolas, monospace; text-transform: uppercase; letter-spacing: .13em; -webkit-text-stroke: .35px #0c4a6e; }
.pname.pulse, .nm.pulse { font-family: "Fredoka", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.pname.wobble, .nm.wobble { font-family: "Dekko", cursive; font-weight: 700; letter-spacing: .065em; }
.pname.spark, .nm.spark { font-family: Consolas, monospace; font-style: italic; letter-spacing: .09em; text-decoration: underline dotted #fff 2px; text-underline-offset: 3px; }
.pname.void, .nm.void { font-family: Georgia, serif; font-style: italic; letter-spacing: .095em; -webkit-text-stroke: .35px #020617; }
.pname.ivory, .nm.ivory { font-family: Georgia, serif; font-variant: small-caps; font-weight: 600; letter-spacing: .105em; text-decoration: underline #d6d3d1 1px; text-underline-offset: 3px; }
.pname.blood, .nm.blood { font-family: "Fredoka", sans-serif; text-transform: uppercase; letter-spacing: -.025em; -webkit-text-stroke: .65px #450a0a; text-shadow: 2px 2px 0 #450a0a; }
.pname.cotton, .nm.cotton { font-family: "Dekko", cursive; font-weight: 700; letter-spacing: .14em; text-shadow: 0 0 12px #fff, 0 2px 0 #f9a8d4; }

/* Motion pass: every purchasable name has a different effect and keyframe. */
.pname.gold, .nm.gold, .pname.plus, .nm.plus { background-size: 100% 240%; animation: nameGoldSweep 1.9s ease-in-out infinite; }
.pname.rainbow, .nm.rainbow { animation: nameRainbowMarch 2.15s linear infinite; }
.pname.ice, .nm.ice { animation: nameIceFlash 1.85s ease-in-out infinite; }
.pname.fire, .nm.fire { animation: nameFireDance .68s ease-in-out infinite; }
.pname.neon, .nm.neon { animation: nameNeonSign 1.35s steps(1, end) infinite; }
.pname.shadow, .nm.shadow { animation: nameShadowWalk 2.4s ease-in-out infinite; }
.pname.star, .nm.star { animation: nameStarTwinkle 1.15s ease-in-out infinite; }
.pname.mint, .nm.mint { animation: nameMintFloat 2.25s ease-in-out infinite; }
.pname.lava, .nm.lava { animation: nameLavaQuake .82s steps(3, end) infinite; }
.pname.ocean, .nm.ocean { animation: nameOceanWave 2.05s ease-in-out infinite; }
.pname.candy, .nm.candy { background-size: 180% 100%; animation: nameCandyHop 1.3s cubic-bezier(.34,1.56,.64,1) infinite; }
.pname.royal, .nm.royal { animation: nameRoyalGleam 2.7s ease-in-out infinite; }
.pname.ghost, .nm.ghost { animation: nameGhostHaunt 2.35s ease-in-out infinite; }
.pname.toxic, .nm.toxic { animation: nameToxicJitter .52s steps(2, end) infinite; }
.pname.chrome, .nm.chrome { background-size: 100% 260%; animation: nameChromeSweep 1.75s linear infinite; }
.pname.sunset, .nm.sunset { background-size: 180% 100%; animation: nameSunsetBreathe 2.8s ease-in-out infinite; }
.pname.matrix, .nm.matrix { animation: nameMatrixScan 1.45s steps(4, end) infinite; }
.pname.honey, .nm.honey { animation: nameHoneyBob 1.7s ease-in-out infinite; }
.pname.ink, .nm.ink { animation: nameInkSpread 2.6s ease-in-out infinite; }
.pname.glitch, .nm.glitch { animation: nameGlitchCut .38s steps(2, end) infinite; }
.pname.ruby, .nm.ruby { animation: nameRubyGlint 1.95s ease-in-out infinite; }
.pname.emerald, .nm.emerald { animation: nameEmeraldBreathe 2.2s ease-in-out infinite; }
.pname.sapphire, .nm.sapphire { animation: nameSapphireSwing 1.8s ease-in-out infinite; }
.pname.amethyst, .nm.amethyst { animation: nameAmethystSpark 1.55s ease-in-out infinite; }
.pname.bronze, .nm.bronze { animation: nameBronzeTilt 2.05s ease-in-out infinite; }
.pname.copper, .nm.copper { animation: nameCopperKnock 1.6s cubic-bezier(.36,.07,.19,.97) infinite; }
.pname.pearl, .nm.pearl { animation: namePearlLuster 2.9s ease-in-out infinite; }
.pname.obsidian, .nm.obsidian { animation: nameObsidianPull 2.3s ease-in-out infinite; }
.pname.snow, .nm.snow { animation: nameSnowDrift 2.65s ease-in-out infinite; }
.pname.thunder, .nm.thunder { animation: nameThunderStrike 1.25s steps(1, end) infinite; }
.pname.aurora, .nm.aurora { animation: nameAuroraFlow 3.1s linear infinite; }
.pname.galaxy, .nm.galaxy { animation: nameGalaxyDrift 3.8s ease-in-out infinite; }
.pname.holo, .nm.holo { animation: nameHoloFlip 2.15s ease-in-out infinite; }
.pname.plasma, .nm.plasma { animation: namePlasmaBuzz .74s ease-in-out infinite; }
.pname.venom, .nm.venom { animation: nameVenomTwitch 1.1s steps(3, end) infinite; }
.pname.rose, .nm.rose { animation: nameRoseBloom 2.45s cubic-bezier(.4,0,.2,1) infinite; }
.pname.lemon, .nm.lemon { animation: nameLemonPop 1.35s cubic-bezier(.34,1.56,.64,1) infinite; }
.pname.grape, .nm.grape { animation: nameGrapeSway 2s ease-in-out infinite; }
.pname.sky, .nm.sky { animation: nameSkyFloat 2.75s ease-in-out infinite; }
.pname.midnight, .nm.midnight { animation: nameMidnightBlink 2.2s steps(1, end) infinite; }
.pname.blush, .nm.blush { animation: nameBlushGlow 2.6s ease-in-out infinite; }
.pname.steel, .nm.steel { animation: nameSteelClang 1.9s cubic-bezier(.36,.07,.19,.97) infinite; }
.pname.retro, .nm.retro { animation: nameRetroShift .95s steps(2, end) infinite; }
.pname.comic, .nm.comic { animation: nameComicPunch 1.5s cubic-bezier(.2,.9,.25,1.25) infinite; }
.pname.outline, .nm.outline { animation: nameOutlineBlink 1.8s steps(2, end) infinite; }
.pname.bubblegum, .nm.bubblegum { animation: nameBubbleBounce 1.55s cubic-bezier(.34,1.56,.64,1) infinite; }
.pname.forest, .nm.forest { animation: nameForestRustle 1.85s ease-in-out infinite; }
.pname.desert, .nm.desert { animation: nameDesertMirage 2.35s ease-in-out infinite; }
.pname.slime, .nm.slime { animation: nameSlimeSquish 1.25s ease-in-out infinite; }
.pname.magma, .nm.magma { animation: nameMagmaErupt 1.05s ease-out infinite; }
.pname.frost, .nm.frost { animation: nameFrostCrackle 1.7s steps(3, end) infinite; }
.pname.pulse, .nm.pulse { animation: namePulseBeat 1.15s ease-in-out infinite; }
.pname.wobble, .nm.wobble { animation: nameWobbleRoll .9s ease-in-out infinite; }
.pname.spark, .nm.spark { animation: nameSparkSnap .8s steps(2, end) infinite; }
.pname.void, .nm.void { animation: nameVoidSink 2.4s ease-in-out infinite; }
.pname.ivory, .nm.ivory { animation: nameIvoryShine 3s ease-in-out infinite; }
.pname.blood, .nm.blood { animation: nameBloodDrop 1.65s ease-in infinite; }
.pname.cotton, .nm.cotton { animation: nameCottonCloud 2.8s ease-in-out infinite; }

@keyframes nameGoldSweep {
  0%, 100% { background-position: 50% 0%; filter: brightness(.94); }
  48% { background-position: 50% 100%; filter: brightness(1.3); }
}
@keyframes nameRainbowMarch {
  from { background-position: 0% 50%; transform: skewX(-3deg); }
  to { background-position: 200% 50%; transform: skewX(3deg); }
}
@keyframes nameIceFlash {
  0%, 100% { filter: brightness(.92); text-shadow: 0 0 5px #38bdf8; }
  50% { filter: brightness(1.35); text-shadow: 0 0 15px #fff, 0 0 5px #7dd3fc; }
}
@keyframes nameFireDance {
  0%, 100% { transform: translateY(1px) skewX(-4deg); color: #ff5733; }
  35% { transform: translateY(-1px) skewX(2deg); color: #ffd166; }
  70% { transform: translateY(0) skewX(-1deg); color: #ff7a1a; }
}
@keyframes nameNeonSign {
  0%, 18%, 22%, 100% { opacity: 1; filter: brightness(1.2); }
  20%, 24% { opacity: .38; filter: brightness(.65); }
}
@keyframes nameShadowWalk {
  0%, 100% { transform: translate(0,0); text-shadow: 3px 3px 0 #020617; }
  50% { transform: translate(-1px,-1px); text-shadow: 6px 5px 1px #020617; }
}
@keyframes nameStarTwinkle {
  0%, 100% { filter: brightness(.8); transform: scale(.98); }
  45% { filter: brightness(1.5) drop-shadow(0 0 4px #facc15); transform: scale(1.04); }
}
@keyframes nameMintFloat {
  0%, 100% { transform: translateY(1px); }
  50% { transform: translateY(-2px); text-shadow: 0 3px 8px #2dd4bf; }
}
@keyframes nameLavaQuake {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-1px) rotate(-1deg); }
  75% { transform: translateX(1px) rotate(1deg); }
}
@keyframes nameOceanWave {
  0%, 100% { transform: translateY(0) rotate(-1deg); filter: brightness(.95); }
  50% { transform: translateY(-2px) rotate(1deg); filter: brightness(1.2); }
}
@keyframes nameCandyHop {
  0%, 100% { transform: translateY(0) scale(1); background-position: 0 50%; }
  50% { transform: translateY(-2px) scale(1.03); background-position: 100% 50%; }
}
@keyframes nameRoyalGleam {
  0%, 100% { filter: drop-shadow(0 0 1px #a855f7); }
  50% { filter: drop-shadow(0 0 7px #facc15); letter-spacing: .11em; }
}
@keyframes nameGhostHaunt {
  0%, 100% { opacity: .72; transform: translateX(-1px); }
  50% { opacity: 1; transform: translateX(2px); }
}
@keyframes nameToxicJitter {
  0%, 100% { transform: translate(0,0) skewX(-7deg); }
  33% { transform: translate(1px,-1px) skewX(-9deg); }
  66% { transform: translate(-1px,1px) skewX(-5deg); }
}
@keyframes nameChromeSweep {
  from { background-position: 50% 0%; }
  to { background-position: 50% 200%; }
}
@keyframes nameSunsetBreathe {
  0%, 100% { background-position: 0% 50%; filter: saturate(.9); transform: scale(1); }
  50% { background-position: 100% 50%; filter: saturate(1.4); transform: scale(1.025); }
}
@keyframes nameMatrixScan {
  0%, 100% { text-shadow: 0 -2px 0 #bbf7d0, 0 0 8px #22c55e; }
  50% { text-shadow: 0 3px 0 #14532d, 0 0 12px #4ade80; }
}
@keyframes nameHoneyBob {
  0%, 100% { transform: translateY(-1px); text-decoration-thickness: 1px; }
  50% { transform: translateY(2px); text-decoration-thickness: 3px; }
}
@keyframes nameInkSpread {
  0%, 100% { letter-spacing: -.025em; }
  50% { letter-spacing: .015em; text-shadow: 0 0 2px #f8fafc, 2px 1px 0 #111827; }
}
@keyframes nameGlitchCut {
  0%, 100% { transform: translate(0,0); clip-path: inset(0 0 0 0); }
  33% { transform: translate(2px,-1px); clip-path: inset(12% 0 42% 0); }
  66% { transform: translate(-2px,1px); clip-path: inset(48% 0 8% 0); }
}
@keyframes nameRubyGlint {
  0%, 100% { filter: brightness(.85); text-shadow: 0 2px 0 #4c0519; }
  35% { filter: brightness(1.5); text-shadow: -3px 0 5px #fff, 0 2px 0 #4c0519; }
}
@keyframes nameEmeraldBreathe {
  0%, 100% { transform: scaleX(.98); filter: saturate(.85); }
  50% { transform: scaleX(1.04); filter: saturate(1.4) drop-shadow(0 0 4px #10b981); }
}
@keyframes nameSapphireSwing {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); text-shadow: 0 0 12px #60a5fa; }
}
@keyframes nameAmethystSpark {
  0%, 100% { filter: brightness(.9); text-decoration-color: #7c3aed; }
  50% { filter: brightness(1.35) drop-shadow(2px -2px 2px #fff); text-decoration-color: #e9d5ff; }
}
@keyframes nameBronzeTilt {
  0%, 100% { transform: perspective(80px) rotateY(-8deg); }
  50% { transform: perspective(80px) rotateY(8deg); filter: brightness(1.2); }
}
@keyframes nameCopperKnock {
  0%, 82%, 100% { transform: translateX(0); }
  86% { transform: translateX(-2px); }
  90% { transform: translateX(2px); }
  94% { transform: translateX(-1px); }
}
@keyframes namePearlLuster {
  0%, 100% { filter: hue-rotate(0deg) brightness(.95); }
  50% { filter: hue-rotate(35deg) brightness(1.3) drop-shadow(0 0 5px #fff); }
}
@keyframes nameObsidianPull {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #020617); }
  50% { transform: scale(.94); filter: drop-shadow(0 0 8px #7c3aed); }
}
@keyframes nameSnowDrift {
  0%, 100% { transform: translate(0,0); }
  33% { transform: translate(1px,-2px); }
  66% { transform: translate(-1px,-1px); filter: brightness(1.35); }
}
@keyframes nameThunderStrike {
  0%, 88%, 100% { color: #ffe45e; transform: translateX(0); text-shadow: 0 0 5px #facc15; }
  90% { color: #fff; transform: translateX(-2px); text-shadow: 0 0 16px #38bdf8; }
  93% { transform: translateX(2px); }
}
@keyframes nameAuroraFlow {
  0% { background-position: 0% 50%; transform: translateY(0); }
  50% { transform: translateY(-1px); }
  100% { background-position: 200% 50%; transform: translateY(0); }
}
@keyframes nameGalaxyDrift {
  0%, 100% { background-position: 0% 50%; transform: rotate(-1deg) scale(.98); }
  50% { background-position: 100% 50%; transform: rotate(1deg) scale(1.03); }
}
@keyframes nameHoloFlip {
  0%, 100% { background-position: 0% 50%; transform: perspective(90px) rotateX(-5deg); }
  50% { background-position: 100% 50%; transform: perspective(90px) rotateX(7deg); }
}
@keyframes namePlasmaBuzz {
  0%, 100% { transform: translateX(-.5px); filter: brightness(.9); }
  50% { transform: translateX(.5px); filter: brightness(1.35) saturate(1.4); }
}
@keyframes nameVenomTwitch {
  0%, 100% { transform: skewX(8deg) translateX(0); }
  40% { transform: skewX(12deg) translateX(1px); }
  70% { transform: skewX(4deg) translateX(-1px); }
}
@keyframes nameRoseBloom {
  0%, 100% { transform: scale(.96); filter: saturate(.8); }
  50% { transform: scale(1.045); filter: saturate(1.35) drop-shadow(0 0 3px #fda4af); }
}
@keyframes nameLemonPop {
  0%, 100% { transform: scale(1) rotate(0); }
  45% { transform: scale(1.08) rotate(-2deg); filter: brightness(1.25); }
  60% { transform: scale(1.02) rotate(1deg); }
}
@keyframes nameGrapeSway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-1px); }
}
@keyframes nameSkyFloat {
  0%, 100% { transform: translateY(2px); opacity: .82; }
  50% { transform: translateY(-2px); opacity: 1; filter: drop-shadow(0 3px 3px #0369a1); }
}
@keyframes nameMidnightBlink {
  0%, 70%, 100% { filter: brightness(.78); opacity: .9; }
  75% { filter: brightness(1.55) drop-shadow(0 0 5px #818cf8); opacity: 1; }
}
@keyframes nameBlushGlow {
  0%, 100% { filter: brightness(.95); text-shadow: 0 0 5px #fda4af; }
  50% { filter: brightness(1.15); text-shadow: 0 0 14px #fff, 0 0 7px #fb7185; }
}
@keyframes nameSteelClang {
  0%, 78%, 100% { transform: translateX(0) skewX(0); }
  82% { transform: translateX(-2px) skewX(-3deg); }
  86% { transform: translateX(2px) skewX(3deg); filter: brightness(1.4); }
  90% { transform: translateX(-1px); }
}
@keyframes nameRetroShift {
  0%, 100% { text-shadow: 2px 0 #22d3ee, -2px 0 #f472b6; transform: translateX(0); }
  50% { text-shadow: -2px 0 #22d3ee, 2px 0 #f472b6; transform: translateX(1px); }
}
@keyframes nameComicPunch {
  0%, 72%, 100% { transform: rotate(-1.5deg) scale(1); }
  78% { transform: rotate(2deg) scale(1.11); }
  88% { transform: rotate(-2deg) scale(.98); }
}
@keyframes nameOutlineBlink {
  0%, 100% { -webkit-text-stroke-color: #f8fafc; filter: brightness(.8); }
  50% { -webkit-text-stroke-color: #38bdf8; filter: brightness(1.45) drop-shadow(0 0 4px #fff); }
}
@keyframes nameBubbleBounce {
  0%, 100% { transform: translateY(1px) scaleY(.96); }
  45% { transform: translateY(-3px) scaleY(1.06); }
  65% { transform: translateY(0) scaleY(.92); }
}
@keyframes nameForestRustle {
  0%, 100% { transform: skewX(-2deg) rotate(-1deg); }
  50% { transform: skewX(3deg) rotate(1deg); filter: brightness(1.2); }
}
@keyframes nameDesertMirage {
  0%, 100% { transform: translateX(-1px) scaleY(.98); }
  50% { transform: translateX(1px) scaleY(1.03); filter: brightness(1.15); }
}
@keyframes nameSlimeSquish {
  0%, 100% { transform: scaleX(1.04) scaleY(.94) translateY(1px); }
  50% { transform: scaleX(.96) scaleY(1.07) translateY(-1px); }
}
@keyframes nameMagmaErupt {
  0%, 100% { transform: translateY(1px) scale(1); color: #ff4d1c; }
  45% { transform: translateY(-3px) scale(1.035); color: #facc15; text-shadow: 0 0 15px #ef4444; }
}
@keyframes nameFrostCrackle {
  0%, 100% { transform: translateX(0); text-shadow: 0 0 6px #38bdf8; }
  33% { transform: translateX(-1px); text-shadow: -2px 1px 0 #fff, 0 0 8px #38bdf8; }
  66% { transform: translateX(1px); text-shadow: 2px -1px 0 #bae6fd, 0 0 8px #38bdf8; }
}
@keyframes namePulseBeat {
  0%, 100% { transform: scale(1); opacity: .75; }
  35% { transform: scale(1.08); opacity: 1; text-shadow: 0 0 15px #fff; }
  55% { transform: scale(1.02); }
}
@keyframes nameWobbleRoll {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-1px); }
}
@keyframes nameSparkSnap {
  0%, 100% { filter: brightness(.8); transform: scale(1); }
  50% { filter: brightness(1.7) drop-shadow(2px -2px 2px #fff); transform: scale(1.04); }
}
@keyframes nameVoidSink {
  0%, 100% { transform: translateY(-1px) scale(1); opacity: 1; }
  50% { transform: translateY(2px) scale(.93); opacity: .78; }
}
@keyframes nameIvoryShine {
  0%, 100% { filter: sepia(.05) brightness(.95); }
  50% { filter: sepia(.3) brightness(1.25) drop-shadow(-3px 0 3px #fff); }
}
@keyframes nameBloodDrop {
  0%, 100% { transform: translateY(-1px); text-shadow: 2px 2px 0 #450a0a; }
  65% { transform: translateY(2px); text-shadow: 2px 5px 1px #450a0a; }
}
@keyframes nameCottonCloud {
  0%, 100% { transform: translate(-1px,1px) scale(.99); }
  50% { transform: translate(1px,-2px) scale(1.035); filter: brightness(1.15); }
}

.fx-aura-aurora .fx-orb {
  background: conic-gradient(from 90deg, rgba(52,211,153,.45), rgba(129,140,248,.35), rgba(52,211,153,.45));
  animation: fxPulse 2.8s ease-in-out infinite;
}
.fx-aura-ember .fx-orb {
  background: radial-gradient(circle, rgba(251,146,60,.55) 0%, rgba(127,29,29,.2) 50%, transparent 70%);
  animation: fxPulse 1.5s ease-in-out infinite;
}
.fx-aura-moon .fx-orb {
  background: radial-gradient(circle, rgba(226,232,240,.45) 0%, rgba(148,163,184,.12) 48%, transparent 70%);
  animation: fxPulse 3s ease-in-out infinite;
}
.fx-aura-sakura .fx-orb {
  background: radial-gradient(circle, rgba(253,164,175,.45) 0%, transparent 68%);
  animation: fxPulse 2.2s ease-in-out infinite;
}
.fx-aura-hex .fx-orb {
  background: radial-gradient(circle, rgba(196,181,253,.4) 0%, rgba(109,40,217,.16) 46%, transparent 70%);
  animation: fxPulse 2.4s ease-in-out infinite;
}
.fx-aura-prism .fx-orb {
  background: conic-gradient(from 0deg, rgba(239,68,68,.35), rgba(250,204,21,.35), rgba(34,197,94,.35), rgba(56,189,248,.35), rgba(168,85,247,.35), rgba(239,68,68,.35));
  animation: fxPulse 2s ease-in-out infinite;
}
.fx-aura-storm .fx-orb {
  background: radial-gradient(circle, rgba(56,189,248,.5) 0%, rgba(30,58,138,.2) 50%, transparent 70%);
  animation: fxPulse 1.3s ease-in-out infinite;
}
.fx-aura-honey .fx-orb {
  background: radial-gradient(circle, rgba(251,191,36,.5) 0%, rgba(146,64,14,.16) 50%, transparent 70%);
  animation: fxPulse 2.5s ease-in-out infinite;
}
.fx-aura-toxic .fx-orb {
  background: radial-gradient(circle, rgba(163,230,53,.5) 0%, rgba(63,98,18,.18) 50%, transparent 70%);
  animation: fxPulse 1.7s ease-in-out infinite;
}
.fx-aura-royal .fx-orb {
  background: radial-gradient(circle, rgba(250,204,21,.5) 0%, rgba(124,58,237,.18) 48%, transparent 70%);
  animation: fxPulse 2.6s ease-in-out infinite;
}
.fx-aura-ghost .fx-orb {
  background: radial-gradient(circle, rgba(226,232,240,.35) 0%, transparent 68%);
  animation: fxPulse 3.2s ease-in-out infinite;
}
.fx-aura-pixel .fx-orb {
  background: radial-gradient(circle, rgba(34,211,238,.4) 0%, transparent 66%);
  animation: fxPulse 1.6s ease-in-out infinite;
}
.fx-aura-ocean .fx-orb {
  background: radial-gradient(circle, rgba(34,211,238,.5) 0%, rgba(14,116,144,.18) 50%, transparent 70%);
  animation: fxPulse 2.4s ease-in-out infinite;
}
.fx-aura-hearts .fx-bits, .fx-aura-sakura .fx-bits {
  width: 7px;
  height: 7px;
  margin: 0;
  left: 50%;
  top: 28%;
  background: #fb7185;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: -24px 16px 0 -1px #fda4af, 26px 8px 0 -1px #fb7185, 12px 34px 0 -2px #fff;
  animation: fxTwinkle 1.4s ease-in-out infinite;
}
.fx-aura-pixel .fx-bits {
  width: 6px;
  height: 6px;
  margin: 0;
  left: 48%;
  top: 26%;
  background: #22d3ee;
  box-shadow: -22px 14px 0 0 #a3e635, 24px 10px 0 0 #f472b6, 8px 32px 0 0 #facc15;
  animation: fxTwinkle 1s steps(2, end) infinite;
}


.sku .preview image { image-rendering: auto; }
/* about / news / how */
.more {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.card {
  background: var(--panel);
  border: 3px solid #0a3366;
  border-radius: 6px;
  padding: 14px 16px 16px;
  color: #e8f4ff;
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 28px;
  color: #fff;
  letter-spacing: .5px;
  animation: cardTitle .4s steps(2, end) infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card:nth-child(2) h2 { animation-delay: .3s; }
.card:nth-child(3) h2 { animation-delay: .6s; }
@keyframes cardTitle {
  0%, 49% { transform: translateY(0); }
  50%, 100% { transform: translateY(-3px); }
}
.card p, .card li { font-size: 14px; line-height: 1.45; margin: 0 0 8px; }
.pix {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #0a3366;
  color: #7ec8ff;
  font-family: var(--display);
  font-size: 20px;
  animation: letterSnap .4s steps(2, end) infinite;
}
.card ul { padding-left: 18px; margin: 0; }
.howto {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo {
  background: #071f3c;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.demo-stage {
  height: 120px;
  display: grid;
  place-items: center;
  color: #dff;
  font-weight: 800;
}
.demo-stage .choices-mini { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.demo-stage .chip {
  background: var(--panel);
  color: #fff;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  animation: popIn .35s both;
}
.demo p { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: #cfe8ff; }
.demo-dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.demo-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7aa3c9; display: block;
}
.demo-dots i.on { background: #fff; }
.step {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--panel-2);
  border-radius: 6px;
  padding: 8px;
}
.step-art {
  width: 64px;
  height: 48px;
  flex: 0 0 64px;
  background: #fff;
  border-radius: 4px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.step-art svg { width: 58px; height: 44px; }
.step span { font-size: 13px; font-weight: 700; color: #dff; }

.site-foot {
  margin-top: 28px;
  color: #d7ebff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 0 #0a3366;
}
.site-foot a { color: #fff; }

/* ---------- connecting ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 40, 80, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}
.overlay.on { display: flex; }
.overlay-card {
  background: var(--panel);
  color: #fff;
  padding: 28px 36px;
  border-radius: 8px;
  border: 3px solid #0a3366;
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 280px;
}
.overlay-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 28px; }
.overlay-actions {
  display: none;
  justify-content: center;
  margin-top: 18px;
}
.overlay.account-prompt .overlay-actions { display: flex; }
.overlay.account-prompt .overlay-card {
  width: min(460px, calc(100vw - 28px));
  min-width: 0;
}
.overlay.account-prompt #overlay-msg { margin: 0; line-height: 1.5; }
.overlay-account-ok {
  min-width: 210px;
  border: 2px solid #fff0a0;
  background: linear-gradient(180deg, #ffe77a, #f4bd2e);
  color: #432900;
  box-shadow: inset 0 -3px rgba(145,89,0,.2), 0 4px 0 #9a6507;
}
.dots::after {
  content: "";
  animation: dots 1s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

/* ---------- game shell ---------- */
.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  padding: 2px 0 4px;
}
.join-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 6px;
}
.join-row input {
  height: clamp(34px, 4.6vh, 38px);
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  font-weight: 700;
  background-color: #f1f0eb;
  background-image: var(--paper-photo);
  background-size: var(--paper-size);
  background-repeat: no-repeat;
  background-position: center;
  background-blend-mode: multiply;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 rgba(0,0,0,.12);
}
.btn-join {
  width: auto;
  height: clamp(34px, 4.6vh, 38px);
  padding: 0 16px;
  background: linear-gradient(180deg, #5bb4f0 0%, #2d86cc 100%);
  font-size: 15px;
}
.support-link {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: none;
  border: 0;
  color: #cfe8ff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.support-chip {
  background: #fff6;
  border: 2px solid #0a3366;
  color: #0a3366;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 12px;
}
.support-pop {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 60, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}
.support-pop.on { display: flex; }
.support-card {
  width: min(420px, 92vw);
  background: #0e4d8c;
  color: #eef6ff;
  border: 3px solid #0a3366;
  border-radius: 12px;
  padding: 22px 22px 18px;
  position: relative;
  box-shadow: 0 8px 0 rgba(0,0,0,.18);
}
.support-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 28px;
}
.support-card p { margin: 0 0 14px; line-height: 1.45; }
.support-links { display: grid; gap: 8px; }
.support-x {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}
.game-shell {
  flex: 0 0 auto;
  width: min(1180px, 100%);
  height: min(700px, calc(100vh - 56px));
  max-height: 700px;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 228px;
  grid-template-rows: auto 1fr;
  gap: 2px;
  margin: 0;
  min-height: 0;
  background: transparent;
}
.hud {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(8, 30, 60, .12), 0 2px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,.45);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 6px 12px;
  min-height: 88px;
}
.hud-left, .hud-right { display: flex; align-items: center; gap: 8px; }
.hud-right { justify-content: flex-end; }
.clock {
  width: 82px;
  height: 85px;
  position: relative;
  flex: 0 0 82px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.12));
}
.clock-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  z-index: 1;
}
.clock-num {
  position: absolute;
  left: calc(14% + 1px);
  top: 32%;
  width: 64%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.clock .t {
  position: static;
  transform: none;
  width: auto;
  margin: 0;
  padding: 0;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #161616;
  line-height: 1;
  text-align: center;
}
.clock.low .t { color: #c0392b; animation: tickPop .5s ease infinite; }
@keyframes tickPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.round-label { font-weight: 800; font-size: 18px; color: #222; position: relative; top: 3px; }
.hud-mid { text-align: center; }
.guess-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #666;
}
.word-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  min-height: 26px;
}
.blank {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 3px;
  color: #111;
}
.word-len {
  font-size: 12px;
  font-weight: 800;
  color: #555;
  margin-left: 4px;
}
.word-draw {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1px;
}
.gear {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
}
.gear svg {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  animation: logoWobble .86s ease-in-out infinite;
  --r: 8deg;
}
.gear:hover svg { animation: gearSpin 1.2s linear infinite; }
@keyframes gearSpin { to { transform: rotate(360deg); } }

.players, .board-wrap, .chat-col {
  border: 0;
  min-height: 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(8, 30, 60, .12), 0 2px 0 rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,.4);
}
.players {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
.board-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.chat-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player {
  display: grid;
  grid-template-columns: 28px 1fr 54px;
  align-items: center;
  padding: 4px 6px;
  border-bottom: 1px solid var(--paper-line);
  min-height: 62px;
  position: relative;
  overflow: visible;
  max-width: 100%;
}
.player > div:nth-child(2) { min-width: 0; overflow: hidden; }
.player.guessed { background: #d8f8d8; }
.player.drawing { background: #fff8d4; }
.prank { font-size: 12px; font-weight: 800; color: #888; }
.pname { font-weight: 800; font-size: 13px; line-height: 1.15; word-break: break-word; }
.pscore { font-size: 11px; font-weight: 700; color: #666; }
.player-kick {
  min-height: 25px;
  margin-top: 4px;
  padding: 2px 8px;
  border: 1px solid #b85a5a;
  border-radius: 999px;
  background: #fff3f3;
  color: #8d2424;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.player-kick:hover { background: #ffe1e1; }
.player-kick:focus-visible { outline: 3px solid rgba(184, 90, 90, .25); outline-offset: 2px; }
.pav { width: 54px; height: 58px; }
.pav svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: blobBob 2.8s ease-in-out infinite;
  transform-origin: 50% 80%;
}
.player:nth-child(2n) .pav svg { animation-delay: .35s; }
.player:nth-child(3n) .pav svg { animation-delay: .7s; }
.player.drawing .pav svg { animation: blobDraw 1.8s ease-in-out infinite; }
.eyes, .mouth {
  transform-box: fill-box;
  transform-origin: center;
}
.eyes-art, .mouth-art {
  transform-box: fill-box;
  transform-origin: center;
  animation-delay: var(--face-delay, 0s);
  will-change: transform;
}
.eyes *, .mouth * { transform-box: fill-box; }
.eye-motion-blink-a { animation: eyeBlinkA var(--face-speed, 4.4s) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-blink-b { animation: eyeBlinkB var(--face-speed, 4.7s) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-character { animation: eyeCharacter var(--face-speed, 4.1s) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-character .eye-pupil { animation: pupilCurious calc(var(--face-speed, 4.1s) * 1.35) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-glance { animation: eyeObserve var(--face-speed, 4.8s) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-glance .eye-pupil { animation: pupilGlance calc(var(--face-speed, 4.8s) * .82) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-closed { animation: eyeClosed var(--face-speed, 4.6s) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-dizzy { animation: eyeDizzy var(--face-speed, 4s) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-drowse { animation: eyeDrowse var(--face-speed, 5.2s) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-drowse .eye-lid { animation: lidDroop calc(var(--face-speed, 5.2s) * .76) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-pulse { animation: eyePulse var(--face-speed, 4.3s) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-spin { animation: eyeFloat var(--face-speed, 4.5s) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-flame { animation: eyeHeat var(--face-speed, 3.7s) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-scan { animation: eyeScanner var(--face-speed, 4.2s) ease-in-out var(--face-delay, 0s) infinite; }
.eye-motion-graphic { animation: eyeGraphic var(--face-speed, 4.8s) ease-in-out var(--face-delay, 0s) infinite; }
.eye-pupil { transform-origin: center; }
.eye-spark, .eye-flower, .eye-royal, .eye-cosmic { transform-origin: center; animation: eyeSpark calc(var(--face-speed, 4.2s) * .88) ease-in-out var(--face-delay, 0s) infinite; }
.eye-spin { transform-origin: center; animation: eyeSpin calc(var(--face-speed, 4s) * .82) linear var(--face-delay, 0s) infinite; }
.eye-spin-reverse { animation-direction: reverse; }
.eye-flame { transform-origin: 50% 100%; animation: eyeFlame calc(var(--face-speed, 3.6s) * .34) ease-in-out var(--face-delay, 0s) infinite alternate; }
.eye-frost, .eye-galaxy, .eye-rainbow, .eye-lightning { transform-origin: center; animation: eyeGem calc(var(--face-speed, 4.4s) * .72) ease-in-out var(--face-delay, 0s) infinite; }
.eye-scan { animation: eyeScan calc(var(--face-speed, 3.8s) * .72) ease-in-out var(--face-delay, 0s) infinite; }
.eye-core { transform-origin: center; animation: eyeCore calc(var(--face-speed, 3.8s) * .42) ease-in-out var(--face-delay, 0s) infinite; }
.eye-buttons { transform-origin: center; animation: eyeButton calc(var(--face-speed, 4.6s) * .9) steps(2, end) var(--face-delay, 0s) infinite; }
.eye-tear { transform-origin: 50% 0; animation: eyeTear calc(var(--face-speed, 4.5s) * .66) ease-in var(--face-delay, 0s) infinite; }
.eye-glasses, .eye-glam, .eye-mask { transform-origin: center; animation: eyeAccessory calc(var(--face-speed, 4.7s) * .94) ease-in-out var(--face-delay, 0s) infinite; }
.eye-rainbow-lash { transform-origin: center; animation: eyeLash calc(var(--face-speed, 4.4s) * .8) ease-in-out var(--face-delay, 0s) infinite; }
.eye-orbit { transform-origin: center; animation: eyeOrbit calc(var(--face-speed, 4.2s) * .72) linear var(--face-delay, 0s) infinite; }
.eye-orbit-reverse { animation-direction: reverse; }

.mouth-motion-breathe-a { animation: mouthBreatheA var(--face-speed, 4s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-breathe-b { animation: mouthBreatheB var(--face-speed, 4.4s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-laugh { animation: mouthLaugh var(--face-speed, 3.8s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-frown { animation: mouthFrown var(--face-speed, 4.7s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-pop { animation: mouthPop var(--face-speed, 4.2s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-chatter { animation: mouthChatter var(--face-speed, 3.7s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-tongue { animation: mouthCheeky var(--face-speed, 4.1s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-wobble { animation: mouthWobble var(--face-speed, 4.4s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-bubble { animation: mouthBubbleHold var(--face-speed, 4.9s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-gloss { animation: mouthGloss var(--face-speed, 4.5s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-fang { animation: mouthFang var(--face-speed, 4.3s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-moustache { animation: mouthMoustache var(--face-speed, 4.8s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-stitch { animation: mouthStitch var(--face-speed, 5s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-tech { animation: mouthTech var(--face-speed, 3.9s) ease-in-out var(--face-delay, 0s) infinite; }
.mouth-motion-treat { animation: mouthTreat var(--face-speed, 4.4s) ease-in-out var(--face-delay, 0s) infinite; }
.tongue { transform-origin: 50% 10%; animation: tongueWiggle calc(var(--face-speed, 4.1s) * .68) ease-in-out var(--face-delay, 0s) infinite; }
.tongue-right { animation-direction: reverse; }
.tongue-curl { transform-origin: center; animation-name: tongueCurl; }
.bubble { transform-origin: center; animation: bubbleGrow calc(var(--face-speed, 4.8s) * .78) ease-in-out var(--face-delay, 0s) infinite; }
.lollipop { transform-origin: 50% 100%; animation: lollipopTurn calc(var(--face-speed, 4.2s) * .75) ease-in-out var(--face-delay, 0s) infinite; }
.lip-shine, .brace-shine, .tooth-shine, .frost-spark { animation: faceShine calc(var(--face-speed, 4.3s) * .72) ease-in-out var(--face-delay, 0s) infinite; }
.zipper-pull { transform-origin: 0 50%; animation: zipperTug calc(var(--face-speed, 4.5s) * .8) ease-in-out var(--face-delay, 0s) infinite; }
.pacifier-ring { transform-origin: 50% 0; animation: pacifierBounce calc(var(--face-speed, 4s) * .62) ease-in-out var(--face-delay, 0s) infinite; }
.air-curl { animation: airDrift calc(var(--face-speed, 4s) * .64) ease-out var(--face-delay, 0s) infinite; }
.air-curl-small { animation-delay: calc(var(--face-delay, 0s) - .55s); }
.mouth-moustache { transform-origin: center; animation: moustacheSway calc(var(--face-speed, 4.6s) * .75) ease-in-out var(--face-delay, 0s) infinite; }
.speaker-bar { transform-origin: 50% 100%; animation: speakerPulse calc(var(--face-speed, 3.8s) * .34) ease-in-out var(--face-delay, 0s) infinite alternate; }
.speaker-bar-2 { animation-delay: calc(var(--face-delay, 0s) - .12s); }
.speaker-bar-3 { animation-delay: calc(var(--face-delay, 0s) - .24s); }
.speaker-bar-4 { animation-delay: calc(var(--face-delay, 0s) - .36s); }
.pixel-spark { animation: pixelBlink calc(var(--face-speed, 3.8s) * .48) steps(2, end) var(--face-delay, 0s) infinite; }
.neon-mouth { animation: neonMouth calc(var(--face-speed, 4s) * .55) ease-in-out var(--face-delay, 0s) infinite; }
.rainbow-mouth { animation: rainbowMouth calc(var(--face-speed, 4s) * .8) linear var(--face-delay, 0s) infinite; }
.food-smudge { transform-origin: center; animation: foodBounce calc(var(--face-speed, 4.2s) * .68) ease-in-out var(--face-delay, 0s) infinite; }
.ice-drop { transform-origin: 50% 0; animation: iceDrop calc(var(--face-speed, 4s) * .7) ease-in-out var(--face-delay, 0s) infinite; }

@keyframes eyeBlinkA { 0%, 84%, 88%, 91%, 100% { transform: scaleY(1); } 86%, 89% { transform: scaleY(.08); } }
@keyframes eyeBlinkB { 0%, 68%, 72%, 92%, 96%, 100% { transform: scaleY(1); } 70%, 94% { transform: scaleY(.1); } }
@keyframes eyeCharacter { 0%, 68%, 100% { transform: translateY(0) scaleY(1); } 72% { transform: translateY(.5px) scaleY(.92); } 75% { transform: translateY(0) scaleY(.12); } 78% { transform: scaleY(1); } }
@keyframes pupilCurious { 0%, 60%, 100% { transform: translateX(0); } 68%, 78% { transform: translateX(1.2px); } }
@keyframes eyeObserve { 0%, 30%, 100% { transform: translateX(0); } 43%, 66% { transform: translateX(.45px); } }
@keyframes pupilGlance { 0%, 24%, 100% { transform: translateX(0); } 38%, 62% { transform: translateX(-1.5px); } 72%, 88% { transform: translateX(1.1px); } }
@keyframes eyeClosed { 0%, 62%, 100% { transform: translateY(0) scaleX(1); } 70% { transform: translateY(-.9px) scaleX(1.04); } 78% { transform: translateY(0); } }
@keyframes eyeDizzy { 0%, 80%, 100% { transform: translate(0); } 84% { transform: translate(-.5px,.35px) rotate(-1deg); } 88% { transform: translate(.5px,-.25px) rotate(1deg); } 92% { transform: translate(-.3px,0); } }
@keyframes eyeDrowse { 0%, 40%, 100% { transform: translateY(0) scaleY(1); } 58%, 72% { transform: translateY(1.1px) scaleY(.7); } 80% { transform: translateY(.2px) scaleY(.92); } }
@keyframes lidDroop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1.4px); } }
@keyframes eyePulse { 0%, 72%, 100% { transform: scale(1); } 80% { transform: scale(1.07); } 88% { transform: scale(.98); } }
@keyframes eyeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.7px); } }
@keyframes eyeHeat { 0%, 100% { transform: translateY(0) scaleY(1); } 48% { transform: translateY(-.8px) scaleY(1.05); } }
@keyframes eyeScanner { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(.45px); } }
@keyframes eyeGraphic { 0%, 76%, 100% { transform: rotate(0); } 82% { transform: rotate(-1.2deg); } 88% { transform: rotate(1.2deg); } 94% { transform: rotate(0); } }
@keyframes eyeSpark { 0%, 76%, 100% { transform: scale(1) rotate(0); } 84% { transform: scale(1.08) rotate(2deg); } 92% { transform: scale(.98) rotate(-1deg); } }
@keyframes eyeSpin { to { transform: rotate(360deg); } }
@keyframes eyeFlame { from { transform: scaleX(.96) scaleY(.96) skewX(-1deg); } to { transform: scaleX(1.04) scaleY(1.08) skewX(1.5deg); } }
@keyframes eyeGem { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.035); filter: brightness(1.12); } }
@keyframes eyeScan { 0%, 12% { transform: translateX(0); opacity: .25; } 50% { opacity: 1; } 88%, 100% { transform: translateX(34px); opacity: .25; } }
@keyframes eyeCore { 0%, 100% { transform: scale(.8); opacity: .7; } 50% { transform: scale(1.25); opacity: 1; } }
@keyframes eyeButton { 0%, 88%, 100% { transform: translateY(0); } 92% { transform: translateY(1px); } }
@keyframes eyeTear { 0%, 55% { transform: translateY(-1px) scaleY(.75); opacity: .3; } 72% { opacity: 1; } 100% { transform: translateY(3px) scaleY(1.1); opacity: 0; } }
@keyframes eyeAccessory { 0%, 78%, 100% { transform: translateY(0); } 86% { transform: translateY(-.55px); } 92% { transform: translateY(.2px); } }
@keyframes eyeLash { 0%, 72%, 100% { transform: scaleY(1); } 80% { transform: scaleY(.75) translateY(1px); } 86% { transform: scaleY(1.06); } }
@keyframes eyeOrbit { to { transform: rotate(360deg); } }
@keyframes mouthBreatheA { 0%, 70%, 100% { transform: translateY(0) scaleX(1); } 82% { transform: translateY(.35px) scaleX(1.04); } }
@keyframes mouthBreatheB { 0%, 58%, 100% { transform: translateY(0); } 70% { transform: translateY(.55px) scaleX(.97); } 82% { transform: translateY(0); } }
@keyframes mouthLaugh { 0%, 62%, 100% { transform: scaleY(1) translateY(0); } 70% { transform: scaleY(1.16) translateY(.5px); } 78% { transform: scaleY(.91); } 86% { transform: scaleY(1.1); } }
@keyframes mouthFrown { 0%, 100% { transform: translateY(0) scaleX(1); } 50% { transform: translateY(.7px) scaleX(.96); } }
@keyframes mouthPop { 0%, 64%, 100% { transform: scale(1); } 72% { transform: scale(.86); } 79% { transform: scale(1.13); } 88% { transform: scale(1); } }
@keyframes mouthChatter { 0%, 68%, 100% { transform: scaleY(1); } 72% { transform: scaleY(.86); } 76% { transform: scaleY(1.08); } 80% { transform: scaleY(.9); } 84% { transform: scaleY(1); } }
@keyframes mouthCheeky { 0%, 72%, 100% { transform: rotate(0) translateY(0); } 82% { transform: rotate(-1deg) translateY(.5px); } 90% { transform: rotate(1deg); } }
@keyframes mouthWobble { 0%, 68%, 100% { transform: translateX(0); } 74% { transform: translateX(-.6px) rotate(-1deg); } 80% { transform: translateX(.6px) rotate(1deg); } 86% { transform: translateX(-.3px); } }
@keyframes mouthBubbleHold { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.4px); } }
@keyframes mouthGloss { 0%, 70%, 100% { transform: scaleX(1); } 80% { transform: scaleX(1.06); } 90% { transform: scaleX(.99); } }
@keyframes mouthFang { 0%, 66%, 100% { transform: translateY(0) scaleY(1); } 75% { transform: translateY(.5px) scaleY(1.07); } 84% { transform: translateY(0) scaleY(.96); } }
@keyframes mouthMoustache { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(-.8deg); } 55% { transform: rotate(.8deg); } }
@keyframes mouthStitch { 0%, 72%, 100% { transform: scaleX(1); } 82% { transform: scaleX(.96); } 90% { transform: scaleX(1.02); } }
@keyframes mouthTech { 0%, 72%, 100% { transform: translateY(0); filter: brightness(1); } 82% { transform: translateY(.3px); filter: brightness(1.18); } }
@keyframes mouthTreat { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(-.5deg); } 55% { transform: rotate(.5deg); } }
@keyframes tongueWiggle { 0%, 65%, 100% { transform: rotate(0) translateY(0); } 76% { transform: rotate(-5deg) translateY(.8px); } 88% { transform: rotate(4deg); } }
@keyframes tongueCurl { 0%, 65%, 100% { transform: scaleY(1) rotate(0); } 78% { transform: scaleY(1.08) rotate(-3deg); } 90% { transform: scaleY(.97) rotate(2deg); } }
@keyframes bubbleGrow { 0%, 20%, 100% { transform: scale(.82); } 52%, 76% { transform: scale(1.05); } 86% { transform: scale(.98); } }
@keyframes lollipopTurn { 0%, 68%, 100% { transform: rotate(0); } 78% { transform: rotate(-7deg); } 88% { transform: rotate(5deg); } }
@keyframes faceShine { 0%, 58%, 100% { opacity: .25; transform: translateX(-2px); } 72% { opacity: 1; transform: translateX(1px); } 84% { opacity: .35; transform: translateX(2px); } }
@keyframes zipperTug { 0%, 70%, 100% { transform: rotate(0) translateX(0); } 80% { transform: rotate(7deg) translateX(1px); } 90% { transform: rotate(-3deg); } }
@keyframes pacifierBounce { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg) translateY(.5px); } }
@keyframes airDrift { 0%, 35% { transform: translateX(-2px) scale(.8); opacity: 0; } 60% { opacity: 1; } 100% { transform: translateX(4px) scale(1.1); opacity: 0; } }
@keyframes moustacheSway { 0%, 100% { transform: rotate(-.5deg); } 50% { transform: rotate(.7deg) translateY(.2px); } }
@keyframes speakerPulse { from { transform: scaleY(.45); } to { transform: scaleY(1.15); } }
@keyframes pixelBlink { 0%, 55%, 100% { opacity: .3; } 60%, 90% { opacity: 1; } }
@keyframes neonMouth { 0%, 100% { filter: drop-shadow(0 0 .8px #ff3be5); opacity: .88; } 50% { filter: drop-shadow(0 0 3px #ff3be5); opacity: 1; } }
@keyframes rainbowMouth { to { stroke-dashoffset: -22; } }
@keyframes foodBounce { 0%, 70%, 100% { transform: translateY(0); } 82% { transform: translateY(-1px) rotate(5deg); } }
@keyframes iceDrop { 0%, 58% { transform: translateY(-1px) scale(.8); opacity: .4; } 82% { opacity: 1; } 100% { transform: translateY(3px) scale(1); opacity: 0; } }
@keyframes blobBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes blobDraw {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-2px) rotate(2deg); }
}
.player .plus {
  position: absolute;
  right: 50px;
  top: 4px;
  font-weight: 900;
  color: #1a9c2c;
  animation: plusUp .9s ease forwards;
  pointer-events: none;
}
@keyframes plusUp {
  from { transform: translateY(6px); opacity: 1; }
  to { transform: translateY(-16px); opacity: 0; }
}

.board-stage { flex: 1; position: relative; min-height: 0; }
#draw { display: block; width: 100%; height: 100%; touch-action: none; background: transparent; }
.votes {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 4;
}
.vote {
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255,255,255,.88);
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(8,30,60,.12);
}
.vote svg {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 80%;
  animation: logoWobble .8s ease-in-out infinite;
  --r: -7deg;
}
.vote:nth-child(2) svg { --r: 8deg; animation-duration: .88s; }
.vote.on { transform: scale(1.1); }
.vote:hover { transform: scale(1.08); }

.tools {
  display: none;
  border-top: 1px solid var(--paper-line);
  padding: 6px 8px;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.tools.on { display: flex; }
.tools.locked { opacity: 0.45; pointer-events: none; }
.swatches {
  display: grid;
  grid-template-columns: repeat(11, 16px);
  grid-auto-rows: 16px;
  gap: 3px;
}
.swatch {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 3px;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.swatch.l { box-shadow: inset 0 0 0 2px #111; }
.sizes {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0 4px;
}
.size-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
}
.size-btn.on { background: #e8eef5; }
.size-btn i {
  display: block;
  border-radius: 50%;
  background: #1a1a1a;
}
.tool-btns {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.ticon {
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.ticon svg {
  width: 22px;
  height: 22px;
  display: block;
  transform-origin: 50% 80%;
  animation: logoWobble .78s ease-in-out infinite;
  --r: -8deg;
}
.ticon:nth-child(2n) svg { --r: 8deg; animation-duration: .84s; }
.ticon:nth-child(3n) svg { --r: -6deg; animation-duration: .7s; }
.ticon .emo {
  font-size: 18px;
  line-height: 1;
  display: block;
}
.ticon:hover { background: #e8eef5; }
.ticon.on { background: #1a1a1a; }
.ticon.on svg [stroke] { stroke: #fff; }
.ticon.on svg [fill]:not([fill="none"]) { fill: #fff; }

.chat-log {
  flex: 1;
  overflow: auto;
  overflow-x: hidden;
  font-size: 13px;
  line-height: 1.4;
  scrollbar-width: thin;
}
.msg { padding: 5px 10px; word-wrap: break-word; }
.msg:nth-child(even) { background: rgba(120, 88, 48, .05); }
.msg b, .msg .nm { font-weight: 800; }
.msg.ok { background: var(--chat-ok-bg) !important; color: var(--chat-ok); font-weight: 800; }
.msg.sys { color: var(--chat-sys); font-weight: 800; }
.msg.leave { color: var(--chat-leave); font-weight: 800; }
.msg.draw { color: var(--chat-draw); font-weight: 800; }
.msg.close { color: var(--chat-close); font-weight: 800; }
.msg.guessed { background: rgba(199, 239, 204, .58) !important; color: #17692a; }
.msg.word { background: #ececec !important; color: #333; font-weight: 800; }
.chat-in {
  border: 0;
  border-radius: 0 0 12px 12px;
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  font-weight: 700;
  background-color: var(--paper);
  background-image: var(--paper-photo);
  background-size: var(--paper-size);
  background-repeat: no-repeat;
  background-position: center;
}
.chat-in:focus,
.chat-in:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
  filter: brightness(1.03);
}

/* overlays on board */
.board-modal {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: var(--paper);
  background-image: var(--paper-photo);
  background-size: var(--paper-size);
  background-repeat: no-repeat;
  background-position: center;
  z-index: 5;
  padding: 16px;
}
.board-modal.on { display: flex; }
.modal-inner { text-align: center; width: min(560px, 100%); }
.modal-inner h2 {
  font-family: var(--display);
  font-size: 34px;
  margin: 0 0 10px;
  color: #1a3a6b;
  letter-spacing: .4px;
  animation: popIn .35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes popIn {
  from { transform: scale(.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.choices { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.choice {
  background: var(--panel);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 0 #0a3366;
  animation: popIn .35s cubic-bezier(.2,1.4,.4,1) both;
}
.choice:nth-child(2) { animation-delay: .06s; }
.choice:nth-child(3) { animation-delay: .12s; }
.choice:nth-child(4) { animation-delay: .18s; }
.choice:nth-child(5) { animation-delay: .24s; }
.choice:hover { filter: brightness(1.08); }

/* private settings */
.settings {
  width: min(520px, 100%);
  text-align: left;
}
.set-row {
  display: grid;
  grid-template-columns: 48px 1fr 160px;
  align-items: center;
  gap: 10px;
  background: #f6f8fb;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 6px;
}
.set-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.set-row:nth-child(2) .set-ico { animation-delay: .1s; }
.set-row:nth-child(3) .set-ico { animation-delay: .2s; }
.set-row:nth-child(4) .set-ico { animation-delay: .3s; }
.set-row:nth-child(5) .set-ico { animation-delay: .4s; }
.set-row:nth-child(6) .set-ico { animation-delay: .5s; }
.set-row:nth-child(7) .set-ico { animation-delay: .6s; }
.set-lab { font-weight: 800; font-size: 15px; }
.set-row select {
  height: 32px;
  border: 1px solid #ccd;
  border-radius: 4px;
  font-weight: 700;
  padding: 0 8px;
}
.custom-box { margin-top: 8px; }
.custom-box textarea {
  width: 100%;
  min-height: 64px;
  border: 1px solid #ccd;
  border-radius: 4px;
  padding: 8px;
  resize: vertical;
  font-size: 13px;
}
.custom-help { display: block; margin-top: 4px; color: #667085; font-size: 11px; font-weight: 700; }
.custom-box label { font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.set-actions { display: flex; gap: 8px; margin-top: 10px; }
.set-actions .btn { width: auto; padding: 0 18px; height: 42px; font-size: 16px; }
.btn-start {
  background: var(--play);
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px !important;
  letter-spacing: .04em;
  text-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.btn-invite {
  background: linear-gradient(180deg, #ffe06a 0%, #e0a21b 100%);
  color: #3a2500;
  text-shadow: none;
  width: auto;
  display: inline-block;
  padding: 0 22px;
  height: 42px;
  border-radius: 12px;
}
.btn-bots { background: var(--priv); }

.results-panel {
  display: flex;
  width: min(480px, 100%);
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.results-word {
  margin: 0 0 14px;
  font-size: clamp(25px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.results-next { margin: 15px 0 0; font-weight: 800; }
.scoreboard { width: min(440px, 100%); margin-inline: auto; }
.srow {
  display: grid;
  grid-template-columns: 40px 1fr 80px;
  align-items: center;
  background: rgba(255, 252, 244, .7);
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 6px;
  box-shadow: 0 3px 0 rgba(0,0,0,.08);
  animation: popIn .35s both;
}
.srow .rank { font-weight: 900; color: #888; }
.srow .score-name {
  min-width: 0;
  overflow: visible;
  text-align: left;
}
.srow .nm {
  display: inline-block;
  max-width: 100%;
  overflow: visible;
  font-weight: 800;
  word-break: break-word;
  transform-origin: 15% 55%;
}
.srow .sc { font-weight: 900; color: #1a9c2c; text-align: right; }
.srow.gold { background: #ffeaa7; }
.srow.silver { background: #dfe6e9; }
.srow.bronze { background: #fab1a0; }

@media (max-width: 700px) {
  .game-shell:is([data-state="reveal"], [data-state="results"]) .board-modal {
    align-items: safe center;
    overflow-y: auto;
    padding: 14px clamp(10px, 4vw, 18px);
  }
  .game-shell:is([data-state="reveal"], [data-state="results"]) .modal-inner {
    width: min(100%, 480px);
    margin-inline: auto;
  }
  .results-panel { width: 100%; }
  .results-panel h2 { font-size: clamp(27px, 8vw, 34px); }
  .results-word { margin-bottom: 12px; font-size: clamp(23px, 7vw, 28px); }
  .scoreboard { width: min(100%, 420px); }
  .srow {
    grid-template-columns: 34px minmax(0, 1fr) 58px;
    gap: 4px;
    min-height: 40px;
    padding: 7px 8px;
  }
  .srow .rank { font-size: 12px; text-align: left; }
  .srow .nm { font-size: clamp(12px, 3.8vw, 15px); }
  .srow .sc { font-size: 13px; }
  .results-next { margin-top: 12px; font-size: 12px; }
}

@media (max-width: 380px) {
  .srow { grid-template-columns: 29px minmax(0, 1fr) 48px; padding-inline: 6px; }
  .srow .sc { font-size: 12px; }
}

.settings-pop {
  position: absolute;
  top: 56px;
  right: 16px;
  width: 280px;
  border: 3px solid #0a3366;
  border-radius: 8px;
  padding: 12px;
  display: none;
  z-index: 20;
  box-shadow: var(--shadow);
}
.settings-pop.on { display: block; }
.settings-pop h4 { margin: 0 0 8px; }
.settings-pop label { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; margin: 8px 0; }
.settings-pop input[type="range"] { width: 120px; }
.safety-report {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border: 1px solid rgba(24, 83, 130, .2);
  border-radius: 10px;
  background: rgba(255,255,255,.62);
  color: #174b73;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 900px) {
  .game-shell {
    grid-template-columns: 132px 1fr 180px;
    height: min(520px, calc(100vh - 88px));
    max-height: 520px;
  }
  .brand:not(.sm) .ch { font-size: clamp(38px, 8.4vw, 72px); }
  .brand.sm .ch { font-size: 26px; }
  .more { grid-template-columns: 1fr; }
  .mascot { width: 40px; height: 48px; }
}
@media (max-width: 680px) {
  .game-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 280px 220px;
  }
  .hud { grid-column: 1; }
  .players, .board-wrap, .chat-col { margin-bottom: 3px; }
  .login-row { grid-template-columns: minmax(0, 1fr) auto; }
  .login-field:first-child { grid-column: 1 / -1; }
  .login-note { margin-bottom: 6px; font-size: 10px; line-height: 1.35; }
}

@media (pointer: coarse) {
  .mascot { min-width: 40px; min-height: 44px; }
  .dice { width: 44px; height: 44px; padding: 5px; }
  .look-tab { min-height: 40px; padding: 8px 10px; }
  .look-off, .look-unlock, .look-reset, .account-signout, .account-delete { min-height: 40px; }
  .look-chip button { min-width: 32px; min-height: 32px; padding: 5px; }
  .shop-card .support-x { width: 44px; height: 44px; }
  .shop-tab { min-height: 44px; }
  .shop-preview-btn { min-height: 38px; font-size: 9px; }
  .sku .btn { min-height: 44px; }
  .gear, .vote { min-width: 44px; min-height: 44px; }
  .settings-pop input[type="checkbox"] { width: 24px; height: 24px; }
}

/* ---------- 2026 quality pass: smoother art + a usable locker ---------- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.modal-open { overflow: hidden; }

.picker-avatar svg,
.mascot svg,
.pav svg,
.shop-live-avatar svg,
.sku .preview svg {
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

.shop-pop {
  padding: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(77,151,226,.22), transparent 42%),
    rgba(2,12,28,.78);
  backdrop-filter: blur(8px);
}
.shop-card {
  width: min(1100px, calc(100vw - 36px));
  height: min(92vh, 820px);
  max-height: min(92vh, 820px);
  padding: 20px 22px 14px;
  border: 1px solid rgba(166,213,255,.3);
  outline: 3px solid #062849;
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% -5%, rgba(61,154,238,.5), transparent 30%),
    linear-gradient(160deg, #1766b2 0%, #0b477f 58%, #072f59 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 8px 0 rgba(2,20,38,.82), inset 0 1px 0 rgba(255,255,255,.15);
}
.shop-card:focus { outline: 3px solid #062849; }
.shop-card .support-x {
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: rgba(4,34,66,.62);
  color: #fff;
  font-size: 26px;
  transition: background .15s ease, transform .15s ease;
}
.shop-card .support-x:hover,
.shop-card .support-x:focus-visible { background: #e85959; transform: rotate(4deg); }

.shop-head {
  align-items: center;
  min-height: 150px;
  padding-right: 42px;
  gap: 26px;
}
.shop-heading { min-width: 0; flex: 1 1 auto; }
.shop-card h3 {
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -.025em;
  text-shadow: 0 3px 0 rgba(2,27,52,.42);
}
.shop-kicker { color: #ffe071; }
.shop-lead {
  margin: 5px 0 0;
  max-width: 35rem;
  color: #cfe9ff;
  font-size: 14px;
  font-weight: 800;
}
.shop-live {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  width: min(39vw, 390px);
  min-width: 340px;
  height: 150px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 7px 18px 38px 8px;
  border: 1px solid rgba(187,226,255,.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 25% 35%, rgba(71,194,255,.31), transparent 46%),
    linear-gradient(145deg, rgba(7,60,108,.92), rgba(3,31,62,.84));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 9px 22px rgba(0,20,42,.18);
}
.shop-live-avatar {
  position: relative;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 9px 15px rgba(1,16,34,.13));
}
.shop-live-avatar svg { position: relative; z-index: 1; width: 100%; height: 100%; display: block; overflow: visible; }
.shop-live b { display: block; color: #fff; font-size: 18px; line-height: 1.05; }
.shop-live span { display: block; max-width: 205px; color: #b9ddf7; font-size: 12px; font-weight: 800; line-height: 1.25; margin-top: 5px; }
.shop-live-copy { min-width: 0; }
.shop-live-badge {
  display: block;
  width: max-content;
  margin-bottom: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(112,197,255,.14);
  color: #9ed6ff;
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}
.shop-live-copy .nm { max-width: 205px; overflow: visible; white-space: nowrap; }
.shop-preview-actions {
  position: absolute;
  z-index: 6;
  left: 10px;
  right: 10px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.shop-preview-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(181,220,249,.28);
  border-radius: 9px;
  background: rgba(157,207,243,.12);
  color: #e5f4ff;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .02em;
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.shop-preview-category { text-align: left; }
.shop-preview-clear { text-align: right; }
.shop-preview-btn:hover:not(:disabled) { border-color: rgba(255,166,166,.62); background: rgba(210,70,70,.32); }
.shop-preview-btn:disabled { opacity: .38; cursor: default; }
svg .rank-layer { pointer-events: none; }

.shop-utility {
  display: grid;
  grid-template-columns: minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
  margin: 10px 0 10px;
}
.shop-search {
  position: relative;
  display: block;
  max-width: 540px;
}
.shop-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-52%) rotate(-18deg);
  color: #5386b2;
  font-size: 24px;
  font-weight: 900;
  pointer-events: none;
}
.shop-search input {
  width: 100%;
  height: 42px;
  padding: 0 42px;
  border: 2px solid transparent;
  border-radius: 13px;
  outline: 0;
  background-color: #f7f7f6;
  background-image: var(--paper-photo);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #092b4b;
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(2,27,52,.22);
}
.shop-search input:focus { border-color: #f7d048; box-shadow: 0 0 0 3px rgba(247,208,72,.25); }
.shop-tabs {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
  overflow: visible;
  padding: 0 2px 8px;
}
.shop-tab {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 35px;
  padding: 7px 5px;
  border: 1px solid rgba(117,181,235,.28);
  background: rgba(5,48,91,.82);
  color: #dcefff;
  font-size: clamp(9px, .9vw, 11px);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
  transition: transform .15s ease, background .15s ease;
}
.shop-tab > span { min-width: 0; white-space: nowrap; }
.shop-tab:hover { transform: translateY(-1px); background: #0d558f; }
.shop-tab b {
  min-width: 18px;
  padding: 2px 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  color: #9dcaef;
  font-size: 10px;
}
.shop-tab.on {
  border-color: #ffe071;
  background: linear-gradient(180deg, #ffe579, #f2bb2f);
  color: #3a2500;
  box-shadow: inset 0 -3px 0 rgba(159,106,0,.24), 0 2px 0 rgba(3,26,48,.2);
}
.shop-tab.on b { background: rgba(91,57,0,.13); color: #5b3a00; }

@media (max-width: 900px) {
  .shop-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .shop-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.shop-skus,
.shop-skus.tab-deals,
.shop-skus.deals-on,
.shop-skus.tab-names,
.shop-skus.names-on {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  padding: 6px 5px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(158,202,233,.38) transparent;
}
.shop-skus::-webkit-scrollbar { display: block; width: 8px; }
.shop-skus::-webkit-scrollbar-thumb { background: rgba(158,202,233,.38); border-radius: 999px; }
.sku {
  min-height: 300px;
  padding: 9px;
  border: 1px solid rgba(96,178,240,.42);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(25,104,170,.5), rgba(4,42,80,.76)),
    #0b4a84;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 18px rgba(2,20,40,.16);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sku:hover,
.sku:focus-within {
  transform: translateY(-3px);
  border-color: rgba(145,210,255,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 13px 24px rgba(1,17,34,.28);
}
.sku.is-previewing {
  border-color: #ffe071;
  box-shadow: inset 0 0 0 2px rgba(255,224,113,.48), 0 12px 25px rgba(1,17,34,.3);
}
.sku-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.sku .preview {
  width: 100%;
  height: 154px;
  flex: 0 0 154px;
  margin: 0;
  padding: 10px 8px 4px;
  border: 1px solid rgba(132,196,244,.18);
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 42%, rgba(37,126,199,.62) 0%, rgba(6,41,78,.96) 68%),
    #062a50;
  box-shadow: inset 0 0 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
}
.sku .preview::after {
  content: "";
  position: absolute;
  inset: 8% 18% 5%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 70%, rgba(94,190,255,.18), transparent 66%);
  pointer-events: none;
}
.sku .preview svg {
  width: 122px;
  height: 132px;
  filter: drop-shadow(0 10px 16px rgba(1,16,34,.12));
  transition: transform .22s cubic-bezier(.2,.8,.2,1), filter .22s ease;
}
.sku-preview:hover .preview svg,
.sku-preview:focus-visible .preview svg { transform: translateY(-3px) scale(1.045); filter: drop-shadow(0 13px 19px rgba(1,16,34,.16)); }
.sku-preview > span {
  position: absolute;
  right: 9px;
  bottom: 8px;
  z-index: 4;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(3,26,52,.76);
  color: #dff1ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}
.sku-preview:hover > span,
.sku-preview:focus-visible > span { opacity: 1; transform: translateY(0); }
.sku-copy { padding: 9px 2px 6px; min-height: 74px; }
.sku-name-row { display: flex; align-items: flex-start; gap: 6px; }
.sku h4 {
  flex: 1 1 auto;
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.18;
}
.sku-name-row > span {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(119,184,235,.13);
  color: #9ec8e9;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sku .sku-copy p,
.sku.deal .sku-copy p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 5px 0 0;
  color: #a9d1ef;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
.sku-buy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.sku .price { font-size: 17px; }
.free-price {
  color: #8ff0a4;
  font-size: 16px;
  font-weight: 1000;
  text-transform: uppercase;
}
.free-included {
  display: inline-grid;
  min-width: 86px;
  height: 34px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(119, 226, 151, .45);
  border-radius: 10px;
  background: rgba(47, 143, 70, .36);
  color: #d9ffe3;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sku.face-sku .preview svg {
  width: 136px;
  height: 142px;
  transform: scale(1.08);
  transform-origin: 50% 48%;
}
.sku.face-sku .sku-copy p { -webkit-line-clamp: 1; }
.sku .btn {
  width: auto;
  min-width: 86px;
  height: 34px;
  flex: none;
  margin: 0;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
}
.sku.best,
.sku.best.owned { border-color: #f7d048; box-shadow: inset 0 0 0 2px rgba(247,208,72,.65), 0 8px 20px rgba(0,0,0,.2); }
.sku.owned { border-color: #69dc87; box-shadow: inset 0 0 0 2px rgba(105,220,135,.45); }
.sku.deal { min-height: 220px; padding: 14px; }
.sku.deal .sku-copy { min-height: 78px; }
.deal-mark {
  min-height: 78px;
  border: 1px solid rgba(255,255,255,.09);
  background: radial-gradient(circle at 20% 30%, #165f9f, #062a50 75%);
}
.shop-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-content: center;
  gap: 5px;
  text-align: center;
  color: #d8edff;
}
.shop-empty b { font-size: 18px; }
.shop-empty span { color: #9ec8e9; font-size: 13px; font-weight: 700; }

.sku.aura-sku .preview::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 30deg, rgba(77,229,255,.22), rgba(185,125,255,.2), rgba(255,211,87,.2), rgba(77,229,255,.22));
  filter: blur(9px);
  animation: shopAura 5s linear infinite;
}
@keyframes shopAura { to { transform: rotate(360deg); } }
.sku.aura-sku .preview svg { width: 132px; height: 138px; }

.sku.name-sku { min-height: 220px; }
.sku.name-sku .preview,
.sku.name-sku .name-prev { height: 102px; flex: 0 0 102px; }
.sku.name-sku .name-prev .nm { font-size: 27px; }

.shop-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 36px;
  padding: 8px 4px 0;
  border-top: 1px solid rgba(143,195,235,.16);
}
.shop-foot > p { margin: 0; color: #8fbad9; font-size: 10px; font-weight: 800; text-align: right; }
.shop-restore { position: relative; margin: 0; }
.shop-restore summary {
  color: #d7ecff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.shop-restore[open] {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 12;
  width: min(390px, calc(100% - 40px));
  padding: 12px;
  border: 1px solid #4c8fc8;
  border-radius: 14px;
  background: #062f59;
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
}
.shop-restore-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 9px; }
.shop-restore-row input {
  min-width: 0;
  height: 36px;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.shop-restore-row button {
  border: 0;
  border-radius: 9px;
  padding: 0 13px;
  background: #f7d048;
  color: #3a2500;
  font-weight: 900;
}
.shop-code-out { margin-top: 6px; }

@media (max-width: 700px) {
  .screen.game.on { overflow-y: auto; }
  .game-shell {
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto 76px 400px 210px;
  }
  .players {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }
  .player {
    flex: 0 0 158px;
    min-width: 158px;
    min-height: 76px;
    border-right: 1px solid var(--paper-line);
    border-bottom: 0;
    scroll-snap-align: start;
  }
  .board-modal { overflow-y: auto; }
  .shop-pop { padding: 8px; align-items: stretch; }
  .shop-card {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 12px 12px 9px;
    border-radius: 19px;
  }
  .shop-card .support-x { top: 10px; right: 10px; width: 32px; height: 32px; }
  .shop-head { min-height: 118px; padding-right: 36px; gap: 8px; }
  .shop-card h3 { font-size: 30px; }
  .shop-kicker { font-size: 9px; }
  .shop-lead { display: none; }
  .shop-live { min-width: 174px; width: 174px; height: 118px; padding: 3px 6px 31px 2px; gap: 2px; border-radius: 17px; }
  .shop-live-avatar { width: 78px; height: 78px; flex-basis: 78px; }
  .shop-live b { max-width: 78px; font-size: 11px; line-height: 1.05; white-space: normal; }
  .shop-live span { display: block; max-width: 78px; margin-top: 3px; font-size: 9px; line-height: 1.25; }
  .shop-live-badge { margin-bottom: 4px; padding: 3px 5px; font-size: 8px; letter-spacing: .07em; }
  .shop-live-copy .nm { max-width: 78px; white-space: normal; }
  .shop-preview-actions { left: 6px; right: 6px; bottom: 6px; gap: 4px; }
  .shop-preview-btn { height: 26px; padding: 0 4px; font-size: 9px; border-radius: 8px; }
  .shop-utility { grid-template-columns: 1fr; gap: 7px; margin: 7px 0; }
  .shop-search { max-width: none; }
  .shop-search input { height: 38px; }
  .shop-tabs { gap: 5px; padding-bottom: 6px; }
  .shop-tab { min-height: 32px; padding: 5px 9px; font-size: 11px; }
  .shop-tab b { min-width: 18px; padding: 1px 4px; font-size: 9px; }
  .shop-skus,
  .shop-skus.tab-deals,
  .shop-skus.deals-on,
  .shop-skus.tab-names,
  .shop-skus.names-on {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 5px 3px 13px;
  }
  .sku { min-height: 256px; padding: 6px; border-radius: 14px; }
  .sku .preview { height: 116px; flex-basis: 116px; padding: 6px 3px 1px; }
  .sku .preview svg { width: 89px; height: 99px; }
  .sku.aura-sku .preview svg { width: 96px; height: 103px; }
  .sku-preview > span { display: none; }
  .sku-copy { min-height: 76px; padding: 7px 1px 5px; }
  .sku h4 { font-size: 12px; }
  .sku-name-row > span { display: none; }
  .sku .sku-copy p,
  .sku.deal .sku-copy p { font-size: 9px; -webkit-line-clamp: 3; }
  .sku-buy-row { grid-template-columns: 1fr; gap: 5px; }
  .sku .price { font-size: 14px; }
  .free-included { width: 100%; min-width: 0; height: 31px; font-size: 9px; }
  .sku.face-sku .preview svg { width: 100px; height: 106px; transform: scale(1.08); }
  .sku .btn { width: 100%; min-width: 0; height: 31px; padding: 0 6px; font-size: 11px; }
  .sku .save { font-size: 8px; padding: 2px 5px; }
  .sku.name-sku { min-height: 222px; }
  .sku.name-sku .preview,
  .sku.name-sku .name-prev { height: 88px; flex-basis: 88px; }
  .sku.name-sku .name-prev .nm { font-size: 20px; }
  .sku.deal { min-height: 218px; padding: 9px; }
  .deal-mark { min-height: 66px; margin-bottom: 5px; }
  .shop-foot { min-height: 31px; padding-top: 6px; }
  .shop-foot > p { display: none; }
  .shop-restore[open] { left: 12px; bottom: 10px; width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .sku,
  .sku .preview svg,
  .sku-preview > span,
  .shop-card .support-x { transition: none; }
}

/* ---------- drawing studio ---------- */
.tools {
  display: none;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.45fr);
  align-items: stretch;
  gap: 10px;
  min-height: 142px;
  padding: 9px;
  border-top: 1px solid rgba(45, 67, 88, .13);
  background-color: #f4f6f7;
  background-image: linear-gradient(145deg, rgba(255,255,255,.64), rgba(224,233,240,.35)), var(--paper-photo);
  box-shadow: inset 0 1px rgba(255,255,255,.75);
}
.tools.on { display: grid; }
.tools.locked { opacity: 1; pointer-events: none; }
.tools.locked > * { opacity: .52; filter: grayscale(.18); }
.draw-group,
.draw-workbench {
  min-width: 0;
  border: 1px solid rgba(43, 67, 91, .11);
  border-radius: 13px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 2px 6px rgba(32,54,73,.06), inset 0 1px rgba(255,255,255,.9);
}
.draw-group { padding: 8px 9px; }
.draw-group-head,
.draw-workbench-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.draw-group-head { min-height: 30px; margin-bottom: 5px; }
.draw-group-head > div { display: grid; min-width: 0; }
.draw-group-head strong,
.draw-mini-label {
  color: #213c56;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .07em;
  line-height: 1;
  text-transform: uppercase;
}
.draw-group-head small {
  margin-top: 3px;
  overflow: hidden;
  color: #6b7d8d;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-color {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 3px 7px 3px 4px;
  border: 1px solid #cbd6df;
  border-radius: 999px;
  color: #476278;
  background: #fff;
  cursor: pointer;
}
.custom-color:hover,
.custom-color.on { border-color: #2075d5; box-shadow: 0 0 0 2px rgba(32,117,213,.12); }
.custom-color input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-color span {
  width: 19px;
  height: 19px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(21,49,73,.24);
}
.custom-color em { font-size: 9px; font-style: normal; font-weight: 900; }
.swatches {
  display: grid;
  grid-template-columns: repeat(11, 22px);
  grid-auto-rows: 22px;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px;
  scrollbar-width: thin;
}
.swatch {
  position: relative;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 7px;
  padding: 3px;
  background: transparent;
  box-shadow: none;
}
.swatch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.09);
}
.swatch:hover { background: #e4ebf1; transform: translateY(-1px); }
.swatch.l { background: #dbeaff; box-shadow: 0 0 0 2px #2075d5; }
.swatch.l span { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.16); }
.swatch.secondary::after {
  content: "2";
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  color: #fff;
  background: #172b3f;
  font-size: 8px;
  font-weight: 1000;
}
.draw-workbench {
  position: relative;
  display: grid;
  grid-template-rows: 38px 1fr;
  padding: 7px 8px 8px;
}
.draw-workbench-top { padding: 0 2px 5px; }
.draw-status { display: flex; align-items: center; gap: 7px; min-width: 92px; }
.draw-status > span:last-child { display: grid; min-width: 0; }
.draw-status strong { color: #173650; font-size: 12px; font-weight: 1000; line-height: 1.1; }
.draw-status small { color: #6d7f8e; font-size: 8px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.current-color {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #b9c5cf, 0 2px 4px rgba(20,44,65,.13);
}
.draw-size-group { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.sizes { display: flex; gap: 1px; align-items: center; padding: 0 2px; }
.size-btn {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.size-btn:hover { background: #e8eef3; }
.size-btn.on { background: #d8e9ff; box-shadow: inset 0 0 0 1px #90bff1; }
.size-btn i { max-width: 17px; max-height: 17px; background: #213b53; }
.size-value {
  min-width: 34px;
  color: #50697e;
  font-size: 9px;
  font-weight: 1000;
  text-align: right;
}
.tool-btns {
  display: flex;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px;
  scrollbar-width: thin;
}
.ticon {
  position: relative;
  display: grid;
  grid-template-rows: 26px 12px;
  flex: 1 0 46px;
  place-items: center;
  min-width: 46px;
  width: auto;
  height: 50px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 4px 3px 3px;
  color: #29445b;
  background: transparent;
}
.ticon svg {
  width: 24px;
  height: 24px;
  overflow: visible;
  animation: none;
  transform: none;
}
.ticon svg path,
.ticon svg rect,
.ticon svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-caption { font-size: 8px; font-weight: 1000; line-height: 1; }
.ticon kbd {
  position: absolute;
  top: 3px;
  right: 4px;
  color: #8a9aa7;
  font: 700 7px/1 var(--ui);
}
.ticon:hover { border-color: #ccd9e3; color: #173e61; background: #edf3f7; transform: translateY(-1px); }
.ticon.on {
  border-color: #0d5eae;
  color: #fff;
  background: linear-gradient(160deg, #2d8aeb, #1765bc);
  box-shadow: 0 3px 0 #0f4c8b, 0 5px 9px rgba(25,103,182,.2);
}
.ticon.on svg [stroke] { stroke: currentColor; }
.ticon.on kbd { color: rgba(255,255,255,.72); }
.ticon:disabled { color: #a3afb9; opacity: .45; cursor: not-allowed; }
.tool-divider { width: 1px; flex: 0 0 1px; margin: 6px 1px; background: #d4dde4; }
.action-tool { flex-grow: .8; }
.danger-tool:not(:disabled) { color: #9b3f3f; }
.danger-tool.confirm-clear {
  border-color: #c64747;
  color: #fff;
  background: #d95555;
  box-shadow: 0 3px 0 #9f3232;
  animation: clearWarn .7s ease-in-out infinite alternate;
}
@keyframes clearWarn { to { transform: translateY(-1px) scale(1.02); } }
.draw-shortcuts {
  position: absolute;
  top: 6px;
  left: 50%;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
  color: #8393a0;
  font-size: 8px;
  font-weight: 800;
  pointer-events: none;
}
.draw-shortcuts span { display: flex; align-items: center; gap: 2px; }
.draw-shortcuts kbd {
  min-width: 13px;
  padding: 1px 3px;
  border: 1px solid #ccd5dc;
  border-radius: 3px;
  color: #637787;
  background: #fff;
  box-shadow: 0 1px #bcc7cf;
  font: 800 7px/1 var(--ui);
  text-align: center;
}
#draw[data-enabled="false"] { cursor: default; }
#draw[data-enabled="true"][data-tool="eraser"] { cursor: cell; }
#draw[data-enabled="true"][data-tool="fill"] { cursor: copy; }
#draw[data-enabled="true"] { cursor: crosshair; }

@media (max-width: 1000px) {
  .tools { grid-template-columns: minmax(210px, .68fr) minmax(0, 1.4fr); }
  .draw-group-head small,
  .draw-shortcuts { display: none; }
  .draw-mini-label { font-size: 9px; }
  .swatches { grid-template-columns: repeat(11, 20px); grid-auto-rows: 20px; gap: 3px; }
  .swatch { width: 20px; height: 20px; }
  .ticon { flex-basis: 44px; min-width: 44px; }
}

@media (max-width: 700px) {
  .game-shell { grid-template-rows: auto 76px 500px 210px; }
  .tools {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 0;
    padding: 6px;
  }
  .draw-group { padding: 5px 6px 6px; }
  .draw-group-head { min-height: 25px; margin-bottom: 2px; }
  .draw-group-head strong { font-size: 10px; }
  .custom-color { min-height: 23px; padding: 2px 6px 2px 3px; }
  .custom-color span { width: 17px; height: 17px; }
  .custom-color em { font-size: 8px; }
  .swatches {
    display: flex;
    gap: 3px;
    padding: 2px 2px 4px;
    scroll-snap-type: x proximity;
  }
  .swatch { flex: 0 0 25px; width: 25px; height: 25px; scroll-snap-align: start; }
  .draw-workbench { grid-template-rows: 36px 55px; padding: 5px 5px 6px; }
  .draw-workbench-top { padding-bottom: 3px; }
  .current-color { width: 23px; height: 23px; flex-basis: 23px; }
  .draw-status { min-width: 77px; }
  .draw-status strong { font-size: 11px; }
  .draw-status small { font-size: 9px; }
  .draw-mini-label,
  .size-value { display: none; }
  .size-btn { width: 26px; height: 26px; }
  .tool-btns { scroll-snap-type: x proximity; }
  .ticon { flex: 0 0 50px; min-width: 50px; height: 49px; scroll-snap-align: start; }
  .tool-caption { font-size: 8px; }
}

@media (max-width: 380px) {
  .game-shell { grid-template-rows: auto 76px 480px 210px; }
  .sizes .size-btn:first-child { display: none; }
}

/* Compact game toolbar: fast, familiar, and out of the canvas's way. */
.tools,
.tools.on {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 66px;
  padding: 5px 7px;
}
.draw-group,
.draw-workbench {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.draw-colors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  flex: 0 1 232px;
  min-width: 175px;
  padding: 0;
}
.draw-group-head {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  margin: 0;
}
.draw-group-head > div,
.custom-color em,
.draw-status,
.draw-mini-label,
.size-value,
.draw-shortcuts,
.tool-caption,
.ticon kbd { display: none; }
.custom-color {
  width: 24px;
  min-height: 24px;
  padding: 2px;
  border: 0;
  background: transparent;
}
.custom-color span { width: 18px; height: 18px; }
.swatches {
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: repeat(11, 16px);
  grid-auto-rows: 16px;
  gap: 3px;
  padding: 2px;
}
.swatch { width: 16px; height: 16px; border-radius: 4px; padding: 1px; }
.swatch span { border-radius: 3px; }
.swatch.l { box-shadow: 0 0 0 2px #1765bc; }
.draw-workbench {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  padding: 0;
}
.draw-workbench-top {
  display: block;
  flex: 0 0 auto;
  padding: 0;
}
.draw-size-group {
  flex: 0 0 auto;
  padding: 0 3px;
  border-left: 1px solid #d9e0e6;
  border-right: 1px solid #d9e0e6;
}
.sizes { gap: 0; padding: 0; }
.size-btn { width: 27px; height: 27px; border-radius: 50%; }
.size-btn.on { box-shadow: none; }
.tool-btns {
  flex: 1 1 auto;
  height: 46px;
  gap: 6px;
  padding: 2px;
  overflow: hidden;
}
.ticon {
  grid-template-rows: 1fr;
  flex: 1 1 0;
  min-width: 46px;
  width: auto;
  height: 42px;
  border-radius: 9px;
  padding: 4px;
}
.ticon svg { width: 23px; height: 23px; }
.ticon .tool-art {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 1px 1px rgba(10, 31, 49, .22));
}
.ticon .tool-art-pencil { transform: rotate(-4deg) scale(1.05); }
.ticon .tool-art-eraser { transform: rotate(-3deg); }
.ticon .tool-art-fill { transform: scale(1.08); }
.ticon .tool-art-trash { transform: scale(1.04); }
.ticon.on .tool-art {
  filter: drop-shadow(0 1px 1px rgba(2, 24, 48, .34)) brightness(1.08) saturate(1.06);
}
.ticon .undo-art path { stroke-width: 2.35; }
#undo:not(:disabled) { color: #101820; }
#undo:not(:disabled):hover { color: #071019; }
.ticon.on { box-shadow: 0 2px 0 #0f4c8b, 0 3px 6px rgba(25,103,182,.16); }
.tool-divider { margin: 6px 1px; }

@media (max-width: 700px) {
  .game-shell { grid-template-rows: auto 76px 400px 210px; }
  .tools,
  .tools.on {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 31px 44px;
    gap: 3px;
    min-height: 84px;
    padding: 4px 5px;
  }
  .draw-colors {
    display: flex;
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .draw-group-head { flex: 0 0 25px; order: 2; }
  .swatches {
    display: flex;
    flex: 1 1 auto;
    order: 1;
    gap: 3px;
    padding: 2px 3px 3px;
  }
  .swatch { flex: 0 0 21px; width: 21px; height: 21px; }
  .draw-workbench {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0;
  }
  .draw-workbench-top { display: block; flex: 0 0 auto; padding: 0; }
  .draw-size-group { display: flex; padding: 0 3px 0 0; border-left: 0; }
  .size-btn { width: 25px; height: 25px; }
  .tool-btns { height: 42px; }
  .ticon { flex: 1 1 0; min-width: 34px; width: auto; height: 38px; padding: 3px; }
  .ticon .tool-art { width: 31px; height: 31px; }
}

@media (max-width: 380px) {
  .game-shell { grid-template-rows: auto 76px 390px 210px; }
}

/* ---------- final visual polish ---------- */
:where(button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(255, 210, 54, .95);
  outline-offset: 2px;
}
button:disabled { cursor: default; }
input, select, textarea { transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
input:focus, select:focus, textarea:focus {
  border-color: #2c83d0;
  box-shadow: 0 0 0 3px rgba(44, 131, 208, .13);
}
.players, .chat-log, .shop-skus, .shop-tabs, .swatches, .tool-btns, .modal-inner {
  scrollbar-color: rgba(83, 140, 187, .72) rgba(9, 49, 87, .08);
  scrollbar-width: thin;
}

/* Drawing controls only belong to the current drawer. */
.tools { display: none; }
.tools.on { display: flex; }
.board-wrap:not(.drawing-enabled) .board-stage { flex-basis: 100%; }

/* Store previews use the same real avatar renderer as the game. */
.deal-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
  padding: 8px 8px 8px 12px;
}
.deal-mark::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -42px;
  width: 130px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 170, 255, .24), transparent 68%);
  pointer-events: none;
}
.deal-mark.is-best::after { background: radial-gradient(circle, rgba(255, 210, 72, .22), transparent 68%); }
.deal-mark .deal-count {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3px;
  flex: 0 0 auto;
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}
.deal-mark .deal-count b { font-size: 28px; line-height: .9; }
.deal-mark .deal-count em {
  color: #a9cce9;
  font-size: 9px;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.deal-mark.is-best .deal-count em { color: #f7d048; }
.deal-mark .deal-lineup {
  position: relative;
  z-index: 2;
  display: block;
  flex: 0 0 98px;
  width: 98px;
  height: 62px;
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}
.deal-avatar {
  position: absolute;
  bottom: -4px;
  display: block;
  width: 54px;
  height: 60px;
  filter: drop-shadow(0 8px 13px rgba(1, 16, 34, .12));
}
.deal-avatar svg { width: 100%; height: 100%; overflow: visible; }
.deal-avatar-1 { left: 0; transform: rotate(-5deg) scale(.88); }
.deal-avatar-2 { left: 25px; z-index: 2; }
.deal-avatar-3 { left: 52px; transform: rotate(5deg) scale(.88); }

.sku.name-sku .name-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 6px;
}
.name-avatar {
  display: block;
  flex: 0 0 62px;
  width: 62px;
  height: 70px;
  filter: drop-shadow(0 9px 14px rgba(1, 16, 34, .13));
}
.sku.name-sku .name-prev .name-avatar svg { width: 100%; height: 100%; }
.name-plate {
  display: grid;
  min-width: 0;
  gap: 5px;
  text-align: left;
}
.sku.name-sku .name-prev .name-plate .nm {
  max-width: 92px;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.name-plate small {
  color: #8fbad9;
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.settings-pop {
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(4, 28, 56, .28), inset 0 1px rgba(255,255,255,.8);
}
.settings-pop .btn { margin-top: 10px; }
.game-shell.waiting-room .board-modal { padding: 12px; }
.game-shell.waiting-room .modal-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.game-shell.waiting-room .settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  width: min(680px, 100%);
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 4px 6px;
}
.game-shell.waiting-room .settings h2,
.game-shell.waiting-room .custom-box,
.game-shell.waiting-room .set-actions { grid-column: 1 / -1; }
.game-shell.waiting-room .settings h2 { margin: 0 0 2px; }
.game-shell.waiting-room .set-row { margin-bottom: 0; }

@media (max-width: 700px) {
  .tools { display: none; }
  .tools.on { display: grid; }
  .hud {
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-rows: 62px auto;
    gap: 0 5px;
    min-height: 102px;
    padding: 5px 8px 7px;
  }
  .hud-left { grid-column: 1; grid-row: 1; min-width: 0; gap: 6px; }
  .hud-right { grid-column: 2; grid-row: 1; }
  .hud-mid { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .clock { width: 60px; height: 62px; flex-basis: 60px; }
  .clock .t { font-size: 17px; }
  .round-label { top: 0; font-size: 15px; line-height: 1.1; }
  .gear { width: 38px; height: 38px; }
  .guess-kicker { font-size: 9px; line-height: 1; }
  .word-row { min-height: 22px; gap: 4px; overflow: hidden; }
  .blank { font-size: clamp(15px, 4.4vw, 19px); letter-spacing: 1px; white-space: nowrap; }
  .word-len { flex: 0 0 auto; font-size: 10px; }
  .word-draw { max-width: 100%; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
  .game-shell.waiting-room { grid-template-rows: auto 76px 485px 128px; }
  .game-shell.waiting-room .board-modal {
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    padding: 7px;
  }
  .game-shell.waiting-room .modal-inner {
    display: block;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    text-align: left;
  }
  .game-shell.waiting-room .settings { display: block; width: 100%; padding: 0 3px 6px; }
  .game-shell.waiting-room .settings h2 { margin: 1px 0 7px; font-size: 21px; }
  .game-shell.waiting-room .set-row {
    grid-template-columns: 36px minmax(72px, 1fr) minmax(128px, 156px);
    gap: 7px;
    min-height: 42px;
    margin-bottom: 4px;
    padding: 3px 6px;
  }
  .game-shell.waiting-room .set-ico { width: 34px; height: 34px; }
  .game-shell.waiting-room .set-ico svg { width: 34px; height: 34px; }
  .game-shell.waiting-room .set-lab { font-size: 13px; line-height: 1.1; }
  .game-shell.waiting-room .set-row select { width: 100%; height: 34px; min-width: 0; }
  .game-shell.waiting-room .custom-box { margin-top: 5px; }
  .game-shell.waiting-room .custom-box textarea { min-height: 48px; max-height: 62px; resize: none; }
  .game-shell.waiting-room .custom-box label { margin-top: 4px; }
  .game-shell.waiting-room .set-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 7px;
    padding: 6px 0 2px;
    background: linear-gradient(180deg, rgba(247,247,246,0), #f7f7f6 24%);
  }
  .game-shell.waiting-room .set-actions .btn { height: 40px; }
  .deal-mark .deal-lineup { flex-basis: 76px; width: 76px; height: 55px; }
  .deal-avatar { width: 45px; height: 52px; }
  .deal-avatar-2 { left: 19px; }
  .deal-avatar-3 { left: 38px; }
  .name-avatar { flex-basis: 47px; width: 47px; height: 55px; }
  .sku.name-sku .name-prev { gap: 4px; padding: 3px; }
  .sku.name-sku { min-height: 190px; }
  .sku.name-sku .sku-copy { min-height: 34px; }
  .sku.name-sku .name-prev .name-plate .nm { max-width: 75px; font-size: 16px; }
  .name-plate small { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Public waiting room: one calm, readable invitation card. */
.game-shell.waiting-room .modal-inner:has(.waiting-card) {
  display: grid;
  place-items: center;
  overflow: hidden;
}
.waiting-card {
  width: min(500px, 100%);
  padding: 28px 30px 26px;
  border: 1px solid rgba(50, 118, 181, .18);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255,255,255,.9), rgba(232,244,255,.72));
  box-shadow: 0 18px 42px rgba(19, 65, 106, .13), inset 0 1px rgba(255,255,255,.9);
  text-align: center;
}
.waiting-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #2a77b8;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.waiting-card h2 {
  margin: 0;
  color: #133d70;
  font-size: clamp(34px, 4vw, 45px);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.waiting-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  margin-top: 16px;
  padding: 6px 12px;
  border: 1px solid rgba(42, 119, 184, .18);
  border-radius: 999px;
  background: rgba(224, 240, 255, .8);
  color: #365a79;
  font-size: 12px;
  font-weight: 800;
}
.waiting-meta > span {
  color: #64839d;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.waiting-meta b {
  color: #153e6a;
  font-size: 14px;
  letter-spacing: .08em;
}
.waiting-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8aacca;
}
.waiting-meta strong { font-weight: 900; }
.waiting-copy {
  max-width: 410px;
  margin: 15px auto 0;
  color: #49647b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}
.waiting-actions { display: flex; justify-content: center; margin-top: 19px; }
.public-waiting {
  width: min(480px, 100%);
  padding: 34px 30px 32px;
}
.public-waiting .waiting-eyebrow { margin-bottom: 9px; }
.public-waiting .waiting-actions { margin-top: 25px; }
.waiting-card .waiting-invite {
  width: min(310px, 100%);
  min-width: 240px;
  height: 52px;
  margin: 0;
  padding: 0 26px;
  border: 2px solid #fff3a3;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 1000;
  white-space: nowrap;
  box-shadow: 0 5px 0 #b57b00, 0 11px 22px rgba(111, 73, 0, .18), inset 0 1px rgba(255,255,255,.62);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease, background .18s ease;
}
.waiting-card .waiting-invite:hover { transform: translateY(-1px); filter: brightness(1.04); }
.waiting-card .waiting-invite:active { transform: translateY(2px); box-shadow: 0 2px 0 #b57b00; }
.waiting-card .waiting-invite:focus-visible { outline: 4px solid rgba(42,119,184,.28); outline-offset: 4px; }
.waiting-card .waiting-invite.is-success,
.waiting-card .waiting-invite.is-success:disabled {
  border-color: #d7ffd9;
  background: linear-gradient(180deg, #64df7c, #28ad51);
  color: #073c18;
  opacity: 1;
  box-shadow: 0 5px 0 #147b35, 0 11px 22px rgba(20,123,53,.2), inset 0 1px rgba(255,255,255,.58);
  transform: none;
}

@media (max-width: 700px) {
  .waiting-card { width: min(330px, 100%); padding: 24px 18px 22px; border-radius: 20px; }
  .waiting-eyebrow { margin-bottom: 6px; font-size: 9px; }
  .waiting-card h2 { font-size: clamp(31px, 10vw, 39px); line-height: 1.04; }
  .waiting-meta { gap: 6px; margin-top: 14px; padding: 6px 10px; font-size: 11px; }
  .waiting-meta b { font-size: 13px; }
  .waiting-copy { margin-top: 13px; font-size: 13px; line-height: 1.42; }
  .waiting-actions { margin-top: 16px; }
  .public-waiting { padding: 28px 18px 26px; }
  .public-waiting .waiting-actions { margin-top: 21px; }
  .waiting-card .waiting-invite { width: 100%; min-width: 0; max-width: 280px; height: 49px; padding-inline: 16px; font-size: 14px; }
}

/* Private room settings: tactile paper cards throughout. */
.game-shell.waiting-room .modal-inner:has(.settings) {
  width: min(750px, 100%);
  overflow: hidden;
}
.game-shell.waiting-room .settings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  width: 100%;
  max-height: 100%;
  padding: 4px 7px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
.settings-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 3px 2px;
}
.settings-heading { min-width: 0; }
.settings-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #3277b4;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.game-shell.waiting-room .settings-head h2 {
  margin: 0;
  color: #153e70;
  font-size: clamp(27px, 3.2vw, 35px);
  line-height: 1;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.settings-head h2 strong {
  color: #0e4d8c;
  letter-spacing: .055em;
}
.settings-head p {
  max-width: 310px;
  margin: 0 0 2px;
  color: #587086;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 11px;
}
.game-shell.waiting-room .set-row {
  display: grid;
  grid-template-columns: 46px minmax(86px, 1fr) minmax(96px, 122px);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(36, 91, 143, .17);
  border-radius: 15px;
  background-color: #fbfbfa;
  background-image: var(--paper-photo);
  background-size: var(--paper-size);
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 3px 8px rgba(30, 71, 109, .07), inset 0 1px rgba(255,255,255,.86);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.game-shell.waiting-room .set-row:hover {
  border-color: rgba(31, 111, 179, .3);
  box-shadow: 0 5px 13px rgba(30, 71, 109, .1), inset 0 1px rgba(255,255,255,.9);
  transform: translateY(-1px);
}
.game-shell.waiting-room .set-row-hints { grid-column: 1 / -1; }
.game-shell.waiting-room .set-ico {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 90, 141, .12);
  border-radius: 13px;
  background-color: rgba(255,255,255,.72);
  background-image: var(--paper-photo);
  background-size: cover;
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 2px 5px rgba(25,62,97,.07);
}
.game-shell.waiting-room .set-ico svg { width: 34px; height: 34px; }
.set-copy { min-width: 0; }
.game-shell.waiting-room .set-lab {
  color: #172f48;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.05;
}
.set-copy small {
  display: block;
  margin-top: 3px;
  color: #748699;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .035em;
  line-height: 1;
  text-transform: uppercase;
}
.game-shell.waiting-room .set-row select {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0 30px 0 11px;
  border: 1px solid rgba(35, 83, 130, .25);
  border-radius: 10px;
  outline: none;
  background-color: #fff;
  background-image: var(--paper-photo);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #152b40;
  font-size: 13px;
  font-weight: 850;
  box-shadow: inset 0 1px 2px rgba(28, 58, 87, .04), 0 1px rgba(255,255,255,.8);
}
.game-shell.waiting-room .set-row select:focus {
  border-color: #2f8bd1;
  box-shadow: 0 0 0 3px rgba(47, 139, 209, .15), inset 0 1px rgba(255,255,255,.9);
}
.game-shell.waiting-room .set-row option { background: #fff; color: #152b40; }
.game-shell.waiting-room .custom-box {
  margin: 0;
  padding: 11px 12px 10px;
  border: 1px solid rgba(36, 91, 143, .17);
  border-radius: 15px;
  background-color: #fbfbfa;
  background-image: var(--paper-photo);
  background-size: var(--paper-size);
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 3px 8px rgba(30, 71, 109, .07), inset 0 1px rgba(255,255,255,.86);
}
.custom-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.custom-title strong { color: #172f48; font-size: 14px; font-weight: 950; }
.custom-title span {
  padding: 3px 7px;
  border: 1px solid rgba(42,119,184,.16);
  border-radius: 999px;
  background-color: rgba(231,243,253,.74);
  background-image: var(--paper-photo);
  background-size: cover;
  color: #3976a9;
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.game-shell.waiting-room .custom-box textarea {
  display: block;
  width: 100%;
  min-height: 62px;
  max-height: 96px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid rgba(35, 83, 130, .25);
  border-radius: 10px;
  outline: none;
  background-color: #fff;
  background-image: var(--paper-photo);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #22384d;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: inset 0 1px 3px rgba(28,58,87,.04);
}
.game-shell.waiting-room .custom-box textarea:focus {
  border-color: #2f8bd1;
  box-shadow: 0 0 0 3px rgba(47,139,209,.15), inset 0 1px rgba(255,255,255,.9);
}
.custom-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.game-shell.waiting-room .custom-help {
  margin: 0;
  color: #718397;
  font-size: 10px;
  font-weight: 750;
}
.game-shell.waiting-room .custom-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 31px;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid rgba(35,83,130,.16);
  border-radius: 9px;
  background-color: rgba(255,255,255,.72);
  background-image: var(--paper-photo);
  background-size: cover;
  color: #334b61;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.custom-toggle input {
  appearance: none;
  width: 17px;
  height: 17px;
  margin: 0;
  border: 1px solid rgba(35,83,130,.34);
  border-radius: 5px;
  background-color: #fff;
  background-image: var(--paper-photo);
  background-size: cover;
  display: grid;
  place-items: center;
}
.custom-toggle input::after {
  content: "";
  width: 8px;
  height: 4px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg);
}
.custom-toggle input:checked { border-color: #2a8a48; background: #49b866; }
.custom-toggle input:checked::after { opacity: 1; }
.custom-toggle input:focus-visible { outline: 3px solid rgba(47,139,209,.2); outline-offset: 1px; }
.game-shell.waiting-room .set-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 1px 1px 2px;
}
.game-shell.waiting-room .set-actions .btn {
  height: 45px;
  margin: 0;
  padding: 0 22px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 950;
}
.game-shell.waiting-room .set-actions .btn-start {
  min-width: 142px;
  font-size: 18px !important;
  box-shadow: 0 5px 0 var(--play-d), 0 9px 18px rgba(43,125,57,.16), inset 0 1px rgba(255,255,255,.42);
}
.game-shell.waiting-room .set-actions .btn-invite {
  min-width: 132px;
  box-shadow: 0 5px 0 #b57b00, 0 9px 18px rgba(111,73,0,.14), inset 0 1px rgba(255,255,255,.42);
}
.game-shell.waiting-room .set-actions .btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.game-shell.waiting-room .set-actions .btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.22); }

/* Other waiting cards use the supplied paper too. */
.waiting-card,
.waiting-meta {
  background-color: #fbfbfa;
  background-image: var(--paper-photo);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 700px) {
  .game-shell.waiting-room .modal-inner:has(.settings) { overflow-y: auto; }
  .game-shell.waiting-room .settings {
    display: grid;
    gap: 8px;
    padding: 2px 3px 8px;
    overflow: visible;
  }
  .settings-head { align-items: flex-start; gap: 10px; padding: 0 2px 2px; }
  .game-shell.waiting-room .settings-head h2 { margin: 0; font-size: 24px; }
  .settings-eyebrow { font-size: 8px; }
  .settings-head p { max-width: 170px; margin: 0; font-size: 10px; line-height: 1.25; }
  .settings-grid { gap: 7px; }
  .game-shell.waiting-room .set-row {
    grid-template-columns: 39px minmax(72px, 1fr) minmax(82px, 106px);
    gap: 7px;
    min-height: 51px;
    padding: 5px 7px;
    border-radius: 12px;
  }
  .game-shell.waiting-room .set-ico { width: 36px; height: 36px; border-radius: 11px; }
  .game-shell.waiting-room .set-ico svg { width: 30px; height: 30px; }
  .game-shell.waiting-room .set-lab { font-size: 12px; }
  .set-copy small { margin-top: 2px; font-size: 9px; }
  .game-shell.waiting-room .set-row select { height: 35px; padding-left: 9px; font-size: 11px; }
  .game-shell.waiting-room .custom-box { margin: 0; padding: 9px; border-radius: 12px; }
  .custom-title { margin-bottom: 5px; }
  .custom-title strong { font-size: 12px; }
  .game-shell.waiting-room .custom-box textarea { min-height: 50px; max-height: 68px; resize: none; }
  .custom-options { align-items: flex-start; gap: 7px; margin-top: 6px; }
  .game-shell.waiting-room .custom-help { font-size: 8px; line-height: 1.25; }
  .game-shell.waiting-room .custom-toggle { min-height: 29px; padding: 4px 7px; font-size: 9px; }
  .game-shell.waiting-room .set-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    gap: 8px;
    margin: 0;
    padding: 8px 1px 3px;
    background-color: var(--paper);
    background-image: linear-gradient(180deg, rgba(247,247,246,0), rgba(247,247,246,.96) 26%), var(--paper-photo);
    background-size: auto, cover;
  }
  .game-shell.waiting-room .set-actions .btn { height: 41px; padding: 0 14px; font-size: 12px; }
  .game-shell.waiting-room .set-actions .btn-start { min-width: 124px; font-size: 16px !important; }
  .game-shell.waiting-room .set-actions .btn-invite { min-width: 116px; }
}

@media (max-width: 560px) {
  .settings-head { display: block; }
  .settings-head p { max-width: none; margin-top: 5px; text-align: left; }
  .settings-grid { grid-template-columns: 1fr; }
  .game-shell.waiting-room .set-row-hints { grid-column: auto; }
  .custom-options { display: grid; grid-template-columns: 1fr; }
  .game-shell.waiting-room .custom-toggle { width: max-content; }
  .game-shell.waiting-room .set-actions { justify-content: stretch; }
  .game-shell.waiting-room .set-actions .btn { flex: 1 1 0; min-width: 0; }
}

/* Compact palette: every colour fits cleanly without a visible scrollbar. */
.tools .draw-colors { flex-basis: 242px; }
.tools .swatches {
  grid-template-columns: repeat(11, minmax(0, 1fr));
  grid-auto-rows: 17px;
  gap: 2px;
  width: 100%;
  padding: 2px 3px;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tools .swatches::-webkit-scrollbar { display: none; width: 0; height: 0; }
.tools .swatch {
  width: 100%;
  min-width: 0;
  height: 17px;
  border-radius: 4px;
  padding: 1px;
}
.tools .swatch:hover { transform: none; }
.tools .swatch.l {
  background: #dcecff;
  box-shadow: 0 0 0 2px #1268bd, inset 0 0 0 1px rgba(255,255,255,.84);
  z-index: 1;
}
.tools .custom-color {
  width: 25px;
  min-height: 25px;
}
.tools .custom-color span { width: 19px; height: 19px; }

@media (max-width: 700px) {
  .tools .draw-colors { flex-basis: auto; }
  .tools .swatches {
    display: flex;
    gap: 3px;
    padding: 2px 3px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    touch-action: pan-x;
  }
  .tools .swatch { flex: 0 0 21px; width: 21px; height: 21px; }
}

/* Final touch pass: reachable layouts and dependable mobile hit areas. */
@media (max-height: 880px), (max-width: 700px) {
  .screen.lobby.on { justify-content: flex-start; }
}

@media (pointer: coarse), (max-width: 700px) {
  .look-tab,
  .shop-tab,
  .shop-preview-btn,
  .shop-card .support-x,
  .account-signout,
  .account-delete,
  .waiting-invite,
  .game-top button,
  .game-top a,
  .gear,
  .vote { min-width: 44px; min-height: 44px; }
  .look-chev,
  .dice,
  .shop-search input,
  .join-row input,
  .join-row button,
  .login-row input,
  .account-submit,
  .look-off,
  .look-unlock,
  .look-reset,
  .shop-buy,
  .shop-code-row input,
  .shop-code-row button,
  .set-row select,
  .chat-in,
  .custom-toggle { min-height: 44px; }
  .dice { min-width: 44px; }
  .tool { min-width: 44px; min-height: 44px; }
}

@media (max-width: 700px) {
  .screen.lobby { scrollbar-width: none; }
  .screen.lobby::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .tools .swatch { flex-basis: 28px; width: 28px; height: 28px; }
}

/* ---------- premium visual system ---------- */
:root {
  --bg: #3c8bd4;
  --panel: #105c9f;
  --panel-2: #073d72;
  --panel-3: #1972ba;
  --play: #61dc6c;
  --play-d: #2eaa45;
  --priv: #53b8f3;
  --priv-d: #247ec5;
  --paper: #f8f8f5;
  --paper-deep: #e9eef1;
  --premium-navy: #052d58;
  --premium-blue: #0d68b5;
  --premium-sky: #6cc7ff;
  --premium-gold: #ffc83d;
  --premium-gold-deep: #d99408;
  --premium-green: #55d96a;
  --premium-line: rgba(125, 194, 244, .34);
  --premium-shadow: 0 18px 45px rgba(2, 30, 63, .3);
}

html { background: #2f78bd; }
body {
  color: #17283a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: #3c8bd4;
  background-image:
    radial-gradient(ellipse at 50% -18%, rgba(178, 226, 255, .46) 0%, rgba(91, 171, 231, .12) 42%, transparent 67%),
    linear-gradient(180deg, rgba(16, 111, 191, .04), rgba(2, 48, 101, .22)),
    url("../assets/doodles-clean.webp?v=3");
  background-size: 100% 100%, 100% 100%, 470px 470px;
  background-position: center, center, 12px 8px;
  background-repeat: no-repeat, no-repeat, repeat;
  background-attachment: fixed, fixed, fixed;
  box-shadow: inset 0 0 110px rgba(3, 48, 96, .16);
}
::selection { color: #082b4f; background: #ffe68a; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(255, 219, 91, .95);
  outline-offset: 3px;
}

.screen.lobby.on {
  padding-top: clamp(8px, 1.6vh, 18px);
  padding-bottom: clamp(12px, 2vh, 22px);
}
.brand {
  filter: drop-shadow(0 7px 12px rgba(3, 35, 74, .28));
}
.brand .ch {
  paint-order: stroke fill;
  -webkit-text-stroke-color: var(--brand-outline);
}
.brand .pencil { filter: drop-shadow(0 5px 5px rgba(2, 30, 61, .28)); }
.tagline {
  margin-top: 5px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(13px, 1.8vh, 17px);
  font-weight: 600;
  letter-spacing: .055em;
  text-shadow: 0 2px 0 #164f89, 0 5px 12px rgba(3, 35, 73, .24);
}
.mascots {
  gap: clamp(2px, .35vw, 5px);
  margin-top: clamp(6px, 1.15vh, 12px);
}
.mascot {
  filter: drop-shadow(0 5px 0 rgba(3, 40, 79, .2)) drop-shadow(0 9px 9px rgba(3, 37, 74, .12));
  transition: filter .18s ease, transform .18s ease;
}
.mascot:hover { filter: drop-shadow(0 7px 0 rgba(3, 40, 79, .18)) brightness(1.05); }

.login {
  width: min(468px, 100%);
  padding: clamp(10px, 1.4vh, 14px);
  border: 1px solid rgba(184, 226, 255, .5);
  border-radius: 23px;
  outline: 3px solid rgba(4, 37, 73, .9);
  background:
    radial-gradient(circle at 50% -18%, rgba(92, 181, 247, .38), transparent 39%),
    linear-gradient(164deg, #176db8 0%, #0d5597 44%, #073b70 100%);
  box-shadow:
    0 7px 0 #052c56,
    0 22px 55px rgba(2, 28, 59, .34),
    inset 0 1px 0 rgba(255, 255, 255, .25),
    inset 0 0 0 1px rgba(7, 50, 91, .2);
}
.login-field { gap: 5px; }
.login-field > span {
  color: #d9efff;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-shadow: 0 1px rgba(0,0,0,.2);
}
.login input,
.join-row input {
  border: 1px solid rgba(38, 89, 130, .16);
  color: #18364e;
  caret-color: #0e6fc1;
  background-color: #f7f7f2;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px rgba(39, 76, 107, .08), 0 3px 0 rgba(2, 31, 61, .16), 0 7px 16px rgba(2, 27, 54, .08);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.login input:hover,
.join-row input:hover { border-color: rgba(38, 121, 184, .3); }
.login input:focus,
.join-row input:focus {
  border-color: #55b7f3;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 3px rgba(86, 186, 244, .25), 0 4px 0 rgba(2, 31, 61, .13);
}
.login-note {
  margin-top: 1px;
  color: #c2e1f7;
  font-size: 9px;
  font-weight: 800;
}
.account-session {
  border-color: rgba(166, 239, 190, .45);
  background: linear-gradient(145deg, rgba(5, 62, 87, .74), rgba(4, 42, 76, .72));
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 4px 12px rgba(2,30,58,.13);
}
.account-session-mark {
  background: linear-gradient(180deg, #69e47f, #25aa4c);
  box-shadow: inset 0 1px rgba(255,255,255,.45), inset 0 -3px rgba(0,0,0,.15), 0 3px 8px rgba(4,70,34,.25);
}

.avatar-stage {
  border: 1px solid rgba(117, 194, 246, .32);
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 42%, rgba(53, 143, 214, .66) 0%, rgba(9, 60, 108, .38) 36%, transparent 59%),
    linear-gradient(165deg, #0c4e8b 0%, #062d58 62%, #041f40 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -22px 38px rgba(1,16,35,.18),
    0 7px 18px rgba(2,27,54,.18);
}
.avatar-stage::before {
  content: "";
  position: absolute;
  inset: 10px 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(99, 190, 251, .14), transparent 68%);
  filter: blur(5px);
  pointer-events: none;
}
.look-chev {
  display: grid;
  place-items: center;
  border: 1px solid rgba(132, 205, 255, .12);
  border-radius: 13px;
  background: rgba(5, 40, 76, .26);
  color: #8ed5ff;
  font-size: 31px;
  text-shadow: 0 2px #052442;
  box-shadow: inset 0 1px rgba(255,255,255,.05);
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.look-chev:hover { color: #fff; background: rgba(21, 103, 167, .5); }
.dice svg { filter: drop-shadow(0 3px 0 #041f3d) drop-shadow(0 5px 6px rgba(1,18,38,.25)); }

.look-rack { margin-bottom: 9px; }
.look-tabs { gap: 5px; margin-bottom: 8px; }
.look-tab {
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid rgba(115, 189, 240, .2);
  background: linear-gradient(180deg, rgba(9, 70, 125, .96), rgba(5, 47, 91, .96));
  color: #dbf0ff;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 2px 0 rgba(2,27,54,.22);
  transition: transform .14s ease, border-color .14s ease, filter .14s ease;
}
.look-tab:hover { transform: translateY(-1px); border-color: rgba(151, 218, 255, .5); filter: brightness(1.08); }
.look-tab.on {
  border-color: #fff09a;
  background: linear-gradient(180deg, #ffe878 0%, #f7c531 56%, #e8a916 100%);
  color: #4a3000;
  box-shadow: inset 0 1px rgba(255,255,255,.62), inset 0 -2px rgba(148,92,0,.16), 0 3px 0 #a86d07, 0 5px 10px rgba(3,31,61,.2);
}
.look-now {
  min-height: 39px;
  padding: 1px 2px;
}
#look-label { font-family: var(--display); font-size: 13px; font-weight: 600; }
.look-off,
.look-unlock,
.look-reset {
  border: 1px solid rgba(121, 193, 242, .16);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 2px 0 rgba(2,26,52,.2);
  transition: transform .14s ease, filter .14s ease, border-color .14s ease;
}
.look-off:hover:not(:disabled),
.look-reset:hover { transform: translateY(-1px); border-color: rgba(154, 215, 255, .42); filter: brightness(1.08); }
.look-reset {
  min-height: 30px;
  background: linear-gradient(180deg, #0a4d8b, #073768);
  color: #dff2ff;
}
.look-chip {
  border-color: rgba(81, 169, 234, .55);
  background: linear-gradient(180deg, #0b487f, #062e59);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 2px 5px rgba(2,26,52,.14);
}

.btn {
  border: 1px solid rgba(255,255,255,.26);
  font-family: var(--display);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48), inset 0 -4px 0 rgba(0,0,0,.16), 0 4px 0 rgba(3,37,68,.33), 0 9px 18px rgba(2,27,55,.15);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.055) saturate(1.04); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px rgba(255,255,255,.3), inset 0 -2px rgba(0,0,0,.15), 0 1px 0 rgba(3,37,68,.3); }
#btn-play {
  border-color: #b5f5b8;
  background: linear-gradient(180deg, #7be982 0%, #51d564 48%, #2cab45 100%);
  text-shadow: 0 2px 0 rgba(0,79,24,.28), 0 5px 10px rgba(1,61,22,.14);
}
#btn-shop,
.sku .btn-shop {
  border-color: #fff0a3;
  background: linear-gradient(180deg, #ffe77a 0%, #ffc936 52%, #e8a817 100%);
  color: #4c3100;
  text-shadow: 0 1px rgba(255,255,255,.5);
}
#btn-private,
.btn-join {
  border-color: #b3e3ff;
  background: linear-gradient(180deg, #67c5f7 0%, #3ba7e8 48%, #267fc4 100%);
  text-shadow: 0 2px rgba(4,65,111,.32);
}
.join-row { gap: 9px; margin-top: 8px; }

.shop-pop {
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 142, 222, .25), transparent 46%),
    rgba(1, 13, 29, .84);
  backdrop-filter: blur(12px) saturate(1.08);
}
.shop-card {
  border-color: rgba(172, 222, 255, .44);
  outline-color: rgba(3, 35, 69, .96);
  background:
    radial-gradient(circle at 77% -8%, rgba(83, 181, 247, .5), transparent 31%),
    radial-gradient(circle at 11% 10%, rgba(55, 143, 216, .2), transparent 31%),
    linear-gradient(155deg, #196eb9 0%, #0c528f 47%, #063561 100%);
  box-shadow: 0 8px 0 rgba(1,23,46,.88), 0 34px 90px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.2), inset 0 0 0 1px rgba(4,45,82,.22);
}
.shop-card .support-x {
  border: 1px solid rgba(148, 211, 251, .27);
  background: linear-gradient(180deg, rgba(16,83,137,.88), rgba(4,45,84,.9));
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 3px 0 rgba(2,25,48,.34), 0 6px 12px rgba(1,20,42,.2);
}
.shop-kicker {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .13em;
  text-shadow: 0 2px rgba(4,47,85,.34);
}
.shop-card h3 {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 3px 0 rgba(3, 42, 78, .5), 0 10px 24px rgba(1,24,49,.18);
}
.shop-lead { color: #d7edff; }
.shop-live {
  border-color: rgba(167, 221, 255, .34);
  background:
    radial-gradient(circle at 27% 35%, rgba(64, 172, 239, .36), transparent 47%),
    linear-gradient(150deg, rgba(8, 67, 119, .97), rgba(3, 33, 65, .96));
  box-shadow: inset 0 1px rgba(255,255,255,.14), inset 0 -20px 34px rgba(1,19,40,.13), 0 10px 26px rgba(1,25,52,.24);
}
.shop-live-badge {
  border: 1px solid rgba(135, 207, 251, .18);
  background: rgba(91, 185, 244, .14);
}
.shop-preview-btn {
  background: linear-gradient(180deg, rgba(35, 107, 161, .36), rgba(10, 56, 101, .38));
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 2px rgba(1,24,49,.2);
}
.shop-search input {
  border-color: rgba(255,255,255,.72);
  box-shadow: inset 0 1px #fff, inset 0 -1px rgba(44,84,113,.08), 0 4px 0 rgba(2,30,59,.22), 0 9px 18px rgba(1,26,51,.1);
}
.shop-search input:focus { border-color: #ffd95c; box-shadow: inset 0 1px #fff, 0 0 0 4px rgba(255, 211, 73, .2), 0 4px 0 rgba(2,30,59,.18); }
.shop-tab {
  border-color: rgba(132, 200, 244, .3);
  background: linear-gradient(180deg, rgba(10, 75, 128, .95), rgba(4, 48, 91, .96));
  box-shadow: inset 0 1px rgba(255,255,255,.08), inset 0 -2px rgba(0,0,0,.14), 0 3px 6px rgba(1,24,48,.12);
}
.shop-tab:hover { border-color: rgba(161, 219, 255, .55); background: linear-gradient(180deg, #1268a9, #074777); }
.shop-tab.on {
  border-color: #fff0a0;
  background: linear-gradient(180deg, #ffe77c, #f8c634 56%, #e5a714);
  box-shadow: inset 0 1px rgba(255,255,255,.65), inset 0 -2px rgba(139,87,0,.16), 0 3px 0 rgba(138,88,0,.5), 0 6px 12px rgba(1,24,49,.16);
}
.sku {
  border-color: rgba(116, 193, 244, .43);
  background:
    linear-gradient(152deg, rgba(26, 111, 180, .58), rgba(5, 50, 92, .88)),
    #084377;
  box-shadow: inset 0 1px rgba(255,255,255,.13), inset 0 -18px 28px rgba(1,25,50,.07), 0 9px 22px rgba(1,20,42,.2);
}
.sku:hover,
.sku:focus-within {
  border-color: rgba(165, 221, 255, .88);
  box-shadow: inset 0 1px rgba(255,255,255,.18), 0 16px 31px rgba(1,18,38,.32);
}
.sku .preview {
  border-color: rgba(146, 208, 248, .23);
  background:
    radial-gradient(circle at 50% 38%, rgba(65, 160, 225, .68) 0%, rgba(8, 58, 105, .78) 43%, rgba(3, 34, 68, .98) 75%),
    #052b55;
  box-shadow: inset 0 1px rgba(255,255,255,.1), inset 0 -22px 31px rgba(1,18,38,.23), 0 5px 13px rgba(1,21,43,.13);
}
.sku h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.sku .sku-copy p { color: #bfdef5; }
.sku .price { color: #ffd84f; text-shadow: 0 2px rgba(85,52,0,.38); }
.sku-name-row > span { border: 1px solid rgba(124, 194, 239, .14); background: rgba(104, 180, 232, .12); }
.sku.is-previewing {
  border-color: #ffdb56;
  box-shadow: inset 0 0 0 2px rgba(255,224,105,.42), 0 15px 30px rgba(1,18,39,.31);
}
.shop-foot { border-top-color: rgba(157, 207, 241, .2); }

@media (min-width: 701px) {
  .game-shell {
    grid-template-columns: 160px minmax(0, 1fr) 232px;
    gap: 4px;
  }
  .look-tabs {
    flex-wrap: nowrap;
    gap: 3px;
  }
  .look-tab {
    flex: 0 1 auto;
    min-width: 0;
    padding-inline: 7px;
  }
}
.game-top { padding-bottom: 7px; }
.brand.sm { filter: drop-shadow(0 4px 8px rgba(3,32,67,.24)); }
.room-chip,
.shop-chip,
.safety-chip {
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1px rgba(255,255,255,.55), 0 3px 0 rgba(4,47,84,.38), 0 7px 14px rgba(2,29,59,.14);
  transition: transform .14s ease, filter .14s ease;
}
.room-chip:hover,
.shop-chip:hover,
.safety-chip:hover { transform: translateY(-1px); filter: brightness(1.05); }
.hud,
.players,
.board-wrap,
.chat-col {
  border: 1px solid rgba(73, 145, 199, .24);
  background-color: var(--paper);
  background-image: linear-gradient(160deg, rgba(255,255,255,.46), rgba(231,239,244,.08)), var(--paper-photo);
  background-size: auto, cover;
  box-shadow: 0 3px 0 rgba(4, 54, 96, .15), 0 13px 30px rgba(3, 38, 76, .15), inset 0 1px #fff;
}
.hud {
  min-height: 91px;
  border-radius: 18px;
  padding-inline: 15px;
}
.round-label,
.blank,
.word-draw { color: #17344d; }
.round-label { font-family: var(--display); font-weight: 600; }
.guess-kicker { color: #58748b; letter-spacing: .14em; }
.players,
.board-wrap,
.chat-col { border-radius: 15px; }
.board-wrap { border-color: rgba(35, 114, 179, .34); }
.player {
  border-bottom-color: rgba(56, 102, 135, .1);
  transition: background .14s ease;
}
.player:hover { background: rgba(214, 235, 249, .52); }
.player.drawing { background: linear-gradient(90deg, #fff2b9, #fff9db); }
.player.guessed { background: linear-gradient(90deg, #d0f4d7, #e8faec); }
.pname { color: #173650; font-weight: 900; }
.chat-log { color: #263b4b; }
.msg { border-bottom: 1px solid rgba(61,96,122,.035); }
.msg:nth-child(even) { background: rgba(74, 117, 150, .045); }
.chat-in {
  border-top: 1px solid rgba(53, 102, 139, .14);
  color: #1c3a50;
  box-shadow: inset 0 2px 5px rgba(31, 66, 94, .045);
}
.chat-in:focus,
.chat-in:focus-visible { box-shadow: inset 0 2px 5px rgba(31,66,94,.05), inset 0 0 0 2px rgba(65,153,218,.16); }
.vote {
  border: 1px solid rgba(49, 104, 145, .15);
  background: rgba(255,255,255,.93);
  box-shadow: inset 0 1px #fff, 0 3px 0 rgba(41,81,111,.13), 0 7px 14px rgba(8,30,60,.1);
  transition: transform .14s ease, box-shadow .14s ease;
}
.vote:hover { transform: translateY(-1px) scale(1.05); box-shadow: inset 0 1px #fff, 0 4px 0 rgba(41,81,111,.12), 0 9px 16px rgba(8,30,60,.13); }
.settings-pop {
  border: 1px solid rgba(116, 188, 238, .35);
  border-radius: 17px;
  background: linear-gradient(155deg, #176bb4, #073e73);
  box-shadow: 0 7px 0 #052d57, 0 20px 45px rgba(1,24,51,.35), inset 0 1px rgba(255,255,255,.2);
}

.tools,
.tools.on {
  border-top-color: rgba(46, 101, 140, .14);
  background-color: #f5f7f7;
  background-image: linear-gradient(145deg, rgba(255,255,255,.75), rgba(223,233,240,.28)), var(--paper-photo);
  box-shadow: inset 0 1px #fff, inset 0 8px 18px rgba(52,91,120,.035);
}
.draw-group,
.draw-workbench {
  border-color: rgba(48, 94, 128, .14);
  background: linear-gradient(150deg, rgba(255,255,255,.82), rgba(239,245,248,.68));
  box-shadow: inset 0 1px #fff, 0 3px 9px rgba(26,61,88,.07);
}
.draw-group-head strong,
.draw-mini-label,
.draw-status strong { color: #143b5c; font-family: var(--display); font-weight: 600; }
.ticon {
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.ticon:hover { box-shadow: 0 3px 7px rgba(31,70,100,.08); }
.ticon.on {
  border-color: #70bdf3;
  background: linear-gradient(160deg, #3895eb, #1161b1);
  box-shadow: inset 0 1px rgba(255,255,255,.28), 0 3px 0 #0b4b8b, 0 7px 12px rgba(17,89,161,.21);
}
.swatch span { box-shadow: inset 0 0 0 1px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.25), 0 2px 3px rgba(21,48,69,.11); }
.swatch.l { background: #d9ecff; box-shadow: 0 0 0 2px #176fc5, 0 3px 7px rgba(26,98,164,.2); }

.waiting-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(55, 121, 177, .22);
  background-color: #f7f9f8;
  background-image: linear-gradient(150deg, rgba(255,255,255,.78), rgba(226,239,248,.42)), var(--paper-photo);
  background-size: auto, cover;
  box-shadow: 0 5px 0 rgba(26, 89, 139, .11), 0 24px 55px rgba(13, 65, 109, .17), inset 0 1px #fff;
}
.waiting-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #44a8ef, #72d5ff 45%, #ffd65b 78%, #f5b927);
}
.waiting-eyebrow { font-family: var(--display); font-weight: 600; }
.waiting-card h2 {
  color: #123d6c;
  text-shadow: 0 2px #fff, 0 8px 18px rgba(19,68,107,.1);
}
.waiting-card .waiting-invite {
  border-color: #fff1a1;
  background: linear-gradient(180deg, #ffe878, #ffc633 54%, #e7a717);
  color: #4a3000;
  box-shadow: inset 0 1px rgba(255,255,255,.7), inset 0 -3px rgba(143,89,0,.14), 0 5px 0 #aa7108, 0 13px 25px rgba(90,59,0,.18);
}
.settings-head h2,
.custom-title strong,
.game-shell.waiting-room .set-lab { font-family: var(--display); font-weight: 600; }
.settings-eyebrow { font-family: var(--display); font-weight: 600; }
.game-shell.waiting-room .set-row,
.game-shell.waiting-room .custom-box {
  border-color: rgba(43, 105, 157, .19);
  background-image: linear-gradient(150deg, rgba(255,255,255,.48), rgba(233,241,246,.12)), var(--paper-photo);
  background-size: auto, cover;
  box-shadow: inset 0 1px #fff, 0 4px 11px rgba(23, 67, 102, .075);
}
.game-shell.waiting-room .set-row:hover {
  border-color: rgba(38, 127, 195, .38);
  box-shadow: inset 0 1px #fff, 0 7px 16px rgba(23,67,102,.11);
}
.game-shell.waiting-room .set-ico {
  border-color: rgba(42, 103, 153, .15);
  background: linear-gradient(150deg, rgba(255,255,255,.88), rgba(225,238,247,.68));
  box-shadow: inset 0 1px #fff, 0 3px 7px rgba(22,64,97,.08);
}
.game-shell.waiting-room .set-row select,
.game-shell.waiting-room .custom-box textarea {
  border-color: rgba(38, 92, 137, .24);
  box-shadow: inset 0 1px #fff, inset 0 2px 5px rgba(27,63,91,.035), 0 2px rgba(31,71,102,.05);
}
.game-shell.waiting-room .set-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 10px 2px 8px;
  background-color: var(--paper);
  background-image: linear-gradient(180deg, rgba(248,248,245,0), rgba(248,248,245,.96) 24%), var(--paper-photo);
  background-size: auto, cover;
}
.game-shell.waiting-room .set-actions .btn-start {
  border-color: #baf3be;
  background: linear-gradient(180deg, #75e57d, #46cb58 50%, #2ba644);
  box-shadow: inset 0 1px rgba(255,255,255,.5), 0 5px 0 #238638, 0 11px 20px rgba(35,134,56,.16);
}
.game-shell.waiting-room .set-actions .btn-invite {
  border-color: #fff0a0;
  background: linear-gradient(180deg, #ffe77a, #fbc434 54%, #dfa213);
  color: #4b3000;
  text-shadow: 0 1px rgba(255,255,255,.5);
  box-shadow: inset 0 1px rgba(255,255,255,.6), 0 5px 0 #a97208, 0 11px 20px rgba(109,72,0,.15);
}
.overlay { background: rgba(1,16,34,.58); backdrop-filter: blur(7px); }
.overlay-card {
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 19px;
  box-shadow: 0 7px 0 rgba(5,52,90,.25), 0 24px 55px rgba(1,19,39,.28), inset 0 1px #fff;
}

@media (max-width: 700px) {
  body {
    background-size: 100% 100%, 100% 100%, 390px 390px;
    background-position: center, center, -8px 4px;
  }
  .screen.lobby.on { padding: 8px 14px 18px; }
  .brand { filter: drop-shadow(0 5px 9px rgba(3,35,74,.25)); }
  .tagline { margin-top: 4px; font-size: 14px; }
  .mascots { margin-block: 9px 10px; }
  .login {
    border-radius: 20px;
    padding: 11px;
    outline-width: 2px;
    box-shadow: 0 5px 0 #052c56, 0 17px 38px rgba(2,28,59,.3), inset 0 1px rgba(255,255,255,.24);
  }
  .login-row { gap: 7px; }
  .avatar-stage { border-radius: 15px; }
  .look-tabs { gap: 5px; }
  .look-tab { min-height: 36px; padding-inline: 11px; }
  .shop-card { border-radius: 20px; }
  .shop-live { border-radius: 17px; }
  .sku { border-radius: 15px; }
  .hud,
  .players,
  .board-wrap,
  .chat-col { border-radius: 13px; }
  .waiting-card { border-radius: 21px; }
}

@media (min-width: 701px) and (max-height: 760px) {
  .game-shell.waiting-room .settings { gap: 7px; padding-top: 2px; }
  .settings-head { padding-bottom: 0; }
  .settings-grid { gap: 6px 9px; }
  .game-shell.waiting-room .set-row {
    min-height: 52px;
    padding-block: 4px;
  }
  .game-shell.waiting-room .set-ico { width: 38px; height: 38px; }
  .game-shell.waiting-room .set-ico svg { width: 31px; height: 31px; }
  .game-shell.waiting-room .custom-box { padding-block: 8px; }
  .game-shell.waiting-room .custom-box textarea { min-height: 48px; max-height: 62px; resize: none; }
  .custom-options { margin-top: 5px; }
  .game-shell.waiting-room .set-actions { padding-block: 6px 5px; }
}

/* ---------- name style clarity and effect-safe layout ---------- */
.name-effect {
  position: relative;
  z-index: 3;
  isolation: isolate;
  display: inline-block;
  max-width: 100%;
  padding: 5px 7px;
  margin: -5px -7px;
  overflow: visible;
  line-height: 1.28;
  vertical-align: middle;
  transform-origin: 50% 60%;
}
.player {
  isolation: isolate;
  padding-inline: 8px;
}
.player > .player-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  padding: 9px 10px;
  margin: -9px -10px;
  overflow: visible !important;
}
.player .pname.name-effect {
  max-width: none;
  padding: 8px 10px;
  margin: -8px -10px;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  transform-origin: 12% 55%;
}
.player .pname.name-long { font-size: 10.5px; }
.player .pname.name-xlong { font-size: 9px; }
.player .pav { position: relative; z-index: 1; }
.msg .name-effect {
  padding: 5px 7px;
  margin: -5px -7px;
  transform-origin: 12% 55%;
}
.chat-name { position: relative; z-index: 2; font-weight: 900; }
.nm.name-long { font-size: .88em; }
.nm.name-xlong { font-size: .76em; letter-spacing: -.02em; }
.account-session-copy strong.account-session-name {
  position: relative;
  z-index: 3;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.account-session-name .nm { max-width: 100%; font-size: 16px; white-space: nowrap; }
.account-session-name .nm.name-long { font-size: 14px; }
.account-session-name .nm.name-xlong { font-size: 12px; }
.shop-live-player-name { overflow: visible; }
.shop-live-player-name .nm { max-width: 100%; white-space: nowrap; }
.sku.name-sku .name-plate .nm.name-long { padding-inline: 5px; margin-inline: -5px; font-size: 13px; }
.sku.name-sku .name-plate .nm.name-xlong { padding-inline: 3px; margin-inline: -3px; font-size: 11px; letter-spacing: -.03em; }
.srow .score-name {
  padding: 7px 9px;
  margin: -7px -9px;
}
.srow .name-effect { transform-origin: 12% 55%; }
.sku.name-sku .sku-preview,
.sku.name-sku .name-prev,
.sku.name-sku .name-plate { overflow: visible; }
.sku.name-sku .name-plate {
  position: relative;
  z-index: 3;
  padding: 10px 8px;
  margin: -10px -8px;
}
.sku.name-sku .name-prev .name-plate .nm {
  max-width: none;
  padding: 8px 9px;
  margin: -8px -9px;
  overflow: visible;
  text-overflow: clip;
}
.look-sample,
.shop-live-copy { overflow: visible; }

/* A deliberately separated master palette: each of the 58 motions has its own colour signature. */
:is(.pname,.nm).ice { color: #bdefff; text-shadow: 0 0 7px rgba(56,189,248,.58); }
:is(.pname,.nm).fire { color: #ff5733; text-shadow: 0 0 9px rgba(255,119,33,.62); }
:is(.pname,.nm).neon { color: #ff2bd6; text-shadow: 0 0 10px rgba(255,43,214,.67), 0 0 2px #fff; }
:is(.pname,.nm).shadow { color: #69768a; text-shadow: 3px 3px 0 #020617, 0 0 7px rgba(2,6,23,.72); }
:is(.pname,.nm).star { color: #fff4a3; text-shadow: 0 0 7px rgba(250,204,21,.52); }
:is(.pname,.nm).mint { color: #45efc2; text-shadow: 0 0 7px rgba(15,118,110,.48); }
:is(.pname,.nm).lava { color: #ff7a1a; text-shadow: 0 0 10px rgba(124,45,18,.62); }
:is(.pname,.nm).royal { color: #ffd166; text-shadow: 0 0 8px rgba(124,58,237,.58); }
:is(.pname,.nm).ghost { color: #d9edff; text-shadow: 0 0 11px rgba(148,163,184,.56); }
:is(.pname,.nm).toxic { color: #c7ff2e; text-shadow: 0 0 8px rgba(54,83,20,.56); }
:is(.pname,.nm).matrix { color: #2ff27e; text-shadow: 0 2px 0 #052e16, 0 0 9px rgba(47,242,126,.54); }
:is(.pname,.nm).honey { color: #ffc43d; text-shadow: 0 0 7px rgba(146,64,14,.48); }
:is(.pname,.nm).ink { color: #111827; text-shadow: 0 0 4px rgba(248,250,252,.56); }
:is(.pname,.nm).glitch { color: #f8fafc; text-shadow: 2px 0 #ff2bd6, -2px 0 #22d3ee; }
:is(.pname,.nm).ruby { color: #ff3366; text-shadow: 0 2px 0 #4c0519, 0 0 7px rgba(255,51,102,.5); }
:is(.pname,.nm).emerald { color: #2dd4a0; text-shadow: 0 0 7px rgba(6,95,70,.53); }
:is(.pname,.nm).sapphire { color: #4b8dff; text-shadow: 0 0 8px rgba(23,37,84,.56); }
:is(.pname,.nm).amethyst { color: #d2a8ff; text-shadow: 0 0 8px rgba(124,58,237,.55); }
:is(.pname,.nm).bronze { color: #e79a49; text-shadow: 0 1px 0 #7c2d12, 0 0 7px rgba(124,45,18,.44); }
:is(.pname,.nm).copper { color: #e7602c; text-shadow: 0 1px 0 #431407, 0 0 7px rgba(67,20,7,.44); }
:is(.pname,.nm).pearl { color: #ffe8f6; text-shadow: 0 0 10px rgba(196,181,253,.7); }
:is(.pname,.nm).obsidian { color: #9874d9; text-shadow: 2px 2px 0 #020617, 0 0 9px rgba(152,116,217,.58); }
:is(.pname,.nm).snow { color: #f7fdff; text-shadow: 0 0 10px rgba(186,230,253,.82); }
:is(.pname,.nm).thunder { color: #ffe45e; text-shadow: 0 0 7px rgba(56,189,248,.66); }
:is(.pname,.nm).plasma { color: #e44bff; text-shadow: 2px 0 #22d3ee, -2px 0 #e44bff, 0 0 10px rgba(228,75,255,.62); }
:is(.pname,.nm).venom { color: #8ef10c; text-shadow: 1px 0 #7c3aed, 0 0 8px rgba(142,241,12,.5); }
:is(.pname,.nm).rose { color: #ff7096; text-shadow: 0 0 8px rgba(22,101,52,.42); }
:is(.pname,.nm).lemon { color: #f6e42b; text-shadow: 0 0 8px rgba(133,77,14,.48); }
:is(.pname,.nm).grape { color: #9e74ff; text-shadow: 0 0 8px rgba(91,33,182,.54); }
:is(.pname,.nm).sky { color: #62d2ff; text-shadow: 1px 2px 0 #0369a1, 0 0 6px rgba(98,210,255,.42); }
:is(.pname,.nm).midnight { color: #5666e8; text-shadow: 0 0 10px rgba(2,6,23,.76); }
:is(.pname,.nm).blush { color: #ffb3c7; text-shadow: 0 0 8px rgba(251,113,133,.5); }
:is(.pname,.nm).steel { color: #a7b3c4; text-shadow: 0 1px 0 #0f172a, 0 0 6px rgba(167,179,196,.42); }
:is(.pname,.nm).retro { color: #ff9f1c; text-shadow: 2px 0 #22d3ee, -2px 0 #f472b6; }
:is(.pname,.nm).comic { color: #ffed75; text-shadow: 2px 2px 0 #111827; }
:is(.pname,.nm).bubblegum { color: #ff5ec4; text-shadow: 2px 2px 0 #f9a8d4, 0 0 8px rgba(131,24,67,.58); }
:is(.pname,.nm).forest { color: #39c96b; text-shadow: 0 0 8px rgba(20,83,45,.5); }
:is(.pname,.nm).desert { color: #e9ab32; text-shadow: 0 0 8px rgba(120,53,15,.45); }
:is(.pname,.nm).slime { color: #76dc18; text-shadow: 0 0 10px rgba(63,98,18,.56); }
:is(.pname,.nm).magma { color: #ff4d1c; text-shadow: 0 0 9px rgba(250,204,21,.54); }
:is(.pname,.nm).frost { color: #d8f6ff; text-shadow: 0 0 8px #38bdf8, 0 1px 0 #fff; }
:is(.pname,.nm).pulse { color: #eaffff; text-shadow: 0 0 8px rgba(6,182,212,.54); }
:is(.pname,.nm).wobble { color: #ffd9a1; text-shadow: 0 0 7px rgba(180,83,9,.42); }
:is(.pname,.nm).spark { color: #ffcc17; text-shadow: 0 0 7px rgba(255,204,23,.58); }
:is(.pname,.nm).void { color: #b197fc; text-shadow: 0 0 10px rgba(76,29,149,.68), 0 0 2px #fff; }
:is(.pname,.nm).ivory { color: #fff3d4; text-shadow: 0 0 8px rgba(168,162,158,.48); }
:is(.pname,.nm).blood { color: #db143c; text-shadow: 2px 2px 0 #450a0a, 0 0 7px rgba(69,10,10,.52); }
:is(.pname,.nm).cotton { color: #ffd0ea; text-shadow: 0 0 11px #fff, 0 2px 0 #f9a8d4; }

@media (min-width: 701px) {
  .game-shell { grid-template-columns: clamp(178px, 15.7vw, 200px) minmax(0, 1fr) 232px; }
}

@media (max-width: 700px) {
  .player > .player-copy { padding-inline: 8px; margin-inline: -8px; }
  .player .pname.name-effect { padding-inline: 8px; margin-inline: -8px; }
  .sku.name-sku .name-prev .name-plate .nm { padding-inline: 6px; margin-inline: -6px; }
  .sku.name-sku .name-plate .nm.name-long { font-size: 12px; }
  .sku.name-sku .name-plate .nm.name-xlong { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mascot,
  .look-tab,
  .btn,
  .shop-tab,
  .sku,
  .ticon,
  .vote { transition: none !important; }
}

/* ---------- strategic bundle shop ---------- */
.shop-skus.deals-on {
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  align-content: start;
}
.bundle-guide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) auto;
  align-items: center;
  gap: 10px 22px;
  padding: 16px 18px;
  border: 1px solid rgba(128, 205, 255, .42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 215, 71, .2), transparent 31%),
    linear-gradient(135deg, rgba(18, 112, 187, .88), rgba(4, 45, 86, .94));
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 9px 22px rgba(1, 19, 39, .2);
  color: #fff;
}
.bundle-guide > div { display: grid; gap: 3px; }
.bundle-guide small {
  color: #ffd84f;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.bundle-guide strong {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.05;
}
.bundle-guide span { color: #c8e5f8; font-size: 11px; font-weight: 750; line-height: 1.4; }
.bundle-guide ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bundle-guide li {
  padding: 7px 9px;
  border: 1px solid rgba(151, 211, 250, .24);
  border-radius: 999px;
  background: rgba(3, 31, 59, .4);
  color: #badcf3;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}
.bundle-guide li b { color: #fff; }
.bundle-guide > p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 9px;
  border-top: 1px solid rgba(159, 211, 247, .16);
  color: #9ec8e9;
  font-size: 9px;
  font-weight: 750;
}
.sku.deal {
  position: relative;
  display: flex;
  min-height: 252px;
  padding: 12px;
  overflow: hidden;
}
.sku.deal.best {
  grid-column: span 2;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 219, 82, .21), transparent 28%),
    linear-gradient(145deg, rgba(24, 101, 162, .72), rgba(4, 37, 72, .92));
}
.sku.deal.popular {
  border-color: #78e2ff;
  box-shadow: inset 0 0 0 2px rgba(58, 199, 239, .32), 0 11px 24px rgba(1, 18, 36, .25);
}
.sku.deal .deal-mark {
  flex: 0 0 auto;
  min-height: 88px;
  margin-bottom: 0;
  border-radius: 13px;
}
.sku.deal-tier-starter .deal-mark { background: radial-gradient(circle at 78% 25%, #2fa985, #064b5f 72%); }
.sku.deal-tier-hero .deal-mark { background: radial-gradient(circle at 78% 20%, #4294e8, #123e82 72%); }
.sku.deal-tier-mystic .deal-mark { background: radial-gradient(circle at 78% 22%, #8b5edb, #2b185f 72%); }
.sku.deal-tier-wild .deal-mark { background: radial-gradient(circle at 78% 22%, #73ad44, #174d38 72%); }
.sku.deal-tier-neon .deal-mark { background: radial-gradient(circle at 78% 22%, #d547ce, #233078 72%); }
.sku.deal-tier-complete .deal-mark { background: radial-gradient(circle at 80% 20%, #b87d19, #173d73 72%); }
.deal-mark .deal-count b { display: flex; align-items: flex-end; gap: 4px; }
.deal-mark .deal-count b small {
  padding-bottom: 2px;
  color: #c8e4f7;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sku.deal .sku-copy { min-height: 74px; padding-top: 10px; }
.sku.deal .sku-copy p { -webkit-line-clamp: 3; color: #c2def2; }
.sku.deal .sku-buy-row { align-items: end; }
.sku.deal .price {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  line-height: 1;
}
.sku.deal .current-price { font-size: 20px; }
.sku.deal .save {
  margin: 0;
  padding: 4px 7px;
  border: 1px solid rgba(133, 242, 164, .3);
  border-radius: 999px;
  background: rgba(25, 146, 63, .42);
  color: #caffd6;
  font-size: 9px;
  font-weight: 1000;
  text-shadow: none;
}
.compare-price {
  flex-basis: 100%;
  color: #a8c9e2;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.sku.deal .btn-shop {
  min-width: 96px;
  background: linear-gradient(180deg, #ffe273, #f4b927);
  color: #3d2800;
  box-shadow: inset 0 1px rgba(255,255,255,.52), 0 3px 0 #a97108;
}
.sku.deal.best .btn-shop { min-width: 112px; }

@media (max-width: 700px) {
  .bundle-guide { grid-template-columns: 1fr; gap: 9px; padding: 12px; border-radius: 15px; }
  .bundle-guide strong { font-size: 19px; }
  .bundle-guide span { font-size: 9px; }
  .bundle-guide ul { justify-content: flex-start; gap: 4px; }
  .bundle-guide li { padding: 5px 7px; font-size: 8px; }
  .bundle-guide > p { padding-top: 7px; font-size: 8px; line-height: 1.35; }
  .sku.deal { min-height: 246px; padding: 8px; }
  .sku.deal.best { grid-column: 1 / -1; }
  .sku.deal .deal-mark { min-height: 72px; }
  .sku.deal .sku-copy { min-height: 73px; }
  .sku.deal .sku-buy-row { grid-template-columns: 1fr; }
  .sku.deal .current-price { font-size: 17px; }
  .sku.deal .btn-shop,
  .sku.deal.best .btn-shop { width: 100%; min-width: 0; }
}

/* Final phone ergonomics: keep every primary action at a dependable touch size. */
@media (pointer: coarse), (max-width: 700px) {
  .look-tab,
  .look-reset,
  .login > .btn { min-height: 44px; }

  .site-legal-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding-inline: 4px;
  }

  .shop-restore summary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

/* Short landscape screens need a compact three-column table, not a clipped
   desktop canvas. This also covers phone browsers that report a wide CSS
   viewport after rotation. */
@media (max-height: 500px) and (orientation: landscape) {
  .screen.game.on {
    overflow: hidden;
    padding: 3px 6px 5px;
  }

  .game-top {
    width: 100%;
    min-height: 44px;
    padding: 0 2px 4px;
  }
  .brand.sm .ch { font-size: 24px; }
  .room-chip,
  .shop-chip,
  .safety-chip { min-height: 40px; }

  .game-shell,
  .game-shell.waiting-room {
    width: 100%;
    height: calc(100dvh - 50px);
    max-height: none;
    grid-template-columns: 150px minmax(0, 1fr) 200px;
    grid-template-rows: 70px minmax(0, 1fr);
    gap: 4px;
  }
  .hud {
    min-height: 70px;
    padding: 2px 8px;
    border-radius: 12px;
  }
  .clock { width: 58px; height: 60px; flex-basis: 58px; }
  .clock .t { font-size: 17px; }
  .round-label { top: 0; font-size: 14px; }
  .players,
  .board-wrap,
  .chat-col { border-radius: 11px; }

  .board-stage { min-height: 40px; }
  .tools,
  .tools.on {
    flex-wrap: nowrap;
    min-height: 66px;
    max-height: 66px;
    padding: 4px 6px;
  }
  .tools .draw-colors {
    flex: 0 1 215px;
    min-width: 155px;
  }
  .tools .draw-workbench {
    flex: 1 1 0;
    min-width: 0;
  }
  .tools .tool-btns { width: 100%; }
  .tools .swatches {
    grid-auto-rows: 24px;
    gap: 2px;
    overflow-x: auto;
  }
  .tools .swatch { width: 24px; height: 24px; }
  .tools .custom-color { width: 32px; min-height: 32px; }
  .size-btn { width: 32px; height: 32px; }
  .ticon { min-width: 44px; height: 44px; }
  .gear,
  .vote { min-width: 44px; min-height: 44px; }
  .chat-in { min-height: 44px; }

  .game-shell.waiting-room {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .game-shell.waiting-room .chat-col { display: none; }
  .game-shell.waiting-room .board-wrap { grid-column: 2; }
  .game-shell.waiting-room .settings {
    width: 100%;
    padding-inline: 5px;
  }
}

@media (forced-colors: active) {
  :where(button, a, input, select, textarea, summary):focus-visible {
    outline: 3px solid CanvasText;
  }
  .sku,
  .login,
  .hud,
  .players,
  .board-wrap,
  .chat-col { border: 1px solid CanvasText; }
}

/* Motion is on by default so cosmetic auras, names, faces, and headwear show
   their full value. Players can still disable it explicitly in Settings. */
html.motion-off .brand .ch,
html.motion-off .mascot,
html.motion-off .mascot svg,
html.motion-off .pav,
html.motion-off .pav svg,
html.motion-off .picker-avatar svg,
html.motion-off .sku .preview svg,
html.motion-off .eyes,
html.motion-off .eyes *,
html.motion-off .mouth,
html.motion-off .mouth *,
html.motion-off .gear svg,
html.motion-off .vote svg,
html.motion-off .pname,
html.motion-off .nm,
html.motion-off .aura-layer *,
html.motion-off .fx-orb,
html.motion-off .fx-bits,
html.motion-off .fx-color-holo,
html.motion-off svg .headwear-3,
html.motion-off svg .headwear-art.cloud-halo,
html.motion-off svg .headwear-art.peacock-plume,
html.motion-off svg .headwear-art.lightning-crown,
html.motion-off svg .headwear-art.gamer-headset,
html.motion-off .sku.aura-sku .preview::before {
  animation: none !important;
}

/* ---------- responsive shop basket and compact product actions ---------- */
.shop-utility { grid-template-columns: minmax(220px, 1fr) auto; }
.shop-wallet-tools {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
}
.shop-card.coins-active .shop-utility { grid-template-columns: 1fr; }
.shop-card.coins-active .shop-search { display: none; }
.shop-card.coins-active .shop-wallet-tools { justify-self: end; }

.shop-basket-button {
  min-width: 165px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 11px 5px 8px;
  border: 1px solid rgba(159, 211, 250, .52);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(50, 139, 211, .55), rgba(5, 46, 84, .72));
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 3px 0 rgba(2,22,43,.26);
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.shop-basket-button:hover,
.shop-basket-button:focus-visible {
  transform: translateY(-1px);
  border-color: #d9f1ff;
  background: linear-gradient(180deg, rgba(64, 157, 229, .7), rgba(7, 59, 106, .82));
}
.shop-basket-button.has-items {
  border-color: #ffe071;
  background: linear-gradient(180deg, rgba(244, 190, 45, .34), rgba(70, 55, 10, .34)), #0a4c83;
}
.shop-basket-button > span:last-child,
.shop-basket-button > span:last-child strong { min-width: 0; }
.shop-basket-button > span:last-child { display: grid; line-height: 1.05; }
.shop-basket-button small {
  color: #c6e2f5;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.shop-basket-button strong {
  margin-top: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  white-space: nowrap;
}
.shop-basket-button strong b { color: #ffe071; }
.shop-basket-icon {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 30px;
  flex: 0 0 34px;
  background: url("../assets/shop-basket.svg?v=1") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 18, 36, .24));
}
.shop-basket-icon::before,
.shop-basket-icon::after,
.shop-basket-icon i { content: none; display: none; }

.sku-buy-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.sku .price { min-width: 0; }
.sku .drawcoin-price.current-price small { display: none; }
.sku .btn {
  min-width: 64px;
  max-width: 78px;
  padding-inline: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sku .btn.is-added,
.sku .btn[aria-pressed="true"] {
  border-color: #ffe071;
  background: linear-gradient(#ffe579, #efb52b);
  color: #422900;
  box-shadow: inset 0 -3px rgba(146, 88, 0, .2), 0 3px 0 rgba(2, 22, 43, .28);
}
.sku .compare-price { max-width: 100%; white-space: normal; }

.shop-basket-shade {
  position: absolute;
  z-index: 30;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: rgba(1, 14, 29, .66);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.shop-basket-panel {
  position: absolute;
  z-index: 31;
  inset: 8px 8px 8px auto;
  width: min(420px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(174, 216, 250, .48);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(60, 159, 237, .28), transparent 32%),
    linear-gradient(165deg, #0d518f, #062e56 72%);
  box-shadow: -18px 0 55px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.13);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(100% + 20px));
  transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .18s ease, visibility .24s ease;
}
.shop-card.basket-open .shop-basket-shade,
.shop-card.basket-open .shop-basket-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.shop-card.basket-open .shop-basket-panel { transform: translateX(0); }
.shop-basket-panel > header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 84px;
  padding: 17px 18px 14px;
  border-bottom: 1px solid rgba(164, 210, 246, .18);
}
.shop-basket-panel > header small {
  display: block;
  margin-bottom: 2px;
  color: #ffe071;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.shop-basket-panel h4 { margin: 0; font-family: var(--display); font-size: 29px; line-height: 1; }
.shop-basket-panel > header button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(188, 222, 248, .28);
  border-radius: 50%;
  background: rgba(3, 29, 56, .62);
  color: #fff;
  font-size: 25px;
}
.shop-basket-lines {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(158,202,233,.38) transparent;
}
.shop-basket-line {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid rgba(139, 196, 239, .23);
  border-radius: 13px;
  background: rgba(4, 39, 73, .52);
}
.shop-basket-line.is-covered { opacity: .74; }
.shop-basket-line-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 224, 113, .14);
  color: #ffe071;
  font-size: 15px;
  font-weight: 1000;
}
.shop-basket-line > div:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.shop-basket-line > div:nth-child(2) strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.shop-basket-line > div:nth-child(2) small { color: #a9d1ef; font-size: 9px; font-weight: 800; line-height: 1.25; }
.shop-basket-line > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffe071;
  font-size: 10px;
  font-weight: 1000;
  white-space: nowrap;
}
.shop-basket-line > button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(185, 76, 76, .22);
  color: #ffd8d8;
  font-size: 20px;
}
.shop-basket-empty {
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
}
.shop-basket-empty .shop-basket-icon { width: 46px; height: 42px; margin-bottom: 14px; transform: scale(1.4); color: #8fc6ed; }
.shop-basket-empty strong { font-size: 18px; }
.shop-basket-empty p { max-width: 240px; margin: 6px 0 0; color: #9fc8e7; font-size: 12px; font-weight: 700; line-height: 1.4; }
.shop-basket-panel > footer {
  flex: 0 0 auto;
  padding: 14px 15px 15px;
  border-top: 1px solid rgba(164, 210, 246, .18);
  background: rgba(2, 28, 54, .42);
}
.shop-basket-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-basket-summary > span { color: #bcdcf4; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.shop-basket-summary > strong { display: inline-flex; align-items: center; gap: 6px; color: #ffe071; font-size: 17px; }
.shop-basket-panel > footer > p { min-height: 15px; margin: 6px 0 11px; color: #9fc8e7; font-size: 9px; font-weight: 750; }
.shop-basket-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.shop-basket-actions button { min-height: 42px; border-radius: 12px; font-weight: 1000; }
.shop-basket-clear { padding: 0 13px; border: 1px solid rgba(170, 211, 243, .25); background: rgba(7, 52, 94, .65); color: #cde6f8; }
.shop-basket-checkout { width: 100%; margin: 0; padding: 0 12px; font-size: 13px; }
.shop-basket-actions button:disabled { opacity: .45; cursor: default; }
.shop-basket-panel.is-checking [data-basket-remove],
.shop-basket-panel.is-checking .shop-basket-clear { pointer-events: none; opacity: .45; }

@media (max-width: 700px) {
  .shop-utility { grid-template-columns: 1fr; }
  .shop-wallet-tools { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .shop-card.coins-active .shop-wallet-tools { width: 100%; justify-self: stretch; }
  .shop-balance,
  .shop-basket-button { width: 100%; min-width: 0; min-height: 38px; padding: 3px 7px 3px 5px; gap: 5px; }
  .shop-basket-button strong { font-size: 10px; }
  .shop-basket-button small { font-size: 8px; }
  .shop-basket-icon { transform: scale(.78); }
  .sku-buy-row { grid-template-columns: 1fr; }
  .sku .btn { width: 100%; max-width: none; }
  .shop-basket-panel { inset: 4px; width: auto; border-radius: 17px; }
  .shop-basket-panel > header { min-height: 70px; padding: 13px 14px 11px; }
  .shop-basket-panel h4 { font-size: 25px; }
  .shop-basket-lines { padding: 8px; }
  .shop-basket-line { grid-template-columns: 28px minmax(0, 1fr) auto 28px; gap: 6px; min-height: 60px; padding: 6px; }
  .shop-basket-line-mark { width: 28px; height: 28px; }
  .shop-basket-line > div:nth-child(2) strong { font-size: 11px; }
  .shop-basket-line > div:nth-child(2) small { font-size: 8px; }
  .shop-basket-line > button { width: 28px; height: 28px; }
  .shop-basket-panel > footer { padding: 11px; }
  .shop-basket-actions { grid-template-columns: 104px minmax(0, 1fr); }
  .shop-basket-clear { padding-inline: 7px; font-size: 10px; }
  .shop-basket-checkout { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-basket-panel,
  .shop-basket-shade,
  .shop-basket-button { transition: none; }
}

/* One highly legible typeface across every FastDraw text surface. */
html,
body,
body * {
  font-family: var(--ui) !important;
}

/* ---------- phone viewport lock and touch stability ---------- */
:root {
  --app-height: 100dvh;
  --app-top: 0px;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
}
body {
  height: var(--app-height);
  min-height: var(--app-height);
  overscroll-behavior: none;
}
button,
a,
label,
summary,
select { touch-action: manipulation; }
#draw {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

@media (max-width: 700px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  select,
  textarea { font-size: 16px !important; }

  html.lobby-keyboard-open,
  html.lobby-keyboard-open body,
  html.lobby-keyboard-open #app,
  html.lobby-keyboard-open .screen.lobby.on {
    height: var(--app-height);
    min-height: var(--app-height);
    max-height: var(--app-height);
  }
  html.lobby-keyboard-open body {
    position: fixed;
    top: var(--app-top);
    right: 0;
    bottom: auto;
    left: 0;
  }
  html.lobby-keyboard-open .screen.lobby.on {
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-padding-block: 12px;
  }
  html.lobby-keyboard-open :is(input, textarea, select):focus {
    scroll-margin-block: 12px;
  }

  html.game-active,
  html.game-active body,
  html.game-active #app {
    width: 100%;
    height: var(--app-height);
    min-height: var(--app-height);
    overflow: hidden;
  }
  html.game-active body {
    position: fixed;
    top: var(--app-top);
    right: 0;
    bottom: auto;
    left: 0;
  }
  html.game-active .screen.game.on {
    width: 100%;
    height: var(--app-height);
    min-height: 0;
    max-height: var(--app-height);
    overflow: hidden;
    padding:
      max(2px, env(safe-area-inset-top))
      max(4px, env(safe-area-inset-right))
      max(4px, env(safe-area-inset-bottom))
      max(4px, env(safe-area-inset-left));
  }

  html.game-active .game-top {
    flex: 0 0 44px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    gap: 4px;
    padding: 0 1px 4px;
    overflow: hidden;
  }
  html.game-active .game-top > * { flex: 0 0 auto; }
  html.game-active .brand.sm {
    max-width: 142px;
    margin: 0;
    overflow: hidden;
  }
  html.game-active .brand.sm .ch { font-size: 18px; letter-spacing: -1.5px; }
  html.game-active .brand.sm { --brand-stroke: 1px; --brand-depth: .7px; }
  html.game-active .brand.sm .pencil { width: 18px; height: 18px; }
  html.game-active .room-chip {
    min-width: 0;
    max-width: 92px;
    margin: 0 0 0 auto;
    padding-inline: 8px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html.game-active .shop-chip,
  html.game-active .safety-chip {
    min-width: 44px;
    min-height: 40px;
    padding-inline: 8px;
    font-size: 10px;
  }

  html.game-active .game-shell,
  html.game-active .game-shell.waiting-room {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 72px 70px minmax(0, 1fr) 88px;
    gap: 3px;
  }
  html.game-active .hud {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-rows: 44px 22px;
    min-height: 0;
    height: 72px;
    gap: 0 4px;
    padding: 2px 7px 3px;
  }
  html.game-active .hud-left { min-width: 0; gap: 5px; }
  html.game-active .clock { width: 43px; height: 45px; flex-basis: 43px; }
  html.game-active .clock .t { font-size: 14px; }
  html.game-active .round-label {
    top: 0;
    max-width: 132px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html.game-active .gear { width: 40px; height: 40px; }
  html.game-active .guess-kicker { font-size: 8px; }
  html.game-active .word-row { min-height: 18px; }
  html.game-active .blank,
  html.game-active .word-draw { font-size: clamp(14px, 4.2vw, 18px); }

  html.game-active .players {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    min-width: 0;
    min-height: 0;
    height: 70px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    touch-action: pan-x;
  }
  html.game-active .player {
    flex: 0 0 142px;
    min-width: 142px;
    min-height: 68px;
    height: 68px;
    padding-block: 1px;
  }
  html.game-active .pav { width: 46px; height: 50px; }

  html.game-active .board-wrap {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
    min-height: 0;
    margin: 0;
  }
  html.game-active .board-stage { min-height: 0; }
  html.game-active .tools,
  html.game-active .tools.on {
    flex: 0 0 84px;
    min-height: 84px;
    max-height: 84px;
    overflow: hidden;
  }
  html.game-active .chat-col {
    grid-column: 1;
    grid-row: 4;
    min-width: 0;
    min-height: 0;
    height: 88px;
    margin: 0;
  }
  html.game-active .chat-log {
    min-height: 0;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  html.game-active .chat-in {
    flex: 0 0 44px;
    height: 44px;
    min-height: 44px;
  }
  html.game-active .board-modal { overscroll-behavior: contain; }
  html.game-active .modal-inner { max-height: 100%; overscroll-behavior: contain; }
  html.game-active .settings-pop {
    top: max(48px, env(safe-area-inset-top));
    right: max(4px, env(safe-area-inset-right));
    width: min(280px, calc(100vw - 8px));
    max-height: calc(var(--app-height) - 56px);
    overflow-y: auto;
  }

  html.game-active .shop-pop,
  html.game-active .overlay,
  html.game-active .support-pop { height: var(--app-height); max-height: var(--app-height); }
  html.game-active .shop-card {
    height: calc(var(--app-height) - 16px);
    max-height: calc(var(--app-height) - 16px);
  }

  html.game-active.keyboard-open .screen.game.on { padding: 2px 4px; }
  html.game-active.keyboard-open .game-top {
    display: flex;
    flex: 0 0 34px;
    height: 34px;
    min-height: 34px;
    padding-bottom: 2px;
  }
  html.game-active.keyboard-open .brand.sm { max-width: 112px; }
  html.game-active.keyboard-open .brand.sm .ch { font-size: 15px; }
  html.game-active.keyboard-open .brand.sm { --brand-stroke: .8px; --brand-depth: .5px; }
  html.game-active.keyboard-open .brand.sm .pencil { width: 15px; height: 15px; }
  html.game-active.keyboard-open .room-chip,
  html.game-active.keyboard-open .shop-chip,
  html.game-active.keyboard-open .safety-chip {
    min-height: 30px;
    height: 30px;
    padding-inline: 6px;
    font-size: 9px;
  }
  html.game-active.keyboard-open .game-shell,
  html.game-active.keyboard-open .game-shell.waiting-room {
    height: auto;
    min-height: 0;
    grid-template-rows: 52px 48px minmax(0, 1fr);
  }
  html.game-active.keyboard-open .hud {
    display: grid;
    grid-row: 1;
    height: 52px;
    min-height: 52px;
    grid-template-columns: minmax(0, 1fr) 36px;
    grid-template-rows: 34px 14px;
    padding: 1px 6px 2px;
  }
  html.game-active.keyboard-open .clock { width: 32px; height: 34px; flex-basis: 32px; }
  html.game-active.keyboard-open .clock .t { font-size: 11px; }
  html.game-active.keyboard-open .round-label { max-width: 145px; font-size: 11px; }
  html.game-active.keyboard-open .gear { width: 34px; height: 34px; min-width: 34px; min-height: 34px; }
  html.game-active.keyboard-open .guess-kicker { font-size: 8px; }
  html.game-active.keyboard-open .word-row { min-height: 13px; }
  html.game-active.keyboard-open .blank,
  html.game-active.keyboard-open .word-draw { font-size: clamp(12px, 3.8vw, 15px); }
  html.game-active.keyboard-open .players {
    display: flex;
    grid-row: 2;
    height: 48px;
    min-height: 48px;
  }
  html.game-active.keyboard-open .player {
    grid-template-columns: 21px minmax(0, 1fr) 36px;
    flex-basis: 122px;
    min-width: 122px;
    height: 46px;
    min-height: 46px;
    padding: 1px 4px;
  }
  html.game-active.keyboard-open .pav { width: 34px; height: 38px; }
  html.game-active.keyboard-open .prank { font-size: 9px; }
  html.game-active.keyboard-open .pname { font-size: 10px; }
  html.game-active.keyboard-open .pscore { font-size: 8px; }
  html.game-active.keyboard-open .player-kick { display: none; }
  html.game-active.keyboard-open .board-wrap {
    grid-row: 3;
    min-height: 0;
  }
  html.game-active.keyboard-open .chat-col { display: none; }
  html.game-active.keyboard-open.keyboard-chat .game-shell {
    grid-template-rows: 52px 48px minmax(0, 1fr) 48px;
  }
  html.game-active.keyboard-open.keyboard-chat .chat-col {
    display: flex;
    grid-row: 4;
    height: 48px;
  }
  html.game-active.keyboard-open.keyboard-chat .chat-log { display: none; }
  html.game-active.keyboard-open.keyboard-chat .chat-in {
    flex-basis: 48px;
    height: 48px;
    min-height: 48px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  select,
  textarea { font-size: 16px !important; }

  html.game-active,
  html.game-active body,
  html.game-active #app,
  html.game-active .screen.game.on { height: var(--app-height); min-height: 0; overflow: hidden; }
  html.game-active body {
    position: fixed;
    top: var(--app-top);
    right: 0;
    bottom: auto;
    left: 0;
  }
  html.game-active .game-shell,
  html.game-active .game-shell.waiting-room {
    height: calc(var(--app-height) - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  html.game-active.keyboard-open .game-top { display: none; }
  html.game-active.keyboard-open .game-shell,
  html.game-active.keyboard-open .game-shell.waiting-room {
    height: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 44px 42px minmax(0, 1fr);
  }
  html.game-active.keyboard-open .hud {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    height: 44px;
    min-height: 44px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
    grid-template-rows: 1fr;
    padding: 1px 6px;
  }
  html.game-active.keyboard-open .hud-left,
  html.game-active.keyboard-open .hud-mid,
  html.game-active.keyboard-open .hud-right { grid-row: 1; }
  html.game-active.keyboard-open .hud-left { grid-column: 1; }
  html.game-active.keyboard-open .hud-mid { grid-column: 2; align-self: center; }
  html.game-active.keyboard-open .hud-right { grid-column: 3; }
  html.game-active.keyboard-open .clock { width: 36px; height: 38px; flex-basis: 36px; }
  html.game-active.keyboard-open .clock .t { font-size: 12px; }
  html.game-active.keyboard-open .round-label { font-size: 11px; }
  html.game-active.keyboard-open .gear { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
  html.game-active.keyboard-open .players {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    height: 42px;
    min-height: 42px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  html.game-active.keyboard-open .player {
    grid-template-columns: 20px minmax(0, 1fr) 34px;
    flex: 0 0 120px;
    min-width: 120px;
    height: 40px;
    min-height: 40px;
    padding: 1px 4px;
  }
  html.game-active.keyboard-open .pav { width: 32px; height: 36px; }
  html.game-active.keyboard-open .player-kick { display: none; }
  html.game-active.keyboard-open .board-wrap {
    grid-column: 1;
    grid-row: 3;
    min-height: 0;
  }
  html.game-active.keyboard-open .chat-col { display: none; }
  html.game-active.keyboard-open.keyboard-chat .game-shell {
    grid-template-rows: 44px 42px minmax(0, 1fr) 46px;
  }
  html.game-active.keyboard-open.keyboard-chat .chat-col {
    display: flex;
    grid-column: 1;
    grid-row: 4;
    height: 46px;
  }
  html.game-active.keyboard-open.keyboard-chat .chat-log { display: none; }
  html.game-active.keyboard-open.keyboard-chat .chat-in { height: 46px; min-height: 46px; }
}
