/* Roam Online: the game's own look. Dark glass, cream text, the login kit's gold button,
   blossom pink accents, and the dark outline every piece of in-game text wears. */
:root {
  --page: #121615;
  --page2: #1a201e;
  --cream: #efe4cb;
  --muted: #a9ab98;
  --ink: #0e1312;
  --glass: rgba(22, 29, 27, 0.70);
  --gold1: #f7e2ad;
  --gold2: #d7ad63;
  --goldline: #e3c584;
  --bloss: #f1a3bb;
  --bloss2: #cf6f8f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--cream);
  font: 500 16px/1.55 Outfit, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2 { margin: 0; line-height: 1.1; font-weight: 900; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }

/* the outline Roam's name tags, POWER pill and chat already use */
.ol {
  text-shadow: -1px -1px 0 #12100e, 1px -1px 0 #12100e, -1px 1px 0 #12100e, 1px 1px 0 #12100e,
    0 2px 4px rgba(0, 0, 0, 0.55);
}

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(10, 14, 13, 0.55), transparent);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 800 19px Outfit; }
.brand img { width: 32px; height: 32px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
.lang {
  display: flex; overflow: hidden; border-radius: 7px;
  background: var(--glass); border: 1px solid rgba(255, 238, 205, 0.16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1.5px var(--ink);
}
.lang button {
  font: 800 12px Outfit; letter-spacing: 0.04em; padding: 7px 11px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold1), var(--gold2)); color: #3a2810; }
.lang button:focus-visible { outline: 2px solid var(--bloss); outline-offset: -2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  padding: 96px 16px 72px; text-align: center; isolation: isolate;
}
.hero .bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 48%, rgba(10, 14, 13, 0.45), transparent 75%),
    linear-gradient(to bottom, rgba(10, 14, 13, 0.25), rgba(10, 14, 13, 0.1) 40%, var(--page) 98%);
}
.hero-in { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 720px; }
.logo { width: 96px; height: 96px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)); animation: float 6s ease-in-out infinite; }
.hero h1 { font-size: clamp(48px, 11vw, 104px); }
.tag { font: 700 clamp(17px, 2.6vw, 22px)/1.4 Outfit; max-width: 34ch; }
.sub { font: 700 13px Outfit; color: var(--cream); opacity: 0.85; letter-spacing: 0.04em; }

/* the login kit's primary button */
.btn-dl {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 8px; padding: 0 28px; height: 58px; border-radius: 9px;
  font: 900 19px Outfit; color: #3a2810; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, var(--gold1), var(--gold2));
  border: 1px solid #f8e7bb;
  box-shadow: 0 3px 0 #8a6630, 0 0 0 1.5px var(--ink), 0 14px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn-dl:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-dl:active { transform: translateY(2px); box-shadow: 0 1px 0 #8a6630, 0 0 0 1.5px var(--ink), 0 8px 18px rgba(0, 0, 0, 0.4); }
.btn-dl:focus-visible { outline: 3px solid var(--bloss); outline-offset: 3px; }

/* ---------- skills ---------- */
.skills { padding: 56px 16px 72px; text-align: center; }
.skills h2 { font-size: clamp(28px, 5vw, 40px); }
.divider {
  width: 220px; height: 2px; margin: 16px auto 34px;
  background: linear-gradient(90deg, transparent, var(--goldline), transparent);
}
.skills ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: 980px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px;
}
.skills li {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 16px;
  border-radius: 9px; background: var(--page2);
  border: 1px solid rgba(255, 238, 205, 0.10); box-shadow: 0 0 0 1.5px var(--ink);
  font: 800 15px Outfit; transition: border-color 0.15s, transform 0.15s;
}
.skills li:hover { border-color: var(--bloss); transform: translateY(-2px); }
.skills li img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.55)); }

/* ---------- sail ---------- */
.sail {
  padding: 64px 16px 80px; text-align: center;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(47, 167, 184, 0.14), transparent 70%),
    var(--page2);
  border-top: 1px solid rgba(255, 238, 205, 0.08);
}
.sail-in { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sail h2 { font-size: clamp(32px, 6vw, 52px); }
.sail p { font: 700 clamp(17px, 2.4vw, 21px)/1.4 Outfit; max-width: 36ch; color: var(--cream); }

/* ---------- footer ---------- */
footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 26px 16px 34px; color: var(--muted); font: 600 14px Outfit;
  border-top: 1px solid rgba(255, 238, 205, 0.08);
}
footer img { width: 24px; height: 24px; opacity: 0.9; }

@keyframes float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .logo { animation: none; }
  .btn-dl, .skills li { transition: none; }
}
@media (max-width: 520px) {
  .btn-dl { height: 54px; font-size: 17px; padding: 0 22px; }
  .skills ul { grid-template-columns: repeat(2, 1fr); }
}
