/* ============================================================
   Stephen Del Rosario — portfolio
   Faithful clone of bryllim.com structure (light, halftone, pixel)
   ============================================================ */

@font-face {
  font-family: 'Geist Pixel';
  src: url('https://cdn.jsdelivr.net/gh/vercel/geist-pixel-font@main/fonts/webfonts/GeistPixel-Square.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bg: 255 255 255;
  --ink: 10 10 10;
  --g50: 250 250 250;
  --g100: 245 245 245;
  --g200: 233 233 233;
  --g300: 212 212 212;
  --g400: 163 163 163;
  --g500: 115 115 115;
  --g600: 82 82 82;
  --g700: 64 64 64;
  --g800: 38 38 38;
  --g900: 23 23 23;
  --halftone: rgba(10, 10, 10, 0.72);
  --accent: 79 70 229;
  --green: 22 163 74;
  --ff: 'Geist', system-ui, -apple-system, sans-serif;
  --ff-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --ff-pixel: 'Geist Pixel', 'Geist Mono', monospace;
  --sidebar: 224px;
  --col: 640px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: rgb(var(--bg)); scrollbar-gutter: stable; }
body { background: rgb(var(--bg)); color: rgb(var(--ink)); font-family: var(--ff); font-size: 15px; line-height: 1.6; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
::selection { background: rgb(var(--ink)); color: rgb(var(--bg)); }
img { display: block; max-width: 100%; }

.pixel { font-family: var(--ff-pixel); letter-spacing: 0; }
.mono { font-family: var(--ff-mono); }

/* ---------- Halftone ---------- */
.halftone { background-image: radial-gradient(circle at center, var(--halftone) 1px, transparent 1.6px); background-size: 9px 9px; }
.halftone-wide { background-image: radial-gradient(circle at center, var(--halftone) 1px, transparent 1.6px); background-size: 13px 13px; }
.halftone-white { background-image: radial-gradient(circle at center, rgb(var(--bg)) 1px, transparent 1.5px); background-size: 5px 5px; }
.mask-up { -webkit-mask-image: linear-gradient(to top, #000, transparent 82%); mask-image: linear-gradient(to top, #000, transparent 82%); }
.mask-fade-x { -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent); }
.mask-circle { -webkit-mask-image: radial-gradient(circle at center, #000 35%, transparent 70%); mask-image: radial-gradient(circle at center, #000 35%, transparent 70%); }

/* ---------- Sidebar (desktop) ---------- */
.sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar); height: 100vh; padding: 34px 22px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; border-right: 1px solid rgb(var(--g200)); z-index: 40; }
.s-name { font-family: var(--ff-pixel); font-size: 0.95rem; }
.s-name .mk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgb(var(--ink)); color: rgb(var(--bg)); font-size: 0.58rem; margin-right: 7px; vertical-align: middle; }
.s-group { display: flex; flex-direction: column; gap: 11px; }
.s-group a { font-family: var(--ff-mono); font-size: 0.82rem; color: rgb(var(--g600)); width: fit-content; transition: color 0.2s var(--ease); }
.s-group a:hover, .s-group a.active { color: rgb(var(--ink)); }
.s-div { height: 1px; background: rgb(var(--g200)); }
.s-ask { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ff-mono); font-size: 0.8rem; color: rgb(var(--g500)); background: none; border: none; cursor: pointer; width: fit-content; padding: 0; transition: color 0.2s var(--ease); }
.s-ask:hover { color: rgb(var(--ink)); }
.s-ask kbd { font-size: 0.62rem; color: rgb(var(--g400)); }
.s-presence { display: flex; flex-direction: column; gap: 4px; }
.s-presence .dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--accent)); display: inline-block; margin-right: 6px; animation: blink 1.8s ease-in-out infinite; }
.s-presence p { font-family: var(--ff-mono); font-size: 0.72rem; color: rgb(var(--g400)); }
.s-presence .num { color: rgb(var(--ink)); font-weight: 600; }
.s-mail-l { font-size: 0.72rem; color: rgb(var(--g400)); line-height: 1.5; }
.s-mail { font-family: var(--ff-mono); font-size: 0.8rem; color: rgb(var(--ink)); margin-top: 4px; display: inline-block; }
.s-mail:hover { color: rgb(var(--g500)); }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Topbar + mobile menu ---------- */
.topbar { display: none; position: fixed; top: 0; left: 0; right: 0; height: 52px; align-items: center; justify-content: space-between; padding: 0 22px; background: rgb(var(--bg) / 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgb(var(--g200)); z-index: 60; }
.topbar .s-name { font-size: 0.9rem; }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 20px; height: 1.5px; background: rgb(var(--ink)); transition: transform 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; inset: 0; background: rgb(var(--bg)); z-index: 55; flex-direction: column; padding: 70px 28px 28px; gap: 16px; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); overflow-y: auto; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--ff-mono); font-size: 1.15rem; color: rgb(var(--g600)); }
.mobile-menu a.active { color: rgb(var(--ink)); }

/* ---------- Main column ---------- */
.main { margin-left: var(--sidebar); }
.col { max-width: var(--col); margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.hero { padding: 74px 0 40px; }
.hero-photo-wrap { position: relative; width: 100%; max-width: 9.5rem; margin-bottom: 20px; }
.hero-photo { position: relative; width: 100%; aspect-ratio: 1 / 1.08; overflow: hidden; border-radius: 8px; background: rgb(var(--g100)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1) contrast(1.05); }
.hero-photo .mono-init { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ff-pixel); font-size: 2.4rem; color: rgb(var(--g400)); z-index: -1; }
.hero-photo-dots { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 2; pointer-events: none; }
.hero-name { font-family: var(--ff-pixel); font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1; letter-spacing: -0.01em; }
.hero-role { font-family: var(--ff-mono); font-size: 0.86rem; color: rgb(var(--accent)); margin-top: 10px; }
.hero p.bio { margin-top: 18px; font-size: 0.95rem; line-height: 1.7; color: rgb(var(--g600)); max-width: 34rem; }
.hero p.bio strong { color: rgb(var(--ink)); font-weight: 500; }
.hero-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--ff-mono); font-size: 0.84rem; }
.hero-links a { color: rgb(var(--g500)); transition: color 0.2s var(--ease); }
.hero-links a:hover { color: rgb(var(--ink)); }

/* ---------- Stats 2x2 ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgb(var(--g200)); }
.stat { padding: 20px 18px; border-bottom: 1px solid rgb(var(--g200)); }
.stat:nth-child(odd) { border-right: 1px solid rgb(var(--g200)); padding-left: 0; }
.stat:nth-child(even) { padding-right: 0; }
.stats-3 { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgb(var(--g200)); }
.stats-3 .stat { border-bottom: none; border-right: none; padding: 20px 18px; }
.stats-3 .stat:nth-child(odd) { border-right: none; }
.stats-3 .stat + .stat { border-left: 1px solid rgb(var(--g200)); }
.stats-3 .stat:first-child { padding-left: 0; }
.stats-3 .stat:last-child { padding-right: 0; }
.stat-num { font-family: var(--ff-pixel); font-size: 1.1rem; line-height: 1; }
.stat-num .x { color: rgb(var(--g300)); }
.stat-label { margin-top: 8px; font-family: var(--ff-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(var(--g500)); }

/* ---------- Halftone divider ---------- */
.hdiv { height: 24px; width: 100%; margin: 8px 0; opacity: 0.18; }

/* ---------- Section ---------- */
.sec { padding: 50px 0; position: relative; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sec-head h2 { font-family: var(--ff-pixel); font-size: 0.9rem; font-weight: 400; color: rgb(var(--g400)); }
.sec-link { font-family: var(--ff-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(var(--g500)); transition: color 0.2s var(--ease); }
.sec-link:hover { color: rgb(var(--ink)); }
.sec-deco { position: absolute; left: -40px; bottom: 24px; width: 160px; height: 160px; opacity: 0.14; pointer-events: none; z-index: -1; }
.deck-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.deck-nav .deck-dots { margin-top: 0; }
.deck-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgb(var(--g300)); background: none; color: rgb(var(--ink)); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease); }
.deck-arrow:hover { background: rgb(var(--ink)); color: rgb(var(--bg)); }
.deck-arrow:disabled { opacity: 0.25; cursor: default; }
.deck-arrow:disabled:hover { background: none; color: rgb(var(--ink)); }

