/* ===== Balkan Glory Roleplay — igraj.balkanglory.com (single-screen) ===== */
:root {
  --bg: #070709;
  --glass: rgba(18, 18, 24, 0.66);
  --glass-2: rgba(255, 255, 255, 0.045);
  --brd: rgba(255, 255, 255, 0.10);
  --brd-2: rgba(255, 255, 255, 0.16);
  --b1: #ff2d20;
  --b2: #ff8a1a;
  --grad: linear-gradient(108deg, #ff2d20 0%, #ff5a1f 52%, #ff9a1f 100%);
  --ink: #1c0c05;
  --text: #f4f5f8;
  --muted: #a3a9b6;
  --muted-2: #6b7280;
  --green: #34e07f;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand__name, .step__num, .btn { font-family: "Unbounded", "Manrope", sans-serif; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
strong { color: var(--text); font-weight: 700; }

/* ---------------- atmosphere ---------------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(125% 100% at 50% -25%, #1a100b 0%, #0a0708 48%, #050406 100%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.32; mix-blend-mode: screen; will-change: transform; }
.a1 { width: 52vw; height: 52vw; background: #ff2d20; top: -28%; left: -16%; animation: float1 19s var(--ease) infinite alternate; }
.a2 { width: 46vw; height: 46vw; background: #ff8a1a; top: -26%; right: -20%; opacity: 0.26; animation: float2 23s var(--ease) infinite alternate; }
.a3 { width: 44vw; height: 44vw; background: #b3160b; bottom: -32%; left: 30%; opacity: 0.22; animation: float3 27s var(--ease) infinite alternate; }
@keyframes float1 { to { transform: translate(8vw, 10vh) scale(1.15); } }
@keyframes float2 { to { transform: translate(-9vw, 8vh) scale(1.1); } }
@keyframes float3 { to { transform: translate(6vw, -8vh) scale(1.2); } }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain { position: absolute; inset: 0; opacity: 0.4; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 105% at 50% 32%, transparent 46%, rgba(0, 0, 0, 0.82) 100%); }

/* ---------------- top bar ---------------- */
.bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: clamp(0.8rem, 2.4vw, 1.3rem) clamp(1rem, 4vw, 2.2rem);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand__logo { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(255, 70, 40, 0.6)); }
.brand__name { font-weight: 700; font-size: 1rem; line-height: 0.95; display: flex; flex-direction: column; letter-spacing: -0.01em; }
.brand__name small { font-size: 0.56rem; letter-spacing: 0.3em; color: var(--b2); margin-top: 3px; text-transform: uppercase; }
.bar__right { display: flex; align-items: center; gap: 0.6rem; }
.live { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: #c9efda; background: rgba(52, 224, 127, 0.08); border: 1px solid rgba(52, 224, 127, 0.32); padding: 0.42rem 0.7rem; border-radius: 999px; }
.live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 224, 127, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 224, 127, 0.5); } 70% { box-shadow: 0 0 0 6px rgba(52, 224, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 224, 127, 0); } }
.chip-link { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.86rem; padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--brd); background: var(--glass-2); transition: all 0.2s var(--ease); }
.chip-link:hover { border-color: var(--brd-2); background: rgba(255, 255, 255, 0.08); }
.chip-link.is-todo { opacity: 0.5; }

/* ---------------- stage + panel ---------------- */
.stage { position: relative; z-index: 2; flex: 1; display: grid; place-items: center; perspective: 1400px;
  padding: clamp(0.5rem, 2vh, 1.5rem) clamp(0.9rem, 4vw, 2rem) clamp(1rem, 3vh, 2rem); }
.panel {
  position: relative; width: min(960px, 100%);
  background: linear-gradient(180deg, rgba(22, 22, 28, 0.72), rgba(11, 11, 15, 0.8));
  backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid var(--brd); border-radius: 28px;
  padding: clamp(1.5rem, 3.4vw, 2.6rem);
  box-shadow: 0 60px 130px -50px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform-style: preserve-3d; transition: transform 0.25s var(--ease);
  animation: panelIn 0.9s var(--ease) both;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(26px) scale(0.97); } to { opacity: 1; transform: none; } }
.panel::before { content: ""; position: absolute; inset: 0; border-radius: 28px; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 90, 40, 0.55), transparent 42%, transparent 70%, rgba(255, 150, 40, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.panel__glow { position: absolute; width: 60%; height: 120px; top: -40px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 70, 30, 0.5), transparent 70%); filter: blur(18px); pointer-events: none; }

