/* Home page (2026-11 redesign): pictures of the games first, rounded tiles with a hard shadow, sticker badges, Yuzu's yellow as the
 * brand colour. Only index.html loads this file; the other pages still use site.css. Dialogs come from shared/platform.css. */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/fonts/rubik-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/fonts/rubik-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --h-bg: #12131f;
  --h-bg2: #191b2b;
  --h-card: #20233a;
  --h-card2: #2a2e4a;
  --h-ink: #090a12;
  --h-text: #f6f3ea;
  --h-muted: #a3a8c3;
  --h-yuzu: #ffcf3f;
  --h-yuzu-ink: #2b1e00;
  --h-yuzu-deep: #b98a09;
  --h-cyan: #3fd9f0;
  --h-coral: #ff6b7a;
  --h-mint: #4fe09a;
  --h-r: 18px;
  --h-font: 'Rubik', system-ui, 'Segoe UI', sans-serif;
}
[hidden] {
  display: none !important;
}
html {
  background: var(--h-bg);
}
body.home {
  margin: 0;
  min-height: 100%;
  font: 500 15px/1.45 var(--h-font);
  color: var(--h-text);
  background: radial-gradient(900px 500px at 85% -10%, rgba(255, 207, 63, 0.1), transparent 60%), radial-gradient(700px 500px at 0% 30%, rgba(63, 217, 240, 0.07), transparent 60%), var(--h-bg);
}
.home h1,
.home h2,
.home h3,
.home p {
  margin: 0;
}
.home a {
  color: inherit;
  text-decoration: none;
}
.home :focus-visible {
  outline: 3px solid var(--h-cyan);
  outline-offset: 2px;
}
.h-app {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 100vh;
}

/* ---- rail ---- */
.h-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--h-bg2);
  overflow-y: auto;
}
.h-logo {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 16px;
  background: var(--h-yuzu);
  color: var(--h-yuzu-ink) !important;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.02em;
  box-shadow: 0 5px 0 var(--h-yuzu-deep);
  transform: rotate(-4deg);
  margin-bottom: 14px;
}
.h-rail .h-nav {
  width: 72px;
  padding: 9px 2px 7px;
  border: 0;
  border-radius: 14px;
  display: grid;
  justify-items: center;
  gap: 4px;
  font: 600 11px/1.2 var(--h-font);
  text-align: center;
  color: var(--h-muted);
  background: none;
  cursor: pointer;
}
.h-nav svg {
  width: 22px;
  height: 22px;
}
.h-nav.on {
  background: var(--h-card2);
  color: var(--h-text);
}
.h-nav.on svg {
  color: var(--h-yuzu);
}
.h-nav:hover {
  color: var(--h-text);
}
.h-sp {
  flex: 1;
}

/* ---- top bar ---- */
.h-main {
  padding: 18px 28px 60px;
  max-width: 1380px;
  width: 100%;
}
.h-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.h-bar .h-logo {
  display: none;
  margin: 0;
}
.h-grow {
  flex: 1;
}
.h-bar select,
.h-pill {
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--h-card);
  color: var(--h-text);
  font: 700 14px var(--h-font);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.h-pill.y {
  background: var(--h-yuzu);
  color: var(--h-yuzu-ink);
  box-shadow: 0 4px 0 var(--h-yuzu-deep);
}
.h-pill i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.h-pill svg {
  width: 18px;
  height: 18px;
}
.h-pill.ico {
  width: 44px;
  padding: 0;
  justify-content: center;
}

/* ---- tiles ---- */
.h-tile {
  position: relative;
  display: block;
  border-radius: var(--h-r);
  overflow: hidden;
  background: hsl(var(--h, 240) 30% 18%);
  box-shadow: 0 6px 0 var(--h-ink);
  transition: transform 0.12s, box-shadow 0.12s;
  isolation: isolate;
}
.h-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 var(--h-ink);
}
.h-tile:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--h-ink);
}
.h-tile .art,
.h-thumb .art {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.art svg,
.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.h-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 10, 18, 0.88));
}
.h-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
}
.h-tile h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.h-meta {
  margin-top: 3px;
  font-size: 12.5px;
  color: #d5d8ea;
  display: flex;
  gap: 4px 10px;
  align-items: center;
  flex-wrap: wrap;
}
.h-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--h-mint);
  font-weight: 700;
}
.h-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--h-mint);
  box-shadow: 0 0 0 3px rgba(79, 224, 154, 0.25);
}
.h-stick {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 900;
  transform: rotate(-4deg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
  background: var(--h-yuzu);
  color: var(--h-yuzu-ink);
}
.h-stick.new {
  background: var(--h-coral);
  color: #36060c;
}
.h-stick.coop {
  background: var(--h-cyan);
  color: #04303a;
}
.h-stick.lock {
  left: auto;
  right: 12px;
  transform: rotate(3deg);
  background: var(--h-text);
  color: #1d1a26;
}
.h-go {
  position: absolute;
  right: 12px;
  bottom: 12px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--h-yuzu);
  color: var(--h-yuzu-ink);
  font-weight: 800;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 0 var(--h-yuzu-deep);
  opacity: 0;
  transform: translateY(6px);
  transition: 0.12s;
}
.h-tile:hover .h-go,
.h-tile:focus-visible .h-go {
  opacity: 1;
  transform: none;
}
.h-tile:hover .h-cap {
  right: 110px;
}

