/*
Theme Name: Lua
Template: blocksy
Description: Red silk, gold thread and lacquer painting for Blocksy, with main-site links.
Version: 0.6.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lua
*/

:root {
  --lua-red: #b3101f;
  --lua-red-bright: #d51a2b;
  --lua-lacquer: #43040e;
  --lua-night: #27020a;
  --lua-gold: #f0bb4b;
  --lua-gold-soft: #f9dfa4;
  --lua-ink: #2b0710;
  --lua-display: "Phudu", "Arial Narrow", Impact, sans-serif;
  --lua-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --lua-edge: max(24px, calc((100vw - 1290px) / 2));
  --lua-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.lua {
  --theme-font-family: var(--lua-text);
  font-family: var(--lua-text);
  font-size: 17px;
  overflow-x: clip;
}

.lua :is(h1, h2, h3, .entry-title, .page-title) {
  --theme-font-family: var(--lua-display);
  font-family: var(--lua-display);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.04;
  text-wrap: balance;
}

.lua ::selection {
  background: var(--lua-gold);
  color: var(--lua-ink);
}

/* Buttons */

.lua-button,
.lua .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  background: var(--lua-red);
  color: #fff;
  font: 700 16px/1 var(--lua-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--lua-ease);
}

.lua-button:hover,
.lua .wp-block-button__link:hover {
  background: var(--lua-red-bright);
  color: #fff;
}

.lua-button:active,
.lua .wp-block-button__link:active {
  transform: scale(0.97);
}

.lua-button-gold,
.lua .lua-gold .wp-block-button__link.wp-element-button {
  background: var(--lua-gold);
  color: var(--lua-ink);
}

.lua-button-gold:hover,
.lua .lua-gold .wp-block-button__link.wp-element-button:hover {
  background: var(--lua-gold-soft);
  color: var(--lua-ink);
}

.lua-button-quiet {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
  color: var(--lua-red);
}

.lua-button-quiet:hover {
  background: var(--lua-red);
  box-shadow: inset 0 0 0 1.5px var(--lua-red);
  color: #fff;
}

.lua .lua-line .wp-block-button__link.wp-element-button {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.75);
  color: #fff;
}

.lua .lua-line .wp-block-button__link.wp-element-button:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #fff;
  color: var(--lua-red);
}

/* Header: white with the logo, then the rod */

.lua .ct-header.ct-header [data-row*="middle"][data-row] {
  --height: 78px;
  background: #fff;
}

