@font-face {
  font-family: Kanit;
  src: url('/assets/169730269f7b5b924878.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Kanit;
  src: url('/assets/d820a1c80900076f6205.woff2') format('woff2');
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  scroll-padding-block-start: calc(var(--header-height) + 8px);
  --base: #12296f;
  --deep: #0a1437;
  --top: #1a43a8;
  --surface: #172857;
  --raised: #20366b;
  --line: #344f86;
  --text: #f7f9ff;
  --muted: #b4c5ed;
  --gold: #ffce83;
  --pink: #f53aab;
  --header-height: 70px;
  font-family: Kanit, system-ui, sans-serif;
  color: var(--text);
  background: var(--base);
}

*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; min-width: 0; min-height: 100vh; line-height: 1.48 }
a { color: inherit; text-decoration: none }
button, input, select { font: inherit }
button { color: inherit; cursor: pointer }
img, picture { display: block; max-width: 100% }
img { height: auto }
svg { width: 1.16em; height: 1.16em; flex-shrink: 0; vertical-align: -0.16em }
h1, h2, h3, p { margin: 0 }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 30; top: 8px; left: 8px; padding: 10px 16px; background: var(--raised); border-radius: 10px }
.startup { display: grid; justify-items: center; align-content: center; gap: 15px; min-height: 73vh; color: var(--muted) }

