/* Spinlander theme styles — loaded on the front end and in the block editor. */
:root {
  --c-bg: #090332;          /* page background */
  --c-deep: #090332;        /* header, hero, footer */
  --c-surface: #0C1022;     /* table body */
  --c-surface-2: #181D33;   /* table heads */
  --c-line: #20263F;
  --c-gold: #FFC935;        /* primary */
  --c-gold-hover: #F7C032;
  --c-purple: #A855F7;
  --c-purple-deep: #5605A0;
  --c-link: #C6C7F8;
  --c-text: #FAFAFA;
  --c-text-soft: #D9DAE0;
  --c-muted: #A0A3AB;
  --c-muted-card: #D4CCF0;  /* secondary text on purple cards */
  --c-pro: #34D399;
  --c-con: #D86363;
  --c-berry: #9D174D;
  --c-berry-dark: #7A1240;
  --g-cta: linear-gradient(270deg, #D86363 0%, #9D174D 100%);   /* buttons */
  --card-bg: linear-gradient(180deg, rgba(168, 85, 247, .2) 0%, rgba(168, 85, 247, .4) 100%), rgba(17, 22, 44, .8);
  --card-shadow: 0 4px 4px #03040a99;
  --card-line: rgba(168, 85, 247, .25);

  --f-body: "Manrope", system-ui, sans-serif;
  --f-head: "Fira Sans", system-ui, sans-serif;

  --w-wide: 72rem;          /* container = header = hero = footer */
  --w-prose: 48rem;         /* readable line length inside the container */
  --radius: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --gap: 20px;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 400 1.0625rem/1.7 var(--f-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--c-link); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); line-height: 1.2; }
