/* ============ OmniHaven site — shared styles ============ */
:root {
  --bg: #000000;
  --bg-2: #121628;
  --panel: #171c33;
  --panel-border: #2a3156;
  --text: #e6e8f2;
  --muted: #9aa1c0;
  --accent: #e8402a;      /* active tab red */
  --accent-2: #7ed321;    /* OmniHaven green */
  --accent-3: #ff9a2e;    /* fire orange */
  --discord: #5865f2;
  --linktree: #43e660;
  --radius: 14px;
}

@font-face {
  font-family: "OmniFont";
  src: url("OmniFont.ttf") format("truetype");
  font-display: swap;
}

* { box-sizing: border-box; }

/* Pure black 2px outline on all text */
body, body * {
  text-shadow:
    -2px -2px 0 #000,  0 -2px 0 #000,  2px -2px 0 #000,
    -2px  0   0 #000,                  2px  0   0 #000,
    -2px  2px 0 #000,  0  2px 0 #000,  2px  2px 0 #000;
}

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "OmniFont", "Pixelify Sans", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent-2); }

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

/* ---------- Header ---------- */
.site-header {
  padding: 40px 0 8px;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.brand img {
  max-width: min(520px, 90vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
}

/* shown only if OmniHavenLogo.png is missing */
.brand .logo-fallback {
  display: none;
  font-family: "OmniFont", "Pixelify Sans", sans-serif;
  font-size: clamp(42px, 9vw, 84px);
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 2px;
  text-shadow: 4px 4px 0 #1d4a0a, 0 0 30px rgba(126, 211, 33, 0.35);
  line-height: 1;
}

.byline {
  font-family: "OmniFont", "Pixelify Sans", sans-serif;
  font-size: clamp(20px, 3.5vw, 30px);
  color: var(--muted);
  padding-bottom: 10px;
  white-space: nowrap;
}
.byline strong { color: var(--text); font-weight: 600; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 4vw, 48px);
  margin: 28px 0 36px;
  flex-wrap: wrap;
}

.tab {
  font-family: "OmniFont", "Pixelify Sans", sans-serif;
  font-size: clamp(18px, 2.6vw, 24px);
  text-decoration: none;
  color: var(--text);
  padding: 10px 28px;
  border: 2px solid var(--panel-border);
  background: var(--panel);
  border-radius: 10px;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.tab:hover { transform: translateY(-2px); border-color: #4a5590; }
.tab[aria-current="page"] {
  background: var(--accent);
  border-color: #ff6a52;
  color: #fff;
  box-shadow: 0 4px 0 #8f1f10;
}

/* ---------- Sections ---------- */
main { padding-bottom: 60px; }

.section { margin: 0 0 44px; }

.section-title {
  font-family: "OmniFont", "Pixelify Sans", sans-serif;
  font-size: 26px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--accent-2);
  box-shadow: 3px 3px 0 #2b5e0a;
}

.panel {
  background: rgba(23, 28, 51, 0.85);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px;
}

/* Steam widget */
.steam-frame {
  display: flex;
  justify-content: center;
  overflow-x: auto;
}
.steam-frame iframe {
  border: 0;
  width: 646px;
  max-width: 100%;
  height: 190px;
  border-radius: 6px;
}
.wishlist-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  background: linear-gradient(90deg, #75b022, #588a1b);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.center { text-align: center; }

/* Text columns */
.text-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.text-cols h2 {
  font-family: "OmniFont", "Pixelify Sans", sans-serif;
  margin-top: 0;
  font-size: 24px;
  color: var(--accent-3);
}
.text-cols p { color: #cdd1e4; margin: 0 0 12px; }

/* Community cards */
.community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.card:hover { transform: translateY(-2px); }

.card .icon {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card .icon img { width: 100%; height: 100%; object-fit: cover; }
.card .icon svg { width: 36px; height: 36px; }

.card .info { flex: 1; min-width: 0; }
.card .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.card .name { font-size: 20px; font-weight: 700; }
.card .meta { font-size: 14px; color: var(--muted); }
.card .meta .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin: 0 4px 1px 0;
  vertical-align: middle;
}
.card .go {
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.card.discord { border-color: #3b45a8; background: linear-gradient(135deg, #1b1f45, #171c33); }
.card.discord .icon { background: var(--discord); }
.card.discord .go { background: var(--discord); color: #fff; }
.card.discord:hover { border-color: var(--discord); }

.card.linktree { border-color: #2a6b38; background: linear-gradient(135deg, #142a1c, #171c33); }
.card.linktree .icon { background: var(--linktree); }
.card.linktree .go { background: var(--linktree); color: #fff; }
.card.linktree:hover { border-color: var(--linktree); }

/* Coming soon pages */
.coming-soon {
  text-align: center;
  padding: 60px 22px;
}
.coming-soon h2 {
  font-family: "OmniFont", "Pixelify Sans", sans-serif;
  font-size: 32px;
  margin: 0 0 8px;
}
.coming-soon p { color: var(--muted); margin: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 22px 0 34px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .text-cols, .community { grid-template-columns: 1fr; }
  .site-header { padding-top: 24px; }
  .tab { padding: 8px 18px; }
  .panel { padding: 16px; }
}

/* Every text element uses OmniFont (widgets in iframes keep their own) */
body, body * { font-family: "OmniFont", "Pixelify Sans", sans-serif; }

/* Size bump: OmniFont runs small */
body { font-size: 20px; }
.text-cols p { font-size: 22px; }
.wishlist-btn { font-size: 22px; }
.card .label { font-size: 15px; }
.card .name { font-size: 26px; }
.card .meta { font-size: 18px; }
.card .go { font-size: 20px; }
.site-footer { font-size: 18px; }

/* Steam widget inside the blue window frame (stretches to fit, corners stay sharp) */
.steam-box {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.win {
  position: relative;
  border-style: solid;
  border-width: 69px 6px 52px 6px;
  border-image: url("steam-frame.png") 69 6 52 6 fill stretch;
  image-rendering: pixelated;
  padding: 16px;
}
.steam-box iframe {
  display: block;
  border: 0;
  width: 646px;
  max-width: 100%;
  height: 190px;
}

/* Title text in the top-left of each blue window's top bar */
.win-title {
  position: absolute;
  left: 10px;
  top: -69px;
  height: 64px;
  display: flex;
  align-items: center;
  font-size: 30px;
  color: #fff;
  pointer-events: none;
}

/* Cards sit directly on the window, no dark box behind them */
.win .card,
.win .card.discord,
.win .card.linktree {
  background: none;
  border: none;
  padding: 4px;
}
.win .card .label, .win .card .meta, .win .card .name { color: #fff; }

/* All windows the same size as the Steam one, stacked in the middle */
.community {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 44px;
}
.community .win {
  width: 690px;            /* same as the Steam window: 646 + padding + walls */
  max-width: 100%;
  height: 343px;           /* 190 + padding + top/bottom bars */
  padding: 16px;
  display: flex;
  align-items: center;
}
.community .win .card { width: 100%; }

/* Discord left, Links right (stacks only if the window is too narrow) */
.community {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  width: min(1402px, 100vw - 32px);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* Join / Open buttons use the button sprite (drawn at 2x, stretches to fit) */
.card .go,
.card.discord .go,
.card.linktree .go {
  background: none;
  border-style: solid;
  border-width: 8px;
  border-image: url("button.png") 4 fill stretch;
  border-radius: 0;
  image-rendering: pixelated;
  padding: 4px 18px;
  color: #fff;
}

/* Blue line above the copyright */
.site-footer { border-top-color: #3146eb; }

/* No lift effect on the cards/buttons */
.card:hover { transform: none; }

/* Buttons smoothly get 40% more saturated on hover, and back */
.card .go {
  filter: saturate(1);
  transition: filter 0.25s ease-out, transform 0.25s ease-out;
}
.card:hover .go { filter: saturate(1.5); transform: scale(1.3); }

/* Logo nudged 20px to the right */
.brand img { position: relative; left: 20px; }

/* Icons grow 30% on hover too */
.card .icon { transition: transform 0.25s ease-out; }
.card:hover .icon { transform: scale(1.3); }

/* Card text grows 30% on hover too (grows from its left side) */
.card .info { transition: transform 0.25s ease-out; transform-origin: left center; }
.card:hover .info { transform: scale(1.3); }

/* Logo + "By Plubu" shifted another 20px right */
.brand { position: relative; left: 20px; }

/* Card contents pulled in toward the middle of each window */
.win .card,
.win .card.discord,
.win .card.linktree { padding: 4px 100px; }

/* "By Plubu" fully white */
.byline, .byline strong { color: #fff; }
