/* ═══════════════════════════════════════════════════════════
   MiMa Place — style.css
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:         #0d1020;
  --brick:      #141830;
  --gold-hot:   #e8a020;
  --gold:       #d89028;
  --orange:     #d06018;
  --cyan:       #28c8d8;
  --cyan-deep:  #1888c8;
  --blue:       #2060a8;
  --magenta:    #c83868;
  --red-splash: #d03040;
  --text:       #e0e4f0;
  --muted:      #7880a8;
  --surface:    rgba(16,20,40,0.85);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Brick wall texture ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 30px,
      rgba(255,255,255,0.03) 30px,
      rgba(255,255,255,0.03) 31px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.02) 60px,
      rgba(255,255,255,0.02) 61px
    );
  pointer-events: none;
}

/* ── Paint splatters ────────────────────────────────────────── */
.splatter {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.splatter-1 {
  width: 500px; height: 500px;
  top: -10%; left: -5%;
  background: radial-gradient(circle, rgba(208,96,24,0.15) 0%, transparent 70%);
}
.splatter-2 {
  width: 600px; height: 600px;
  top: 20%; right: -15%;
  background: radial-gradient(circle, rgba(40,200,216,0.10) 0%, transparent 70%);
}
.splatter-3 {
  width: 400px; height: 400px;
  bottom: 10%; left: 10%;
  background: radial-gradient(circle, rgba(200,56,104,0.10) 0%, transparent 70%);
}
.splatter-4 {
  width: 350px; height: 350px;
  top: 60%; right: 5%;
  background: radial-gradient(circle, rgba(232,160,32,0.08) 0%, transparent 70%);
}

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,16,32,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  height: 56px;
}
.nav-brand {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}
.nav-brand .mi { color: var(--gold-hot); }
.nav-brand .ma { color: var(--cyan); }

.nav-links { display: flex; gap: 0.3rem; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'Russo One', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: all 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-links a.active {
  color: var(--gold-hot);
  background: rgba(232,160,32,0.08);
}

/* ── Pages ───────────────────────────────────────────────────── */
.page {
  display: none;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}
.page.active { display: block; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4rem 0 2.5rem;
}
.hero-logo {
  width: min(420px, 85vw);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 60px rgba(232,160,32,0.2))
          drop-shadow(0 0 30px rgba(40,200,216,0.15));
}
.hero-tagline {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.hero-tagline .pop {
  background: linear-gradient(135deg, var(--gold-hot), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Spray-paint tags ────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.5rem;
  padding: 0.2rem 0.8rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  position: relative;
  transform: rotate(-1deg);
}
.tag--gold {
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold-hot), var(--orange));
  box-shadow: 4px 4px 0 rgba(208,96,24,0.3);
}
.tag--cyan {
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  box-shadow: 4px 4px 0 rgba(40,200,216,0.25);
}
.tag--pink {
  color: var(--bg);
  background: linear-gradient(135deg, var(--magenta), var(--red-splash));
  box-shadow: 4px 4px 0 rgba(200,56,104,0.25);
}

/* ── Sections ────────────────────────────────────────────────── */
.section {
  padding: 2.5rem 0;
}
.section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 620px;
  margin-bottom: 1rem;
}

/* ── Feature cards ───────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 1.4rem;
  border-left: 3px solid var(--orange);
  transition: border-color 0.3s, transform 0.2s;
}
.card:nth-child(2) { border-left-color: var(--cyan); }
.card:nth-child(3) { border-left-color: var(--magenta); }
.card:hover { transform: translateY(-2px); }
.card-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.card h3 {
  font-family: 'Russo One', sans-serif;
  font-size: 0.95rem;
  color: var(--gold-hot);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card:nth-child(2) h3 { color: var(--cyan); }
.card:nth-child(3) h3 { color: var(--magenta); }
.card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Social links ────────────────────────────────────────────── */
.links-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--orange);
  border-radius: 4px;
  color: var(--gold-hot);
  text-decoration: none;
  font-family: 'Russo One', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.25s;
  background: transparent;
}
.link-btn:hover {
  background: var(--orange);
  color: var(--bg);
}
.link-btn--cyan {
  border-color: var(--cyan);
  color: var(--cyan);
}
.link-btn--cyan:hover {
  background: var(--cyan);
  color: var(--bg);
}
.link-btn .icon { font-size: 1.1rem; }

