/* Casino theme — bright, neon, gold, animated */
:root {
  --bg-deep: #1a0033;
  --bg-mid: #2d0052;
  --gold: #ffd700;
  --gold-2: #ff9500;
  --red: #ff003c;
  --red-2: #c8002a;
  --pink: #ff2db4;
  --cyan: #00f0ff;
  --green: #00ff88;
  --purple: #b026ff;
  --ink: #0a0014;
  --cream: #fff6e0;

  --font-display: 'Bowlby One', 'Russo One', 'Bebas Neue', system-ui, sans-serif;
  --font-body: 'Russo One', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  background:
    radial-gradient(ellipse at 20% 10%, #501080 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, #a01060 0%, transparent 55%),
    linear-gradient(180deg, #1a0033 0%, #0a0020 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--cream);
  overflow-x: hidden;
}

/* Animated marquee dots all over background */
.bg-stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255,215,0,0.5) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,45,180,0.5) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(0,240,255,0.5) 1px, transparent 1.5px);
  background-size: 80px 80px, 110px 110px, 140px 140px;
  background-position: 0 0, 30px 50px, 60px 20px;
  animation: starShift 18s linear infinite;
  opacity: 0.45;
}
@keyframes starShift {
  to { background-position: 80px 80px, 140px 160px, 200px 160px; }
}

.app { position: relative; z-index: 1; min-height: 100vh; }

/* Header */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(20,0,40,0.85), rgba(20,0,40,0.4));
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.logo {
  font-family: var(--font-display);
  font-size: 32px; line-height: 1;
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 10px;
}
.logo .l-z { color: var(--gold); text-shadow: 0 0 14px rgba(255,215,0,0.7), 0 0 30px rgba(255,215,0,0.4); animation: zPulse 1.4s ease-in-out infinite; }
.logo .l-r { color: var(--red); text-shadow: 0 0 14px rgba(255,0,60,0.7); }
.logo .chip {
  width: 36px; height: 36px; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff003c 0 25%, #fff 0 50%, #00f0ff 0 75%, #ffd700 0);
  border: 3px solid var(--gold);
  box-shadow: 0 0 20px rgba(255,215,0,0.6), inset 0 0 8px rgba(0,0,0,0.5);
  animation: chipSpin 6s linear infinite;
}
@keyframes chipSpin { to { transform: rotate(360deg); } }
@keyframes zPulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.06);} }

.header-right { display: flex; align-items: center; gap: 14px; }

.balance {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #2a0050, #100025);
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 18px rgba(255,215,0,0.4), inset 0 0 12px rgba(0,0,0,0.4);
  font-family: var(--font-display); font-size: 22px;
  color: var(--gold);
}
.balance .coin {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff7c0, #ffd700 50%, #c08000 100%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.4), 0 0 6px rgba(255,215,0,0.6);
  display: grid; place-items: center;
  font-size: 14px; color: #6b4400; font-weight: 900;
  animation: coinFlip 3s ease-in-out infinite;
}
@keyframes coinFlip { 0%,100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }

.balance.bump { animation: balanceBump 0.5s ease; }
@keyframes balanceBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); box-shadow: 0 0 30px var(--gold); }
  100% { transform: scale(1); }
}

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(0,0,0,0.4);
  color: var(--gold);
  font-size: 20px; cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.15s;
}
.icon-btn:hover { background: var(--gold); color: #2a0050; transform: scale(1.08); }

/* Tabs */
.tabs {
  display: flex; flex-wrap: wrap; gap: 12px; padding: 18px 28px 6px; justify-content: center;
}
.tab {
  font-family: var(--font-display);
  background: linear-gradient(180deg, #3a0070, #1a0040);
  color: var(--cream);
  border: 3px solid #6020a0;
  padding: 12px 30px;
  font-size: 22px;
  border-radius: 16px 16px 0 0;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
  position: relative;
}
.tab:hover { transform: translateY(-2px); }
.tab.active {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a0050;
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(255,215,0,0.6);
}

/* Marquee bulb border */
.marquee-frame {
  position: relative;
  border: 6px solid var(--gold);
  border-radius: 26px;
  background: linear-gradient(180deg, #2d0052 0%, #18002e 100%);
  box-shadow:
    0 0 60px rgba(255,215,0,0.35),
    inset 0 0 60px rgba(0,0,0,0.5);
  padding: 30px;
}
.marquee-frame::before, .marquee-frame::after {
  content: ''; position: absolute; inset: -3px; border-radius: 26px;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12px 12px, var(--gold) 4px, transparent 5px),
    radial-gradient(circle at 12px 12px, var(--red) 4px, transparent 5px);
  background-size: 28px 100%, 28px 100%;
  background-position: 0 0, 14px 0;
  background-repeat: repeat-x, repeat-x;
  -webkit-mask: linear-gradient(#000,#000) padding-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor; mask-composite: exclude;
  border: 14px solid transparent;
  animation: bulbFlash 0.6s steps(2) infinite;
}
.marquee-frame::after { animation-delay: 0.3s; opacity: 0.6; }
@keyframes bulbFlash { 0% { filter: brightness(1.2);} 100% { filter: brightness(0.55);} }

.game-area { padding: 18px 28px 80px; max-width: 1200px; margin: 0 auto; }

.games-section {
  display: block;
}
.games-bar {
  max-width: 1040px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 2px solid rgba(255,215,0,0.38);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(58,0,112,0.92), rgba(22,0,46,0.92));
  box-shadow: 0 12px 28px rgba(0,0,0,0.28), inset 0 0 18px rgba(255,215,0,0.08);
}
.games-bar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
  color: var(--gold);
  font: 20px var(--font-display);
  letter-spacing: 0;
}
.games-bar-title span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.3);
}
.game-switcher {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.game-choice {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--cream);
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
  text-align: left;
}
.game-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(255,215,0,0.42);
}
.game-choice.active {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a0050;
  border-color: #fff0a0;
  box-shadow: 0 0 22px rgba(255,215,0,0.52);
}
.game-choice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 24px;
}
.game-choice.active .game-choice-icon {
  background: rgba(42,0,80,0.14);
  border-color: rgba(42,0,80,0.18);
}
.game-choice-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.game-choice-title {
  font: 17px var(--font-display);
  line-height: 1;
}
.game-choice-tag {
  font-size: 11px;
  color: rgba(255,246,224,0.64);
}
.game-choice.active .game-choice-tag {
  color: rgba(42,0,80,0.72);
}