/* ---- hero + Yuzu ---- */
.h-top {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  gap: 20px;
  margin-bottom: 34px;
}
.h-hero {
  min-height: 400px;
}
.h-hero::after {
  background: linear-gradient(90deg, rgba(9, 10, 18, 0.9) 0%, rgba(9, 10, 18, 0.55) 38%, transparent 68%), linear-gradient(180deg, transparent 60%, rgba(9, 10, 18, 0.7));
}
.h-hero .h-cap {
  left: 30px;
  bottom: 28px;
  right: auto;
  max-width: 440px;
}
.h-hero:hover .h-cap {
  right: auto;
}
.h-hero h1 {
  font-size: 50px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.h-hero p {
  margin: 12px 0 20px;
  font-size: 16.5px;
  color: #dfe2f1;
}
.h-hero .h-stick {
  top: 22px;
  left: 26px;
  font-size: 13px;
}
.h-btn {
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 15px;
  font: 800 16px var(--h-font);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--h-yuzu);
  color: var(--h-yuzu-ink);
  box-shadow: 0 5px 0 var(--h-yuzu-deep);
  cursor: pointer;
}
.h-btn svg {
  width: 16px;
  height: 16px;
}
.h-btn.s {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--h-yuzu-deep);
}
.h-facts {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  color: #cfd3e8;
}

