/* Boosey Game Portal — shared styles. Game-agnostic; keep it simple. */
:root {
  --bg:        #0e1116;
  --bg-soft:   #161b22;
  --card:      #1b2230;
  --card-hover:#232c3d;
  --edge:      #2a3446;
  --text:      #e6edf3;
  --muted:     #9aa7b8;
  --accent:    #ffb347;   /* lantern amber — the ship's running lights */
  --accent-2:  #4fd1c5;   /* signal teal */
  --good:      #58c98a;
  --warn:      #f0b429;
  --radius:    14px;
  --shadow:    0 6px 22px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1a2130 0%, var(--bg) 60%) fixed;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
.masthead { padding: 48px 0 28px; text-align: center; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 1.9rem; font-weight: 800; letter-spacing: .5px;
}
.brand .mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #d97706);
  display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: var(--shadow);
}
.tagline { color: var(--muted); margin: 10px 0 0; font-size: 1.02rem; }

/* ---- section headings ---- */
.section-title {
  display: flex; align-items: baseline; gap: 12px;
  margin: 36px 0 16px; font-size: 1.1rem; letter-spacing: .4px;
  color: var(--muted); text-transform: uppercase; font-weight: 700;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--edge); }

/* ---- game grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  position: relative;
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
a.card:hover { background: var(--card-hover); border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.card .icon { font-size: 2rem; }
.card h3 { margin: 0; font-size: 1.2rem; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card.soon { opacity: .6; border-style: dashed; }
.card.soon:hover { transform: none; }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .5px;
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase;
}
.badge.live  { background: rgba(88,201,138,.15); color: var(--good); border: 1px solid rgba(88,201,138,.4); }
.badge.soon  { background: rgba(154,167,184,.12); color: var(--muted); border: 1px solid var(--edge); }
.badge.prep  { background: rgba(240,180,41,.14); color: var(--warn); border: 1px solid rgba(240,180,41,.4); }

/* ---- status LED (server up/down) ---- */
.card-head { display: flex; align-items: center; justify-content: space-between; }
.status { display: flex; align-items: center; }
.led {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  /* glossy dome: bright top-left highlight fading to a dark rim */
  background: radial-gradient(circle at 33% 28%, #7d8a9e 0%, #3c4454 55%, #232a35 100%);
  box-shadow: inset 0 -1px 2px rgba(0,0,0,.55), inset 0 1px 1px rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.5);
  transition: background .25s ease, box-shadow .25s ease;
}
.led.up {
  background: radial-gradient(circle at 33% 28%, #d6ffe4 0%, #2ecc71 50%, #128a44 100%);
  box-shadow: inset 0 -1px 2px rgba(0,60,25,.5), inset 0 1px 1px rgba(255,255,255,.35),
              0 0 6px 1px rgba(46,204,113,.9), 0 0 13px 3px rgba(46,204,113,.45);
  animation: led-pulse 2.4s ease-in-out infinite;
}
.led.down {
  background: radial-gradient(circle at 33% 28%, #ffd2ca 0%, #e74c3c 50%, #a92718 100%);
  box-shadow: inset 0 -1px 2px rgba(70,0,0,.5), inset 0 1px 1px rgba(255,255,255,.3),
              0 0 6px 1px rgba(231,76,60,.85), 0 0 13px 3px rgba(231,76,60,.4);
}
.led.off {
  background: radial-gradient(circle at 33% 28%, #7d8a9e 0%, #3c4454 55%, #232a35 100%);
  box-shadow: inset 0 -1px 2px rgba(0,0,0,.55), inset 0 1px 1px rgba(255,255,255,.15);
}
@keyframes led-pulse { 0%,100% { box-shadow: inset 0 -1px 2px rgba(0,60,25,.5), inset 0 1px 1px rgba(255,255,255,.35), 0 0 6px 1px rgba(46,204,113,.9), 0 0 13px 3px rgba(46,204,113,.45); } 50% { box-shadow: inset 0 -1px 2px rgba(0,60,25,.5), inset 0 1px 1px rgba(255,255,255,.35), 0 0 4px 1px rgba(46,204,113,.6), 0 0 8px 2px rgba(46,204,113,.25); } }
@media (prefers-reduced-motion: reduce) { .led.up { animation: none; } }

/* ---- content pages ---- */
.panel {
  background: var(--bg-soft); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 24px 26px; margin: 18px 0;
}
.panel h2 { margin: 0 0 6px; }
.panel h3 { margin: 18px 0 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: #0b0e13; border: 1px solid var(--edge); padding: 2px 6px; border-radius: 6px; }
ol.steps { padding-left: 20px; } ol.steps li { margin: 8px 0; }

.dl {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--card); border: 1px solid var(--edge); border-radius: 10px;
  padding: 14px 18px; margin: 10px 0;
}
.dl .meta { display: flex; flex-direction: column; gap: 2px; }
.dl .meta .name { font-weight: 700; }
.dl .meta .sub { color: var(--muted); font-size: .85rem; }
.btn {
  background: var(--accent); color: #1a1206; font-weight: 700; border: none;
  padding: 9px 16px; border-radius: 9px; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--edge); }

.backlink { display: inline-block; margin: 26px 0 0; color: var(--muted); }

/* ---- footer ---- */
.foot { color: var(--muted); font-size: .85rem; text-align: center; padding: 40px 0 30px; }
.foot a { color: var(--muted); }
