:root {
  --bg: #1a1216;
  --bg-raised: #24181d;
  --bg-panel: #2c1e24;
  --ink: #f3dce6;
  --muted: #c4a3b0;
  --line: #4a3340;
  --accent: #e8b4c8;
  --accent-2: #9b6bff;
  --accent-3: #ff8a65;
  --accent-4: #6ee7c5;
  --danger: #ff6b8a;
  --header-h: 72px;
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

/* playground classic: no highlight / no drag copy */
html, body, img, a, button {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
img { -webkit-user-drag: none; user-drag: none; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ===== HEADER: left logo + block bars ===== */
.site-header {
  background: #140e11;
  border-bottom: 3px solid var(--line);
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  padding-right: 8px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: auto;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

/* playground-era decorative bars next to the wordmark */
.bar-cluster {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  margin-left: 4px;
}
.bar-cluster .blk {
  display: block;
  width: 7px;
  background: var(--accent);
  border: 2px solid #000;
  height: 10px;
  transition: background 0.12s linear, height 0.12s linear;
}
.bar-cluster .blk:nth-child(1) { height: 8px; background: #e8b4c8; }
.bar-cluster .blk:nth-child(2) { height: 16px; background: #c4b5fd; }
.bar-cluster .blk:nth-child(3) { height: 22px; background: #86efac; }
.bar-cluster .blk:nth-child(4) { height: 12px; background: #fdba74; }
.bar-cluster .blk:nth-child(5) { height: 18px; background: #93c5fd; }
.brand:hover .blk:nth-child(1), .bar-cluster .blk:nth-child(1):hover { background: #ff6b8a; height: 22px; }
.brand:hover .blk:nth-child(2), .bar-cluster .blk:nth-child(2):hover { background: #7c3aed; height: 22px; }
.brand:hover .blk:nth-child(3), .bar-cluster .blk:nth-child(3):hover { background: #059669; height: 22px; }
.brand:hover .blk:nth-child(4), .bar-cluster .blk:nth-child(4):hover { background: #ea580c; height: 22px; }
.brand:hover .blk:nth-child(5), .bar-cluster .blk:nth-child(5):hover { background: #2563eb; height: 22px; }

.nav-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}

.nav-bar {
  display: inline-block;
  text-decoration: none;
  color: #1a1014;
  background: var(--accent);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
  transition: background 0.12s linear, color 0.12s linear, transform 0.12s linear;
}

.nav-bar:nth-child(1) { background: #e8b4c8; }
.nav-bar:nth-child(2) { background: #c4b5fd; }
.nav-bar:nth-child(3) { background: #86efac; }
.nav-bar:nth-child(4) { background: #fdba74; }
.nav-bar:nth-child(5) { background: #93c5fd; }

.nav-bar:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #000;
}

.nav-bar:nth-child(1):hover { background: #ff6b8a; color: #fff; }
.nav-bar:nth-child(2):hover { background: #7c3aed; color: #fff; }
.nav-bar:nth-child(3):hover { background: #059669; color: #fff; }
.nav-bar:nth-child(4):hover { background: #ea580c; color: #fff; }
.nav-bar:nth-child(5):hover { background: #2563eb; color: #fff; }

.nav-bar.is-current {
  outline: 2px dashed #fff;
  outline-offset: 2px;
}

/* ===== BODY GRID: main left, links right ===== */
.layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 22px;
  padding: 28px 0 40px;
  align-items: start;
}

.main-panel, .side-panel {
  background: var(--bg-panel);
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
}

.main-panel { padding: 26px 26px 32px; }
.side-panel { padding: 16px 14px 18px; }

.kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
  color: var(--accent);
}

p { color: var(--muted); margin-bottom: 12px; }
.main-panel li { color: var(--muted); margin-left: 18px; margin-bottom: 6px; }

.hero-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.hero-art {
  width: 110px;
  flex-shrink: 0;
}

.hero-art img { width: 100%; height: auto; }

.cta {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #140e11;
  background: var(--accent);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 11px 16px;
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
}
.cta:hover { background: #ff6b8a; color: #fff; }

.side-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--accent);
}

.side-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-raised);
  border: 2px solid #000;
  padding: 9px 10px;
  margin-bottom: 8px;
  font-size: 0.84rem;
  font-weight: 700;
}
.side-link:hover { background: #3a2430; color: #fff; }
.side-link small { display: block; color: var(--muted); font-weight: 500; font-size: 0.72rem; }

/* legal pages */
.legal p, .legal li { font-size: 0.92rem; }
.legal h2 { border-top: 1px solid var(--line); padding-top: 14px; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 3px solid #000;
  background: #110c0e;
  padding: 16px 0 88px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner a { color: var(--accent); text-decoration: none; }
.footer-inner a:hover { color: #fff; }

/* dumb corner mascot — no link, just vibes */
.corner-chika {
  position: fixed;
  right: 8px;
  bottom: 8px;
  z-index: 40;
  width: 168px;
  pointer-events: none;
  filter: drop-shadow(3px 4px 0 #000);
  animation: chika-idle 2.8s ease-in-out infinite;
}
.corner-chika img {
  width: 100%;
  height: auto;
  display: block;
}
.corner-chika .dismiss {
  pointer-events: auto;
  position: absolute;
  top: -6px;
  left: -6px;
  width: 22px;
  height: 22px;
  border: 2px solid #000;
  background: #e8b4c8;
  color: #140e11;
  font-weight: 800;
  line-height: 16px;
  cursor: pointer;
}
.drop {
  border: 3px dashed #000;
  background: var(--bg-raised);
  padding: 28px 16px;
  text-align: center;
  margin: 16px 0;
  cursor: pointer;
}
.drop.is-hot { background: #3a2430; }
.drop input { display: none; }
.preview-frame {
  width: 100%;
  min-height: 70vh;
  border: 3px solid #000;
  background: #fff;
  display: block;
}
.preview-log { font-size: 0.8rem; color: var(--muted); white-space: pre-wrap; }
.tool-note { font-size: 0.85rem; }

.corner-chika.is-gone { display: none; }
@keyframes chika-idle {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr 200px; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 12px; }
  .header-inner { align-items: flex-start; padding: 8px 0; gap: 10px; }
  .nav-bars { width: 100%; }
  .nav-bar { padding: 8px 10px; font-size: 0.72rem; }
  .layout {
    grid-template-columns: 1fr;
    padding: 16px 0 28px;
    gap: 14px;
  }
  .side-panel { order: 2; }
  .main-panel { padding: 18px 16px 24px; }
  .hero-row { flex-direction: column; }
  .hero-art { width: 88px; }
  .brand-name { display: none; }
  .corner-chika { width: 104px; right: 4px; bottom: 4px; }
  .footer-inner { padding-right: 96px; }
}

@media (max-width: 420px) {
  .bar-cluster { display: none; }
  .nav-bar { flex: 1 1 auto; text-align: center; }
}