p, ul, ol { margin: 0; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .35em; }
li::marker { color: var(--c-gold); }
h4 { font-size: 1.0625rem; }
strong { color: #fff; }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 99; padding: 8px 12px; border-radius: 8px; background: var(--c-gold); color: #000; }

/* ---------- layout */
.container { width: 100%; max-width: calc(var(--w-wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(40px, 5vw, 64px); }

.section__header { max-width: var(--w-prose); margin-bottom: 28px; }
.section__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; }
.section__title::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 14px; border-radius: 2px; background: var(--c-gold); }

/* vertical rhythm for anything inside a body */
.section__body { display: flex; flex-direction: column; gap: 1.1em; }
.section__body > :is(p, .wp-block-list, .wp-block-heading),
.prose { max-width: var(--w-prose); }
.section__body > .wp-block-heading { font-size: 1.25rem; font-weight: 600; }
.section__body > .wp-block-heading:not(:first-child) { margin-top: .6em; }
.prose { display: flex; flex-direction: column; gap: 1.1em; color: var(--c-text-soft); }

/* ---------- buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: .6em; }
/* red→berry gradient button with a sliding arrow panel (adapted from the supplied example) */
.btn {
  position: relative; display: inline-flex; align-items: center;
  height: 2.8em; padding: 0 3.3em 0 1.2em; overflow: hidden;
  border: 0; border-radius: .9em; font: 700 1rem/1 var(--f-body); letter-spacing: .02em; text-decoration: none;
  cursor: pointer; -webkit-appearance: none; appearance: none; white-space: nowrap;
}
.btn--primary { background: var(--g-cta); color: #fff; box-shadow: inset 0 0 1.6em -.6em var(--c-berry-dark); }
.btn--primary:hover { color: #fff; }
.btn__icon {
  position: absolute; right: .3em; display: flex; align-items: center; justify-content: center;
  width: 2.2em; height: 2.2em; border-radius: .7em;
  background: #fff; color: var(--c-berry);
  box-shadow: .1em .1em .6em .2em rgb(122 18 64 / .5);
  transition: width .3s, transform .15s;
}
.btn__icon svg { width: 1.1em; height: auto; transition: transform .3s; }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { width: calc(100% - .6em); }
.btn:hover .btn__icon svg, .btn:focus-visible .btn__icon svg { transform: translateX(.1em); }
.btn:active .btn__icon { transform: scale(.95); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn--sm { font-size: .9375rem; }
.site-header__actions .btn--mobile { display: none; }
.btn--lg { font-size: 1rem; }

/* ---------- header */
.site-header-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.site-header { position: relative; background: rgb(9 3 50 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgb(255 255 255 / .06); }
.site-header__bar { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.logo { display: flex; flex: none; }
.logo__img { width: auto; height: clamp(38px, 2.4rem + .5vw, 46px); }
.site-footer .logo__img { height: 52px; }
.site-footer__note { max-width: var(--w-prose); color: var(--c-muted); font-size: .9375rem; }
.nav { margin-right: auto; }
.nav__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__list li { margin: 0; }
.nav__list a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--c-text); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.nav__list a:hover { background: rgb(255 255 255 / .06); }
.nav__list :is(.current-menu-item, .current_page_item) > a { color: var(--c-gold); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
/* language switcher */
.lang { position: relative; }
.lang__toggle {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 8px;
  border: 1px solid var(--card-line); border-radius: 10px; background: rgb(255 255 255 / .04);
  color: var(--c-text); font: 700 .875rem/1 var(--f-body); cursor: pointer; transition: background .15s, border-color .15s;
}
.lang__toggle:hover, .lang.is-open .lang__toggle { background: rgb(168 85 247 / .15); border-color: rgb(168 85 247 / .5); }
.lang__toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lang__flag { flex: none; width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgb(255 255 255 / .15); }
.lang__chevron { color: var(--c-muted); transition: transform .2s; }
.lang.is-open .lang__chevron { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 300px; margin: 0; padding: 8px; list-style: none;
  background: linear-gradient(180deg, rgb(168 85 247 / .2), rgb(168 85 247 / .4)) var(--c-deep); border: 1px solid var(--card-line); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgb(0 0 0 / .5);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu li { margin: 0; }
.lang__option { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--c-text); font-size: .875rem; font-weight: 600; text-decoration: none; }
.lang__option:hover, .lang__option:focus-visible { background: rgb(255 255 255 / .08); color: #fff; outline: none; }
.lang__option[aria-current] { background: rgb(168 85 247 / .25); }
.lang__name { flex: 1; }
.lang__short { color: var(--c-muted-card); font-size: .75rem; }
.burger { display: none; padding: 8px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; margin: 4px 0; border-radius: 2px; background: #fff; }

/* ---------- hero */
.hero { background: radial-gradient(1200px 500px at 85% 0%, rgb(86 5 160 / .45), transparent 60%), var(--c-deep); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 6vw, 80px) 40px; }
.hero__content { display: flex; flex-direction: column; gap: 1.2em; }
.hero__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); font-weight: 800; letter-spacing: -.01em; }
.hero__lead { color: var(--c-text-soft); font-size: 1.125rem; }
.hero__intro { margin-bottom: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid rgb(255 255 255 / .1); }
.hero--text .hero__grid { grid-template-columns: minmax(0, var(--w-prose)); padding-bottom: clamp(40px, 5vw, 64px); }
.hero--text .hero__intro { margin-top: -8px; }
.hero__media { display: grid; place-items: center; }
.hero__media img { width: auto; max-width: 100%; height: auto; max-height: min(520px, 70vh); object-fit: contain; border-radius: 16px; box-shadow: 0 24px 60px rgb(0 0 0 / .4); }

/* ---------- toc (sits above the first section header) */
.toc { margin-bottom: clamp(40px, 5vw, 64px); background: var(--card-bg); box-shadow: var(--card-shadow); border: 1px solid var(--card-line); border-radius: var(--radius); }
.toc__toggle { display: flex; justify-content: space-between; padding: 16px 20px; font: 600 1.0625rem var(--f-head); list-style: none; cursor: pointer; }
.toc__toggle::-webkit-details-marker { display: none; }
.toc__toggle::after { content: "+"; color: var(--c-gold); font-size: 1.4rem; line-height: 1; }
.toc[open] .toc__toggle::after { content: "–"; }
.toc__list { columns: 3; column-gap: 32px; padding: 4px 20px 20px 40px; font-size: .9375rem; }
.toc__list li { break-inside: avoid; }
.toc__list a { color: var(--c-text); text-decoration: none; }
.toc__list a:hover { color: var(--c-gold); }

/* ---------- key facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; overflow: hidden; background: var(--card-bg); box-shadow: var(--card-shadow); border: 1px solid var(--card-line); border-radius: var(--radius); }
.fact { margin: 0 -1px -1px 0; padding: 16px 20px; border-right: 1px solid var(--card-line); border-bottom: 1px solid var(--card-line); }
.fact__label { margin-bottom: 4px; color: var(--c-muted-card); font-size: .8125rem; font-weight: 600; }
.fact__value { margin: 0; font-weight: 600; }

/* ---------- pros / cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pc { padding: 24px; background: var(--card-bg); box-shadow: var(--card-shadow); border: 1px solid var(--card-line); border-radius: var(--radius); }
.pc__title { margin-bottom: 16px; font-size: 1.25rem; }
.pc .wp-block-list { display: block; padding: 0; }
.pc .wp-block-list li { position: relative; padding-left: 30px; font-size: .9875rem; }
.pc .wp-block-list li + li { margin-top: .8em; }
.pc .wp-block-list li::after { display: none; }
.pc .wp-block-list li::before { position: absolute; left: 0; top: .15em; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .75rem; font-weight: 800; }
.pc--pro .wp-block-list li::before { content: "✓"; transform: none; box-shadow: none; left: 0; top: .15em; width: 20px; height: 20px; background: rgb(52 211 153 / .15); color: var(--c-pro); }
.pc--con .wp-block-list li::before { content: "–"; transform: none; box-shadow: none; left: 0; top: .15em; width: 20px; height: 20px; background: rgb(216 99 99 / .15); color: var(--c-con); }

/* ---------- tables: always fit the container, scale fluidly instead of scrolling */
.wp-block-table { margin: 0; overflow: hidden; background: rgb(168 85 247 / .1); border: 1px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.wp-block-table table { margin: 0; table-layout: auto; }
.wp-block-table :is(th, td) { border: 0; }
.wp-block-table thead { border-bottom: 0; }
.wp-block-table figcaption { margin: 0; padding: 10px 16px; color: var(--c-muted); font-size: .8125rem; }
table {
  width: 100%; border-collapse: collapse;
  font-size: clamp(.75rem, .62rem + .55vw, .9375rem);
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
th, td {
  padding: clamp(6px, .3rem + .9vw, 12px) clamp(6px, .2rem + 1.2vw, 16px);
  text-align: left; vertical-align: top;
  overflow-wrap: break-word; hyphens: auto;
}
thead th { background: rgb(168 85 247 / .3); color: #fff; font-weight: 700; }
tbody tr:nth-child(even) td { background: rgb(255 255 255 / .035); }
tbody tr + tr td { border-top: 1px solid rgb(168 85 247 / .18); }
tbody td:first-child { font-weight: 600; }
/* tables with many columns (currencies, reload terms) shrink further */
:is(.wp-block-table:has(th:nth-child(6)), .wp-block-table:has(td:nth-child(6))) table { font-size: clamp(.625rem, .45rem + .7vw, .9375rem); font-variant-numeric: normal; }
:is(.wp-block-table:has(th:nth-child(6)), .wp-block-table:has(td:nth-child(6))) :is(th, td) { padding-inline: clamp(3px, .1rem + .8vw, 16px); }
@media (max-width: 640px) {
  .lang__menu { left: auto; right: var(--gutter); width: 210px; grid-template-columns: 1fr; gap: 2px; padding: 6px; max-height: calc(100dvh - 90px); overflow-y: auto; }
  .lang__option { padding: 10px; }
  /* wide tables use the full screen width on phones */
  :is(.wp-block-table:has(th:nth-child(6)), .wp-block-table:has(td:nth-child(6))) { border-inline: 0; border-radius: 0; }
  :is(.wp-block-table:has(th:nth-child(6)), .wp-block-table:has(td:nth-child(6))) :is(th, td):first-child { padding-left: 10px; }
  :is(.wp-block-table:has(th:nth-child(6)), .wp-block-table:has(td:nth-child(6))) :is(th, td):last-child { padding-right: 10px; }
}

/* ---------- content lists */
.wp-block-list { display: grid; gap: 10px; padding: 0; list-style: none; counter-reset: item; }
.wp-block-list li { position: relative; margin: 0; padding-left: 34px; }

/* ul: gradient diamond with a soft glow */
ul.wp-block-list li::before {
  content: ""; position: absolute; left: 6px; top: .62em;
  width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg);
  background: var(--g-cta); box-shadow: 0 0 0 4px rgb(216 99 99 / .14);
}

/* ol: numbered badges joined by a vertical line */
ol.wp-block-list { gap: 14px; }
ol.wp-block-list li { counter-increment: item; padding-left: 44px; min-height: 28px; padding-top: 1px; }
ol.wp-block-list li::before {
  content: counter(item); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--g-cta); color: #fff; font: 700 .8125rem/1 var(--f-head);
  box-shadow: 0 4px 12px rgb(157 23 77 / .35);
}
ol.wp-block-list li:not(:last-child)::after {
  content: ""; position: absolute; left: 13px; top: 32px; bottom: -12px;
  width: 2px; border-radius: 1px; background: linear-gradient(var(--c-con), transparent);
  opacity: .45;
}

/* ---------- media */
.section__body .wp-block-image { margin: 0; }
.section__body .wp-block-image img { width: auto; max-width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: var(--radius); box-shadow: var(--card-shadow); }

/* ---------- card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { padding: 20px; background: var(--card-bg); box-shadow: var(--card-shadow); border: 1px solid var(--card-line); border-radius: var(--radius); }
.card__title { margin-bottom: .4em; color: var(--c-gold); font-size: 1.0625rem; }
.card__text { color: var(--c-text-soft); font-size: .9875rem; }

/* ---------- steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.step { counter-increment: step; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 20px; background: var(--card-bg); box-shadow: var(--card-shadow); border: 1px solid var(--card-line); border-radius: var(--radius); }
.step__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--g-cta); color: #fff; font: 800 1rem var(--f-head); box-shadow: 0 4px 12px rgb(157 23 77 / .35); }
.step__num::before { content: counter(step); }
.step__title { margin-bottom: .3em; font-size: 1.0625rem; }
.step__text { color: var(--c-text-soft); font-size: .9875rem; }

/* ---------- mobile app: platform install cards */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); margin-top: .6em; }
.platform {
  display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.5vw, 28px);
  background: var(--card-bg); box-shadow: var(--card-shadow); border: 1px solid var(--card-line); border-radius: var(--radius);
}
.platform__head { display: flex; align-items: center; gap: 14px; }
.platform__badge { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--g-cta); box-shadow: 0 6px 16px rgb(157 23 77 / .35); }
.platform__icon { width: 24px; height: 24px; filter: invert(1); }
.platform__title { font-size: 1.1875rem; }
.platform__intro { color: var(--c-text-soft); }
.platform .wp-block-list { padding: 16px; border-radius: 10px; background: rgb(9 3 50 / .45); }
.platform__done { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; color: #fff; font-weight: 600; font-size: .9375rem; }
.platform__check { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgb(52 211 153 / .15); color: var(--c-pro); }
.app-note { display: flex; flex-direction: column; gap: .6em; max-width: none; padding: 20px 24px; border: 1px dashed var(--card-line); border-radius: var(--radius); }
.app-note__title { font-size: 1.125rem; }
.app-note p { color: var(--c-text-soft); max-width: var(--w-prose); }

/* ---------- promo banner (Telegram) */
.promo {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon header button" "icon body button";
  column-gap: clamp(16px, 3vw, 32px); row-gap: 10px; align-items: center;
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(120deg, rgb(34 158 217 / .35) 0%, rgb(168 85 247 / .35) 60%, rgb(157 23 77 / .35) 100%), var(--c-deep);
  border: 1px solid rgb(34 158 217 / .4); border-radius: 20px; box-shadow: var(--card-shadow);
}
/* big faint plane in the background */
.promo::after {
  content: ""; position: absolute; z-index: -1; right: -40px; bottom: -60px; width: 280px; height: 280px; opacity: .08;
  background: #fff; -webkit-mask: url("../img/icons/telegram.svg") center / contain no-repeat;
  mask: url("../img/icons/telegram.svg") center / contain no-repeat;
}
.promo__icon { grid-area: icon; align-self: start; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, #2AABEE, #229ED9); box-shadow: 0 8px 24px rgb(34 158 217 / .45); }
.promo__icon img { width: 32px; height: 32px; filter: invert(1); }
.promo__header { grid-area: header; margin: 0; }
.promo__title::after { display: none; }
.promo__body { grid-area: body; color: var(--c-text-soft); }
.promo__body p { max-width: var(--w-prose); }
.promo .buttons { grid-area: button; margin: 0; }
.promo--no-icon { grid-template-columns: 1fr auto; grid-template-areas: "header button" "body button"; }
.promo--no-icon .promo__icon, .promo--no-icon::after { display: none; }
mark.sl-highlight, .promo__highlight {
  padding: 0 .15em; border-radius: 4px; background: none; font-weight: 800;
  color: #fff; background-image: linear-gradient(transparent 60%, rgb(216 99 99 / .55) 60%);
}

/* ---------- bonus shop */
.gem { flex: none; width: 1.15em; height: 1.15em; filter: drop-shadow(0 2px 4px rgb(168 85 247 / .5)); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.shop-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 20px;
  background: var(--card-bg); box-shadow: var(--card-shadow); border: 1px solid var(--card-line); border-radius: var(--radius);
  transition: transform .2s, border-color .2s;
}
.shop-card:hover { transform: translateY(-3px); border-color: rgb(168 85 247 / .6); }
.shop-card__provider, .chip { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .18); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
.shop-card__name { font-size: 1.0625rem; }
.shop-card__price { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 12px; border-radius: 10px; background: rgb(9 3 50 / .7); border: 1px solid rgb(255 255 255 / .08); color: #fff; font-weight: 700; }
.shop-card__bet { color: var(--c-muted-card); font-size: .875rem; font-weight: 500; }

.achievements { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; padding: 0; list-style: none; counter-reset: ach; }
.achievement { counter-increment: ach;
  position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 18px 16px;
  border: 1px solid var(--card-line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(168 85 247 / .12), rgb(168 85 247 / .04));
}
.achievement__num { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 4px; border-radius: 8px; background: var(--g-cta); color: #fff; font: 700 .8125rem/1 var(--f-head); box-shadow: 0 4px 12px rgb(157 23 77 / .35); }
.achievement__num::before { content: counter(ach); }
.achievement__name { font-size: 1rem; }
.achievement__cond { color: var(--c-text-soft); font-size: .875rem; }
.achievement__reward { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; padding: 4px 10px; border-radius: 999px; background: rgb(168 85 247 / .2); color: #fff; font-size: .875rem; font-weight: 700; }

/* ---------- partner tournaments */
.tourneys { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.tourney {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 22px 20px;
  background: var(--card-bg); box-shadow: var(--card-shadow); border: 1px solid var(--card-line); border-radius: var(--radius);
}
/* soft glow behind the prize */
.tourney::before { content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(rgb(216 99 99 / .35), transparent 70%); pointer-events: none; }
.tourney__name { font: 600 1.0625rem/1.3 var(--f-head); }
.tourney__pool {
  margin-top: 6px; font: 800 clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem)/1.1 var(--f-head); letter-spacing: -.01em;
  background: linear-gradient(90deg, #FFD36B, #F28C8C 55%, #E879F9); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tourney__bet { color: var(--c-muted-card); font-size: .875rem; font-weight: 500; }
.tourneys--past .tourney { background: rgb(255 255 255 / .03); box-shadow: none; border-style: dashed; }
.tourneys--past .tourney::before { display: none; }
.tourneys--past .tourney__pool { background: none; color: var(--c-text-soft); font-size: clamp(1.3rem, 1rem + .8vw, 1.6rem); }
.tourneys--past .tourney__bet { color: var(--c-muted); }

/* ---------- game cards: portrait lobby tiles */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.game {
  position: relative; isolation: isolate; aspect-ratio: 3 / 4; margin: 0; overflow: hidden; cursor: pointer;
  border-radius: 16px; background: var(--c-surface);
  box-shadow: 0 0 0 1px var(--card-line), var(--card-shadow);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.game:hover, .game:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 0 0 2px rgb(168 85 247 / .9), 0 18px 40px rgb(157 23 77 / .45), 0 0 32px rgb(168 85 247 / .35);
}
.game__media { position: absolute; inset: 0; z-index: -1; }
.game__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.game:hover .game__media img, .game:focus-within .game__media img { transform: scale(1.08); filter: brightness(.55) saturate(1.1); }

/* name + provider over a dark fade */
.game__body {
  position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 3px;
  padding: 40px 14px 14px; background: linear-gradient(transparent, rgb(9 3 50 / .78) 45%, rgb(9 3 50 / .96));
}
.game__name { color: #fff; font: 700 .9375rem/1.25 var(--f-head); text-shadow: 0 1px 2px rgb(0 0 0 / .5); }
.game__provider { color: var(--c-muted-card); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }

/* centred play button on hover / keyboard focus */
.game__overlay { position: absolute; inset: 0 0 25%; display: grid; place-items: center; pointer-events: none; }
.game__play {
  pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font: 700 .875rem/1 var(--f-body); letter-spacing: .04em;
  opacity: 0; transform: scale(.7); transition: opacity .2s, transform .3s cubic-bezier(.2, 1.4, .4, 1);
}
.game__play-icon {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--g-cta); box-shadow: 0 10px 24px rgb(157 23 77 / .6), inset 0 0 0 2px rgb(255 255 255 / .25);
}
.game__play-icon::before { content: ""; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.game__play-icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgb(216 99 99 / .7); animation: sl-pulse 1.6s ease-out infinite; }
@keyframes sl-pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.game__play-label { padding: 4px 10px; border-radius: 999px; background: rgb(9 3 50 / .6); backdrop-filter: blur(4px); }
.game:hover .game__play, .game:focus-within .game__play { opacity: 1; transform: none; }
.game__play:focus-visible { outline: none; }
.game__play:focus-visible .game__play-icon { outline: 2px solid #fff; outline-offset: 4px; }

/* touch screens: no hover, so show a small play badge in the corner */
@media (hover: none) {
  .game__overlay { inset: 10px 10px auto auto; display: block; }
  .game__play { opacity: 1; transform: none; }
  .game__play-icon { width: 38px; height: 38px; }
  .game__play-icon::before { border-width: 7px 0 7px 11px; margin-left: 3px; }
  .game__play-icon::after, .game__play-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .game__play-icon::after { animation: none; } }

/* ---------- info split (one paragraph, one card per sentence) */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--gap); }
.split-card {
  display: flex; gap: 18px; align-items: flex-start; padding: clamp(20px, 3vw, 32px);
  background: var(--card-bg); box-shadow: var(--card-shadow); border: 1px solid var(--card-line); border-radius: var(--radius);
}
.split-card__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--g-cta); color: #fff; box-shadow: 0 6px 16px rgb(157 23 77 / .35); }
.split-card__text { font-size: 1.0625rem; line-height: 1.65; }
.split-card--limit { background: linear-gradient(180deg, rgb(216 99 99 / .16), rgb(157 23 77 / .26)), rgba(17, 22, 44, .8); border-color: rgb(216 99 99 / .35); }
.split-card--limit .split-card__icon { background: rgb(255 255 255 / .1); color: #FFB4B4; box-shadow: inset 0 0 0 1px rgb(216 99 99 / .5); }

/* ---------- faq */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--card-bg); box-shadow: var(--card-shadow); border: 1px solid var(--card-line); border-radius: var(--radius); }
.faq__q { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; list-style: none; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; color: var(--c-gold); font-size: 1.4rem; line-height: 1; }
.faq__item[open] .faq__q::after { content: "–"; }
.faq__a { padding: 0 20px 18px; color: var(--c-text-soft); }

/* ---------- footer */
.site-footer { background: var(--c-deep); border-top: 1px solid rgb(255 255 255 / .06); }
.site-footer__grid { display: grid; gap: 24px; padding-block: 40px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; list-style: none; }
.site-footer__links li { margin: 0; }
.site-footer__links a { color: var(--c-muted); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.site-footer__copy { color: var(--c-muted); font-size: .875rem; }
.badge { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--c-con); border-radius: 50%; color: #fff; font: 800 .8125rem var(--f-head); }

/* ---------- back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-surface-2); color: var(--c-gold); font-weight: 800; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- contact */
.contact__intro { display: flex; flex-direction: column; gap: 1.2em; max-width: var(--w-prose); padding-block: clamp(40px, 6vw, 80px) 32px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--gap); padding-bottom: clamp(40px, 5vw, 64px); }
.contact__heading { margin-bottom: 18px; font-size: 1.25rem; }
.contact__list { display: grid; gap: 18px; margin: 0; }
.contact__list dt { color: var(--c-muted-card); font-size: .8125rem; font-weight: 600; }
.contact__list dd { margin: 2px 0 0; font-weight: 600; }
.contact__form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: .875rem; font-weight: 600; }
.field__input { width: 100%; padding: 12px 14px; border: 1px solid var(--card-line); border-radius: 10px; background: rgb(9 3 50 / .6); color: var(--c-text); font: inherit; }
.field__input::placeholder { color: var(--c-muted-card); opacity: .7; }
.field__input:focus { outline: 2px solid var(--c-purple); outline-offset: 1px; }
.contact__notice { padding: 10px 14px; border-radius: 10px; background: rgb(52 211 153 / .15); color: #fff; font-weight: 600; }

/* ---------- editor-only helpers */
/* page-level Spinlander blocks are full width (they carry their own .container) */
.is-root-container > [class*="wp-block-spinlander-"] { max-width: none !important; margin-inline: 0 !important; }
.editor-styles-wrapper .is-root-container { padding-inline: 0 !important; }
.toc--placeholder { pointer-events: none; opacity: .8; }
.editor-styles-wrapper .btn { pointer-events: auto; }
.editor-styles-wrapper .hero__content .buttons .btn,
.editor-styles-wrapper .buttons .btn { cursor: text; }
.sl-editor-field { display: block; min-width: 4ch; }
.sl-editor-label { display: block; margin-bottom: 4px; color: var(--c-muted-card); font: 600 .6875rem/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- responsive */
@media (max-width: 960px) {
  .burger { display: block; }
  /* language panel hangs from the header (not the button) so it always stays on screen */
  .lang { position: static; }
  .lang__menu { top: 100%; right: var(--gutter); margin-top: 8px; }
  /* hamburger layout: "Login" replaces "Play now" */
  .site-header__actions .btn--desktop { display: none; }
  .site-header__actions .btn--mobile { display: inline-flex; font-size: .875rem; }
  .nav { position: absolute; inset: 100% 0 auto; display: none; background: var(--c-deep); border-bottom: 1px solid var(--c-line); }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .nav__list a { padding: 12px; }
  /* single column: image → button → heading → lead (source order stays heading-first) */
  .hero__grid { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .hero__content { display: contents; }
  .hero__media { order: 1; }
  .hero__content > .buttons { order: 2; margin: 0 0 16px; }
  .hero__title { order: 3; }
  .hero__lead { order: 4; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .toc__list { columns: 2; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header__bar { gap: 10px; }
  .site-header__actions { gap: 8px; }
  .lang__toggle { gap: 6px; padding: 0 8px; }
  .lang__chevron { display: none; }
  .burger { padding: 6px; margin-right: -6px; }
  .site-footer__bottom { flex-direction: row-reverse; justify-content: flex-end; }
  .shop-grid, .achievements, .games { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shop-card, .achievement { padding: 14px; }
  .shop-card__price { padding: 8px 10px; font-size: .875rem; }
  .promo { grid-template-columns: auto 1fr; grid-template-areas: "icon header" "body body" "button button"; row-gap: 16px; }
  .promo__icon { width: 52px; height: 52px; border-radius: 14px; align-self: center; }
  .promo .btn { width: 100%; justify-content: center; padding-left: 3.3em; }
  .hero .btn { width: 100%; justify-content: center; padding-left: 1em; }
  .facts, .proscons { grid-template-columns: 1fr; }
  .toc__list { columns: 1; }
}

/* very narrow phones: wide tables shrink a step further so nothing is cut off */
@media (max-width: 400px) {
  /* header: room for longer "Login" labels (e.g. "Zaloguj się") */
  .logo__img { height: 32px; }
  .lang__toggle .lang__code { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-header__actions .btn--mobile { font-size: .8125rem; padding-left: 1em; }
  .wp-block-table table { font-size: .6875rem; }
  .wp-block-table :is(th, td) { padding-inline: 6px; }
  :is(.wp-block-table:has(th:nth-child(6)), .wp-block-table:has(td:nth-child(6))) table { font-size: .5625rem; letter-spacing: -.01em; }
  :is(.wp-block-table:has(th:nth-child(6)), .wp-block-table:has(td:nth-child(6))) :is(th, td) { padding-inline: 2px; }
  :is(.wp-block-table:has(th:nth-child(6)), .wp-block-table:has(td:nth-child(6))) :is(th, td):first-child { padding-left: 8px; }
  :is(.wp-block-table:has(th:nth-child(6)), .wp-block-table:has(td:nth-child(6))) :is(th, td):last-child { padding-right: 8px; }
}
