:root {
  color-scheme: dark;
  --bg: #050812;
  --panel: rgba(10, 15, 30, .78);
  --panel-2: rgba(12, 17, 33, .92);
  --line: rgba(142, 159, 208, .20);
  --text: #f5f7ff;
  --muted: #9ba8c6;
  --purple: #9b67ff;
  --blue: #38a8ff;
  --cyan: #62ffd6;
  --gold: #f4b640;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(72, 66, 190, .16), transparent 32rem),
    radial-gradient(circle at 100% 25%, rgba(28, 119, 201, .10), transparent 30rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.ambient { position: fixed; inset: auto; width: 22rem; height: 22rem; border-radius: 50%; filter: blur(90px); opacity: .09; pointer-events: none; z-index: -1; }
.ambient-a { background: #7447ff; top: 6rem; left: -12rem; }
.ambient-b { background: #00b7ff; top: 28rem; right: -14rem; }
.shell { width: min(100% - 28px, 1080px); margin-inline: auto; }
.site-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; color: var(--text); display: inline-flex; flex-direction: column; gap: 3px; }
.brand-word { font-weight: 850; letter-spacing: .14em; font-size: clamp(1.25rem, 4vw, 1.75rem); }
.brand-word span { color: var(--purple); }
.brand small { color: #7280a4; font-size: .63rem; letter-spacing: .45em; }
.mini-nav { color: #aeb9d8; font-size: .72rem; letter-spacing: .15em; text-decoration: none; border: 1px solid var(--line); padding: 9px 12px; border-radius: 999px; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 34px 0 24px; border-top: 1px solid rgba(133, 150, 205, .12); }
.eyebrow { margin: 0 0 8px; color: #83a4ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; letter-spacing: .25em; }
.intro h1 { margin: 0; font-size: clamp(2rem, 8vw, 4.8rem); line-height: .95; letter-spacing: -.04em; }
.intro-copy { max-width: 360px; color: var(--muted); margin: 0; line-height: 1.65; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-card { position: relative; min-width: 0; min-height: 184px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(15, 22, 42, .92), rgba(7, 11, 23, .96)); overflow: hidden; display: flex; align-items: stretch; text-decoration: none; text-align: left; padding: 0; cursor: pointer; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.project-card:focus-visible, .game-card:focus-visible, .submit-btn:focus-visible, .secondary-btn:focus-visible, .modal-close:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #a879ff; outline-offset: 3px; }
.live-card:hover { transform: translateY(-2px); }
.hun-card { border-color: rgba(52, 169, 255, .34); }
.env-card { border-color: rgba(244, 182, 64, .30); }
.project-copy { min-width: 0; padding: 24px; display: flex; flex-direction: column; z-index: 2; }
.project-code { font-size: clamp(1.65rem, 5vw, 2.5rem); font-weight: 850; letter-spacing: -.04em; }
.small-code { font-size: clamp(1.2rem, 4vw, 1.7rem); letter-spacing: -.02em; }
.project-name { color: #aab6d3; margin-top: 3px; font-size: .92rem; }
.status { margin-top: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem; letter-spacing: .08em; }
.status.live { color: var(--cyan); display: inline-flex; align-items: center; gap: 8px; }
.status.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px rgba(98,255,214,.85); }
.status.locked { color: #a789ff; }
.project-icon { margin-left: auto; width: 44%; display: grid; place-items: center; align-self: stretch; position: relative; }
.project-icon::before { content: ""; position: absolute; width: 120px; aspect-ratio: 1; border-radius: 50%; filter: blur(32px); opacity: .36; }
.icon-hun::before { background: #0b8dff; }
.icon-env::before { background: #ffae22; }
.project-icon img { width: min(82px, 70%); position: relative; z-index: 1; filter: drop-shadow(0 0 12px currentColor); }
.icon-hun { color: #32a9ff; }
.icon-env { color: #ffc450; }
.arrow { position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; border: 1px solid rgba(190, 202, 241, .25); border-radius: 50%; display: grid; place-items: center; color: #cbd4ec; }
.locked-card { min-height: 142px; }
.locked-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(146, 94, 255, .04)); pointer-events: none; }
.locked-card:hover { border-color: rgba(158, 109, 255, .42); background: rgba(16, 15, 35, .92); }
.ghost-icon { margin: 20px 22px 0 auto; color: #976cff; font-size: 2rem; text-shadow: 0 0 16px rgba(151,108,255,.35); }
.game-teaser { margin: 26px 0; padding-top: 24px; border-top: 1px solid rgba(133, 150, 205, .14); }
.game-card { width: 100%; min-height: 118px; border-radius: 18px; border: 1px solid rgba(138, 153, 207, .20); background: linear-gradient(120deg, rgba(10,15,29,.9), rgba(9,13,27,.96)); color: var(--text); display: flex; align-items: center; gap: 18px; padding: 20px; position: relative; cursor: pointer; overflow: hidden; }
.game-card:hover { border-color: rgba(160, 114, 255, .46); }
.game-label { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.game-label > span { font-weight: 850; font-size: clamp(1rem, 4vw, 1.4rem); letter-spacing: -.02em; }
.game-label b { color: #9f70ff; }
.game-label small { margin-top: 5px; color: #8190b6; letter-spacing: .17em; font-size: .64rem; }
.pixel-preview { margin-left: auto; margin-right: 50px; display: flex; align-items: end; gap: 10px; }
.tiny-cat-art { width: 54px; height: 42px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 0 5px rgba(159,112,255,.28)); }
.tiny-bowl { display: inline-block; width: 27px; height: 13px; border-radius: 4px 4px 9px 9px; box-shadow: inset 0 3px rgba(255,255,255,.2); }
.tiny-bowl.blue { background: #248cf7; }.tiny-bowl.red { background: #f05456; }.tiny-bowl.green { background: #38b96b; }
.ideas { margin: 0 0 72px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; padding: 34px; border: 1px solid rgba(140, 155, 207, .20); border-radius: 22px; background: rgba(8, 12, 25, .58); }
.ideas h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.5rem); letter-spacing: -.035em; }
.ideas-head > p:last-child { color: var(--muted); line-height: 1.6; }
.idea-form { display: flex; flex-direction: column; gap: 14px; }
.idea-form label { display: flex; flex-direction: column; gap: 7px; color: #aab5d1; font-size: .78rem; }
textarea, input { width: 100%; border: 1px solid rgba(143, 160, 211, .26); background: rgba(5, 8, 18, .68); color: var(--text); border-radius: 13px; padding: 14px 15px; font-size: 16px; }
textarea { min-height: 132px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-bottom { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
#ideaCount { margin-right: auto; color: #687697; font: .72rem ui-monospace, monospace; }
.submit-btn, .secondary-btn { border: 0; border-radius: 12px; padding: 13px 18px; cursor: pointer; font-weight: 800; letter-spacing: .04em; }
.submit-btn { color: white; background: linear-gradient(90deg, #8e56ff, #436df2); }
.submit-btn:disabled { opacity: .5; cursor: progress; }
.secondary-btn { color: #dfe5f8; background: #11182d; border: 1px solid rgba(155, 171, 222, .22); }
.form-message { min-height: 1.2em; margin: 0; color: var(--cyan); font-size: .82rem; }
.form-message.error { color: #ff8f9b; }
.footer { padding: 0 0 44px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #8290b4; letter-spacing: .18em; font-size: .72rem; }
.footer img { width: 28px; height: 28px; }.footer small { color: #56617e; }
.modal { width: min(92vw, 620px); border: 1px solid rgba(147, 164, 217, .23); background: #080c18; color: var(--text); border-radius: 22px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.modal::backdrop { background: rgba(1, 3, 10, .78); backdrop-filter: blur(8px); }
.modal-close { float: right; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(154, 170, 221, .22); background: transparent; color: #c7d0e8; cursor: pointer; font-size: 1.4rem; }
.locked-modal { text-align: center; }
.lock-symbol { margin: 28px auto 20px; font-size: 3.5rem; color: #996cff; text-shadow: 0 0 28px rgba(153,108,255,.45); }
.locked-modal h2 { font-size: clamp(1.4rem, 5vw, 2rem); margin: 8px 0; }
#lockedProjectName { color: #9daac8; margin-bottom: 24px; }
.game-modal { width: min(94vw, 700px); padding: 20px; }
.game-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.game-modal-head h2 { margin: 0; font-size: clamp(1.4rem, 5vw, 2rem); }.game-modal-head h2 span { color: var(--purple); }
.game-hud { display: flex; gap: 14px; justify-content: space-between; margin: 18px 0 10px; font: .78rem ui-monospace, monospace; color: #9cb0df; }
.game-hud b { color: #f6f7ff; }
#catGame { display: block; width: 100%; height: auto; image-rendering: pixelated; border: 1px solid rgba(139, 155, 207, .18); border-radius: 14px; background: #080c17; touch-action: manipulation; }
.game-help { color: #8290b4; font-size: .78rem; text-align: center; }
@media (max-width: 680px) {
  .site-header { min-height: 80px; }
  .mini-nav { display: none; }
  .intro { align-items: start; flex-direction: column; padding-top: 24px; }
  .intro-copy { font-size: .88rem; }
  .project-grid { gap: 10px; }
  .project-card { min-height: 154px; border-radius: 16px; }
  .project-copy { padding: 17px; }
  .project-name { font-size: .78rem; line-height: 1.25; }
  .project-icon { width: 40%; }
  .project-icon img { width: min(60px, 78%); }
  .arrow { width: 30px; height: 30px; right: 12px; bottom: 12px; }
  .locked-card { min-height: 124px; }
  .ghost-icon { margin: 14px 15px 0 auto; font-size: 1.5rem; }
  .status { font-size: .63rem; }
  .game-card { min-height: 94px; padding: 16px; gap: 10px; }
  .pixel-preview { margin-right: 38px; gap: 6px; }
  .tiny-cat-art { width: 44px; height: 34px; }.tiny-bowl { width: 20px; height: 10px; }
  .ideas { grid-template-columns: 1fr; padding: 22px 17px; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .shell { width: min(100% - 20px, 1080px); }
  .project-card { min-height: 142px; }
  .project-copy { padding: 14px; }
  .project-code { font-size: 1.35rem; }
  .project-name { font-size: .72rem; }
  .project-icon img { width: 48px; }
  .locked-card { min-height: 112px; }
  .status { letter-spacing: .02em; font-size: .58rem; }
  .game-label small { display: none; }
  .pixel-preview .tiny-bowl.green { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