.h-yz {
  position: relative;
  border-radius: var(--h-r);
  background: linear-gradient(160deg, #2b2f52, #20233a 60%);
  box-shadow: 0 6px 0 var(--h-ink);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.h-who {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  min-height: 120px;
}
.h-face {
  position: relative;
  width: 116px;
  height: 116px;
  flex: none;
  border-radius: 30px;
  background: var(--h-yuzu);
  overflow: hidden;
  box-shadow: 0 5px 0 var(--h-yuzu-deep);
  transform: rotate(-3deg);
}
.h-face svg {
  width: 100%;
  height: 100%;
  display: block;
}
.h-face button {
  position: absolute;
  inset: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 30px;
}
.h-say {
  position: relative;
  flex: 1;
  background: var(--h-text);
  color: #1d1a26;
  border-radius: 16px 16px 16px 4px;
  padding: 11px 14px;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  min-height: 44px;
  opacity: 0;
  transform: translateY(4px);
  transition: 0.15s;
}
.h-say.on {
  opacity: 1;
  transform: none;
}
.h-say .tag,
.h-say .rest {
  display: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.h-bond {
  background: rgba(9, 10, 18, 0.45);
  border-radius: 14px;
  padding: 13px 14px;
}
.h-bond .t {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}
.h-bond .t span:last-child {
  color: var(--h-yuzu);
}
.h-pbar {
  height: 10px;
  border-radius: 99px;
  background: var(--h-ink);
  margin: 9px 0 0;
  overflow: hidden;
}
.h-pbar i {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--h-yuzu), #ff9d3f);
  transition: width 0.3s;
}
.h-looks {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}
.h-look {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--a, #3a3f63), var(--b, #2a2e4a));
  color: var(--h-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--h-ink);
}
.h-look svg {
  width: 16px;
  height: 16px;
}
.h-look[aria-pressed='true'] {
  outline: 3px solid var(--h-yuzu);
  outline-offset: 1px;
}
.h-look.locked {
  background: var(--h-ink);
}

/* Yuzu's drawing (same rules as companion.css, which this page does not load) */
.yuzu {
  --hoodie: #f2f5ff;
  --hoodie-shade: #c3cdee;
  --trim: #22c7e6;
  --skin: #ffe4d2;
  --skin-shade: #f4bfa6;
  --ink: #2b2030;
}
[data-outfit='cyan'] .yuzu {
  --hoodie: #26c3e0;
  --hoodie-shade: #168faa;
  --trim: #fff3d6;
}
[data-outfit='coral'] .yuzu {
  --hoodie: #ff6f7d;
  --hoodie-shade: #d64a5c;
  --trim: #fff3d6;
}
[data-outfit='ink'] .yuzu {
  --hoodie: #2a3366;
  --hoodie-shade: #1a2148;
  --trim: #e8e8e6;
}
.yuzu .c-hoodie { fill: var(--hoodie); }
.yuzu .c-hoodie-shade { fill: var(--hoodie-shade); }
.yuzu .c-trim { fill: var(--trim); }
.yuzu .c-skin { fill: var(--skin); }
.yuzu .c-skin-shade { fill: var(--skin-shade); }
.yuzu .s-hoodie { stroke: var(--hoodie); }
.yuzu .s-hoodie-shade { stroke: var(--hoodie-shade); }
.yuzu .s-trim { stroke: var(--trim); }
.yuzu .c-string { stroke: var(--hoodie-shade); stroke-width: 4; fill: none; stroke-linecap: round; }
.yuzu .c-trim-line { stroke: var(--trim); stroke-width: 5; fill: none; stroke-linecap: round; }
.yuzu .ol { stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }
.yuzu .ol-thin { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.yuzu .ol-line { stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.yuzu .strand { stroke: #c98414; stroke-width: 3; fill: none; stroke-linecap: round; }
.yuzu .eye-happy,
.yuzu .mouth-open,
.yuzu .mouth-o,
.yuzu .acc { display: none; }
.yuzu[data-ears] .acc-ears { display: inline; }
.yuzu[data-mood='happy'] .eye-open,
.yuzu[data-mood='shy'] .eye-open { display: none; }
.yuzu[data-mood='happy'] .eye-happy,
.yuzu[data-mood='shy'] .eye-happy { display: inline; }
.yuzu[data-mood='happy'] .mouth-smile { display: none; }
.yuzu[data-mood='happy'] .mouth-open { display: inline; }
.yuzu[data-mood='surprised'] .mouth-smile { display: none; }
.yuzu[data-mood='surprised'] .mouth-o { display: inline; }

/* ---- sections ---- */
.h-sec {
  margin-bottom: 36px;
}
.h-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.h-head h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.h-cats {
  display: none;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.h-cats button {
  flex: none;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 99px;
  background: var(--h-card);
  color: var(--h-muted);
  font: 700 13px var(--h-font);
}
.h-cats button.on {
  background: var(--h-text);
  color: #1d1a26;
}
.h-row3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.h-row3 .h-tile {
  aspect-ratio: 16 / 10;
}
.h-mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: 16px;
}
.h-mosaic .h-tile {
  grid-column: span 2;
}
.h-mosaic .big {
  grid-column: span 3;
  grid-row: span 2;
}
.h-mosaic .big h3 {
  font-size: 26px;
}
.h-soon {
  background: repeating-linear-gradient(135deg, var(--h-card) 0 14px, #252844 14px 28px);
  box-shadow: none;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--h-text);
  font-weight: 800;
  font-size: 16px;
}
.h-soon::after {
  display: none;
}
.h-soon:hover {
  transform: none;
  box-shadow: none;
}
.h-panel {
  border-radius: var(--h-r);
  background: var(--h-card);
  padding: 6px 18px;
}
.h-again {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}
.h-again + .h-again {
  border-top: 2px solid var(--h-bg2);
}
.h-thumb {
  position: relative;
  width: 72px;
  height: 50px;
  border-radius: 11px;
  overflow: hidden;
  isolation: isolate;
}
.h-thumb .art {
  z-index: 0;
}
.h-again b {
  font-weight: 700;
}
.h-again small {
  display: block;
  color: var(--h-muted);
  font-size: 13px;
}
.h-err {
  color: var(--h-coral);
}
.h-foot {
  margin-top: 30px;
  color: var(--h-muted);
  font-size: 13px;
  max-width: 720px;
}
.h-tabbar {
  display: none;
}

@media (max-width: 900px) {
  .h-app {
    grid-template-columns: 1fr;
  }
  .h-rail {
    display: none;
  }
  .h-main {
    padding: 14px 16px 100px;
  }
  .h-bar .h-logo {
    display: grid;
    width: 46px;
    height: 46px;
    font-size: 13px;
  }
  .h-bar select {
    max-width: 120px;
  }
  .h-top {
    grid-template-columns: 1fr;
  }
  .h-hero {
    min-height: 340px;
  }
  .h-hero h1 {
    font-size: 36px;
  }
  .h-hero .h-cap {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
  .h-hero::after {
    background: linear-gradient(180deg, transparent 20%, rgba(9, 10, 18, 0.92) 75%);
  }
  .h-cats {
    display: flex;
    width: 100%;
  }
  .h-row3 {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px 10px;
    scrollbar-width: none;
  }
  .h-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 130px;
    gap: 12px;
  }
  .h-mosaic .h-tile {
    grid-column: span 1;
  }
  .h-mosaic .big {
    grid-column: span 2;
    grid-row: span 2;
  }
  .h-go {
    display: none;
  }
  .h-tile:hover .h-cap {
    right: 14px;
  }
  .h-tile h3 {
    font-size: 16px;
  }
  .h-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 62px;
    border-radius: 20px;
    background: var(--h-card2);
    box-shadow: 0 6px 0 var(--h-ink);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    z-index: 5;
  }
  .h-tabbar .h-nav {
    border: 0;
    background: none;
    display: grid;
    justify-items: center;
    gap: 3px;
    font: 600 11px var(--h-font);
    color: var(--h-muted);
  }
  .h-tabbar .h-nav.on {
    color: var(--h-yuzu);
    background: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .h-tile,
  .h-go,
  .h-say,
  .h-pbar i {
    transition: none;
  }
}

/* phones: nothing may push the page wider than the screen */
.h-main,
.h-top > *,
.h-sec {
  min-width: 0;
}
@media (max-width: 900px) {
  .h-app {
    overflow-x: clip;
  }
  .h-bar {
    gap: 6px;
  }
  .h-bar select,
  .h-pill {
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
  .h-bar select {
    max-width: 104px;
  }
  .h-who {
    min-height: 0;
  }
}
