:root {
  --navy: #0b1424;
  --deep: #122038;
  --ice: #e8f4ff;
  --mist: #9ec3e6;
  --aurora: #7cf0d2;
  --ember: #ff7a3a;
  --flame: #ffb347;
  --gold: #ffcc00;
  --gold-hi: #ffe477;
  --ink: #6e4e00;
}

* { box-sizing: border-box; }

html,
body {
  height: 100%;
  margin: 0;
  background: var(--navy) !important;
  background-color: var(--navy) !important;
}

body {
  font-family: "Trebuchet MS", "Verdana", "Geneva", sans-serif;
  color: var(--ice);
}

.page {
  min-height: 100%;
}

#billboards {
  display: none !important;
}

main section#actions.lobby {
  position: relative;
  min-height: 100vh;
  height: auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 28px 18px !important;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(124, 240, 210, 0.18), transparent 58%),
    radial-gradient(ellipse 55% 40% at 80% 18%, rgba(90, 170, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 118%, rgba(255, 90, 30, 0.32), transparent 58%),
    linear-gradient(180deg, #07101c 0%, #122844 42%, #1a1630 72%, #2a140c 100%) !important;
  border-radius: 0 !important;
  text-align: center;
}

main section#actions.lobby .sky,
main section#actions.lobby .aurora,
main section#actions.lobby .hearth-glow,
main section#actions.lobby .snow,
main section#actions.lobby .scan {
  display: block !important;
  padding: 0 !important;
  padding-top: 0 !important;
}

main section#actions.lobby .sky {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  background:
    radial-gradient(1px 1px at 8% 14%, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 36%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 12%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 22%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 8%, rgba(255, 220, 180, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 44%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 14% 62%, rgba(255, 255, 255, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 48%, rgba(255, 255, 255, 0.5) 50%, transparent 51%) !important;
  pointer-events: none;
}

main section#actions.lobby .aurora {
  position: absolute !important;
  top: 8% !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  height: 42% !important;
  width: auto !important;
  background:
    linear-gradient(115deg, transparent 10%, rgba(92, 225, 197, 0.2) 38%, transparent 52%),
    linear-gradient(250deg, transparent 20%, rgba(255, 140, 60, 0.14) 48%, transparent 70%) !important;
  filter: blur(18px);
  pointer-events: none;
  animation: aurora 12s ease-in-out infinite alternate;
}

main section#actions.lobby .hearth-glow {
  position: absolute !important;
  left: 15% !important;
  right: 15% !important;
  top: auto !important;
  bottom: 0 !important;
  width: auto !important;
  height: 38% !important;
  transform: none;
  background: radial-gradient(ellipse at center bottom, rgba(255, 110, 40, 0.42), rgba(255, 180, 70, 0.1) 42%, transparent 72%) !important;
  filter: blur(8px);
  pointer-events: none;
  animation: flicker 2.4s ease-in-out infinite;
}

main section#actions.lobby .snow,
main section#actions.lobby .scan {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  overflow: hidden;
  pointer-events: none;
}

main section#actions.lobby .scan {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0 1px,
    transparent 1px 4px
  ) !important;
  mix-blend-mode: overlay;
  opacity: 0.45;
}

.snow span {
  position: absolute;
  top: -8%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
  animation: fall linear infinite;
}

.snow span:nth-child(1)  { left: 6%;  animation-duration: 11s; animation-delay: -2s; }
.snow span:nth-child(2)  { left: 14%; animation-duration: 15s; animation-delay: -7s; width: 3px; height: 3px; }
.snow span:nth-child(3)  { left: 23%; animation-duration: 13s; animation-delay: -1s; }
.snow span:nth-child(4)  { left: 31%; animation-duration: 17s; animation-delay: -9s; width: 4px; height: 4px; }
.snow span:nth-child(5)  { left: 44%; animation-duration: 12s; animation-delay: -4s; }
.snow span:nth-child(6)  { left: 52%; animation-duration: 16s; animation-delay: -11s; width: 3px; height: 3px; }
.snow span:nth-child(7)  { left: 61%; animation-duration: 14s; animation-delay: -3s; }
.snow span:nth-child(8)  { left: 69%; animation-duration: 18s; animation-delay: -8s; }
.snow span:nth-child(9)  { left: 77%; animation-duration: 12s; animation-delay: -6s; width: 4px; height: 4px; }
.snow span:nth-child(10) { left: 84%; animation-duration: 15s; animation-delay: -1s; }
.snow span:nth-child(11) { left: 91%; animation-duration: 13s; animation-delay: -10s; }
.snow span:nth-child(12) { left: 97%; animation-duration: 19s; animation-delay: -5s; width: 3px; height: 3px; }

main section#actions.lobby .lobby-card {
  position: relative;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  display: block !important;
  width: min(520px, 100%) !important;
  height: auto !important;
  margin: 0 auto;
  z-index: 2;
  padding: 34px 34px 28px !important;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16, 32, 54, 0.82), rgba(18, 20, 32, 0.88)) !important;
  background-image:
    linear-gradient(180deg, rgba(16, 32, 54, 0.82), rgba(18, 20, 32, 0.88)) !important;
  border: 4px solid #7ec8ff;
  outline: 3px solid #16375a;
  box-shadow:
    0 0 0 1px #c9ecff,
    0 18px 0 rgba(8, 20, 36, 0.45),
    0 0 80px rgba(255, 120, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-align: center;
}

