:root {
  --gold: #d4af37;
  --gold-soft: #f3e0a6;
  --gold-deep: #7a5818;
  --ink: #070504;
  --veil: rgba(8, 5, 3, 0.72);
  --classic: #c9a227;
  --chaos: #c45a2a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Cormorant Garamond", serif;
  color: #f4ead4;
  background: var(--ink);
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 24px 14px;
  overflow: hidden;
}

.bg,
.fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: kenburns 28s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.08) brightness(0.72);
}

.fx-rays {
  background: url("../assets/fx-rays.jpg") center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.38;
  animation: rays 12s ease-in-out infinite alternate;
}

.fx-dust {
  background: url("../assets/particles.jpg") center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.28;
  animation: drift 40s linear infinite;
}

.fx-vignette {
  background:
    radial-gradient(ellipse at center, transparent 18%, rgba(0, 0, 0, 0.55) 70%, #000 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 18%, transparent 72%, rgba(0, 0, 0, 0.78) 100%);
}

.fx-sparks {
  z-index: 2;
}

.brand,
.realms {
  position: relative;
  z-index: 3;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 auto;
  margin-bottom: 6px;
  animation: fadeDown 1.1s ease both;
}

.brand__logo {
  width: min(210px, 46vw);
  height: auto;
  margin-top: 0;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 16px rgba(255, 80, 20, 0.28));
  animation: emblemFloat 4.5s ease-in-out infinite;
}

.brand__kicker {
  margin-top: 6px;
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.brand__sub {
  margin-top: 4px;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(244, 234, 212, 0.72);
}

.realms {
  flex: 1 1 auto;
  min-height: 0;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  perspective: 1200px;
}

.card {
  position: relative;
  isolation: isolate;
  border-radius: 6px;
  height: 100%;
  min-height: 0;
  perspective: 900px;
  animation: cardIn 1s ease both;
}

.card--custom {
  animation-delay: 0.15s;
}

.card__glow {
  position: absolute;
  inset: -8px;
  z-index: -1;
  background: radial-gradient(circle at 50% 80%, rgba(212, 175, 55, 0.28), transparent 62%);
  opacity: 0.45;
  filter: blur(18px);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card--custom .card__glow {
  background: radial-gradient(circle at 50% 80%, rgba(196, 90, 42, 0.32), transparent 62%);
}

.card:hover .card__glow {
  opacity: 1;
}

.card__aura {
  position: absolute;
  inset: -22px;
  z-index: -2;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(243, 208, 120, 0.55), transparent 78%);
  filter: blur(10px);
  opacity: 0;
  animation: spinAura 7s linear infinite;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover .card__aura {
  opacity: 0.9;
}

.card__sheet {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.22s ease-out, filter 0.35s ease;
}

.card__clip {
  position: absolute;
  inset: 14px;
  overflow: hidden;
  z-index: 0;
}

.card__art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 18%;
  transform: scale(1.04);
  transition: transform 0.6s ease;
}

.card:hover .card__art {
  transform: scale(1.12);
}

.card__sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 236, 180, 0.28) 48%, transparent 60%);
  transform: translateX(-70%);
  pointer-events: none;
}

.card:hover .card__sheen {
  animation: sheen 1.1s ease;
}

.card__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  transition: filter 0.35s ease;
}

.card:hover .card__frame {
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 12px rgba(212, 175, 55, 0.45));
}

.card__veil {
  position: absolute;
  inset: 10px;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 28%,
    rgba(0, 0, 0, 0.2) 48%,
    rgba(8, 5, 3, 0.88) 78%,
    rgba(8, 5, 3, 0.96) 100%
  );
  pointer-events: none;
}

.card__body {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  text-align: center;
}

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.badge {
  color: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.35);
}

.badge--chaos {
  color: #ffd0b0;
  border-color: rgba(196, 90, 42, 0.55);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b7e3b2;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3adf5a;
  box-shadow: 0 0 8px #3adf5a;
  animation: pulse 1.6s ease-in-out infinite;
}

.card h2 {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-shadow: 0 2px 0 #3a2a0a, 0 0 22px rgba(212, 175, 55, 0.35);
}

.card--custom h2 {
  color: #ffd7b8;
  text-shadow: 0 2px 0 #3a1208, 0 0 22px rgba(196, 90, 42, 0.4);
}

.btn-diploma {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 6px 14px;
  border: 1px solid rgba(243, 224, 166, 0.7);
  background: rgba(0, 0, 0, 0.55);
  color: #fff8e8;
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-diploma:hover,
.btn-diploma:focus-visible {
  transform: translateY(-2px);
  background: rgba(60, 40, 8, 0.75);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.45);
}

.diploma {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
}

.diploma[hidden] {
  display: none;
}

.diploma__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.diploma__sheet {
  position: relative;
  width: min(520px, 94vw);
  animation: unfurl 0.45s ease;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.65));
}

