@font-face { font-family: "VT323"; src: url("fonts/vt323.woff2") format("woff2"); font-display: swap; } /* SIL Open Font License */
:root {
  --ink: #1d0a24;
  --paper: #fff4fa;
  --paper-2: #ffe1f0;
  --muted: #7a4d6c;
  --pink: #ff2d95;
  --pink-deep: #c4006a;
  --pink-soft: #ff8fc6;
  --lime: #b6ff3b;
  --blue: #2f6bff;
  --yellow: #ffe600;
  --gold: #e0a800;
  --hi: #ffffff;
  --lo: #6b1f4f;
  --icons-w: 108px;
  --bar-h: 44px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--pink-deep);
  font: 14px/1.45 Tahoma, Verdana, "Segoe UI", Arial, sans-serif;
  padding-bottom: calc(var(--bar-h) + 24px + env(safe-area-inset-bottom, 0px));
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h2 { font-size: 21px; line-height: 1.2; margin: 4px 0 8px; }
h3 { margin: 14px 0 6px; }
p { margin: 0 0 8px; }

/* ---------- wallpaper: neon pink with his lightning bolts and a NYC skyline ---------- */
.wall {
  position: fixed; inset: 0; z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cpath d='M30 10 70 10 52 52 84 52 26 130 44 72 14 72Z' fill='%23b6ff3b' fill-opacity='.55'/%3E%3Cpath d='M150 100 186 100 170 138 198 138 146 210 162 156 134 156Z' fill='%232f6bff' fill-opacity='.5'/%3E%3Ccircle cx='170' cy='34' r='5' fill='%23ffe600' fill-opacity='.7'/%3E%3Ccircle cx='60' cy='180' r='4' fill='%23ffffff' fill-opacity='.6'/%3E%3C/svg%3E"),
    radial-gradient(circle at 20% 15%, rgba(255,230,0,.35), transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(47,107,255,.45), transparent 40%),
    linear-gradient(160deg, #ff4fa8 0%, #ff2d95 40%, #d1007a 75%, #8a0a5c 100%);
}
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30vh; fill: #5a0640; opacity: .85; }

/* ---------- desktop icons ---------- */
.icons {
  position: fixed; top: 12px; left: 8px; width: var(--icons-w);
  display: flex; flex-direction: column; gap: 4px; z-index: 5;
}
.icon {
  background: none; border: 1px dotted transparent; color: #fff; cursor: pointer;
  font: bold 12px Tahoma, Arial, sans-serif; text-shadow: 1px 1px 0 var(--pink-deep), 0 0 6px rgba(0,0,0,.35);
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px;
}
.icon .ico { font-size: 30px; line-height: 1; filter: drop-shadow(2px 2px 0 rgba(90,6,64,.6)); }
.icon:hover, .icon:focus-visible { border-color: #fff; background: rgba(47,107,255,.45); outline: none; }

/* ---------- windows ---------- */
.windows {
  display: grid; grid-template-columns: repeat(2, minmax(0, 450px)); gap: 26px 24px;
  justify-content: center; align-items: start;
  padding: 26px 24px 20px calc(var(--icons-w) + 28px);
}
.win {
  position: relative;
  background: var(--paper);
  border: 2px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi);
  box-shadow: 1px 1px 0 var(--ink), 8px 8px 0 rgba(90,6,64,.45);
}
.win[hidden] { display: none; }
.titlebar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 2px 3px 2px 8px;
  background: linear-gradient(90deg, var(--pink-deep), var(--pink) 50%, var(--pink-soft));
  color: #fff; font: 20px/1 "VT323", monospace; letter-spacing: .5px; text-shadow: 1px 1px 0 var(--pink-deep);
  cursor: grab; user-select: none; touch-action: none;
}
.win.focused .titlebar { background: linear-gradient(90deg, #1438b8, var(--blue) 50%, #7fa2ff); text-shadow: 1px 1px 0 #0a1f6b; }
.titlebar:active { cursor: grabbing; }
.tb-btns { display: flex; gap: 2px; }
.tb-btn {
  width: 22px; height: 20px; padding: 0; cursor: pointer;
  background: var(--paper-2); color: var(--ink); font: bold 13px/1 Tahoma, Arial, sans-serif;
  border: 2px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi);
}
.tb-btn:active { border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
.body { padding: 14px 16px 16px; }

/* ---------- controls ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; color: var(--ink);
  background: var(--lime); font: bold 14px Tahoma, Arial, sans-serif; padding: 7px 14px;
  border: 2px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi);
}
.btn:hover { background: #d3ff86; }
.btn:active { border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
.btn:disabled { opacity: .6; cursor: default; }
.btn:focus-visible, .thumb:focus-visible, textarea:focus-visible, input:focus-visible, .opt:focus-visible, .scale button:focus-visible { outline: 3px dashed var(--blue); outline-offset: 2px; }
.btn.big { font-size: 15px; padding: 10px 18px; background: linear-gradient(180deg, #fff59a, var(--yellow)); }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.kicker { font: 18px/1 "VT323", monospace; letter-spacing: 1px; color: var(--pink-deep); text-transform: uppercase; margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* side picture layouts */
.vote, .rate { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: start; }
.side-pic { width: 130px; aspect-ratio: 3/4; object-fit: cover; object-position: top; background: #fff; border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); }

/* polls */
.poll { display: grid; gap: 7px; margin: 10px 0 8px; }
.opt {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; text-align: left; cursor: pointer; padding: 9px 12px; color: var(--ink);
  background: #fff; font: bold 14px Tahoma, Arial, sans-serif;
  border: 2px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi);
}
.opt .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--pink-soft), var(--pink)); opacity: .45; transition: width .6s ease; }
.opt .lbl, .opt .pct { position: relative; }
.opt .pct { font: 20px/1 "VT323", monospace; color: var(--pink-deep); }
.opt:hover { background: #fff0f7; }
.opt.chosen { border-color: var(--lo) var(--hi) var(--hi) var(--lo); background: #fffbd1; }
.opt.chosen .lbl::after { content: "  ✓ your vote"; font-weight: normal; font-size: 12px; color: var(--pink-deep); }
.poll-note { font-size: 12px; color: var(--muted); margin: 0; }

/* rate the fit */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 8px 0 10px; }
.scale button {
  cursor: pointer; padding: 8px 0; font: 22px/1 "VT323", monospace; color: var(--ink); background: #fff;
  border: 2px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi);
}
.scale button:hover { background: var(--paper-2); }
.scale button.chosen { background: var(--pink); color: #fff; border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
.avg { display: flex; align-items: center; gap: 10px; }
.avg-num { font: 46px/1 "VT323", monospace; color: var(--pink-deep); min-width: 64px; }
.avg-txt { font-size: 12px; color: var(--muted); }

/* profile */
.profile { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
.avatar { width: 120px; aspect-ratio: 1; object-fit: cover; border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
.nick { font: 20px/1 "VT323", monospace; color: var(--blue); }
.ai-tag { display: inline-block; font: 16px/1 "VT323", monospace; background: var(--ink); color: var(--lime); padding: 4px 8px; margin: 0; }

/* hall of fame */
.hof-title { font: 22px/1 "VT323", monospace; color: var(--pink-deep); }
.hof { margin: 0 0 10px; padding-left: 26px; font: 20px/1.25 "VT323", monospace; }
.hof li span { float: right; color: var(--pink-deep); }

/* mood */
.stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 12px; }
.stats dt { font-weight: bold; }
.stats dd { margin: 0; font: 20px/1 "VT323", monospace; color: var(--pink-deep); }

/* advice */
blockquote { margin: 6px 0 12px; padding: 12px 14px; background: #fff; border-left: 6px solid var(--pink); font-size: 17px; font-weight: bold; min-height: 70px; }

/* ego */
.ego { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; }
.ego-ico { font-size: 46px; line-height: 1; }

/* pictures */
.pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumb { min-width: 0; background: none; border: 0; padding: 4px; cursor: pointer; font: 12px Tahoma, Arial, sans-serif; color: var(--ink); }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; background: #fff; border: 2px solid var(--pink-soft); }
.thumb:hover span { background: var(--blue); color: #fff; }
.thumb span { display: block; max-width: 100%; margin-top: 4px; padding: 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* collabs */
.ticks { margin: 0 0 10px; padding-left: 0; list-style: none; }
.ticks li::before { content: "⚡ "; }

/* dare box */
textarea { width: 100%; font: 16px Tahoma, Arial, sans-serif; padding: 8px; margin: 6px 0 10px; resize: vertical; border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); background: #fff; }

/* pop-ups */
.popup { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(360px, calc(100vw - 32px)); z-index: 40; }
.dialog { display: grid; justify-items: center; text-align: center; gap: 4px; }
.big-ico { font-size: 40px; }
#win-play { width: min(400px, calc(100vw - 24px)); top: 48%; }
.play { padding: 10px; }
.hud { display: flex; justify-content: space-between; font: 22px/1 "VT323", monospace; margin-bottom: 6px; }
.cv-wrap { position: relative; }
canvas { display: block; width: 100%; height: auto; background: linear-gradient(180deg, #8fd8ff, #ffd9ec); border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); touch-action: none; }
.initials { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; background: rgba(29,10,36,.82); color: #fff; padding: 16px; }
.initials[hidden] { display: none; }
.initials input { width: 120px; text-align: center; font: 44px/1 "VT323", monospace; letter-spacing: 8px; text-transform: uppercase; padding: 4px; border: 3px solid var(--lime); background: #fff; color: var(--ink); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(29,10,36,.85); display: grid; place-items: center; gap: 12px; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 78vh; max-width: min(900px, 100%); background: #fff; border: 3px solid var(--lime); }

.sign { text-align: center; color: #fff; text-shadow: 1px 1px 0 var(--pink-deep); padding: 8px 16px 0 calc(var(--icons-w) + 16px); }
.sign p:first-child { font: 20px "VT323", monospace; margin: 0; }
.privacy { font-size: 11px; opacity: .9; }

/* ---------- taskbar ---------- */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--bar-h); z-index: 50;
  display: flex; align-items: center; gap: 6px; padding: 4px 6px;
  background: var(--paper-2); border-top: 2px solid var(--hi); box-shadow: 0 -1px 0 var(--lo);
}
.start, .task {
  height: 34px; cursor: pointer; font: bold 13px Tahoma, Arial, sans-serif; padding: 0 12px; color: var(--ink);
  background: var(--paper-2); border: 2px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi);
  white-space: nowrap;
}
.start { background: linear-gradient(180deg, #ff8fc6, var(--pink)); color: #fff; text-shadow: 1px 1px 0 var(--pink-deep); }
.start[aria-expanded="true"], .task:active { border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
.tray { margin-left: auto; padding: 6px 10px; font-size: 13px; border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); white-space: nowrap; }
.startmenu {
  position: absolute; left: 6px; bottom: calc(var(--bar-h) - 2px); display: flex; min-width: 230px;
  background: var(--paper-2); border: 2px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi);
  box-shadow: 5px 5px 0 rgba(90,6,64,.45);
}
.startmenu[hidden] { display: none; }
.sm-side { writing-mode: vertical-rl; transform: rotate(180deg); background: linear-gradient(0deg, var(--blue), var(--pink)); color: #fff; font: 24px "VT323", monospace; padding: 8px 4px; }
.startmenu ul { list-style: none; margin: 0; padding: 4px; flex: 1; }
.startmenu button { width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; font: 14px Tahoma, Arial, sans-serif; cursor: pointer; color: var(--ink); }
.startmenu button:hover, .startmenu button:focus-visible { background: var(--pink); color: #fff; outline: none; }

/* ---------- big laptops and monitors: three columns, a bit larger ---------- */
@media (min-width: 1500px) {
  .windows { grid-template-columns: repeat(3, minmax(0, 470px)); gap: 30px 28px; padding-top: 34px; }
  body { font-size: 15px; }
  h2 { font-size: 23px; }
  .side-pic { width: 150px; }
  .vote, .rate { grid-template-columns: 150px 1fr; }
}
@media (min-width: 1180px) and (max-width: 1499px) {
  .windows { grid-template-columns: repeat(2, minmax(0, 500px)); }
}

/* ---------- small laptops and tablets: one centred column ---------- */
@media (min-width: 761px) and (max-width: 1179px) {
  .windows { grid-template-columns: minmax(0, 600px); }
}
.win, .body, .poll, .pics { min-width: 0; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  :root { --icons-w: 0px; }
  .icons {
    position: static; width: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px; padding: 10px 10px 0;
  }
  .icon { min-width: 0; font-size: 11px; line-height: 1.15; text-align: center; padding: 4px 1px; }
  .icon .ico { font-size: 26px; }
  .windows { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 10px; gap: 18px; }
  .titlebar { cursor: default; }
  .vote, .rate { grid-template-columns: 96px 1fr; }
  .side-pic { width: 96px; }
  .profile { grid-template-columns: 92px 1fr; }
  .avatar { width: 92px; }
  .task:not(#task-home) { display: none; }
  .sign { padding-left: 16px; }
  /* thumb-sized tap targets */
  .opt { min-height: 50px; font-size: 15px; }
  .scale button { min-height: 50px; font-size: 26px; }
  .btn { min-height: 46px; padding: 10px 16px; }
  .start, .task { height: 38px; }
  .tb-btn { width: 30px; height: 26px; font-size: 16px; }
  .body { padding: 14px 14px 16px; }
  #win-play { top: 50%; }
}
@media (max-width: 400px) {
  .vote, .rate, .profile { grid-template-columns: 1fr; }
  .side-pic { width: 100%; aspect-ratio: 4 / 3; object-position: center 6%; }
}
