@font-face {
  font-family: 'Tomal';
  src: url('/assets/img/type-vokum.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --mer-night: #071426;
  --mer-surface: #0e2038;
  --mer-ink: #f5f7ff;
  --mer-muted: #b1bfd3;
  --mer-coral: #ff4668;
  --mer-gold: #fbbf24;
  --mer-mint: #59e2b6;
  --mer-rule: #283a54;
  --mer-radius: 8px;
  --mer-gutter: clamp(16px, 4vw, 56px);
  font-family: Tomal, system-ui, sans-serif;
  font-size: 100%;
  scroll-padding-top: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(ellipse at 85% 0, #172842 0, transparent 36rem), var(--mer-night);
  color: var(--mer-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { opacity: .55; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--mer-mint); }
:focus-visible { outline: 2px solid var(--mer-gold); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--mer-coral); color: #100b1b; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { max-width: 24ch; margin-bottom: 0; font-size: clamp(1.85rem, 4.4vw, 3.75rem); letter-spacing: -.055em; }
h2 { margin-bottom: .85rem; font-size: clamp(1.3rem, 2.75vw, 2rem); letter-spacing: -.035em; }
h3 { margin-bottom: .55rem; font-size: 1.05rem; }
p, ul, ol { margin-bottom: 1rem; }

.mer-wrap { width: min(calc(100% - var(--mer-gutter) * 2), 1320px); margin-inline: auto; }

.mer-skip {
  position: absolute;
  z-index: 3;
  left: var(--mer-gutter);
  top: 1rem;
  padding: .6rem 1rem;
  background: var(--mer-gold);
  color: var(--mer-night);
  border-radius: var(--mer-radius);
  transform: translateY(-200%);
}

.mer-skip:focus { transform: none; }

.mer-top {
  border-bottom: 1px solid var(--mer-rule);
  background: #071426eb;
}

.mer-topline,
.mer-navigation,
.mer-identity {
  display: flex;
  align-items: center;
}

.mer-topline { justify-content: space-between; gap: 1.25rem; min-height: 76px; padding-block: .7rem; }
.mer-navigation { flex-wrap: wrap; gap: .25rem clamp(.7rem, 2.2vw, 1.85rem); }
.mer-navigation a { padding-block: .45rem; text-decoration: none; font-size: .875rem; }
.mer-identity { gap: .55rem; }
.mer-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-right: .55rem;
  font-size: clamp(.85rem, 1.75vw, 1.25rem);
  font-weight: 850;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.mer-emblem {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--mer-mint);
  color: var(--mer-night);
  clip-path: polygon(0 0, 100% 0, 83% 69%, 50% 100%, 17% 69%);
  font-weight: 900;
}

.pera_nel, .mer-action, .mer-secondary, .mer-panel-body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--mer-radius);
  background: var(--mer-coral);
  color: #190b17;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.pera_nel:hover, .mer-action:not(:disabled):hover, .mer-panel-body a:hover { background: #ff7890; color: #190b17; }

.japos_uuyp, .japos_pmsv, .mer-secondary {
  border-color: var(--mer-rule);
  background: #12243c;
  color: var(--mer-ink);
}

.japos_uuyp:hover, .japos_pmsv:hover, .mer-secondary:hover {
  border-color: var(--mer-mint);
  background: #193049;
  color: var(--mer-mint);
}

.mer-identity .pera_nel { padding-inline: .75rem; font-size: .78rem; }
.japos_ywjk { display: none; }
.mer-heading { padding-block: clamp(1.6rem, 4vw, 3.6rem) clamp(1.1rem, 3vw, 2rem); }
.pera_mov { margin: 0 0 .75rem; color: var(--mer-muted); font-size: .8rem; }
.pera_mov ol { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; list-style: none; }

.mer-accordion { display: flex; gap: .55rem; min-height: 420px; }

.mer-panel {
  --mer-panel-light: var(--mer-coral);
  position: relative;
  isolation: isolate;
  display: flex;
  flex: .65 1 0;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--mer-rule);
  border-radius: var(--mer-radius);
  background: radial-gradient(circle at 80% 100%, #2a2b50, transparent 76%), #122039;
  transition: flex-grow .45s cubic-bezier(.24,.71,.26,1), border-color .2s;
}

.mer-panel:nth-child(2) {
  --mer-panel-light: var(--mer-mint);
  background: linear-gradient(145deg, #122b39, #0b1a30 60%, #173c3e);
}
.mer-panel:nth-child(3) {
  --mer-panel-light: #ff8da2;
  background: linear-gradient(150deg, #372339, #13203e 65%, #49263f);
}
.mer-panel:nth-child(4) {
  --mer-panel-light: var(--mer-gold);
  background: linear-gradient(150deg, #322c33, #112037 64%, #48351e);
}
.mer-panel:has([aria-expanded="true"]) { flex-grow: 4; border-color: var(--mer-panel-light); }
.mer-panel:not(:has([aria-expanded="true"])):hover { border-color: var(--mer-panel-light); }

.mer-offer {
  background:
    linear-gradient(90deg, #080e1bec 4%, #080e1bd9 26%, #080e1b95 52%, #080e1b17 100%),
    url('/assets/img/banner-lokok.webp') 62% center / cover no-repeat,
    #0b0e17;
}

.mer-main > .mer-offer {
  min-height: 248px;
  justify-content: end;
  background-position: center, center 46%;
}

.mer-tab {
  flex: 0 0 auto;
  align-self: start;
  padding: clamp(.8rem, 2.2vw, 1.5rem);
  border: 0;
  background: transparent;
  color: var(--mer-panel-light);
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
}

.mer-tab:focus-visible { outline-offset: -4px; }
.mer-panel:has([aria-expanded="false"]) .mer-tab {
  align-self: stretch;
  min-height: 100%;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.mer-panel-body {
  width: 100%;
  padding: clamp(1rem, 3.5vw, 3.05rem);
  padding-top: 0;
  transition: opacity .18s ease-out;
}
.mer-panel:has([aria-expanded="false"]) .mer-panel-body {
  position: absolute;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
}
.mer-main > .mer-offer .mer-tab { display: none; }
.mer-panel-body p { max-width: 29ch; }
.mer-panel-body .mer-offer-title {
  max-width: 15ch;
  margin-bottom: .8rem;
  font-size: clamp(1.75rem, 4.25vw, 4rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.mer-main > .mer-offer .mer-offer-title { font-size: clamp(1.7rem, 3.4vw, 3rem); }
.mer-main > .mer-offer .mer-panel-body { padding-top: 1.4rem; }
.mer-panel-body .mer-offer-terms { max-width: none; color: var(--mer-gold); font-size: .82rem; font-weight: 700; }

.mer-rail {
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
  align-items: stretch;
  margin-top: .65rem;
  padding: .85rem 0 .85rem .9rem;
  border: 1px solid var(--mer-rule);
  border-radius: var(--mer-radius);
  background: linear-gradient(110deg, #182b44, #0a192b);
}
.mer-rail-heading { display: flex; flex-direction: column; justify-content: center; align-items: start; gap: .55rem; }
.mer-rail-heading > strong { color: var(--mer-muted); font-size: .8rem; }
.mer-arrows { display: flex; gap: .35rem; }
.mer-arrows button, .mer-stakes button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--mer-rule);
  border-radius: var(--mer-radius);
  background: #142941;
  color: var(--mer-ink);
}
.mer-arrows button { font-size: 1.55rem; line-height: 1; }
.mer-arrows button:not(:disabled):hover, .mer-stakes button:not(:disabled):hover { border-color: var(--mer-coral); }
.mer-track {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #365270 transparent;
  margin: 0;
  padding: .1rem .8rem .35rem .15rem;
  list-style: none;
}
.mer-track li {
  flex: 0 0 clamp(150px, 19vw, 224px);
  min-height: 76px;
  display: grid;
  align-items: center;
  padding: .65rem .85rem;
  border-radius: var(--mer-radius);
  background: linear-gradient(125deg, #153854, #13243a);
  scroll-snap-align: start;
}
.mer-track li:nth-child(even) { background: linear-gradient(125deg, #30334f, #172840); }
.mer-track li strong, .mer-track li span { display: block; }
.mer-track li strong { color: var(--mer-mint); font-size: 1.2rem; line-height: 1.25; }
.mer-track li span { color: var(--mer-muted); font-size: .77rem; }

.pera_tup {
  max-width: 76ch;
  margin: 1.65rem 0;
  padding: .45rem 0 .45rem 1rem;
  border-left: 3px solid var(--mer-coral);
  font-size: clamp(1rem, 1.75vw, 1.2rem);
}

.mer-arena {
  overflow: hidden;
  margin-bottom: 1.75rem;
  border: 1px solid var(--mer-rule);
  border-radius: var(--mer-radius);
  background: var(--mer-surface);
}
.mer-arena-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .15rem 1rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--mer-rule);
}
.mer-arena-header span, .mer-balance { color: var(--mer-muted); font-size: .86rem; }
.mer-canvas { display: block; width: 100%; height: clamp(148px, 30vw, 340px); object-fit: contain; background: #080f20; }
.mer-console {
  display: grid;
  grid-template-columns: 1fr auto minmax(13rem, 1fr);
  align-items: center;
  gap: .75rem;
  padding: .95rem 1rem .65rem;
}
.mer-stakes { display: flex; flex-wrap: wrap; gap: .4rem; }
.mer-stakes button { padding: .35rem .6rem; font-weight: 750; }
.mer-stakes button[aria-pressed="true"] { border-color: var(--mer-coral); background: var(--mer-coral); color: #190b17; }
.mer-balance { display: grid; line-height: 1.3; }
.mer-balance strong { color: var(--mer-gold); font-size: 1.22rem; font-variant-numeric: tabular-nums; }
.mer-console .mer-action { justify-self: stretch; }
.mer-round-note { margin: 0; padding: 0 1rem .85rem; color: var(--mer-muted); font-size: .86rem; }
.mer-live-links, .mer-account { display: flex; flex-wrap: wrap; gap: .5rem; }
.mer-live-links { padding: .65rem 1rem; border-top: 1px solid var(--mer-rule); }
.mer-live-links button { min-height: 44px; font-size: .82rem; }
.mer-arena noscript p { padding: .85rem 1rem 0; }
.mer-account { margin-block: 1.25rem; }

.mer-chapter, .pera_pak, .pera-crd {
  max-width: 78ch;
  margin-block: 1rem;
  padding: clamp(1.1rem, 3.2vw, 2rem);
  border: 1px solid var(--mer-rule);
  border-radius: var(--mer-radius);
  background: var(--mer-surface);
}
.mer-chapter :is(p, li), .pera_pak p { color: #d3deef; }
.mer-chapter :is(p, ul, ol):last-child, .pera_pak p:last-child { margin-bottom: 0; }
.mer-chapter :is(ul, ol), .pera-crd ul { padding-left: 1.35rem; }
.mer-chapter li + li { margin-top: .4rem; }
.mer-chapter li::marker { color: var(--mer-gold); }
.mer-chapter a, .pera_nopet a { color: var(--mer-mint); }
.mer-chapter a:hover, .pera_nopet a:hover { color: var(--mer-gold); }
.pera_pak { margin-top: 1.4rem; }
.pera_pak h3 { margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--mer-rule); }
.pera_sut { width: 100%; margin-top: 1.25rem; border-collapse: collapse; text-align: left; font-size: .87rem; }
.pera_sut :is(th, td) { padding: .62rem .55rem; border-bottom: 1px solid var(--mer-rule); vertical-align: top; }
.pera_sut thead { color: var(--mer-gold); }
.pera_sut td { color: var(--mer-muted); }

.pera_nopet {
  margin-top: 2.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--mer-rule);
}
.pera_nopet h2 { font-size: 1.1rem; }
.pera_nopet ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .3rem 1rem;
  padding: 0;
  list-style: none;
}
.pera_nopet a { display: inline-flex; align-items: center; min-height: 44px; }
.mer-dateline { margin-block: 1.25rem 2.4rem; color: var(--mer-muted); font-size: .8rem; }
.mer-footer { padding-block: 1.5rem; border-top: 1px solid var(--mer-rule); background: #050d1a; font-size: .85rem; }
.mer-footer address { color: var(--mer-muted); font-style: normal; }
.mer-footer ol { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.mer-footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 920px) {
  .mer-topline { flex-wrap: wrap; }
  .mer-identity { margin-left: auto; }
}

@media (max-width: 690px) {
  .mer-topline { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; padding-block: .55rem; }
  .mer-identity { grid-row: 1; }
  .mer-navigation { justify-content: space-between; }
  .mer-navigation a { font-size: .79rem; }
  .mer-accordion { flex-direction: column; min-height: 0; }
  .mer-accordion .mer-panel { min-height: 0; }
  .mer-accordion .mer-panel:has([aria-expanded="true"]) { min-height: 250px; }
  .mer-accordion .mer-panel:has([aria-expanded="false"]) .mer-tab {
    min-height: 44px;
    writing-mode: horizontal-tb;
  }
  .mer-accordion .mer-panel-body { padding-top: .7rem; }
  .mer-rail { grid-template-columns: minmax(0, 1fr); padding-top: .6rem; }
  .mer-rail-heading { flex-direction: row; justify-content: space-between; align-items: center; padding: 0 .8rem .5rem 0; }
  .mer-console { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .mer-stakes { grid-column: 1 / -1; }
  .japos_ywjk {
    position: fixed;
    z-index: 2;
    right: var(--mer-gutter);
    bottom: max(.65rem, env(safe-area-inset-bottom));
    display: inline-flex;
    box-shadow: 0 4px 20px #000a;
  }
  body:has(.japos_ywjk) .mer-footer { padding-bottom: 4.7rem; }
}

@media (max-width: 380px) {
  .mer-identity .pera_nel { min-height: 42px; padding-inline: .42rem; }
  .mer-brand { margin-right: 0; gap: .35rem; }
  .mer-emblem { width: 25px; height: 25px; }
  .mer-console { padding-inline: .7rem; }
  .pera_sut { font-size: .75rem; }
  .pera_sut :is(th, td) { padding-inline: .25rem; overflow-wrap: anywhere; }
}

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

.mer-question { margin-inline-start: .17em; }

.pera_nev .pera_luv{background:linear-gradient(90deg, rgba(10,10,18,0.93) 0%, rgba(10,10,18,0.78) 52%, rgba(10,10,18,0.22) 100%), url('/assets/img/banner-lokok.webp');background-size:cover;background-position:right center;border-radius:16px;padding:28px 32px;margin:18px 0 24px;color:#f8fafc;}
.pera_nev .pera_luv [class$='-top']{font-size:clamp(22px,3vw,32px);font-weight:800;line-height:1.15;margin:0 0 14px;max-width:560px;}
.pera_nev .pera_luv ul{list-style:none;padding:0;margin:0 0 18px;display:flex;flex-wrap:wrap;gap:8px;}
.pera_nev .pera_luv ul li{background:rgba(255,255,255,0.10);padding:6px 12px;border-radius:8px;font-size:13px;}
.pera_nev .pera_luv [class$='-foot']{display:flex;flex-wrap:wrap;align-items:center;gap:12px;}
.pera_ras, .pera_nel { appearance: none; cursor: pointer; font-size: inherit; border: 0; }
