/* Taro Games hub. Taro milk tea: pale lilac, plum ink, tapioca pearls. */

@font-face { font-family: "Young Serif"; font-weight: 400; font-display: swap; src: url(/fonts/young-serif-latin-400-normal.woff2) format("woff2"); }

:root {
  --bg: #F4F0FA;
  --card: #FFFFFF;
  --ink: #2B2140;
  --ink-soft: #5D5373;
  --taro: #9E82CC;
  --taro-deep: #6B4E9E;
  --taro-pale: #E6DCF5;
  --pearl: #3A2A26;
  --leaf: #7DB874;
  --leaf-dark: #5E9B5A;
  --line: #DDD3EC;
  --display: "Young Serif", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1524;
    --card: #251E33;
    --ink: #EEE8F7;
    --ink-soft: #B8ADCB;
    --taro-pale: #3A2F4F;
    --line: #3A3149;
    --pearl: #E9DCCF;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--taro-deep); outline-offset: 3px; }

/* ------------------------------------------------------------ masthead */
.masthead { text-align: center; padding: 56px 20px 36px; }
.taro { width: 76px; height: 76px; display: block; margin: 0 auto 6px; }
.taro .root { fill: var(--taro); }
.taro .rings { stroke: var(--taro-deep); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.taro .leaf { fill: var(--leaf); }
.taro .leaf-dark { fill: var(--leaf-dark); }
@media (prefers-reduced-motion: no-preference) {
  .taro { animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
  @keyframes bob { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
}
h1 {
  font-family: var(--display); font-weight: 400; margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.25rem); line-height: 1; letter-spacing: -0.01em;
}
.tagline { margin: 12px auto 0; color: var(--ink-soft); max-width: 36ch; }

/* ------------------------------------------------------------ games */
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px 48px; }
.shelf {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 310px)); justify-content: center; gap: 28px;
}
.game {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: var(--ink);
  background: var(--card); border-radius: 18px; padding: 12px 12px 18px;
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -22px rgba(43, 33, 64, .45);
}
a.game { transition: transform .18s ease, box-shadow .18s ease; }
a.game:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 1px 0 var(--line), 0 22px 36px -22px rgba(43, 33, 64, .55); }
@media (prefers-reduced-motion: reduce) { a.game, a.game:hover { transition: none; transform: none; } }
.art { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.art svg { width: 100%; height: 100%; display: block; }
.game-name { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; padding: 0 6px; }
.game-blurb { color: var(--ink-soft); padding: 4px 6px 0; font-size: 0.98rem; }
.game-status {
  align-self: flex-start; margin: 12px 6px 0; padding: 3px 10px; border-radius: 999px;
  background: var(--taro-pale); color: var(--ink); font-size: 0.85rem; font-weight: 600;
}
.game-status.solved { background: var(--leaf); color: #12210F; }

/* Nonet art: the game's own notebook look */
.art-nonet { background: #E8EDF2; padding: 6% 18%; }
.n-sheet { fill: #FFFFFF; }
.n-hl { fill: #BCD6FF; }
.n-grid { stroke: #B9C3CE; stroke-width: 2; }
.n-frame { fill: none; stroke: #1B2A4A; stroke-width: 6; }
.n-thermo { fill: #C9CED6; }
.n-thermo-line { fill: none; stroke: #C9CED6; stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.n-dot { fill: #1B2A4A; }
.n-digit { font: 500 58px var(--body); fill: #1B2A4A; text-anchor: middle; }
.n-note { font: 600 20px var(--body); fill: #1F4E9E; text-anchor: middle; }

/* Ring Escape and Snap art */
.art-rings { background: #0F0B1C; }
.art-snap { background: #FF4F7A; }
.art-gauge { background: #E8F3EE; }
.art-lop { background: #EEF1FF; }
.art-patch { background: #E9EEF5; }
.art-asm { background: #E7EAE3; }
.art-tally { background: #E6E9F0; }
.art-go { background: #D9E2DF; }
.art-saddle { background: #ECEEF6; }
.art-markup { background: #DCDDD6; }
.art-beads { background: #fbf4ea; }
.art-shadle { background: #121214; }
.art-shadle text { font: italic 600 19px Georgia, serif; fill: #f5f3ef; }
.art-pindle { background: radial-gradient(120% 90% at 50% 45%, #0d1a28, #060b12); }
.art-pindle text { font: 700 20px system-ui, sans-serif; fill: #f2f5f8; }
.art-chain { background: #E3EBEE; }
.art-contra { background-color: #D2B48A; background-image: radial-gradient(circle, rgba(60,40,20,.25) 1.6px, transparent 1.9px); background-size: 14px 14px; }
.art-contrarian { background: #ECECEC; }
.art-graft { background: #22192A; }
.art-stroke { background: #EFEFEA; }
.art-span { background: linear-gradient(#CFE3F2, #EAF2F8); }
.art-ice { background: radial-gradient(ellipse at 50% 0%, #1C4A70, #0D2238 70%); }
.art-going { background-color: #1d221c; background-image: linear-gradient(45deg,#0000 25%,#ffffff08 25% 50%,#0000 50% 75%,#ffffff08 75%); background-size: 6px 6px; }
.art-ice text { font: 700 24px var(--body); fill: #0D2238; }
.art-ice text.w { fill: #F1F7FB; }

.art-gates { background-color: #1D4736; background-image: radial-gradient(#2A5A45 1.2px, transparent 1.3px); background-size: 12px 12px; }
.art-burn { background: linear-gradient(#F6F2FF, #DCD3F2); }
.art-flux { background: #EEF2EA; background-image: linear-gradient(rgba(31,58,95,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(31,58,95,.08) 1px, transparent 1px); background-size: 14px 14px; }
.art-tally text { font: 700 19px ui-monospace, Menlo, Consolas, monospace; fill: #F4F5F7; }
.art-asm text { font: 800 17px var(--body); fill: #fff; }
.art-gauge text { font: 19px "Young Serif", Georgia, serif; fill: #132620; }
.art-snap text { font: 800 30px var(--body); fill: #fff; }

/* coming soon */
.soon { background: transparent; box-shadow: none; border: 2px dashed var(--line); }
.art-soon { background: var(--taro-pale); }
.art-soon circle { fill: var(--pearl); opacity: .85; }
.soon .game-name { color: var(--ink-soft); }

/* ------------------------------------------------------------ footer + pages */
.foot {
  display: flex; justify-content: center; gap: 22px; padding: 28px 20px 40px;
  color: var(--ink-soft); font-size: 0.9rem;
}
.page { max-width: 680px; margin: 0 auto; padding: 32px 20px 60px; }
.page .home { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-size: 1.3rem; }
.page .home svg { width: 34px; height: 34px; }
.page h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin: 28px 0 12px; }
.page h2 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin: 28px 0 6px; }
.page p, .page li { max-width: 66ch; }
.taro-sm { display: block; }

