:root {
  color-scheme: light;
  --paper: #f8f8f2;
  --ink: #24251f;
  --muted: #56594b;
  --line: #dcded1;
  --accent: #e2edaa;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui, sans-serif; }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: #4d5b24; }
a:focus-visible, button:focus-visible { outline: 2px solid #556626; outline-offset: 5px; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
img { max-width: 100%; }
.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top { min-height: 78px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; font-weight: 750; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand img { margin-right: 10px; }
.brand span { font-weight: 500; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 3vw, 32px); font-size: .87rem; }
nav a { text-decoration: none; }
.external { border: 1px solid var(--line); border-radius: 6px; padding: 6px 11px; }
.hero { padding: 88px 0 92px; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(26px, 6vw, 88px); }
.tag, figcaption, .kind { font: 500 .78rem/1.5 var(--mono); color: var(--muted); }
.edition { display: flex; align-items: center; gap: 10px; font: 500 .85rem/1.5 var(--mono); color: var(--muted); }
.edition a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.edition a > span:first-child { width: 8px; height: 8px; border-radius: 50%; background: #657535; }
.edition a:hover bdi { text-decoration: underline; }
.edition-arrow { font-size: .8em; transition: transform .2s ease; }
.edition a:hover .edition-arrow { transform: translate(2px, -2px); }
h1 { margin: 21px 0; font-size: clamp(3.75rem, 7.8vw, 7rem); font-weight: 720; line-height: .92; letter-spacing: -.065em; }
h1 em { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.05em; }
.intro { max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.16rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.quiet { font-size: .9rem; font-weight: 600; }
.button { display: inline-flex; gap: 24px; align-items: center; min-height: 44px; border-radius: 6px; padding: 10px 16px; background: var(--accent); font-size: .88rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #d5e494; }
.button.ghost { background: transparent; border: 1px solid #b9bfa4; }
.button.ghost:hover { background: #eef3d2; }
.blueprint { background: #eeefe4; border: 1px solid #d7daca; border-radius: 10px; overflow: hidden; }
.blueprint svg { display: block; width: 100%; }
figcaption { display: flex; justify-content: space-between; padding: 11px 14px; border-top: 1px solid #d7daca; }
#projects, .craft { padding-top: 28px; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.lede { max-width: 60ch; color: var(--muted); font-size: 1.05rem; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.08; letter-spacing: -.05em; }
.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
article { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.preview { display: grid; place-items: center; padding: 7% 8%; aspect-ratio: 1.93; }
.japanese { background: #e8eaf5; }
.notes { background: #f0e7d7; }
.preview.bleed { padding: 0; background: #f4f1ea; overflow: hidden; }
.preview.bleed img { width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; }
.preview.dark { background: #16151d; }
.preview.logo-only { background: #111018; }
.preview.logo-only img { width: 96px; max-height: none; border-radius: 22%; }
.soon { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 600 .8rem/1.4 var(--mono); color: var(--ink) !important; }
.soon span { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #657535; box-shadow: 0 0 0 4px #e2edaa; }
.pill { margin-left: 4px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; font-size: .68rem; letter-spacing: 0; }
.preview img { width: 100%; height: auto; max-height: 230px; object-fit: contain; border-radius: 8px; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 25px 25px; }
h3 { margin: 4px 0 8px; font-size: 1.8rem; line-height: 1.15; letter-spacing: -.04em; }
.card-body p:not(.kind), .project-list p, .about p, .craft dd { color: var(--muted); }
.named { display: flex; align-items: center; gap: .45em; }
.named img { flex: none; border-radius: 22%; }
article:hover { border-color: #b9bfa4; }
.card-body a, .about a { display: inline-block; align-self: flex-start; font-size: .9rem; font-weight: 700; }
.card-body a { margin-top: auto; padding-top: 16px; }
.more { margin-top: 64px; }
.more > h3 { margin-bottom: 20px; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.tools h4 { margin: 2px 0 6px; padding: 0; font: 700 1.25rem/1.2 system-ui, sans-serif; letter-spacing: -.03em; color: var(--ink); }
.tools .card-body { padding: 18px 20px 20px; }
.tools .card-body p:not(.kind) { font-size: .94rem; }
.groups { display: grid; gap: 34px; }
.groups section { display: grid; grid-template-columns: minmax(150px, 1fr) 3.4fr; gap: 14px; }
h4 { font: 500 .95rem/1.5 var(--mono); color: var(--muted); padding-top: 13px; }
h5 { margin: 0; font-size: 1.04rem; letter-spacing: -.02em; }
.project-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.project-list li { display: grid; align-items: baseline; grid-template-columns: minmax(100px, .75fr) minmax(0, 2.6fr) 118px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.project-list a, .project-list .tag { justify-self: end; white-space: nowrap; }
.project-list a { font-size: .85rem; font-weight: 650; }
.craft { margin-top: 84px; }
.craft dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(32px, 7vw, 88px); margin: 28px 0 0; max-width: 980px; }
dt { font-weight: 700; letter-spacing: -.02em; }
dd { margin: 4px 0 0; max-width: 46ch; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 84px 0 45px; padding: clamp(24px, 4vw, 40px); border-radius: 10px; background: #ecefe0; }
.about .open { margin-top: 14px; color: var(--ink); font-weight: 650; }
.contact { margin: 0 0 56px; padding: clamp(28px, 5vw, 56px); border-radius: 12px; background: var(--ink); color: var(--paper); }
.contact h2 { margin-bottom: 10px; }
.contact p { max-width: 52ch; color: #c9cbbd; }
.contact .button { color: var(--ink); }
.contact .quiet { color: var(--paper); }
.contact a:focus-visible { outline-color: var(--accent); }
.footer { padding-block: 19px; border-top: 1px solid var(--line); }
.footer { flex-wrap: wrap; }
.footer-note { margin: 0 auto; padding: 0 0 28px; color: var(--muted); font: 500 .76rem/1.5 var(--mono); }
.footer nav { font-size: .82rem; }
@media (max-width: 1000px) and (min-width: 721px) {
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .top { flex-wrap: wrap; row-gap: 8px; padding: 12px 0; }
  .top nav { flex: none; margin-left: auto; }
  .top .external { padding: 6px; }
  .top .external .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .shell { width: calc(100% - 36px); }
  .hero { grid-template-columns: 1fr; padding: 54px 0 50px; }
  .blueprint { max-width: 420px; }
  .featured, .tools, .about { grid-template-columns: 1fr; }
  .groups section, .craft dl { grid-template-columns: 1fr; }
  .groups section { gap: 4px; }
  h4 { padding-top: 0; }
  .project-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .project-list p { grid-area: 2 / 1 / 3 / -1; }
  .craft { margin-top: 60px; }
  .about { margin-top: 60px; }
}
@media (max-width: 420px) {
  .top { flex-wrap: wrap; padding: 12px 0; gap: 10px; }
  nav { margin-left: auto; gap: 10px; }
  nav a { font-size: .75rem; }
}
@media (max-width: 360px) {
  h1 { font-size: 3.35rem; }
}
.blueprint img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.box-launch { position: relative; display: block; width: 100%; padding: 0; border: 0; background: url("assets/cardboard-grid.svg") center / 100% 100% no-repeat; color: inherit; font: inherit; cursor: pointer; }
.box-launch-label { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; min-height: 44px; border-radius: 6px; padding: 10px 16px; background: var(--accent); font-size: .88rem; font-weight: 700; }
.box-launch:hover .box-launch-label { background: #d5e494; }
.box-launch:active img { transform: scale(.985); }
.box-game { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #eeefe4; color: var(--ink); transform-origin: 0 0; }
.box-game::backdrop { background: transparent; }
html:has(.box-game[open]) { overflow: hidden; }
.box-game canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; outline: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.game-hud { position: absolute; top: max(14px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 18px; pointer-events: none; }
.game-lives { display: flex; gap: 4px; }
.game-lives img { display: block; }
.game-count { display: flex; align-items: center; gap: 6px; margin: 0; font: 700 1.5rem/1 var(--mono); }
.game-count img { display: block; }
.game-hint { position: absolute; top: 24%; left: 50%; width: min(88%, 460px); margin: 0; font-weight: 650; text-align: center; transform: translateX(-50%); pointer-events: none; }
.game-hint[hidden], .game-panel[hidden] { display: none; }
.game-close { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); width: 44px; height: 44px; border: 1px solid #a4a594; border-radius: 6px; background: #f8f8f2; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.game-panel { position: absolute; top: 50%; left: 50%; display: grid; justify-items: center; gap: 6px; width: min(90%, 380px); max-height: calc(100dvh - 76px); overflow-y: auto; padding: 24px; border: 1px solid #a4a594; border-radius: 10px; background: #f8f8f2; text-align: center; transform: translate(-50%, -50%); }
.game-panel h2 { font-size: 2rem; margin-bottom: 6px; }
.game-panel p { color: var(--muted); }
.game-panel .button { margin-top: 12px; border: 0; color: var(--ink); font-family: inherit; cursor: pointer; }
.rank-form, .rank-board { display: grid; gap: 6px; width: 100%; margin-top: 12px; text-align: left; }
.rank-form[hidden], .rank-board[hidden], .rank-you[hidden], .rank-error[hidden] { display: none; }
.rank-form label { font-weight: 650; }
.rank-row { display: flex; gap: 8px; }
.rank-row input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #8a8d78; border-radius: 6px; background: #fff; color: var(--ink); font: 16px/1.3 system-ui, sans-serif; }
.rank-row input:focus-visible { outline: 2px solid #556626; outline-offset: 1px; }
.rank-row .button { border: 0; color: var(--ink); font-family: inherit; cursor: pointer; }
.game-panel .rank-note { font-size: .8rem; }
.game-panel .rank-error { color: #a32d20; font-size: .88rem; font-weight: 600; }
.rank-board h3 { margin: 0; font-size: 1.15rem; }
.game-panel .rank-you { color: var(--ink); font-weight: 700; }
.rank-board ol { margin: 0; padding: 0 0 0 1.7em; font-variant-numeric: tabular-nums; }
.rank-board li { padding: 3px 0; color: var(--muted); }
.rank-board li span { display: inline-block; max-width: 70%; overflow-wrap: anywhere; }
.rank-board li strong { float: right; color: var(--ink); }
.rank-board li.is-you, .rank-board li.is-you span { color: var(--ink); font-weight: 700; }

.social { display: inline-flex; align-items: center; gap: 7px; }
.social .icon { flex: none; }

/* Botón de jugar: lima y negro; al pasar por encima se invierte a negro y lima */
.play-cta { gap: 10px; border: 0; background: var(--accent); color: var(--ink); font-family: inherit; cursor: pointer; transition: background .2s ease, color .2s ease; }
.play-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: .62rem; transition: background .2s ease, color .2s ease; }
.play-cta:hover, .play-cta:focus-visible { background: var(--ink); color: var(--accent); }
.play-cta:hover .play-icon, .play-cta:focus-visible .play-icon { background: var(--accent); color: var(--ink); }
.box-launch-label { gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 1rem; box-shadow: 0 4px 12px #24251f22; transition: background .2s ease, color .2s ease; }
.box-launch-label::before { content: "▶"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: .65rem; transition: background .2s ease, color .2s ease; }
.box-launch:hover .box-launch-label, .box-launch:focus-visible .box-launch-label { background: var(--ink); color: var(--accent); }
.box-launch:hover .box-launch-label::before, .box-launch:focus-visible .box-launch-label::before { background: var(--accent); color: var(--ink); }
.box-launch img { transform-origin: 50% 80%; animation: box-buzz 4.5s linear infinite; }
figcaption span:first-child { color: var(--ink); font-weight: 600; }
@keyframes play-pulse { 0% { box-shadow: 0 0 0 0 #657535aa; } 70% { box-shadow: 0 0 0 14px #65753500; } 100% { box-shadow: 0 0 0 0 #65753500; } }
@keyframes label-pulse { 0% { box-shadow: 0 6px 18px #24251f30, 0 0 0 0 #65753580; } 70% { box-shadow: 0 6px 18px #24251f30, 0 0 0 12px #65753500; } 100% { box-shadow: 0 6px 18px #24251f30, 0 0 0 0 #65753500; } }
@keyframes box-buzz { 0%, 70%, 100% { transform: none; } 72% { transform: translate(-2px, 0) rotate(-1.5deg); } 74% { transform: translate(2px, -1px) rotate(1.5deg); } 76% { transform: translate(-2px, -2px) rotate(-1deg); } 78% { transform: translate(2px, 0) rotate(1.2deg); } 80% { transform: translate(-1px, -1px) rotate(-.6deg); } 82% { transform: none; } 86% { transform: translate(1px, -3px) rotate(.8deg) scaleY(.98); } 89% { transform: none; } }
@keyframes box-nudge { 0%, 90%, 100% { transform: none; } 93% { transform: rotate(-2deg) translateY(-3px); } 96% { transform: rotate(1.5deg) translateY(-3px); } }
/* Destello de "idea": un brillo cruza el botón y salta una chispa, cada pocos segundos */
.play-cta { position: relative; overflow: visible; isolation: isolate; }
.box-launch-label { isolation: isolate; }
.play-cta::after, .box-launch-label::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(110deg, transparent 35%, #ffffffcc 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: 130% 0; animation: idea-shine 5s ease-in-out infinite; pointer-events: none; }
.box-launch-label::after { z-index: 0; mix-blend-mode: soft-light; }
.play-cta::before { content: "✦"; position: absolute; top: -11px; right: -9px; color: #657535; font-size: 1rem; line-height: 1; opacity: 0; animation: idea-spark 5s ease-in-out infinite; pointer-events: none; }
.play-cta:hover::after, .box-launch:hover .box-launch-label::after { animation: none; }
@keyframes idea-shine { 0%, 62% { background-position: 130% 0; } 80%, 100% { background-position: -30% 0; } }
@keyframes idea-spark { 0%, 70% { opacity: 0; transform: scale(.3) rotate(0deg); } 78% { opacity: 1; transform: scale(1.15) rotate(25deg); } 88% { opacity: 1; transform: scale(1) rotate(40deg); } 96%, 100% { opacity: 0; transform: scale(.4) rotate(60deg); } }
@media (prefers-reduced-motion: reduce) { .play-cta, .box-launch-label, .box-launch img, .play-cta::after, .play-cta::before, .box-launch-label::after { animation: none; } }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: -.02em; }
:lang(ja) body { word-break: auto-phrase; line-break: strict; }

/* "Trabajemos juntos": señal de disponibilidad + flecha que avanza */
.hire-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .9rem; font-weight: 650; text-decoration: none; }
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2f9e44; }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2f9e44; animation: status-ping 2s ease-out infinite; }
.hire-lead { color: var(--muted); font: 500 .78rem/1 var(--mono); }
.hire-lead::after { content: "·"; margin-left: 8px; }
.hire-text { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .25s ease; }
.hire-arrow { transition: transform .25s ease; }
.hire-link:hover .hire-arrow, .hire-link:focus-visible .hire-arrow { transform: translateX(4px); }
.hire-link:hover .hire-text { background-size: 0 1.5px; background-position: 100% 100%; }
@keyframes status-ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .status-dot::after { animation: none; } .hire-arrow { transition: none; } }
