
/* =========================================================
   PIXEL PICK — CUSTOMER WEBSITE
   Complete stylesheet
   ========================================================= */

:root {
  --background: #101014;
  --background-light: #17171e;
  --card: #1c1c25;
  --card-light: #242430;
  --text: #f7f7fb;
  --muted: #a7a7b5;
  --accent: #b8ff3b;
  --accent-dark: #8fdb18;
  --border: #343440;
  --danger: #ff6262;
  --success: #7dffad;
  --radius: 16px;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

button {
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

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

button:not(:disabled):active {
  transform: scale(0.98);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  margin: 6px 0 16px;
  background: #111118;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(184, 255, 59, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #777784;
}

textarea {
  resize: vertical;
}

label {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--text);
}

small {
  display: block;
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.hidden {
  display: none !important;
}

.page-hidden {
  display: none !important;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 6%;
  background: rgba(16, 16, 20, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.logo {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent);
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-label {
  font-size: 0.9rem;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 6%;
  width: min(300px, 88vw);
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.menu-panel a {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  border-radius: 8px;
}

.menu-panel a:hover,
.menu-panel a.active {
  background: var(--card-light);
  color: var(--accent);
  text-decoration: none;
}

.menu-account {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.menu-account button {
  width: 100%;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.cta,
button.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent);
  color: #111;
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.cta:hover,
button.cta:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  text-decoration: none;
}

.outline,
button.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 700;
}

.outline:hover,
button.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.full {
  width: 100%;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
  padding: 80px 6%;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(184, 255, 59, 0.08),
      transparent 35%
    );
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -2px;
}

.hero h1 span {
  color: var(--accent);
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.15rem;
  margin: 20px 0 30px;
}

.feature {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.feature .pill {
  display: inline-block;
  padding: 5px 10px;
  color: #111;
  background: var(--accent);
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 900;
}

.feature .emoji {
  margin: 20px 0;
  font-size: 4rem;
}

.feature h2 {
  margin: 8px 0;
}

.feature p {
  color: var(--muted);
}

/* =========================================================
   SECTIONS AND CARDS
   ========================================================= */

.section {
  padding: 70px 6%;
}

.section h2 {
  margin: 8px 0 30px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 30px;
}

.section-heading p {
  color: var(--muted);
}

.dark {
  background: var(--background-light);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--muted);
}

.card img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.account {
  max-width: 1000px;
  margin: 0 auto;
}

.entry-history {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.entry-history > * {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.referral-content {
  max-width: 760px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.referral-stats p {
  padding: 16px;
  background: var(--card-light);
  border-radius: 10px;
}

.referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-card {
  max-width: 700px;
}

.clear-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   MODALS
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  overflow-y: auto;
}

.modal-box {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.modal-box h2 {
  margin-top: 8px;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
}

.close:hover {
  color: var(--accent);
}

/* =========================================================
   TEN-TASK COMPETITION GAME
   ========================================================= */

.game-modal {
  z-index: 600;
}

.game-modal-box {
  width: min(760px, 100%);
  padding: 28px;
}

.game-intro {
  color: var(--muted);
}

.game-progress-section {
  margin: 24px 0;
}

.game-progress-information {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

#gameTimerText,
#gamePaymentTimerText {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.game-progress-track {
  width: 100%;
  height: 10px;
  background: #343440;
  border-radius: 20px;
  overflow: hidden;
}

.game-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.game-status {
  padding: 12px 14px;
  background: var(--card-light);
  color: var(--muted);
  border-radius: 10px;
  margin: 18px 0;
}

.game-task-card {
  padding: 22px;
  background: #15151c;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.game-task-number {
  display: inline-block;
  padding: 5px 12px;
  color: #111;
  background: var(--accent);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 900;
}

.game-task-card h3 {
  margin: 15px 0;
}

.game-object-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0;
}

.game-object-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 6px;
  background: var(--card-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}

.game-object-icon {
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  line-height: 1.2;
}

.game-object-caption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.65rem;
  overflow-wrap: anywhere;
}

.game-answer-heading {
  margin-top: 24px;
}

.game-answer-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.game-answer-button {
  min-height: 54px;
  padding: 12px 18px;
  background: var(--card-light);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 800;
}

.game-answer-button:hover:not(:disabled) {
  background: #30303b;
  border-color: var(--accent);
  color: var(--accent);
}

.game-answer-button:disabled {
  opacity: 0.6;
}

.game-answer-feedback {
  min-height: 24px;
  color: var(--muted);
  font-weight: 700;
}

.game-complete-panel {
  padding: 24px;
  background: #15151c;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}

.game-complete-panel h3 {
  margin: 8px 0;
}

.game-complete-icon {
  font-size: 3rem;
}

.game-payment-panel {
  margin: 24px 0;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 14px;
  text-align: left;
}

.game-payment-panel h3 {
  color: var(--accent);
}

.game-payment-panel p {
  color: var(--muted);
}

.game-payment-panel .cta {
  margin-top: 12px;
}

.game-close {
  z-index: 2;
}

/* =========================================================
   LEGACY SKILL CHALLENGE BOARD
   Used for referral rewards
   ========================================================= */

.board {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: 20px auto;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    #111118;
  background-size: 10% 10%;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: crosshair;
}

.target {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--accent);
  font-size: 1.5rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

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

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 30px 6%;
  color: var(--muted);
  background: #0b0b0f;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature {
    max-width: 550px;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 14px 5%;
  }

  .logo {
    font-size: 1.25rem;
  }

  .hero {
    padding: 45px 5%;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .section {
    padding: 45px 5%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .referral-content {
    padding: 18px;
  }

  .referral-stats {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 10px;
  }

  .modal-box {
    padding: 22px 18px;
    max-height: calc(100vh - 20px);
  }

  .game-modal-box {
    padding: 22px 14px;
  }

  .game-task-card {
    padding: 14px;
  }

  .game-object-grid {
    gap: 5px;
  }

  .game-object-tile {
    padding: 3px;
    border-radius: 7px;
  }

  .game-object-icon {
    font-size: clamp(1.1rem, 6vw, 1.8rem);
  }

  .game-object-caption {
    font-size: 0.55rem;
  }

  .game-answer-options {
    gap: 8px;
  }

  .game-answer-button {
    padding: 10px;
    min-height: 48px;
  }

  .game-progress-information {
    font-size: 0.8rem;
  }

  .coords {
    grid-template-columns: 1fr;
  }

  .clear-history-actions {
    flex-direction: column;
  }

  .clear-history-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ========================================
   PIXEL PICK — COMPACT COMPETITION CARDS
   ======================================== */

@media (max-width: 520px) {

  /* Three competitions side by side */
  #competitionGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  /* Smaller product image area */
  #competitionGrid .visual {
    height: 105px;
    min-height: 105px;
    font-size: 35px;
    padding: 5px;
  }

  #competitionGrid .visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Reduce space inside each card */
  #competitionGrid .pad {
    padding: 9px;
  }

  /* Smaller competition label */
  #competitionGrid .pill {
    font-size: 8px;
    padding: 4px 5px;
    letter-spacing: 0;
  }

  /* Smaller competition name */
  #competitionGrid .pad h3 {
    font-size: 13px;
    line-height: 1.25;
    margin: 9px 0 6px;
  }

  /* Smaller description */
  #competitionGrid .pad p {
    font-size: 10px;
    line-height: 1.35;
    margin: 5px 0;
  }

  /* Stack price and button neatly */
  #competitionGrid .row {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    margin-top: 10px;
  }

  #competitionGrid .row b {
    font-size: 12px;
  }

  /* Smaller buttons */
  #competitionGrid .row button {
    width: 100%;
    min-height: 34px;
    padding: 6px 3px;
    font-size: 10px;
    line-height: 1.2;
  }
}
/* ========================================
   PIXEL PICK — NEAT MOBILE COMPETITION CARDS
   ======================================== */

