:root {
  color-scheme: dark;
  --bg: #000;
  --paper: #090909;
  --paper-2: #111;
  --ink: #e9e1d2;
  --muted: #a99a84;
  --gold: #e2bd55;
  --line: rgba(226, 189, 85, 0.28);
  --max: 940px;
  --radius: 12px;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", ui-serif, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 14px; line-height: 1.55; overflow-x: hidden; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff1b4; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, li, a, span { overflow-wrap: break-word; }
.itch-shell { width: min(var(--max), calc(100% - 24px)); margin: 0 auto; padding: 18px 0 30px; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.brand img { width: 26px; height: 26px; }
.nav { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.banner { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #050505; }
.banner img { width: 100%; aspect-ratio: 3.35 / 1; object-fit: cover; object-position: center; }
.profile-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 13px; }
.profile-row strong { color: var(--ink); }
h1, h2, h3 { margin: 0; min-width: 0; }
h1, h2 { font-family: var(--display); letter-spacing: 0.035em; text-transform: uppercase; }
h1 { margin-top: 10px; font-size: clamp(2rem, 6vw, 4rem); line-height: 0.98; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 4vw, 2.5rem); line-height: 1; }
h3 { color: var(--gold); font-size: 1rem; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.05em; }
.intro { max-width: 68ch; color: var(--muted); margin: 10px 0 22px; font-size: 15px; }
.itch-section { margin-top: 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-head p { margin: 0; color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #050505; }
.card-body { min-width: 0; flex: 1; padding: 12px; display: flex; flex-direction: column; }
.card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.badge { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; color: var(--gold); padding: 4px 7px; font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.card p { color: var(--muted); margin: 8px 0 10px; }
.card a.more { margin-top: auto; font-weight: 900; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; }
.project-main { margin-top: 18px; }
.back { display: inline-block; margin: 10px 0 12px; color: var(--muted); font-weight: 900; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 12px; }
.project-layout > img, .project-copy, .notes { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.project-layout > img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.project-copy { min-width: 0; padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.project-copy .kicker { margin: 0 0 8px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.project-copy p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.button.primary { color: #130c06; background: var(--gold); border-color: var(--gold); }
.notes { margin-top: 12px; padding: 16px; }
.notes ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.notes li { min-width: 0; color: var(--muted); border: 1px solid rgba(226,189,85,0.18); background: var(--paper-2); border-radius: 10px; padding: 10px; }
.social-block { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); overflow: visible; }
.social-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.social-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.social-viewport { overflow: visible; padding: 2px 0 4px; }
.social-rail {
  --social-size: 38px;
  --social-open: 176px;
  --social-gap: 7px;
  display: grid;
  grid-template-columns: repeat(10, var(--social-size));
  justify-content: center;
  align-items: center;
  gap: var(--social-gap);
  width: 100%;
  min-width: 0;
  overflow: visible;
}
.social-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: var(--social-size);
  height: var(--social-size);
  min-width: 0;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0d0d;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  transition: width 180ms ease, transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.social-pill:hover,
.social-pill:focus-visible {
  z-index: 10;
  width: var(--social-open);
  transform: translateY(-1px);
  border-color: var(--gold);
  background: #14110b;
  box-shadow: 0 16px 32px rgba(0,0,0,0.42);
  outline: none;
}
.social-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; color: var(--gold); }
.social-svg { width: 19px; height: 19px; display: block; }
.social-copy { display: grid; gap: 0; min-width: max-content; margin-left: 9px; opacity: 0; transform: translateX(-4px); transition: opacity 150ms ease, transform 150ms ease; pointer-events: none; }
.social-pill:hover .social-copy,
.social-pill:focus-visible .social-copy { opacity: 1; transform: translateX(0); }
.social-copy b { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); line-height: 1.15; }
.social-copy em { color: var(--muted); font-style: normal; font-size: 12px; line-height: 1.15; }
.itch-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #827461; font-size: 12px; padding: 12px 0 0; }
.itch-footer p { margin: 0; }
@media (max-width: 720px) {
  .topline { align-items: flex-start; flex-direction: column; }
  .game-grid, .project-layout, .notes ul { grid-template-columns: 1fr; }
  .project-layout > img { min-height: 260px; aspect-ratio: 16 / 10; }
  .section-head, .social-heading { display: block; }
  .section-head p, .social-heading p { margin-top: 6px; }
  .itch-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .social-rail { --social-size: clamp(22px, 8vw, 28px); --social-gap: clamp(2px, 1vw, 4px); grid-template-columns: repeat(10, var(--social-size)); }
  .social-pill { height: var(--social-size); padding: 0 5px; border-radius: 8px; }
  .social-icon { width: calc(var(--social-size) - 10px); height: calc(var(--social-size) - 10px); flex-basis: calc(var(--social-size) - 10px); }
  .social-svg { width: calc(var(--social-size) - 12px); height: calc(var(--social-size) - 12px); }
  .social-pill:hover, .social-pill:focus-visible { width: var(--social-size); transform: translateY(-1px); overflow: visible; }
  .social-copy { position: absolute; left: 50%; bottom: calc(100% + 7px); margin-left: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: #101010; box-shadow: 0 14px 30px rgba(0,0,0,0.48); transform: translate(-50%, 4px); }
  .social-pill:hover .social-copy, .social-pill:focus-visible .social-copy { transform: translate(-50%, 0); }
}
