@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("/fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 900; font-display: swap; src: url("/fonts/cinzel-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel Decorative"; font-weight: 900; font-display: swap; src: url("/fonts/cinzel-decorative-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 500; font-display: swap; src: url("/fonts/rajdhani-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 700; font-display: swap; src: url("/fonts/rajdhani-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-display: swap; src: url("/fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }

:root {
  --bg: #0a0506; --bg2: #0c0608; --panel: #150a0c;
  --line: rgba(216, 182, 90, .16);
  --gold: #d8b65a; --gold-bright: #f6d77a;
  --text: #f1dcd0; --muted: #a78b86;
  --accent: #d11a2a; --accent-bright: #ff4757; --accent-rgb: 209, 26, 42;
  --font-display: "Cinzel", Georgia, serif;
  --font-deco: "Cinzel Decorative", "Cinzel", serif;
  --font-ui: "Rajdhani", "Segoe UI", sans-serif;
  --font-body: "EB Garamond", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); }
body {
  font-family: var(--font-body); color: var(--text); line-height: 1.55; min-height: 100vh;
  background-color: #08070a;
  background-image:
    radial-gradient(1100px 600px at 50% -6%, rgba(var(--accent-rgb), .22), transparent 62%),
    linear-gradient(180deg, rgba(10, 5, 6, .80), rgba(8, 7, 10, .94)),
    url("/bg-castle.jpg");
  background-position: center -30px, center, center top;
  background-size: auto, auto, cover;
  background-repeat: no-repeat;
  background-attachment: fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 16px 10px; gap: 10px;
}

.card {
  position: relative; z-index: 1; width: min(640px, 100%); text-align: center;
  padding: 20px 28px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, rgba(21, 10, 12, .92), rgba(12, 6, 8, .94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6), 0 0 90px rgba(var(--accent-rgb), .12);
  backdrop-filter: blur(3px);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6;
}

.brand {
  font-family: var(--font-deco); font-weight: 900; font-size: clamp(32px, 9vw, 54px);
  letter-spacing: .01em; line-height: 1; color: var(--gold-bright); margin-bottom: 12px;
}
.brand-mu {
  font-weight: inherit; letter-spacing: .04em;
  color: var(--accent-bright); -webkit-text-stroke: 1px var(--gold-bright);
  text-shadow: 0 0 28px rgba(var(--accent-rgb), .55), 0 4px 18px rgba(0, 0, 0, .7);
}

.chip {
  display: inline-block; font-family: var(--font-ui); font-weight: 700; font-size: 11px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold-bright);
  border: 1px solid var(--line); border-radius: 20px; padding: 4px 14px;
}
h1 {
  font-family: var(--font-display); font-weight: 900; color: #fff; font-size: clamp(26px, 5.4vw, 36px);
  letter-spacing: .02em; margin: 10px 0 6px; text-wrap: balance;
}
h1::after { content: " \2726"; color: var(--gold); font-size: .55em; vertical-align: middle; }
.lead { font-size: 18px; line-height: 1.4; color: var(--text); max-width: 54ch; margin: 0 auto; white-space: pre-line; text-wrap: balance; }

.clock { margin-top: 14px; padding: 10px 12px 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .25); }
.clock-label { font-family: var(--font-ui); font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cells { display: flex; justify-content: center; gap: 10px; margin-top: 7px; }
.cells div { min-width: 64px; padding: 6px 6px 5px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, var(--panel), var(--bg2)); }
.cells b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 28px; color: var(--gold-bright); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cells small { display: block; font-family: var(--font-ui); font-weight: 500; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.clock-at { margin-top: 7px; font-style: italic; color: var(--muted); font-size: 15px; }
.clock-over { padding: 10px 14px; }
.clock-over .clock-label { line-height: 1.6; }

.news { margin-top: 14px; text-align: left; }
.news h2 { font-family: var(--font-ui); font-weight: 700; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 6px; }
.news ul { list-style: none; display: grid; gap: 8px; max-height: 20vh; overflow-y: auto; }
.news li { padding: 8px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; background: rgba(0, 0, 0, .25); }
.news time { display: block; font-family: var(--font-ui); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.news p { font-size: 16px; line-height: 1.35; white-space: pre-line; }

.note { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--muted); font-style: italic; max-width: 52ch; margin-left: auto; margin-right: auto; }
.foot { position: relative; z-index: 1; font-family: var(--font-ui); font-weight: 500; font-size: 12px; letter-spacing: .12em; color: var(--muted); text-align: center; }

.embers { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.embers i {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-bright); box-shadow: 0 0 10px 2px rgba(var(--accent-rgb), .8); opacity: 0;
  animation: rise 11s linear infinite;
}
.embers i:nth-child(1) { left: 8%;  animation-delay: 0s; }
.embers i:nth-child(2) { left: 20%; animation-delay: 3s;  animation-duration: 13s; }
.embers i:nth-child(3) { left: 33%; animation-delay: 6s; }
.embers i:nth-child(4) { left: 47%; animation-delay: 1.5s; animation-duration: 14s; }
.embers i:nth-child(5) { left: 60%; animation-delay: 8s; }
.embers i:nth-child(6) { left: 72%; animation-delay: 4s;  animation-duration: 12s; }
.embers i:nth-child(7) { left: 85%; animation-delay: 9s; }
.embers i:nth-child(8) { left: 94%; animation-delay: 2s;  animation-duration: 15s; }
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(1);   opacity: 0; }
  10%  { opacity: .9; }
  100% { transform: translateY(-105vh) translateX(26px) scale(.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .embers { display: none; } }

@media (max-height: 700px) {
  .stage { padding: 8px 12px 6px; gap: 6px; }
  .card { padding: 14px 16px 12px; }
  .brand { font-size: clamp(32px, 9vw, 44px); margin-bottom: 8px; }
  h1 { font-size: 24px; margin: 8px 0 4px; }
  .lead { font-size: 16px; line-height: 1.3; }
  .clock { margin-top: 10px; padding: 8px 10px 7px; }
  .cells b { font-size: 22px; }
  .news { margin-top: 10px; }
  .news ul { max-height: 16vh; }
  .note { margin-top: 8px; font-size: 13px; }
  .foot { font-size: 11px; }
}

@media (max-width: 480px) {
  .card { padding: 18px 14px 14px; }
  .lead { font-size: 17px; }
  .cells { gap: 6px; }
  .cells div { min-width: 0; flex: 1; }
  .cells b { font-size: 24px; }
}