@media (max-width: 520px) {

  #competitionGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  #competitionGrid .card {
    height: 250px;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  /* Smaller image section */
  #competitionGrid .visual {
    height: 64px;
    min-height: 64px;
    flex-shrink: 0;
    padding: 6px;
    font-size: 32px;
  }

  #competitionGrid .visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Neater card content */
  #competitionGrid .pad {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* Keep OPEN COMPETITION on one line */
  #competitionGrid .pill {
    display: block;
    text-align: center;
    font-size: 7px;
    line-height: 1.2;
    padding: 4px 2px;
    white-space: nowrap;
    letter-spacing: 0;
  }

  /* Product names */
  #competitionGrid .pad h3 {
    font-size: 13px;
    line-height: 1.25;
    min-height: 48px;
    margin: 8px 0 4px;
    overflow-wrap: anywhere;
  }

  /* Prize description */
  #competitionGrid .pad p {
    font-size: 10px;
    line-height: 1.25;
    margin: 3px 0;
  }

  /* Price and Enter button */
  #competitionGrid .row {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }

  #competitionGrid .row b {
    font-size: 12px;
    text-align: center;
  }

  #competitionGrid .row button {
    width: 100%;
    min-height: 32px;
    padding: 5px 2px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 8px;
  }
}

/* Prevent long-press selection and dragging on the Pixel Pick logo */
.logo {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}
