/* M667 Slots: one stylesheet for the lobby and the game screen. Mobile first, dark only. */
:root {
  --bg: #0a1322;
  --bg-2: #0e1b30;
  --panel: #14253f;
  --panel-2: #1b3053;
  --line: rgba(255, 255, 255, .08);
  --text: #eef3ff;
  --muted: #8ea2c3;
  --gold: #ffcf3f;
  --gold-2: #ff9f0f;
  --green: #22c55e;
  --green-2: #15803d;
  --red: #ef4444;
  --blue: #2f7df6;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --app-w: 100vw; /* the UI's own width and height; app.js swaps them while the UI is rotated */
  --app-h: 100vh;
  --display: 'Lilita One', system-ui, sans-serif;
  color-scheme: dark;
}

@font-face { font-family: 'Lilita One'; src: url('../fonts/lilita-one.woff2') format('woff2'); font-display: swap; }

/* A phone held upright gets the whole UI turned 90° clockwise (app.js sets the size and transform),
   so the insets move with it: the UI's left edge is the device's top, and so on. */
html.rotated {
  --safe-t: env(safe-area-inset-right, 0px);
  --safe-r: env(safe-area-inset-bottom, 0px);
  --safe-b: env(safe-area-inset-left, 0px);
  --safe-l: env(safe-area-inset-top, 0px);
}
html.rotated body { right: auto; bottom: auto; transform-origin: 0 0; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  font: 500 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .35; cursor: default; }
input { font: inherit; -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }
.ic { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.coin {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c0, #ffcf3f 45%, #d98a00 80%);
  box-shadow: inset 0 0 0 2px rgba(120, 60, 0, .25);
}

.btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #34d36e, var(--green-2));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.btn.gold { color: #3a1c00; background: linear-gradient(180deg, #ffe07a, var(--gold) 40%, var(--gold-2)); }
.btn.big { height: 52px; font-size: 17px; border-radius: 14px; }
.btn.block { display: block; width: 100%; margin-top: 16px; }

/* ---------- lobby shell ---------- */
.app { position: fixed; inset: 0; display: flex; flex-direction: column; }

.topbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(var(--safe-t) + 10px) calc(var(--safe-r) + 14px) 10px calc(var(--safe-l) + 14px);
  background: linear-gradient(180deg, #0f1f38, #0b1628);
  border-bottom: 1px solid var(--line);
}

.brand { flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 900; font-style: italic; font-size: 21px; letter-spacing: -.3px; }
.brand-m { padding-right: .12em; background: linear-gradient(180deg, #ffffff, #b9d3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-s {
  font-size: 10px;
  font-style: normal;
  letter-spacing: 2px;
  color: #3a1c00;
  padding: 3px 6px 2px;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffe07a, var(--gold-2));
}

.balance {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 5px 0 10px;
  border-radius: 18px;
  background: #081221;
  border: 1px solid rgba(255, 207, 63, .35);
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.balance .add { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; }
.balance .add .ic { width: 16px; height: 16px; stroke-width: 3; }

.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }

.main { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 18px; }

.install {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 14px 0;
  padding: 10px 8px 10px 10px;
  border-radius: 16px;
  background: linear-gradient(95deg, #1d3f78, #2b2a72);
  border: 1px solid rgba(255, 255, 255, .12);
}
.install img { width: 40px; height: 40px; border-radius: 10px; }
.install-t { flex: 1; min-width: 0; font-size: 12.5px; color: #c9d6f0; }
.install-t b { display: block; font-size: 14.5px; color: #fff; }
.install-x { display: grid; place-items: center; width: 30px; height: 30px; color: var(--muted); }
.install-x .ic { width: 18px; height: 18px; }

.search { position: relative; display: block; margin: 12px 14px 0; }
.search .ic { position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; color: var(--muted); }
.search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 16px;
  outline: none;
}
.search input:focus { border-color: rgba(47, 125, 246, .7); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: #b7c6df;
  font-weight: 700;
  white-space: nowrap;
}
.chip.on { color: #fff; border-color: transparent; background: linear-gradient(180deg, #3b8bff, #1f5fd1); box-shadow: 0 4px 14px rgba(47, 125, 246, .35); }

.section-h { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 16px 10px; }
.section-h h2 { margin: 0; font-size: 15px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; }
.section-h span { color: var(--muted); font-size: 12px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; padding: 0 14px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 14px; } }
.empty { grid-column: 1 / -1; padding: 48px 20px; text-align: center; color: var(--muted); }

/* ---------- game tiles ---------- */
.card { position: relative; animation: rise .4s both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.tile { display: block; width: 100%; text-align: left; }
.art {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  container-type: inline-size;
  background: linear-gradient(160deg, var(--c2), var(--c1) 72%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .15s;
}
.art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 32%, var(--c3), transparent 58%);
  opacity: .5;
}
.art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 60%);
  transform: translateX(-110%);
  animation: shine 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 330ms);
}
@keyframes shine { 0%, 72% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
.tile:active .art { transform: scale(.95); }

.hero {
  position: absolute;
  left: 50%;
  top: 40%;
  font-size: 44cqw;
  line-height: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
  animation: bob 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -400ms);
}
@keyframes bob { 50% { transform: translate(-50%, -55%); } }
.acc { position: absolute; font-size: 19cqw; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.a1 { left: 5%; top: 30%; transform: rotate(-14deg); }
.a2 { right: 5%; top: 12%; transform: rotate(12deg); }
.logo {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 6%;
  text-align: center;
  font-weight: 900;
  font-style: italic;
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.logo span {
  display: block;
  white-space: nowrap;
  background: linear-gradient(180deg, #fffbe6 12%, var(--gold) 52%, var(--gold-2) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(70, 25, 0, .95)) drop-shadow(0 0 6px rgba(0, 0, 0, .7));
}
.badge {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 3px 6px 2px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .6px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.b-hot { background: linear-gradient(180deg, #ff6a55, #d61f1f); }
.b-new { background: linear-gradient(180deg, #3fe0a0, #059669); }
.b-top { background: linear-gradient(180deg, #ffe07a, #f59e0b); color: #3a2000; }
.name { display: block; margin-top: 7px; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kind { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.fav .ic { width: 16px; height: 16px; color: #fff; }
.fav.on .ic { color: #ff4d6d; fill: #ff4d6d; }

.glyph {
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 5%, #ff5a5a 42%, #b30000 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #3a0000) drop-shadow(0 0 5px rgba(0, 0, 0, .5));
  padding: 0 .08em;
}
.glyph.word {
  font-style: normal;
  font-size: .5em;
  letter-spacing: .02em;
  padding: .12em .3em;
  border-radius: .2em;
  background: linear-gradient(180deg, #fff7c2, var(--gold) 45%, #b86b00);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #2a1400;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5));
}

/* ---------- tab bar ---------- */
.tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px calc(var(--safe-r) + 6px) calc(var(--safe-b) + 6px) calc(var(--safe-l) + 6px);
  background: #0b1628;
  border-top: 1px solid var(--line);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0 3px; font-size: 11px; font-weight: 700; color: var(--muted); }
.tab.on { color: var(--gold); }
.tab-dot { position: absolute; top: 3px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 2px #0b1628; }

/* ---------- free coins ---------- */
.bonus { margin: 28px 16px; padding: 28px 20px; text-align: center; border-radius: 22px; background: radial-gradient(circle at 50% 0%, #2f3f86, #16254a 70%); border: 1px solid rgba(255, 255, 255, .1); }
.bonus h2 { margin: 6px 0 4px; font-size: 24px; font-weight: 900; }
.bonus-gift { font-size: 84px; line-height: 1.1; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
.bonus-gift.ready { animation: wiggle 1.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-9deg) scale(1.05); } 80% { transform: rotate(8deg) scale(1.05); } 90% { transform: rotate(-4deg); } }
.bonus-amount { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 18px; font-size: 30px; font-weight: 900; color: var(--gold); }
.bonus-amount .coin { width: 28px; height: 28px; }
.bonus .btn { width: 100%; }
.bonus .btn:disabled { opacity: .6; }
.bonus p.small { margin: 14px 0 0; }

/* ---------- sheets and toasts ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .55); animation: fade .2s ease-out; }
.sheet-wrap.closing { opacity: 0; transition: opacity .18s; }
.sheet {
  width: 100%;
  max-height: calc(var(--app-h) * .86);
  overflow-y: auto;
  padding: 6px 18px calc(var(--safe-b) + 18px);
  border-radius: 22px 22px 0 0;
  background: #111f36;
  border-top: 1px solid rgba(255, 255, 255, .1);
  animation: sheetUp .3s cubic-bezier(.2, .9, .3, 1);
}
.sheet-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.sheet-x .ic { width: 18px; height: 18px; }
.sheet h3 { margin: 0 0 10px; font-size: 19px; font-weight: 900; }
.sheet h3 small { font-size: 13px; font-weight: 700; }
.sheet p { margin: 0 0 8px; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 700px) {
  .sheet-wrap { align-items: center; justify-content: center; }
  .sheet { max-width: 460px; border-radius: 22px; }
}

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; border-bottom: 1px solid var(--line); font-weight: 700; text-align: left; }
.btn-row { justify-content: flex-start; }
.btn-row .ic { color: var(--muted); }
.switch { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 50px; height: 30px; margin: 0; border-radius: 15px; background: #2a3b58; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }

.steps { margin: 6px 0 4px; padding-left: 22px; line-height: 1.6; font-size: 15px; }
.steps li { margin-bottom: 6px; }
.kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 7px; vertical-align: middle; background: #22385e; }
.kbd .ic { width: 17px; height: 17px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + 96px);
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  border-radius: 14px;
  background: rgba(15, 28, 50, .96);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- game screen ---------- */
.game {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(90% 55% at 50% 38%, color-mix(in srgb, var(--c3) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--c2) -30%, var(--c1) 55%, #05080f);
  animation: gameIn .28s ease-out;
}
@keyframes gameIn { from { opacity: 0; transform: scale(1.03); } }

.g-top { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 8px) calc(var(--safe-r) + 12px) 6px calc(var(--safe-l) + 12px); }
.g-top .icon-btn { background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .12); }
.g-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
  background: linear-gradient(180deg, #fffbe6 15%, var(--gold) 55%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(60, 20, 0, .8));
}
.g-balance { flex-direction: column; align-items: flex-end; justify-content: center; gap: 1px; height: 40px; padding: 0 14px; line-height: 1; background: rgba(0, 0, 0, .45); }
.g-balance small { font-size: 9px; letter-spacing: .14em; color: var(--gold); }
.g-balance b { font-size: 17px; }

.g-feature {
  order: 5;
  flex: 1 0 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  background: linear-gradient(90deg, #7c3aed, #db2777);
  box-shadow: 0 0 22px rgba(219, 39, 119, .45);
}
.g-feature b { font-size: 14px; color: #fff3b0; }

.g-stage { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 10px 8px; container-type: size; }
.g-stage::before {
  content: attr(data-hero);
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  font-size: 80cqmin;
  line-height: 1;
  opacity: .08;
  pointer-events: none;
}
.g-logo { position: relative; display: flex; align-items: center; gap: 12px; max-width: 100%; }
.g-logo .t { text-align: center; font-weight: 900; font-style: italic; line-height: .9; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.g-logo .t span {
  display: block;
  font-size: clamp(26px, calc(var(--app-w) * .09), 44px);
  background: linear-gradient(180deg, #fffbe6 12%, var(--gold) 52%, var(--gold-2) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(70, 25, 0, .95)) drop-shadow(0 0 12px rgba(0, 0, 0, .6));
}
.g-logo .t span:first-child:not(:last-child) { font-size: clamp(18px, calc(var(--app-w) * .06), 30px); }
.g-acc { font-size: clamp(30px, calc(var(--app-w) * .1), 46px); line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); animation: float 3s ease-in-out infinite; }
.g-acc:last-child { animation-delay: -1.5s; }
@keyframes float { 50% { transform: translateY(-6px) rotate(4deg); } }
.g-frame {
  position: relative;
  padding: 8px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .65));
  box-shadow: 0 0 0 2px rgba(255, 207, 63, .85), 0 0 0 5px rgba(0, 0, 0, .45), 0 0 34px color-mix(in srgb, var(--c3) 45%, transparent), 0 16px 40px rgba(0, 0, 0, .6);
}
.in-fs .g-frame { box-shadow: 0 0 0 2px #ff7ad9, 0 0 0 5px rgba(0, 0, 0, .45), 0 0 40px rgba(236, 72, 153, .7), 0 16px 40px rgba(0, 0, 0, .6); }
.g-reels { display: flex; gap: var(--gap, 5px); }
.reel {
  position: relative;
  width: var(--cell);
  height: calc(var(--cell) * var(--rows));
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025) 50%, rgba(255, 255, 255, .07));
}
.strip { display: flex; flex-direction: column; will-change: transform; }
.cell { position: relative; display: grid; place-items: center; flex: none; width: var(--cell); height: var(--cell); }
.cell .e { font-size: calc(var(--cell) * .6); line-height: 1; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.cell .glyph { font-size: calc(var(--cell) * .66); }
.cell.t-H .e { filter: drop-shadow(0 0 6px rgba(255, 214, 90, .55)) drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.cell.t-W::before, .cell.t-S::before { content: ''; position: absolute; inset: 7%; border-radius: 22%; }
.cell.t-W::before { background: radial-gradient(circle, rgba(255, 207, 63, .45), rgba(255, 160, 20, .12) 70%); box-shadow: inset 0 0 0 2px rgba(255, 207, 63, .6); }
.cell.t-S::before { background: radial-gradient(circle, rgba(244, 114, 182, .45), rgba(190, 24, 93, .12) 70%); box-shadow: inset 0 0 0 2px rgba(244, 114, 182, .65); }
.cell i {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  padding: 1px 5px;
  border-radius: 5px;
  font-style: normal;
  font-weight: 900;
  font-size: max(8px, calc(var(--cell) * .14));
  letter-spacing: .4px;
  color: #3a1c00;
  background: linear-gradient(180deg, #ffe07a, var(--gold-2));
}
.cell.t-S i { color: #fff; background: linear-gradient(180deg, #f472b6, #be185d); }
.cell.win { z-index: 2; animation: winPulse .8s ease-in-out infinite; }
.cell.win::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 14px;
  background: rgba(255, 207, 63, .13);
  box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(255, 207, 63, .75);
}
@keyframes winPulse { 50% { transform: scale(1.08); } }
.g-reels.dim .cell:not(.win) { opacity: .4; transition: opacity .2s; }

.g-lines { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.g-lines polyline { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .7)); animation: draw .45s ease-out; }
@keyframes draw { from { opacity: 0; } }

.g-mult {
  position: absolute;
  top: -16px;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
  color: #3a1c00;
  background: linear-gradient(180deg, #fff3b0, var(--gold) 50%, var(--gold-2));
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5), 0 0 20px rgba(255, 190, 40, .65);
}
.g-mult.bump { animation: bump .4s ease-out; }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.4); } }

.g-msg { flex: none; min-height: 24px; padding: 0 12px 4px; text-align: center; font-size: 15px; font-weight: 800; color: #d7e2f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-msg.win { color: var(--gold); text-shadow: 0 0 14px rgba(255, 207, 63, .55); }

.g-controls { flex: none; padding: 6px calc(var(--safe-r) + 12px) calc(var(--safe-b) + 12px) calc(var(--safe-l) + 12px); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55) 35%); }
.g-row { display: flex; gap: 8px; }
.g-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .1);
}
.g-box small { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--muted); }
.g-box b { font-size: 17px; font-variant-numeric: tabular-nums; }
.g-bet { display: flex; align-items: center; gap: 12px; }
.g-bet button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .13); font-size: 19px; font-weight: 900; line-height: 1; }
.g-main { align-items: center; justify-content: space-between; margin-top: 10px; }
.round {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .15);
}
.round.on { color: #3a1c00; border-color: transparent; background: linear-gradient(180deg, #ffe07a, var(--gold-2)); }
.spin {
  display: grid;
  place-items: center;
  align-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  background: radial-gradient(circle at 50% 30%, #6ee79a, #1fb257 55%, #0e7a3a);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .14), 0 0 0 9px rgba(34, 197, 94, .22), 0 10px 26px rgba(0, 0, 0, .5), inset 0 -4px 0 rgba(0, 0, 0, .25);
  transition: transform .08s;
}
.spin:active { transform: scale(.94); }
.spin .spin-ic { width: 26px; height: 26px; margin-bottom: 1px; }
.spin.busy .spin-ic { animation: rot .7s linear infinite; }
.spin small { font-size: 11px; font-weight: 800; letter-spacing: 0; opacity: .9; }
.spin.stop {
  background: radial-gradient(circle at 50% 30%, #fca5a5, #e03131 55%, #9b1c1c);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .14), 0 0 0 9px rgba(239, 68, 68, .22), 0 10px 26px rgba(0, 0, 0, .5), inset 0 -4px 0 rgba(0, 0, 0, .25);
}
.in-fs .spin { background: radial-gradient(circle at 50% 30%, #f5a3ff, #c026d3 55%, #7e1d8f); }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- landscape: the main way to play (.land is set by app.js, also while the UI is rotated) ---------- */
.install-top { display: none; }

.land .app { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.land .topbar { grid-column: 1 / -1; padding: calc(var(--safe-t) + 6px) calc(var(--safe-r) + 14px) 6px calc(var(--safe-l) + 14px); }
.land .brand { font-size: 19px; }
.land .install { display: none !important; }
.land .install-top { display: grid; color: #4ade80; }
.land .main { grid-column: 2; grid-row: 2; padding: 0 var(--safe-r) calc(var(--safe-b) + 12px) 0; }
.land .tabbar {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: calc(82px + var(--safe-l));
  padding: 8px 6px calc(var(--safe-b) + 8px) calc(var(--safe-l) + 6px);
  overflow-y: auto;
  border-top: 0;
  border-right: 1px solid var(--line);
}
.land .tab { padding: 9px 0 7px; border-radius: 12px; font-size: 10.5px; }
.land .tab.on { background: rgba(255, 207, 63, .09); }
.land #lobby-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 250px); align-items: center; }
.land .chips {
  grid-column: 1;
  grid-row: 1;
  padding: 10px 8px 2px 14px;
  -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
  mask-image: linear-gradient(90deg, #000 86%, transparent);
}
.land .search { grid-column: 2; grid-row: 1; margin: 10px 14px 2px 0; }
.land .section-h, .land .grid { grid-column: 1 / -1; }
.land #chips:not([hidden]) + .section-h { display: none; }
.land .grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; padding-top: 12px; }
.land .art { aspect-ratio: 4 / 3; border-radius: 14px; }
.land .hero { top: 37%; font-size: 34cqw; }
.land .acc { font-size: 15cqw; }
.land .logo { bottom: 4%; transform: scale(.84); transform-origin: 50% 100%; }
.land .name { margin-top: 5px; font-size: 12px; }
.land .fav { width: 26px; height: 26px; top: 5px; left: 5px; }
.land .badge { top: 5px; right: 5px; font-size: 9px; }
.land .bonus { max-width: 520px; margin: 16px auto; padding: 18px 20px; }
.land .bonus-gift { font-size: 56px; }
.land .toast { bottom: calc(var(--safe-b) + 18px); }
.land .sheet-wrap { align-items: center; justify-content: center; }
.land .sheet { max-width: 460px; max-height: calc(var(--app-h) - 24px); padding-bottom: 18px; border-radius: 22px; }

.land .game { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto; }
.land .g-top { grid-column: 1 / -1; flex-wrap: nowrap; padding: calc(var(--safe-t) + 6px) calc(var(--safe-r) + 12px) 2px calc(var(--safe-l) + 12px); }
.land .g-top .icon-btn { width: 34px; height: 34px; }
.land .g-title { font-size: 16px; }
.land .g-feature { order: 0; flex: none; gap: 14px; padding: 6px 12px; font-size: 11px; }
.land .g-feature b { font-size: 13px; }
.land .g-stage { grid-column: 1; grid-row: 2; flex-direction: row; gap: 24px; padding: 4px 6px 2px calc(var(--safe-l) + 8px); }
.land .g-logo { flex-direction: column; gap: 8px; }
.land .g-logo .t span { font-size: 30px; }
.land .g-logo .t span:first-child:not(:last-child) { font-size: 20px; }
.land .g-acc { font-size: 34px; }
.land .g-msg { grid-column: 1; grid-row: 3; min-height: 22px; padding: 0 12px calc(var(--safe-b) + 6px) calc(var(--safe-l) + 12px); font-size: 14px; }
.land .g-controls {
  grid-column: 2;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: calc(166px + var(--safe-r));
  padding: 4px calc(var(--safe-r) + 10px) calc(var(--safe-b) + 8px) 6px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .4) 30%);
}
.land .g-controls > .g-row:first-child { flex-direction: column; gap: 6px; }
.land .g-box { flex: none; height: 44px; }
.land .g-box b { font-size: 15px; }
.land .g-main { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "a t" "s s"; place-items: center; gap: 8px 4px; margin-top: 2px; }
.land .auto-wrap { grid-area: a; }
.land #g-turbo { grid-area: t; }
.land #g-spin { grid-area: s; }
.land .round { width: 42px; height: 42px; }
.land .spin { width: 80px; height: 80px; }

/* ---------- overlays ---------- */
.g-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(25, 12, 50, .6), rgba(0, 0, 0, .9));
  animation: fade .2s ease-out;
}
.ov { position: relative; z-index: 2; padding: 24px; text-align: center; }
.ov-kicker { font-weight: 900; letter-spacing: 3px; color: #fff; opacity: .85; }
.ov-title {
  font-size: clamp(36px, calc(min(var(--app-w), var(--app-h)) * .14), 86px);
  line-height: .95;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fffbe6 10%, var(--gold) 50%, var(--gold-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 #6b2f00) drop-shadow(0 0 24px rgba(255, 190, 40, .55));
  animation: pop .6s cubic-bezier(.2, 1.6, .4, 1);
}
.ov-amount { margin-top: 12px; font-size: clamp(30px, calc(min(var(--app-w), var(--app-h)) * .12), 64px); font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 24px rgba(255, 207, 63, .8), 0 3px 0 rgba(0, 0, 0, .4); }
.ov-sub { margin-top: 12px; font-weight: 700; color: #cfd8ea; }
.ov-btn { margin-top: 20px; height: 50px; padding: 0 38px; font-size: 18px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.rain { position: absolute; inset: 0; pointer-events: none; }
.rain .coin { position: absolute; top: -40px; width: calc(28px * var(--s, 1)); height: calc(28px * var(--s, 1)); animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(calc(var(--app-h) + 80px)) rotateY(900deg); } }

/* ---------- special symbols ---------- */
.reel .strip { position: relative; z-index: 1; }
.cell .val {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%);
  font-size: max(10px, calc(var(--cell) * .21));
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
  color: #fff6cf;
  -webkit-text-stroke: 3px #5a2600;
  paint-order: stroke fill;
}
.cell.t-M .e { filter: drop-shadow(0 0 10px rgba(190, 120, 255, .95)); animation: orb 2.4s ease-in-out infinite; }
.cell.t-M .val { bottom: 50%; transform: translate(-50%, 50%); font-size: max(12px, calc(var(--cell) * .32)); color: #fff; -webkit-text-stroke: 4px #4a1070; }
@keyframes orb { 50% { transform: scale(1.1); } }
.cell.t-B::before { content: ''; position: absolute; inset: 7%; border-radius: 22%; background: radial-gradient(circle, rgba(255, 207, 63, .5), rgba(255, 140, 0, .1) 70%); box-shadow: inset 0 0 0 2px rgba(255, 207, 63, .7); }
.cell.t-B .e { filter: drop-shadow(0 0 8px rgba(255, 210, 90, .95)); }

.coin-sym {
  position: relative;
  display: grid;
  place-content: center;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  text-align: center;
  line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fff6c0, #ffcf3f 42%, #d98a00 75%, #8a4b00);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), inset 0 -4px 8px rgba(0, 0, 0, .25), 0 4px 10px rgba(0, 0, 0, .45);
}
.coin-sym b { font-size: max(10px, calc(var(--cell) * .2)); color: #5a2600; }
.coin-sym small { font-size: max(8px, calc(var(--cell) * .14)); color: #7a1f00; }
.cell.jp .coin-sym { background: radial-gradient(circle at 35% 30%, #ffe0f0, #ff5fa2 45%, #b0005a 85%); }
.cell.jp .coin-sym b, .cell.jp .coin-sym small { color: #fff; }
.holding .reel { background: rgba(0, 0, 0, .4); }
.cell.t-_::before { content: ''; position: absolute; inset: 8%; border-radius: 16%; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.cell.hspin::before { background: linear-gradient(180deg, rgba(255, 207, 63, 0), rgba(255, 207, 63, .4), rgba(255, 207, 63, 0)); background-size: 100% 200%; animation: hspin .22s linear infinite; }
@keyframes hspin { to { background-position: 0 200%; } }
.cell.pop { animation: coinPop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes coinPop { from { transform: scale(.2); opacity: 0; } }

.spots { position: absolute; inset: 0; display: flex; flex-direction: column; pointer-events: none; }
.spots b { flex: none; display: grid; justify-items: center; align-content: start; height: var(--cell); padding-top: 2px; border-radius: 12px; font: 400 max(9px, calc(var(--cell) * .24)) / 1 var(--display); color: #fff; }
.spots b.m1 { background: radial-gradient(circle, rgba(255, 120, 200, .35), rgba(255, 120, 200, .08) 70%); box-shadow: inset 0 0 0 2px rgba(255, 150, 210, .5); }
.spots b.mx { background: radial-gradient(circle, rgba(255, 60, 160, .8), rgba(160, 0, 90, .55) 70%); box-shadow: inset 0 0 0 2px #ffd1ea, 0 0 12px rgba(255, 80, 180, .6); }

.expand {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 232, 150, .95), rgba(255, 160, 20, .88) 55%, rgba(120, 50, 0, .95));
  box-shadow: inset 0 0 0 3px #fff3b0, 0 0 22px rgba(255, 190, 40, .75);
}
.expand.x-W { background: linear-gradient(180deg, #ff5f6d, #ffc371 22%, #fff27a 40%, #7dff6b 58%, #4dd4ff 76%, #c58bff); }
.expand .e, .expand .glyph { font-size: calc(var(--cell) * 1.2); line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.expand i { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 6px; font: 400 max(10px, calc(var(--cell) * .18)) / 1.1 var(--display); color: #3a1c00; background: linear-gradient(180deg, #ffe07a, var(--gold-2)); }
.expand.win { animation: winPulse .8s ease-in-out infinite; }

.reel.tease { box-shadow: 0 0 0 2px #ffd23f, 0 0 24px rgba(255, 210, 63, .8); animation: tease .45s ease-in-out infinite alternate; }
@keyframes tease { to { box-shadow: 0 0 0 3px #fff3b0, 0 0 42px rgba(255, 210, 63, 1); } }

.glyph.royal { font-style: normal; font-family: var(--display); font-weight: 400; }
.glyph.r-A { background-image: linear-gradient(180deg, #fff 5%, #ff5a5a 45%, #9b0000 90%); }
.glyph.r-K { background-image: linear-gradient(180deg, #fff 5%, #5aa9ff 45%, #0b3d91 90%); }
.glyph.r-Q { background-image: linear-gradient(180deg, #fff 5%, #5dff9a 45%, #0b6b2f 90%); }
.glyph.r-J { background-image: linear-gradient(180deg, #fff 5%, #d58bff 45%, #5a0b91 90%); }

/* ---------- reel frames, one look per game ---------- */
.g-frame.f-gold { box-shadow: 0 0 0 3px #ffd84d, 0 0 0 6px #7a4a00, 0 0 34px color-mix(in srgb, var(--c3) 45%, transparent), 0 16px 40px rgba(0, 0, 0, .6); }
.g-frame.f-candy { border-radius: 26px; box-shadow: 0 0 0 4px #ff8ccf, 0 0 0 8px #fff, 0 0 0 11px #ff4fa6, 0 16px 40px rgba(0, 0, 0, .5); }
.g-frame.f-jade { box-shadow: 0 0 0 3px #ffcf3f, 0 0 0 7px #0f5132, 0 0 0 9px #ffcf3f, 0 0 30px rgba(255, 80, 40, .5), 0 16px 40px rgba(0, 0, 0, .6); }
.g-frame.f-chrome { box-shadow: 0 0 0 3px #f5f5f5, 0 0 0 7px #9aa4b1, 0 0 0 9px #e2e8f0, 0 16px 40px rgba(0, 0, 0, .6); }
.g-frame.f-stone { border-radius: 10px; box-shadow: 0 0 0 4px #d9b36c, 0 0 0 8px #6b4a22, 0 0 30px rgba(255, 190, 90, .35), 0 16px 40px rgba(0, 0, 0, .6); }
.g-frame.f-neon { box-shadow: 0 0 0 2px #fff, 0 0 12px 3px #ff3df2, 0 0 30px 6px rgba(34, 211, 238, .6), 0 16px 40px rgba(0, 0, 0, .6); }
.g-frame.f-ocean { box-shadow: 0 0 0 3px #7ff3ff, 0 0 0 7px #0b4a6f, 0 0 30px rgba(94, 234, 212, .5), 0 16px 40px rgba(0, 0, 0, .6); }
.g-frame.f-wood { box-shadow: 0 0 0 4px #e0a75e, 0 0 0 9px #6b3a13, 0 0 0 11px #e0a75e, 0 16px 40px rgba(0, 0, 0, .6); }
.game.in-fs .g-frame { box-shadow: 0 0 0 3px #ff7ad9, 0 0 0 6px rgba(0, 0, 0, .45), 0 0 44px rgba(236, 72, 153, .75), 0 16px 40px rgba(0, 0, 0, .6); }

/* ---------- effects over the reels ---------- */
.g-fx { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.fly { position: absolute; padding: 3px 8px; border-radius: 10px; font-size: 14px; color: #3a1c00; background: linear-gradient(180deg, #ffe07a, var(--gold-2)); box-shadow: 0 4px 10px rgba(0, 0, 0, .45); transform: translate(-50%, -50%); }
.g-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  font-size: clamp(30px, calc(var(--cell) * .8), 72px);
  white-space: nowrap;
  pointer-events: none;
  color: #ffe36e;
  -webkit-text-stroke: 7px #6b2400;
  paint-order: stroke fill;
  text-shadow: 0 0 30px rgba(255, 190, 40, .9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.4);
}
.g-flash.on { animation: flash 1.3s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes flash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(1); }
}
.g-feature .e, .g-feature .glyph { font-size: 17px; }

/* ---------- autoplay picker ---------- */
.auto-wrap { position: relative; }
.round.auto { font-size: 13px; }
.round.auto b { font-size: 17px; }
.auto-pop {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  z-index: 12;
  display: flex;
  gap: 7px;
  padding: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2c1a57, #140b2d);
  box-shadow: 0 0 0 2px var(--gold), 0 12px 30px rgba(0, 0, 0, .6);
  animation: popIn .18s ease-out;
}
.auto-pop button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 17px;
  color: #3a1c00;
  background: radial-gradient(circle at 50% 30%, #fff3b0, var(--gold) 55%, #d98a00);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), 0 3px 8px rgba(0, 0, 0, .4);
}
.auto-pop button:active { scale: .92; }
.land .auto-pop { top: 50%; bottom: auto; left: auto; right: calc(100% + 12px); translate: 0 -50%; }
@keyframes popIn { from { opacity: 0; scale: .85; } }

/* ---------- wheel bonus ---------- */
.wheel-ov { display: grid; justify-items: center; gap: 10px; padding: 12px; }
.wheel-wrap { position: relative; width: calc(min(var(--app-w), var(--app-h)) * .7); aspect-ratio: 1; }
.wheel { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 6px var(--gold), 0 0 0 11px #7a3d00, 0 0 44px rgba(255, 200, 60, .6); }
.wheel span { position: absolute; left: 50%; top: 0; width: 0; height: 50%; transform-origin: 50% 100%; }
.wheel span b {
  position: absolute;
  top: 7%;
  left: 0;
  transform: translateX(-50%);
  font-size: calc(min(var(--app-w), var(--app-h)) * .042);
  white-space: nowrap;
  color: #fff;
  -webkit-text-stroke: 3px rgba(0, 0, 0, .55);
  paint-order: stroke fill;
}
.wheel-hub { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 24%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #fff6c0, var(--gold) 45%, #b86b00); box-shadow: 0 0 0 4px #7a3d00, 0 6px 16px rgba(0, 0, 0, .5); }
.wheel-hub .e { font-size: calc(min(var(--app-w), var(--app-h)) * .08); }
.wheel-pin { position: absolute; left: 50%; top: -5%; z-index: 2; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 32px solid #fff; transform: translateX(-50%); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.wheel-win { min-height: 1.1em; margin-top: 4px; }
.book-pick { display: grid; place-items: center; width: 108px; height: 108px; margin: 14px auto 0; border-radius: 22px; background: radial-gradient(circle, rgba(255, 220, 120, .55), rgba(120, 60, 0, .65)); box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(255, 200, 60, .6); }
.book-pick .e, .book-pick .glyph { font-size: 70px; line-height: 1; }
.book-pick.picked { animation: picked .5s ease-out; }
@keyframes picked { 40% { transform: scale(1.25); } }

/* ---------- generated art (games with art: true) ---------- */
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art:has(.tile-img)::before { display: none; }
.cell .sym { width: 90%; height: 90%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.cell.t-H .sym { filter: drop-shadow(0 0 6px rgba(255, 214, 90, .45)) drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.has-art .cell.t-W::before, .has-art .cell.t-S::before, .has-art .cell.t-B::before { display: none; }
.cell.t-M .sym { filter: drop-shadow(0 0 10px rgba(190, 120, 255, .9)); animation: orb 2.4s ease-in-out infinite; }
.cell.t-C .sym { width: 100%; height: 100%; }
.cell.jp .sym { filter: hue-rotate(270deg) saturate(1.3) drop-shadow(0 0 8px rgba(255, 80, 200, .8)); }
.coin-val {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1;
  pointer-events: none;
  font-family: var(--display);
  color: #fff;
  -webkit-text-stroke: 3px #6b2400;
  paint-order: stroke fill;
}
.coin-val b { font-size: max(11px, calc(var(--cell) * .22)); }
.coin-val small { font-size: max(8px, calc(var(--cell) * .15)); }
.expand .sym { width: 100%; max-height: 58%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.book-pick .sym { width: 92px; height: 92px; object-fit: contain; }
.g-feature .sym { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; }
.wheel-hub .sym { width: 86%; height: 86%; object-fit: contain; }
.msg-sym { width: 1.6em; height: 1.6em; margin: -.35em .08em; object-fit: contain; vertical-align: middle; }
.logo-img { display: block; width: clamp(150px, calc(var(--app-w) * .5), 360px); height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.land .logo-img { width: clamp(140px, calc(var(--app-w) * .21), 280px); }
.game.has-art { background: linear-gradient(180deg, rgba(5, 3, 15, .3), rgba(5, 3, 15, .6)), var(--bg) center / cover no-repeat, #05070d; }
.game.has-art.in-fs { background-image: linear-gradient(180deg, rgba(5, 3, 15, .25), rgba(5, 3, 15, .55)), var(--bg2); }
.has-art .g-stage::before { display: none; }
.has-art .g-frame { background: linear-gradient(180deg, rgba(8, 5, 22, .62), rgba(8, 5, 22, .78)); }

/* ---------- sign-in ---------- */
.auth {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: calc(var(--safe-t) + 16px) 16px calc(var(--safe-b) + 16px);
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(10, 5, 25, .5), rgba(10, 5, 25, .85)), url('../art/neon-sevens/bg.webp') center / cover no-repeat, var(--bg);
}
.auth-card {
  display: grid;
  gap: 12px;
  width: min(100%, 360px);
  padding: 24px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #2c1a57, #120a28);
  border: 2px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 4px; font-size: 42px; }
.auth-brand .brand-s { font-size: 13px; }
.auth input {
  height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font: 400 17px var(--display);
  letter-spacing: .04em;
  outline: none;
}
.auth input:focus { border-color: var(--gold); }
.auth-err { min-height: 18px; margin: 0; font-size: 13px; text-align: center; color: #ff8a8a; }
.auth .btn { width: 100%; }
.land .auth-card { gap: 8px; padding: 14px 20px; }
.land .auth-brand { margin: 0; font-size: 30px; }
.land .auth input { height: 42px; }
.land .auth .btn.big { height: 44px; }

/* ---------- casino type and popups ---------- */
.brand, .auth-brand, .logo, .chip, .section-h h2, .badge, .tab, .btn, .bonus h2, .bonus-amount, .sheet h3, .row, .toast, .balance,
.g-title, .g-logo .t, .g-feature, .g-box, .g-msg, .spin, .round, .auto-pop, .ov, .g-flash, .g-mult, .fly, .wheel b {
  font-family: var(--display);
  font-weight: 400;
  font-synthesis: style;
  letter-spacing: .02em;
}
.g-box small { color: var(--gold); }
.g-msg { text-transform: uppercase; }
.sheet {
  position: relative;
  padding-top: 20px;
  background: linear-gradient(180deg, #2c1a57, #120a28);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 207, 63, .2);
}
.land .sheet { border: 2px solid var(--gold); }
.sheet h3 {
  font-size: 26px;
  text-align: center;
  background: linear-gradient(180deg, #fffbe6 10%, var(--gold) 55%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #6b2f00);
}
.row { font-size: 16px; }
.ov-btn { font-family: var(--display); font-size: 20px; color: #3a1c00; border-radius: 999px; background: linear-gradient(180deg, #ffe07a, var(--gold) 45%, var(--gold-2)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 6px 18px rgba(0, 0, 0, .4); }

@media (prefers-reduced-motion: reduce) {
  .hero, .art::after, .bonus-gift.ready { animation: none; }
}
