@font-face { font-family: "Noto Sans"; src: url("/assets/fonts/noto-sans.woff2") format("woff2"); font-weight: 100 900; font-display: optional; }
@font-face { font-family: "Lilita One"; src: url("/assets/fonts/lilita-one.woff2") format("woff2"); font-weight: 400; font-display: optional; }

:root {
  --bg: #061f26;
  --bg-2: #0a2f38;
  --panel: #0e3b45;
  --line: #1d5a66;
  --text: #d5e7ea;
  --muted: #8fb1b7;
  --coral: #ff7a59;
  --coral-d: #c9432a;
  --gold: #ffd27a;
  --gold-d: #f09628;
  --mint: #19c3a6;
  --mint-d: #0b7c69;
  --ink: #102229;
  --display: "Lilita One", "Arial Black", sans-serif;
}

*, *::before, *::after { -moz-box-sizing: border-box; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 1920px;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "Noto Sans", Arial, sans-serif;
  text-align: center;
  overscroll-behavior-x: none;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; word-wrap: break-word; }
a { color: var(--gold); overflow-wrap: break-word; word-wrap: break-word; }
a:hover { color: #fff; }
img, svg { max-width: 100%; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; -ms-touch-action: manipulation; touch-action: manipulation; }
button, .btn-play, .site-logo { -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-user-select: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Header (game state only, as on the original) */
.site-header { display: none; position: relative; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between; gap: 12px; max-width: 1280px; margin: 0 auto; padding: 10px 16px; }
body.is-game .site-header, body.is-page .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.site-logo { display: block; -webkit-flex: 0 0 auto; -ms-flex: 0 0 auto; flex: 0 0 auto; }
.site-logo img { display: block; width: auto; height: 64px; }
.bookmark-hint { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; gap: 8px; -webkit-flex: 1 1 0; -ms-flex: 1 1 0px; flex: 1 1 0; min-width: 0; color: var(--muted); font-size: 12px; text-align: left; }
.fullscreen-btn { justify-self: end; }
.header-spacer { -webkit-flex: 1 1 0; -ms-flex: 1 1 0px; flex: 1 1 0; }
.icon-btn { display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; width: 40px; height: 40px; -webkit-flex: 0 0 auto; -ms-flex: 0 0 auto; flex: 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--gold); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--panel); color: #fff; }

.header-actions { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: flex-end; -ms-flex-pack: end; justify-content: flex-end; gap: 12px; min-width: 0; }
.ocb { display: none; grid-template-columns: auto auto; grid-template-areas: "tag btn" "desc desc"; -webkit-align-items: center; -ms-flex-align: center; align-items: center; justify-items: center; gap: 2px 8px; }
body.is-game .ocb { display: grid; }
.ocb-tag { grid-area: tag; padding: 2px 8px; border-radius: 6px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ocb-btn { grid-area: btn; padding: 6px 18px; border: 0; border-radius: 10px; background: linear-gradient(180deg, #ffe9a8, var(--gold) 45%, var(--gold-d)); box-shadow: 0 3px 0 #8a5208; color: var(--ink); font: 400 18px/1 var(--display); transition: -webkit-filter .15s, -webkit-transform .15s; transition: filter .15s, transform .15s; transition: filter .15s, transform .15s, -webkit-filter .15s, -webkit-transform .15s; }
.ocb-btn:hover { -webkit-filter: brightness(1.06); filter: brightness(1.06); }
.ocb-btn:active { -webkit-transform: translateY(2px); transform: translateY(2px); box-shadow: 0 1px 0 #8a5208; }
.ocb-desc { grid-area: desc; font-size: 11px; color: var(--text); white-space: nowrap; }
.hud-sound[aria-pressed="false"] { color: var(--muted); }

/* Landing */
.landing { display: none; position: relative; min-height: 588px; padding: 64px 16px 72px; background: #04171c url("/assets/img/hero/landing-bg.avif") top center / cover no-repeat; }
.landing::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(6, 31, 38, .15) 0, rgba(6, 31, 38, .55) 70%), linear-gradient(to bottom, transparent 70%, var(--bg) 100%); pointer-events: none; }
body.is-landing .landing { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; }
.landing-panel { position: relative; z-index: 1; width: 100%; max-width: 380px; padding: 28px 24px 30px; border: 3px solid var(--gold-d); border-radius: 26px; background: linear-gradient(180deg, rgba(14, 59, 69, .96), rgba(6, 31, 38, .96)); box-shadow: 0 0 0 6px rgba(255, 122, 89, .25), 0 24px 60px rgba(0, 0, 0, .55); -webkit-animation: panel-in .6s cubic-bezier(.2, .8, .2, 1.15) both; animation: panel-in .6s cubic-bezier(.2, .8, .2, 1.15) both; }
.landing-logo { display: block; width: 100%; height: auto; margin: -78px auto 6px; -webkit-filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.landing-title { margin: 0 0 20px; font: 400 40px/1.05 var(--display); color: var(--gold); text-shadow: 0 3px 0 var(--coral-d), 0 6px 14px rgba(0, 0, 0, .5); }
@-webkit-keyframes panel-in { from { opacity: 0; -webkit-transform: translateY(18px) scale(.96); transform: translateY(18px) scale(.96); } to { opacity: 1; -webkit-transform: none; transform: none; } }
@keyframes panel-in { from { opacity: 0; -webkit-transform: translateY(18px) scale(.96); transform: translateY(18px) scale(.96); } to { opacity: 1; -webkit-transform: none; transform: none; } }

.btn-play { display: inline-block; min-width: 190px; padding: 12px 28px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #5ef0d2 0%, var(--mint) 45%, var(--mint-d) 100%); box-shadow: 0 5px 0 #075548, 0 10px 20px rgba(0, 0, 0, .35); color: #fff; font: 400 30px/1.1 var(--display); text-shadow: 0 2px 0 #075548; transition: box-shadow .15s, -webkit-transform .15s, -webkit-filter .15s; transition: transform .15s, box-shadow .15s, filter .15s; transition: transform .15s, box-shadow .15s, filter .15s, -webkit-transform .15s, -webkit-filter .15s; }
.btn-play:hover { -webkit-filter: brightness(1.08); filter: brightness(1.08); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.btn-play:active { -webkit-transform: translateY(3px); transform: translateY(3px); box-shadow: 0 2px 0 #075548, 0 4px 10px rgba(0, 0, 0, .35); }
.btn-play--sm { min-width: 150px; padding: 10px 22px; font-size: 22px; }
.btn-play:disabled { -webkit-filter: grayscale(.6); filter: grayscale(.6); cursor: default; }

/* Loader */
.preload { padding: 120px 16px; }
.preload-bar { width: min(420px, 100%); height: 18px; margin: 0 auto; padding: 3px; border: 2px solid var(--gold-d); border-radius: 12px; background: var(--ink); }
.preload-bar span { display: block; width: 0; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--coral), var(--gold)); transition: width .25s; }
.preload-text { margin: 14px 0 0; color: var(--muted); }

/* Game shell */
.game { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 16px 24px; }
.game-top { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.hud-coins { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; gap: 8px; min-width: 0; padding: 4px 14px 4px 6px; border-radius: 999px; background: var(--ink); font: 400 22px/1 var(--display); color: var(--gold); }
.hud-coins.is-pop { -webkit-animation: coins-pop .6s ease-out; animation: coins-pop .6s ease-out; }
@-webkit-keyframes coins-pop { 30% { -webkit-transform: scale(1.1); transform: scale(1.1); box-shadow: 0 0 0 3px var(--gold-d), 0 0 22px rgba(255, 210, 122, .6); } }
@keyframes coins-pop { 30% { -webkit-transform: scale(1.1); transform: scale(1.1); box-shadow: 0 0 0 3px var(--gold-d), 0 0 22px rgba(255, 210, 122, .6); } }
.hud-coins svg { -webkit-flex: 0 0 auto; -ms-flex: 0 0 auto; flex: 0 0 auto; }
.hud-level { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; gap: 8px; -webkit-flex: 1 1 260px; -ms-flex: 1 1 260px; flex: 1 1 260px; max-width: 360px; }
.hud-level-star { position: relative; -webkit-flex: 0 0 auto; -ms-flex: 0 0 auto; flex: 0 0 auto; width: 34px; height: 34px; }
.hud-level-star b { position: absolute; inset: 0; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; padding-top: 3px; font: 400 13px/1 var(--display); color: var(--ink); }
.hud-xp { position: relative; -webkit-flex: 1 1 auto; -ms-flex: 1 1 auto; flex: 1 1 auto; height: 20px; border-radius: 10px; background: var(--ink); overflow: hidden; }
.hud-xp > span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--mint-d), var(--mint)); transition: width .4s; }
.hud-xp em { position: relative; display: block; font: 700 11px/20px "Noto Sans", Arial, sans-serif; font-style: normal; color: #fff; }
.hud-bonus { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; -webkit-align-items: center; -ms-flex-align: center; align-items: center; min-width: 120px; padding: 6px 14px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #ffb08f, var(--coral) 50%, var(--coral-d)); box-shadow: 0 4px 0 #7d2414; color: #fff; transition: -webkit-filter .2s, -webkit-transform .15s; transition: filter .2s, transform .15s; transition: filter .2s, transform .15s, -webkit-filter .2s, -webkit-transform .15s; }
.hud-bonus:hover { -webkit-filter: brightness(1.08); filter: brightness(1.08); }
.hud-bonus:active { -webkit-transform: translateY(2px); transform: translateY(2px); }
.hud-bonus.is-wait { background: var(--bg-2); box-shadow: inset 0 0 0 2px var(--line); cursor: default; }
.hud-bonus-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hud-bonus b { font: 400 18px/1.1 var(--display); }
.hud-bonus.is-ready b { -webkit-animation: pulse 1.2s ease-in-out infinite; animation: pulse 1.2s ease-in-out infinite; }
@-webkit-keyframes pulse { 50% { -webkit-transform: scale(1.12); transform: scale(1.12); } }
@keyframes pulse { 50% { -webkit-transform: scale(1.12); transform: scale(1.12); } }

/* Lobby */
.lobby-title { margin: 18px 0 12px; font: 400 26px/1.2 var(--display); color: var(--gold); }
.lobby-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lobby-card { position: relative; display: block; width: 100%; padding: 0; border: 3px solid var(--line); border-radius: 18px; background: var(--ink); overflow: hidden; color: #fff; text-align: left; transition: border-color .2s, box-shadow .2s, -webkit-transform .2s; transition: transform .2s, border-color .2s, box-shadow .2s; transition: transform .2s, border-color .2s, box-shadow .2s, -webkit-transform .2s; }
.lobby-card:hover { -webkit-transform: translateY(-4px); transform: translateY(-4px); border-color: var(--gold-d); box-shadow: 0 12px 26px rgba(0, 0, 0, .45); }
.lobby-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; -o-object-fit: cover; object-fit: cover; }
.lobby-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(to top, rgba(4, 18, 22, .95), rgba(4, 18, 22, .7) 45%, transparent); pointer-events: none; }
.lobby-name { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font: 400 24px/1.1 var(--display); color: var(--gold); text-shadow: 0 2px 4px rgba(0, 0, 0, .8); }
.lobby-name small { display: block; margin-top: 2px; font: 700 12px/1.3 "Noto Sans", Arial, sans-serif; color: var(--text); }
.lobby-card.is-locked img { -webkit-filter: grayscale(.85) brightness(.55); filter: grayscale(.85) brightness(.55); }
.lobby-lock { position: absolute; top: 12px; right: 12px; z-index: 1; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(4, 18, 22, .85); font-size: 12px; font-weight: 700; color: var(--gold); }

/* Machine */
.machine-head { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between; gap: 10px; margin: 14px 0 10px; }
.machine-title { -webkit-flex: 1 1 auto; -ms-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; margin: 0; font: 400 30px/1.1 var(--display); color: var(--gold); text-shadow: 0 3px 0 var(--coral-d); }
.btn-back, .btn-paytable { -webkit-flex: 0 0 auto; -ms-flex: 0 0 auto; flex: 0 0 auto; padding: 8px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--text); font-weight: 700; }
.btn-back:hover, .btn-paytable:hover { border-color: var(--gold-d); color: #fff; }
.reels-frame { position: relative; max-width: min(860px, calc((100vh - 250px) * 1.6)); min-width: min(100%, 300px); margin: 0 auto; padding: 12px; border: 4px solid var(--gold-d); border-radius: 24px; background: linear-gradient(180deg, var(--theme, var(--coral)), var(--ink) 60%); box-shadow: 0 0 0 4px rgba(255, 122, 89, .25), 0 20px 40px rgba(0, 0, 0, .5); }
.reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.reel { position: relative; aspect-ratio: 1 / 3; border-radius: 12px; background: linear-gradient(180deg, #f3fbfc, #cfe6ea 50%, #f3fbfc); overflow: hidden; box-shadow: inset 0 6px 10px rgba(0, 0, 0, .25), inset 0 -6px 10px rgba(0, 0, 0, .25); }
.strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.cell { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; height: var(--cell, 100px); padding: 10%; }
.cell svg { width: 100%; height: 100%; -webkit-filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); }
.cell.is-win { -webkit-animation: cell-win .7s ease-in-out infinite; animation: cell-win .7s ease-in-out infinite; }
@-webkit-keyframes cell-win { 50% { -webkit-transform: scale(1.12); transform: scale(1.12); } }
@keyframes cell-win { 50% { -webkit-transform: scale(1.12); transform: scale(1.12); } }
.rank { font: 400 calc(var(--cell, 100px) * .52)/1 var(--display); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.rank-J { color: #3aa6c9; } .rank-Q { color: #d14fa0; } .rank-K { color: #f09628; } .rank-A { color: #e3243b; }
.badge { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; border: 3px solid var(--ink); border-radius: 22%; background: linear-gradient(180deg, var(--theme, var(--coral)), var(--ink)); font: 400 calc(var(--cell, 100px) * .22)/1 var(--display); color: var(--gold); text-shadow: 0 2px 0 var(--ink); }
.badge-scatter { position: relative; background: none; border: 0; }
.badge-scatter svg { position: absolute; inset: 0; }
.badge-scatter span { position: relative; padding-top: 8%; color: var(--ink); text-shadow: none; font-size: calc(var(--cell, 100px) * .17); }
.paylines { position: absolute; left: 12px; top: 12px; width: calc(100% - 24px); height: calc(100% - 24px); pointer-events: none; }
.paylines polyline { fill: none; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; -webkit-filter: drop-shadow(0 0 3px rgba(0, 0, 0, .7)); filter: drop-shadow(0 0 3px rgba(0, 0, 0, .7)); }
.free-badge { position: absolute; left: 50%; top: -18px; -webkit-transform: translateX(-50%); transform: translateX(-50%); padding: 4px 16px; border-radius: 999px; background: var(--coral); color: #fff; font: 400 18px/1.3 var(--display); white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }

.machine-bar { display: grid; grid-template-columns: 1fr auto 1fr; -webkit-align-items: center; -ms-flex-align: center; align-items: center; gap: 12px; max-width: 860px; margin: 14px auto 0; padding: 10px 14px; border: 2px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.bar-cell { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; -webkit-align-items: center; -ms-flex-align: center; align-items: center; gap: 4px; }
.bar-bet { -webkit-align-items: flex-start; -ms-flex-align: start; align-items: flex-start; }
.bar-actions { -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; -webkit-justify-content: flex-end; -ms-flex-pack: end; justify-content: flex-end; gap: 8px; }
.bar-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bar-win b { min-width: 120px; font: 400 26px/1 var(--display); color: var(--gold); }
.bar-win b.is-pop { -webkit-animation: pulse .5s ease-in-out 2; animation: pulse .5s ease-in-out 2; }
.bet-ctrl { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; gap: 8px; }
.bet-ctrl b { min-width: 92px; font: 400 20px/1 var(--display); color: #fff; }
.bet-btn { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--line); color: #fff; font: 700 20px/1 Arial, sans-serif; }
.bet-btn:hover { background: var(--mint-d); }
.bet-btn:disabled, .btn-max:disabled { opacity: .4; cursor: default; }
.btn-max, .btn-auto { padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--text); font-weight: 700; font-size: 13px; }
.btn-auto[aria-pressed="true"] { border-color: var(--coral); background: var(--coral-d); color: #fff; }
.btn-spin { min-width: 120px; padding: 12px 20px; border: 0; border-radius: 16px; background: linear-gradient(180deg, #5ef0d2, var(--mint) 45%, var(--mint-d)); box-shadow: 0 5px 0 #075548; color: #fff; font: 400 26px/1 var(--display); text-shadow: 0 2px 0 #075548; transition: -webkit-filter .15s, -webkit-transform .15s; transition: filter .15s, transform .15s; transition: filter .15s, transform .15s, -webkit-filter .15s, -webkit-transform .15s; }
.btn-spin:hover { -webkit-filter: brightness(1.08); filter: brightness(1.08); }
.btn-spin:active { -webkit-transform: translateY(3px); transform: translateY(3px); box-shadow: 0 2px 0 #075548; }
.btn-spin:disabled { -webkit-filter: grayscale(.7); filter: grayscale(.7); cursor: default; -webkit-transform: none; transform: none; }

/* In-game modal */
.game-modal { position: fixed; inset: 0; z-index: 60; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; padding: 16px; background: rgba(2, 12, 15, .75); }
.game-modal-card { width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px 22px; border: 3px solid var(--gold-d); border-radius: 24px; background: linear-gradient(180deg, var(--panel), var(--bg)); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); -webkit-animation: panel-in .45s cubic-bezier(.2, .8, .2, 1.2) both; animation: panel-in .45s cubic-bezier(.2, .8, .2, 1.2) both; }
.game-modal-title { margin: 0 0 8px; font: 400 36px/1.1 var(--display); color: var(--gold); text-shadow: 0 3px 0 var(--coral-d); }
.game-modal-text { margin: 0 0 16px; color: var(--text); }
.game-modal-body:empty { display: none; }
.game-modal-body { margin-bottom: 16px; }
.paytable { width: 100%; border-collapse: collapse; font-size: 13px; }
.paytable td { padding: 4px 6px; border-bottom: 1px solid var(--line); }
.paytable td:first-child { width: 56px; --cell: 44px; }
.paytable .cell { height: 44px; padding: 2px; }
.paytable .rank { -webkit-text-stroke: 1px var(--ink); }

/* Help dialog */
.help-dialog { position: fixed; width: 90%; max-width: none; height: 90%; max-height: none; padding: 0; border: 2px solid var(--gold-d); border-radius: 16px; background: var(--bg); overflow: hidden; }
.help-dialog::-webkit-backdrop { background: rgba(2, 12, 15, .8); }
.help-dialog::-ms-backdrop { background: rgba(2, 12, 15, .8); }
.help-dialog::backdrop { background: rgba(2, 12, 15, .8); }
.help-frame { display: block; width: 100%; height: 100%; border: 0; }
.help-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(6, 31, 38, .9); }
.help-form { display: grid; gap: 10px; justify-items: start; }
.field { display: grid; gap: 4px; width: 100%; font-size: 13px; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); color: #fff; font: 15px/1.4 "Noto Sans", Arial, sans-serif; }
.field textarea { resize: none; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--mint); outline-offset: 1px; }
.form-note { margin: 0; min-height: 1.5em; font-size: 13px; color: var(--gold); }

/* Cookie bar (top, like the original) */
.cookie-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 80; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between; gap: 16px; padding: 12px 32px; background: #f4fbfc; color: var(--ink); text-align: left; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.cookie-text { margin: 0; max-width: 820px; font-size: 13px; }
.cookie-text a { color: var(--mint-d); font-weight: 700; }
.cookie-actions { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex: 0 0 auto; -ms-flex: 0 0 auto; flex: 0 0 auto; gap: 10px; }
.cookie-btn { padding: 10px 16px; border: 0; border-radius: 6px; background: var(--coral-d); color: #fff; font-weight: 700; font-size: 13px; }
.cookie-btn--ghost { background: transparent; color: var(--mint-d); text-decoration: underline; }

/* Help Center page */
.hc-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 20; }
.hc-top { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; min-height: 64px; padding: 10px 24px; background: #03141a; border-bottom: 1px solid var(--line); }
.hc-brand { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; }
.hc-brand img { width: 40px; height: 40px; border-radius: 10px; }
.hc-brand span { padding-left: 14px; border-left: 1px solid var(--line); }
.hc-sub { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between; gap: 12px; padding: 12px max(16px, calc((100% - 1100px) / 2)); background: var(--bg-2); }
.hc-game { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 15px; }
.hc-game img { width: 28px; height: 28px; border-radius: 7px; }
.hc-back { padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; }
.hc-back { white-space: nowrap; }
.hc-back:hover { border-color: var(--gold-d); color: var(--gold); }
.hc-hero { position: relative; padding: 46px 16px 40px; background: #04171c url("/assets/img/help/help-hero.avif") center / cover no-repeat; text-align: center; }
.hc-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(6, 31, 38, .1), rgba(6, 31, 38, .55) 80%); pointer-events: none; }
.hc-hero > * { position: relative; }
.hc-hero-logo { display: block; width: min(340px, 80%); height: auto; margin: 0 auto 12px; -webkit-filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }
.hc-hero-title { margin: 0 0 22px; font: 400 46px/1.1 var(--display); color: #fff; text-shadow: 0 3px 12px rgba(0, 0, 0, .6); }
.hc-search { position: relative; max-width: 1100px; margin: 0 auto; }
.hc-search svg { position: absolute; left: 22px; top: 50%; margin-top: -11px; color: var(--muted); pointer-events: none; }
.hc-search input { width: 100%; padding: 22px 22px 22px 60px; border: 1px solid var(--line); border-radius: 10px; background: rgba(3, 20, 26, .92); color: #fff; font: 20px/1.3 "Noto Sans", Arial, sans-serif; }
.hc-search input::-webkit-input-placeholder { color: var(--muted); }
.hc-search input::-moz-placeholder { color: var(--muted); }
.hc-search input:-ms-input-placeholder { color: var(--muted); }
.hc-search input::-ms-input-placeholder { color: var(--muted); }
.hc-search input::placeholder { color: var(--muted); }
.hc-search input:focus { outline: 2px solid var(--gold-d); outline-offset: 1px; }
.hc-hero.is-compact { padding: 22px 16px; }
.hc-hero.is-compact .hc-hero-logo, .hc-hero.is-compact .hc-hero-title { display: none; }
.hc-wrap { max-width: 1132px; margin: 0 auto; padding: 0 16px 48px; text-align: left; }
.hc-h2 { margin: 52px 0 24px; font: 400 34px/1.15 var(--display); color: var(--text); }
.hc-popular-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.hc-popular-grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hc-popular-grid li:nth-child(3n) { border-right: 0; }
.hc-popular-grid li:nth-last-child(-n+3) { border-bottom: 0; }
.hc-popular-grid a { display: block; height: 100%; padding: 40px 38px 46px; color: #fff; text-decoration: none; font-size: 20px; font-weight: 700; line-height: 1.35; transition: background .2s; }
.hc-popular-grid a:hover { background: var(--panel); color: var(--gold); }
.hc-popular-grid small, .hc-list small { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 400; color: var(--muted); }
.hc-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.hc-cat { border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.hc-cat img { display: block; width: 64px; height: 64px; margin: 22px 16px 6px; }
.hc-cat h3 { margin: 0; padding: 0 16px 16px; border-bottom: 1px solid var(--line); font: 400 23px/1.2 var(--display); color: var(--text); }
.hc-cat ul, .hc-list { margin: 0; padding: 0; list-style: none; }
.hc-cat li + li, .hc-list li + li { border-top: 1px solid var(--line); }
.hc-cat a, .hc-list a { position: relative; display: block; padding: 16px 44px 16px 16px; color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.45; transition: background .2s, color .2s; }
.hc-cat a::after, .hc-list a::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -5px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); -webkit-transform: rotate(45deg); transform: rotate(45deg); }
.hc-cat a:hover, .hc-list a:hover { background: var(--panel); color: var(--gold); }
.hc-results .hc-list { border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.hc-none { color: var(--muted); }
.hc-crumbs { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.hc-crumbs a { color: var(--gold); text-decoration: none; }
.hc-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; margin-top: 18px; -webkit-align-items: start; -ms-flex-align: start; align-items: start; }
.hc-article-main { padding: 30px 34px; border-radius: 10px; background: var(--bg-2); }
.hc-article-cat { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.hc-article h2 { margin: 0 0 18px; font: 400 32px/1.15 var(--display); color: #fff; }
.hc-article p, .hc-article li { font-size: 16px; line-height: 1.7; color: var(--text); }
.hc-article ul, .hc-article ol { padding-left: 22px; }
.hc-feedback { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; -ms-flex-align: center; align-items: center; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.hc-feedback button { padding: 7px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); color: var(--text); font-weight: 700; }
.hc-feedback button:hover { border-color: var(--gold-d); color: var(--gold); }
.hc-related { border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.hc-related-title { margin: 0; padding: 18px 16px; border-bottom: 1px solid var(--line); font: 400 20px/1.2 var(--display); color: var(--gold); }
.hc-related .hc-list:empty::before { content: "No related articles."; display: block; padding: 16px; color: var(--muted); font-size: 14px; }
.hc-contact-text { max-width: 720px; color: var(--muted); }
.hc-form { max-width: 620px; padding: 26px; border-radius: 10px; background: var(--bg-2); }
.hc-cta { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between; gap: 16px; margin-top: 52px; padding: 26px 30px; border: 2px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.hc-cta-title { margin: 0; font: 400 26px/1.2 var(--display); color: var(--gold); }
.hc-cta-btn { padding: 12px 24px; border-radius: 10px; background: linear-gradient(180deg, #ffb08f, var(--coral) 50%, var(--coral-d)); box-shadow: 0 4px 0 #7d2414; color: #fff; font: 400 20px/1 var(--display); text-decoration: none; }
.hc-cta-btn:hover { color: #fff; -webkit-filter: brightness(1.06); filter: brightness(1.06); }

/* Footer */
.site-footer { padding: 14px 16px 26px; font-size: 12px; color: var(--muted); }
.footer-links { color: var(--muted); }
.footer-links a { color: var(--text); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { margin-right: 10px; }
.footer-note { max-width: 900px; margin: 8px auto 0; }
.purchase-pack { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; gap: 10px; padding: 12px; border: 2px dashed var(--gold-d); border-radius: 16px; font: 400 26px/1 var(--display); color: var(--gold); }
.purchase-pack svg { -webkit-flex: 0 0 auto; -ms-flex: 0 0 auto; flex: 0 0 auto; }
.purchase-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.purchase-note a { color: var(--gold); }
.footer-note a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 1280px; margin: 0 auto; padding: 16px 16px 32px; text-align: left; }
.legal-content { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media print { body.is-page main { display: none !important; } }
.legal-content { padding: 28px 32px; border: 2px solid var(--line); border-radius: 20px; background: var(--bg-2); }
.legal-content h1 { margin: 0 0 6px; font: 400 40px/1.1 var(--display); color: var(--gold); }
.legal-content h2 { margin: 28px 0 8px; font: 400 24px/1.2 var(--display); color: var(--gold); }
.legal-content h3 { margin: 20px 0 6px; font: 400 19px/1.25 var(--display); color: var(--text); }
.legal-content p, .legal-content li { color: var(--text); font-size: 15px; line-height: 1.65; }
.legal-content ul { padding-left: 22px; }
.legal-updated { color: var(--muted); font-size: 13px; }
.legal-back { display: inline-block; margin-top: 20px; font-weight: 700; }

@media (max-width: 1220px) {
  .hc-popular-grid, .hc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-popular-grid li:nth-child(3n) { border-right: 1px solid var(--line); }
  .hc-popular-grid li:nth-child(2n) { border-right: 0; }
  .hc-popular-grid li:nth-last-child(3) { border-bottom: 1px solid var(--line); }
  .hc-article-layout { grid-template-columns: minmax(0, 1fr); }
  .lobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-logo img { height: 56px; }
}

@media (max-width: 820px) {
  .bookmark-hint span { display: none; }
  .hc-top { padding: 10px 16px; }
  .hc-brand { font-size: 16px; }
  .hc-hero { padding: 30px 16px 28px; }
  .hc-hero-title { font-size: 32px; }
  .hc-search input { padding: 16px 16px 16px 52px; font-size: 16px; }
  .hc-search svg { left: 18px; }
  .hc-h2 { margin: 36px 0 18px; font-size: 28px; }
  .hc-popular-grid a { padding: 24px 20px 28px; font-size: 17px; }
  .hc-article-main { padding: 22px 18px; }
  .hc-article h2 { font-size: 26px; }
  .help-dialog { width: calc(100% - 16px); height: calc(100vh - 16px); }
  .ocb-desc, .ocb-tag { display: none; }
  .ocb-btn { padding: 6px 12px; font-size: 16px; }
  .site-logo img { height: 46px; }
  .landing { min-height: 520px; padding: 70px 16px 56px; }
  .landing-title { font-size: 34px; }
  .game { padding: 0 10px 20px; }
  .game-top { -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; padding: 8px 10px; }
  .hud-level { -webkit-order: 3; -ms-flex-order: 3; order: 3; -webkit-flex: 1 1 100%; -ms-flex: 1 1 100%; flex: 1 1 100%; max-width: none; }
  .hud-coins { font-size: 18px; }
  .hud-bonus { min-width: 104px; padding: 5px 10px; }
  .machine-title { font-size: 22px; }
  .reels-frame { padding: 8px; border-width: 3px; border-radius: 18px; }
  .reels { gap: 4px; }
  .paylines { left: 8px; top: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .machine-bar { grid-template-columns: 1fr 1fr; }
  .bar-actions { grid-column: 1 / -1; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; }
  .bar-win { -webkit-align-items: flex-end; -ms-flex-align: end; align-items: flex-end; }
  .cookie-bar { -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; -webkit-align-items: stretch; -ms-flex-align: stretch; align-items: stretch; padding: 12px 16px; }
  .cookie-actions { -webkit-justify-content: flex-end; -ms-flex-pack: end; justify-content: flex-end; }
  .legal-content { padding: 20px 16px; }
  .legal-content h1 { font-size: 32px; }
}

@media (max-width: 520px) {
  .hc-game { font-size: 13px; text-align: left; }
  .hc-back { padding: 6px 10px; font-size: 13px; }
  .hc-popular-grid, .hc-cats { grid-template-columns: minmax(0, 1fr); }
  .hc-popular-grid li, .hc-popular-grid li:nth-child(3n) { border-right: 0; }
  .hc-popular-grid li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .hc-brand span { padding-left: 0; border-left: 0; }
  .hc-cta { padding: 20px; }
  .lobby-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-back, .btn-paytable { padding: 6px 10px; font-size: 12px; }
  .bar-win b { min-width: 0; font-size: 22px; }
  .btn-spin { min-width: 100px; font-size: 22px; }
  .btn-max, .btn-auto { padding: 9px 10px; font-size: 12px; }
}

@media (max-width: 360px) {
  .landing-title { font-size: 28px; }
  .btn-play { min-width: 160px; font-size: 26px; }
  .hud-coins { font-size: 16px; }
  .bet-ctrl b { min-width: 70px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { -webkit-animation-duration: .01ms !important; animation-duration: .01ms !important; -webkit-animation-delay: 0s !important; animation-delay: 0s !important; -webkit-animation-iteration-count: 1 !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