.diploma__sheet img {
  width: 100%;
  height: auto;
}

.diploma__close {
  position: absolute;
  top: 4%;
  right: 8%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid #6b4a16;
  border-radius: 50%;
  background: rgba(58, 36, 18, 0.88);
  color: #f3e0a6;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.diploma__content {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 18%;
  bottom: 30%;
  overflow: auto;
  text-align: center;
  color: #3a2412;
}

.diploma__content h3 {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a3b12;
}

.diploma__block + .diploma__block {
  margin-top: 12px;
}

.diploma__block h4 {
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a5a22;
  margin-bottom: 4px;
}

.diploma__content p {
  font-size: 1.02rem;
  line-height: 1.35;
  color: #2b1a0e;
}

.rates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  margin-bottom: 10px;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 0;
  margin: 0 0 10px;
}

.socials:empty {
  display: none;
}

.socials a {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.socials img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.socials a:hover img,
.socials a:focus-visible img {
  transform: translateY(-2px) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 200, 80, 0.75));
}

.status strong {
  color: #fff;
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  min-width: 1.2em;
  display: inline-block;
}

.radio {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 14px;
  width: min(420px, 92vw);
  background: rgba(8, 5, 3, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.radio[hidden] {
  display: none;
}

.radio__play {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: radial-gradient(circle at 30% 30%, #c9a227, #5a4210);
  color: #1a1208;
  cursor: pointer;
  position: relative;
  flex: 0 0 36px;
}

.radio__icon {
  position: absolute;
  inset: 0;
  margin: auto;
}

.radio__icon--play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #1a1208;
  left: 3px;
}

.radio__icon--pause {
  display: none;
  width: 12px;
  height: 12px;
  border-left: 4px solid #1a1208;
  border-right: 4px solid #1a1208;
  box-sizing: border-box;
}

.radio.is-playing .radio__icon--play { display: none; }
.radio.is-playing .radio__icon--pause { display: block; }

.radio__info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.radio__info span {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 224, 166, 0.7);
}

.radio__info strong {
  font-family: "Cinzel", serif;
  font-size: 0.92rem;
  color: var(--gold-soft);
}

.radio__vol {
  width: 84px;
  accent-color: var(--gold);
}

.rates li {
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(12, 8, 4, 0.55);
  padding: 6px 4px 7px;
}

.rates span {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: rgba(243, 224, 166, 0.7);
}

.rates strong {
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  color: var(--gold-soft);
}

.btn-enter {
  position: relative;
  display: block;
  width: min(100%, 280px);
  margin: 0 auto;
  height: 64px;
  text-decoration: none;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.55));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.btn-enter img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.btn-enter__hover {
  opacity: 0;
  transform: scale(0.98);
}

.btn-enter:hover,
.btn-enter:focus-visible,
.btn-enter.is-hover {
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(255, 196, 74, 0.7));
  transform: translateY(-2px);
}

.btn-enter:hover .btn-enter__idle,
.btn-enter:focus-visible .btn-enter__idle,
.btn-enter.is-hover .btn-enter__idle {
  opacity: 0;
}

.btn-enter:hover .btn-enter__hover,
.btn-enter:focus-visible .btn-enter__hover,
.btn-enter.is-hover .btn-enter__hover {
  opacity: 1;
  transform: scale(1.04);
}

.card:hover {
  filter: brightness(1.06);
}

@keyframes kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-1.4%, -1%, 0); }
}

@keyframes rays {
  from { opacity: 0.28; transform: scale(1); }
  to { opacity: 0.5; transform: scale(1.06); }
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 0 -180px; }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes emblemFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

@keyframes spinAura {
  to { transform: rotate(1turn); }
}

@keyframes sheen {
  from { transform: translateX(-70%); }
  to { transform: translateX(70%); }
}

@keyframes unfurl {
  from { opacity: 0; transform: scale(0.86) rotate(-1.5deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 860px) {
  body { overflow: hidden auto; }
  .stage {
    height: auto;
    min-height: 100dvh;
    overflow: hidden;
    padding: 8px 14px 20px;
  }
  .realms {
    grid-template-columns: 1fr;
    gap: 18px;
    width: min(420px, 100%);
    flex: none;
  }
  .card {
    height: calc(100dvh - 168px);
    min-height: 0;
  }
  .brand__logo { width: min(170px, 52vw); }
  .brand__kicker { font-size: 0.68rem; letter-spacing: 0.32em; }
  .brand__sub { font-size: 0.95rem; }
  .card h2 { font-size: 1.7rem; }
  .btn-enter { height: 56px; }
  .socials a { width: 32px; height: 32px; flex-basis: 32px; }
}

@media (max-height: 760px) {
  .brand__logo { width: min(130px, 36vw); }
  .brand__sub { display: none; }
  .rates { margin-bottom: 8px; padding: 0; }
  .btn-enter { height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