/* ===== THIMBLES ===== */
.thimbles-frame {
  max-width: 1100px;
  margin: 0 auto;
}
.thimbles-bank {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.thimbles-bank > div {
  min-height: 64px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.34);
  background: rgba(0,0,0,0.18);
}
.thimbles-bank span {
  display: block;
  color: rgba(255,246,224,0.64);
  font-size: 11px;
  text-transform: uppercase;
}
.thimbles-bank b {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font: 22px var(--font-display);
}
.thimbles-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.thimbles-panel {
  align-self: stretch;
}
.thimbles-offer-preview {
  margin-top: 16px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(255,215,0,0.28);
  background: rgba(255,255,255,0.06);
}
.thimbles-offer-preview span {
  display: block;
  color: rgba(255,246,224,0.62);
  font-size: 11px;
  text-transform: uppercase;
}
.thimbles-offer-preview b {
  display: block;
  margin-top: 6px;
  color: #fff7c0;
  line-height: 1.25;
}
.thimbles-start {
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  font-size: 22px;
}
.thimbles-reset {
  width: 100%;
  margin-top: 10px;
}
.thimbles-table {
  min-height: 430px;
  padding: 16px;
  border-radius: 18px;
  border: 3px solid rgba(255,215,0,0.68);
  background:
    radial-gradient(ellipse at center, rgba(0,240,255,0.12), transparent 58%),
    linear-gradient(180deg, #27004a, #120022);
  box-shadow: inset 0 0 32px rgba(0,0,0,0.42), 0 0 24px rgba(255,215,0,0.2);
}
.thimbles-status {
  min-height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  color: #fff7c0;
  font-weight: 800;
  text-align: center;
}
.thimbles-status.shuffle {
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(0,240,255,0.22);
}
.thimbles-status.pick {
  color: var(--gold);
  box-shadow: 0 0 18px rgba(255,215,0,0.24);
}
.thimbles-stage {
  position: relative;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(255,215,0,0.18) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.18));
}
.thimbles-stage::after {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 28px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.42), transparent 70%);
}
.thimble-cup {
  position: absolute;
  z-index: 3;
  bottom: 54px;
  width: 150px;
  height: 156px;
  margin-left: -75px;
  border: 0;
  border-radius: 26px 26px 40px 40px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.22), transparent 18%, transparent 82%, rgba(0,0,0,0.22)),
    linear-gradient(180deg, #ff2b50 0%, #c8002a 58%, #720012 100%);
  box-shadow:
    inset 0 8px 0 rgba(255,255,255,0.22),
    inset 0 -12px 0 rgba(0,0,0,0.22),
    0 16px 18px rgba(0,0,0,0.42),
    0 0 0 4px #ffd700;
  cursor: pointer;
  transition: left .38s cubic-bezier(.18,.86,.22,1.08), transform .22s ease, filter .18s ease, box-shadow .18s ease;
}
.thimble-cup::before {
  content: '';
  position: absolute;
  left: -9px;
  right: -9px;
  bottom: -10px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff4aa, #c08000);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.25);
}
.thimble-cup::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 24px;
  width: 26px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0));
  transform: rotate(8deg);
}
.thimble-cup:disabled {
  cursor: default;
}
.thimble-cup:not(:disabled):hover {
  filter: brightness(1.08);
  transform: translateY(-6px);
}
.thimble-cup.lifted {
  transform: translateY(-72px) rotate(-4deg);
}
.thimble-cup.selected {
  box-shadow:
    inset 0 8px 0 rgba(255,255,255,0.22),
    inset 0 -12px 0 rgba(0,0,0,0.22),
    0 16px 18px rgba(0,0,0,0.42),
    0 0 0 5px #ffffff,
    0 0 28px rgba(255,255,255,0.48);
}
.thimble-cup.right {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.22), transparent 18%, transparent 82%, rgba(0,0,0,0.22)),
    linear-gradient(180deg, #00ff88 0%, #00a85d 58%, #005c35 100%);
}
.thimble-cup.wrong {
  filter: saturate(.82) brightness(.88);
}
.cup-mark {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 58px;
  height: 58px;
  margin-left: -29px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(255,255,255,0.38), rgba(255,255,255,0.08) 42%, rgba(0,0,0,0.18) 100%);
  border: 2px solid rgba(255,246,224,0.2);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.14);
  opacity: 0.72;
}
.thimble-offer {
  position: absolute;
  z-index: 2;
  bottom: 44px;
  width: 112px;
  margin-left: -56px;
  display: grid;
  place-items: center;
  gap: 4px;
  transition: left .38s cubic-bezier(.18,.86,.22,1.08), transform .2s ease;
  animation: thimbleOfferPop .34s ease both;
}
.thimble-offer span {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: #2a0050;
  font: 10px var(--font-display);
}
@keyframes thimbleOfferPop {
  from { opacity: 0; transform: translateY(12px) scale(.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.thimbles-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.thimbles-actions button {
  min-height: 44px;
  border-radius: 10px;
  border: 2px solid rgba(255,215,0,0.4);
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font: 13px var(--font-display);
  cursor: pointer;
}
.thimbles-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}
.thimbles-actions button:not(:disabled):hover {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a0050;
}

/* ===== SOLITAIRE / WINDOWS 98 ===== */
.solitaire-shell {
  max-width: 1120px;
  margin: 0 auto;
}
.sol-game-card {
  border: 6px solid var(--gold);
  border-radius: 22px;
  background: linear-gradient(180deg, #2d0052, #120022);
  box-shadow:
    0 0 60px rgba(255,215,0,0.28),
    0 24px 50px rgba(0,0,0,0.45),
    inset 0 0 38px rgba(0,0,0,0.42);
  overflow: hidden;
}
.sol-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 3px solid rgba(255,215,0,0.7);
  background: linear-gradient(180deg, rgba(58,0,112,0.94), rgba(18,0,34,0.94));
  color: var(--cream);
}
.sol-game-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 158px;
  color: var(--gold);
  font: 20px var(--font-display);
}
.sol-game-title span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,215,0,0.34);
}
.sol-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sol-actions button {
  min-height: 36px;
  padding: 6px 12px;
  border: 2px solid rgba(255,215,0,0.52);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font: 12px var(--font-display);
  cursor: pointer;
}
.sol-actions button:hover {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a0050;
}
.sol-counters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: rgba(255,246,224,0.78);
  font-size: 13px;
}
.sol-counters span {
  white-space: nowrap;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.2);
  background: rgba(0,0,0,0.16);
}
.sol-board {
  --sol-card-w: 104px;
  --sol-card-h: 146px;
  --sol-gap: clamp(12px, 2.1vw, 28px);
  --sol-layout-w: min(100%, 930px);
  min-height: 650px;
  padding: 22px 26px 28px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.018) 0 2px, transparent 2px 7px),
    #008000;
  border: 0;
  overflow-x: auto;
}
.sol-top {
  display: grid;
  grid-template-columns: var(--sol-card-w) var(--sol-card-w) minmax(52px, 1fr) repeat(4, var(--sol-card-w));
  gap: var(--sol-gap);
  align-items: start;
  width: var(--sol-layout-w);
  min-width: calc(var(--sol-card-w) * 7 + 52px + var(--sol-gap) * 6);
  margin: 0 auto;
}
.sol-spacer {
  min-width: 52px;
}
.sol-slot {
  position: relative;
  width: var(--sol-card-w);
  height: var(--sol-card-h);
  padding: 0;
  border: 2px solid rgba(255,255,255,0.62);
  border-radius: 5px;
  background: rgba(0,80,0,0.42);
  cursor: pointer;
}
.sol-slot > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.35);
  font: 54px Georgia, serif;
}
.sol-slot > span.red {
  color: rgba(255,190,190,0.55);
}
.sol-recycle {
  color: rgba(255,255,255,0.8) !important;
}
.sol-tableau {
  display: grid;
  grid-template-columns: repeat(7, var(--sol-card-w));
  gap: var(--sol-gap);
  align-items: start;
  justify-content: space-between;
  width: var(--sol-layout-w);
  min-width: calc(var(--sol-card-w) * 7 + var(--sol-gap) * 6);
  margin: 32px auto 0;
}
.sol-column {
  position: relative;
  min-height: 525px;
}
.sol-empty-column {
  width: var(--sol-card-w);
  height: var(--sol-card-h);
  border: 2px solid rgba(255,255,255,0.28);
  border-radius: 5px;
  background: rgba(0,70,0,0.22);
}
.sol-card-wrap {
  position: absolute;
  left: 0;
  width: var(--sol-card-w);
  height: var(--sol-card-h);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sol-card {
  position: relative;
  width: var(--sol-card-w);
  height: var(--sol-card-h);
  border-radius: 4px;
  overflow: hidden;
  user-select: none;
  font-family: "Times New Roman", Georgia, serif;
}
.sol-card.face {
  background: #fff;
  border: 1px solid #000;
  color: #111;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.35);
}
.sol-card.face.red {
  color: #d00000;
}
.sol-card.face.selected {
  outline: 2px solid #ffff00;
  outline-offset: -3px;
  box-shadow: 0 0 0 3px #000080, 1px 1px 0 rgba(0,0,0,0.35);
}
.sol-card.back {
  border: 1px solid #000;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.35);
}
.sol-card.back span {
  position: absolute;
  inset: 7px;
  border: 1px solid #000080;
  border-radius: 2px;
  background-color: #0000a8;
  background-image:
    linear-gradient(45deg, transparent 0 39%, #ffffff 40% 45%, transparent 46% 100%),
    linear-gradient(-45deg, transparent 0 39%, #ffffff 40% 45%, transparent 46% 100%),
    linear-gradient(45deg, transparent 0 39%, #d00000 40% 45%, transparent 46% 100%),
    linear-gradient(-45deg, transparent 0 39%, #d00000 40% 45%, transparent 46% 100%);
  background-size: 18px 18px, 18px 18px, 18px 18px, 18px 18px;
  background-position: 0 0, 0 0, 9px 9px, 9px 9px;
  image-rendering: pixelated;
}
.sol-card.back b {
  position: absolute;
  right: 9px;
  bottom: 7px;
  color: #fff;
  font: 10px Tahoma, sans-serif;
  text-shadow: 1px 1px 0 #000080;
}
.sol-card-corner {
  position: absolute;
  display: grid;
  justify-items: center;
  min-width: 21px;
  font-weight: 700;
  line-height: 0.82;
  z-index: 2;
}
.sol-card-corner b {
  font-size: 19px;
  line-height: 0.92;
}
.sol-card-corner span {
  font-size: 19px;
}
.sol-card-corner.top {
  top: 5px;
  left: 5px;
}
.sol-card-corner.bottom {
  right: 5px;
  bottom: 5px;
  transform: rotate(180deg);
}
.sol-card-pips {
  position: absolute;
  inset: 0;
}
.sol-pip {
  position: absolute;
  font-size: 30px;
  line-height: 1;
}
.sol-face-art {
  position: absolute;
  inset: 25px 21px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid currentColor;
  background: rgba(0,0,0,0.02);
}
.sol-face-art b {
  font-size: 39px;
  line-height: 1;
}
.sol-face-art span {
  font-size: 43px;
  line-height: 1;
}

/* ===== SLOT CABINET — Bier-Haus style ===== */
.slot-title { display: none; }
.slot-sub { display: none; }

.cabinet {
  max-width: 1040px; margin: 0 auto;
  background:
    radial-gradient(ellipse at top, #5a1a8a 0%, #2a0050 60%, #100025 100%);
  border-radius: 28px;
  padding: 18px;
  border: 6px solid #ffd700;
  box-shadow:
    0 0 80px rgba(255,215,0,0.35),
    0 30px 60px rgba(0,0,0,0.6),
    inset 0 0 80px rgba(0,0,0,0.5);
  position: relative;
}
.cabinet::after {
  content: ''; position: absolute; inset: 6px; border: 2px solid rgba(255,215,0,0.4); border-radius: 22px; pointer-events: none;
}

/* TOP MARQUEE */
.marquee-top {
  position: relative;
  background: radial-gradient(ellipse at center, #ff003c 0%, #800020 70%, #400010 100%);
  border-radius: 18px;
  padding: 18px 20px 14px;
  text-align: center;
  border: 4px solid #ffd700;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6), 0 6px 30px rgba(255,0,60,0.5);
  margin-bottom: 14px;
}
.marquee-bulbs {
  display: flex; justify-content: space-between;
  padding: 0 8px;
}
.marquee-bulbs.bottom { margin-top: 8px; }
.marquee-bulbs span {
  width: 12px; height: 12px; border-radius: 50%;
  background: #6b4400;
  box-shadow: inset 0 -2px 2px rgba(0,0,0,0.5);
  transition: all 0.1s;
}
.marquee-bulbs span.on {
  background: #fffac0;
  box-shadow: 0 0 14px #ffd700, 0 0 4px #fff;
}
.marquee-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 64px; line-height: 1;
  letter-spacing: 4px;
  margin: 6px 0 4px;
}
.marquee-title .mt-shadow,
.marquee-title .mt-front {
  position: absolute; left: 0; right: 0; top: 0;
}
.marquee-title .mt-shadow {
  color: transparent;
  -webkit-text-stroke: 2px #2a0050;
  filter: drop-shadow(4px 4px 0 #2a0050) drop-shadow(0 0 30px rgba(0,0,0,0.7));
  transform: translateY(2px);
}
.marquee-title .mt-front {
  background: linear-gradient(180deg, #fff7c0 0%, #ffd700 45%, #ff9500 85%, #c08000 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255,215,0,0.6));
  animation: titleShine 2s ease-in-out infinite;
  position: relative;
}
@keyframes titleShine {
  0%,100% { filter: drop-shadow(0 0 12px rgba(255,215,0,0.5)); }
  50%     { filter: drop-shadow(0 0 28px rgba(255,215,0,0.95)); }
}
.marquee-title { height: 64px; }
.marquee-sub {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 3px;
  color: #fff7c0;
  text-shadow: 0 1px 0 #400010, 0 0 8px rgba(255,215,0,0.5);
}

/* CABINET BODY: reels + side lamps + glass rail */
.cabinet-body {
  display: grid;
  grid-template-columns: 28px 1fr 100px;
  gap: 12px;
  align-items: stretch;
}
.side-rail {
  display: flex; flex-direction: column; gap: 10px;
  padding: 8px 0;
}
.side-lamps.small .lamp { width: 16px; height: 16px; }

/* GLASS / STEIN METER */
.glass-meter {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #1a0033, #0a0014);
  border: 3px solid #ffd700;
  border-radius: 14px;
  padding: 10px 6px;
  flex: 1;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.6);
}
.glass-label {
  font-family: var(--font-display); font-size: 10px;
  letter-spacing: 1px; color: var(--gold);
}
.glass-tube {
  position: relative; width: 56px; flex: 1;
  background: linear-gradient(180deg, rgba(0,240,255,0.08), rgba(0,240,255,0.18));
  border: 3px solid #c0d8ff;
  border-radius: 8px 8px 14px 14px;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.4);
  min-height: 200px;
}
.glass-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(180deg, #ffd700 0%, #ff9500 70%, #c08000 100%);
  transition: height 0.6s cubic-bezier(0.3, 1.4, 0.5, 1);
  box-shadow: 0 0 12px rgba(255,215,0,0.5);
}
.glass-fill .foam {
  position: absolute; top: -6px; left: 0; right: 0; height: 12px;
  background: radial-gradient(circle, #fff 2px, transparent 3px) 0 0/10px 10px;
  filter: drop-shadow(0 -2px 2px rgba(255,255,255,0.6));
}
.glass-ticks {
  position: absolute; inset: 0; pointer-events: none;
}
.glass-ticks span {
  position: absolute; left: 0; right: 0; height: 1px;
  background: rgba(255,255,255,0.4);
}
.glass-count {
  font-family: var(--font-display); font-size: 14px;
  color: var(--gold);
}

/* Scatter cell frame */
.scatter-frame {
  position: absolute; left: 6px; right: 6px;
  height: 130px;
  border: 3px dashed #FFB400;
  border-radius: 16px;
  pointer-events: none;
  z-index: 6;
  animation: scatterPulse 0.7s ease-in-out infinite alternate;
  box-shadow: 0 0 24px #FFB400, inset 0 0 18px rgba(255,180,0,0.5);
}
@keyframes scatterPulse { from { transform: scale(0.97); opacity: 0.7; } to { transform: scale(1.03); opacity: 1; } }

/* Free-spins mode tint over reel window */
.free-mode-tint {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(255,215,0,0.06) 0%, transparent 70%),
    linear-gradient(45deg, rgba(255,215,0,0.04) 0 8px, transparent 8px 16px);
  z-index: 3;
  animation: freeModePulse 1.6s ease-in-out infinite alternate;
}
@keyframes freeModePulse { from { opacity: 0.6; } to { opacity: 1; } }

/* FREE SPINS intro overlay */
.fs-intro {
  text-align: center;
  background: radial-gradient(ellipse at top, #ff003c 0%, #500015 70%);
  border: 6px solid #ffd700;
  border-radius: 28px;
  padding: 30px 50px;
  box-shadow: 0 0 100px #ffd700;
  animation: fsIntroIn 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
@keyframes fsIntroIn { from { transform: scale(0.4) rotate(-10deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.fs-stars { font-size: 32px; color: #ffd700; letter-spacing: 8px; }
.fs-title {
  font-family: var(--font-display);
  font-size: 54px;
  background: linear-gradient(180deg, #fff7c0, #ffd700, #ff9500);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(3px 4px 0 #2a0050);
  letter-spacing: 3px;
  margin: 8px 0;
  animation: bigWinShake 0.4s ease-in-out infinite alternate;
}
.fs-count {
  font-family: var(--font-display);
  font-size: 130px; line-height: 1;
  color: #fff7c0;
  text-shadow: 0 0 30px #ffd700, 4px 6px 0 #2a0050;
  margin: 4px 0;
}
.fs-sub {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 2px; color: var(--cream);
}

/* PICK BONUS */
.pick-bonus {
  background:
    radial-gradient(ellipse at top, #5a1a8a 0%, #2a0050 70%);
  border: 6px solid #ffd700;
  border-radius: 28px;
  padding: 26px 30px;
  max-width: 560px; width: 90%;
  text-align: center;
  box-shadow: 0 0 80px rgba(255,215,0,0.6);
  animation: fsIntroIn 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.pb-title {
  font-family: var(--font-display); font-size: 30px;
  background: linear-gradient(180deg, #fff7c0, #ffd700);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 3px 0 #2a0050);
  letter-spacing: 1px; margin-bottom: 4px;
}
.pb-sub { font-size: 14px; opacity: 0.85; margin-bottom: 14px; color: var(--cream); }
.pb-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pb-mug {
  aspect-ratio: 1/1;
  background: linear-gradient(180deg, #4a1090, #1a0033);
  border: 3px solid #ffd700;
  border-radius: 18px;
  cursor: pointer;
  display: grid; place-items: center;
  position: relative;
  transition: transform 0.15s;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.4), 0 4px 0 #0a0014;
  color: white;
  font-family: var(--font-display);
}
.pb-mug:hover:not(:disabled) { transform: translateY(-3px) scale(1.04); box-shadow: inset 0 -6px 0 rgba(0,0,0,0.4), 0 7px 0 #0a0014, 0 0 18px rgba(255,215,0,0.6); }
.pb-mug:disabled { cursor: not-allowed; }
.pb-mug.open { animation: mugOpen 0.4s ease; }
.pb-mug.open.coin { background: linear-gradient(180deg, #ffd700, #ff9500); color: #2a0050; }
.pb-mug.open.free { background: linear-gradient(180deg, #00ffaa, #00aa66); color: #002a18; }
.pb-mug.open.pop  { background: linear-gradient(180deg, #444, #111); color: #ff4060; }
@keyframes mugOpen {
  from { transform: rotateY(180deg) scale(0.8); }
  to   { transform: rotateY(0) scale(1); }
}
.pb-reveal { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pb-coin { font-size: 28px; line-height: 1; }
.pb-free { font-size: 28px; line-height: 1; }
.pb-stop { font-size: 24px; letter-spacing: 2px; }

.side-lamps {
  display: flex; flex-direction: column; justify-content: space-around;
  padding: 8px 0;
}
.side-lamps .lamp {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #6b1820 0%, #300008 70%);
  border: 2px solid #2a0050;
  box-shadow: inset 0 -2px 3px rgba(0,0,0,0.6);
  transition: all 0.15s;
}
.side-lamps .lamp.on {
  background: radial-gradient(circle at 30% 30%, #fff 0%, #ff5566 40%, #ff003c 80%);
  box-shadow: 0 0 16px #ff003c, 0 0 4px #fff, inset 0 -2px 3px rgba(0,0,0,0.3);
}

/* REEL WINDOW (3x3 grid) */
.reel-window {
  position: relative;
  background: #050008;
  border-radius: 18px;
  border: 5px solid #ffd700;
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.95),
    inset 0 0 0 2px rgba(0,0,0,0.6),
    0 0 30px rgba(255,215,0,0.3);
  padding: 8px;
  overflow: hidden;
}
.reels-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  position: relative;
  height: 390px; /* 3 rows × 130px */
}
.reel-3 {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, #1a0033 0%, #0a0014 50%, #1a0033 100%);
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.3);
}
.reel-3::before, .reel-3::after {
  content: ''; position: absolute; left: 0; right: 0; height: 36px;
  pointer-events: none; z-index: 5;
}
.reel-3::before { top: 0;    background: linear-gradient(180deg, rgba(0,0,0,0.85), transparent); }
.reel-3::after  { bottom: 0; background: linear-gradient(0deg,   rgba(0,0,0,0.85), transparent); }
.reel-strip-3 {
  display: flex; flex-direction: column;
}
.cell {
  height: 130px;
  display: grid; place-items: center;
  padding: 6px;
}

/* Symbol card */
.sym-card {
  width: 116px; height: 116px;
  border-radius: 16px;
  border: 3px solid #ffd700;
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow:
    inset 0 -8px 0 rgba(0,0,0,0.3),
    inset 0 4px 8px rgba(255,255,255,0.25),
    0 4px 12px rgba(0,0,0,0.5);
  overflow: hidden;
}
.sym-card::before {
  /* glossy highlight */
  content: ''; position: absolute; left: 6%; right: 6%; top: 4%; height: 42%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0));
  filter: blur(2px); pointer-events: none;
}
.sym-card-inner {
  width: 78%; height: 70%;
  background: white;
  border-radius: 12px;
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.15);
  position: relative; z-index: 1;
}
.sym-card-inner img { width: 86%; height: 86%; object-fit: contain; }
.sym-card.mfo-card .sym-card-inner {
  width: 100%;
  height: 90%;
  border-radius: 14px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12), 0 0 12px rgba(255,255,255,0.22);
}
.sym-card.mfo-card .sym-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sym-card.mfo-card .sym-label {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 5px;
  max-width: none;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(42,0,80,0.62);
  font-size: 9px;
  display: none;
}
.sym-card-inner.sym-glyph {
  background: rgba(255,255,255,0.92);
}
.sym-card-inner.sym-glyph svg { width: 90%; height: 90%; }
.sym-card.mfo-card { border-color: #ffd700; }
.sym-card.mfo-card::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 18px rgba(255,215,0,0.7);
  animation: mfoGlow 1s ease-in-out infinite alternate;
}
@keyframes mfoGlow { from { box-shadow: 0 0 8px rgba(255,215,0,0.5); } to { box-shadow: 0 0 22px rgba(255,215,0,1); } }
.mfo-badge {
  position: absolute; top: 3px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #ff003c, #800020);
  color: #fff7c0; font-family: var(--font-display);
  font-size: 9px; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 999px;
  border: 1.5px solid #ffd700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  z-index: 3;
  white-space: nowrap;
}
.sym-card .sym-fallback {
  font-family: var(--font-display);
  font-size: 38px; color: #2a0050;
}
.sym-label {
  position: relative; z-index: 1;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 10px; letter-spacing: 0.5px;
  color: white;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
  max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Win frame highlight per cell */
.win-frame {
  position: absolute;
  left: 6px; right: 6px;
  height: 130px;
  border: 4px solid #ffd700;
  border-radius: 16px;
  pointer-events: none;
  z-index: 6;
  animation: winFramePulse 0.6s ease-in-out infinite alternate;
}
@keyframes winFramePulse {
  from { transform: scale(0.97); filter: brightness(1); }
  to   { transform: scale(1.02); filter: brightness(1.5); }
}

/* SVG paylines layer */
.paylines-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 7;
}
@keyframes lineGlow {
  from { stroke-opacity: 0.7; }
  to   { stroke-opacity: 1; }
}

/* Anticipation glow on reel 3 */
.anticipation-glow {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 33.33%;
  background: radial-gradient(ellipse at center, rgba(255,215,0,0.35) 0%, transparent 70%);
  z-index: 4;
  pointer-events: none;
  animation: antiPulse 0.4s ease-in-out infinite alternate;
}
@keyframes antiPulse { from { opacity: 0.4;} to { opacity: 1;} }

/* Jackpot flash on whole reel area */
.jackpot-flash { animation: jpFlash 0.25s steps(2) infinite; }
@keyframes jpFlash {
  from { filter: brightness(1) hue-rotate(0); }
  to   { filter: brightness(1.4) hue-rotate(15deg); }
}

/* BIG WIN overlay */
.big-win {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  text-align: center;
  pointer-events: none;
  animation: bigWinIn 0.6s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes bigWinIn {
  from { transform: translate(-50%, -50%) scale(0.4) rotate(-8deg); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
}
.big-win-text {
  font-family: var(--font-display);
  font-size: 70px; line-height: 1;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #fff7c0 0%, #ffd700 50%, #ff9500 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 6px #ff003c)
    drop-shadow(0 0 24px #ffd700)
    drop-shadow(4px 5px 0 #2a0050);
  animation: bigWinShake 0.5s ease-in-out infinite alternate;
}
.big-win.jp .big-win-text { font-size: 96px; animation: bigWinSpin 1.2s linear infinite; }
@keyframes bigWinShake {
  from { transform: rotate(-2deg) scale(1); }
  to   { transform: rotate(2deg) scale(1.05); }
}
@keyframes bigWinSpin {
  0%   { transform: rotate(-3deg) scale(1); }
  25%  { transform: rotate(3deg) scale(1.08); }
  50%  { transform: rotate(-2deg) scale(1.04); }
  75%  { transform: rotate(2deg) scale(1.1); }
  100% { transform: rotate(-3deg) scale(1); }
}
.big-win-amount {
  font-family: var(--font-display);
  font-size: 40px;
  color: #fff;
  margin-top: 6px;
  text-shadow: 0 0 12px #00ff88, 0 2px 0 #2a0050;
}

/* CONTROL PANEL */
.control-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 18px;
  background:
    linear-gradient(180deg, #2a0050 0%, #100025 100%);
  border: 4px solid #ffd700;
  border-radius: 18px;
  box-shadow: inset 0 0 22px rgba(0,0,0,0.7), 0 4px 18px rgba(0,0,0,0.5);
}
.cp-left, .cp-right { display: flex; align-items: center; gap: 14px; }
.cp-right { justify-content: flex-end; }
.cp-block { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cp-label {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 2px; color: var(--gold);
  text-shadow: 0 1px 0 #000;
}
.cp-bet {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 4px 8px;
}
.cp-bet button {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff8090, var(--red) 70%);
  color: white; border: 2px solid #ffd700;
  font-size: 22px; font-weight: 900; cursor: pointer;
  box-shadow: 0 3px 0 #500015;
}
.cp-bet button:disabled { opacity: 0.5; }
.cp-bet button:hover { filter: brightness(1.15); }
.cp-bet-val {
  font-family: var(--font-display); font-size: 24px; color: var(--gold);
  min-width: 86px; text-align: center;
}
.cp-btn {
  font-family: var(--font-display);
  letter-spacing: 1px; font-size: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 3px solid #ffd700;
  background: linear-gradient(180deg, #4a1090, #2a0050);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 0 #1a0033, inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.1s;
}
.cp-btn:hover { transform: translateY(-1px); }
.cp-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #1a0033; }
.cp-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cp-btn.max {
  background: linear-gradient(180deg, #ff5566, var(--red));
  box-shadow: 0 4px 0 #500015, inset 0 1px 0 rgba(255,255,255,0.3);
}
.cp-btn.auto.on {
  background: linear-gradient(180deg, #00ffaa, #00aa66);
  color: #002a18;
}

.cp-mid { display: grid; place-items: center; }

/* MEGA SPIN BUTTON */
.spin-mega {
  position: relative;
  width: 170px; height: 170px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  isolation: isolate;
}
.spin-mega:disabled { cursor: not-allowed; opacity: 0.6; }
.spin-mega-bg {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ff8090 0%, var(--red) 45%, #800020 100%);
  border: 6px solid #ffd700;
  box-shadow:
    0 0 0 4px #c08000,
    0 0 40px rgba(255,0,60,0.7),
    inset 0 -10px 0 rgba(0,0,0,0.35),
    inset 0 8px 0 rgba(255,255,255,0.18);
  transition: transform 0.1s;
  animation: spinMegaPulse 1.4s ease-in-out infinite;
}
@keyframes spinMegaPulse {
  0%,100% { box-shadow: 0 0 0 4px #c08000, 0 0 30px rgba(255,0,60,0.6), inset 0 -10px 0 rgba(0,0,0,0.35), inset 0 8px 0 rgba(255,255,255,0.18); }
  50%     { box-shadow: 0 0 0 4px #c08000, 0 0 60px rgba(255,215,0,0.95), inset 0 -10px 0 rgba(0,0,0,0.35), inset 0 8px 0 rgba(255,255,255,0.18); }
}
.spin-mega:hover .spin-mega-bg { transform: scale(1.04); }
.spin-mega:active .spin-mega-bg { transform: scale(0.96); }
.spin-mega-text {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 38px; color: white;
  text-shadow: 2px 3px 0 #2a0050, 0 0 16px rgba(0,0,0,0.6);
  letter-spacing: 2px;
}

.lever {
  width: 38px; height: 110px;
  background: linear-gradient(180deg, #aaa, #555);
  border-radius: 16px;
  position: relative;
  border: 2px solid #222;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.5, 0, 0.5, 1);
  transform-origin: bottom center;
  margin-left: 6px;
}
.lever::before {
  content: ''; position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff8090, var(--red) 60%, #500015);
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
.lever.pulled { transform: rotate(60deg); }

.payout-table {
  display: flex; justify-content: center; gap: 22px;
  margin-top: 14px;
  flex-wrap: wrap;
  font-size: 12px; color: var(--cream); opacity: 0.85;
  letter-spacing: 0.5px;
}
.payout-table b { color: var(--gold); font-family: var(--font-display); letter-spacing: 1px; }

/* COIN RAIN */
.coin-rain {
  position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden;
}
.coin-rain span {
  position: absolute; top: -50px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff7c0 0%, #ffd700 45%, #c08000 100%);
  box-shadow:
    inset 0 -3px 4px rgba(0,0,0,0.4),
    0 0 12px rgba(255,215,0,0.6);
  animation: coinFall linear forwards;
}
.coin-rain span::after {
  content: '₽';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #6b4400; font-family: var(--font-display);
  font-size: 60%;
}
@keyframes coinFall {
  to { transform: translateY(110vh) rotate(var(--spin, 720deg)); }
}

/* ROULETTE */
.roulette-frame {
  overflow: hidden;
}
.roulette-bank {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.roulette-bank div {
  min-width: 0;
  border: 1px solid rgba(255,215,0,0.35);
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.36), rgba(255,255,255,0.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.roulette-bank span {
  display: block;
  color: rgba(255,246,224,0.68);
  font-size: 11px;
  text-transform: uppercase;
}
.roulette-bank b {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}
.roul-layout {
  display: grid; grid-template-columns: minmax(360px, 0.95fr) minmax(520px, 1.15fr); gap: 24px; align-items: start;
}
@media (max-width: 880px) {
  .roul-layout { grid-template-columns: 1fr; }
}

.calc-panel { padding: 18px; }
.roulette-control-panel {
  padding: 20px;
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(255,215,0,0.14), transparent 34%),
    rgba(0,0,0,0.18);
  border: 1px solid rgba(255,215,0,0.18);
}
.calc-panel h3 {
  font-family: var(--font-display); font-size: 26px; margin: 0 0 6px; color: var(--gold);
  letter-spacing: 1px;
}
.calc-panel h3 span {
  color: rgba(255,246,224,0.72);
  font-size: 16px;
}
.calc-panel .hint { font-size: 13px; opacity: 0.7; margin: 0 0 14px; }
.roulette-hint {
  min-height: 36px;
  line-height: 1.35;
}

.bet-amount {
  background: rgba(0,0,0,0.4); border: 2px solid var(--gold);
  border-radius: 14px; padding: 12px;
  margin-bottom: 14px;
}
.roulette-bet {
  background:
    linear-gradient(180deg, rgba(255,215,0,0.13), rgba(0,0,0,0.34)),
    rgba(0,0,0,0.42);
}
.bet-amount label { display: block; font-size: 13px; opacity: 0.7; margin-bottom: 6px; }
.bet-amount .row { display: flex; align-items: center; gap: 10px; }
.bet-amount input[type=range] { flex: 1; accent-color: var(--gold); }
.bet-amount .val { font-family: var(--font-display); font-size: 24px; color: var(--gold); min-width: 110px; text-align: right; }
.bet-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}
.bet-presets button {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,215,0,0.32);
  background: rgba(255,255,255,0.06);
  color: var(--cream);
  cursor: pointer;
  font: 12px var(--font-display);
  letter-spacing: 0;
}
.bet-presets button.on,
.bet-presets button.max {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a0050;
  border-color: #fff3a8;
}
.bet-presets button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.mfo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  max-height: 360px; overflow-y: auto;
  padding: 8px; border-radius: 14px;
  background: rgba(0,0,0,0.3); border: 2px solid #6020a0;
}
.roulette-mfo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 540px;
  gap: 9px;
  border-color: rgba(255,215,0,0.22);
}
.mfo-tile {
  position: relative;
  border-radius: 12px;
  padding: 10px 6px;
  cursor: pointer;
  text-align: center;
  border: 3px solid transparent;
  transition: transform 0.15s, border 0.15s, box-shadow 0.15s;
  background: linear-gradient(180deg, var(--c1, #444), var(--c2, #222));
  color: white;
}
.roulette-mfo-tile {
  min-height: 108px;
  padding: 10px 8px 8px;
  border-radius: 8px;
}
.mfo-tile:hover { transform: translateY(-2px); }
.mfo-tile.picked {
  border-color: var(--gold);
  box-shadow: 0 0 18px var(--gold);
  transform: translateY(-2px);
}
.mfo-tile.hot {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 0 12px rgba(255,215,0,0.12);
}
.hot-ribbon {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(0,0,0,0.48);
  border: 1px solid rgba(255,215,0,0.5);
  color: var(--gold);
  font: 9px var(--font-display);
}
.mfo-tile .pick-no {
  position: absolute; top: -8px; right: -8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: #2a0050;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 16px;
  border: 2px solid white;
}
.mfo-tile .mini-logo {
  width: 72px; height: 72px; margin: 0 auto 8px;
  background: white; border-radius: 12px;
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2);
}
.mfo-tile .mini-logo img { width: 94%; height: 94%; object-fit: contain; }
.mfo-tile .mini-logo .ml-fallback { font-family: var(--font-display); font-size: 26px; color: #2a0050; }
.mfo-tile .mfo-name { font-size: 11px; line-height: 1.2; word-break: break-word; }
.mfo-payout {
  margin-top: 5px;
  color: #fff5b8;
  font-size: 10px;
  font-weight: 700;
}

/* Wheel */
.wheel-stage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px;
  position: relative;
  min-height: 460px;
}
.roulette-wheel-stage {
  min-height: 620px;
  padding-top: 20px;
}
.wheel-wrap {
  position: relative; width: 420px; height: 420px;
  max-width: 100%;
}
.roulette-wheel-wrap {
  width: min(560px, 92vw);
  height: auto;
  aspect-ratio: 1 / 1;
}
.wheel-pointer {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 36px solid var(--red);
  filter: drop-shadow(0 0 6px var(--gold));
  z-index: 5;
}
.wheel-pointer span {
  position: absolute;
  top: -31px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font: 9px var(--font-display);
  letter-spacing: 0;
}
.wheel-pointer::after {
  content: ''; position: absolute; left: -8px; top: -38px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); border: 2px solid white;
}
.wheel {
  width: 100%; aspect-ratio: 1/1;
  border-radius: 50%;
  position: relative;
  transition: transform 5s cubic-bezier(0.15, 0.9, 0.2, 1);
  box-shadow:
    0 0 0 8px var(--gold),
    0 0 0 12px #c08000,
    0 0 60px rgba(255,215,0,0.5),
    inset 0 0 40px rgba(0,0,0,0.4);
}
.roulette-wheel {
  overflow: hidden;
  box-shadow:
    0 0 0 10px var(--gold),
    0 0 0 16px #c8002a,
    0 0 0 20px #fff2a8,
    0 0 70px rgba(255,215,0,0.52),
    inset 0 0 48px rgba(0,0,0,0.45);
}
.roulette-wheel.spinning {
  filter: saturate(1.18) brightness(1.06);
}
.wheel-sector-brand {
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.42));
}
.wheel-sector-brand-bg {
  fill: rgba(255,255,255,0.96);
  stroke: rgba(255,215,0,0.94);
  stroke-width: 2.5;
}
.wheel-sector-brand.picked .wheel-sector-brand-bg {
  fill: #fff7ce;
  stroke: #ffffff;
  stroke-width: 4;
}
.wheel-sector-brand image {
  filter: saturate(1.04) contrast(1.04);
}
.wheel-sector-brand-name {
  fill: #260041;
  font: 8px var(--font-display);
  letter-spacing: 0;
  dominant-baseline: middle;
}
.wheel-offer-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.wheel-offer-chip {
  position: absolute;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, #ffffff 0%, #ffffff 52%, #e9def8 100%);
  border: 2px solid rgba(255,215,0,0.86);
  box-shadow:
    0 3px 0 rgba(0,0,0,0.26),
    0 0 10px rgba(0,0,0,0.28),
    inset 0 -2px 0 rgba(42,0,80,0.16);
}
.wheel-offer-chip.picked {
  border-color: var(--gold);
  box-shadow:
    0 0 18px var(--gold),
    0 4px 0 rgba(0,0,0,0.24),
    inset 0 0 0 2px #fff;
}
.wheel-offer-chip .mini-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}
.wheel-offer-chip .mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wheel-offer-chip .ml-fallback {
  color: #2a0050;
  font: 20px var(--font-display);
  line-height: 1;
}
.wheel-bulbs {
  position: absolute; inset: -22px; pointer-events: none;
  border-radius: 50%;
  z-index: 4;
}
.wheel-bulbs span {
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.wheel-bulbs span.b-on { background: var(--cream); box-shadow: 0 0 12px var(--cream); }

.wheel-hub {
  position: absolute; top: 50%; left: 50%;
  width: 80px; height: 80px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--gold) 50%, #b07d00 100%);
  border: 5px solid #2a0050;
  z-index: 3;
  box-shadow: 0 0 20px rgba(255,215,0,0.6);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 28px; color: #2a0050;
}
.roulette-hub {
  width: 98px;
  height: 98px;
  border-width: 6px;
  z-index: 6;
  align-content: center;
  gap: 0;
}
.roulette-hub span {
  line-height: 0.9;
  font-size: 34px;
}
.roulette-hub small {
  margin-top: -8px;
  color: #7b0030;
  font-size: 14px;
}

.spin-roul-btn {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 26px;
  background: linear-gradient(180deg, #00ffaa, #00aa66);
  color: #002a18; border: 4px solid var(--gold);
  padding: 14px 38px; border-radius: 999px;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 6px 0 #007040, 0 0 24px rgba(0,255,160,0.5);
}
.roulette-spin-btn {
  min-width: min(420px, 100%);
  min-height: 68px;
  border-radius: 14px;
  font-size: 28px;
  background: linear-gradient(180deg, #fff2a8 0%, var(--gold) 32%, #ff5a00 100%);
  color: #350018;
  border-color: #fff;
  box-shadow: 0 8px 0 #8d001e, 0 0 30px rgba(255,215,0,0.58);
}
.spin-roul-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.spin-roul-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #007040; }
.spin-roul-btn:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.3); }
.roulette-result-line {
  margin-top: 14px;
  min-height: 26px;
  color: rgba(255,246,224,0.78);
  font-size: 14px;
  text-align: center;
}
.roulette-result-line b {
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0;
}

/* Win modal */
.modal-bg {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  display: grid; place-items: center;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn { from { opacity: 0;} to { opacity: 1;} }
.win-card {
  background:
    linear-gradient(180deg, #fff7c0 0%, var(--gold) 30%, var(--gold-2) 100%);
  border: 6px solid var(--red);
  border-radius: 28px;
  padding: 30px 36px;
  max-width: 480px; width: 90%;
  text-align: center;
  color: #2a0050;
  position: relative;
  box-shadow: 0 0 80px var(--gold);
  animation: popIn 0.5s cubic-bezier(0.3, 1.4, 0.5, 1);
}
@keyframes popIn { from { transform: scale(0.5) rotate(-10deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.win-card h2 {
  font-family: var(--font-display); font-size: 48px; margin: 0 0 8px;
  background: linear-gradient(180deg, #c8002a, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #2a0050);
  letter-spacing: 2px;
}
.win-card .win-mfo {
  margin: 18px auto;
  width: 130px; height: 130px;
  background: white; border-radius: 22px;
  display: grid; place-items: center;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.15), 0 8px 0 rgba(0,0,0,0.15);
}
.win-card .win-mfo img { width: 80%; height: 80%; object-fit: contain; }
.win-card .win-mfo .ml-fallback { font-family: var(--font-display); font-size: 38px; color: #2a0050; }
.win-card .mfo-title { font-family: var(--font-display); font-size: 28px; margin: 6px 0 4px; }
.win-card .approval-line { font-size: 14px; opacity: 0.7; margin: 4px 0; }
.win-card .amount-big {
  font-family: var(--font-display);
  font-size: 56px; line-height: 1;
  color: #c8002a;
  text-shadow: 2px 2px 0 #2a0050;
  margin: 8px 0;
  letter-spacing: 1px;
}
.win-card .utp { font-size: 16px; font-weight: 700; margin: 6px 0 16px; }
.win-card .cta {
  display: inline-block; text-decoration: none;
  background: linear-gradient(180deg, #00ffaa, #00aa66);
  color: #002a18; font-family: var(--font-display);
  font-size: 22px;
  padding: 14px 36px; border-radius: 999px;
  border: 3px solid #2a0050;
  box-shadow: 0 5px 0 #2a0050;
  letter-spacing: 1px;
}
.win-card .cta:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #2a0050; }
.win-card .cta:active { transform: translateY(3px); box-shadow: 0 2px 0 #2a0050; }
.win-card .skip {
  display: block; margin-top: 14px;
  background: none; border: none; color: #2a0050; cursor: pointer;
  text-decoration: underline; font-family: inherit;
}

/* Lose modal */
.win-card.lose { background: linear-gradient(180deg, #4a1060, #2a0050); color: var(--cream); border-color: #6020a0; }
.win-card.lose h2 { background: linear-gradient(180deg, #fff, #ffaaaa); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #000); }
.win-card.lose .skip { color: var(--cream); }

/* Confetti */
.confetti {
  position: fixed; inset: 0; pointer-events: none; z-index: 99; overflow: hidden;
}
.confetti span {
  position: absolute; top: -10px;
  width: 10px; height: 16px;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0.4; }
}

/* Intro splash */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(circle at 50% 50%, #4a1090, #100025 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  animation: introOut 0.6s ease 0s forwards;
}
.intro.show { animation: none; }
.intro h1 {
  font-family: var(--font-display);
  font-size: 96px;
  margin: 0;
  background: linear-gradient(180deg, #fff7c0, var(--gold), var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 var(--red)) drop-shadow(0 0 30px rgba(255,215,0,0.6));
  letter-spacing: 4px;
  animation: titleBounce 1s ease infinite alternate;
}
@keyframes titleBounce {
  from { transform: translateY(-6px) scale(1); }
  to { transform: translateY(6px) scale(1.03); }
}
.intro .sub { font-size: 20px; opacity: 0.85; }
.intro .start-btn {
  font-family: var(--font-display);
  font-size: 28px;
  padding: 16px 48px;
  background: linear-gradient(180deg, #ff5566, var(--red));
  color: white; border: 5px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 40px rgba(255,0,60,0.6);
  cursor: pointer;
  margin-top: 12px;
  letter-spacing: 2px;
  animation: introPulse 1.2s ease-in-out infinite;
}
@keyframes introPulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.06);} }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(20,0,40,0.95);
  border: 2px solid var(--gold);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  z-index: 80;
  font-family: var(--font-display); letter-spacing: 1px;
  animation: toastUp 0.3s ease;
}
@keyframes toastUp { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* Footer disclaimer */
.disclaimer {
  text-align: center; padding: 16px 28px;
  font-size: 11px; opacity: 0.55; max-width: 900px; margin: 0 auto;
}

/* Button reset shared */
button { font-family: inherit; }


/* === ACCOUNTS / LEADERBOARD / PROFILE === */

/* Login screen */
.login-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,45,180,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(0,240,255,0.2) 0%, transparent 60%),
    linear-gradient(180deg, #1a0033 0%, #0a0020 100%);
}
.login-card {
  width: 100%;
  max-width: 460px;
  min-width: 0;
  background: linear-gradient(180deg, #2d0052 0%, #1a0033 100%);
  border: 4px solid var(--gold);
  border-radius: 24px;
  box-shadow:
    0 0 0 8px rgba(255,215,0,0.15),
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 0 40px rgba(255,215,0,0.08);
  padding: 0 0 28px;
  overflow: hidden;
  position: relative;
}
.login-marquee {
  background: linear-gradient(180deg, #c8002a 0%, #8a001c 100%);
  padding: 26px 24px 20px;
  border-bottom: 4px solid var(--gold);
  text-align: center;
  position: relative;
}
.login-marquee::before, .login-marquee::after {
  content: ''; position: absolute; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
  animation: lmBlink 0.9s steps(2) infinite;
}
.login-marquee::before { top: 6px; }
.login-marquee::after  { bottom: 6px; }
@keyframes lmBlink { 50% { opacity: 0.3; } }
.login-title {
  position: relative; display: block;
  font-family: var(--font-display);
  font-size: 36px; letter-spacing: 1px; line-height: 1.15;
  min-height: 42px;
}
.login-title .mt-shadow { display: none; }
.login-title .mt-front { text-shadow: none; }
.mt-shadow { position: absolute; left: 3px; top: 3px; color: #4a0010; }
.mt-front  { position: relative;
  background: linear-gradient(180deg, #fff6a0 0%, var(--gold) 50%, #b88800 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px #6a3a00;
}
.login-sub {
  margin-top: 10px; font-size: 13px; line-height: 1.2; color: var(--gold); letter-spacing: 3px;
}
.login-form { padding: 22px 22px 0; }
.lf-mode {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 12px;
}
.lf-mode button {
  min-height: 38px;
  background: rgba(10,0,30,0.62);
  border: 2px solid rgba(255,215,0,0.35);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
}
.lf-mode button.on {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a0050;
  border-color: #fff2a8;
}
.lf-row { display: flex; gap: 10px; align-items: stretch; }
.lf-row + .lf-row { margin-top: 10px; }
.avatar-pick {
  width: 64px; flex: 0 0 64px;
  background: linear-gradient(180deg, #3b1564 0%, #220836 100%);
  border: 2px solid var(--gold); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; transition: transform .12s;
}
.avatar-pick:hover { transform: translateY(-1px); }
.ap-emoji { font-size: 30px; line-height: 1; }
.ap-hint { color: var(--gold); font-size: 10px; }
.lf-input {
  flex: 1;
  background: rgba(10,0,30,0.7);
  border: 2px solid var(--gold);
  border-radius: 12px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  min-height: 46px;
  padding: 0 16px;
  outline: none;
  letter-spacing: 0.5px;
}
.lf-input:focus { box-shadow: 0 0 0 3px rgba(255,215,0,0.25); }
.lf-input[aria-invalid="true"] {
  border-color: #ff4b6a;
  box-shadow: 0 0 0 3px rgba(255,75,106,0.2);
}
.lf-input::placeholder { color: rgba(255,246,224,0.4); }
.lf-error {
  margin: 6px 4px 0 76px;
  color: #ff9aad;
  font-size: 12px;
  font-weight: 700;
}
.lf-row + .lf-error { margin-left: 4px; }
.lf-rules {
  margin: 12px 2px 0;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,215,0,0.18);
  border-radius: 10px;
  color: rgba(255,246,224,0.68);
  font-size: 12px;
  line-height: 1.45;
}
.lf-rules div::before {
  content: '• ';
  color: var(--gold);
}
.lf-rules div.ok {
  color: #82ffad;
}
.lf-rules div.ok::before {
  content: '✓ ';
  color: #82ffad;
}
.lf-alert {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255,0,64,0.16);
  border: 1px solid rgba(255,75,106,0.65);
  border-radius: 10px;
  color: #ffd7df;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.avatar-grid {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px;
  margin-top: 10px; padding: 10px; background: rgba(0,0,0,0.4);
  border-radius: 10px; border: 1px solid rgba(255,215,0,0.25);
}
.av-cell {
  background: rgba(255,255,255,0.05); border: 1px solid transparent; border-radius: 6px;
  font-size: 20px; padding: 4px 0; cursor: pointer; transition: all .12s;
}
.av-cell:hover { background: rgba(255,215,0,0.2); }
.av-cell.sel { background: var(--gold); border-color: #fff; }
.lf-go {
  width: 100%; margin-top: 16px;
  padding: 16px 20px;
  background: linear-gradient(180deg, #ff5a00 0%, #c8002a 100%);
  border: 3px solid var(--gold); border-radius: 14px;
  color: #fff; font-family: var(--font-display); font-size: 20px; letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 6px 0 #6a0014, 0 10px 30px rgba(255,90,0,0.4);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: transform .1s;
}
.lf-go:hover { transform: translateY(-1px); }
.lf-go:active { transform: translateY(2px); box-shadow: 0 4px 0 #6a0014; }
.lf-go:disabled {
  opacity: 0.68;
  cursor: wait;
  filter: saturate(0.75);
}
.lf-go:disabled:hover,
.lf-go:disabled:active {
  transform: none;
}
.lf-bonus { font-size: 12px; letter-spacing: 1px; color: var(--gold); }
.existing-list {
  margin-top: 18px; padding: 0 22px;
  border-top: 1px dashed rgba(255,215,0,0.25); padding-top: 16px;
}
.el-label { font-size: 12px; color: rgba(255,246,224,0.6); margin-bottom: 8px; letter-spacing: 1px; }
.el-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  margin-bottom: 6px;
}
.el-main {
  min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 10px; cursor: pointer; transition: all .12s;
  color: var(--cream); text-align: left; font-family: inherit;
}
.el-main:hover { background: rgba(255,215,0,0.1); border-color: var(--gold); }
.el-remove {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,75,106,0.42);
  background: rgba(255,0,64,0.12);
  color: #ff9aad;
  cursor: pointer;
  font: 900 20px/1 var(--font-body);
}
.el-remove:hover {
  border-color: #ff9aad;
  background: rgba(255,0,64,0.24);
}
.el-emoji { font-size: 22px; }
.el-name { flex: 1; font-size: 15px; }
.el-balance { font-size: 13px; color: var(--gold); }
.el-session {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(130,255,173,0.36);
  border-radius: 999px;
  color: #82ffad;
  font-size: 10px;
  letter-spacing: 0;
}

/* MFO rating */
.mfo-rating {
  max-width: 1180px;
  margin: 0 auto;
}
.rating-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
  padding: 24px 0 8px;
}
.rating-kicker {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.rating-hero h1 {
  margin: 8px 0 0;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
  color: #fff6e0;
  text-shadow: 2px 2px 0 #4a0010;
}
.rating-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.rating-metric {
  min-width: 0;
  border: 1px solid rgba(255,215,0,0.26);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(10,0,30,0.48);
}
.rm-value {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
}
.rm-label {
  margin-top: 3px;
  color: rgba(255,246,224,0.68);
  font-size: 11px;
}
.rating-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.rating-search {
  flex: 1;
  min-height: 44px;
  border-radius: 10px;
  border: 2px solid rgba(255,215,0,0.42);
  background: rgba(10,0,30,0.62);
  color: var(--cream);
  padding: 0 14px;
  font: 15px var(--font-body);
  outline: none;
}
.rating-search:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.18);
}
.rating-sort {
  display: flex;
  gap: 8px;
}
.rating-sort button {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.28);
  background: rgba(255,255,255,0.05);
  color: var(--cream);
  padding: 0 12px;
  cursor: pointer;
  font: 13px var(--font-body);
}
.rating-sort button.on {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a0050;
  border-color: #fff2a8;
}
.rating-loading {
  margin-bottom: 12px;
  color: rgba(255,246,224,0.72);
}
.rating-list {
  display: grid;
  gap: 12px;
}
.mfo-rating-row {
  display: grid;
  grid-template-columns: 54px 74px minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,215,0,0.24);
  background: linear-gradient(180deg, rgba(45,0,82,0.84), rgba(20,0,44,0.84));
  box-shadow: 0 14px 36px rgba(0,0,0,0.26);
}
.mfo-place {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255,215,0,0.35);
  color: rgba(255,246,224,0.78);
  font-family: var(--font-display);
  font-size: 18px;
}
.mfo-place.top {
  color: #2a0050;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border-color: #fff2a8;
}
.mfo-logo {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid rgba(255,215,0,0.32);
  background: linear-gradient(135deg, var(--mfo-a, #ff5a00), var(--mfo-b, #c8002a));
}
.mfo-logo img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}
.mfo-logo span {
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
}
.mfo-main {
  min-width: 0;
}
.mfo-main-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.mfo-main h2 {
  margin: 0;
  color: #fff6e0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}
.mfo-product-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.mfo-product-line span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,215,0,0.16);
  color: rgba(255,246,224,0.72);
  font-size: 11px;
}
.mfo-score {
  flex: 0 0 auto;
  text-align: right;
  color: rgba(255,246,224,0.72);
}
.mfo-score strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}
.mfo-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.mfo-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.mfo-flag {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,215,0,0.12);
  color: rgba(255,246,224,0.72);
  font-size: 11px;
}
.mfo-flag.good {
  color: #82ffad;
  border-color: rgba(130,255,173,0.28);
}
.mfo-flag.danger {
  color: #ff9aad;
  border-color: rgba(255,75,106,0.3);
}
.mfo-actions {
  display: grid;
  gap: 8px;
}
.mfo-actions button,
.mfo-apply-link {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.32);
  text-align: center;
  cursor: pointer;
  font: 13px var(--font-display);
  letter-spacing: 0;
  text-decoration: none;
  display: grid;
  place-items: center;
}
.mfo-review-btn {
  background: linear-gradient(180deg, #ff5a00, #c8002a);
  color: #fff;
}
.mfo-more-btn {
  background: rgba(255,255,255,0.05);
  color: var(--cream);
}
.mfo-apply-link {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a0050;
}
.mfo-review-feed {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.mfo-empty-review {
  padding: 12px;
  border-radius: 8px;
  border: 1px dashed rgba(255,215,0,0.28);
  color: rgba(255,246,224,0.68);
  font-size: 13px;
}
.review-preview {
  padding: 12px;
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,215,0,0.12);
}
.review-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #fff6e0;
}
.review-preview-head b {
  color: var(--gold);
}
.review-preview-meta {
  margin-top: 4px;
  color: rgba(255,246,224,0.58);
  font-size: 12px;
}
.review-preview p {
  margin: 8px 0 0;
  color: rgba(255,246,224,0.84);
  font-size: 13px;
  line-height: 1.45;
}
.review-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.review-preview-tags span {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255,215,0,0.08);
  color: rgba(255,246,224,0.72);
  font-size: 10px;
}
.review-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5,0,15,0.78);
  backdrop-filter: blur(8px);
}
.review-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 22px;
  border-radius: 12px;
  border: 3px solid var(--gold);
  background: linear-gradient(180deg, #2d0052 0%, #120025 100%);
  box-shadow: 0 24px 70px rgba(0,0,0,0.58);
}
.review-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,215,0,0.36);
  background: rgba(0,0,0,0.3);
  color: var(--gold);
  cursor: pointer;
  font-size: 22px;
}
.review-modal-title {
  display: grid;
  gap: 4px;
  margin-right: 40px;
  margin-bottom: 18px;
}
.review-modal-title span {
  color: rgba(255,246,224,0.62);
  font-size: 12px;
}
.review-modal-title strong {
  color: #fff6e0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0;
}
.review-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.review-form-grid label,
.review-textarea {
  display: grid;
  gap: 6px;
  color: rgba(255,246,224,0.72);
  font-size: 12px;
}
.review-form-grid input,
.review-form-grid select,
.review-textarea textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 2px solid rgba(255,215,0,0.34);
  background: rgba(10,0,30,0.72);
  color: var(--cream);
  padding: 0 12px;
  font: 14px var(--font-body);
  outline: none;
}
.review-textarea textarea {
  min-height: 104px;
  resize: vertical;
  padding-top: 10px;
  line-height: 1.45;
}
.review-section {
  margin-top: 16px;
}
.review-section-title {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
}
.review-checks,
.factor-grid,
.rating-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.review-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.16);
  background: rgba(255,255,255,0.05);
  color: rgba(255,246,224,0.74);
  font-size: 12px;
}
.factor-grid button,
.rating-scale button {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.24);
  background: rgba(255,255,255,0.05);
  color: var(--cream);
  padding: 0 10px;
  cursor: pointer;
  font: 12px var(--font-body);
}
.factor-grid button.on,
.rating-scale button.on {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a0050;
  border-color: #fff2a8;
}
.rating-scale button {
  width: 36px;
  padding: 0;
  font-weight: 900;
}
.review-textarea {
  margin-top: 16px;
}
.review-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,0,64,0.15);
  border: 1px solid rgba(255,75,106,0.58);
  color: #ffd7df;
  text-align: center;
  font-size: 13px;
}
.review-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  border-radius: 12px;
  border: 3px solid var(--gold);
  background: linear-gradient(180deg, #ff5a00, #c8002a);
  color: #fff;
  cursor: pointer;
  font: 16px var(--font-display);
  letter-spacing: 1px;
}
.review-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Collector catalog */
.collector-catalog {
  max-width: 1180px;
  margin: 0 auto;
}
.collector-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
  padding: 24px 0 8px;
}
.collector-kicker {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.collector-hero h1 {
  margin: 8px 0 0;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
  color: #fff6e0;
  text-shadow: 2px 2px 0 #4a0010;
}
.collector-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.collector-metric {
  min-width: 0;
  border: 1px solid rgba(255,215,0,0.26);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(10,0,30,0.48);
}
.cm-value {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
}
.cm-label {
  margin-top: 3px;
  color: rgba(255,246,224,0.68);
  font-size: 11px;
}
.collector-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 10px;
  margin-bottom: 12px;
}
.collector-search-bar input {
  min-height: 48px;
  border-radius: 10px;
  border: 2px solid rgba(255,215,0,0.42);
  background: rgba(10,0,30,0.62);
  color: var(--cream);
  padding: 0 14px;
  font: 16px var(--font-body);
  outline: none;
}
.collector-search-bar input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.18);
}
.collector-search-bar button,
.collector-submit {
  border-radius: 10px;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #ff5a00, #c8002a);
  color: #fff;
  cursor: pointer;
  font: 14px var(--font-display);
  letter-spacing: 0;
}
.collector-not-found,
.collector-empty,
.collector-loading {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px dashed rgba(255,215,0,0.3);
  background: rgba(255,255,255,0.04);
  color: rgba(255,246,224,0.74);
  font-size: 13px;
}
.collector-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.collector-sort button {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.28);
  background: rgba(255,255,255,0.05);
  color: var(--cream);
  padding: 0 12px;
  cursor: pointer;
  font: 13px var(--font-body);
}
.collector-sort button.on {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a0050;
  border-color: #fff2a8;
}
.collector-list {
  display: grid;
  gap: 12px;
}
.collector-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.5fr) 180px;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,215,0,0.24);
  background: linear-gradient(180deg, rgba(45,0,82,0.84), rgba(20,0,44,0.84));
  box-shadow: 0 14px 36px rgba(0,0,0,0.26);
}
.collector-phone {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
}
.collector-company {
  margin-top: 6px;
  color: rgba(255,246,224,0.76);
  font-size: 13px;
}
.collector-link-line {
  margin-top: 4px;
  color: rgba(255,246,224,0.58);
  font-size: 12px;
  line-height: 1.35;
}
.collector-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.collector-badges span {
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.18);
  background: rgba(255,255,255,0.05);
  color: rgba(255,246,224,0.76);
  font-size: 11px;
}
.collector-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.collector-actions {
  display: grid;
  gap: 8px;
}
.collector-actions button {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.32);
  background: rgba(255,255,255,0.05);
  color: var(--cream);
  cursor: pointer;
  font: 13px var(--font-display);
  letter-spacing: 0;
}
.collector-actions button:first-child {
  background: linear-gradient(180deg, #ff5a00, #c8002a);
  color: #fff;
}
.collector-review-feed {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 2px;
}
.collector-no-reviews,
.collector-review {
  padding: 12px;
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,215,0,0.12);
}
.collector-no-reviews {
  color: rgba(255,246,224,0.68);
  font-size: 13px;
}
.collector-review-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #fff6e0;
}
.collector-review-meta {
  margin-top: 4px;
  color: rgba(255,246,224,0.58);
  font-size: 12px;
}
.collector-review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.collector-review-tags span {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255,75,106,0.12);
  border: 1px solid rgba(255,75,106,0.22);
  color: #ffbbc8;
  font-size: 10px;
}
.collector-review p {
  margin: 8px 0 0;
  color: rgba(255,246,224,0.84);
  font-size: 13px;
  line-height: 1.45;
}
.collector-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5,0,15,0.78);
  backdrop-filter: blur(8px);
}
.collector-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 22px;
  border-radius: 12px;
  border: 3px solid var(--gold);
  background: linear-gradient(180deg, #2d0052 0%, #120025 100%);
  box-shadow: 0 24px 70px rgba(0,0,0,0.58);
}
.collector-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,215,0,0.36);
  background: rgba(0,0,0,0.3);
  color: var(--gold);
  cursor: pointer;
  font-size: 22px;
}
.collector-modal-title {
  display: grid;
  gap: 4px;
  margin-right: 40px;
  margin-bottom: 18px;
}
.collector-modal-title span {
  color: rgba(255,246,224,0.62);
  font-size: 12px;
}
.collector-modal-title strong {
  color: #fff6e0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0;
}
.collector-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.collector-form-grid label,
.collector-textarea {
  display: grid;
  gap: 6px;
  color: rgba(255,246,224,0.72);
  font-size: 12px;
}
.collector-form-grid input,
.collector-form-grid select,
.collector-textarea textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 2px solid rgba(255,215,0,0.34);
  background: rgba(10,0,30,0.72);
  color: var(--cream);
  padding: 0 12px;
  font: 14px var(--font-body);
  outline: none;
}
.collector-section {
  margin-top: 16px;
}
.collector-section-title {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
}
.poop-scale,
.collector-checks,
.collector-factor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.poop-scale button,
.collector-factor-grid button {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.24);
  background: rgba(255,255,255,0.05);
  color: var(--cream);
  padding: 0 10px;
  cursor: pointer;
  font: 12px var(--font-body);
}
.poop-scale button.on,
.collector-factor-grid button.on {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a0050;
  border-color: #fff2a8;
}
.collector-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.16);
  background: rgba(255,255,255,0.05);
  color: rgba(255,246,224,0.74);
  font-size: 12px;
}
.collector-textarea {
  margin-top: 16px;
}
.collector-textarea textarea {
  min-height: 104px;
  resize: vertical;
  padding-top: 10px;
  line-height: 1.45;
}
.collector-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,0,64,0.15);
  border: 1px solid rgba(255,75,106,0.58);
  color: #ffd7df;
  text-align: center;
  font-size: 13px;
}
.collector-hint {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255,215,0,0.24);
  background: rgba(255,215,0,0.08);
  color: rgba(255,246,224,0.78);
  font-size: 12px;
  line-height: 1.4;
}
.collector-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
}
.collector-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 980px) {
  .games-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .games-bar-title {
    min-width: 0;
  }
  .game-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .thimbles-layout {
    grid-template-columns: 1fr;
  }
  .thimbles-panel {
    max-width: none;
  }
  .solitaire-shell {
    max-width: 100%;
  }
  .rating-hero,
  .collector-hero,
  .mfo-rating-row,
  .collector-card {
    grid-template-columns: 1fr;
  }
  .rating-summary,
  .collector-summary,
  .collector-risk-grid,
  .mfo-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mfo-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mfo-logo {
    width: 62px;
    height: 62px;
  }
  .rating-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .collector-search-bar {
    grid-template-columns: 1fr;
  }
  .rating-sort {
    flex-wrap: wrap;
  }
  .rating-sort button {
    flex: 1;
  }
  .roulette-bank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .thimbles-bank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roulette-wheel-stage {
    min-height: 560px;
  }
}

