/* ============================================================
   THE LOOK
   Page-wide colors are the variables right below.
   Each module tile has its own artwork further down —
   search for ".art-" to find them.
   ============================================================ */

:root {
  --bg: #000000;
  --tile: #1c1c1e;
  --tile-2: #2c2c2e;
  --ink: #f5f5f7;
  --ink-soft: #a1a1a6;
  --ink-faint: #6e6e73;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #2997ff;
  /* the colorful word in your headline */
  --gradient: linear-gradient(96deg, #2997ff 0%, #a26bff 50%, #ff5c8a 100%);

  --radius: 28px;
  --gap: 14px;
  --pad: 24px;
  --row: clamp(180px, 19vw, 236px);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(41, 151, 255, 0.35);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- dashboard grid ---------- */

.dash {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px var(--pad) 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(var(--row), auto);
  grid-template-areas:
    "intro intro blog  projects"
    "bang  bang  blog  projects"
    "bang  bang  links links"
    "poker poker poker poker";
  gap: var(--gap);
}

.t-intro    { grid-area: intro; }
.t-blog     { grid-area: blog; }
.t-projects { grid-area: projects; }
.t-bang     { grid-area: bang; }
.t-links    { grid-area: links; }
.t-poker    { grid-area: poker; }

/* ---------- tiles ---------- */

.tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  padding: 24px 26px;
  background: var(--tile);
  color: #fff;
  transition: transform 0.5s var(--ease), filter 0.3s;
}

@media (hover: hover) {
  a.tile:hover {
    transform: scale(1.012);
    filter: brightness(1.08);
  }
  a.tile:hover .tile-plus {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
  }
}

a.tile:active {
  transform: scale(0.985);
  transition-duration: 0.15s;
}

.tile-text {
  position: relative;
  z-index: 2;
  max-width: 80%;
}

.tile-text h2 {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.tile-text p {
  margin-top: 3px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

/* the round (+) in the corner — Apple's "tap to expand" hint */
.tile-plus {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.3s, transform 0.5s var(--ease);
}

.tile-plus::before,
.tile-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.tile-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* ---------- intro tile ---------- */

.t-intro {
  display: flex;
  flex-direction: column;
  padding: 26px 30px;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(41, 151, 255, 0.14), transparent 60%),
    var(--tile);
}

.hello {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.t-intro h1 {
  margin-top: 6px;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.034em;
}

.grad {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin-top: 10px;
  max-width: 34em;
  font-size: 15px;
  color: var(--ink-soft);
}

.now {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.now i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

/* ============================================================
   MODULE ARTWORK — used by both the tile and the page it opens
   ============================================================ */

/* ---- Blog: indigo with a violet glow ---- */
.art-blog {
  background:
    radial-gradient(100% 55% at 50% 0%, rgba(191, 90, 242, 0.55), transparent 70%),
    linear-gradient(175deg, #3a2d96 0%, #231a5c 50%, #0f0b26 100%);
}

.notes {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 8px;
}

.note {
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.note:nth-child(2) { opacity: 0.72; }
.note:nth-child(3) { opacity: 0.45; }

.note span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.note b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.3;
  font-weight: 600;
}

/* ---- Projects: deep teal with a green glow ---- */
.art-projects {
  background:
    radial-gradient(90% 55% at var(--glow-x, 50%) 100%, rgba(48, 209, 88, 0.38), transparent 70%),
    linear-gradient(175deg, #0f4040 0%, #0b2d2e 50%, #061819 100%);
}

.icons {
  --icon: 72px;
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 50%;
  translate: 0 -38%;
  display: grid;
  grid-template-columns: repeat(2, var(--icon));
  justify-content: center;
  gap: 18px 26px;
}

.app {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.app-icon {
  display: grid;
  place-items: center;
  width: var(--icon, 72px);
  height: var(--icon, 72px);
  border-radius: 23%;
  font-size: calc(var(--icon, 72px) * 0.5);
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.app-name {
  max-width: calc(var(--icon) + 14px);
  overflow: hidden;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---- Bang! Online: desert sunset ---- */
.art-bang {
  background:
    radial-gradient(55% 45% at var(--glow-x, 50%) 100%, rgba(255, 196, 92, 0.85), rgba(255, 120, 40, 0.35) 55%, transparent 75%),
    linear-gradient(180deg, #1e0b1a 0%, #4a1230 38%, #9a2a2a 72%, #e0621c 100%);
}

.cards {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  width: 34%;
  min-width: 96px;
  max-width: 190px;
  aspect-ratio: 5 / 7;
  translate: -50% 26%;
  container-type: inline-size;
}

.card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 9cqw;
  background: linear-gradient(160deg, #fdf8ec, #eadcbf);
  box-shadow: 0 1.5cqw 6cqw rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  color: #3b2412;
  transform-origin: 50% 120%;
  transition: transform 0.6s var(--ease);
}

.card .rank {
  position: absolute;
  top: 7cqw;
  left: 9cqw;
  font-size: 12cqw;
  font-weight: 700;
  line-height: 1;
}

.card .red {
  font-style: normal;
  color: #c8102e;
}

.card b {
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
}

.c1 { transform: rotate(-18deg); }
.c1 b { font-size: 15cqw; }
.c2 { z-index: 2; transform: translateY(-5%); }
.c2 b { font-size: 21cqw; color: #c8102e; transform: rotate(-8deg); }
.c3 { transform: rotate(18deg); }
.c3 svg { width: 48%; translate: 26% -10%; }

@media (hover: hover) {
  a.tile:hover .c1 { transform: rotate(-24deg) translateY(-3%); }
  a.tile:hover .c3 { transform: rotate(24deg) translateY(-3%); }
}

/* ---- Socials & Links: graphite with a blue glow ---- */
.art-links {
  background:
    radial-gradient(60% 100% at 100% 100%, rgba(10, 132, 255, 0.5), transparent 70%),
    linear-gradient(160deg, #26262a 0%, #161618 100%);
}

.art-links::after {
  content: "@";
  position: absolute;
  z-index: 0;
  right: -0.04em;
  bottom: -0.3em;
  font-size: 240px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.chips {
  position: absolute;
  z-index: 1;
  left: 26px;
  right: 26px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 7px 14px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ---------- footer ---------- */

.site-foot {
  padding: 32px 0 8px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ============================================================
   MODULE PAGES
   ============================================================ */

.module {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--pad) var(--pad) 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(240px, 28vw, 330px);
  padding: 32px 36px;
  border-radius: var(--radius);
  color: #fff;
  view-transition-name: hero;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 62%;
}

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.hero h1 {
  margin-top: 4px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero.art-bang,
.hero.art-projects {
  --glow-x: 84%;
}

.hero .cards {
  left: auto;
  right: 10%;
  width: 15%;
  translate: 0 30%;
}

.hero .icons {
  left: auto;
  right: 12%;
  translate: 0 -50%;
}

/* the round × that closes a module */
.close {
  position: fixed;
  z-index: 20;
  top: calc(var(--pad) + 14px);
  right: max(calc(var(--pad) + 14px), calc((100vw - 1120px) / 2 + var(--pad) + 14px));
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 30, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  view-transition-name: close;
  transition: background 0.2s, transform 0.3s var(--ease);
}

.close:hover {
  background: rgba(60, 60, 64, 0.75);
  transform: scale(1.06);
}

.body {
  max-width: 760px;
  margin: 48px auto 0;
}

.body.wide {
  max-width: none;
}

.lead {
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.lead.soft {
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- projects page ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--gap);
}

.project {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background: var(--tile);
}

.project .app-icon {
  --icon: 60px;
  flex: none;
}

.project-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.project h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.status {
  padding: 3px 9px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.status.live { background: rgba(48, 209, 88, 0.16); color: #30d158; }
.status.wip  { background: rgba(255, 159, 10, 0.16); color: #ff9f0a; }

.project p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.project-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.project-links a:hover {
  text-decoration: underline;
}

/* ---------- Bang! page ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
  margin-top: 32px;
}

.feature {
  padding: 22px;
  border-radius: 22px;
  background: var(--tile);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #ff9f0a;
}

.play {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 26px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
}

a.play:hover {
  filter: brightness(1.1);
}

.play.off {
  background: var(--tile-2);
  color: var(--ink-soft);
  cursor: default;
}

/* ---------- blog list ---------- */

.post-list {
  display: grid;
  gap: var(--gap);
}

.post-card {
  display: block;
  padding: 26px 28px;
  border-radius: 22px;
  background: var(--tile);
  transition: background 0.3s;
}

.post-card:hover {
  background: var(--tile-2);
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.tag {
  padding: 2px 9px;
  border-radius: 980px;
  background: rgba(191, 90, 242, 0.18);
  font-size: 12px;
  font-weight: 600;
  color: #d4a5ff;
}

.post-card h3 {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.post-card p {
  margin-top: 6px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.more {
  display: inline-block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.post-card:hover .more {
  text-decoration: underline;
}

/* ---------- single post ---------- */

.post {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 40px;
}

.back {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.back:hover {
  text-decoration: underline;
}

.post-head {
  margin: 24px 0 36px;
}

.post-head h1 {
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.prose {
  font-size: 17px;
  line-height: 1.65;
}

.prose p { margin-bottom: 1.3em; }

.prose h2,
.prose h3,
.prose h4 {
  margin: 1.9em 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }

.prose ul,
.prose ol { margin: 0 0 1.3em 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--ink-soft); }

.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

.prose blockquote {
  margin: 0 0 1.3em;
  padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 4px solid var(--tile-2);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose code {
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: var(--tile-2);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.prose pre {
  margin: 0 0 1.3em;
  padding: 1.3rem 1.5rem;
  overflow-x: auto;
  border-radius: 18px;
  background: var(--tile);
}

.prose pre code {
  padding: 0;
  background: none;
  font-size: 0.84rem;
  line-height: 1.6;
}

.prose img {
  max-width: 100%;
  margin: 0.5em 0;
  border-radius: 18px;
}

.prose hr {
  margin: 2.4em 0;
  border: none;
  border-top: 1px solid var(--line);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.post-nav-link {
  display: block;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: var(--tile);
  transition: background 0.3s;
}

.post-nav-link:hover { background: var(--tile-2); }
.post-nav-link span { font-size: 13px; color: var(--ink-soft); }

.post-nav-link strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.post-nav-link.next { text-align: right; }

/* ---------- links page (Settings-style list) ---------- */

.group {
  margin-top: 32px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--tile);
}

.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  transition: background 0.2s;
}

.row + .row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 0;
  height: 1px;
  background: var(--line);
}

.row:hover { background: var(--tile-2); }
.row-label { flex: 1; font-weight: 500; }
.row-detail { font-size: 15px; color: var(--ink-soft); }
.chev { flex: none; color: var(--ink-faint); }

/* ============================================================
   POKER NIGHT
   ============================================================ */

/* ---- tile & banner art: green felt with a few chips ---- */
.art-poker {
  --up: #30d158;
  background:
    radial-gradient(70% 120% at 80% 20%, rgba(255, 255, 255, 0.1), transparent 60%),
    radial-gradient(120% 140% at 70% 50%, #1f8a52 0%, #0f5a33 55%, #083a21 100%);
}

.pk-chips {
  position: absolute;
  z-index: 1;
  right: 6%;
  top: 50%;
  width: min(26%, 210px);
  aspect-ratio: 1.5;
  translate: 0 -50%;
  pointer-events: none;
}

.pk-chip {
  position: absolute;
  width: 58%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.6s var(--ease);
}

.pk-chip.k1 { left: 0; top: 18%; transform: rotate(-14deg); }
.pk-chip.k2 { left: 22%; top: 0; transform: rotate(8deg); }
.pk-chip.k3 { right: 0; top: 30%; transform: rotate(24deg); }

@media (hover: hover) {
  a.tile:hover .pk-chip.k1 { transform: rotate(-30deg) translate(-6%, 4%); }
  a.tile:hover .pk-chip.k2 { transform: rotate(26deg) translateY(-8%); }
  a.tile:hover .pk-chip.k3 { transform: rotate(44deg) translate(6%, 4%); }
}

.pk-tile-board {
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 60%;
}

.pk-mini {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.pk-mini em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }

.hero .pk-chips { right: 8%; width: min(30%, 300px); }

/* ---- colors for money ---- */
.up { color: #30d158; }
.down { color: #ff453a; }
.soft { color: var(--ink-soft); }

.body.poker { max-width: 900px; }

/* ---- buttons ---- */
.pk-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 980px;
  background: var(--tile-2);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.pk-btn:hover { filter: brightness(1.15); }
.pk-btn:disabled { opacity: 0.6; cursor: default; }
.pk-btn.primary { background: var(--accent); color: #fff; }
.pk-btn.danger { color: #ff453a; }

.pk-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.pk-link:hover { text-decoration: underline; }

/* ---- a session ---- */
.pk-sessions {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* wide tables scroll instead of stretching the page */
  gap: var(--gap);
  margin-top: 24px;
}

.pk-sessions:first-child { margin-top: 0; }

.pk-session {
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--tile);
}

.pk-session summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}

.pk-session summary::-webkit-details-marker { display: none; }

.pk-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.pk-session h2 {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.pk-pot {
  flex: none;
  padding: 4px 11px;
  border-radius: 980px;
  background: rgba(48, 209, 88, 0.16);
  color: #30d158;
  font-size: 13px;
  font-weight: 600;
}

.pk-session h3 {
  margin: 24px 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.pk-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.pk-stats div {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--tile-2);
}

.pk-stats span {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
}

.pk-stats b {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---- tables ---- */
.pk-table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.pk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pk-table th,
.pk-table td {
  padding: 10px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.pk-table th:first-child,
.pk-table td:first-child,
.pk-table tbody th { text-align: left; }

.pk-table thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.pk-table tbody th { font-weight: 600; }
.pk-table tbody tr:last-child > * { border-bottom: none; }
.pk-table .net { font-weight: 700; }

.pk-check {
  margin-top: 12px;
  font-size: 14px;
}

.pk-check.ok, .pk-check .ok { color: var(--ink-soft); }
.pk-check.warn, .pk-check .warn { color: #ff9f0a; }

.pk-settle {
  display: grid;
  gap: 8px;
  list-style: none;
}

.pk-settle li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--tile-2);
}

.pk-settle .pk-arrow { color: var(--ink-soft); font-size: 14px; }
.pk-settle em { margin-left: auto; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }

.pk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ---- leaderboard ---- */
.pk-board {
  margin-top: 40px;
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--tile);
}

.pk-board h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pk-board > p { margin: 2px 0 12px; font-size: 14px; }
.pk-rank { width: 2em; color: var(--ink-faint); }
.pk-board thead th:nth-child(2) { text-align: left; }
.pk-board tbody tr:nth-child(1) .pk-rank { color: #ffcc00; }
.pk-board tbody tr:nth-child(2) .pk-rank { color: #c7c7cc; }
.pk-board tbody tr:nth-child(3) .pk-rank { color: #d08a4c; }

.pk-lock {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-faint);
}

.pk-unlock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* ---- the add / edit form ---- */
.pk-form {
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--tile);
}

.pk-form h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.pk-fields {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.pk-fields label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.pk-form input,
.pk-unlock input {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--tile-2);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.pk-unlock input { width: 200px; }

.pk-form input:focus,
.pk-unlock input:focus {
  outline: none;
  border-color: var(--accent);
}

.pk-hint { margin: 10px 0 16px; font-size: 13px; }

.pk-edit th,
.pk-edit td { padding: 6px 4px; border-bottom: none; }
.pk-edit td:first-child input { min-width: 120px; }
.pk-edit td input { min-width: 84px; text-align: right; }
.pk-edit td:first-child input { text-align: left; }

.pk-x {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--ink-faint);
  cursor: pointer;
}

.pk-x:hover { background: var(--tile-2); color: #ff453a; }

.pk-form > .pk-link { margin-top: 8px; }

.pk-live {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--tile-2);
  font-size: 14px;
}

.pk-live-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-variant-numeric: tabular-nums;
}

.pk-live .pk-check { margin-top: 8px; }

.pk-error {
  flex-basis: 100%;
  margin-top: 12px;
  color: #ff453a;
  font-size: 14px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 600px) {
  .t-poker { min-height: 210px; }
  .pk-chips { width: 40%; right: 4%; }
  .pk-tile-board { left: 20px; bottom: 18px; max-width: 58%; }
  .pk-mini:nth-child(3) { display: none; }
  .pk-session, .pk-board, .pk-form { padding: 20px 18px; }
  .pk-stats { grid-template-columns: 1fr 1fr; }
  .pk-fields { grid-template-columns: 1fr 1fr; }
  .pk-fields label:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .pk-table { font-size: 14px; }
}

/* ============================================================
   MOTION
   ============================================================ */

/* tiles float in on first load */
.enter .tile {
  animation: rise 0.8s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}

/* the tile ↔ page expand animation */
::view-transition-group(*) {
  animation-duration: 0.55s;
  animation-timing-function: var(--ease);
}

::view-transition-group(hero) {
  overflow: clip;
  border-radius: var(--radius);
}

::view-transition-old(hero),
::view-transition-new(hero) {
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   SMALLER SCREENS
   ============================================================ */

@media (max-width: 900px) {
  :root {
    --row: clamp(150px, 38vw, 230px);
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "intro intro"
      "bang  bang"
      "bang  bang"
      "blog  projects"
      "blog  projects"
      "links links"
      "poker poker";
  }
}

@media (max-width: 600px) {
  :root {
    --pad: 16px;
    --gap: 12px;
    --radius: 24px;
  }

  .dash { padding-top: 20px; }
  .tile { padding: 20px; }
  .t-intro { padding: 22px; }
  .tile-text h2 { font-size: 19px; }
  .note:nth-child(3) { display: none; }
  .icons { --icon: 54px; gap: 14px 22px; }
  .chips { left: 20px; right: 20px; bottom: 20px; }
  .chips span { padding: 6px 12px; font-size: 13px; }
  .art-links::after { font-size: 170px; }

  .hero { padding: 24px; }
  .hero .icons { display: none; }
  .body { margin-top: 32px; }
  .project-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-link.next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
