/* Shared premium start screen for every game (loaded after each page's own CSS).
   Blurred game artwork behind, logo, refined progress bar and a polished play button. */
#loader {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  padding: 24px; background: #020806; overflow: hidden; transition: opacity .7s ease, transform .7s ease;
}
#loader::before { /* game artwork, blurred and darkened */
  content: ""; position: absolute; inset: -40px; background: var(--loader-bg, none) center / cover no-repeat;
  filter: blur(18px) saturate(1.2) brightness(.45); transform: scale(1.08); z-index: -2;
}
#loader::after { /* vignette + soft light from above */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 220, 140, .10), transparent 70%), radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, .75) 100%);
}
#loader.gone { opacity: 0; transform: scale(1.04); pointer-events: none; }

#loader .load-logo { width: min(560px, 82vw); max-height: 42vh; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(255, 200, 90, .18)); animation: ld-float 4s ease-in-out infinite; }
@keyframes ld-float { 50% { transform: translateY(-8px); } }

#loader .load-track { width: min(360px, 70vw); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; box-shadow: none; }
#loader #load-bar { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #b27a1d, #ffd66e, #fff4c9); box-shadow: 0 0 14px rgba(255, 214, 110, .8); transition: width .25s ease; }
#loader #load-text { font-family: Montserrat, system-ui, sans-serif; font-weight: 800; font-size: clamp(14px, 1.6vw, 17px); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .88); text-shadow: 0 2px 8px rgba(0,0,0,.9); margin-top: -12px; }

#loader #load-start {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 44px 18px 34px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: Montserrat, system-ui, sans-serif; font-weight: 900; font-size: clamp(16px, 2.2vw, 20px); letter-spacing: .16em; text-transform: uppercase;
  color: #2a1602; background: linear-gradient(180deg, #fff3c6 0%, #ffd66e 38%, #e8a73a 70%, #b27a1d 100%);
  box-shadow: 0 0 0 1px rgba(255, 240, 200, .9) inset, 0 -3px 0 rgba(120, 70, 10, .45) inset, 0 12px 30px rgba(0, 0, 0, .55), 0 0 40px rgba(255, 200, 90, .35);
  transition: transform .15s ease, box-shadow .2s ease; animation: ld-breathe 2.4s ease-in-out infinite;
}
#loader #load-start::before { /* play triangle */
  content: ""; width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #2a1602; flex: none;
}
#loader #load-start::after { /* moving shine */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: ld-shine 2.8s ease-in-out infinite;
}
#loader #load-start:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 0 1px rgba(255, 240, 200, .9) inset, 0 -3px 0 rgba(120, 70, 10, .45) inset, 0 16px 36px rgba(0, 0, 0, .6), 0 0 60px rgba(255, 200, 90, .55); }
#loader #load-start:active { transform: scale(.97); }
@keyframes ld-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes ld-breathe { 50% { box-shadow: 0 0 0 1px rgba(255, 240, 200, .9) inset, 0 -3px 0 rgba(120, 70, 10, .45) inset, 0 12px 30px rgba(0, 0, 0, .55), 0 0 60px rgba(255, 200, 90, .55); } }

#loader .load-note { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); font-family: Montserrat, system-ui, sans-serif; font-weight: 700; font-size: clamp(12px, 1.3vw, 14px); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); text-shadow: 0 2px 6px rgba(0,0,0,.9); }

/* DE | EN switch (mounted by src/shared/i18n.js) */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 220, 150, .35); backdrop-filter: blur(6px); }
.lang-switch button { all: unset; cursor: pointer; font-family: Montserrat, system-ui, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .1em; padding: 7px 13px; border-radius: 999px; color: rgba(255, 255, 255, .75); transition: background .2s, color .2s; }
.lang-switch button:hover { color: #fff; }
.lang-switch button.on { background: linear-gradient(180deg, #ffe9a8, #e0a43a); color: #2a1604; }
.lang-switch button:focus-visible { outline: 2px solid #ffe9a8; outline-offset: 2px; }
#loader .lang-switch { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: calc(16px + env(safe-area-inset-right)); }