.panel__head { text-align: center; }
.panel__logo { width: clamp(72px, 9vw, 94px); height: auto; filter: drop-shadow(0 10px 30px rgba(255, 70, 40, 0.55)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.kicker { margin-top: 0.8rem; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--b2); }
.panel__title { font-size: clamp(2.5rem, 6.4vw, 4rem); font-weight: 800; line-height: 0.96; letter-spacing: -0.025em; margin-top: 0.5rem; text-shadow: 0 10px 50px rgba(255, 60, 25, 0.25); }
.panel__sub { max-width: 540px; margin: 0.7rem auto 0; color: var(--muted); font-size: clamp(0.95rem, 2.3vw, 1.08rem); }

/* ---------------- steps ---------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; margin: clamp(1.4rem, 3vw, 2rem) 0 0; }
.step { position: relative; text-align: left; background: var(--glass-2); border: 1px solid var(--brd); border-radius: 18px;
  padding: 1.15rem 1.15rem 1.25rem; transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
  animation: stepIn 0.7s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 250ms); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.step:hover { transform: translateY(-4px); border-color: rgba(255, 122, 24, 0.4); background: rgba(255, 255, 255, 0.06); }
.step__num { position: absolute; top: -12px; right: 14px; width: 30px; height: 30px; display: grid; place-items: center;
  font-size: 0.9rem; font-weight: 700; color: var(--ink); background: var(--grad); border-radius: 50%;
  box-shadow: 0 8px 20px -6px rgba(255, 80, 30, 0.8); }
.step__ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255, 122, 24, 0.12); border: 1px solid rgba(255, 122, 24, 0.25); color: var(--b2); margin-bottom: 0.8rem; }
.step__ico svg { width: 24px; height: 24px; }
.step__t { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.step__d { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }
.stores { display: flex; gap: 0.4rem; margin-top: 0.85rem; flex-wrap: wrap; }
.store { font-size: 0.78rem; font-weight: 600; color: var(--text); text-decoration: none; padding: 0.32rem 0.65rem; border-radius: 8px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--brd); transition: all 0.18s var(--ease); }
.store:hover { border-color: var(--b2); color: var(--b2); transform: translateY(-1px); }
.ministep-cta { display: inline-block; margin-top: 0.85rem; font-size: 0.82rem; font-weight: 700; color: var(--b2); text-decoration: none; }
.ministep-cta::after { content: " →"; }
.ministep-cta.is-disabled { color: var(--muted-2); pointer-events: none; }

/* ---------------- actions ---------------- */
.actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-top: clamp(1.4rem, 3vw, 2rem); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; font-weight: 700; font-size: 1.02rem;
  border: 0; border-radius: 14px; padding: 0.95rem 1.6rem; cursor: pointer; text-decoration: none; letter-spacing: -0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.25s, filter 0.2s, background 0.2s; }
.btn--primary { color: var(--ink); background: var(--grad); box-shadow: 0 14px 40px -12px rgba(255, 80, 30, 0.9), inset 0 0 0 1px rgba(255, 180, 100, 0.4); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 56px -14px rgba(255, 90, 30, 1), inset 0 0 0 1px rgba(255, 200, 120, 0.55); filter: brightness(1.05); }
.btn--primary.is-disabled { filter: grayscale(0.35); opacity: 0.5; pointer-events: none; box-shadow: none; }
.btn--ghost { color: var(--text); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--brd); gap: 0.7rem; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--brd-2); }
.connect code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92rem; color: var(--text); }
.connect__copy { font-size: 0.78rem; color: var(--b2); font-family: "Manrope", sans-serif; }
.connect.is-ok .connect__copy { color: var(--green); }
.soon { text-align: center; color: var(--b2); font-size: 0.84rem; font-weight: 600; margin-top: 0.9rem; }

/* ---------------- footer ---------------- */
.foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: clamp(0.8rem, 2.2vw, 1.3rem) clamp(1rem, 4vw, 2.2rem); color: var(--muted-2); font-size: 0.82rem; }
.foot__social { display: flex; gap: 1rem; }
.foot__social a { color: var(--muted); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.foot__social a:hover { color: var(--b2); }
.foot__social a.is-todo { opacity: 0.5; }

a:focus-visible, button:focus-visible, .store:focus-visible { outline: 2px solid var(--b2); outline-offset: 3px; }

/* ---------------- responsive ---------------- */
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 0.6rem; }
  .step { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.9rem; align-items: center; padding: 0.9rem 1rem; }
  .step__num { position: static; grid-row: 1 / 3; align-self: center; width: 34px; height: 34px; }
  .step__ico { display: none; }
  .step__t { grid-column: 2; }
  .step__d { grid-column: 2; margin-top: 0.1rem; }
  .stores, .ministep-cta { grid-column: 2; margin-top: 0.5rem; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .foot { justify-content: center; text-align: center; }
}
@media (max-width: 380px) { .brand__name { font-size: 0.9rem; } }

@media (prefers-reduced-motion: reduce) {
  .aurora, .live__dot, .panel, .panel__logo, .step { animation: none !important; }
  .panel { transform: none !important; }
}
