/* FUCK FUCK'EM — Laden dark/teal facelift */
/* Uses system fonts; no third-party network dependency. */

:root {
  --bg: #050708;
  --panel: #0a0f12;
  --teal: #2ec4b6;
  --teal-bright: #3dfff0;
  --teal-dim: rgba(46, 196, 182, 0.28);
  --green: #00ff9d;
  --cyan: #2ec4b6;
  --red: #ff4d6d;
  --text: #e8f4f2;
  --muted: #7a9290;
  --border: #152022;
  --glow: rgba(46, 196, 182, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(46,196,182,.08), transparent 55%),
    var(--bg);
}

.ffe-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: .45rem 1rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(46,196,182,.07), transparent),
    var(--panel);
  z-index: 10;
  backdrop-filter: blur(8px);
}

.ffe-bar .brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}

.ffe-bar .laden-mark {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 12px rgba(46,196,182,.25));
  flex-shrink: 0;
}

.ffe-bar .brand-copy {
  min-width: 0;
  border-left: 1px solid rgba(46,196,182,.22);
  padding-left: .85rem;
}

.ffe-bar .brand h1 {
  font-family: Orbitron, sans-serif;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--teal-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 18px rgba(46,196,182,.35);
}

.ffe-bar .brand span {
  font: 600 .62rem/1.2 JetBrains Mono, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ffe-bar .actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.ffe-bar a, .ffe-bar button {
  font: 600 .7rem/1 JetBrains Mono, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  background: transparent;
  border: 1px solid var(--teal-dim);
  border-radius: 8px;
  padding: .45rem .75rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}

.ffe-bar a:hover, .ffe-bar button:hover {
  color: var(--teal-bright);
  border-color: rgba(46,196,182,.55);
  background: rgba(46,196,182,.08);
  box-shadow: 0 0 16px rgba(46,196,182,.12);
}

.ffe-stage {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  position: relative;
  min-height: 0;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(46,196,182,.07), transparent 52%),
    #050708;
  padding: .75rem;
}

#game {
  display: block;
  width: min(960px, 100%);
  height: auto;
  max-height: calc(100vh - 110px);
  aspect-ratio: 960 / 600;
  background: #060a0c;
  border: 1px solid rgba(46,196,182,.28);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.45),
    0 20px 55px rgba(0,0,0,.5),
    0 0 48px rgba(46,196,182,.1);
  cursor: crosshair;
  image-rendering: auto;
  outline: none;
}

#game:focus { outline: none; }

.ffe-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5,7,8,.74);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}

.ffe-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.ffe-overlay .card {
  text-align: center;
  padding: 1.35rem 1.55rem;
  border-radius: 16px;
  border: 1px solid rgba(46,196,182,.28);
  background:
    linear-gradient(165deg, rgba(16,28,30,.95), rgba(8,12,14,.98));
  box-shadow: 0 22px 48px rgba(0,0,0,.45), 0 0 30px rgba(46,196,182,.08);
  max-width: 380px;
}

.eyebrow {
  font: 700 .65rem/1 JetBrains Mono, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}

.ffe-overlay .card h2 {
  font-family: Orbitron, sans-serif;
  font-size: 1.05rem;
  color: var(--teal-bright);
  margin: .2rem 0 .45rem;
}

.ffe-overlay .card p {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: .95rem;
  line-height: 1.45;
}

.ffe-overlay .card button {
  display: inline-block;
  font: 700 .74rem/1 JetBrains Mono, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #04120f;
  background: linear-gradient(135deg, #3dfff0, #2ec4b6);
  border: none;
  border-radius: 8px;
  padding: .65rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(46,196,182,.28);
  transition: transform .12s, box-shadow .12s;
}

.ffe-overlay .card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(46,196,182,.4);
}

.ffe-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .4rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--panel);
  font: 600 .62rem/1 JetBrains Mono, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}

.ffe-foot .tag {
  color: var(--teal-bright);
  text-shadow: 0 0 10px rgba(46,196,182,.35);
}

.ffe-foot .sep { color: rgba(46,196,182,.35); }
.ffe-foot .muted { color: var(--muted); letter-spacing: .1em; }

@media (max-width: 720px) {
  .ffe-bar .brand span { display: none; }
  .ffe-bar .brand h1 { font-size: .7rem; }
  .ffe-bar .laden-mark { height: 36px; max-width: 110px; }
  .ffe-foot .muted { display: none; }
}

/* Public game: keep navigation compact and keyboard focus visible. */
.ffe-bar .actions { flex-wrap: wrap; justify-content:flex-end; }
.ffe-bar a:focus-visible,.ffe-overlay button:focus-visible { outline:2px solid var(--teal-bright); outline-offset:3px; }
#game:focus-visible { outline:2px solid var(--teal-bright); outline-offset:2px; }
@media(max-width:480px) { .ffe-bar { padding:.45rem;gap:.35rem; } .ffe-bar .laden-mark {height:30px;max-width:70px;} .ffe-bar .brand-copy {padding-left:.4rem;} .ffe-bar a {padding:.4rem;font-size:.6rem;} .ffe-bar .brand {gap:.4rem;} }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after {transition:none!important;} }
