/* voidpixelstudios — hub = a single-screen personalized launcher.
   No big hero: all games fit on one screen as a bento of themed "windows". Each tile adopts its
   OWN game palette (--ca accent / --cg glow / --tt accent-text) via kicker, hover glow, and play —
   bespoke per game, no templated top-lines. Warm, games-first, honest. */
body {
  --cream: #FBF4EC; --line: #EDE3D6;
  --bg: var(--cream); --text: #211913; --muted: #6B5A4E; --faint: #8A7768;
  background:
    radial-gradient(60% 50% at 10% 0%, rgba(255,178,116,.30), transparent 60%),
    radial-gradient(55% 50% at 100% 8%, rgba(255,146,166,.24), transparent 62%),
    radial-gradient(60% 55% at 92% 100%, rgba(255,206,120,.26), transparent 64%),
    radial-gradient(50% 50% at 0% 100%, rgba(170,146,255,.20), transparent 66%),
    var(--cream);
  color: var(--text); min-height: 100dvh; overflow-x: hidden;
}
.muted { color: var(--muted); }
.grad { background: linear-gradient(96deg, var(--warm), var(--pink) 52%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* premium grain */
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- one-screen shell ---- */
.hub { position: relative; z-index: 1; height: 100dvh; display: flex; flex-direction: column; padding: clamp(12px, 1.4vw, 20px) clamp(14px, 2.2vw, 34px) clamp(14px, 1.6vw, 22px); gap: clamp(10px, 1.2vw, 16px); }

/* compact header (replaces the hero) */
.hub-head { flex: none; display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.brand { flex: none; }
.wm { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--text); }
.wm-t b { color: var(--text); } .wm-t i { color: #5B45E6; font-style: normal; font-weight: 700; } .wm-t em { color: var(--muted); font-style: normal; font-weight: 500; margin-left: 2px; }
.hh-title { flex: 1 1 auto; min-width: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.9vw, 1.7rem); letter-spacing: -0.02em; }
.hh-sub { font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
@media (max-width: 900px) { .hh-sub { display: none; } }
.statbar { flex: none; display: inline-flex; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.66); backdrop-filter: blur(8px); overflow: hidden; box-shadow: 0 6px 20px rgba(40,30,20,.06); }
.statbar div { padding: 8px 15px; border-right: 1px solid var(--line); font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.statbar div:last-child { border-right: 0; } .statbar b { font-family: var(--font-display); color: var(--text); font-size: 15px; margin-right: 4px; }

/* ---- bento: all games fit one screen ---- */
.bento { flex: 1 1 auto; min-height: 0; display: grid; gap: clamp(10px, 1vw, 16px);
  grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile.honest { grid-column: span 2; }

/* themed game window */
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; overflow: hidden;
  border-radius: 18px; background: #0b0b12; text-decoration: none; color: #fff; isolation: isolate;
  box-shadow: 0 10px 26px rgba(30,20,12,.12); transition: transform .28s var(--spring), box-shadow .28s; }
.tile .media { position: absolute; inset: 0; z-index: 0; }
.media .poster, .media .loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media .loop { opacity: 0; transition: opacity .6s ease, transform .6s var(--ease); }
.media.playing .loop { opacity: 1; }
/* legibility scrim + a soft per-game glow in the top corner (personalization, not a top line) */
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(80% 62% at 100% 0%, color-mix(in srgb, var(--cg) 30%, transparent), transparent 58%),
    linear-gradient(180deg, rgba(4,3,8,.16) 0%, transparent 32%, rgba(6,4,12,.5) 66%, rgba(4,3,9,.9) 100%); }
/* per-game hover: lift + themed glow ring (no top bar) */
.tile:hover, .tile:focus-visible { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(20,14,8,.28), 0 0 0 1.5px color-mix(in srgb, var(--ca) 60%, transparent), 0 0 60px -14px var(--cg); }
.tile:hover .media .poster, .tile:hover .media .loop, .tile:focus-visible .media .poster, .tile:focus-visible .media .loop { transform: scale(1.05); }

.t-info { position: relative; z-index: 2; padding: clamp(12px, 1.3vw, 20px); }
.t-k { text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 700; margin: 0 0 5px;
  color: color-mix(in srgb, var(--cg) 70%, #fff); text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.tile h3 { font-size: clamp(1.05rem, 1.5vw, 1.35rem); text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.tile.big h3 { font-size: clamp(1.8rem, 2.8vw, 2.9rem); }
.t-h { margin: 6px 0 0; font-size: .88rem; line-height: 1.4; color: #EDE6DE; opacity: .92; text-shadow: 0 1px 10px rgba(0,0,0,.6);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile.big .t-h { font-size: clamp(1rem, 1.3vw, 1.18rem); -webkit-line-clamp: 3; max-width: 42ch; }
.t-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.t-tags span { font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.24); color: #fff; }

/* badges */
.t-badges { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 6px; }
.badge { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .01em; padding: 5px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.badge.early { background: #9A5407; color: #fff; }
.badge.live-note { background: rgba(0,0,0,.62); color: #fff; }

/* play affordance — themed per game */
.t-play { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; }
.t-play:not(.big) { top: 12px; right: 12px; width: 40px; height: 40px; justify-content: center; border-radius: 999px;
  background: color-mix(in srgb, var(--ca) 92%, #000); color: var(--tt); opacity: 0; transform: scale(.8); transition: opacity .22s, transform .22s var(--spring); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.t-play:not(.big) .p { width: 16px; height: 16px; margin-left: 2px; }
.tile:hover .t-play:not(.big), .tile:focus-visible .t-play:not(.big) { opacity: 1; transform: scale(1); }
.t-play.big { left: clamp(12px, 1.3vw, 20px); bottom: clamp(12px, 1.3vw, 20px); font-size: 1rem; padding: 12px 20px 12px 13px; border-radius: 999px;
  background: color-mix(in srgb, var(--ca) 94%, #000); color: var(--tt); box-shadow: 0 10px 30px color-mix(in srgb, var(--ca) 45%, transparent); transition: transform .2s var(--spring), box-shadow .2s; }
.tile.big { justify-content: flex-end; }
.tile.big .t-info { padding-bottom: calc(clamp(12px,1.3vw,20px) + 58px); }  /* clear the big play pill */
.t-play.big .tri { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px; background: color-mix(in srgb, var(--tt) 18%, transparent); }
.t-play.big .tri svg { width: 14px; height: 14px; }
.tile.big:hover .t-play.big { transform: translateY(-2px); }

/* honest tile — the single branded moment */
.tile.honest { justify-content: center; gap: 9px; padding: clamp(16px, 1.6vw, 24px); background: linear-gradient(150deg, var(--warm), var(--pink) 52%, var(--violet)); }
.tile.honest::before { background: radial-gradient(60% 60% at 88% 12%, rgba(61,216,230,.4), transparent 60%), radial-gradient(50% 50% at 8% 92%, rgba(255,146,168,.4), transparent 60%); }
.tile.honest .st { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 13px; opacity: .96; }
.tile.honest h3 { position: relative; z-index: 2; font-size: 1.2rem; text-shadow: none; }
.tile.honest p { position: relative; z-index: 2; margin: 0; font-size: .86rem; line-height: 1.5; color: rgba(255,255,255,.94); }
.tile.honest:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(232,93,155,.32); }

/* ---- responsive: one screen on desktop; graceful scroll on smaller ---- */
@media (min-width: 1001px) { .hub { overflow: hidden; } }
@media (max-width: 1000px) {
  .hub { height: auto; min-height: 100dvh; }
  .hub-head { flex-wrap: wrap; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: minmax(210px, 26vh); }
  .tile.big { grid-column: span 2; grid-row: span 2; grid-auto-rows: auto; }
  .tile.big .media { min-height: 300px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(190px, 40vh); }
  .tile.big, .tile.honest { grid-column: span 1; }
  .tile.big { grid-row: span 1; }
  .statbar { width: 100%; }
}
