:root {
  color-scheme: dark;
  --bg: #040810;
  --surface: #08101d;
  --surface-2: #0c1727;
  --line: rgba(181, 214, 238, .18);
  --line-strong: rgba(224, 243, 255, .42);
  --text: #f4f8fb;
  --muted: #8fa3b6;
  --silver: #dbe9f2;
  --gold: #e7bf65;
  --gold-bright: #f2d88e;
  --gold-2: #a97b2d;
  --blue: #157aca;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% -10%, rgba(16, 98, 166, .2), transparent 34rem),
    radial-gradient(circle at 15% 12%, rgba(27, 73, 112, .18), transparent 32rem),
    var(--bg);
  color: var(--text);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.content-shell { min-width: 0; }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(4,9,16,.74), rgba(3,10,18,.95)),
    radial-gradient(circle at 20% 86%, rgba(10,92,147,.28), transparent 42%),
    #050b13;
}
.sidebar::after { content: ""; position: absolute; inset: auto -35% -12% -35%; height: 44%; background: radial-gradient(ellipse, rgba(17,107,165,.22), transparent 67%); pointer-events: none; }
.sidebar-brand { min-height: 99px; padding: 0 28px; border-bottom: 1px solid var(--line); font-size: 1.9rem; }
.sidebar-brand span { color: transparent; background: linear-gradient(180deg, #fff 10%, #c7d7e1 48%, #728b9d 52%, #d8e5ec 82%); background-clip: text; filter: drop-shadow(0 3px 1px #020509); }
.sidebar-nav { display: grid; gap: 2px; padding: 18px 10px; }
.sidebar-nav a { display: grid; grid-template-columns: 34px 1fr; align-items: center; min-height: 68px; padding: 0 19px; border: 1px solid transparent; border-radius: 11px; color: #b9c7d2; font-size: .79rem; font-weight: 800; letter-spacing: .05em; transition: .17s ease; }
.sidebar-nav a span { color: #dce8ef; font-size: 1.45rem; }
.sidebar-nav a:hover { background: rgba(255,255,255,.035); color: #fff; }
.sidebar-nav a.active { border-color: rgba(231,191,101,.58); background: linear-gradient(90deg, rgba(209,157,62,.18), rgba(10,22,37,.86)); color: #fff3d3; box-shadow: 0 0 24px rgba(194,139,42,.12), inset 0 0 0 1px rgba(255,244,214,.05); }
.sidebar-watermark { position: relative; z-index: 2; margin-top: auto; padding: 25px 28px; color: rgba(196,214,227,.2); font-family: Georgia, serif; font-size: 1.05rem; font-weight: 800; letter-spacing: .1em; }
.sidebar-watermark span { font-family: inherit; font-size: .48rem; letter-spacing: .16em; }
.sidebar-legal { display: grid; gap: 10px; padding: 4px 29px 16px; }
.sidebar-legal a { color: #62778a; font-size: .58rem; font-weight: 800; letter-spacing: .1em; }
.sidebar-legal a:hover { color: var(--gold); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, 460px) 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 3vw;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 16, .88);
  backdrop-filter: blur(18px);
}
.brand.mobile-brand { display: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.32rem; letter-spacing: .08em; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 9px;
  background: linear-gradient(145deg, #eff8ff, #7e9eb7 46%, #10243b 48%, #07111d);
  color: #06101b;
  font-family: Georgia, serif;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(119,190,238,.2);
}
.top-actions, .guest-actions, .player-actions { display: flex; align-items: center; gap: 10px; }
.top-actions { justify-self: end; }
.language-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 0; color: #748090; background: transparent; font: inherit; font-size: 12px; letter-spacing: .08em; cursor: pointer; }
.language-toggle span.active { color: var(--gold-bright); text-shadow: 0 0 12px rgba(232, 202, 133, .3); }
.search-box { display: flex; align-items: center; gap: 9px; width: min(100%, 460px); padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 20, 35, .72); color: var(--muted); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-box input::placeholder { color: #6e8192; }
.btn { min-height: 42px; padding: 0 19px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; font-size: .78rem; font-weight: 900; letter-spacing: .08em; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn:active { transform: translateY(0); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255,255,255,.03); }
.btn-primary, .btn-submit { border-color: rgba(255,230,168,.62); color: #08101b; background: linear-gradient(135deg, #f4dd9c, #c58e36 60%, #81561e); box-shadow: 0 7px 24px rgba(194,139,42,.2); }
.auth-divider { color: #536779; }
.points-pill { display: flex; gap: 8px; align-items: baseline; padding: 10px 14px; border: 1px solid rgba(231,191,101,.34); border-radius: 999px; background: rgba(90,60,14,.12); }
.points-pill span { color: var(--gold); font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.points-pill strong { font-size: .95rem; }
.profile-button { display: flex; align-items: center; gap: 8px; padding: 5px 9px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11,23,39,.82); cursor: pointer; font-size: .76rem; font-weight: 800; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(145deg, var(--silver), #607f99); color: #06101a; }
.player-actions { position: relative; }
.profile-menu { position: absolute; top: 53px; right: 0; min-width: 180px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #091321; box-shadow: 0 22px 60px rgba(0,0,0,.48); }
.profile-menu button { width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; text-align: left; background: transparent; cursor: pointer; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.profile-menu button:hover { background: rgba(255,255,255,.06); }

main { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 26px 0 72px; }
.page-view { animation: page-in .24s ease both; }
.page-view:not(.active) { display: none; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.hero-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(430px, .95fr) 1.05fr;
  min-height: clamp(360px, 32vw, 470px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #06101d;
  box-shadow: 0 28px 90px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.03);
}
.hero-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #050b13 0%, rgba(5,12,21,.97) 28%, rgba(3,10,18,.58) 52%, rgba(3,10,18,.08) 100%); }
.hero-section::after { content: ""; position: absolute; inset: 10px; pointer-events: none; border: 1px solid rgba(221,239,250,.22); border-radius: 17px; }
.hero-copy { align-self: center; z-index: 2; padding: clamp(32px, 4vw, 60px); padding-right: 20px; }
.eyebrow { margin: 0 0 13px; color: var(--gold); font-size: .7rem; font-weight: 900; letter-spacing: .25em; }
.hero-copy h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 4.25vw, 5rem); line-height: .9; letter-spacing: .018em; color: transparent; background: linear-gradient(180deg, #fff 10%, #b8cedd 48%, #5f7f98 52%, #d9e7ef 82%); background-clip: text; filter: drop-shadow(0 7px 2px #02050a); }
.hero-text { max-width: 460px; margin: 25px 0; color: #a7bac9; line-height: 1.65; }
.btn-hero { min-width: 164px; min-height: 51px; border-color: rgba(231,191,101,.7); background: linear-gradient(180deg, #122b49, #06152a); box-shadow: inset 0 0 0 2px rgba(231,191,101,.16), 0 9px 28px rgba(0,0,0,.4); color: #f4d98f; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: #6f8799; font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.hero-art { position: absolute; z-index: -2; inset: 0; background: url("../assets/hero-silver-v2.jpg") center / cover no-repeat; filter: saturate(.9) contrast(1.06) brightness(.92); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 38%, rgba(49,149,222,.2), transparent 36%), linear-gradient(0deg, rgba(4,8,16,.33), transparent 55%); }
.hero-dots { position: absolute; z-index: 3; bottom: 20px; left: 50%; display: flex; gap: 7px; }
.hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: #627483; }
.hero-dots span.active { width: 22px; border-radius: 9px; background: var(--gold); }

.catalog-section { padding-top: 46px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.6rem, 2.4vw, 2.35rem); letter-spacing: .08em; }
.text-button, .link-button { border: 0; background: transparent; color: var(--gold); cursor: pointer; font-size: .72rem; font-weight: 800; letter-spacing: .09em; }
.category-tabs { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: rgba(8,16,29,.7); }
.category-tabs button { min-height: 52px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.category-tabs button:last-child { border-right: 0; }
.category-tabs button:hover, .category-tabs button.active { color: #09111c; background: linear-gradient(180deg, #f3e5bd, #bd8d3c); }
.game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px; }
.game-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.game-card:hover { transform: translateY(-6px); border-color: rgba(231,191,101,.62); box-shadow: 0 18px 38px rgba(0,0,0,.34); }
.game-card.filtered-out { display: none; }
.card-image { display: grid; place-items: center; aspect-ratio: .92; border-bottom: 1px solid var(--line); background: #0b1626; }
.poster-card .card-image { aspect-ratio: 217 / 304; border-bottom: 0; background-position: center; background-size: cover; }
.card-diablo { background-image: url("../assets/card-diablo-arowanas.jpg"); }
.card-golden { background-image: url("../assets/card-golden-tide.jpg"); }
.card-dragon { background-image: url("../assets/card-dragon-vault.jpg"); }
.card-neon { background-image: url("../assets/card-neon-fortune.jpg"); }
.card-ocean { background-image: url("../assets/card-ocean-king.jpg"); }
.card-star { background-image: url("../assets/card-star-legacy.jpg"); }
.poster-card .card-content { display: none; }
.poster-card .card-play { position: absolute; left: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); min-height: 38px; border: 1px solid rgba(231,191,101,.48); border-radius: 8px; background: rgba(4,10,18,.88); color: #f1d991; opacity: 0; transform: translateY(5px); transition: .18s ease; }
.poster-card:hover .card-play, .poster-card:focus-within .card-play { opacity: 1; transform: none; }
.arowana-image { background: linear-gradient(180deg, transparent 55%, rgba(2,8,15,.85)), url("../assets/diablo-arowana-hero.png") center / cover; }
.theme-treasure { background: radial-gradient(circle at 50% 60%, #b67b21, transparent 28%), linear-gradient(145deg, #4b3010, #090c13 72%); }
.theme-dragon { background: radial-gradient(circle at 50% 46%, #9c4e19, transparent 30%), linear-gradient(145deg, #35150e, #090b10 70%); }
.theme-neon { background: radial-gradient(circle at 70% 30%, #1c9cd3, transparent 28%), radial-gradient(circle at 30% 70%, #a323ce, transparent 34%), #090e21; }
.theme-ocean { background: radial-gradient(circle at 50% 42%, #147b9f, transparent 34%), linear-gradient(150deg, #092d43, #050b13 72%); }
.theme-space { background: radial-gradient(circle at 65% 35%, #2453a8, transparent 25%), linear-gradient(140deg, #111b4f, #04060c 74%); }
.card-symbol { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 4.4rem); font-weight: 900; color: rgba(255,240,201,.86); text-shadow: 0 7px 25px currentColor; }
.favorite { position: absolute; z-index: 2; top: 9px; right: 9px; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; background: rgba(3,8,14,.6); cursor: pointer; color: var(--gold); font-size: 1.2rem; }
.favorite.active { background: var(--gold); color: #0a111a; }
.card-content { min-height: 100px; padding: 14px; }
.card-content h3 { margin: 7px 0 4px; font-family: Georgia, serif; font-size: 1rem; letter-spacing: .05em; }
.card-content p { margin: 0; color: #718497; font-size: .61rem; font-weight: 800; letter-spacing: .1em; }
.card-badge { display: inline-block; padding: 3px 7px; border: 1px solid rgba(231,191,101,.42); border-radius: 999px; color: var(--gold); font-size: .54rem; font-weight: 900; letter-spacing: .1em; }
.card-play { width: 100%; min-height: 42px; border: 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.025); color: #9cabb8; cursor: pointer; font-size: .65rem; font-weight: 900; letter-spacing: .1em; }
.arowana-card .card-play { color: #09111a; background: linear-gradient(180deg, #f2e1b4, #b98434); }
.empty-state { padding: 50px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); }

.dashboard-page { min-height: calc(100vh - 178px); padding-top: 22px; }
.page-title-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 28px; }
.page-title-row h1 { margin: 0 0 10px; font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.8rem); letter-spacing: .08em; color: transparent; background: linear-gradient(180deg, #fff, #839caf 55%, #d8e6ed); background-clip: text; }
.page-title-row p:not(.eyebrow) { margin: 0; color: var(--muted); }
.balance-card { min-width: 270px; padding: 22px 25px; border: 1px solid rgba(231,191,101,.5); border-radius: 17px; background: linear-gradient(145deg, rgba(34,48,64,.95), rgba(7,15,25,.95)); box-shadow: inset 0 0 25px rgba(231,191,101,.06); }
.balance-card span, .balance-card small { display: block; color: #8194a4; font-size: .62rem; font-weight: 800; letter-spacing: .13em; }
.balance-card strong { display: block; margin: 5px 0 9px; color: var(--gold-bright); font-family: Georgia, serif; font-size: 2.3rem; }
.sub-tabs { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 13px; background: rgba(8,16,29,.72); }
.sub-tabs button { min-height: 54px; border: 0; border-right: 1px solid var(--line); background: transparent; color: #8093a4; cursor: pointer; font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.sub-tabs button:last-child { border-right: 0; }
.sub-tabs button.active { color: #07101a; background: linear-gradient(180deg, #f3e5bd, #bd8d3c); }
.wallet-panel.active { animation: page-in .2s ease both; }
.panel-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(13,26,43,.92), rgba(5,11,19,.96)); box-shadow: 0 22px 60px rgba(0,0,0,.22); }
.panel-card h2 { margin: 0 0 20px; font-family: Georgia, serif; letter-spacing: .06em; }
.panel-card p { color: var(--muted); }
.topup-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(35px, 7vw, 110px); align-items: start; }
.topup-form, .account-settings { display: grid; gap: 16px; }
.topup-form label, .account-settings label { display: grid; gap: 7px; color: #9fb0be; font-size: .62rem; font-weight: 900; letter-spacing: .1em; }
.topup-form input, .account-settings input, .account-settings select { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: rgba(2,8,14,.62); color: var(--text); }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.amount-grid button { min-height: 46px; border: 1px solid var(--line); border-radius: 9px; background: #0a1727; color: #a9bac7; cursor: pointer; font-weight: 800; }
.amount-grid button.active { border-color: var(--gold); color: #07101a; background: linear-gradient(180deg, #f3e3b7, #bd8a36); }
.data-table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.table-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: #9cafbd; font-size: .74rem; }
.table-row:last-child { border-bottom: 0; }
.table-row.head { color: #607789; background: rgba(255,255,255,.025); font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.positive { color: #72d9aa; }.negative { color: #ef8c8c; }
.reward-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reward-card { padding: 26px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(160deg, #12253b, #070e18 72%); }
.reward-card > div { min-height: 145px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 12px; background: radial-gradient(circle, rgba(231,191,101,.22), transparent 52%), #07131f; color: var(--gold); font-family: Georgia, serif; font-size: 1.4rem; }
.reward-card h3 { margin: 0; font-family: Georgia, serif; }.reward-card p { color: var(--gold); font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.account-grid { display: grid; grid-template-columns: .72fr 1.2fr 1fr; gap: 18px; align-items: start; }
.profile-summary { text-align: center; }.large-avatar { display: grid; place-items: center; width: 90px; height: 90px; margin: 0 auto 18px; border: 2px solid var(--gold); border-radius: 50%; background: linear-gradient(145deg, #dbe8ef, #506c83); color: #06101b; font-family: Georgia, serif; font-size: 2.5rem; font-weight: 900; }
.profile-summary h2 { margin-bottom: 5px; }.profile-summary p { margin: 0 0 18px; }.profile-summary span { color: var(--gold); font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.account-links { display: grid; }.account-links button, .account-links a { display: flex; justify-content: space-between; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #a9bac8; cursor: pointer; text-align: left; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 28px 3vw; border-top: 1px solid var(--line); color: #66798a; font-size: .67rem; letter-spacing: .08em; }
footer strong { color: var(--silver); font-size: 1rem; }
footer div { display: flex; gap: 20px; }

.legal-body { background: radial-gradient(circle at 75% 0, rgba(20,102,165,.18), transparent 34rem), #040810; }
.legal-header { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; min-height: 76px; padding: 0 4vw; border-bottom: 1px solid var(--line); background: rgba(4,8,16,.92); backdrop-filter: blur(16px); }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 850px); gap: clamp(35px, 6vw, 90px); width: min(1180px, 92vw); margin: 0 auto; padding: 55px 0 100px; }
.legal-menu { position: sticky; top: 115px; align-self: start; display: grid; gap: 5px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(8,17,29,.78); }
.legal-menu p { padding: 0 10px 12px; color: var(--gold); font-size: .62rem; font-weight: 900; letter-spacing: .14em; }
.legal-menu a { padding: 11px 10px; border-radius: 8px; color: #8ca0b1; font-size: .65rem; font-weight: 800; letter-spacing: .06em; }
.legal-menu a:hover { background: rgba(255,255,255,.04); color: #fff; }
.legal-content { min-width: 0; }
.legal-content section { scroll-margin-top: 105px; padding: 35px 0; border-bottom: 1px solid var(--line); }
.legal-content section:first-of-type { padding-top: 15px; }
.legal-content h1 { margin: 0 0 24px; font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: .04em; }
.legal-content h2 { margin: 0 0 17px; font-family: Georgia, serif; letter-spacing: .05em; }
.legal-content p { max-width: 760px; color: #9cafbd; line-height: 1.8; }
.legal-notice { padding: 14px 17px; border: 1px solid rgba(231,191,101,.36); border-radius: 10px; background: rgba(131,91,20,.12); color: #d8bd7d; font-size: .65rem; font-weight: 800; letter-spacing: .08em; }

.auth-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(1,5,10,.78); backdrop-filter: blur(10px); }
.auth-modal { position: relative; width: min(460px, 100%); max-height: calc(100vh - 38px); overflow-y: auto; padding: 34px; border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(155deg, #0d1a2b, #060c15 64%); box-shadow: 0 40px 100px rgba(0,0,0,.62), inset 0 0 0 1px rgba(255,255,255,.035); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.03); cursor: pointer; font-size: 1.3rem; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 3px 0 25px; letter-spacing: .11em; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(1,6,12,.4); }
.auth-tabs button { min-height: 43px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.auth-tabs button.active { color: #08101b; background: linear-gradient(180deg, #f6e8c2, #bb8938); }
.auth-copy { margin: 27px 0 22px; text-align: center; }
.auth-copy h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.8rem; letter-spacing: .07em; }
.auth-copy p { margin: 0; color: var(--muted); font-size: .83rem; }
.auth-form { display: grid; gap: 16px; }
.auth-form > label { display: grid; gap: 7px; color: #b5c4d1; font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.auth-form input:not([type="checkbox"]) { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: rgba(3,9,16,.65); color: var(--text); }
.auth-form input:focus { border-color: rgba(231,191,101,.7); box-shadow: 0 0 0 3px rgba(231,191,101,.1); }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.check-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; color: var(--muted) !important; font-size: .72rem !important; font-weight: 600 !important; letter-spacing: 0 !important; }
.check-label input { accent-color: var(--gold-2); }
.terms-check { margin: 2px 0; }
.btn-submit { width: 100%; min-height: 50px; }
.demo-note { margin: -4px 0 0; color: #66798a; text-align: center; font-size: .68rem; line-height: 1.45; }
.toast { position: fixed; z-index: 130; left: 50%; bottom: 26px; transform: translateX(-50%); min-width: min(360px, calc(100vw - 32px)); padding: 13px 18px; border: 1px solid rgba(231,191,101,.46); border-radius: 11px; background: #0c1826; box-shadow: 0 18px 50px rgba(0,0,0,.48); color: #f2ddaa; text-align: center; font-size: .78rem; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar-brand { padding-inline: 22px; font-size: 1.55rem; }
  .sidebar-nav a { padding-inline: 14px; }
  .topbar { grid-template-columns: minmax(190px, 320px) 1fr; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: auto; padding: 13px 18px; }
  .topbar { grid-template-columns: auto 1fr; }
  .brand.mobile-brand { display: inline-flex; }
  .search-box { display: none; }
  .auth-divider { display: none; }
  .btn { padding: 0 13px; }
  main { width: min(94vw, 680px); padding-top: 18px; }
  .hero-section { display: block; min-height: 610px; }
  .hero-section::before { background: linear-gradient(0deg, #050b13 0%, rgba(5,12,21,.9) 52%, rgba(3,10,18,.18) 100%); }
  .hero-art { inset: 0 0 32% 0; }
  .hero-copy { position: absolute; left: 0; right: 0; bottom: 34px; padding: 32px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 13vw, 5.2rem); }
  .hero-dots { display: none; }
  .category-tabs { display: flex; overflow-x: auto; }
  .category-tabs button { min-width: 130px; border-bottom: 0; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .poster-card .card-play { opacity: 1; transform: none; }
  .page-title-row, .topup-card { display: grid; grid-template-columns: 1fr; }
  .balance-card { min-width: 0; }
  .account-grid, .reward-grid { grid-template-columns: 1fr; }
  .sub-tabs { display: flex; overflow-x: auto; }
  .sub-tabs button { min-width: 150px; }
  footer { flex-direction: column; align-items: flex-start; }
  .legal-layout { display: block; padding-top: 25px; }
  .legal-menu { position: static; margin-bottom: 25px; }
  .legal-header { padding: 12px 18px; }
}
@media (max-width: 560px) {
  .brand > span:last-child { display: none; }
  .guest-actions .btn { font-size: .65rem; min-height: 38px; padding: 0 10px; }
  .points-pill { display: none; }
  .profile-button > span:nth-child(2) { display: none; }
  .hero-section { min-height: 560px; border-radius: 17px; }
  .hero-copy { padding: 24px; }
  .hero-text { font-size: .86rem; }
  .hero-meta { gap: 9px; }
  .section-heading { align-items: center; }
  .game-grid { gap: 11px; }
  .card-content { min-height: 92px; padding: 11px; }
  .card-content h3 { font-size: .82rem; }
  .auth-modal { padding: 29px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
