/* Hewie's Night Out — 8-bit arcade styling on top of the site palette. */

.hewie-body {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 90, 200, 0.10), transparent 60%),
    var(--bg);
}

.hewie-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 5.5rem 1rem 3rem;
  font-family: "Courier New", Courier, monospace;
}

/* ---------- header ---------- */

.hewie-head { text-align: center; position: relative; margin-bottom: 1.2rem; }
.hewie-head h1 {
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  letter-spacing: 0.12em;
  color: #ff5ac8;
  text-shadow: 3px 3px 0 #4a1038, 6px 6px 0 rgba(0, 0, 0, 0.4);
}
.hewie-head h1 span { color: #5af0c2; text-shadow: 3px 3px 0 #114437, 6px 6px 0 rgba(0,0,0,0.4); }
.hewie-tag { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.4rem; }

.mute {
  position: absolute; top: 0; right: 0;
  background: none; border: 2px solid var(--line); color: var(--text-dim);
  font-family: inherit; font-size: 0.7rem; font-weight: bold;
  padding: 0.3rem 0.6rem; cursor: pointer;
}
.mute:hover { border-color: #ff5ac8; color: #ff5ac8; }

/* ---------- the screen ---------- */

.crt {
  position: relative;
  border: 4px solid #3a2a55;
  box-shadow: 0 0 0 4px #120b1e, 0 0 40px rgba(255, 90, 200, 0.18);
  background: #000;
  line-height: 0;
}
.crt canvas {
  width: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, rgba(0, 0, 0, 0.16) 0px, rgba(0, 0, 0, 0.16) 1px,
    transparent 1px, transparent 3px);
}

/* ---------- console panel ---------- */

.console {
  border: 4px solid #3a2a55;
  border-top: none;
  background: var(--bg-raised);
  padding: 1.3rem 1.4rem 1.6rem;
}
.console h2 {
  color: #f5d76e;
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}
.blurb, .hint { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem; }
.hint b, .blurb em { color: #5af0c2; font-style: normal; }
.counter { color: #f5d76e; font-weight: bold; margin-left: 0.4rem; }

/* ---------- buttons ---------- */

.big-btn {
  display: block;
  margin: 1.1rem auto 0;
  background: #ff5ac8;
  color: #2a0b20;
  border: none;
  box-shadow: 0 4px 0 #a82f80, 0 6px 0 rgba(0, 0, 0, 0.4);
  font-family: inherit; font-weight: bold; font-size: 0.95rem;
  letter-spacing: 0.1em;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  transition: transform 0.05s;
}
.big-btn:hover:not(:disabled) { background: #ff7ad4; }
.big-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 #a82f80; }
.big-btn:disabled { background: #4a3a56; color: #7a6a88; box-shadow: 0 4px 0 #2b2036; cursor: not-allowed; }

.pick {
  background: var(--bg-card);
  border: 2px solid var(--line);
  color: var(--text);
  font-family: inherit; font-size: 0.85rem; font-weight: bold;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}
.pick:hover:not(:disabled) { border-color: #5af0c2; }
.pick.sel { border-color: #ff5ac8; background: #3a1330; color: #ff9ade; }
.pick:disabled { cursor: default; opacity: 0.7; }
.pick.sel:disabled { opacity: 1; }

/* ---------- dressing room ---------- */

.dress-cats { display: grid; gap: 0.8rem; }
.dress-cats fieldset { border: 2px solid var(--line); padding: 0.7rem 0.9rem 0.9rem; }
.dress-cats legend { color: #5af0c2; font-size: 0.75rem; letter-spacing: 0.2em; padding: 0 0.5rem; }
.pick-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }

/* ---------- pocket items ---------- */

#item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}
.item-pick {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--bg-card);
  border: 2px solid var(--line);
  color: var(--text);
  font-family: inherit; font-size: 0.8rem; font-weight: bold;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  text-align: left;
}
.item-pick canvas { width: 36px; height: 36px; image-rendering: pixelated; flex: none; }
.item-pick:hover { border-color: #5af0c2; }
.item-pick.sel { border-color: #ff5ac8; background: #3a1330; }

/* ---------- bar reveal ---------- */

.friend-line {
  color: #f5d76e;
  font-size: 1rem;
  margin: 0.8rem 0;
  animation: pop-in 0.3s steps(3);
}
.reveal-card {
  border: 3px solid #ff5ac8;
  background: #2a0b20;
  padding: 0.9rem 1.1rem;
  margin: 0.8rem 0;
  animation: pop-in 0.3s steps(3);
}
.card-name { color: #ff9ade; font-size: 1.15rem; font-weight: bold; letter-spacing: 0.08em; }
.card-stars { color: #ff5a78; font-size: 1rem; letter-spacing: 0.15em; margin: 0.25rem 0; }
.card-tag { color: var(--text-dim); font-size: 0.85rem; font-style: italic; }
@keyframes pop-in { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- the date ---------- */

.date-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.4rem; margin-bottom: 0.8rem;
}
.date-name { color: #ff9ade; font-weight: bold; letter-spacing: 0.08em; }
.date-progress { color: #5af0c2; font-size: 0.8rem; letter-spacing: 0.15em; }
.date-q { color: var(--text); font-size: 1rem; margin-bottom: 0.9rem; min-height: 2.4em; }

#date-options { display: grid; gap: 0.5rem; }
.opt { text-align: left; }
.opt.gift { display: flex; align-items: center; gap: 0.6rem; }
.opt.gift canvas { width: 36px; height: 36px; image-rendering: pixelated; flex: none; }

.reaction { min-height: 1.6em; margin-top: 0.8rem; font-size: 0.9rem; font-style: italic; }
.reaction.pos { color: #5af0c2; }
.reaction.neg { color: #ff5a78; }
.reaction.neutral { color: var(--text-dim); }

/* ---------- results ---------- */

#result-title.win { color: #5af0c2; text-shadow: 2px 2px 0 #114437; font-size: 1.4rem; }
#result-title.lose { color: #ff5a78; text-shadow: 2px 2px 0 #4a1020; font-size: 1.2rem; }
.result-msg { color: #f5d76e; font-size: 1.05rem; margin: 0.7rem 0 0.3rem; }
.result-score { color: var(--text-dim); font-size: 0.85rem; }

/* ---------- black book ---------- */

.book { margin: 1rem 0 0.4rem; }
.book-label { color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.2em; }
.book-label b { color: #f5d76e; }
#blackbook { display: flex; gap: 0.35rem; margin-top: 0.45rem; flex-wrap: wrap; }
.book-slot {
  width: 1.9rem; height: 1.9rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--line);
  color: #5a4a70; font-weight: bold; font-size: 0.85rem;
}
.book-slot.got { border-color: #ff5ac8; color: #ff9ade; background: #3a1330; }

.hewie-foot { text-align: center; color: var(--text-dim); font-size: 0.75rem; margin-top: 1.4rem; opacity: 0.7; }

@media (max-width: 560px) {
  .hewie-wrap { padding-top: 5rem; }
  .console { padding: 1rem 0.8rem 1.2rem; }
}
