/* Eazo Digital Art Hackathon — main-visual aligned voting UI. */

:root {
  color-scheme: dark;
  --bg: #04050a;
  --paper: rgba(9, 12, 20, 0.88);
  --ink: #f7f7fb;
  --muted: rgba(238, 239, 248, 0.62);
  --line: rgba(247, 247, 251, 0.11);
  --line-strong: rgba(247, 247, 251, 0.22);
  --salmon: #ff4338;
  --teal: #ff4338;
  --acid: #ff4338;
  --sky: #f7f7fb;
  --rose: #ff4338;
  --gold: #ff4338;
  --pink: #ff4338;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.24);
  --width: min(1120px, calc(100vw - 40px));
}

html { background: var(--bg); }

body {
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: clip;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(247, 247, 251, 0.035);
  background-size: 48px 48px;
  background-image:
    linear-gradient(rgba(247, 247, 251, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 247, 251, 0.025) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24rem, #000 100%);
}

::selection { background: #ff4338; color: #04050a; }

a { color: #ff645a; }

button,
input,
select,
textarea { font-family: inherit; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #ff4338;
  outline-offset: 3px;
}

.page-wash { display: none; }

.vote-topbar {
  position: relative;
  isolation: isolate;
  min-height: 340px;
  align-items: flex-end;
  padding: 48px max(20px, calc((100vw - 1120px) / 2));
  overflow: hidden;
  background: #04050a url("./assets/eazo-world-wide.jpg") center right / cover no-repeat;
  border-bottom: 1px solid rgba(255, 67, 56, 0.6);
  box-shadow: inset 0 -120px 140px rgba(4, 5, 10, 0.92);
  backdrop-filter: none;
}

.vote-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 5, 10, 0.25);
}

.vote-topbar::after {
  content: "EAZO DIGITAL ART HACKATHON  /  2026";
  position: absolute;
  top: 40px;
  left: max(20px, calc((100vw - 1120px) / 2));
  color: #ff4338;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.brand {
  position: relative;
  z-index: 1;
  align-items: flex-end;
  gap: 16px;
  max-width: min(760px, calc(100vw - 220px));
  color: inherit;
  text-decoration: none;
}

.brand-back {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 247, 251, 0.34);
  border-radius: 50%;
  background: rgba(4, 5, 10, 0.46);
  color: #f7f7fb;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.brand-back svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

a.brand:hover .brand-back {
  border-color: #ff4338;
  color: #ff4338;
  transform: translateX(-2px);
}

a.brand:focus-visible { outline: none; }

a.brand:focus-visible .brand-back {
  outline: 2px solid #ff4338;
  outline-offset: 3px;
}

.brand-text { min-width: 0; }

.brand-mark {
  width: auto;
  min-width: 64px;
  max-width: 180px;
  height: 64px;
  padding: 0 14px;
  overflow: hidden;
  border-radius: 4px;
  background: #ff4338;
  color: #04050a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text p {
  margin-bottom: 8px;
  color: rgba(247, 247, 251, 0.62);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text h1 {
  color: #f7f7fb;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.progress-pill {
  position: relative;
  z-index: 1;
  min-width: 96px;
  padding: 10px 16px;
  border: 1px solid #ff4338;
  border-radius: 2px;
  background: rgba(4, 5, 10, 0.78);
  color: #f7f7fb;
  text-align: center;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.progress-pill::before {
  content: "●  LIVE";
  display: block;
  margin-bottom: 3px;
  color: #ff4338;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.progress-pill.is-done { background: rgba(4, 5, 10, 0.78); }

.vote-shell {
  width: var(--width);
  padding: 32px 0 160px;
  gap: 20px;
}

.v-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 4px;
  border: 1px solid var(--line-strong);
  background: var(--line);
  min-width: 0;
}

.v-links a {
  position: relative;
  min-height: 104px;
  justify-content: flex-end;
  padding: 40px 16px 16px;
  border: 0;
  border-radius: 0;
  background: #090c14;
  box-shadow: none;
  color: #f7f7fb;
  font-size: 14px;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
}

.v-links a::before {
  position: absolute;
  top: 14px;
  left: 16px;
  color: #ff4338;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.v-links a:nth-child(1)::before { content: "01 / BROWSE"; }
.v-links a:nth-child(2)::before { content: "02 / FEEDBACK"; }
.v-links a:nth-child(3)::before { content: "03 / SCORE"; }
.v-links a:nth-child(4)::before { content: "04 / DEMO LIST"; }

.v-links a small {
  color: rgba(238, 239, 248, 0.5);
  font-size: 11px;
  line-height: 1.5;
}

.v-links a:hover {
  border-color: transparent;
  background: #11151f;
}

.card {
  position: relative;
  padding: 28px;
  overflow: clip;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  min-width: 0;
  overflow-wrap: anywhere;
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 88px;
  height: 2px;
  background: #ff4338;
}

.kicker,
.track-step-label,
.menu-label {
  color: #ff4338;
  font-family: "IBM Plex Mono", "Noto Sans SC", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h2,
.track-head h3,
.bucket-title,
.amh-title,
.pv-title {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.card h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.12; }

.card-sub {
  max-width: 860px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.75;
}

.card-sub b,
.rules-note li b,
.rules-note > b,
.bucket-money { color: #ff645a; }

.status-pill {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(4, 5, 10, 0.54);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.status-pill.ok {
  border-color: #ff4338;
  background: rgba(255, 67, 56, 0.1);
  color: #ff645a;
}

.live-note,
.rules-note,
.checkin-box,
.v-closed-note,
.v-needpin,
.pin-mode,
.v-idbar {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(4, 5, 10, 0.54);
  color: var(--muted);
}

.live-note { margin-top: 16px; padding: 14px 16px; }

.rules-note {
  margin-top: 12px;
  padding: 16px 18px;
  background: rgba(255, 67, 56, 0.055);
}

.rules-note li { color: rgba(247, 247, 251, 0.78); font-weight: 500; }
.rules-note li.red,
.rules-note li.red b,
.v-needpin b,
.v-needpin a,
.v-closed-note b,
.v-closed-note a { color: #ff645a; }

.text-field span { color: rgba(247, 247, 251, 0.72); font-weight: 600; }

.text-field input,
.text-field select,
.text-field textarea,
.pool-search,
.pool-sort select,
.person-search input,
.picker-search input {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(4, 5, 10, 0.72);
  color: #f7f7fb;
}

input::placeholder,
textarea::placeholder { color: rgba(238, 239, 248, 0.32); }

.btn-primary,
.btn-ghost,
.v-mini,
.pick-btn {
  min-height: 48px;
  border-radius: 2px;
  font-weight: 800;
}

.btn-primary,
.v-mini-save {
  border: 1px solid #ff4338;
  background: #ff4338;
  color: #04050a;
}

.btn-primary:hover:not(:disabled),
.v-mini-save:hover:not(:disabled) { background: #ff645a; }

.btn-ghost,
.v-mini,
.pick-btn {
  border: 1px solid var(--line-strong);
  background: rgba(4, 5, 10, 0.5);
  color: #f7f7fb;
}

.btn-ghost:hover,
.v-mini:hover,
.pick-btn:hover {
  border-color: #ff4338;
  background: rgba(255, 67, 56, 0.08);
  color: #ff645a;
}

.pool,
.bucket,
.track,
.person-award {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(4, 5, 10, 0.42);
}

.pool { padding: 16px; border-style: solid; }

.pool-chip,
.pool-views button {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
}

.pool-chip:hover,
.pool-views button:hover { border-color: rgba(255, 67, 56, 0.7); color: #f7f7fb; }

.pool-chip.is-active,
.pool-views button.is-active {
  border-color: #ff4338;
  background: #ff4338;
  color: #04050a;
}

.proj,
.cand,
.tray-item,
.podium-slot,
.chip {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #0b0e16;
  color: #f7f7fb;
  box-shadow: none;
}

.proj:hover,
.cand:hover { border-color: #ff4338; }

.proj.is-picked,
.cand.shortlisted,
.bucket.drop-ok,
.podium-slot.drop-ok,
.person-award.has-pick {
  border-color: #ff4338;
  background: rgba(255, 67, 56, 0.09);
  box-shadow: none;
}

.proj-track-tag,
.proj-track-tag.iteration,
.proj-track-tag.both,
.proj-color-tag,
.proj-color-tag.purple,
.proj-color-tag.green,
.proj-color-tag.blue,
.proj-color-tag.yellow,
.proj-color-tag.mixed,
.track-tag,
.eazo-tag,
.p-mbti,
.proj-order.is-demo,
.pi-order.is-demo,
.chip-order.is-demo,
.pv-no.is-demo {
  border: 1px solid rgba(255, 67, 56, 0.28);
  border-radius: 2px;
  background: rgba(255, 67, 56, 0.09);
  color: #ff766d;
}

.bucket {
  background-image: none;
  transition: border-color 120ms ease, background 120ms ease;
}

.bucket[data-tone] { --bucket-glow: transparent; }
.bucket-count.full,
.bucket-count.ok,
.picker-count { color: #ff645a; }

.track-tray { border-radius: 2px; background: rgba(255, 67, 56, 0.035); }
.podium-slot.filled { background: rgba(255, 67, 56, 0.07); }

.check-list li {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(4, 5, 10, 0.45);
}

.check-list li.ok { color: #f7f7fb; }
.check-list li.bad,
.field-hint.bad,
.submit-msg.bad { color: #ff645a; }
.field-hint.ok,
.submit-msg.ok { color: rgba(247, 247, 251, 0.82); }

.save-bar {
  margin: 0 -28px -28px;
  padding: 14px 28px;
  border-top: 1px solid var(--line-strong);
  background: rgba(4, 5, 10, 0.9);
  backdrop-filter: blur(12px);
}

.save-state.ok { color: #f7f7fb; }
.save-state.bad { color: #ff645a; }

.toast {
  border: 1px solid rgba(255, 67, 56, 0.7);
  border-radius: 2px;
  background: #090c14;
  color: #f7f7fb;
}

.menu-backdrop,
.menu-backdrop.is-light,
.pv-back { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); }

.assign-menu,
.pv-inner {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #090c14;
  box-shadow: var(--shadow);
}

.assign-menu-head { background: #090c14; }
.amh-close,
.pv-x { background: #ff4338; color: #04050a; }
.menu-item { border-radius: 2px; background: rgba(4, 5, 10, 0.55); color: #f7f7fb; }
.menu-item:hover:not(:disabled),
.menu-item.selected { border-color: #ff4338; background: rgba(255, 67, 56, 0.09); }
.menu-item.selected .mi-right { color: #ff645a; }

.proj-shot { background: #060811; }
.proj-peek,
.proj-shot-more { border-radius: 2px; background: rgba(4, 5, 10, 0.82); }
.proj-tags span { border-radius: 2px; }
.proj-tags .t-link,
.proj-tags .t-mode { background: rgba(255, 67, 56, 0.09); color: #ff766d; }

.pv-links a,
.pv-btn,
.pv-nav button {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #0b0e16;
  color: #f7f7fb;
}

.pv-links a:hover,
.pv-btn:hover:not(:disabled),
.pv-nav button:hover:not(:disabled),
.pv-btn.is-on,
.pv-btn.is-main.is-on {
  border-color: #ff4338;
  background: rgba(255, 67, 56, 0.09);
  color: #ff766d;
}

.pv-note,
.pv-locked {
  border: 1px solid rgba(255, 67, 56, 0.32);
  border-radius: 2px;
  background: rgba(255, 67, 56, 0.07);
  color: #ff766d;
}

.pv-shots img { border-radius: 2px; background: #04050a; }

.pv-vote {
  border-top: 1px solid var(--line-strong);
  background: rgba(9, 12, 20, 0.96);
}

@media (max-width: 860px) {
  :root { --width: min(calc(100% - 28px), 720px); }

  .vote-topbar { min-height: 300px; padding-bottom: 32px; }
  .v-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand { max-width: calc(100vw - 150px); }
}

@media (max-width: 560px) {
  :root { --width: calc(100% - 24px); }

  .vote-topbar {
    min-height: 264px;
    align-items: flex-end;
    padding: 64px 12px 20px;
    background-position: 67% center;
  }

  .vote-topbar::before { background: rgba(4, 5, 10, 0.4); }
  .vote-topbar::after { top: 20px; left: 12px; font-size: 9px; }

  .brand { max-width: calc(100vw - 116px); gap: 10px; }
  .brand-mark { min-width: 44px; max-width: 92px; height: 44px; padding: 0 9px; font-size: 9px; }
  .brand-text p { margin-bottom: 5px; font-size: 9px; }
  .brand-text h1 { font-size: 30px; }
  .progress-pill { min-width: 86px; padding: 8px 10px; font-size: 11px; }

  .vote-shell { padding-top: 16px; gap: 12px; }
  .v-links a { min-height: 94px; padding: 38px 12px 12px; font-size: 13px; }
  .v-links a::before { top: 12px; left: 12px; font-size: 9px; }

  .card { padding: 18px 16px; }
  .card h2 { font-size: 23px; }
  .card-head { align-items: flex-start; }
  .status-pill { padding: 6px 8px; font-size: 10px; }
  .card-sub { font-size: 13px; }
  .rules-note { padding: 14px; }

  .save-bar { margin: 0 -16px -18px; padding: 12px 16px; }
  .assign-menu.as-sheet,
  .pv-inner { border-radius: 8px 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
