/* Kabooshe Games splash page: full-screen image, small caption, one big button. */
:root { --gold: #f4a916; --fire: #ff4d1c; --bg: #070707; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { font-family: "Inter", system-ui, sans-serif; color: #f3f1ec; -webkit-font-smoothing: antialiased; }

.splash { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: center; }
.splash-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
  animation: drift 24s ease-in-out infinite alternate;
}
.splash-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .92) 0%, rgba(7, 7, 7, .55) 34%, rgba(7, 7, 7, 0) 62%),
    linear-gradient(0deg, rgba(7, 7, 7, .55) 0%, rgba(7, 7, 7, 0) 30%);
}
.splash-copy { position: relative; z-index: 1; padding: 0 clamp(24px, 6vw, 110px); max-width: 720px; }

.splash-cap { margin: 0 0 26px; font: 500 clamp(14px, 1.15vw, 17px)/1.5 "Inter", system-ui, sans-serif; color: #d9d7d0; max-width: 34ch; }
.splash-logo { display: block; width: clamp(290px, 31vw, 520px); height: auto; margin: 0 0 2px -10px; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6)); }
.splash-cap span { display: block; padding-left: 2px; }

.splash-btn {
  display: inline-flex; align-items: center; gap: 22px; white-space: nowrap;   /* the label must never wrap onto two lines */
  padding: clamp(20px, 2.4vw, 30px) clamp(40px, 4.6vw, 72px);
  font: 800 clamp(26px, 3.4vw, 46px)/1 "Orbitron", sans-serif; letter-spacing: .04em; text-transform: uppercase;
  color: #1a0d00; text-decoration: none;
  background: linear-gradient(180deg, #ffc93c 0%, var(--gold) 45%, #e8630a 100%);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  box-shadow: 0 0 0 1px rgba(255, 220, 140, .6) inset;
  filter: drop-shadow(0 10px 30px rgba(255, 110, 20, .55));
  transition: transform .18s ease, filter .18s ease;
  animation: pulse 2.6s ease-in-out infinite;
}
/* play arrow drawn with CSS (no symbol character, so no font fallback and no emoji look on phones) */
.splash-btn i { display: block; width: 0; height: 0; border-left: .5em solid currentColor; border-top: .32em solid transparent; border-bottom: .32em solid transparent; transition: transform .18s ease; }
.splash-btn:hover, .splash-btn:focus-visible { transform: translateY(-3px) scale(1.04); filter: drop-shadow(0 14px 38px rgba(255, 130, 30, .85)); animation: none; outline: none; }
.splash-btn:hover i, .splash-btn:focus-visible i { transform: translateX(6px); }
.splash-btn:active { transform: scale(.98); }

.splash-sub { position: absolute; z-index: 1; left: clamp(18px, 5vw, 100px); bottom: clamp(12px, 3vh, 32px); margin: 0; }
.splash-parent { display: block; width: clamp(130px, 12vw, 200px); height: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }

/* firelight flicker + embers sit between the image and the dark shade */
.splash-glow {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 38% 50% at 88% 38%, rgba(255, 120, 20, .38), rgba(255, 120, 20, 0) 70%),
    radial-gradient(ellipse 30% 36% at 74% 92%, rgba(255, 70, 10, .26), rgba(255, 70, 10, 0) 70%);
  animation: flicker 3.4s ease-in-out infinite;
}
.splash-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.splash-shade { z-index: 0; }

/* entrance: text and button fade up one after another */
.splash-cap, .splash-btn, .splash-sub { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.splash-cap { animation-delay: .25s; }
.splash-btn { animation: rise .8s cubic-bezier(.2, .7, .2, 1) .5s both, pulse 2.6s ease-in-out 1.6s infinite; position: relative; }
.splash-sub { animation-delay: .9s; }

/* soft light sweep across the button */
.splash-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%); animation: sweep 5s ease-in-out 2.2s infinite;
}

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes flicker { 0%, 100% { opacity: .55; } 22% { opacity: .95; } 41% { opacity: .65; } 63% { opacity: 1; } 82% { opacity: .7; } }
@keyframes sweep { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
@keyframes pulse { 0%, 100% { filter: drop-shadow(0 10px 30px rgba(255, 110, 20, .45)); } 50% { filter: drop-shadow(0 10px 42px rgba(255, 120, 20, .8)); } }

@media (max-width: 767px) {
  .splash { align-items: flex-end; }
  .splash-img { object-position: 74% center; }
  .splash-shade { background: linear-gradient(0deg, rgba(7, 7, 7, .96) 0%, rgba(7, 7, 7, .72) 38%, rgba(7, 7, 7, 0) 70%); }
  .splash-copy { padding: 0 22px 120px; max-width: none; width: 100%; }
  .splash-sub { left: 14px; bottom: 6px; }
  .splash-parent { width: 110px; }
  .splash-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-img, .splash-glow, .splash-btn::after { animation: none; }
  .splash-cap, .splash-btn, .splash-sub { animation: none; opacity: 1; }
  .splash-embers { display: none; }
  * { transition: none !important; }
}
