/* Ladebildschirm (Boot, Runde, Tutorial) nach den Supercell-Ladebildern (work/look/laden-ref):
   großes 3D-Key-Art mit unseren Vögeln, Logo groß, unten eine dunkle Squad-Pille mit gelber Füllung und Prozent,
   darüber eine kleine Tipp-Zeile. Selbstständig (keine Toon-Klassen), weil mobile-web/index.html es vor dem
   ersten JavaScript malt; React (app/round-loading.tsx) rendert exakt dieselbe Struktur. */
@font-face {
  font-family: 'Bird Loading Title';
  src: url('/fonts/lilita-one-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
.round-loading {
  --ld-ink: #0b0614;
  --ld-pill: rgba(18, 14, 36, 0.72);
  --ld-trough: #10131d;
  --ld-fill: #f8cc2a;
  --ld-fill-d: #c98a00;
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow: hidden;
  background: #0b57d0;
  color: #fff;
  font-family: 'Bird Loading Title', 'Bird Display', sans-serif;
}
.round-loading,
.round-loading * {
  box-sizing: border-box;
}
.round-loading-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.load-logo {
  position: absolute;
  z-index: 2;
  top: max(14px, env(safe-area-inset-top));
  left: max(20px, env(safe-area-inset-left));
  width: clamp(130px, 19vw, 280px);
  height: auto;
  filter: drop-shadow(0 4px 0 rgba(11, 6, 20, 0.35));
}
.load-dock {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(620px, calc(100% - 36px));
}
.load-text {
  color: #fff;
  -webkit-text-stroke: 3.5px var(--ld-ink);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--ld-ink);
  line-height: 1.05;
}
.load-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 4px 14px 3px 4px;
  border-radius: 999px;
  background: var(--ld-pill);
  font-size: 15px;
}
.load-tip > b {
  padding: 3px 8px 2px;
  border: 2px solid var(--ld-ink);
  border-radius: 999px;
  background: var(--ld-fill);
  color: var(--ld-ink);
  font-weight: 400;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.load-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  padding: 0 6px;
  font-size: 17px;
}
.load-bar {
  position: relative;
  width: 100%;
  height: 26px;
  overflow: hidden;
  border: 2px solid var(--ld-ink);
  border-radius: 999px;
  background: var(--ld-trough);
}
.load-bar > i {
  position: absolute;
  inset: 0;
  border-right: 2px solid var(--ld-ink);
  border-radius: 999px;
  background: var(--ld-fill);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.5), inset 0 -4px 0 var(--ld-fill-d);
  transform-origin: left center;
  transform: scaleX(var(--v, 0.32));
  transition: transform 0.25s ease-out;
}
.load-bar > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.load-bar.is-indeterminate > i {
  width: 32%;
  transform: none;
  animation: load-run 1.3s ease-in-out infinite alternate;
}
.load-detail {
  font: 800 12px/1.25 'Nunito Sans', sans-serif;
  color: #fff;
  text-shadow: 0 1px 2px rgba(11, 6, 20, 0.8);
}
@keyframes load-run {
  from { translate: 0 0; }
  to { translate: 212% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .load-bar > i { transition: none; }
  .load-bar.is-indeterminate > i { animation: none; translate: 100% 0; }
}
@media (min-width: 1100px) and (min-height: 700px) {
  .load-logo { width: clamp(220px, 20vw, 340px); top: 28px; left: 36px; }
  .load-dock { width: min(860px, calc(100% - 72px)); bottom: 28px; gap: 10px; }
  .load-tip { font-size: 22px; padding: 6px 20px 5px 6px; }
  .load-row { font-size: 24px; }
  .load-bar { height: 38px; }
  .load-bar > span { font-size: 22px; }
  .load-detail { font-size: 15px; }
}
/* phone landscape: the key art shows its lower part (the crew stands higher) and the dock gets compact,
   so the bar sits under the birds like in the Supercell screens */
@media (orientation: landscape) and (max-height: 550px) {
  .round-loading-art { object-position: 50% 85%; }
  .load-dock { gap: 5px; width: min(560px, calc(100% - 36px)); bottom: max(8px, env(safe-area-inset-bottom)); }
  .load-tip { font-size: 13px; padding: 3px 12px 2px 3px; }
  .load-row { font-size: 14px; }
  .load-bar { height: 20px; }
  .load-bar > span { font-size: 13px; }
  .load-detail { font-size: 11px; }
}
