/* Skynet Inu, version 2 ("the cabinet"): title on top, links top-right, icon + info left, game right, CA bar below.
   One dark theme, one accent (laser red), gold only for compute and the plaque. Sharp corners with one notch size. */
:root {
  --ink: #0a0a0b; --panel: #121114; --raise: #1b1a1e; --line: rgba(255, 255, 255, .13);
  --bone: #f1ece2; --mute: #9a948b; --red: #ff2d20; --red-deep: #a8140c; --gold: #e3b44c;
  --wide: "Archivo", "Arial Black", system-ui, sans-serif; --mono: "Martian Mono", ui-monospace, Menlo, monospace; --jp: "Dela Gothic JP", "Hiragino Sans", sans-serif;
  --notch: 9px; --pad: clamp(14px, 2vw, 28px);
  --cut: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--bone); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--wide); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: radial-gradient(120% 70% at 78% 0%, rgba(255, 45, 32, .10), transparent 60%), var(--ink); }
h1, h2, p, figure, dl, dd, ol, blockquote { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--bone); color: var(--ink); padding: 10px 14px; font: 600 12px var(--mono); }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; white-space: nowrap; text-decoration: none;
  font: 800 12px/1 var(--wide); font-stretch: 118%; letter-spacing: .09em; text-transform: uppercase;
  padding: 14px 20px; background: var(--bone); color: var(--ink); clip-path: var(--cut); transition: transform .12s, background-color .12s, filter .12s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-hot { background: var(--red); color: #0a0a0b; }
.btn-ghost { background: var(--raise); color: var(--bone); }
.btn[aria-disabled="true"] { background: #262429; color: var(--mute); cursor: not-allowed; transform: none; filter: none; }
.btn[aria-disabled="true"]::after { content: "SOON"; font: 600 9px/1 var(--mono); letter-spacing: .08em; color: var(--ink); background: var(--gold); padding: 3px 5px; }

/* ---------- the cabinet (first screen) ---------- */
.cab { min-height: 100dvh; max-width: 1560px; margin: 0 auto; padding: var(--pad); display: grid; gap: clamp(12px, 1.6vw, 22px) clamp(16px, 2.2vw, 34px);
  grid-template-columns: clamp(210px, 20vw, 290px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top top" "side game" "ca ca"; }
.top { grid-area: top; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-bottom: clamp(8px, 1vw, 14px); border-bottom: 1px solid var(--line); }
.top-tag { font: 400 15px/1 var(--jp); color: var(--red); letter-spacing: .12em; }
.mark { font: 900 clamp(26px, 3.5vw, 50px)/.9 var(--wide); font-stretch: 125%; letter-spacing: -.01em; text-transform: uppercase; text-align: center; }
.mark span { color: var(--red); }
.top-links { justify-self: end; display: flex; clip-path: var(--cut); background: var(--line); gap: 1px; padding: 1px; }
.top-links a { display: block; padding: 11px 16px; background: var(--panel); text-decoration: none; font: 600 11px/1 var(--mono); letter-spacing: .14em; transition: background-color .12s, color .12s; }
.top-links a:hover { background: var(--bone); color: var(--ink); }
.top-links a[aria-disabled="true"] { color: #6d6861; cursor: not-allowed; }
.top-links a[aria-disabled="true"]:hover { background: var(--panel); color: #6d6861; }

.side { grid-area: side; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.icon { position: relative; background: var(--panel); clip-path: var(--cut); }
.icon picture, .icon img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.icon::before, .icon::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--red); pointer-events: none; z-index: 2; }
.icon::before { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.icon::after { right: 10px; bottom: 44px; border-left: 0; border-top: 0; }
.icon-eye { position: absolute; width: 26%; aspect-ratio: 1; margin: -13% 0 0 -13%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 120, 90, .85), rgba(255, 45, 32, .35) 38%, transparent 68%); animation: eye 2.6s ease-in-out infinite; }
.icon-eye.e1 { left: 44.9%; top: 43.9%; }
.icon-eye.e2 { left: 73.8%; top: 51.7%; animation-delay: -.4s; }
@keyframes eye { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.12); } }
.icon figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px 9px 14px; background: var(--ink); border-top: 1px solid var(--line); font: 600 10px/1.2 var(--mono); letter-spacing: .08em; }
.icon figcaption span:first-child { color: var(--red); }
.icon figcaption span:last-child { color: var(--gold); text-align: right; }
.hook { font: 800 clamp(14px, 1.25vw, 17px)/1.18 var(--wide); font-stretch: 118%; text-transform: uppercase; letter-spacing: .01em; }
.hook em { font-style: normal; color: var(--red); }
.lede { margin-top: 10px; color: #c9c3b8; font-size: 14px; line-height: 1.5; }
.keys { margin-top: 16px; border-top: 1px solid var(--line); font: 500 10.5px/1.5 var(--mono); }
.keys div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.keys dt { color: var(--mute); letter-spacing: .1em; text-transform: uppercase; }
kbd { display: inline-block; min-width: 18px; padding: 1px 5px; margin-right: 3px; text-align: center; font: inherit; background: var(--raise); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line); }

/* ---------- game ---------- */
.game { grid-area: game; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.g-screen { position: relative; width: min(100%, calc((100dvh - 252px) * 16 / 9)); min-width: min(100%, 520px); background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(255, 45, 32, .35); }
.g-screen::before, .g-screen::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--red); pointer-events: none; z-index: 3; }
.g-screen::before { left: -6px; top: -6px; border-right: 0; border-bottom: 0; }
.g-screen::after { right: -6px; bottom: -6px; border-left: 0; border-top: 0; }
.g-screen canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; image-rendering: pixelated; outline: none; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.g-over { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: clamp(8px, 1.3vw, 16px); padding: clamp(18px, 5%, 64px);
  background: linear-gradient(90deg, rgba(10, 10, 11, .94) 0%, rgba(10, 10, 11, .82) 46%, rgba(10, 10, 11, .25) 100%); }