.lua .ct-header.ct-header [data-row*="bottom"][data-row] {
  --height: 50px;
  position: relative;
  z-index: 2;
  border-top: 2px solid var(--lua-gold);
  background: linear-gradient(#6a0715, var(--lua-lacquer) 55%, #30020a);
  box-shadow: 0 8px 18px rgb(39 2 10 / 0.35);
}

.lua-actions {
  display: flex;
  gap: 10px;
}

.lua-actions .lua-button {
  min-height: 42px;
}

.lua .ct-header [data-row*="bottom"] .menu > li > a {
  color: #fbe6df;
  font: 600 16px/1 var(--lua-text);
  letter-spacing: 0;
  text-transform: none;
}

.lua .ct-header [data-row*="bottom"] .menu > li:is(:hover, .current-menu-item) > a {
  color: var(--lua-gold);
}

.lua .ct-header .sub-menu {
  --theme-link-initial-color: #fbe6df;
  --theme-link-hover-color: var(--lua-gold);
  --dropdown-background-color: #30020a;
  --dropdown-divider: 1px solid rgb(240 187 75 / 0.18);
  border-radius: 0 0 8px 8px;
  background: #30020a;
  font-size: 16px;
}

/* Banner */

.lua.home .site-main > [class*="ct-container"] {
  padding-top: 0;
}

.lua .lua-stage {
  --lua-hem: 46px;
  position: relative;
  display: flex;
  margin: 0 0 4px;
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.lua .lua-slide {
  position: relative;
  flex: 0 0 100%;
  height: calc(clamp(400px, 35vw, 540px) + var(--lua-hem));
  margin: 0;
  padding: 0 var(--lua-edge) var(--lua-hem);
  display: flex;
  align-items: center;
  color: #fff;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.lua-slide::before {
  position: absolute;
  inset: 0 0 var(--lua-hem);
  z-index: -1;
  background: var(--lua-lacquer) 50% 50% / cover no-repeat;
  content: "";
}

.lua-slide:not(.lua-hero)::after {
  position: absolute;
  inset: auto 0 calc(var(--lua-hem) - 10px);
  z-index: -1;
  height: 10px;
  background: repeating-linear-gradient(122deg, #6f4012 0 2px, #c98f36 3px 5px, #f7cf7c 6px 7px, #a96f22 8px);
  box-shadow: 0 8px 18px rgb(39 2 10 / 0.28);
  content: "";
}

.lua-hero::before {
  background-color: #8d0b1b;
  background-image: url(images/silk-79.webp);
}

.lua-hero.has-silk::before {
  display: none;
}

.lua-slide-sports.is-near::before {
  background: linear-gradient(90deg, #03130c 12%, transparent 62%), #03130c url(images/banner-sports.webp) 100% 6% / cover;
}

.lua-slide-slots.is-near::before {
  background: linear-gradient(90deg, #070b2c 12%, transparent 60%), #070b2c url(images/banner-slots.webp) 100% 16% / cover;
}

.lua-slide-fishing.is-near::before {
  background: linear-gradient(270deg, #01303a 14%, transparent 60%), #01303a url(images/banner-fishing.webp) 0 45% / cover;
}

.lua-slide-casino.is-near::before {
  background: linear-gradient(90deg, #2b0208 26%, transparent 46%), #2b0208 url(images/banner-casino.webp) 100% 16% / max(76%, 1080px) auto no-repeat;
}

.lua-silk {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* The host stands in front of the cloth. */
.lua-hero::after {
  position: absolute;
  right: calc(var(--lua-edge) - 20px);
  bottom: var(--lua-hem);
  z-index: 0;
  width: min(33%, 440px);
  height: calc(100% - var(--lua-hem) - 14px);
  background: url(images/host.webp) 60% 0 / auto 126% no-repeat;
  content: "";
  mask-image: linear-gradient(#000 88%, transparent);
  pointer-events: none;
}

.lua .lua-slide-text {
  position: relative;
  z-index: 1;
  max-width: min(540px, 46%);
  margin: 0;
}

.lua .lua-hero .lua-slide-text {
  max-width: min(430px, 34%);
}

.lua .lua-slide-right {
  justify-content: flex-end;
}

.lua .lua-slide .lua-slide-title {
  margin: 0;
  color: #fff;
  font: 900 clamp(38px, 4.7vw, 72px) / 0.96 var(--lua-display);
  text-shadow: 0 2px 22px rgb(20 0 4 / 0.6);
  text-wrap: balance;
}

.lua .lua-slide p {
  margin: 16px 0 0;
  color: #fff;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.45;
  text-shadow: 0 1px 12px rgb(20 0 4 / 0.85);
}

.lua .lua-slide .wp-block-buttons {
  margin-top: 24px;
  gap: 10px;
}

.lua .lua-slide .wp-block-button__link.wp-element-button {
  min-height: 50px;
  padding-inline: 28px;
  font-size: 17px;
}

.lua-dots {
  position: absolute;
  top: calc(clamp(400px, 35vw, 540px) - 40px);
  left: 50%;
  z-index: 3;
  display: flex;
  translate: -50% 0;
}

.lua-dots button {
  width: 34px;
  height: 32px;
  padding: 0;
  border: 0;
  background: linear-gradient(rgb(255 255 255 / 0.55) 0 0) center / 22px 4px no-repeat;
  cursor: pointer;
}

.lua-dots [aria-current="true"] {
  background: linear-gradient(var(--lua-gold) 0 0) center / 30px 5px no-repeat;
}

.lua-stage-wrap {
  position: relative;
}

/* Current address */

.lua-address {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 28px;
  margin: 26px 0;
  padding: 18px 24px;
  border: 1px solid #e9c476;
  border-left: 6px solid var(--lua-gold);
  background: #fffaf0;
}

.lua-address p {
  margin: 0;
}

.lua-address-label {
  grid-column: 1;
  font-size: 15px;
}

.lua .lua-address-host {
  color: var(--lua-red);
  font: 800 clamp(28px, 3.4vw, 44px) / 1 var(--lua-display);
  overflow-wrap: anywhere;
}

.lua-address-actions {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: flex;
  gap: 10px;
}

.lua-button[hidden] {
  display: none;
}

/* Titles: centred between two threads, as on a signboard */

.lua .entry-content .lua-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: clamp(38px, 4vw, 58px) 0 20px;
  color: var(--lua-red);
  font-size: clamp(26px, 2.9vw, 40px);
  text-align: center;
}

.lua .lua-heading::before,
.lua .lua-heading::after {
  flex: 1 1 40px;
  min-width: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e2b257);
  content: "";
}

.lua .lua-heading::after {
  background: linear-gradient(270deg, transparent, #e2b257);
}

.lua .entry-content .lua-heading-main {
  margin-top: clamp(30px, 3.4vw, 48px);
  font-size: clamp(29px, 3.5vw, 50px);
}

.lua.home .entry-content.is-layout-constrained > :is(p, ol, .lua-table, .lua-faq-list) {
  max-width: 1000px;
  margin-inline: auto;
}

.lua.home .entry-content.is-layout-constrained > :is(p, ol) {
  margin-bottom: 16px;
}

/* Offers */

.lua .lua-promos {
  gap: 18px;
  margin: 0 0 22px;
}

.lua .lua-promo {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 10px;
  background: #66061a 50% 0 / 112% auto no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.lua-promo::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent 42%, #66061a 66%);
  content: "";
}

.lua-promo-first-deposit { background-image: url(images/promo-first-deposit.webp) !important; }
.lua-promo-casino-rebate { background-image: url(images/promo-casino-rebate.webp) !important; }
.lua-promo-lunar-new-year { background-image: url(images/promo-lunar-new-year.webp) !important; }

.lua .lua-promo h3 {
  margin: 0;
  font-size: 28px;
}

.lua .lua-promo a {
  color: var(--lua-gold-soft);
  text-decoration: none;
}

.lua-promo a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.lua .lua-promo p {
  margin: 6px 0 0;
  color: #fff;
  font-size: 16px;
}


.lua .entry-content .lua-title {
  margin: 0 0 clamp(26px, 3vw, 44px);
  font-size: clamp(30px, 3.6vw, 50px);
}

/* Envelopes */

.lua .lua-games {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
}

.lua .lua-games li {
  margin: 0;
}

.lua-envelope {
  position: relative;
  display: block;
  aspect-ratio: 5 / 6.6;
  border-radius: 10px;
  background: linear-gradient(#5c0613, #2c020a);
  color: var(--lua-gold-soft);
  text-decoration: none;
  transition: transform 0.6s var(--lua-ease);
}

.lua-envelope-art {
  position: absolute;
  inset: 2.5% 5% 12%;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgb(20 0 4 / 0.5);
  transform-origin: 50% 100%;
  transition: transform 0.7s var(--lua-ease);
}

.lua-envelope-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lua-envelope-front {
  position: absolute;
  inset: 50% 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 7%;
  border-radius: 0 0 10px 10px;
  background: radial-gradient(120% 130% at 50% 0, #d21c2d 0, #b3101f 46%, #870a1a 100%);
  clip-path: polygon(0 0, 12% 7%, 24% 13%, 36% 17.5%, 50% 19.5%, 64% 17.5%, 76% 13%, 88% 7%, 100% 0, 100% 100%, 0 100%);
}

.lua-envelope-front::before {
  position: absolute;
  inset: 0;
  background: var(--lua-gold);
  clip-path: polygon(0 0, 12% 7%, 24% 13%, 36% 17.5%, 50% 19.5%, 64% 17.5%, 76% 13%, 88% 7%, 100% 0, 100% 1.2%, 88% 8.3%, 76% 14.4%, 64% 18.9%, 50% 20.9%, 36% 18.9%, 24% 14.4%, 12% 8.3%, 0 1.2%);
  content: "";
}

.lua-envelope-front::after {
  position: absolute;
  top: 26%;
  left: 50%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(var(--lua-lacquer) 0 0) center / 26% 26% no-repeat,
    radial-gradient(circle, transparent 0 58%, rgb(120 66 6 / 0.55) 59% 63%, transparent 64%),
    conic-gradient(from 210deg, #f7d68b, #c98a23 22%, #fbe6b0 40%, #d99b32 62%, #fff0c6 78%, #c58722 92%, #f7d68b);
  box-shadow: 0 2px 6px rgb(40 0 6 / 0.5);
  content: "";
  transform: translateX(-50%);
  transition: transform 0.8s var(--lua-ease);
}

.lua-envelope-name {
  position: relative;
  color: var(--lua-gold-soft);
  font: 800 clamp(18px, 1.7vw, 25px) / 1 var(--lua-display);
}

:is(a.lua-envelope:hover, a.lua-envelope:focus-visible) .lua-envelope-art {
  transform: translateY(-13%) rotate(-2.4deg);
}

:is(a.lua-envelope:hover, a.lua-envelope:focus-visible) .lua-envelope-front::after {
  transform: translateX(-50%) rotate(180deg);
}

.lua-games.is-waiting .lua-envelope-art {
  transform: translateY(40%);
}

.lua-games.is-dealt .lua-envelope-art {
  transition-delay: calc(var(--i) * 70ms);
}

/* From registering to withdrawing */

.lua .lua-band {
  margin: clamp(38px, 4vw, 58px) 0 0;
  padding: clamp(40px, 4.4vw, 64px) var(--lua-edge);
  position: relative;
  background: var(--lua-lacquer);
  color: #f5dcd6;
  isolation: isolate;
}

.lua-band::before {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: min(66%, 1120px);
  background: url(images/gate.webp) 46% 60% / cover;
  mask-image: linear-gradient(90deg, transparent 4%, #000 46%);
  transform-origin: 58% 50%;
  content: "";
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lua .lua-band {
      overflow: clip;
    }

    .lua-band::before {
      animation: lua-approach linear both;
      animation-timeline: view();
    }
  }
}

@keyframes lua-approach {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.lua .lua-band .lua-title {
  max-width: 9em;
  color: var(--lua-gold);
}

.lua .lua-path {
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.lua .lua-path li {
  margin: 0;
  border-top: 1px solid rgb(240 187 75 / 0.35);
  counter-increment: step;
}

.lua .lua-path li:last-child {
  border-bottom: 1px solid rgb(240 187 75 / 0.35);
}

.lua .lua-path a {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  gap: 4px 0;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
  transition: padding 0.4s var(--lua-ease), color 0.2s;
}

.lua .lua-path a::before {
  grid-row: span 2;
  color: var(--lua-gold);
  font: 500 24px/1 var(--lua-display);
  content: counter(step);
}

.lua .lua-path strong {
  color: #fff;
  font: 800 clamp(24px, 2.3vw, 32px) / 1 var(--lua-display);
}

.lua .lua-path a:hover {
  padding-left: 18px;
  color: #fff;
}

.lua .lua-path a:hover strong {
  color: var(--lua-gold);
}

/* What the brand offers, and questions */

.lua-about-text > p:first-child {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.5;
}

.lua .lua-about-text a {
  color: var(--lua-red);
}

.lua .lua-table {
  margin: 28px 0;
}

.lua .lua-table.lua-table table {
  border: 0;
}

.lua .lua-table.lua-table td {
  padding: 13px 20px 13px 0;
  border: 0;
  border-top: 1px solid var(--theme-palette-color-5);
  vertical-align: baseline;
}

.lua .lua-table.lua-table td:first-child {
  width: 8.5em;
  color: var(--lua-red);
  font: 800 23px/1.1 var(--lua-display);
}

.lua-contents {
  margin: 8px 0 36px;
  padding: 24px 28px;
  border-left: 4px solid var(--lua-gold);
  background: var(--theme-palette-color-6);
}

.lua-contents p {
  margin: 0 0 10px;
  color: var(--lua-ink);
  font: 800 22px/1 var(--lua-display);
}

.lua-contents ol {
  margin: 0;
}

.lua-contents a {
  color: inherit;
  text-decoration: none;
}

.lua-contents a:hover {
  color: var(--lua-red);
}

.lua .lua-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  align-items: start;
}

.lua .wp-block-details {
  margin: 0;
  border-bottom: 1px solid var(--theme-palette-color-5);
  interpolate-size: allow-keywords;
}

.lua .wp-block-details summary {
  position: relative;
  margin: 0;
  padding: 18px 44px 18px 0;
  color: var(--lua-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.lua .wp-block-details summary::-webkit-details-marker {
  display: none;
}

.lua .wp-block-details summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 22px;
  height: 22px;
  background: linear-gradient(var(--lua-red) 0 0) center / 100% 2.5px no-repeat, linear-gradient(var(--lua-red) 0 0) center / 2.5px 100% no-repeat;
  content: "";
  transform: translateY(-50%);
  transition: transform 0.4s var(--lua-ease);
}

.lua .wp-block-details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.lua .wp-block-details summary:hover {
  color: var(--lua-red);
}

.lua .wp-block-details::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.4s var(--lua-ease), content-visibility 0.4s allow-discrete;
}

.lua .wp-block-details[open]::details-content {
  height: auto;
}

.lua .wp-block-details p {
  max-width: 38em;
  margin: 0;
  padding-bottom: 26px;
}

/* News */

.lua ul.lua-news.lua-news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
  margin: 0 0 clamp(44px, 5vw, 72px);
  padding: 0;
  list-style: none;
}

.lua ul.lua-news.lua-news > li {
  width: auto;
  max-width: none;
  margin: 0;
}

.lua .lua-news .wp-block-latest-posts__featured-image {
  margin: 0 0 14px;
  border-radius: 8px;
  overflow: hidden;
}

.lua .lua-news img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.9s var(--lua-ease);
}

.lua .lua-news li:hover img {
  transform: scale(1.04);
}

.lua .lua-news .wp-block-latest-posts__post-title {
  color: var(--lua-ink);
  font: 800 23px/1.12 var(--lua-display);
  text-decoration: none;
  text-wrap: balance;
}

.lua .lua-news .wp-block-latest-posts__post-title:hover {
  color: var(--lua-red);
}

.lua .lua-news .wp-block-latest-posts__post-date {
  margin: 6px 0 0;
  font-size: 15px;
}

.lua .lua-news .wp-block-latest-posts__post-excerpt {
  margin: 6px 0 0;
  font-size: 16px;
}

.lua-news .wp-block-latest-posts__read-more {
  display: none;
}

/* Article lists: the picture leads */

.lua .entries .entry-card > .ct-media-container {
  order: -1;
}

.lua .entries .entry-card {
  --theme-box-shadow: none;
  padding-top: 0;
  box-shadow: none;
}

.lua .entries .entry-title {
  font-size: 26px;
}

.lua.single-post .hero-section .page-title {
  font-size: clamp(34px, 4.6vw, 60px);
}

.lua .entry-content.is-layout-constrained > h2:not(.lua-title) {
  font-size: clamp(26px, 3vw, 38px);
}

/* Page titles */

.lua .hero-section.hero-section[data-type="type-2"][data-type] {
  --min-height: 250px;
  background: var(--lua-red) url(images/silk.webp) 60% 40% / cover;
}

.lua .hero-section[data-type="type-2"] .page-title {
  color: #fff;
  font-size: clamp(40px, 5.6vw, 76px);
  text-shadow: 0 2px 24px rgb(60 0 8 / 0.6);
}

.lua .hero-section[data-type="type-2"] .entry-header {
  color: #fff;
}

/* Tables in articles */

.lua.single-post .entry-content table {
  border: 0;
  border-collapse: collapse;
  font-size: 16px;
}

.lua.single-post .entry-content th {
  border: 0;
  background: var(--lua-lacquer);
  color: #fff;
  font-weight: 700;
  text-align: left;
}

.lua.single-post .entry-content td {
  border: 0;
  border-bottom: 1px solid var(--theme-palette-color-5);
}

.lua.single-post .ct-featured-image img {
  border-radius: 8px;
}

/* Channels after an article */

.lua-channel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px currentColor;
  font-weight: 700;
  text-decoration: none;
}

.lua-notice {
  display: grid;
  gap: 18px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 2px solid var(--lua-red);
}

.lua-notice p {
  margin: 0;
}

.lua .lua-notice-title {
  color: var(--lua-ink);
  font: 800 28px/1.1 var(--lua-display);
}

.lua-notice-links,
.lua-footer-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer */

.lua-footer {
  padding-block: clamp(56px, 7vw, 96px) 40px;
  background: var(--lua-night);
  color: #d9bdb8;
  font-size: 16px;
}

.lua-footer .ct-container {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 64px);
}

.lua-footer p {
  margin: 0 0 14px;
}

.lua .lua-footer-name {
  color: var(--lua-gold);
  font: 900 clamp(44px, 5vw, 72px) / 0.9 var(--lua-display);
}

.lua .lua-footer-title {
  margin-bottom: 18px;
  color: #fff;
  font-weight: 700;
}

.lua-footer a {
  color: inherit;
  text-decoration: none;
}

.lua-footer a:hover {
  color: var(--lua-gold);
}

.lua-footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lua-footer-menu li {
  margin-bottom: 11px;
}

.lua-footer .lua-footer-age {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 24px 0 0;
}

.lua-footer-age strong {
  color: var(--lua-gold);
  font: 900 30px/1 var(--lua-display);
}

.lua .ct-footer.ct-footer [data-row][data-row] {
  background: var(--lua-night);
}

.lua .ct-footer-copyright {
  color: #a98882;
}

/* Phone bar */

.lua-bar {
  display: none;
}

@media (max-width: 999.98px) {
  :root {
    --lua-edge: 5vw;
  }

  .lua .lua-games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lua .lua-faq-list {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .lua-footer .ct-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lua-footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 689.98px) {
  :root {
    --lua-edge: 5vw;
  }

  .lua .lua-stage {
    --lua-hem: 30px;
  }

  .lua .lua-slide {
    height: calc(440px + var(--lua-hem));
    padding-top: 30px;
    align-items: flex-start;
  }

  .lua .lua-slide .lua-slide-text,
  .lua .lua-hero .lua-slide-text {
    max-width: 100%;
  }

  .lua .lua-slide .lua-slide-title {
    max-width: 9em;
  }

  .lua .lua-slide p:not(.lua-slide-title) {
    max-width: 20em;
    margin-top: 10px;
  }

  .lua .lua-slide .wp-block-buttons {
    margin-top: 16px;
  }

  .lua-hero::after {
    right: -6%;
    width: 60%;
    height: 66%;
    background-size: auto 128%;
    background-position: 52% 0;
  }

  .lua-slide-sports.is-near::before {
    background: linear-gradient(#03130c 30%, transparent 46%), #03130c url(images/banner-sports.webp) 92% 100% / auto 70% no-repeat;
  }

  .lua-slide-slots.is-near::before {
    background: linear-gradient(#070b2c 30%, transparent 46%), #070b2c url(images/banner-slots.webp) 86% 100% / auto 70% no-repeat;
  }

  .lua-slide-fishing.is-near::before {
    background: linear-gradient(#01303a 30%, transparent 46%), #01303a url(images/banner-fishing.webp) 10% 100% / auto 70% no-repeat;
  }

  .lua-slide-casino.is-near::before {
    background: linear-gradient(#2b0208 30%, transparent 46%), #2b0208 url(images/banner-casino.webp) 50% 100% / auto 70% no-repeat;
  }

  .lua .lua-slide-right {
    justify-content: flex-start;
  }

  .lua-dots {
    top: 406px;
  }

  .lua .lua-games {
    gap: 10px;
    padding-top: 20px;
  }

  .lua-envelope-name {
    font-size: 18px;
  }

  .lua .entry-content .lua-heading {
    gap: 12px;
  }

  .lua-address {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 18px;
  }

  .lua-address-actions {
    grid-row: auto;
    grid-column: 1;
    margin-top: 12px;
  }

  .lua-address-actions .lua-button {
    flex: 1;
  }

  .lua .lua-table.lua-table tr {
    display: grid;
    padding-block: 12px;
    border-top: 1px solid var(--theme-palette-color-5);
  }

  .lua .lua-table.lua-table td {
    width: auto;
    padding: 2px 0;
    border: 0;
  }

  .lua.single-post .entry-content table {
    font-size: 14.5px;
    line-height: 1.4;
  }

  .lua.single-post .entry-content :is(th, td) {
    padding: 9px 7px;
  }

  .lua .lua-band {
    padding-bottom: 66vw;
  }

  .lua-band::before {
    inset: auto 0 0;
    width: auto;
    height: 78vw;
    background-position: 42% 100%;
    mask-image: linear-gradient(transparent, #000 40%);
  }

  .lua .lua-path a {
    grid-template-columns: 40px 1fr;
  }

  .lua ul.lua-news.lua-news {
    grid-template-columns: minmax(0, 1fr);
  }

  .lua-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 10px;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -6px 24px rgb(39 2 10 / 0.16);
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.4s var(--lua-ease), visibility 0.4s;
  }

  .lua-bar.is-shown {
    visibility: visible;
    transform: none;
  }

  .lua .ct-footer {
    padding-bottom: 76px;
    background: var(--lua-night);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lua *,
  .lua *::before,
  .lua *::after,
  .lua ::details-content {
    transition-duration: 0.01ms !important;
  }
}
