/* Emberdepths menu chrome — HTML/CSS components, not photographed slides. */

.screen-hall {
  background:
    radial-gradient(ellipse at 18% 88%, rgba(160, 54, 22, .2), transparent 34%),
    radial-gradient(ellipse at 82% 86%, rgba(40, 70, 120, .1), transparent 32%),
    radial-gradient(ellipse at 50% 100%, rgba(90, 28, 12, .28), transparent 46%),
    linear-gradient(180deg, #1c1612 0%, #0c0908 48%, #050403 100%);
}
.screen-hall::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background:
    linear-gradient(90deg, transparent 0 41%, #0a0807 41% 41.4%, transparent 41.4% 58.6%, #0a0807 58.6% 59%, transparent 59%),
    linear-gradient(#12100e, #12100e) 8% 100% / 7% 38% no-repeat,
    linear-gradient(#0e0c0b, #0e0c0b) 16% 100% / 4% 52% no-repeat,
    linear-gradient(#161210, #161210) 22% 100% / 9% 44% no-repeat,
    linear-gradient(#10100f, #10100f) 78% 100% / 14% 62% no-repeat,
    linear-gradient(#0c0b0a, #0c0b0a) 88% 100% / 6% 48% no-repeat,
    linear-gradient(#140f0d, #140f0d) 94% 100% / 8% 36% no-repeat;
}
.screen-hall::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 48%, rgba(0,0,0,.62) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 2px, transparent 2px 4px);
}

.ui-stack {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.ui-crest {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 28px 16px;
  text-align: center;
  background:
    linear-gradient(180deg, #2c241c 0%, #16110d 70%, #0c0907 100%);
  border: 1px solid #5a4326;
  box-shadow:
    0 0 0 1px #1a120c,
    0 0 0 3px #2a2016,
    inset 0 1px 0 rgba(227, 198, 141, .16),
    0 12px 28px rgba(0,0,0,.55);
  clip-path: polygon(6% 0, 94% 0, 100% 42%, 93% 100%, 7% 100%, 0 42%);
}
.ui-crest .game-title { margin: 0; font-size: clamp(22px, 3.4vw, 34px); }
.ui-gem {
  width: 9px;
  height: 9px;
  margin-bottom: 2px;
  background: radial-gradient(circle at 35% 30%, #ff8a6a, #c42818 46%, #5a0c0c);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(207, 91, 46, .85);
}

.ui-kicker {
  margin: 0;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #f0d8a8;
}
.torch-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-end;
  height: 36px;
  margin: 10px 0 0;
}
.torch {
  width: 9px;
  height: 18px;
  border-radius: 50% 50% 35% 35%;
  background: #2a1810;
  box-shadow: inset 0 -3px 0 #1a100c;
  opacity: .32;
  transform-origin: 50% 100%;
}
#screen-loading.is-active .torch {
  animation: torch-wake 2.4s ease-in-out infinite;
}
#screen-loading.is-active .torch:nth-child(2) { animation-delay: .28s; }
#screen-loading.is-active .torch:nth-child(3) { animation-delay: .56s; }
#screen-loading.is-active .torch:nth-child(4) { animation-delay: .84s; }
#screen-loading.is-active .torch:nth-child(5) { animation-delay: 1.12s; }
@keyframes torch-wake {
  0%, 18% {
    opacity: .28;
    height: 12px;
    background: #2a1810;
    box-shadow: inset 0 -3px 0 #1a100c;
    filter: none;
  }
  32%, 48% {
    opacity: 1;
    height: 22px;
    background: radial-gradient(circle at 40% 28%, #ffe08a, #cf5b2e 52%, #8a1f12);
    box-shadow: 0 0 12px rgba(207, 91, 46, .9), 0 -6px 10px rgba(255, 160, 60, .4);
    filter: drop-shadow(0 0 6px #cf5b2e);
  }
  62%, 100% {
    opacity: .28;
    height: 12px;
    background: #2a1810;
    box-shadow: inset 0 -3px 0 #1a100c;
    filter: none;
  }
}

.ui-panel {
  position: relative;
  z-index: 1;
  padding: 18px 16px;
  background:
    linear-gradient(180deg, rgba(24, 18, 13, .94), rgba(8, 6, 5, .96));
  border: 1px solid #4a3620;
  box-shadow:
    0 0 0 1px #120e0a,
    0 0 0 3px #2a2018,
    0 0 0 4px #6b5530,
    0 18px 50px rgba(0,0,0,.72);
}
.ui-panel::before,
.ui-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #8e1f18;
  pointer-events: none;
}
.ui-panel::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.ui-panel::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }

.ui-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 8px 14px;
  margin: 0 0 8px;
  border: 1px solid #3a2d1e;
  background: rgba(6, 4, 3, .7);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.45);
}
.ui-slot:last-child { margin-bottom: 0; }

.ui-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0 0 8px;
  padding: 8px 14px;
  border: 1px solid #4a3a24;
  background: linear-gradient(180deg, #2a2118, #100c09);
  color: var(--gold-lit);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.ui-btn:hover:not(:disabled) {
  filter: brightness(1.18);
  color: #fff4e2;
}
.ui-btn:disabled { filter: grayscale(.7) brightness(.55); opacity: .55; cursor: default; }
.ui-btn-primary,
.ui-slot.is-lit {
  border-color: #7a2a1c;
  background: linear-gradient(180deg, #7a2a1c, #2a0c0a);
  box-shadow: inset 0 0 16px rgba(180, 40, 28, .35);
  color: #ffe6cf;
}

.ui-field { gap: 4px; }
.ui-field > span {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
.ui-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--gold-lit);
  font-family: var(--body);
  font-size: 16px;
  outline: none;
  padding: 2px 0;
  min-height: 22px;
}
.ui-field input:focus { color: #fff4e2; }
.ui-field.is-error { border-color: var(--bad); }

.ui-meta {
  align-items: center;
  text-align: center;
  gap: 4px;
  min-height: 64px;
}
.ui-hintbar {
  z-index: 2;
  padding: 8px 18px;
  border: 1px solid #3a2d1e;
  background: rgba(8, 6, 5, .72);
}

.login-form { display: block; }
.login-form .form-error { min-height: 16px; margin: 0; }
.login-form .auth-footer { margin: 0; }