/* ---------- Project deck ---------- */
.deck { position: relative; height: 17rem; overflow-x: clip; overflow-y: visible; }
.deck-card { position: absolute; top: 0.5rem; left: 50%; width: 19rem; margin-left: -9.5rem; transform-origin: center bottom; transition: transform .5s var(--ease), box-shadow .35s ease, opacity .4s ease; will-change: transform; border-radius: 16px; border: 1px solid rgb(var(--g200)); background: rgb(var(--bg)); padding: 18px; opacity: 0; pointer-events: none; }
.deck-card.is-center { transform: translateX(0) rotate(0) scale(1); z-index: 30; opacity: 1; pointer-events: auto; box-shadow: 0 26px 55px -22px rgba(10,10,10,.3); }
.deck-card.is-left { transform: translateX(-42%) translateY(14px) rotate(-15deg) scale(.9); z-index: 10; opacity: 1; cursor: pointer; box-shadow: 0 16px 32px -18px rgba(10,10,10,.25); }
.deck-card.is-right { transform: translateX(42%) translateY(14px) rotate(15deg) scale(.9); z-index: 20; opacity: 1; cursor: pointer; box-shadow: 0 16px 32px -18px rgba(10,10,10,.25); }
.deck-card.is-far-left { transform: translateX(-66%) translateY(26px) rotate(-22deg) scale(.8); z-index: 5; opacity: .45; }
.deck-card.is-far-right { transform: translateX(66%) translateY(26px) rotate(22deg) scale(.8); z-index: 5; opacity: .45; }
.deck-card.is-center:hover { transform: translateY(-6px) scale(1.012); }
.dc-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-badge-main { display: inline-flex; align-items: center; gap: 6px; border-radius: 9999px; background: rgb(var(--ink)); color: rgb(var(--bg)); padding: 3px 10px; font-family: var(--ff-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; }
.dc-badge { border-radius: 9999px; border: 1px solid rgb(var(--g300)); padding: 3px 8px; font-family: var(--ff-mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.04em; color: rgb(var(--g500)); }
.dc-badge-star { border-radius: 9999px; background: rgb(var(--accent)); color: #fff; padding: 3px 10px; font-family: var(--ff-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; }
.dc-head { margin-top: 16px; display: flex; align-items: center; gap: 14px; }
.dc-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; border: 1px solid rgb(var(--g200)); object-fit: cover; }
.dc-name { font-family: var(--ff-pixel); font-size: 1rem; line-height: 1.1; }
.dc-desc { margin-top: 12px; font-size: 0.82rem; line-height: 1.55; color: rgb(var(--g600)); }
.dc-actions { margin-top: 16px; display: flex; gap: 16px; align-items: center; }
.dc-action { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ff-mono); font-size: 0.74rem; color: rgb(var(--ink)); }
.dc-action:hover { color: rgb(var(--g500)); }
.dc-store { font-family: var(--ff-mono); font-size: 0.74rem; color: rgb(var(--accent)); }
.dc-store:hover { text-decoration: underline; }
.deck-card:not(.is-center) a { pointer-events: none; }
.deck-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.deck-dots button { width: 6px; height: 6px; border-radius: 50%; border: none; background: rgb(var(--g300)); cursor: pointer; padding: 0; transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.deck-dots button.on { background: rgb(var(--accent)); transform: scale(1.35); }

/* ---------- Personal projects (highlighted) ---------- */
.sec-note { font-family: var(--ff-mono); font-size: 0.68rem; color: rgb(var(--g400)); }
.personal-grid { display: flex; flex-direction: column; gap: 18px; }
.personal-card { border: 1px solid rgb(var(--accent) / 0.3); border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, rgb(var(--accent) / 0.05), transparent 60%); }
.pc-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pc-top { display: flex; align-items: center; gap: 14px; }
.pc-icon { width: 52px; height: 52px; border-radius: 13px; border: 1px solid rgb(var(--g200)); flex-shrink: 0; }
.pc-id { min-width: 0; }
.pc-name { font-family: var(--ff-pixel); font-size: 1.05rem; line-height: 1.1; }
.pc-tagline { font-family: var(--ff-mono); font-size: 0.74rem; color: rgb(var(--g500)); margin-top: 4px; }
.pc-stars { margin-left: auto; color: #f5a623; font-size: 0.92rem; letter-spacing: 1px; white-space: nowrap; }
.pc-stars span { color: rgb(var(--g500)); font-family: var(--ff-mono); font-size: 0.72rem; margin-left: 6px; letter-spacing: 0; }
.pc-desc { font-size: 0.88rem; line-height: 1.55; color: rgb(var(--g600)); }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags span { font-family: var(--ff-mono); font-size: 0.66rem; color: rgb(var(--g500)); border: 1px solid rgb(var(--g200)); border-radius: 9999px; padding: 3px 9px; }
.pc-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pc-link { font-family: var(--ff-mono); font-size: 0.76rem; color: rgb(var(--ink)); background: none; border: none; padding: 0; cursor: pointer; }
.pc-link:hover { color: rgb(var(--g500)); }
.pc-accent { color: rgb(var(--accent)); }
.pc-accent:hover { color: rgb(var(--accent)); text-decoration: underline; }

/* ---------- Experience rows (with full date range) ---------- */
.xp { border-top: 1px solid rgb(var(--g200)); border-bottom: 1px solid rgb(var(--g200)); }
.xp-row { display: grid; grid-template-columns: 178px 1fr auto; gap: 18px; align-items: baseline; padding: 15px 6px; transition: background 0.2s var(--ease); }
.xp-row + .xp-row { border-top: 1px solid rgb(var(--g200)); }
.xp-row:hover { background: rgb(var(--g50)); }
.xp-date { font-family: var(--ff-mono); font-size: 0.74rem; color: rgb(var(--g400)); white-space: nowrap; }
.xp-role { font-size: 0.9rem; font-weight: 500; color: rgb(var(--ink)); }
.xp-co { font-size: 0.8rem; color: rgb(var(--g500)); margin-top: 3px; }
.xp-type { font-family: var(--ff-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(var(--g500)); border: 1px solid rgb(var(--g200)); border-radius: 9999px; padding: 3px 9px; white-space: nowrap; }
@media (max-width: 640px) {
  .xp-row { grid-template-columns: 1fr auto; }
  .xp-date { grid-column: 1 / -1; order: -1; margin-bottom: 2px; }
  .xp-type { align-self: start; }
  .offer-grid { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-hero { grid-template-columns: 1fr; gap: 22px; }
  .offer-hero-side { align-items: flex-start; text-align: left; }
  .contact-grid2 { grid-template-columns: 1fr; }
}

/* ---------- Stack ---------- */
.stack-group { margin-bottom: 28px; }
.stack-group h3 { font-family: var(--ff-pixel); font-size: 0.82rem; color: rgb(var(--g400)); margin-bottom: 13px; }
.stack { display: flex; flex-wrap: wrap; gap: 7px; }
.stack-chip { font-family: var(--ff-mono); font-size: 0.78rem; color: rgb(var(--g600)); padding: 7px 12px; border: 1px solid rgb(var(--g200)); border-radius: 9999px; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.stack-chip:hover { color: rgb(var(--ink)); border-color: rgb(var(--g300)); }

/* ---------- Certifications ---------- */
.cert-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid rgb(var(--g200)); border-radius: 10px; transition: border-color 0.2s var(--ease); }
.cert-chip:hover { border-color: rgb(var(--g300)); }
.cert-chip strong { font-size: 0.82rem; font-weight: 500; }
.cert-chip span { font-family: var(--ff-mono); font-size: 0.7rem; color: rgb(var(--g400)); }

/* ---------- Contact ---------- */
.contact-links { display: flex; flex-direction: column; border-top: 1px solid rgb(var(--g200)); }
.contact-link { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 6px; border-bottom: 1px solid rgb(var(--g200)); transition: background 0.2s var(--ease), padding-left 0.25s var(--ease); }
.contact-link:not(.static):hover { background: rgb(var(--g50)); padding-left: 12px; }
.cl-label { font-family: var(--ff-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(var(--g400)); }
.cl-value { font-size: 0.88rem; color: rgb(var(--ink)); }
.cl-arrow { color: rgb(var(--g400)); }
.contact-link:hover .cl-arrow { color: rgb(var(--ink)); }
/* Contact page (redesigned) */
.contact-avail { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-mono); font-size: 0.76rem; color: rgb(var(--g600)); margin-bottom: 22px; }
.contact-avail .dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--green)); animation: cpulse 2.4s infinite; }
@keyframes cpulse { 0% { box-shadow: 0 0 0 0 rgb(var(--green) / 0.45); } 70% { box-shadow: 0 0 0 8px rgb(var(--green) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--green) / 0); } }
.contact-primary { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid rgb(var(--g300)); border-radius: 18px; padding: 26px 28px; background: linear-gradient(150deg, rgb(var(--g50)), transparent 60%); transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.contact-primary:hover { border-color: rgb(var(--ink)); transform: translateY(-3px); }
.contact-primary-dots { position: absolute; top: -30px; right: -30px; width: 190px; height: 190px; opacity: 0.1; -webkit-mask-image: radial-gradient(circle at 100% 0%, #000, transparent 68%); mask-image: radial-gradient(circle at 100% 0%, #000, transparent 68%); pointer-events: none; }
.cp-main { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cp-label { font-family: var(--ff-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--g500)); }
.cp-value { font-family: var(--ff-pixel); font-size: clamp(1.1rem, 3.6vw, 1.7rem); color: rgb(var(--ink)); word-break: break-all; }
.cp-arrow { position: relative; z-index: 1; font-size: 1.4rem; color: rgb(var(--g400)); flex-shrink: 0; transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.contact-primary:hover .cp-arrow { color: rgb(var(--ink)); transform: translate(3px, -3px); }
.contact-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.contact-tile { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; border: 1px solid rgb(var(--g200)); border-radius: 14px; padding: 18px; background: none; cursor: pointer; font: inherit; position: relative; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.contact-tile:hover { border-color: rgb(var(--g300)); transform: translateY(-2px); }
.contact-tile.static, .contact-tile.static:hover { cursor: default; transform: none; border-color: rgb(var(--g200)); }
.ct-label { font-family: var(--ff-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(var(--g500)); }
.ct-value { font-size: 0.98rem; color: rgb(var(--ink)); }
.ct-ask .ct-value { font-family: var(--ff-pixel); }
.ct-arrow { position: absolute; top: 16px; right: 16px; font-family: var(--ff-mono); font-size: 0.78rem; color: rgb(var(--g400)); }
.contact-tile:hover .ct-arrow { color: rgb(var(--ink)); }

/* ---------- Footer ---------- */
.foot { padding: 40px 0 60px; border-top: 1px solid rgb(var(--g200)); margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot span, .foot a { font-family: var(--ff-mono); font-size: 0.72rem; color: rgb(var(--g400)); }
.foot a:hover { color: rgb(var(--ink)); }

/* ---------- Page-hero (work/experience/contact pages) ---------- */
.page-hero { padding: 74px 0 8px; }
.page-hero .sec-num { display: block; font-family: var(--ff-pixel); font-size: 0.85rem; color: rgb(var(--g400)); margin-bottom: 12px; }
.page-hero h1 { font-family: var(--ff-pixel); font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.02; margin-bottom: 14px; }
.page-hero p { max-width: 34rem; font-size: 0.95rem; color: rgb(var(--g600)); }
.page-section { padding: 34px 0 80px; }
.block { margin-top: 44px; }
.block-label { font-family: var(--ff-pixel); font-size: 0.8rem; color: rgb(var(--g400)); margin-bottom: 14px; }
.edu-item { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-top: 1px solid rgb(var(--g200)); }
.edu-item strong { display: block; font-size: 0.95rem; font-weight: 600; }
.edu-item span { color: rgb(var(--g600)); font-size: 0.85rem; }
.edu-item .edu-date { font-family: var(--ff-mono); font-size: 0.74rem; color: rgb(var(--g400)); }

/* Work page full project list (reuses xp-like rows) */
.proj-list { border-top: 1px solid rgb(var(--g200)); }
.proj-row { display: grid; grid-template-columns: 30px 44px 1fr auto 22px; align-items: center; gap: 16px; padding: 14px 6px; border-bottom: 1px solid rgb(var(--g200)); cursor: pointer; transition: padding-left 0.3s var(--ease), background 0.3s var(--ease); }
.proj-row:hover { padding-left: 12px; background: rgb(var(--g50)); }
.proj-idx { font-family: var(--ff-mono); font-size: 0.72rem; color: rgb(var(--g400)); }
.proj-icon { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; border: 1px solid rgb(var(--g200)); }
.proj-name { font-family: var(--ff-pixel); font-size: 1rem; line-height: 1.1; }
.proj-name-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.proj-badge { font-family: var(--ff-mono); font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 9999px; border: 1px solid rgb(var(--g300)); color: rgb(var(--g500)); }
.proj-badge.live { color: rgb(var(--green)); border-color: rgb(var(--green) / 0.4); }
.proj-badge.personal { color: #fff; background: rgb(var(--accent)); border-color: rgb(var(--accent)); }
.proj-tags { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.proj-tags span { font-family: var(--ff-mono); font-size: 0.68rem; color: rgb(var(--g400)); }
.proj-tags span:not(:last-child)::after { content: " /"; }
.proj-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-family: var(--ff-mono); font-size: 0.68rem; color: rgb(var(--g400)); }
.proj-store { color: rgb(var(--accent)); }
.proj-store:hover { text-decoration: underline; }
.proj-arrow { color: rgb(var(--g400)); justify-self: end; }
.proj-row:hover .proj-arrow { color: rgb(var(--ink)); }

/* ---------- Gear ---------- */
.gear-group { margin-bottom: 42px; }
.gear-group h3 { font-family: var(--ff-pixel); font-size: 0.82rem; color: rgb(var(--g400)); margin-bottom: 14px; }
.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gear-card { border: 1px solid rgb(var(--g200)); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.gear-card:hover { border-color: rgb(var(--g300)); transform: translateY(-3px); }
.gear-img { height: 150px; display: flex; align-items: center; justify-content: center; padding: 16px 16px 6px; overflow: hidden; }
.gear-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.gear-meta { padding: 4px 15px 15px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gear-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gear-name { font-size: 0.9rem; font-weight: 500; color: rgb(var(--ink)); }
.gear-type { font-family: var(--ff-mono); font-size: 0.68rem; color: rgb(var(--g500)); }
.gear-arrow { color: rgb(var(--g400)); font-family: var(--ff-mono); font-size: 0.8rem; flex-shrink: 0; }
.gear-card:hover .gear-arrow { color: rgb(var(--ink)); }

/* ---------- Consulting ---------- */
/* Featured coaching card */
.offer-hero { position: relative; overflow: hidden; border: 1px solid rgb(var(--g300)); border-radius: 18px; padding: 30px; margin-bottom: 46px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: linear-gradient(155deg, rgb(var(--g50)), transparent 62%); }
.offer-hero-dots { position: absolute; top: -34px; right: -34px; width: 210px; height: 210px; opacity: 0.1; -webkit-mask-image: radial-gradient(circle at 100% 0%, #000, transparent 68%); mask-image: radial-gradient(circle at 100% 0%, #000, transparent 68%); pointer-events: none; }
.offer-hero-main { position: relative; z-index: 1; }
.offer-tag { display: inline-block; font-family: var(--ff-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--accent)); border: 1px solid rgb(var(--accent) / 0.4); border-radius: 9999px; padding: 3px 10px; }
.offer-hero-title { font-family: var(--ff-pixel); font-size: 1.6rem; margin: 15px 0 10px; }
.offer-hero-desc { color: rgb(var(--g600)); font-size: 0.94rem; line-height: 1.55; margin-bottom: 18px; max-width: 30rem; }
.offer-hero-side { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.ph-num { font-family: var(--ff-pixel); font-size: 2.3rem; line-height: 1; color: rgb(var(--ink)); }
.ph-unit { font-family: var(--ff-mono); font-size: 0.78rem; color: rgb(var(--g500)); margin-top: 6px; }
.offer-book { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 12px 20px; border-radius: 9999px; background: rgb(var(--ink)); color: rgb(var(--bg)); font-family: var(--ff-pixel); font-size: 0.8rem; transition: opacity 0.2s var(--ease); }
.offer-book:hover { opacity: 0.85; }

/* Checklist */
.offer-check { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.offer-check li { position: relative; padding-left: 22px; font-size: 0.86rem; color: rgb(var(--g700)); }
.offer-check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: rgb(var(--accent)); font-size: 0.82rem; font-weight: 700; }

.offer-section-label { font-family: var(--ff-pixel); font-size: 0.82rem; color: rgb(var(--g400)); margin: 0 0 16px; }

/* Custom service cards */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer-card { position: relative; overflow: hidden; border: 1px solid rgb(var(--g200)); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.offer-card:hover { border-color: rgb(var(--g300)); transform: translateY(-3px); }
.offer-card-dots { position: absolute; bottom: -22px; right: -22px; width: 120px; height: 120px; opacity: 0.07; -webkit-mask-image: radial-gradient(circle at 100% 100%, #000, transparent 70%); mask-image: radial-gradient(circle at 100% 100%, #000, transparent 70%); pointer-events: none; }
.offer-card-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.offer-num { font-family: var(--ff-mono); font-size: 0.74rem; color: rgb(var(--g400)); }
.offer-price { font-family: var(--ff-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(var(--g500)); border: 1px solid rgb(var(--g200)); border-radius: 9999px; padding: 3px 9px; }
.offer-card h3 { font-family: var(--ff-pixel); font-size: 1rem; line-height: 1.15; position: relative; z-index: 1; }
.offer-desc { font-size: 0.88rem; color: rgb(var(--g600)); line-height: 1.5; position: relative; z-index: 1; }
.offer-card .offer-check { margin-top: auto; position: relative; z-index: 1; padding-top: 2px; }

/* CTA */
.offer-cta { margin-top: 46px; padding: 34px; border: 1px solid rgb(var(--g200)); border-radius: 16px; text-align: center; background: linear-gradient(180deg, rgb(var(--g50)), transparent 70%); position: relative; overflow: hidden; }
.offer-cta h3 { font-family: var(--ff-pixel); font-size: 1.3rem; margin-bottom: 8px; }
.offer-cta p { color: rgb(var(--g600)); font-size: 0.92rem; margin-bottom: 20px; }
.offer-cta a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 1px solid rgb(var(--ink)); border-radius: 9999px; font-family: var(--ff-pixel); font-size: 0.82rem; color: rgb(var(--ink)); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.offer-cta a:hover { background: rgb(var(--ink)); color: rgb(var(--bg)); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgb(var(--bg) / 0.96); backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: center; justify-content: center; gap: 16px; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-stage img { max-height: 76vh; max-width: 80vw; border-radius: 16px; border: 1px solid rgb(var(--g300)); }
.lightbox-pano { display: none; gap: 0; overflow-x: auto; max-width: 92vw; max-height: 80vh; border-radius: 14px; border: 1px solid rgb(var(--g300)); scrollbar-width: thin; }
.lightbox-pano::-webkit-scrollbar { height: 8px; }
.lightbox-pano::-webkit-scrollbar-thumb { background: rgb(var(--g400)); border-radius: 4px; }
.lightbox-pano img { height: 78vh; width: auto; display: block; flex: 0 0 auto; border: none; border-radius: 0; max-width: none; }
.lightbox.pano #lightboxImg { display: none; }
.lightbox.pano .lightbox-pano { display: flex; }
.lightbox.pano .lightbox-nav { display: none; }
.lightbox-caption { text-align: center; }
.lightbox-caption strong { font-family: var(--ff-pixel); font-size: 0.9rem; display: block; }
.lightbox-caption span { font-family: var(--ff-mono); font-size: 0.74rem; color: rgb(var(--g400)); }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: rgb(var(--g500)); font-family: var(--ff-mono); font-size: 0.8rem; cursor: pointer; }
.lightbox-close:hover { color: rgb(var(--ink)); }
.lightbox-nav { background: rgb(var(--g100)); border: 1px solid rgb(var(--g200)); color: rgb(var(--ink)); width: 42px; height: 42px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; flex-shrink: 0; }
.lightbox-nav:hover { background: rgb(var(--g200)); }

/* ---------- Ask overlay ---------- */
.ask { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: flex-start; padding: 1.5rem; }
.ask.open { display: flex; }
.ask-backdrop { position: absolute; inset: 0; background: rgb(var(--g50) / 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.4s ease; }
.ask.in .ask-backdrop { opacity: 1; }
.ask-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.3rem; width: 100%; max-width: 720px; padding-left: clamp(1.5rem, 9vw, 7rem); opacity: 0; transform: translateY(12px); transition: opacity 0.45s ease 0.1s, transform 0.55s var(--ease) 0.1s; }
.ask.in .ask-content { opacity: 1; transform: none; }
.ask-title { font-family: var(--ff-pixel); font-size: clamp(1.5rem, 4.5vw, 2.6rem); line-height: 1.08; color: rgb(var(--ink)); }
.ask-hint { font-family: var(--ff-mono); font-size: 0.78rem; color: rgb(var(--g500)); }
.ask-hint kbd { background: rgb(var(--g100)); padding: 1px 6px; border-radius: 4px; }
.ask-reveal { display: flex; flex-direction: column; gap: 0.5rem; }
.reveal-item { opacity: 0; filter: blur(10px); transition: opacity 0.6s ease, filter 0.6s ease; font-family: var(--ff-pixel); font-size: clamp(0.95rem, 2.4vw, 1.1rem); line-height: 1.5; color: rgb(var(--g600)); }
.reveal-item.show { opacity: 1; filter: blur(0); }
.reveal-item b { color: rgb(var(--ink)); font-weight: 400; }
.ask-close { position: absolute; top: 20px; right: 24px; z-index: 2; background: none; border: none; color: rgb(var(--g500)); font-family: var(--ff-mono); font-size: 0.78rem; cursor: pointer; }
.ask-close:hover { color: rgb(var(--ink)); }
/* Chat */
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }
.ask-chip { font-family: var(--ff-mono); font-size: 0.74rem; color: rgb(var(--g600)); background: rgb(var(--g100)); border: 1px solid rgb(var(--g200)); border-radius: 9999px; padding: 7px 13px; cursor: pointer; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.ask-chip:hover { color: rgb(var(--ink)); border-color: rgb(var(--g300)); }
.ask-thread { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 560px; max-height: 42vh; overflow-y: auto; }
.ask-thread:empty { display: none; }
.ask-msg { font-size: 0.95rem; line-height: 1.5; padding: 11px 15px; border-radius: 14px; max-width: 90%; overflow-wrap: anywhere; }
.ask-user { align-self: flex-end; background: rgb(var(--ink)); color: rgb(var(--bg)); border-bottom-right-radius: 5px; }
.ask-bot { align-self: flex-start; background: rgb(var(--g100)); color: rgb(var(--ink)); border-bottom-left-radius: 5px; }
.ask-bot a { color: rgb(var(--accent)); text-decoration: underline; }
.ask-err { color: rgb(var(--g600)); }
.ask-dots { display: inline-flex; gap: 4px; align-items: center; }
.ask-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--g400)); animation: askdot 1s infinite; }
.ask-dots span:nth-child(2) { animation-delay: 0.15s; }
.ask-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes askdot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ask-form { display: flex; gap: 8px; width: 100%; max-width: 560px; }
.ask-input { flex: 1; min-width: 0; font-family: var(--ff); font-size: 0.98rem; color: rgb(var(--ink)); background: rgb(var(--bg)); border: 1px solid rgb(var(--g300)); border-radius: 12px; padding: 12px 15px; outline: none; }
.ask-input:focus { border-color: rgb(var(--ink)); }
.ask-input::placeholder { color: rgb(var(--g400)); }
.ask-send { flex-shrink: 0; width: 46px; border: 1px solid rgb(var(--ink)); background: rgb(var(--ink)); color: rgb(var(--bg)); border-radius: 12px; font-size: 1.05rem; cursor: pointer; transition: opacity 0.2s var(--ease); }
.ask-send:hover { opacity: 0.85; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-item { opacity: 1; filter: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .sidebar { display: none; }
  .topbar { display: flex; }
  .mobile-menu { display: flex; }
  .main { margin-left: 0; padding-top: 52px; }
  .col { max-width: 640px; }
}
@media (max-width: 560px) {
  .stat:nth-child(odd) { padding-left: 0; }
  .proj-row { grid-template-columns: 24px 40px 1fr; }
  .proj-row .proj-meta, .proj-row .proj-arrow { display: none; }
}

/* ==================== Dark mode ==================== */
html.dark {
  --bg: 12 12 15;
  --ink: 244 244 245;
  --g50: 24 24 27;
  --g100: 30 30 34;
  --g200: 42 42 48;
  --g300: 58 58 66;
  --g400: 138 138 146;
  --g500: 160 160 168;
  --g600: 184 184 192;
  --g700: 206 206 212;
  --g800: 228 228 232;
  --g900: 240 240 243;
  --halftone: rgba(244, 244, 245, 0.42);
  color-scheme: dark;
}
/* Product shots keep a light chip in dark mode so white-bg images stay visible */
html.dark .gear-img { background: #fff; }
html.dark .hero-photo { background: rgb(var(--g200)); }

/* Theme transition: circular reveal (View Transitions) + crossfade fallback */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, border-color .45s ease, color .45s ease, fill .45s ease, box-shadow .45s ease !important;
}

/* Theme switch */
.theme-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgb(var(--g200)); border-radius: 9999px; width: fit-content; }
.theme-opt { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: none; background: none; border-radius: 9999px; color: rgb(var(--g400)); cursor: pointer; transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.theme-opt:hover { color: rgb(var(--ink)); }
.theme-opt.is-active { background: rgb(var(--g100)); color: rgb(var(--ink)); }
.theme-opt svg { width: 14px; height: 14px; }
.mobile-menu .theme-switch { margin-top: 20px; }

/* Sidebar play button */
.s-play { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ff-mono); font-size: 0.8rem; color: rgb(var(--g500)); background: none; border: none; cursor: pointer; width: fit-content; padding: 0; transition: color 0.2s var(--ease); }
.s-play:hover { color: rgb(var(--ink)); }
.s-play kbd { font-size: 0.62rem; color: rgb(var(--g400)); }

/* ==================== Snake game ==================== */
.game { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.game.open { display: flex; }
.game-backdrop { position: absolute; inset: 0; background: rgb(var(--bg) / 0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.3s var(--ease); }
.game.in .game-backdrop { opacity: 1; }
.game-panel { position: relative; z-index: 1; width: min(400px, 94vw); border: 1px solid rgb(var(--g200)); border-radius: 18px; background: rgb(var(--bg)); padding: 46px 22px 22px; opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.game.in .game-panel { opacity: 1; transform: none; }
.game-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.game-title { font-family: var(--ff-pixel); font-size: 1.1rem; }
.game-stats { display: flex; gap: 22px; }
.gs { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.gs-num { font-family: var(--ff-pixel); font-size: 1.55rem; color: rgb(var(--ink)); }
.gs-lbl { font-family: var(--ff-mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgb(var(--g500)); margin-top: 6px; }
.game-board { position: relative; border: 1px solid rgb(var(--g200)); border-radius: 12px; overflow: hidden; background: rgb(var(--g50)); aspect-ratio: 1 / 1; }
#snakeCanvas { display: block; width: 100%; height: 100%; }
.game-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgb(var(--bg) / 0.82); text-align: center; padding: 20px; }
.game-cover.hidden { display: none; }
.game-cover-msg { font-family: var(--ff-pixel); font-size: 1.15rem; color: rgb(var(--ink)); }
.game-cover-sub { font-family: var(--ff-mono); font-size: 0.74rem; line-height: 1.5; color: rgb(var(--g500)); max-width: 20rem; }
.game-cover-sub b { color: rgb(var(--ink)); font-weight: 400; }
.game-keys { display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(2, 34px); gap: 6px; justify-content: center; }
.gk { display: grid; place-items: center; border: 1px solid rgb(var(--g200)); border-radius: 8px; font-family: var(--ff-mono); font-size: 0.95rem; color: rgb(var(--g500)); background: rgb(var(--g100)); animation: gkpop 2.4s infinite; }
.gk-up { grid-area: 1 / 2 / 2 / 3; animation-delay: 0s; }
.gk-right { grid-area: 2 / 3 / 3 / 4; animation-delay: 0.6s; }
.gk-down { grid-area: 2 / 2 / 3 / 3; animation-delay: 1.2s; }
.gk-left { grid-area: 2 / 1 / 3 / 2; animation-delay: 1.8s; }
@keyframes gkpop { 0%, 22%, 100% { transform: translateY(0); background: rgb(var(--g100)); color: rgb(var(--g500)); border-color: rgb(var(--g200)); } 8% { transform: translateY(2px); background: rgb(var(--accent)); color: #fff; border-color: rgb(var(--accent)); } }
.game-skip { background: none; border: none; font-family: var(--ff-mono); font-size: 0.72rem; color: rgb(var(--g500)); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 2px; margin-top: -4px; }
.game-skip:hover { color: rgb(var(--ink)); }
.game-start { font-family: var(--ff-pixel); font-size: 0.85rem; padding: 11px 22px; border-radius: 9999px; background: rgb(var(--ink)); color: rgb(var(--bg)); border: none; cursor: pointer; transition: opacity 0.2s var(--ease); }
.game-start:hover { opacity: 0.85; }
.game-hint { margin-top: 12px; font-family: var(--ff-mono); font-size: 0.66rem; color: rgb(var(--g500)); text-align: center; }
.game-close { position: absolute; top: 16px; right: 20px; z-index: 2; background: none; border: none; color: rgb(var(--g500)); font-family: var(--ff-mono); font-size: 0.78rem; cursor: pointer; padding: 4px 6px; }
.game-close:hover { color: rgb(var(--ink)); }

/* ==================== IDE Workspace theme ==================== */
:root {
  --actbar: 54px;
  --accent: 9 105 218;
  --syn-key: 207 34 46; --syn-fn: 130 80 223; --syn-str: 24 92 175;
  --syn-var: 9 105 218; --syn-num: 150 84 0; --syn-comment: 106 115 125; --syn-tag: 17 99 41;
}
html.dark {
  --accent: 88 166 255;
  --syn-key: 255 123 114; --syn-fn: 210 168 255; --syn-str: 165 214 255;
  --syn-var: 121 192 255; --syn-num: 255 166 87; --syn-comment: 139 148 158; --syn-tag: 126 231 135;
}
::selection { background: rgb(var(--accent) / 0.26); color: rgb(var(--ink)); }
.tcursor { display: inline-block; width: 0.5em; height: 1.05em; background: rgb(var(--accent)); margin-left: 2px; vertical-align: -0.16em; animation: tblink 1.1s step-end infinite; }
@keyframes tblink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---- Activity bar ---- */
.act-bar { position: fixed; top: 0; left: 0; width: var(--actbar); height: 100vh; z-index: 60; background: rgb(var(--g100)); border-right: 1px solid rgb(var(--g200)); display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 2px; }
.act-bar .act-spacer { flex: 1 1 auto; }
.act-ico { width: 46px; height: 42px; display: grid; place-items: center; color: rgb(var(--g500)); background: none; border: none; cursor: pointer; border-left: 2px solid transparent; transition: color .15s var(--ease); }
.act-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.act-ico:hover { color: rgb(var(--ink)); }
.act-ico.on { color: rgb(var(--ink)); border-left-color: rgb(var(--accent)); }

/* ---- Explorer sidebar ---- */
.sidebar { left: var(--actbar); background: rgb(var(--g50)); padding: 0 12px 16px; gap: 13px; }
.s-name { margin: 0 -12px; height: 40px; padding: 0 15px; display: flex; align-items: center; border-bottom: 1px solid rgb(var(--g200)); font-size: 0.85rem; }
.s-group { gap: 1px; }
.s-group::before { content: "\25BE  PORTFOLIO"; display: block; font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: rgb(var(--g500)); margin: 6px 2px; }
.s-group a { display: flex; align-items: center; gap: 8px; width: auto; padding: 4px 8px; border-radius: 6px; font-family: var(--ff-mono); font-size: 0.8rem; color: rgb(var(--g600)); }
.s-group a::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: rgb(var(--fic, var(--g400))); flex: none; }
.s-group a:hover { background: rgb(var(--g100)); color: rgb(var(--ink)); }
.s-group a.active { background: rgb(var(--accent) / 0.16); color: rgb(var(--ink)); }
.s-div { display: none; }
.s-ask, .s-play { display: flex; align-items: center; gap: 8px; width: auto; padding: 5px 8px; border-radius: 6px; font-size: 0.76rem; color: rgb(var(--g600)); }
.s-ask:hover, .s-play:hover { background: rgb(var(--g100)); color: rgb(var(--ink)); }
.s-ask kbd, .s-play kbd { margin-left: auto; }

/* ---- Editor tab bar (per page) ---- */
.tabbar { display: flex; align-items: stretch; height: 40px; border-bottom: 1px solid rgb(var(--g200)); margin: 0 -24px 28px; background: rgb(var(--g50)); overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; font-family: var(--ff-mono); font-size: 0.75rem; color: rgb(var(--g500)); border-right: 1px solid rgb(var(--g200)); white-space: nowrap; }
.tab::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: rgb(var(--fic, var(--g400))); }
.tab.on { background: rgb(var(--bg)); color: rgb(var(--ink)); box-shadow: inset 0 2px 0 rgb(var(--accent)); }

/* ---- Status bar ---- */
.statusbar { position: fixed; bottom: 0; left: 0; right: 0; height: 26px; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: rgb(var(--accent)); color: #fff; font-family: var(--ff-mono); font-size: 0.68rem; }
.statusbar .sb-l, .statusbar .sb-r { display: flex; align-items: center; gap: 15px; }
.statusbar span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
html.dark .statusbar { color: #0b0e14; }

/* Shell offsets */
.main { margin-left: calc(var(--actbar) + var(--sidebar)); padding-bottom: 42px; }

/* ---- Section headers / labels: bigger + higher contrast ---- */
.sec-head h2 { font-family: var(--ff-mono); font-size: 1rem; font-weight: 500; color: rgb(var(--ink)); }
.sec-head h2::before { content: "// "; color: rgb(var(--syn-comment)); }
.page-hero .sec-num { font-family: var(--ff-mono); font-size: 0.72rem; color: rgb(var(--accent)); text-transform: uppercase; letter-spacing: 0.14em; }
.page-hero h1 { color: rgb(var(--ink)); }
.stack-group h3 { font-family: var(--ff-mono); font-size: 1.02rem; font-weight: 500; color: rgb(var(--ink)); margin-bottom: 15px; }
.stack-group h3::before { content: "\25B8 "; color: rgb(var(--accent)); }

/* ---- Editor hero ---- */
.editor { border: 1px solid rgb(var(--g200)); border-radius: 10px; overflow: hidden; background: rgb(var(--bg)); box-shadow: 0 24px 60px -34px rgba(0,0,0,.4); max-width: 38rem; }
.editor-bar { display: flex; align-items: center; height: 38px; border-bottom: 1px solid rgb(var(--g200)); background: rgb(var(--g50)); padding: 0 13px; gap: 8px; }
.editor-dot { width: 11px; height: 11px; border-radius: 50%; }
.editor-dot.r { background: #ff5f57; } .editor-dot.y { background: #febc2e; } .editor-dot.g { background: #28c840; }
.editor-file { margin-left: 8px; font-family: var(--ff-mono); font-size: 0.73rem; color: rgb(var(--g500)); }
.editor-file b { color: rgb(var(--ink)); font-weight: 500; }
.editor-body { font-family: var(--ff-mono); font-size: 0.85rem; line-height: 1.8; }
.editor-code { counter-reset: ln; position: relative; padding: 15px 18px 18px 54px; background: linear-gradient(to right, rgb(var(--g50)) 0 42px, transparent 42px); }
.editor-code::before { content: ""; position: absolute; left: 42px; top: 0; bottom: 0; width: 1px; background: rgb(var(--g200)); }
.editor-code .ln { position: relative; counter-increment: ln; }
.editor-code .ln::before { content: counter(ln); position: absolute; left: -42px; width: 30px; text-align: right; color: rgb(var(--g400)); font-size: 0.78rem; }
.editor-code .ln { white-space: pre-wrap; }
.editor-code .ln.blank { height: 0.9em; }
.editor-code .mkh { font-family: var(--ff-pixel); font-size: clamp(1.35rem, 4.4vw, 1.95rem); color: rgb(var(--ink)); line-height: 1.15; }
.editor-code .hash { color: rgb(var(--syn-key)); font-family: var(--ff-mono); }
.editor-code .cmt { color: rgb(var(--syn-comment)); }
.editor-code b { color: rgb(var(--ink)); font-weight: 600; }
.editor-code .kw { color: rgb(var(--syn-key)); } .editor-code .str { color: rgb(var(--syn-str)); } .editor-code .fn { color: rgb(var(--syn-fn)); } .editor-code .bullet { color: rgb(var(--syn-tag)); }

/* ---- Gear cards: one-line meta, image/text separation, smaller monitor ---- */
.gear-img { height: 128px; padding: 18px 18px 14px; }
.gear-img--sm img { max-height: 82px; }
.gear-meta { flex-direction: column; align-items: stretch; gap: 2px; padding: 11px 14px; border-top: 1px solid rgb(var(--g200)); background: rgb(var(--g50)); }
.gear-info { min-width: 0; gap: 2px; }
.gear-name, .gear-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.gear-arrow { display: none; }

/* ---- Experience timeline ---- */
.xp { position: relative; }
.xp-row { display: block; grid-template-columns: none; position: relative; padding: 0 0 26px 26px; align-items: stretch; }
.xp-row + .xp-row { border-top: none; }
.xp-row:hover { background: none; }
.xp-row::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: -4px; width: 1px; background: rgb(var(--g200)); }
.xp-row:last-child::before { display: none; }
.xp-row::after { content: ""; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--bg)); border: 2px solid rgb(var(--accent)); box-sizing: border-box; }
.xp-date { font-family: var(--ff-mono); font-size: 0.72rem; color: rgb(var(--accent)); white-space: normal; margin-bottom: 3px; }
.xp-role { font-size: 1.02rem; font-weight: 600; color: rgb(var(--ink)); }
.xp-co { font-family: var(--ff-mono); font-size: 0.76rem; color: rgb(var(--g500)); margin-top: 2px; }
.xp-type { display: inline-block; margin-top: 8px; font-family: var(--ff-mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.09em; color: rgb(var(--g500)); border: 1px solid rgb(var(--g200)); border-radius: 5px; padding: 2px 7px; }
.xp-desc { font-family: var(--ff); font-size: 0.9rem; line-height: 1.62; color: rgb(var(--g600)); margin-top: 10px; max-width: 44rem; }

/* ---- Snake as a mac window (opaque cover + zoom open) ---- */
.game-panel { padding: 0; overflow: hidden; transform: translateY(6px) scale(0.9); transform-origin: center; }
.game.in .game-panel { transform: none; }
.game-chrome { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-bottom: 1px solid rgb(var(--g200)); background: rgb(var(--g50)); }
.game-chrome .d { width: 11px; height: 11px; border-radius: 50%; }
.game-chrome .d.r { background: #ff5f57; } .game-chrome .d.y { background: #febc2e; } .game-chrome .d.g { background: #28c840; }
.game-file { margin-left: 8px; font-family: var(--ff-mono); font-size: 0.72rem; color: rgb(var(--g500)); }
.game-inner { padding: 20px 22px 22px; }
.game-cover { background: rgb(var(--bg)); }
.game-chrome button.game-close { position: static; padding: 0; border: none; cursor: pointer; display: grid; place-items: center; font-size: 0; }
.game-chrome button.game-close::after { content: "×"; font-size: 9px; line-height: 1; color: rgb(0 0 0 / 0.55); opacity: 0; transition: opacity .15s; }
.game-chrome:hover button.game-close::after { opacity: 1; }

/* ---- Responsive shell ---- */
@media (max-width: 1000px) {
  .act-bar, .statusbar, .tabbar { display: none; }
  .main { margin-left: 0; padding-bottom: 24px; }
}

/* ==================== App Showcase redesign ==================== */
.act-bar, .statusbar, .tabbar, .sidebar, .topbar, .mobile-menu, .s-div { display: none !important; }
.main { margin-left: 0; padding: 92px 0 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
body::after { display: none; }

/* Top nav */
.topnav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; gap: 18px; height: 66px; padding: 0 26px; background: rgb(var(--bg) / 0.72); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), background .25s var(--ease); }
.topnav.scrolled { border-bottom-color: rgb(var(--g200)); }
.tn-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.96rem; letter-spacing: -0.01em; color: rgb(var(--ink)); }
.tn-mk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgb(var(--ink)); color: rgb(var(--bg)); font-family: var(--ff-mono); font-size: 0.56rem; font-weight: 600; }
.tn-links { display: flex; gap: 2px; margin-left: auto; }
.tn-links a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 9px; font-size: 0.85rem; color: rgb(var(--g600)); transition: background .2s, color .2s; }
.tn-links a svg { width: 15px; height: 15px; opacity: 0.75; }
.tn-links a:hover { color: rgb(var(--ink)); background: rgb(var(--g100)); }
.tn-links a.active { color: rgb(var(--ink)); background: rgb(var(--g100)); }
.tn-links a.active svg { opacity: 1; color: rgb(var(--accent)); }
.tn-sep { width: 1px; height: 20px; background: rgb(var(--g200)); }
.tn-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: rgb(var(--g600)); transition: background .2s, color .2s; }
.tn-icon svg { width: 16px; height: 16px; }
.tn-icon:hover { color: rgb(var(--ink)); background: rgb(var(--g100)); }
.tn-snake svg { width: 13px; height: 13px; }
.tn-drawer a svg { width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px; opacity: 0.8; }
@media (max-width: 1360px) { .av-label { display: none; } }
@media (max-width: 1240px) { .tn-name { display: none; } .tn-snake .tn-snake-txt, .tn-snake kbd { display: none; } .tn-snake { width: 34px; height: 34px; padding: 0; justify-content: center; } }
@media (max-width: 1080px) { .tn-presence, .tn-sep { display: none; } }
.tn-actions { display: flex; align-items: center; gap: 12px; }
.tn-ask { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 9999px; border: 1px solid rgb(var(--g300)); background: none; color: rgb(var(--ink)); font-family: inherit; font-size: 0.85rem; cursor: pointer; transition: border-color .2s, background .2s; }
.tn-ask:hover { background: rgb(var(--g100)); border-color: rgb(var(--g400)); }
.tn-ask kbd { font-family: var(--ff-mono); font-size: 0.64rem; color: rgb(var(--g500)); }
.tn-burger { display: none; }

/* Hero */
.hero-x { position: relative; padding: 34px 0 20px; }
.hero-x::before { content: ""; position: absolute; inset: -140px 0 auto 0; height: 680px; background: radial-gradient(55% 60% at 18% 8%, rgb(var(--accent) / 0.18), transparent 70%), radial-gradient(48% 52% at 88% 0%, rgb(168 85 247 / 0.16), transparent 72%); pointer-events: none; z-index: -1; }
.hero-x-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; min-height: min(72vh, 600px); }
.hero-x-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-mono); font-size: 0.75rem; color: rgb(var(--g600)); border: 1px solid rgb(var(--g200)); border-radius: 9999px; padding: 6px 13px; }
.hero-x-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--green)); box-shadow: 0 0 0 3px rgb(var(--green) / 0.2); }
.hero-x-title { font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.03; letter-spacing: -0.03em; font-weight: 600; margin: 22px 0 0; }
.hero-x-title em { font-style: normal; background: linear-gradient(100deg, rgb(var(--accent)), rgb(168 85 247)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-x-sub { font-size: 1.06rem; color: rgb(var(--g600)); margin-top: 20px; max-width: 30rem; line-height: 1.55; }
.hero-x-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 9999px; background: rgb(var(--ink)); color: rgb(var(--bg)); font-weight: 500; font-size: 0.94rem; transition: transform .2s var(--ease), opacity .2s; }
.btn-primary:hover { transform: translateY(-2px); opacity: .92; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 9999px; border: 1px solid rgb(var(--g300)); font-weight: 500; font-size: 0.94rem; transition: border-color .2s, background .2s; }
.btn-ghost:hover { background: rgb(var(--g100)); }
.hero-x-stats { display: flex; gap: 34px; margin-top: 40px; }
.hero-x-stats > div { display: flex; flex-direction: column; }
.hero-x-stats b { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; }
.hero-x-stats span { font-size: 0.8rem; color: rgb(var(--g500)); margin-top: 2px; }

/* Hero device cluster */
.hero-x-devices { position: relative; height: 470px; display: flex; align-items: center; justify-content: center; }
.hx-device { position: absolute; width: 216px; border-radius: 34px; background: #0c0c10; padding: 8px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); border: 1px solid rgb(255 255 255 / 0.07); }
.hx-device img { width: 100%; display: block; border-radius: 27px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
.hx-device.d0 { transform: rotate(-9deg) translate(-94px, 14px); z-index: 1; }
.hx-device.d1 { transform: rotate(0deg) translateY(-16px); z-index: 3; }
.hx-device.d2 { transform: rotate(9deg) translate(94px, 14px); z-index: 2; }

/* Device frame */
.device { position: relative; border-radius: 30px; background: #0c0c10; padding: 7px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); border: 1px solid rgb(255 255 255 / 0.07); }
.device img { width: 100%; display: block; border-radius: 24px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }

/* Section heads (home) */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 88px 0 32px; }
.section-head h2 { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; color: rgb(var(--ink)); }
.section-head h2::before { content: none; }
.section-link { font-size: 0.9rem; color: rgb(var(--accent)); }
.section-link:hover { text-decoration: underline; }

/* Featured app rows */
.feat-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; padding: 26px 0; }
.feat-row.rev .feat-media { order: 2; }
.feat-media { display: flex; justify-content: center; position: relative; }
.feat-media::before { content: ""; position: absolute; inset: 6% 14%; background: radial-gradient(circle, rgb(0 0 0 / 0.14), transparent 68%); filter: blur(42px); z-index: -1; }
.feat-media .device { width: 256px; }
.feat-badge { display: inline-block; font-family: var(--ff-mono); font-size: 0.72rem; color: rgb(var(--ac)); background: rgb(var(--ac) / 0.13); border-radius: 9999px; padding: 5px 12px; }
.feat-info h3 { font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 0; color: rgb(var(--ink)); }
.feat-tag { font-size: 1.02rem; color: rgb(var(--g700)); margin-top: 5px; }
.feat-desc { color: rgb(var(--g600)); margin-top: 12px; max-width: 30rem; line-height: 1.6; font-size: 0.96rem; }

/* App tags + buttons */
.app-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.app-tags span { font-family: var(--ff-mono); font-size: 0.72rem; color: rgb(var(--g600)); border: 1px solid rgb(var(--g200)); border-radius: 7px; padding: 4px 9px; }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.app-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 17px; border-radius: 9999px; background: rgb(var(--ink)); color: rgb(var(--bg)); border: none; font-family: inherit; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: transform .2s var(--ease), opacity .2s; }
.app-btn:hover { transform: translateY(-2px); opacity: .92; }
.app-btn.ghost { background: none; color: rgb(var(--ink)); border: 1px solid rgb(var(--g300)); }
.app-btn.ghost:hover { background: rgb(var(--g100)); transform: none; }

/* App grid */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app-card { border: 1px solid rgb(var(--g200)); border-radius: 20px; overflow: hidden; cursor: pointer; background: rgb(var(--g50)); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.app-card:hover { transform: translateY(-5px); border-color: rgb(var(--g400)); box-shadow: 0 24px 44px -26px rgb(0 0 0 / 0.28); }
.ac-media { position: relative; padding: 26px 26px 0; display: flex; justify-content: center; background: radial-gradient(80% 62% at 50% 0%, rgb(var(--ink) / 0.045), transparent 70%); }
.ac-media .device { width: 152px; }
.ac-body { padding: 18px 20px 22px; }
.ac-top { display: flex; align-items: center; gap: 10px; }
.ac-plat { font-family: var(--ff-mono); font-size: 0.7rem; color: rgb(var(--g500)); }
.ac-live { font-family: var(--ff-mono); font-size: 0.68rem; color: rgb(var(--green)); margin-left: auto; }
.ac-off { font-family: var(--ff-mono); font-size: 0.68rem; color: rgb(var(--g400)); margin-left: auto; }
.ac-body h4 { font-size: 1.1rem; font-weight: 600; margin: 8px 0 0; color: rgb(var(--ink)); }
.ac-body p { font-size: 0.87rem; color: rgb(var(--g600)); margin-top: 6px; line-height: 1.5; }

.xp-section .xp { max-width: 760px; }

/* Footer */
.foot-x { margin-top: 96px; border-top: 1px solid rgb(var(--g200)); padding: 38px 0 64px; }
.foot-x .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-x a { color: rgb(var(--accent)); }
.foot-x span { color: rgb(var(--g500)); font-size: 0.88rem; }

/* Inner pages: keep them in the new language (top nav, no IDE prefixes) */
.page-hero { padding: 22px 0 8px; }
.page-hero h1 { font-family: var(--ff); font-weight: 600; letter-spacing: -0.02em; }
.page-hero h1::before, .sec-head h2::before, .stack-group h3::before { content: none !important; }
.sec-head h2, .stack-group h3 { font-family: var(--ff); }

/* Mobile */
.tn-drawer { display: none; }
@media (max-width: 900px) {
  .tn-links, .tn-actions { display: none; }
  .tn-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; margin-left: auto; background: none; border: none; cursor: pointer; }
  .tn-burger span { display: block; width: 22px; height: 2px; background: rgb(var(--ink)); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
  .tn-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .tn-burger.open span:nth-child(2) { opacity: 0; }
  .tn-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .tn-drawer { display: flex; flex-direction: column; gap: 4px; position: fixed; top: 66px; left: 0; right: 0; bottom: 0; z-index: 99; background: rgb(var(--bg)); padding: 22px 26px; transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; }
  .tn-drawer.open { transform: none; }
  .tn-drawer a { font-size: 1.25rem; font-weight: 500; padding: 12px 0; border-bottom: 1px solid rgb(var(--g100)); }
  .tn-drawer .theme-switch { margin-top: 18px; }
  .hero-x-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-x-devices { height: 360px; order: -1; margin-bottom: 8px; }
  .hx-device { width: 158px; }
  .hx-device.d0 { transform: rotate(-9deg) translate(-68px, 10px); }
  .hx-device.d2 { transform: rotate(9deg) translate(68px, 10px); }
  .feat-row, .feat-row.rev { grid-template-columns: 1fr; gap: 22px; }
  .feat-row .feat-media, .feat-row.rev .feat-media { order: -1; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { margin: 60px 0 26px; }
  .wrap { padding: 0 20px; }
}
@media (max-width: 560px) {
  .app-grid { grid-template-columns: 1fr; }
  .hero-x-stats { gap: 22px; }
  .hero-x-title { font-size: 2.3rem; }
}

/* ---- Inner pages in the new language ---- */
.wrap.wrap-mid { max-width: 860px; }
.block-label::before, .gear-group h3::before, .offer-section-label::before { content: none !important; }
.block-label, .gear-group h3, .offer-section-label { font-family: var(--ff); font-weight: 600; color: rgb(var(--ink)); }
#stackGrouped { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
#stackGrouped .stack-group { margin: 0; border: 1px solid rgb(var(--g200)); border-radius: 16px; padding: 20px 22px; background: rgb(var(--g50)); }
#stackGrouped .stack-group h3 { font-size: 1.05rem; margin-bottom: 14px; }
.gear-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ---- Hero identity (photo + name + role) ---- */
.hero-id { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }
.hero-avatar { position: relative; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: rgb(var(--g200)); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 4px rgb(var(--g100)); }
.hero-avatar span { font-family: var(--ff-mono); font-size: 0.78rem; color: rgb(var(--g500)); }
.hero-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-id-text { display: flex; flex-direction: column; }
.hero-id-name { font-weight: 600; font-size: 1.02rem; color: rgb(var(--ink)); }
.hero-id-role { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; color: rgb(var(--g500)); margin-top: 1px; }
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--green)); box-shadow: 0 0 0 3px rgb(var(--green) / 0.2); flex: none; }
.hero-x-sub b { color: rgb(var(--ink)); font-weight: 600; }

/* ---- Calmer scale: smaller type, tighter sections ---- */
.main { padding-top: 84px; }
.hero-x { padding: 16px 0 6px; }
.hero-x::before { opacity: 0.62; }
.hero-x-inner { min-height: 0; gap: 34px; }
.hero-x-title { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-top: 18px; }
.hero-x-sub { font-size: 0.95rem; margin-top: 14px; max-width: 32rem; }
.hero-x-cta { margin-top: 22px; }
.btn-primary, .btn-ghost { padding: 11px 19px; font-size: 0.89rem; }
.hero-x-stats { margin-top: 28px; gap: 26px; }
.hero-x-stats b { font-size: 1.3rem; }
.hero-avatar { width: 48px; height: 48px; }
.hero-x-devices { height: 380px; }
.hx-device { width: 176px; border-radius: 30px; }
.hx-device img { border-radius: 24px; }
.hx-device.d0 { transform: rotate(-9deg) translate(-78px, 12px); }
.hx-device.d2 { transform: rotate(9deg) translate(78px, 12px); }
/* Subtle float: `translate` composes with each device's rotate/offset transform */
.hx-device { animation: hxfloat 5.6s ease-in-out infinite; }
.hx-device.d1 { animation-delay: 1.3s; }
.hx-device.d2 { animation-delay: 2.6s; }
@keyframes hxfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.section-head { margin: 56px 0 22px; }
.section-head h2 { font-size: 1.3rem; }
.feat-row { gap: 34px; padding: 14px 0; }
.feat-media .device { width: 190px; }
.feat-info h3 { font-size: 1.4rem; margin-top: 12px; }
.feat-tag { font-size: 0.94rem; }
.feat-desc { font-size: 0.9rem; margin-top: 10px; }
.app-grid { gap: 18px; }
.ac-media { padding: 20px 20px 0; }
.ac-media .device { width: 124px; }
.ac-body h4 { font-size: 1rem; }
.ac-body p { font-size: 0.83rem; }
.foot-x { margin-top: 64px; padding: 30px 0 46px; }
@media (max-width: 900px) {
  .hero-x-devices { height: 300px; }
  .hx-device { width: 132px; }
  .hx-device.d0 { transform: rotate(-9deg) translate(-58px, 8px); }
  .hx-device.d2 { transform: rotate(9deg) translate(58px, 8px); }
}

/* ---- Top-nav presence (avatar stack) + snake ---- */
.tn-presence { display: inline-flex; align-items: center; gap: 9px; margin-right: 2px; }
.avatars { display: inline-flex; align-items: center; }
.av { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; color: #fff; letter-spacing: 0.02em; border: 2px solid rgb(var(--bg)); box-sizing: border-box; }
.av + .av { margin-left: -8px; }
.av.av-more { background: rgb(var(--g200)); color: rgb(var(--g700)); font-size: 8px; }
.av-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-mono); font-size: 0.66rem; color: rgb(var(--g500)); white-space: nowrap; }
.av-label .dot { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--green)); box-shadow: 0 0 0 3px rgb(var(--green) / 0.18); animation: blink 1.8s ease-in-out infinite; }
.tn-drawer-snake { text-align: left; background: none; border: none; font-family: inherit; font-size: 1.25rem; font-weight: 500; padding: 12px 0; border-bottom: 1px solid rgb(var(--g100)); color: rgb(var(--ink)); cursor: pointer; }

/* ---- Consulting card CTA ---- */
.offer-contact { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; font-size: 0.86rem; font-weight: 500; color: rgb(var(--accent)); }
.offer-contact:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Contact page ---- */
.wrap-wide-contact { max-width: 1020px; margin: 0 auto; padding: 0 32px; }
.contact-x { max-width: 660px; margin: 0 auto; }
.ph-center { text-align: center; }
.ph-center p { margin-left: auto; margin-right: auto; }
.contact-top { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 26px; }
.contact-icons { display: flex; gap: 10px; }
.c-ico { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgb(var(--g200)); border-radius: 50%; background: none; color: rgb(var(--g600)); cursor: pointer; transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease); }
.c-ico svg { width: 17px; height: 17px; }
.c-ico:hover { color: rgb(var(--ink)); border-color: rgb(var(--g400)); background: rgb(var(--g100)); transform: translateY(-2px); }
.cf { border: 1px solid rgb(var(--g200)); border-radius: 20px; background: rgb(var(--g50)); padding: 28px; }
.cf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field { display: flex; flex-direction: column; margin-bottom: 18px; }
.cf-field label { font-size: 0.82rem; font-weight: 600; color: rgb(var(--ink)); margin-bottom: 7px; }
.cf-field label em { font-style: normal; font-weight: 400; color: rgb(var(--g400)); font-size: 0.74rem; margin-left: 4px; }
.cf-field input, .cf-field select, .cf-field textarea { font-family: inherit; font-size: 0.92rem; color: rgb(var(--ink)); background: rgb(var(--bg)); border: 1px solid rgb(var(--g300)); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / 0.15); }
.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-field.invalid input, .cf-field.invalid textarea { border-color: #ef4444; box-shadow: 0 0 0 3px rgb(239 68 68 / 0.12); }
.cf-err { font-size: 0.75rem; color: #ef4444; margin-top: 6px; min-height: 0; }
.cf-err:empty { display: none; }
.cf-phone { display: flex; align-items: stretch; }
.cf-prefix { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid rgb(var(--g300)); border-right: none; border-radius: 12px 0 0 12px; background: rgb(var(--g100)); font-size: 0.88rem; color: rgb(var(--g700)); white-space: nowrap; cursor: pointer; }
.cf-field .cf-prefix { margin: 0; font-size: 0.88rem; font-weight: 400; }
.cf-phone { align-items: stretch; }
.cf-phone input { min-height: 46px; }
.cf-prefix, .cf-phone input { box-sizing: border-box; }
.cf-prefix:hover { background: rgb(var(--g200)); }
.cf-prefix select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; appearance: none; -webkit-appearance: none; }
.cf-caret { width: 13px; height: 13px; background: rgb(var(--g600)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.cf-phone input { border-radius: 0 12px 12px 0; }
.cf-select { position: relative; }
.cf-select::after { content: ""; position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; background: rgb(var(--g600)); pointer-events: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.cf-select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px; }
.cf-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.cf-note { font-size: 0.76rem; color: rgb(var(--g500)); }
.contact-side { display: flex; flex-direction: column; gap: 10px; }
.contact-side .contact-avail { margin-bottom: 8px; }
.cs-item { display: flex; flex-direction: column; gap: 2px; border: 1px solid rgb(var(--g200)); border-radius: 14px; padding: 14px 16px; background: none; font-family: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.cs-item:hover { border-color: rgb(var(--g400)); background: rgb(var(--g50)); }
div.cs-item { cursor: default; }
div.cs-item:hover { border-color: rgb(var(--g200)); background: none; }
.cs-label { font-family: var(--ff-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.09em; color: rgb(var(--g500)); }
.cs-value { font-size: 0.92rem; font-weight: 500; color: rgb(var(--ink)); }
.cs-value kbd { font-family: var(--ff-mono); font-size: 0.66rem; color: rgb(var(--g500)); }
@media (max-width: 860px) {
  .cf-row2 { grid-template-columns: 1fr; gap: 0; }
  .cf { padding: 20px; }
}

/* ---- Consulting revamp ---- */
.offer-hero { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; border: 1px solid rgb(var(--g200)); border-radius: 22px; padding: 30px; overflow: hidden; background: rgb(var(--g50)); margin-bottom: 42px; }
.offer-tag { display: inline-block; width: fit-content; font-family: var(--ff-mono); font-size: 0.7rem; color: rgb(var(--accent)); background: rgb(var(--accent) / 0.12); border-radius: 9999px; padding: 5px 12px; }
.offer-hero-title { font-family: var(--ff); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; margin: 12px 0 8px; }
.offer-hero-desc { font-size: 0.94rem; color: rgb(var(--g600)); line-height: 1.6; }
.offer-check { list-style: none; margin-top: 15px; display: flex; flex-direction: column; gap: 9px; padding: 0; }
.offer-check li { position: relative; padding-left: 27px; font-size: 0.89rem; color: rgb(var(--g700)); }
.offer-check li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; background: rgb(var(--green) / 0.15); color: rgb(var(--green)); display: grid; place-items: center; font-size: 0.6rem; font-weight: 700; }
.offer-hero-side { border-left: 1px dashed rgb(var(--g300)); padding-left: 28px; display: flex; flex-direction: column; justify-content: center; }
.ph-num { font-family: var(--ff); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: rgb(var(--ink)); background: none; -webkit-text-fill-color: initial; }
.ph-unit { color: rgb(var(--g500)); font-size: 0.84rem; margin-top: 2px; }
.offer-book { display: inline-flex; justify-content: center; align-items: center; margin-top: 18px; padding: 12px 20px; border-radius: 9999px; background: rgb(var(--ink)); color: rgb(var(--bg)); font-weight: 500; font-size: 0.9rem; transition: transform .2s var(--ease), opacity .2s; }
.offer-book:hover { transform: translateY(-2px); opacity: 0.92; }
.offer-section-label { font-size: 1.12rem; margin: 36px 0 18px; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.offer-card { display: flex; flex-direction: column; border: 1px solid rgb(var(--g200)); border-radius: 20px; background: rgb(var(--g50)); padding: 22px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.offer-grid .offer-card:nth-child(1) { --oc: 14 165 233; }
.offer-grid .offer-card:nth-child(2) { --oc: 168 85 247; }
.offer-grid .offer-card:nth-child(3) { --oc: 34 197 94; }
.offer-grid .offer-card:nth-child(4) { --oc: 249 115 22; }
.offer-card:hover { transform: translateY(-4px); border-color: rgb(var(--g400)); box-shadow: 0 22px 40px -26px rgb(0 0 0 / 0.28); }
.offer-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.offer-num { font-family: var(--ff-mono); font-size: 0.72rem; font-weight: 600; color: rgb(var(--oc)); background: rgb(var(--oc) / 0.12); padding: 4px 10px; border-radius: 8px; }
.offer-price { font-family: var(--ff-mono); font-size: 0.68rem; color: rgb(var(--g500)); border: 1px solid rgb(var(--g200)); border-radius: 9999px; padding: 4px 10px; }
.offer-card h3 { font-family: var(--ff); font-size: 1.14rem; font-weight: 600; }
.offer-desc { font-size: 0.88rem; color: rgb(var(--g600)); margin-top: 6px; line-height: 1.55; }
.offer-card .offer-check { margin-bottom: 18px; }
.offer-card .offer-contact { margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 6px; border: 1px solid rgb(var(--g300)); border-radius: 9999px; padding: 10px 16px; font-size: 0.86rem; font-weight: 500; color: rgb(var(--ink)); transition: border-color .2s, background .2s; }
.offer-card .offer-contact:hover { text-decoration: none; border-color: rgb(var(--g500)); background: rgb(var(--g100)); }
.offer-cta { text-align: center; border: 1px solid rgb(var(--g200)); border-radius: 20px; padding: 36px 22px; margin-top: 42px; background: rgb(var(--g50)); }
.offer-cta h3 { font-family: var(--ff); font-size: 1.3rem; font-weight: 600; }
.offer-cta p { color: rgb(var(--g600)); margin: 7px 0 18px; }
.offer-cta a { display: inline-flex; padding: 12px 20px; border-radius: 9999px; background: rgb(var(--ink)); color: rgb(var(--bg)); font-weight: 500; font-size: 0.9rem; }
@media (max-width: 720px) {
  .offer-hero { grid-template-columns: 1fr; }
  .offer-hero-side { border-left: none; border-top: 1px dashed rgb(var(--g300)); padding: 20px 0 0; }
  .offer-grid { grid-template-columns: 1fr; }
}

/* ---- Stack: logo tool tiles (no pills) ---- */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 7px; }
.tool { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid rgb(var(--g200)); border-radius: 10px; background: rgb(var(--bg)); min-width: 0; transition: border-color .2s, transform .2s var(--ease); }
.tool:hover { border-color: rgb(var(--g400)); transform: translateY(-1px); }
.tool-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #fff; border: 1px solid rgb(var(--g200)); flex: none; }
html.dark .tool-ico { border-color: transparent; }
.tool-ico img { width: 15px; height: 15px; display: block; }
.tool-mono { font-family: var(--ff-mono); font-size: 0.56rem; font-weight: 600; color: rgb(var(--sg, var(--g600))); letter-spacing: 0.02em; }
.tool-name { font-size: 0.78rem; color: rgb(var(--g700)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-count { border-radius: 7px; }

/* ---- Stack revamp ---- */
.sg-head { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.sg-ico { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: rgb(var(--sg) / 0.13); color: rgb(var(--sg)); flex: none; }
.sg-ico svg { width: 18px; height: 18px; }
.sg-head h3 { margin: 0 !important; font-size: 1.02rem !important; }
.sg-count { margin-left: auto; font-family: var(--ff-mono); font-size: 0.68rem; color: rgb(var(--g500)); border: 1px solid rgb(var(--g200)); border-radius: 9999px; padding: 3px 9px; }
#stackGrouped .stack-group { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
#stackGrouped .stack-group:hover { transform: translateY(-3px); border-color: rgb(var(--g400)); box-shadow: 0 20px 38px -26px rgb(0 0 0 / 0.25); }
#stackGrouped .stack-chip { transition: border-color .2s, color .2s, background .2s; }
#stackGrouped .stack-chip:hover { border-color: rgb(var(--g400)); color: rgb(var(--ink)); background: rgb(var(--g100)); }

/* ---- Contact form success + sending ---- */
.cf button[disabled] { opacity: 0.6; cursor: default; }
.cf-success { text-align: center; padding: 44px 12px; }
.cf-check { width: 56px; height: 56px; border-radius: 50%; background: rgb(var(--green) / 0.14); color: rgb(var(--green)); display: grid; place-items: center; margin: 0 auto 16px; }
.cf-check svg { width: 26px; height: 26px; }
.cf-success h3 { font-size: 1.3rem; font-weight: 600; }
.cf-success p { color: rgb(var(--g600)); margin-top: 7px; max-width: 26rem; margin-left: auto; margin-right: auto; }

/* ---- Home podium ---- */
.linklike { background: none; border: none; font-family: inherit; cursor: pointer; padding: 0; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 14px; max-width: 560px; margin: 0 auto; }
.pod { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; border: 1px solid rgb(var(--g200)); border-radius: 16px 16px 12px 12px; background: rgb(var(--g50)); padding: 18px 12px 14px; text-align: center; }
.pod.p1 { min-height: 172px; border-color: rgb(var(--g300)); }
.pod.p2 { min-height: 140px; }
.pod.p3 { min-height: 120px; }
.pod-empty { border-style: dashed; }
.pod-empty .pod-name { color: rgb(var(--g400)); }
.pod-medal { font-size: 1.7rem; line-height: 1; }
.pod.p1 .pod-medal { font-size: 2.1rem; }
.pod-name { font-family: var(--ff-mono); font-size: 0.78rem; color: rgb(var(--ink)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 6px; }
.pod-score { font-family: var(--ff-pixel); font-size: 1.35rem; color: rgb(var(--ink)); }
.pod.p1 .pod-score { font-size: 1.7rem; }
.podium-cta { text-align: center; margin-top: 22px; font-size: 0.9rem; color: rgb(var(--g600)); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.podium-play { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 9999px; background: rgb(var(--ink)); color: rgb(var(--bg)); border: none; font-family: inherit; font-size: 0.87rem; font-weight: 500; cursor: pointer; transition: transform .2s var(--ease), opacity .2s; }
.podium-play:hover { transform: translateY(-2px); opacity: 0.92; }
.podium-play kbd { font-family: var(--ff-mono); font-size: 0.64rem; opacity: 0.7; }
@media (max-width: 560px) { .podium { gap: 8px; } .pod-name { font-size: 0.68rem; } }

/* ---- Snake leaderboard ---- */
.game-cover { gap: 8px; padding: 24px 14px; overflow: hidden; }
.game-cover .game-cover-msg { font-size: 1.02rem; }
.game-cover .game-start { padding: 9px 20px; font-size: 0.78rem; }
.game-keys { grid-template-columns: repeat(3, 28px); grid-template-rows: repeat(2, 28px); gap: 5px; }
.gk { font-size: 0.82rem; border-radius: 7px; }
.lb-title { margin-bottom: 6px; }
.lb-row { padding: 4px 9px; }
.game-cover.dense { gap: 7px; }
.game-cover.dense .game-lb { max-width: 330px; }
.game-cover.dense .lb-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.game-cover.dense .lb-row { padding: 3px 9px; }
.game-lb { width: 100%; max-width: 250px; }
.game-lb[hidden], .lb-claim[hidden] { display: none; }
.lb-title { font-family: var(--ff-pixel); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--g500)); margin-bottom: 8px; text-align: center; }
.lb-title::before, .lb-title::after { content: " ◆ "; color: rgb(var(--accent)); font-size: 0.6rem; }
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lb-row { display: flex; align-items: center; gap: 9px; padding: 5px 9px; border: 1px solid rgb(var(--g200)); border-radius: 9px; background: rgb(var(--g50)); animation: lbin 0.34s var(--ease) both; }
.lb-row.me { border-color: rgb(var(--accent) / 0.55); background: rgb(var(--accent) / 0.1); }
@keyframes lbin { from { opacity: 0; transform: translateY(6px); } }
.lb-rank { flex: none; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font-family: var(--ff-mono); font-size: 0.62rem; font-weight: 700; background: rgb(var(--g200)); color: rgb(var(--g600)); }
.lb-rank.r1 { background: #f5b301; color: #3a2c00; }
.lb-rank.r2 { background: #c3ccd8; color: #2f3742; }
.lb-rank.r3 { background: #d29a6b; color: #3d2510; }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ff-mono); font-size: 0.74rem; color: rgb(var(--ink)); text-align: left; }
.lb-score { font-family: var(--ff-pixel); font-size: 0.82rem; color: rgb(var(--ink)); }
.lb-claim { display: flex; gap: 7px; width: 100%; max-width: 250px; }
.lb-claim input { flex: 1; min-width: 0; font-family: var(--ff-mono); font-size: 0.8rem; color: rgb(var(--ink)); background: rgb(var(--bg)); border: 1px solid rgb(var(--g300)); border-radius: 9999px; padding: 9px 14px; outline: none; }
.lb-claim input:focus { border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / 0.15); }
.lb-claim button { font-family: var(--ff-pixel); font-size: 0.72rem; padding: 9px 15px; border-radius: 9999px; background: rgb(var(--ink)); color: rgb(var(--bg)); border: none; cursor: pointer; white-space: nowrap; }
.lb-claim button:disabled { opacity: 0.6; }

/* ---- App Store style rating ---- */
.stars { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.stars b { font-size: 1.02rem; font-weight: 700; color: rgb(var(--g600)); }
.stars-row { display: inline-flex; gap: 1px; }
.stars-row svg { width: 15px; height: 15px; fill: rgb(var(--g600)); stroke: none; }
.stars-cap { font-size: 0.76rem; color: rgb(var(--g500)); }
