:root {
  --page-bg: #100018;
  --hero-max: 1145px;
  --rail-left: 185px;
  --rail-right: 190px;
  --column-gap: 38px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page-bg); color: #fff5dc; font-family: Georgia, 'Times New Roman', serif; }
a:focus-visible { outline: 3px solid #fff5dc; outline-offset: 5px; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 470px;
  overflow: hidden;
  background: #26052f url('assets/hero_background.jpg') center / cover no-repeat;
}
.hero__starfield { position: absolute; inset: 0; max-width: var(--hero-max); margin: auto; pointer-events: none; }
.star { position: absolute; object-fit: contain; filter: drop-shadow(0 0 3px #f6aa25); }
.star--left-large { left: 7%; top: 17%; width: 105px; height: 105px; }
.star--left-small { left: 13%; top: 44%; width: 53px; height: 53px; }
.star--right-large { right: 7%; top: 17%; width: 105px; height: 105px; }
.star--right-small { right: 13%; top: 44%; width: 53px; height: 53px; }
.hero__composition {
  position: relative;
  max-width: var(--hero-max);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(0, 570px) minmax(100px, 1fr);
  align-items: start;
  justify-items: center;
  padding: 26px 24px 28px;
}
.hero__center { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.hero__logo { display: block; width: min(100%, 470px); height: auto; }
.hero__tagline { display: block; width: min(100%, 550px); height: auto; margin-top: 5px; }
.hero__die { position: relative; z-index: 2; object-fit: contain; margin-top: 110px; filter: drop-shadow(0 6px 7px #09000a); }
.hero__die--left { width: 58px; height: 58px; justify-self: end; margin-right: 20px; }
.hero__die--right { width: 75px; height: 75px; justify-self: start; margin-left: 20px; }

/* Each row keeps its artwork and ad aligned with its own game panel. */
.casino-main { padding: 55px 20px 100px; }
.casino-grid { max-width: 1190px; margin: auto; }
.game-section {
  display: grid;
  grid-template-columns: var(--rail-left) minmax(0, 1fr) var(--rail-right);
  column-gap: var(--column-gap);
  row-gap: 30px;
  align-items: center;
}
.game-section + .game-section { margin-top: 65px; }
.game-section h2 {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  isolation: isolate;
  height: 76px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.game-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 3px);
  height: 6px;
  background: linear-gradient(#ffe58c, #edac22 45%, #b16b12 100%);
  z-index: -1;
}
.game-section h2 img { display: block; width: min(360px, 65%); height: auto; max-height: 76px; object-fit: contain; }
.game-panel {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 25px 27px;
  background: linear-gradient(140deg, #7811a2 0%, #520878 50%, #6e0b96 100%);
  border: 3px solid #c34ef2;
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px #5d137f, inset 0 0 20px #a32cc0, 0 5px 9px #09000c;
}
.game-panel a { display: block; min-width: 0; border: 4px solid #f6c94a; border-radius: 20px; overflow: hidden; background: #13051c; box-shadow: 0 3px 6px #1d0025; }
.game-panel a img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.game-panel a:hover { filter: brightness(1.1); }
.coming-soon { grid-column: 1; grid-row: 2; position: relative; width: 100%; }
.coming-soon img, .slot-machine img { display: block; width: 100%; height: auto; }
.coming-soon--on, .slot-frame--on { position: absolute; inset: 0; animation: osc-blink 1.15s steps(1, end) infinite; }
.slot-machine { grid-column: 3; grid-row: 2; position: relative; width: 100%; max-width: 190px; justify-self: center; }
.ad-slot { grid-row: 2; width: 100%; max-width: 180px; justify-self: center; }
.ad-slot--first { grid-column: 3; }
.ad-slot--second { grid-column: 1; }
.ad-slot a, .ad-slot picture, .ad-slot img { display: block; width: 100%; height: auto; }
@keyframes osc-blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }

/* Footer is shared by the lobby and console. */
.site-footer { background: var(--page-bg); color: #fff5dc; padding: 0 20px 35px; }
.site-footer__inner { max-width: 1190px; margin: 0 auto; border-top: 3px solid #e7b73c; padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; font-size: 13px; }
.site-footer__copyright { justify-self: start; }
.site-footer__email { display: inline-flex; align-items: center; justify-self: center; gap: 10px; color: #ffe39b; text-decoration: underline; white-space: nowrap; }
.site-footer__email img { display: block; width: 36px; height: auto; image-rendering: pixelated; }
.site-footer__links { display: flex; gap: 24px; justify-self: end; white-space: nowrap; }
.site-footer__links a { color: #ffe39b; text-decoration: underline; }
.site-footer a:hover { color: #fff; }

/* Compact landscape/tablet layout. */
@media (max-width: 900px) {
  :root { --rail-left: min(18vw, 145px); --rail-right: min(19vw, 155px); --column-gap: 15px; }
  .hero { min-height: 0; }
  .hero__composition { grid-template-columns: minmax(45px, 1fr) minmax(0, 570px) minmax(45px, 1fr); padding: 26px 10px 28px; }
  .hero__logo { width: min(90%, 470px); }
  .hero__die--left { width: 42px; height: 42px; margin: 115px 0 0; }
  .hero__die--right { width: 51px; height: 51px; margin: 115px 0 0; }
  .star--left-large { left: 3%; }
  .star--right-large { right: 3%; }
  .star--left-small { left: 10%; }
  .star--right-small { right: 10%; }
  .game-panel { gap: 14px; padding: 16px; }
  .game-section h2 img { width: min(360px, 78%); }
  .site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 12px; }
  .site-footer__copyright { flex: 1 1 150px; }
  .site-footer__links { gap: 18px; margin-left: auto; }
}

/* Phone portrait. */
@media (max-width: 450px) {
  .hero__composition { grid-template-columns: minmax(0, 1fr); padding: 12px 8px 16px; }
  .hero__die, .hero__starfield { display: none; }
  .hero__logo { width: 84%; }
  .hero__tagline { width: 100%; margin-top: 5px; }
  .casino-main { padding: 32px 15px 50px; }
  .game-section { display: block; }
  .game-section + .game-section { margin-top: 30px; }
  .game-section h2 { height: 56px; margin-bottom: 32px; }
  .game-section h2 img { width: min(320px, 78%); max-height: 56px; }
  .game-panel { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .coming-soon, .slot-machine { display: none; }
  .ad-slot { width: calc(100% - 10px); max-width: 400px; margin: 40px auto 0; }
  .site-footer { padding: 0 15px 35px; }
  .site-footer__inner { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; padding-top: 24px; }
  .site-footer__copyright, .site-footer__email, .site-footer__links { justify-self: center; }
  .site-footer__links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .coming-soon--on, .slot-frame--on { animation: none; visibility: hidden; }
}

.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.legal-header, .legal-page { max-width:860px; margin:0 auto; padding:24px; }
.legal-page { line-height:1.65; padding-bottom:60px; }
.legal-page h1, .legal-page h2 { color:#ffe39b; }
.legal-page a, .legal-header a { color:#ffe39b; }