/* ── Divider paint drip ──────────────────────────────────────── */
.drip {
  height: 3px;
  margin: 1rem 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold-hot), var(--cyan), var(--cyan-deep));
  opacity: 0.5;
}

/* ═══════════════ SUBMIT PAGE ════════════════════════════════ */
.submit-hero {
  text-align: center;
  padding: 3.5rem 0 2rem;
}
.submit-hero h1 {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin-bottom: 0.4rem;
}
.submit-hero h1 .s1 {
  background: linear-gradient(135deg, var(--gold-hot), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.submit-hero h1 .s2 {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.submit-hero p {
  color: var(--muted);
  font-size: 0.95rem;
}

.submit-box {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 3px solid var(--orange);
  border-radius: 8px;
  padding: 2rem;
  max-width: 520px;
  margin: 0 auto 3rem;
}
.submit-box label {
  display: block;
  font-family: 'Russo One', sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.submit-box input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(13,16,32,0.8);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s;
}
.submit-box input:focus {
  border-color: var(--cyan);
}
.submit-box input::placeholder {
  color: #2a3060;
}
.field-group { margin-bottom: 1.2rem; }

.submit-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--gold-hot), var(--orange));
  border: none;
  border-radius: 4px;
  color: var(--bg);
  font-family: 'Permanent Marker', cursive;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 0.4rem;
}
.submit-btn:hover { opacity: 0.88; }
.submit-btn:active { transform: scale(0.97); }
.submit-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.submit-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.6em;
}
.submit-status.ok   { color: #40c080; }
.submit-status.err  { color: #e05050; }
.submit-status.wait { color: var(--muted); }

.rules-list {
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.rules-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.rules-list li::before {
  content: '▸';
  position: absolute;
  left: 0.2rem;
  color: var(--orange);
  font-weight: 700;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
  color: #3a4068;
  font-size: 0.75rem;
  font-family: 'Russo One', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 1.5rem; }
  .links-row { flex-direction: column; }
  .link-btn { justify-content: center; }
}


/* ═══════════════ TERMS PAGE ═════════════════════════════════ */
.terms-box {
  max-width: 640px;
  margin: 0 auto 3rem;
}
.terms-section {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
}
.terms-section p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}
.terms-section strong {
  color: var(--gold-hot);
}
.terms-section a {
  color: var(--cyan);
  text-decoration: none;
}
.terms-section a:hover {
  text-decoration: underline;
}
.terms-accent {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.1rem !important;
  color: var(--gold-hot) !important;
  margin-top: 0.6rem !important;
}
.terms-warning {
  border-left-color: var(--magenta);
  background: rgba(200,56,104,0.06);
}
.terms-warning strong {
  color: var(--magenta);
}

/* ── Checkbox ────────────────────────────────────────────────── */
.agree-group {
  margin-bottom: 1rem;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem !important;
  color: var(--muted) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-family: 'Inter', sans-serif !important;
}
.checkbox-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--muted);
  border-radius: 3px;
  background: var(--bg);
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.2s;
}
.checkbox-label input[type="checkbox"]:checked {
  background: var(--gold-hot);
  border-color: var(--gold-hot);
}
.checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  display: block;
  text-align: center;
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
}
.terms-link {
  color: var(--cyan) !important;
  text-decoration: none;
}
.terms-link:hover {
  text-decoration: underline;
}

.terms-rules {
  border-left-color: var(--cyan);
}
.terms-rules p {
  margin-bottom: 0.8rem !important;
}
.terms-rules p:last-child {
  margin-bottom: 0 !important;
}
.terms-rules strong {
  color: var(--magenta);
}