.topbar {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #4462ac;
  background: var(--top);
  background-image: linear-gradient(115deg,#1c48ad,#173a91);
  box-shadow: 0 7px 24px #07122a70;
}
.topinner {
  max-width: 1510px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(14px,3vw,34px);
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { min-width: 0; display: flex; align-items: center }
.brand img { width: auto; height: calc(var(--header-height) - 8px); object-fit: contain }
.top-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; flex-shrink: 0 }
.top-actions .button { border-radius: 999px }
.top-actions .primary { background: #f90597; border-color: #f90597 }
.top-actions .outline { background: transparent; border-color: #fb54b6 }
.button, .icon-btn, .locale {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .48em;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
}
.button { padding: 0 15px; font-weight: 600 }
.primary { background: linear-gradient(155deg,#e52b9b,#b02189); border-color: #fa70c0; box-shadow: inset 0 1px #ffc2e248 }
.outline { background: #172d65; border-color: #6181c0 }
.icon-btn { padding: 0; width: 44px; flex: 0 0 auto }
.locale { background: transparent; padding: 0 9px; font-size: .86rem; color: #e0eaff }
.button:hover, .icon-btn:hover, .locale:hover { filter: brightness(1.13) }

.site-frame { max-width: 1510px; margin: 0 auto; display: grid; grid-template-columns: 202px minmax(0,1fr); align-items: start }
.rail { position: sticky; top: var(--header-height); max-height: calc(100dvh - var(--header-height)); overflow: auto; padding: 14px 10px 20px 13px; scrollbar-width: thin }
.rail nav, .drawer nav { display: grid; gap: 4px }
.rail nav a, .drawer nav a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 8px 11px; color: var(--muted); border: 1px solid transparent; border-radius: 9px }
.rail nav a:hover, .drawer nav a:hover { color: white; background: var(--surface) }
.rail a[aria-current], .drawer a[aria-current] { border-color: #637db8; background: linear-gradient(110deg,#304b8b,#1c3065); color: var(--gold) }
.site-content { min-width: 0; background: radial-gradient(ellipse 70% 400px at 78% 0%,#294e9a55,transparent),var(--base) }
#main { min-height: clamp(420px,67vh,750px); padding: clamp(17px,2.35vw,31px); outline: none }
#main.startup { min-height: 76vh }
.startup img { width: auto; height: 110px }
.dock { display: none }

.announcement {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #161b41;
  text-align: left;
  background: linear-gradient(100deg,#ffac37,#ff9220);
  border: 1px solid #ffb955;
  border-radius: 12px;
  padding: 8px 14px;
  margin-bottom: 13px;
}
.announcement span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

.carousel { position: relative; min-width: 0 }
.slides {
  display: flex;
  position: relative;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 16px;
  border: 1px solid #6a87c3;
  background: #101e4c;
}
.slides::-webkit-scrollbar, .quick-tags::-webkit-scrollbar { display: none }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start }
.slide img { width: 100%; height: auto; aspect-ratio: 716 / 320; object-fit: contain; background: #101e4c }
@media (min-width: 820px) {
  .slide img { aspect-ratio: 2264 / 838 }
}
.carousel-controls {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin: 7px 0 0 auto;
  color: var(--muted);
  font-size: .84rem;
}
.carousel-controls .icon-btn { width: 38px; min-height: 36px; font: 1.5rem system-ui; }
.carousel-controls output { min-width: 3.5em; text-align: center }

.quick-tags, .category-chips {
  display: flex;
  gap: 8px;
  margin: 12px 0 14px;
}
.quick-tags { margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 7px; }
.quick-tags a {
  display: grid;
  place-items: center;
  gap: 3px;
  flex: 1 0 max(9%,86px);
  min-height: 67px;
  padding: 6px 10px;
  background: linear-gradient(155deg,#304d8e,#192e69 58%,#172957);
  border: 1px solid #4a68a3;
  border-radius: 11px;
  font-size: .84rem;
  white-space: nowrap;
}
.quick-tags svg { font-size: 1.5rem; color: var(--gold) }
.quick-tags a:hover { background: #31518e }

.quick-tools { display: grid; gap: 8px; margin: 16px 0 23px }
.quick-provider { display: flex; min-width: 0; gap: 8px }
.quick-provider select { width: 100%; min-width: 0; min-height: 44px; padding-inline: 14px; border: 1px solid #597dcb; border-radius: 999px; color: var(--text); background: #1b45aa; }
.quick-provider .icon-btn { background: transparent; border-color: transparent; }
.quick-tools form { display: flex; gap: 6px; flex: 1; min-width: 0 }
.quick-tools input, .catalog-tools input, .catalog-tools select, .auth-fields input {
  width: 100%; min-width: 0; min-height: 44px;
  border: 1px solid var(--line);
  background: #0e1e48;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: max(16px, 1em);
}
input::placeholder { color: #a8bce5; opacity: 1 }

.shelf { margin-top: 24px; min-width: 0 }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #6480ba;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(113deg,#2b4d9a,#21336e 57%,#142653);
}
.section-head h2 { display: flex; align-items: center; gap: 8px; font-size: clamp(1.04rem,2vw,1.32rem); font-weight: 600 }
.section-head h2 svg { color: var(--gold) }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-size: .9em; white-space: nowrap; min-height: 35px }
.text-link:hover { text-decoration: underline }

.shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(111px,15vw,174px); gap: 10px; padding: 3px 2px 8px; width: 100%; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity }
.shelf-track > * { scroll-snap-align: start }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(135px,1fr)); gap: 10px }
.game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #182c60;
}
.game-card:hover, .promo-card:hover, .provider:hover { border-color: var(--gold) }
.game-art { aspect-ratio: 3 / 4; background: #0d1942; min-height: 0; overflow: hidden }
.game-art img { width: 100%; height: 100%; object-fit: contain }
.card-caption { display: grid; align-content: start; gap: 3px; padding: 7px 9px; flex: 1; overflow-wrap: anywhere; }
.card-caption strong { font-size: .83rem; line-height: 1.28; font-weight: 600 }
.card-caption small { color: var(--muted); font-size: .72rem; line-height: 1.3 }

.page-heading { display: grid; gap: 4px; margin: 3px 0 20px }
.page-heading > a { color: var(--gold); justify-self: start; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px }
.page-heading h1 { font-size: clamp(1.65rem,3.9vw,2.55rem); line-height: 1.2; font-weight: 700; overflow-wrap: anywhere }
.page-heading p { color: var(--muted); overflow-wrap: anywhere }
.catalog-wrap { min-width: 0 }
.catalog-tools { display: grid; grid-template-columns: minmax(0,2fr) repeat(2,minmax(0,1fr)); gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface) }
.catalog-tools label, .auth-fields label { display: grid; gap: 5px; align-content: start; min-width: 0; font-size: .9rem; color: var(--muted) }
.category-chips { flex-wrap: wrap }
.category-chips > * { display: inline-flex; align-items: center; min-height: 42px; padding: 6px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 11px; font-size: .9rem }
.category-chips > [aria-current], .category-chips > [aria-pressed=true] { background: #3e326f; border-color: #da68aa; color: #ffdb9e }
.category-chips > *:hover { border-color: #7895d4 }
.results-head { color: var(--muted); margin: 5px 0 10px }
.load-row { text-align: center; margin-top: 16px }
.empty { grid-column: 1/-1; padding: 24px; text-align: center; border: 1px dashed var(--line); color: var(--muted); border-radius: 12px }
.empty svg { font-size: 1.5rem }

.reward-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px }
.promo-shelf .section-head { background: none; border-bottom: 0; padding: 0; margin-bottom: 14px; }
.promo-shelf .section-head svg { color: #ff97d7 }
.promo-shelf .text-link { min-height: 40px; padding-inline: 14px; color: white; border: 1px solid #ff49b1; border-radius: 999px }
.promo-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
.promo-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-block-size: clamp(232px,63vw,290px);
  height: 100%;
  display: flex;
  color: #fff;
  background: #183a94;
  border: 1px solid #3456ad;
  border-radius: 23px;
  overflow: hidden;
}
.promo-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.promo-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#153991 2%,#173790fa 37%,#233982b8 58%,#1b2c661b 80%,transparent 100%); }
.promo-card-content { display: flex; min-width: 0; width: 100%; flex-direction: column; align-items: flex-start; padding: 8px clamp(12px,4vw,18px) 14px; }
.promo-type { display: inline-flex; align-items: center; gap: 5px; color: #ffc6f0; background: #2d4ca6b0; font-size: .84rem; border-radius: 999px; padding: 4px 10px; }
.promo-type[data-type="3"] { color: #ffe799 }
.promo-copy { width: min(64%,390px); margin-top: 10px; overflow-wrap: anywhere; }
.promo-copy h3 { font-size: clamp(1.04rem,3.8vw,1.27rem); line-height: 1.32; font-weight: 600; }
.promo-copy p { margin-top: 7px; color: #edf2ff; font-size: .91rem; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: auto; padding-top: 11px; }
.promo-claim { min-width: 98px; background: #f90597; border-color: #f90597; border-radius: 999px; }
.promo-conditions { display: inline-flex; align-items: center; gap: 4px; color: #eef2ff; min-height: 44px; font-size: .86rem; }
.promo-conditions:hover { text-decoration: underline; }
@media (min-width: 740px) {
  .promo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .promo-card { min-block-size: clamp(235px,24vw,300px); }
}
.feature { background: linear-gradient(145deg,#22386c,#162754 78%); border: 1px solid var(--line); border-radius: 15px; padding: clamp(14px,2vw,24px); min-width: 0; overflow-wrap: anywhere }
.feature h2 { margin-bottom: .45em; font-size: clamp(1.22rem,2.8vw,1.65rem); }
.promotion-detail { display: grid; justify-items: start; gap: 16px }
.promotion-detail > img, .section-hero img { max-height: 510px; width: 100%; object-fit: contain; border-radius: 10px; background: #101c42 }
.section-hero { background: var(--surface); padding: 6px; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 15px }
.reward-grid .feature img { width: 100%; aspect-ratio: 1.8; object-fit: contain }
.reward-grid h2 { margin-top: .5em }
.prose { display: flow-root; max-width: 100%; color: #e5edff; }
.prose > * + * { margin-top: .85em }
.prose li + li { margin-top: .4em }
.prose :is(ul,ol) { padding-inline-start: 1.5em }
.prose img { max-height: 560px; object-fit: contain }
.prose table { display: block; border-collapse: collapse; overflow-x: auto; max-width: 100%; }
.prose :is(th,td) { border: 1px solid var(--line); padding: 6px 8px; min-width: 70px }
.prose a { color: var(--gold); text-decoration: underline }

.provider-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(135px,1fr)); gap: 10px }
.provider { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; overflow-wrap: anywhere }
.provider > div { display: grid; grid-column: 1/-1; place-items: center; aspect-ratio: 526 / 268; background: #111e43; border-radius: 7px; overflow: hidden }
.provider img { width: 100%; height: 100%; object-fit: contain }
.provider svg { color: var(--gold) }

.game-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.1fr); align-items: center; gap: clamp(13px,3vw,30px) }
.game-detail > img { width: min(100%,245px); max-height: 340px; aspect-ratio: 3/4; object-fit: contain; background: #0e1e47; border-radius: 10px }
.game-detail dl { display: flex; gap: 14px 22px; flex-wrap: wrap; }
.game-detail dd { margin: 0; }
.game-detail dt, .muted { color: var(--muted) }
.eyebrow { color: var(--gold); margin-bottom: 3px }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 }
.auth-card { max-width: 450px; display: grid; gap: 13px; margin: 0 auto }
.auth-fields { display: grid; gap: 9px }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 10px; border: 1px solid var(--line); overflow: hidden }
.auth-tabs a { padding: 9px 5px; text-align: center; white-space: nowrap }
.auth-tabs a[aria-current] { background: #59336f; color: #ffdb9e }
.wide { width: 100% }
.wallet-layout { display: grid; grid-template-columns: 1fr 1.55fr; gap: 12px; margin-bottom: 12px }
.balance { background: radial-gradient(ellipse at right top,#913a864d,transparent),linear-gradient(145deg,#2a4680,#192952); }
.balance img { width: auto; height: 76px; margin-bottom: 13px; }
.balance p, .balance small { color: var(--muted); }
.balance strong { display: block; color: var(--gold); font-size: 2rem; margin: 3px 0; }
.wallet-controls .category-chips:first-child { margin-top: 0 }
.wallet-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.wallet-result output { color: var(--gold); font-size: 1.26rem }

.site-footer { display: grid; grid-template-columns: 1fr 1.35fr; gap: 13px 20px; padding: 21px clamp(17px,2.35vw,31px); background: var(--deep); border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.site-footer img { width: auto; height: 64px; }
.site-footer p { margin-top: 3px; }
.site-footer nav { align-self: center; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.site-footer a:hover { color: var(--gold) }
.site-footer small { grid-column: 1/-1; }

dialog { padding: 0; color: var(--text); background: var(--deep); border: 1px solid #6382bb; border-radius: 15px; box-shadow: 0 20px 65px #04091bb0; }
dialog::backdrop { background: #02081ac9; }
.drawer { margin: 0 auto 0 0; width: min(340px,calc(100vw - 28px)); height: 100dvh; max-height: 100%; border-radius: 0 15px 15px 0; }
.drawer header, .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer header { position: sticky; top: 0; background: var(--deep); padding: 12px; border-bottom: 1px solid var(--line); }
.drawer nav { padding: 9px 12px 18px; }
.info-dialog { width: min(530px,calc(100vw - 28px)); max-height: calc(100dvh - 34px); padding: 14px; background: #173d9d; }
.info-dialog > * + * { margin-top: 10px; }
.info-dialog img { width: 100%; max-height: 50vh; object-fit: contain; border-radius: 9px; background: var(--surface); }
.info-dialog .notice-position { margin: 3px auto 6px; width: max-content; max-width: 100%; padding: 2px 8px; border-radius: 999px; background: #0c1b4f; color: #e8eeff; font-size: .81rem; }
.notice-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px; }
.notice-actions .primary { border-radius: 999px; background: #e40083; }


@media (max-width: 1000px) {
  :root { --header-height: 62px; --dock-height: 57px; scroll-padding-block-end: calc(var(--dock-height) + env(safe-area-inset-bottom) + 10px); }
  body { padding-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom)); }
  .topinner { gap: 8px; padding: 0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left)); }
  .rail, .desktop-menu { display: none }
  .site-frame { display: block }
  .dock {
    z-index: 9;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    align-items: stretch;
    min-height: calc(var(--dock-height) + env(safe-area-inset-bottom));
    padding: 0 max(5px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(5px,env(safe-area-inset-left));
    border-top: 1px solid #668ad3;
    border-radius: 17px 17px 0 0;
    background: #1b42a4;
    box-shadow: 0 -5px 18px #050e2d86;
  }
  .dock > * { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; min-width: 0; border: 0; padding: 4px 1px; background: transparent; color: #eff4ff; font-size: clamp(.65rem,2.5vw,.87rem); text-align: center }
  .dock svg { font-size: 1.3rem; }
  .dock a[aria-current] { color: var(--gold); background: #28437e }
  .dock-join i { display: grid; place-items: center; width: 43px; height: 43px; margin-top: -17px; border-radius: 50%; background: linear-gradient(135deg,#f90597,#b01077); box-shadow: 0 0 0 5px #1b42a4; }
  .shelf-track { grid-auto-columns: clamp(108px,28vw,152px) }
}
@media (max-width: 650px) {
  #main { padding: 13px 12px 23px }
  .top-actions { gap: 5px; }
  .top-actions .button { padding: 0 7px; min-height: 41px; font-size: .77rem; }
  .locale { padding: 0 6px; min-height: 41px; font-size: .72rem; gap: 3px; }
  .locale svg { width: 13px; height: 13px; }
  .slides { border-radius: 12px }
  .carousel-controls { margin-top: 5px; }
  .quick-tags { margin-top: 9px; gap: 6px; }
  .quick-tags a { flex-basis: 77px; padding-inline: 7px; min-height: 61px; font-size: .75rem }
  .quick-tools { margin-block: 13px 18px }
  .game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .card-caption { padding: 6px; }
  .card-caption strong { font-size: .78rem }
  .catalog-tools { padding: 9px; gap: 7px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-tools label:first-child { grid-column: 1/-1 }
  .reward-grid, .provider-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .wallet-layout, .site-footer { grid-template-columns: minmax(0,1fr); }
  .game-detail { align-items: start; grid-template-columns: minmax(85px,1fr) minmax(0,1.65fr); padding: 10px }
  .game-detail .button { white-space: normal; font-size: .87rem; }
  .category-chips { gap: 5px }
  .category-chips > * { padding: 6px 9px; font-size: .81rem; }
}
@media (max-width: 365px) {
  .topinner { padding-inline: 8px; gap: 5px; }
  .locale svg { display: none; }
  .top-actions .button { font-size: .73rem; }
  .section-head { padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

.provider-search { grid-template-columns: minmax(0, 380px); margin-bottom: 10px }
.reward-grid p { margin-bottom: 5px }
.feature table td { vertical-align: top }
.promotion-detail { grid-template-columns: minmax(0, 1fr) }
.promotion-detail > .prose { width: 100%; min-width: 0 }
.prose figure { margin-inline: 0 }

@media (max-width: 520px) {
  .reward-hero img { max-height: 220px }
  .reward-grid { grid-template-columns: minmax(0,1fr) }
  .reward-grid .feature { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 12px; align-items: center }
  .reward-grid .feature img { height: 72px; aspect-ratio: auto }
  .reward-grid h2 { margin-top: 0 }
}