.g-over[hidden] { display: none; }
.g-kicker { font: 600 clamp(9px, .85vw, 11px)/1 var(--mono); letter-spacing: .18em; color: var(--red); }
.g-over h2 { font: 900 clamp(26px, 5.2vw, 76px)/.88 var(--wide); font-stretch: 125%; letter-spacing: -.015em; text-transform: uppercase; }
.g-pitch { max-width: 34ch; font-size: clamp(12px, 1.15vw, 16px); line-height: 1.45; color: #d8d2c7; }
.g-best { font: 500 10px/1.3 var(--mono); letter-spacing: .08em; color: var(--gold); }
.g-end { flex-direction: row; align-items: center; gap: clamp(14px, 3vw, 44px); background: rgba(10, 10, 11, .93); }
.g-end picture { flex: 0 0 26%; }
.g-end img { display: block; width: 100%; height: auto; clip-path: var(--cut); box-shadow: 0 0 0 1px var(--line); }
.g-end > div { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(6px, .9vw, 12px); min-width: 0; }
.g-end h2 { font-size: clamp(16px, 2.7vw, 40px); }
.g-grade { font: 900 clamp(44px, 9vw, 130px)/.8 var(--wide); font-stretch: 125%; color: var(--gold); }
.g-stats { font: 600 clamp(9px, .95vw, 12px)/1.4 var(--mono); letter-spacing: .08em; color: #d8d2c7; white-space: pre-wrap; }
.g-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.g-bar { width: min(100%, calc((100dvh - 252px) * 16 / 9)); min-width: min(100%, 520px); display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; padding-top: 12px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; color: var(--mute); }
.g-hint { margin-right: auto; }
.g-bar button { padding: 4px 0; color: var(--bone); letter-spacing: .12em; border-bottom: 1px solid transparent; }
.g-bar button:hover { border-bottom-color: var(--red); }
.g-bar button[hidden] { display: none; }
.g-pad { display: none; width: 100%; justify-content: space-between; gap: 10px; padding-top: 10px; touch-action: none; -webkit-user-select: none; user-select: none; }
.g-pad div { display: flex; gap: 8px; }
.g-pad button { min-width: 64px; height: 60px; padding: 0 14px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line), inset 0 -4px 0 rgba(0, 0, 0, .45); font: 800 12px/1 var(--wide); font-stretch: 118%; letter-spacing: .08em; touch-action: none; -webkit-tap-highlight-color: transparent; }
.g-pad button.on { background: #2b292f; transform: translateY(2px); box-shadow: inset 0 0 0 1px var(--line); }
.g-pad .b-jump { background: var(--red); color: #0a0a0b; min-width: 92px; }
.g-pad .b-jump.on { background: var(--red-deep); }
@media (pointer: coarse) { .g-pad { display: flex; } .keys, .g-hint { display: none; } }
.game:fullscreen { background: #000; justify-content: center; padding: 12px; }
.game:fullscreen .g-screen, .game:fullscreen .g-bar { width: min(100%, calc((100dvh - 140px) * 16 / 9)); }

/* ---------- CA bar ---------- */
.ca { grid-area: ca; display: flex; align-items: stretch; gap: 1px; width: min(100%, 1040px); margin: 0 auto; background: var(--line); padding: 1px; clip-path: var(--cut); }
.ca > * { background: var(--panel); }
.ca-label { display: grid; place-items: center; padding: 0 20px; background: var(--red); color: #0a0a0b; font: 900 15px/1 var(--wide); font-stretch: 125%; }
.ca-value { flex: 1; min-width: 0; display: flex; align-items: center; padding: 14px 16px; font: 500 13px/1.3 var(--mono); letter-spacing: .02em; overflow-wrap: anywhere; color: var(--bone); }
.ca-value[data-empty] { color: var(--mute); }
.ca-copy { padding: 0 20px; font: 600 11px/1 var(--mono); letter-spacing: .16em; transition: background-color .12s, color .12s; }
.ca-copy:hover:not(:disabled) { background: var(--bone); color: var(--ink); }
.ca-copy:disabled { color: #5f5a54; cursor: not-allowed; }
.ca .ca-buy { clip-path: none; padding-inline: 24px; }
.ca .ca-buy[aria-disabled="true"] { background: #1f1d22; }

/* ---------- below the fold (half a screen) ---------- */
.below { max-width: 1560px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--pad) clamp(20px, 2.4vw, 32px); display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: clamp(20px, 3vw, 48px); border-top: 1px solid var(--line); }
.below h2 { font: 900 clamp(17px, 1.7vw, 24px)/1.02 var(--wide); font-stretch: 122%; text-transform: uppercase; letter-spacing: -.005em; margin-bottom: 16px; }
.below h2 em { font-style: normal; color: var(--red); }
blockquote p { font: 400 clamp(15px, 1.3vw, 18px)/1.5 Georgia, "Times New Roman", serif; color: #e7e1d6; }
mark { background: linear-gradient(transparent 12%, rgba(255, 45, 32, .9) 12%, rgba(255, 45, 32, .9) 88%, transparent 88%); color: #0a0a0b; padding: 0 3px; }
blockquote footer { margin-top: 12px; font: 500 10.5px/1.5 var(--mono); letter-spacing: .04em; color: var(--mute); }
.b-line li, .b-buy li { display: grid; gap: 2px 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.b-line li { grid-template-columns: 1fr auto; align-items: baseline; }
.b-line b { font: 800 13px/1.2 var(--wide); font-stretch: 118%; text-transform: uppercase; letter-spacing: .03em; }
.b-line span { font: 500 10.5px/1.3 var(--mono); color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.b-line .now b { color: var(--red); }
.b-line .now span { color: var(--bone); }
.b-buy ol { counter-reset: s; }
.b-buy li { grid-template-columns: 30px 1fr; counter-increment: s; font-size: 14.5px; color: #d8d2c7; }
.b-buy li::before { content: "0" counter(s); font: 600 10.5px/1.9 var(--mono); color: var(--red); letter-spacing: .08em; }
.foot { max-width: 1560px; margin: 0 auto; padding: 18px var(--pad) 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); border-top: 1px solid var(--line); font: 400 12px/1.55 var(--wide); color: var(--mute); }
.foot b { color: var(--bone); font-weight: 700; }

/* ---------- small screens: game first, then CA, then the dog ---------- */
@media (max-width: 900px) {
  .cab { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "top" "game" "ca" "side"; }
  .top { grid-template-columns: 1fr auto; }
  .top-tag { display: none; }
  .mark { text-align: left; font-size: clamp(24px, 7.4vw, 40px); }
  .g-screen, .g-bar { width: 100%; min-width: 0; }
  .side { flex-direction: row; align-items: flex-start; gap: 14px; }
  .icon { flex: 0 0 34%; max-width: 190px; }
  .icon figcaption span:last-child { display: none; }
  .info { min-width: 0; }
  .ca { flex-wrap: wrap; }
  .ca-value { flex-basis: 50%; }
  .ca .ca-buy { flex: 1 0 100%; }
  .below, .foot { grid-template-columns: 1fr; }
  .g-end picture { display: none; }
}
@media (prefers-reduced-motion: reduce) { .icon-eye { animation: none; opacity: .7; } .btn, .btn:hover, .btn:active { transition: none; transform: none; } }