@media (max-width: 640px) {
  .tabs {
    padding-left: 12px;
    padding-right: 12px;
  }
  .tab {
    flex: 1 1 calc(50% - 8px);
    padding: 10px 12px;
    font-size: 16px;
    letter-spacing: 0;
    border-radius: 12px;
  }
  .game-area {
    padding-left: 12px;
    padding-right: 12px;
  }
  .games-bar {
    padding: 10px;
    border-radius: 14px;
  }
  .game-switcher {
    grid-template-columns: 1fr;
  }
  .game-choice {
    min-height: 58px;
  }
  .sol-game-card {
    margin: 0 -6px;
  }
  .sol-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .sol-counters {
    justify-content: flex-start;
  }
  .sol-board {
    --sol-card-w: 92px;
    --sol-card-h: 130px;
    --sol-gap: 12px;
    --sol-layout-w: 792px;
    min-height: 560px;
    padding: 12px;
  }
  .sol-column {
    min-height: 470px;
  }
  .sol-card-corner b,
  .sol-card-corner span {
    font-size: 16px;
  }
  .sol-pip {
    font-size: 26px;
  }
  .sol-face-art b {
    font-size: 34px;
  }
  .sol-face-art span {
    font-size: 38px;
  }
  .rating-hero h1 {
    font-size: 24px;
  }
  .rating-summary,
  .collector-summary,
  .mfo-stat-grid,
  .review-form-grid,
  .collector-form-grid,
  .collector-risk-grid,
  .mfo-actions {
    grid-template-columns: 1fr;
  }
  .collector-hero h1 {
    font-size: 24px;
  }
  .mfo-main-top {
    flex-direction: column;
  }
  .mfo-score {
    text-align: left;
  }
  .review-modal-bg {
    padding: 10px;
  }
  .review-modal {
    padding: 18px 14px;
  }
  .roulette-bank,
  .roulette-mfo-grid,
  .thimbles-bank {
    grid-template-columns: 1fr;
  }
  .thimbles-table {
    padding: 10px;
  }
  .thimbles-stage {
    height: 248px;
  }
  .thimble-cup {
    width: 96px;
    height: 118px;
    margin-left: -48px;
    bottom: 46px;
  }
  .cup-mark {
    top: 34px;
    width: 42px;
    height: 42px;
    margin-left: -21px;
  }
  .thimble-cup.lifted {
    transform: translateY(-58px) rotate(-4deg);
  }
  .thimble-offer {
    bottom: 36px;
    width: 88px;
    margin-left: -44px;
  }
  .thimble-offer .mfo-logo-img,
  .thimble-offer .sym-tile {
    transform: scale(.78);
  }
  .thimbles-actions {
    grid-template-columns: 1fr;
  }
  .roulette-bank b {
    font-size: 18px;
  }
  .roulette-wheel-wrap {
    width: min(410px, 90vw);
  }
  .wheel-sector-brand-name {
    font-size: 7px;
  }
  .roulette-hub {
    width: 74px;
    height: 74px;
  }
  .roulette-spin-btn {
    min-height: 58px;
    font-size: 21px;
  }
}

