/* Shared responsive visual layer for Planet Casino pages. */
:root {
  --bg-main: #080d15;
  --bg-surface: #101824;
  --bg-card: #151f2e;
  --bg-card-hover: #1a2739;
  --border-color: #28384e;
  --border-focus: #ffb11b;
  --primary-color: #ffad0a;
  --primary-hover: #ffc248;
  --secondary-color: #33d1a0;
  --text-main: #edf3fb;
  --text-muted: #a9b8ca;
  --text-dim: #7f91a8;
  --accent-red: #ff5d68;
  --max-width: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .18);
  --shadow-md: 0 24px 60px rgba(0, 0, 0, .28);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 148px;
}

body {
  min-width: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 173, 10, .10), transparent 30rem),
    radial-gradient(circle at 100% 15%, rgba(51, 209, 160, .06), transparent 34rem),
    var(--bg-main);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.72;
  padding-bottom: 76px;
}

::selection {
  color: #111827;
  background: var(--primary-color);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.table-scroll-wrap:focus-visible {
  outline: 3px solid rgba(255, 177, 27, .55);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, var(--max-width));
  padding: 0;
}

header.site-header {
  min-height: 72px;
  padding: 0;
  display: flex;
  align-items: center;
  background: rgba(8, 13, 21, .88);
  border-bottom-color: rgba(112, 132, 157, .24);
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .16);
}

.header-inner {
  min-height: 72px;
  /* Keep the absolutely positioned burger in its own header column. */
  padding-right: 122px;
}

.brand-logo {
  gap: 11px;
  font-size: 1.22rem;
  letter-spacing: .025em;
}

.brand-logo svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 7px 14px rgba(255, 173, 10, .2));
}

.header-actions {
  gap: 10px;
}