.edition {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 12px 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb347, #ff6a2a);
  color: #3a1608;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 0 #9a320c, 0 0 18px rgba(255, 120, 40, 0.55);
  animation: ember 2.8s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--aurora);
  text-shadow: 0 0 12px rgba(124, 240, 210, 0.45);
}

h1 {
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ice) !important;
  line-height: 0.95;
}

h1 .word {
  display: block;
}

h1 .private {
  font-size: clamp(22px, 4.4vw, 28px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9ad8ff !important;
  text-shadow: 0 2px 0 #0a2744;
}

h1 .club {
  margin-top: 4px;
  font-size: clamp(36px, 8vw, 52px);
  color: #fff !important;
  text-shadow:
    0 3px 0 #123a66,
    0 0 24px rgba(126, 200, 255, 0.35);
}

.lede {
  margin: 0 auto 22px;
  max-width: 26em;
  color: var(--mist);
  line-height: 1.45;
  font-size: 15px;
}

a.play-btn,
a#penguin-login.play-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  width: auto !important;
  height: 58px !important;
  line-height: 58px !important;
  padding: 0 36px !important;
  border: 2px solid #ffe991 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #ffe477 0%, #ffcc00 100%) !important;
  color: var(--ink) !important;
  font-family: "Trebuchet MS", "Verdana", sans-serif;
  font-weight: 700;
  font-size: 28px !important;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) !important;
  box-shadow:
    inset 0 2px 0 #fff7d7,
    0 4px 0 #b89300,
    0 8px 0 rgba(0, 0, 0, 0.18),
    0 0 28px rgba(255, 140, 40, 0.35) !important;
}

a.play-btn:hover,
a.play-btn:focus-visible,
a#penguin-login.play-btn:hover,
a#penguin-login.play-btn:focus-visible {
  background: linear-gradient(180deg, #fff1a0 0%, #ffd84a 100%) !important;
  color: var(--ink) !important;
  outline: none;
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 0 #fff7d7,
    0 3px 0 #b89300,
    0 6px 0 rgba(0, 0, 0, 0.18),
    0 0 34px rgba(255, 160, 50, 0.5) !important;
}

.chill {
  margin: 16px 0 0;
  color: var(--flame);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 140, 40, 0.45);
}

.notes {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  color: rgba(158, 195, 230, 0.78);
  font-size: 12px;
  line-height: 1.65;
}

@keyframes fall {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  8%   { opacity: 1; }
  100% { transform: translate3d(18px, 110vh, 0); opacity: 0.15; }
}

@keyframes flicker {
  0%, 100% { opacity: 0.72; transform: translateX(-50%) scale(1); }
  40% { opacity: 1; transform: translateX(-50%) scale(1.05); }
  70% { opacity: 0.8; transform: translateX(-50%) scale(0.97); }
}

@keyframes ember {
  0%, 100% { box-shadow: 0 2px 0 #9a320c, 0 0 14px rgba(255, 120, 40, 0.4); }
  50% { box-shadow: 0 2px 0 #9a320c, 0 0 26px rgba(255, 180, 70, 0.8); }
}

@keyframes aurora {
  from { opacity: 0.55; transform: translateX(-2%); }
  to   { opacity: 1; transform: translateX(2%); }
}

@media (prefers-reduced-motion: reduce) {
  .snow span,
  .aurora,
  .hearth-glow,
  .edition {
    animation: none;
  }
}

#section-footer { display: none !important; }

body:not(.flash) #modal-overlay,
body:not(.flash) #modal-loading,
body:not(.flash) #modal-window,
body:not(.flash) #modal-close,
body:not(.flash) #colorbox,
body:not(.flash) #cboxOverlay {
  display: none !important;
}

body.flash {
  overflow: hidden;
  background: var(--navy) !important;
}

body.flash .lobby,
body.flash #section-footer,
body.flash header,
body.flash #billboards,
body.flash #D_F_FriendSection,
body.flash #D_F_HudNotification,
body.flash #D_F_TemplateSection,
body.flash #modal-overlay,
body.flash #modal-loading,
body.flash #modal-window,
body.flash #modal-close,
body.flash #colorbox,
body.flash #cboxOverlay {
  display: none !important;
}

body.flash main#content,
body.flash main {
  position: fixed;
  inset: 0;
  display: grid !important;
  place-items: center;
  height: 100% !important;
  width: 100% !important;
  background: var(--navy) !important;
}

body.flash #D_F_GameSection,
body.flash main section#D_F_GameSection {
  width: min(100vw, calc(100vh * 760 / 480)) !important;
  height: min(100vh, calc(100vw * 480 / 760)) !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

body.flash #cp_flash,
body.flash ruffle-player,
body.flash ruffle-object,
body.flash object,
body.flash embed {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

#error {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 20, 36, 0.92);
  color: var(--ice);
  z-index: 20;
  text-align: center;
}