/* Header additions */
.lb-btn {
  background: linear-gradient(180deg, #ff5a00 0%, #c8002a 100%);
  border: 2px solid var(--gold); border-radius: 12px;
  color: #fff; font-family: var(--font-display); font-size: 14px; letter-spacing: 1.5px;
  padding: 8px 14px; cursor: pointer;
  box-shadow: 0 3px 0 #6a0014;
  transition: transform .1s;
}
.lb-btn:hover { transform: translateY(-1px); }
.lb-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 #6a0014; }
@media (max-width: 640px) { .lb-btn-text { display: none; } }
.profile-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,215,0,0.4); border-radius: 999px;
  cursor: pointer; color: var(--cream); font-family: var(--font-body);
  transition: all .12s;
}
.profile-pill:hover { background: rgba(255,215,0,0.15); border-color: var(--gold); }
.pp-emoji {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #ff2db4, #b026ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.pp-name { font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .pp-name { display: none; } }

@media (max-width: 420px) {
  .login-screen { padding: 12px; }
  .login-card { max-width: calc(100vw - 24px); }
  .login-marquee { padding: 22px 14px 16px; }
  .login-title { font-size: 23px; letter-spacing: 0; min-height: 28px; }
  .login-sub { font-size: 11px; letter-spacing: 2px; }
  .login-form { padding: 18px 16px 0; }
  .lf-mode button { font-size: 12px; letter-spacing: 0; }
  .avatar-pick { width: 56px; flex-basis: 56px; }
  .lf-input { font-size: 16px; padding: 0 12px; }
  .lf-error { margin-left: 68px; }
  .lf-go { font-size: 18px; letter-spacing: 1px; }
  .lf-rules { font-size: 11px; }
  .existing-list { padding-left: 16px; padding-right: 16px; }
}

/* Leaderboard modal */
.lb-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 86vh;
  background: linear-gradient(180deg, #2d0052 0%, #1a0033 100%);
  border: 4px solid var(--gold); border-radius: 20px;
  box-shadow: 0 0 0 6px rgba(255,215,0,0.15), 0 20px 60px rgba(0,0,0,0.6);
  padding: 22px 22px 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.lb-close {
  position: absolute; top: 10px; right: 12px;
  background: rgba(0,0,0,0.4); border: 2px solid var(--gold); color: var(--gold);
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.lb-close:hover { background: var(--gold); color: #1a0033; }
.lb-title {
  position: relative; text-align: center;
  font-family: var(--font-display); font-size: 34px; letter-spacing: 3px;
  margin-bottom: 14px;
}
.lb-tabs {
  display: flex; gap: 6px; margin-bottom: 12px;
  background: rgba(0,0,0,0.3); padding: 4px; border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.25);
}
.lb-tabs button {
  flex: 1; background: transparent; border: none; color: rgba(255,246,224,0.7);
  font-family: var(--font-body); font-size: 12px; letter-spacing: 1px;
  padding: 8px 6px; border-radius: 8px; cursor: pointer; transition: all .15s;
}
.lb-tabs button.on {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1a0033;
  box-shadow: 0 2px 8px rgba(255,215,0,0.4);
}
.lb-myrank {
  text-align: center; margin-bottom: 10px; color: var(--gold); font-size: 14px;
}
.lb-myrank b { font-size: 16px; }
.lb-list {
  overflow-y: auto; flex: 1;
  padding-right: 4px;
}
.lb-row {
  display: grid; grid-template-columns: 50px 36px 1fr auto;
  align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,215,0,0.18);
  border-radius: 10px;
  transition: all .15s;
}
.lb-row.top1 { background: linear-gradient(90deg, rgba(255,215,0,0.25), rgba(255,215,0,0.05)); border-color: var(--gold); }
.lb-row.top2 { background: linear-gradient(90deg, rgba(200,200,200,0.2), rgba(200,200,200,0.04)); border-color: #c0c0c0; }
.lb-row.top3 { background: linear-gradient(90deg, rgba(205,127,50,0.25), rgba(205,127,50,0.04)); border-color: #cd7f32; }
.lb-row.me {
  border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0,240,255,0.3);
  background: rgba(0,240,255,0.08);
}
.lb-rank { font-family: var(--font-display); font-size: 18px; color: var(--gold); text-align: center; }
.lb-emoji { font-size: 22px; text-align: center; }
.lb-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-val { font-family: var(--font-display); font-size: 16px; color: var(--gold); }

/* Profile modal */
.pm-card {
  position: relative;
  width: min(440px, 100%);
  background: linear-gradient(180deg, #2d0052 0%, #1a0033 100%);
  border: 4px solid var(--gold); border-radius: 20px;
  box-shadow: 0 0 0 6px rgba(255,215,0,0.15), 0 20px 60px rgba(0,0,0,0.6);
  padding: 24px 22px 18px;
  text-align: center;
}
.pm-head { margin-bottom: 20px; }
.pm-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #ff2db4, #b026ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  margin: 0 auto 8px;
  border: 3px solid var(--gold);
  box-shadow: 0 0 20px rgba(255,215,0,0.4);
}
.pm-name { font-family: var(--font-display); font-size: 24px; }
.pm-rank { color: var(--gold); font-size: 13px; margin-top: 4px; letter-spacing: 1px; }
.pm-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 16px;
}
.pm-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 10px; padding: 10px 8px;
}
.ps-val { font-family: var(--font-display); font-size: 18px; color: var(--gold); }
.ps-lbl { font-size: 11px; color: rgba(255,246,224,0.65); margin-top: 2px; letter-spacing: 0.5px; }
.pm-logout {
  width: 100%; padding: 12px;
  background: rgba(255,0,60,0.15);
  border: 2px solid rgba(255,0,60,0.5);
  color: #ff6b8a; border-radius: 10px;
  font-family: var(--font-body); font-size: 14px; letter-spacing: 1px;
  cursor: pointer; transition: all .15s;
}
.pm-logout:hover { background: rgba(255,0,60,0.3); color: #fff; }

/* Rank flash — celebratory notification when player rises into top 10 */
.rank-flash {
  position: fixed; top: 20%; left: 50%; transform: translateX(-50%);
  z-index: 200; pointer-events: none;
  animation: rfPop 2.8s ease-out forwards;
}
@keyframes rfPop {
  0%   { opacity: 0; transform: translateX(-50%) scale(0.5) rotate(-10deg); }
  15%  { opacity: 1; transform: translateX(-50%) scale(1.1) rotate(2deg); }
  25%  { transform: translateX(-50%) scale(1) rotate(0); }
  85%  { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.9) translateY(-30px); }
}
.rf-inner {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(180deg, #ff5a00 0%, #c8002a 100%);
  border: 4px solid var(--gold);
  border-radius: 20px;
  padding: 18px 28px;
  box-shadow: 0 0 0 6px rgba(255,215,0,0.2), 0 20px 60px rgba(0,0,0,0.5);
}
.rf-medal { font-size: 48px; animation: rfSpin 1.2s ease-out; }
@keyframes rfSpin { from { transform: rotate(-180deg) scale(0); } to { transform: rotate(0) scale(1); } }
.rf-line1 { font-family: var(--font-display); font-size: 22px; color: #fff; letter-spacing: 2px; }
.rf-line2 { font-size: 12px; color: var(--gold); letter-spacing: 1px; }

/* modal-bg may be defined already; add fallback */
.modal-bg {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: mbFade .2s ease-out;
}
@keyframes mbFade { from { opacity: 0; } }


/* === TOWER GAME === */
.tower-game { max-width: 1100px; margin: 0 auto; }
.tower-game .slot-title { font-size: 44px; margin-top: 4px; }
.tower-game .slot-sub { margin-bottom: 14px; }

.tower-layout {
  display: grid;
  grid-template-columns: 180px 1fr 200px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px) {
  .tower-layout { grid-template-columns: 1fr; }
  .tier-rail, .legend-rail { order: 2; }
  .tower-stage { order: 1; }
}

.tier-rail, .legend-rail {
  background: linear-gradient(180deg, #2d0052 0%, #1a0033 100%);
  border: 3px solid var(--gold);
  border-radius: 14px;
  padding: 12px 10px;
  box-shadow: inset 0 0 20px rgba(255,215,0,0.1);
}
.tier-rail-title {
  font-family: var(--font-display);
  text-align: center;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px dashed rgba(255,215,0,0.3);
}
.tier-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px;
  font-size: 13px;
  color: rgba(255,246,224,0.55);
  border-radius: 6px;
  transition: all .2s;
  margin-bottom: 2px;
}
.tier-row.reached {
  color: var(--gold);
  background: rgba(255,215,0,0.08);
  font-weight: bold;
}
.tier-row.current {
  background: linear-gradient(90deg, rgba(255,0,60,0.35), rgba(255,215,0,0.2));
  color: #fff;
  border: 1px solid var(--gold);
  animation: tierGlow 1s ease-in-out infinite alternate;
  box-shadow: 0 0 12px rgba(255,215,0,0.4);
}
@keyframes tierGlow { from { box-shadow: 0 0 4px rgba(255,215,0,0.3); } to { box-shadow: 0 0 16px rgba(255,215,0,0.6); } }
.tier-floor { font-family: var(--font-display); font-size: 12px; }
.tier-amount { font-family: var(--font-display); font-size: 12px; }

.legend-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: rgba(255,246,224,0.8);
  padding: 6px 4px;
}
.legend-icon {
  width: 24px; height: 12px; flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid #ffd700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 10px;
}
.legend-bouncy { background: linear-gradient(180deg, #fff4a0, #b07a00); }
.legend-icy    { background: linear-gradient(180deg, #d0f4ff, #0080a0); }
.legend-coin   { background: linear-gradient(180deg, #ffae5a, #c8002a); color: #ffd700; }
.legend-normal { background: linear-gradient(180deg, #a0408a, #4a1864); }
.legend-tip {
  margin-top: 10px; padding: 8px;
  background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.3);
  border-radius: 8px;
  font-size: 11px; line-height: 1.4;
  color: rgba(255,246,224,0.9);
}

/* Tower stage */
.tower-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #0a0014;
  border: 5px solid var(--gold);
  border-radius: 18px;
  box-shadow:
    0 0 0 4px #c08000,
    0 0 60px rgba(255,215,0,0.4),
    inset 0 0 30px rgba(0,0,0,0.8);
  overflow: hidden;
}
.tower-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 720;
  image-rendering: pixelated;
  background: #0a0014;
}
.tower-hud {
  position: absolute;
  top: 8px; left: 8px; right: 8px;
  display: flex; gap: 6px;
  z-index: 5;
}
.th-block {
  flex: 1;
  background: rgba(0,0,0,0.65);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 4px 6px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.th-block.th-loan {
  flex: 1.4;
  background: rgba(200,0,42,0.7);
  border-color: var(--gold);
  animation: thLoanPulse 1.5s ease-in-out infinite alternate;
}
@keyframes thLoanPulse {
  from { box-shadow: 0 0 4px rgba(255,215,0,0.4); }
  to   { box-shadow: 0 0 16px rgba(255,215,0,0.8); }
}
.th-lbl {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 1px;
}
.th-val {
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  line-height: 1;
}
.th-loan .th-val { font-size: 18px; color: #fff7c0; }

.tower-overlay {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(10,0,20,0.85);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: 30px 20px;
  text-align: center;
}
.to-title {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #fff6a0, var(--gold), #b07a00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #c8002a) drop-shadow(0 0 16px rgba(255,215,0,0.5));
}
.to-desc {
  font-size: 14px;
  color: var(--cream);
  line-height: 1.6;
}
.to-desc kbd {
  display: inline-block;
  background: var(--gold);
  color: #1a0033;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: bold;
  border: 1px solid #b07a00;
  box-shadow: 0 2px 0 #b07a00;
  margin: 0 2px;
}
.to-best {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1px;
}
.to-best b { font-size: 16px; }

.tower-pause-btn {
  position: absolute; top: 60px; right: 12px;
  z-index: 6;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.6);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}
.tower-pause-btn:hover { background: var(--gold); color: #1a0033; }

/* Touch controls */
.tower-touch {
  position: absolute; bottom: 10px; left: 8px; right: 8px;
  display: flex; gap: 8px;
  z-index: 6;
  pointer-events: none;
}
.tt-btn {
  pointer-events: auto;
  flex: 1;
  height: 56px;
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 12px;
  font-size: 26px;
  font-family: var(--font-display);
  cursor: pointer;
  user-select: none;
  touch-action: none;
  transition: all .08s;
}
.tt-btn:active {
  background: var(--gold); color: #1a0033;
  transform: scale(0.95);
}
.tt-btn.jump {
  flex: 1.3;
  background: rgba(200,0,42,0.5);
  border-color: var(--gold);
  color: #fff;
}
.tt-btn.jump:active { background: var(--gold); color: #1a0033; }

/* Hide touch controls on hover-capable devices that aren't touch */
@media (hover: hover) and (pointer: fine) {
  .tower-touch { opacity: 0.3; }
  .tower-touch:hover { opacity: 1; }
}


/* API source indicator */
.mfo-status {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255,246,224,0.7);
  cursor: help;
}
.mfo-status .ms-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #888;
  flex-shrink: 0;
}
.mfo-status.api { color: #6cffa0; border-color: rgba(0,255,136,0.45); }
.mfo-status.api .ms-dot { background: #00ff88; box-shadow: 0 0 8px #00ff88; animation: msPulse 1.6s ease-in-out infinite; }
.mfo-status.cache { color: var(--gold); border-color: rgba(255,215,0,0.45); }
.mfo-status.cache .ms-dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.mfo-status.fallback { color: #ff8a9a; border-color: rgba(255,0,60,0.45); }
.mfo-status.fallback .ms-dot { background: #ff003c; }
@keyframes msPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (max-width: 720px) {
  .mfo-status .ms-text { display: none; }
}