.btn,
.template-assembled-content .btn-primary,
.template-assembled-content .btn-secondary {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: .91rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.btn-primary,
.template-assembled-content .btn-primary {
  color: #121212 !important;
  background: linear-gradient(135deg, #ffc038, #ff9d00);
  border: 1px solid #ffc95b;
  box-shadow: 0 10px 24px rgba(255, 158, 0, .22);
}

.btn-primary:hover,
.template-assembled-content .btn-primary:hover {
  color: #111 !important;
  background: linear-gradient(135deg, #ffd36f, #ffae17);
  box-shadow: 0 13px 30px rgba(255, 158, 0, .3);
}

.btn-login,
.template-assembled-content .btn-secondary {
  color: var(--text-main) !important;
  background: rgba(255, 255, 255, .035);
  border: 1px solid #34465f;
}

.btn-login:hover,
.template-assembled-content .btn-secondary:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .075);
  border-color: #60738d;
}

/* The generated menu sits outside .header-inner; anchor it to the same grid. */
.site-header > .mandatory-header-burger-nav {
  position: absolute;
  top: 50%;
  right: max(20px, calc((100vw - var(--max-width)) / 2 + 20px));
  margin: 0;
  transform: translateY(-50%);
}

.mandatory-header-burger--sheet .mandatory-header-burger__button {
  width: 44px;
  height: 44px;
  color: #f8fafc;
  background: #151f2e;
  border: 1px solid #34465f;
  box-shadow: none;
}

.mandatory-header-burger--sheet .mandatory-header-burger__button:hover {
  background: #1d2a3e;
  border-color: var(--primary-color);
}

.mandatory-header-burger--sheet .mandatory-header-burger__panel {
  color: #142033;
  background: rgba(249, 251, 255, .98);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .45);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 82px) 0 clamp(42px, 5vw, 68px);
  background:
    linear-gradient(135deg, rgba(255, 173, 10, .08), transparent 42%),
    linear-gradient(180deg, #111a28 0%, #090f18 100%);
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::before {
  width: 440px;
  height: 440px;
  top: -290px;
  left: calc(50% - 220px);
  background: rgba(255, 173, 10, .12);
  filter: blur(80px);
}

.hero-section::after {
  width: 240px;
  height: 240px;
  right: 2%;
  bottom: -170px;
  background: rgba(51, 209, 160, .10);
  filter: blur(60px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.hero-badge {
  padding: 7px 13px;
  margin-bottom: 18px;
  color: #ffd470;
  background: rgba(255, 173, 10, .09);
  border-color: rgba(255, 187, 55, .35);
  font-size: .74rem;
  letter-spacing: .055em;
}

h1.hero-title {
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5vw, 4.55rem);
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}

.hero-offer-box {
  max-width: 820px;
  padding: clamp(24px, 4vw, 38px);
  margin: 22px auto 28px;
  background: linear-gradient(145deg, rgba(28, 41, 60, .96), rgba(18, 28, 42, .96));
  border: 1px solid rgba(255, 183, 41, .72);
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .31), inset 0 1px rgba(255, 255, 255, .04);
}

.hero-offer-title {
  color: #ffbd39;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
  text-wrap: balance;
}

.hero-offer-subtitle {
  max-width: 660px;
  margin: 8px auto 22px;
  color: #bdcad9;
  font-size: 1rem;
}

.hero-cta-group {
  gap: 12px;
}

.btn-hero {
  min-height: 52px;
  padding: 13px 25px;
  font-size: .96rem;
}

.hero-intro-text {
  max-width: 860px;
  margin: 30px auto 0;
  padding: 0 8px;
  text-align: center;
}

.hero-intro-text p {
  margin: 0;
  color: #cbd5e1;
  font-size: 1.02rem;
}

.toc-wrapper {
  top: 72px;
  padding: 12px 0;
  background: rgba(13, 20, 31, .92);
  border-bottom-color: rgba(112, 132, 157, .22);
  backdrop-filter: blur(15px);
}

.toc-pills {
  gap: 9px;
  padding: 2px 0 6px;
}

.toc-pill {
  padding: 7px 14px;
  color: #b7c6d9;
  background: #172233;
  border-color: #2b3b52;
  font-size: .8rem;
}

.toc-pill:hover {
  color: #111;
  box-shadow: 0 7px 18px rgba(255, 173, 10, .18);
}

main.container,
.template-assembled-main {
  width: min(100% - 40px, var(--max-width));
}

.zero-position-section {
  padding: 48px 0 28px;
}

.content-section {
  padding: clamp(34px, 5vw, 58px) 0;
  border-bottom-color: rgba(81, 103, 131, .28);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -.02em;
  text-wrap: balance;
}

h2::before {
  width: 5px;
  height: 1.1em;
  flex: 0 0 5px;
  box-shadow: 0 0 20px rgba(255, 173, 10, .35);
}

h3 {
  color: #ffc453;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

p,
li {
  color: #d8e0ea;
}

.callout-box {
  padding: 18px 20px;
  margin: 22px 0;
  color: #fbe8b7;
  background: linear-gradient(135deg, rgba(255, 173, 10, .10), rgba(255, 173, 10, .035));
  border-color: rgba(255, 183, 41, .36);
  border-radius: 14px;
  box-shadow: inset 4px 0 var(--primary-color);
}

.answer-boxes-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.answer-box {
  min-height: 100%;
  padding: 19px;
  background: linear-gradient(145deg, #172233, #121b29);
  border: 1px solid #2b3c54;
  border-left: 1px solid #2b3c54;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease;
}

.answer-box:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 180, 32, .6);
}

.answer-box-label {
  display: inline-flex;
  margin-bottom: 9px;
  color: #ffbd39;
  font-size: .71rem;
}

.game-grid {
  gap: 14px;
}

.game-tile {
  min-height: 220px;
  aspect-ratio: auto;
  padding: 26px 18px;
  background: linear-gradient(145deg, #192538, #111a27);
  border-color: #2b3c54;
  border-radius: 18px;
}

.game-tile-icon {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 8px 15px rgba(255, 173, 10, .18));
}

.game-tile-action {
  padding: 8px;
}

.howto-steps,
.app-showcase-card,
.faq-item {
  background: linear-gradient(145deg, #151f2f, #101824);
  border-color: #2b3c54;
  box-shadow: var(--shadow-sm);
}

.howto-steps {
  padding: clamp(20px, 3vw, 30px);
  border-radius: 18px;
}

.app-showcase-card {
  padding: clamp(22px, 4vw, 36px);
  border-radius: 22px;
}

.faq-list {
  gap: 14px;
}

.faq-item {
  padding: 21px 23px;
  border-radius: 15px;
}

.faq-question {
  color: #f5f8fc;
}

.faq-answer {
  color: #b9c7d8;
}

.table-scroll-wrap {
  margin: 24px 0 32px;
  border-color: #31445e;
  border-radius: 15px !important;
  background: #101824;
  box-shadow: var(--shadow-sm);
}

table {
  background: #111a28;
}

table th {
  color: #ffca62;
  background: #1a2739;
  font-size: .79rem;
  letter-spacing: .025em;
  text-transform: uppercase;
}

table th,
table td {
  padding: 14px 16px;
  border-color: #2a3b52;
}

table tr:nth-child(even) {
  background: rgba(255, 255, 255, .025);
}

/* App article catalog had no generated component styles. */
.template-assembled-main {
  margin: clamp(38px, 5vw, 66px) auto;
}

.template-assembled-content > h1 {
  max-width: 900px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.template-assembled-content > p:first-of-type {
  max-width: 920px;
  color: #b8c7d9;
  font-size: 1.06rem;
}

.template-assembled-content > section:not(.app-catalog-section) {
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid rgba(81, 103, 131, .28);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 20px;
}

.catalog-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(155deg, #192538, #101824 72%);
  border: 1px solid #2e4058;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 180, 32, .6);
}

.catalog-card-header {
  padding: 22px 22px 12px;
}

.catalog-card-header h3 {
  margin: 0 0 11px;
  color: #fff;
  font-size: 1.2rem;
}

.catalog-card .badge {
  display: inline-flex;
  padding: 5px 9px;
  color: #ffd980;
  background: rgba(255, 173, 10, .10);
  border: 1px solid rgba(255, 183, 41, .28);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-card-body {
  flex: 1;
  padding: 4px 22px 18px;
}

.catalog-card-body p,
.catalog-card-body li {
  color: #bac8d9;
  font-size: .92rem;
}

.catalog-card-body ul {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.catalog-card-body li {
  position: relative;
  margin: 8px 0;
  padding-left: 18px;
}

.catalog-card-body li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary-color);
  box-shadow: 0 0 12px rgba(51, 209, 160, .4);
}

.catalog-card-footer {
  padding: 0 22px 22px;
}

.catalog-card-footer a {
  width: 100%;
  text-align: center;
  text-decoration: none !important;
}

.sticky-bottom-bar {
  min-height: 66px;
  padding: 10px max(16px, calc((100vw - var(--max-width)) / 2 + 20px));
  background: rgba(12, 19, 29, .94);
  border-top-color: rgba(106, 127, 153, .32);
  backdrop-filter: blur(16px);
  box-shadow: 0 -12px 35px rgba(0, 0, 0, .32);
}

.sticky-text {
  color: #d8e1ec;
}

.sticky-actions .btn {
  min-width: 132px;
}

.close-sticky-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.close-sticky-btn:hover {
  background: rgba(255, 255, 255, .08);
}

footer.site-footer {
  padding: 50px 20px 34px;
  background: #060a10;
  border-top-color: #25354b;
}

.responsible-badge-links,
.footer-utility-links {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.footer-author-card {
  max-width: 900px;
  padding: 20px !important;
  margin: 22px auto !important;
  background: #111a27 !important;
  border-color: #2b3c54 !important;
  box-shadow: var(--shadow-sm) !important;
}

.footer-author-card__bio,
.footer-author-card__expertise,
.footer-contact,
.footer-copy,
.responsible-help-line {
  color: #93a4b9;
}

@media (max-width: 1024px) {
  .answer-boxes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 132px;
  }

  body {
    padding-bottom: 70px;
  }

  .container,
  main.container,
  .template-assembled-main {
    width: min(100% - 28px, var(--max-width));
  }

  header.site-header,
  .header-inner {
    min-height: 64px;
  }

  .header-inner {
    padding-right: 54px;
  }

  .header-actions {
    display: none;
  }

  .site-header > .mandatory-header-burger-nav {
    right: 22px;
  }

  .mandatory-header-burger--sheet .mandatory-header-burger__button {
    width: 42px;
    height: 42px;
  }

  .hero-section {
    padding: 38px 0 42px;
  }

  h1.hero-title {
    font-size: clamp(2.05rem, 10vw, 3.15rem);
  }

  .hero-offer-box {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .hero-cta-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn-hero {
    width: 100%;
  }

  .hero-intro-text {
    padding: 0;
    text-align: left;
  }

  .toc-wrapper {
    top: 64px;
  }

  .toc-pills {
    width: calc(100% - 28px);
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-tile {
    min-height: 185px;
  }

  .app-meta-header,
  .game-category-header {
    align-items: flex-start;
  }

  .template-assembled-main {
    margin: 34px auto;
  }

  .template-assembled-content > section:not(.app-catalog-section) {
    padding: 30px 0;
  }

  .sticky-bottom-bar {
    min-height: 62px;
    padding: 8px 12px;
  }

  .sticky-text {
    max-width: 52%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    gap: 8px;
    font-size: 1.05rem;
  }

  .brand-logo svg {
    width: 31px;
    height: 31px;
  }

  .hero-badge {
    font-size: .65rem;
    line-height: 1.35;
  }

  .hero-offer-title {
    font-size: 1.3rem;
  }

  h1.hero-title {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.35rem);
    overflow-wrap: anywhere;
  }

  .hero-offer-subtitle,
  .hero-intro-text p {
    font-size: .94rem;
  }

  .answer-boxes-grid,
  .catalog-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card:last-child {
    grid-column: auto;
  }

  .game-tile {
    min-height: 160px;
    aspect-ratio: auto;
  }

  .game-tile-action {
    transform: none;
  }

  .game-category-header {
    flex-direction: column;
    gap: 12px;
  }

  .game-category-header .btn {
    width: 100%;
  }

  .app-title-group {
    align-items: flex-start;
  }

  .app-badges-group {
    gap: 10px;
  }

  .faq-item {
    padding: 18px;
  }

  .faq-question {
    font-size: 1rem;
  }

  .sticky-text {
    display: none;
  }

  .sticky-actions {
    width: 100%;
  }

  .sticky-actions .btn {
    flex: 1;
  }

  .close-sticky-btn {
    flex: 0 0 34px;
  }

  .footer-author-card {
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
  }
}

@media (max-width: 380px) {
  .container,
  main.container,
  .template-assembled-main {
    width: min(100% - 20px, var(--max-width));
  }

  .brand-logo {
    font-size: .95rem;
  }

  h1.hero-title {
    font-size: 1.95rem;
  }

  .hero-offer-box {
    padding: 21px 14px;
  }

  .btn-hero {
    padding-left: 10px;
    padding-right: 10px;
    font-size: .85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
