:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --red: #ff3131;
  --ink: #121212;
  --line: #2a2a2a;
  --muted: #b8b8b8;
  --green: #3cff6a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 49, 49, 0.2), transparent 38%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045), rgba(255,255,255,0.045) 1px, transparent 1px, transparent 5px);
  opacity: 0.7;
}

button,
input,
a {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 56px;
  position: relative;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 24px;
  align-items: center;
}

.hero-copy {
  padding: 28px 0;
}

.eyebrow {
  color: var(--red);
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 0.96rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: 0.86;
  margin-bottom: 14px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
}

.subtitle {
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 2.1rem);
  color: var(--red);
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 24px 0;
}

.countdown strong,
.pill {
  border: 2px solid var(--white);
  padding: 10px 13px;
  background: var(--ink);
}

.pill {
  border-color: var(--red);
  color: var(--red);
}

.pickup {
  max-width: 560px;
  padding: 14px;
  border-left: 6px solid var(--red);
  background: #171717;
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.store-link,
.button-link,
button,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 2px solid var(--white);
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.primary,
.danger {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.prize-grid {
  display: grid;
  gap: 16px;
}

.prize-card,
.entry-panel,
.actions-panel,
.rules,
.admin-top,
.admin-section {
  border: 2px solid var(--line);
  background: rgba(18, 18, 18, 0.95);
  padding: 18px;
}

.prize-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 16px;
  align-items: center;
}

.image-slot {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #f5f5f5;
  color: #111;
  border: 3px solid var(--white);
  text-align: center;
  overflow: hidden;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-slot span {
  padding: 12px;
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 0.86rem;
}

.prize-label {
  color: var(--red);
  text-transform: uppercase;
}

.entry-panel,
.actions-panel,
.rules,
.admin-section {
  margin-top: 22px;
}

.panel-heading p {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.entry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-family: Arial, sans-serif;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  border: 2px solid var(--line);
  background: #070707;
  color: var(--white);
  padding: 10px 12px;
}

input:focus,
button:focus,
a:focus {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--red);
}

.entry-form .primary,
.checkbox,
.status-card {
  grid-column: 1 / -1;
}

.status-card {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 16px;
  background: var(--red);
  color: var(--white);
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.actions-list {
  display: grid;
  gap: 12px;
}

.action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 2px solid var(--line);
  background: #080808;
}

.action-card.done {
  border-color: var(--green);
}

.action-card.done h3::after {
  content: " DONE";
  color: var(--green);
}

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rules ul,
#rules-list {
  font-family: Arial, sans-serif;
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

.admin-shell {
  max-width: 1280px;
}

.admin-top {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: end;
}

.login-form {
  min-width: min(360px, 100%);
  display: flex;
  gap: 10px;
  align-items: end;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metrics div,
.winner-card,
.source-row {
  border: 2px solid var(--line);
  background: #080808;
  padding: 14px;
}

.metrics span,
.source-row em,
.muted {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.metrics strong {
  display: block;
  font-size: 2rem;
}

.winner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.history {
  margin-top: 14px;
  font-family: Arial, sans-serif;
}

.source-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--red);
  text-transform: uppercase;
}

td small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.is-disqualified {
  opacity: 0.58;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 18px, 680px);
    padding-top: 12px;
  }

  .hero,
  .entry-form,
  .action-card,
  .admin-top,
  .login-form,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .prize-card {
    grid-template-columns: 38% 1fr;
  }

  .action-card {
    display: grid;
  }

  .action-buttons {
    justify-content: stretch;
  }

  .action-buttons > *,
  .login-form button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .prize-card {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3rem;
  }
}
