/* ==========================================================
   CompE '96 — 30th Anniversary Pool Party
   Mobile-first stylesheet. Phones get the base styles;
   tablets and desktops get progressive enhancements.
   ========================================================== */

:root {
  --bg-0: #04090a;
  --bg-1: #07120e;
  --bg-2: #0a1f17;
  --line: rgba(15, 169, 88, 0.22);
  --line-soft: rgba(15, 169, 88, 0.10);

  --green:    #0fa958;   /* logo green */
  --green-2:  #14d672;
  --green-hi: #4dffa0;   /* neon highlight */
  --gold:     #f5c451;   /* small star in the crest */
  --red:      #d6443a;
  --blue:     #2f7ad6;

  --ink:      #e6f6ec;
  --ink-mut:  #9cc7ad;
  --ink-dim:  #5b8470;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: 'Orbitron', system-ui, -apple-system, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --shadow-glow: 0 0 0 1px rgba(15,169,88,0.15), 0 20px 60px -25px rgba(15,169,88,0.45);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body { margin: 0; padding: 0; }

body {
  min-height: 100%;
  min-height: 100dvh;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(15,169,88,0.20), transparent 60%),
    radial-gradient(700px 500px at 5% 100%, rgba(47,122,214,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, #03060a 100%);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  /* Use overflow-x: clip so we contain horizontal overflow WITHOUT
     creating a scroll container — keeps wheel scrolling on the document.
     Browsers that don't support `clip` fall back to `hidden`. */
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { max-width: 100%; display: block; }

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

/* ==== Background layers ==== */
#matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.14;
  pointer-events: none;
}
.circuit-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.16) 3px,
    rgba(0,0,0,0) 4px
  );
  mix-blend-mode: multiply;
  opacity: 0.30;
}

/* ==== Layout (mobile-first) ==== */
.shell {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding:
    calc(14px + var(--safe-t))
    calc(16px + var(--safe-r))
    calc(40px + var(--safe-b))
    calc(16px + var(--safe-l));
}

/* ==== Status bar (compact on mobile) ==== */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mut);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(7,18,14,0.85), rgba(4,9,10,0.85));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 22px;
}
.status-left, .status-right { display: flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-r { background: #ff5f57; box-shadow: 0 0 6px #ff5f57aa; }
.dot-y { background: #febc2e; box-shadow: 0 0 6px #febc2eaa; }
.dot-g { background: #28c840; box-shadow: 0 0 6px #28c84099; }
.status-title { display: none; }
.status-net { color: var(--green-hi); letter-spacing: 0.06em; font-size: 10px; }

/* ==== Hero (mobile) ==== */
.hero {
  text-align: center;
  padding: 22px 0 18px;
  position: relative;
}
.hero-logo {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.96), rgba(255,255,255,0.85) 78%, rgba(255,255,255,0) 80%);
  box-shadow:
    0 0 0 1px rgba(15,169,88,0.45),
    0 0 0 6px rgba(15,169,88,0.10),
    0 0 40px rgba(15,169,88,0.40),
    0 18px 50px -16px rgba(15,169,88,0.50);
  animation: pulse 4.5s ease-in-out infinite;
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.18));
}
.logo-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(15,169,88,0.45), transparent 30%);
  filter: blur(12px);
  z-index: -1;
  animation: spin 9s linear infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(15,169,88,0.45), 0 0 0 6px rgba(15,169,88,0.10), 0 0 40px rgba(15,169,88,0.40), 0 18px 50px -16px rgba(15,169,88,0.50); }
  50%      { box-shadow: 0 0 0 1px rgba(77,255,160,0.65), 0 0 0 8px rgba(15,169,88,0.18), 0 0 70px rgba(77,255,160,0.50), 0 18px 50px -8px rgba(77,255,160,0.55); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mut);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  word-break: break-word;
}
.prompt { color: var(--green-hi); margin-right: 4px; }

.title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.title-line { display: block; }
.title-glow {
  background: linear-gradient(90deg, var(--green-hi), var(--green), var(--gold));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(77,255,160,0.30));
}

.event-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin: 0 auto 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(245,196,81,0.08), rgba(47,122,214,0.06));
  border: 1px solid rgba(245,196,81,0.35);
  text-shadow: 0 0 14px rgba(245,196,81,0.30);
  white-space: nowrap;
}
.event-tag sup { font-size: 0.6em; vertical-align: super; }
.tag-bracket { color: var(--blue); opacity: 0.85; }

.subtitle {
  font-family: var(--mono);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 6px auto 18px;
  min-height: 2.6em;
  letter-spacing: 0.01em;
  padding: 0 4px;
  word-break: break-word;
}
.caret {
  display: inline-block;
  margin-left: 2px;
  color: var(--green-hi);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-mut);
  background: rgba(7,18,14,0.55);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* ==== Section header ==== */
.section-h {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--green-hi);
  letter-spacing: 0.04em;
  margin: 36px 0 14px;
  padding-left: 8px;
  border-left: 3px solid var(--green);
  text-transform: lowercase;
  word-break: break-word;
}

/* ==== Countdown (2x2 on mobile) ==== */
.cd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.cd-cell {
  position: relative;
  text-align: center;
  padding: 16px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15,169,88,0.06), rgba(7,18,14,0.55));
  overflow: hidden;
}
.cd-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(15,169,88,0.06) 50%, rgba(15,169,88,0.06) 100%);
  background-size: 100% 8px;
  opacity: 0.35;
  pointer-events: none;
}
.cd-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--green-hi);
  text-shadow: 0 0 22px rgba(77,255,160,0.35);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.cd-lbl {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mut);
  margin-top: 4px;
}

/* ==== Codeblock (compact + scrollable on mobile) ==== */
.codeblock {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(7,18,14,0.78), rgba(4,9,10,0.78));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 14px 38px;
  margin: 0 0 22px;
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-glow);
}
.codeblock::before {
  content: "1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 10\A 11";
  position: absolute;
  top: 14px;
  left: 10px;
  white-space: pre;
  color: var(--ink-dim);
  text-align: right;
  width: 18px;
  border-right: 1px solid var(--line-soft);
  padding-right: 6px;
  user-select: none;
}
.codeblock code { display: inline-block; min-width: max-content; }
.codeblock .k { color: var(--gold); }
.codeblock .s { color: var(--green-hi); }
.codeblock .n { color: #ffb38a; font-weight: 600; }
.codeblock .c { color: var(--ink-dim); font-style: italic; }

/* ==== Cards (single column on mobile) ==== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, rgba(15,169,88,0.04), rgba(4,9,10,0.55));
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(280px 120px at var(--mx,50%) var(--my,0%), rgba(77,255,160,0.10), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover,
.card:active {
  border-color: rgba(77,255,160,0.55);
  box-shadow: var(--shadow-glow);
}
.card:hover::after,
.card:active::after { opacity: 1; }
.card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--green-hi);
  background: rgba(15,169,88,0.10);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.card-icon svg { width: 18px; height: 18px; }
.card h3 {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--ink-mut);
  margin: 0 0 6px;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}
.card strong { color: var(--green-hi); font-weight: 600; letter-spacing: 0.01em; }

/* ==== Ticket / contribution callout ==== */
.ticket-section { margin-top: 4px; }
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(245,196,81,0.30);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(245,196,81,0.10), transparent 60%),
    radial-gradient(600px 200px at 100% 100%, rgba(15,169,88,0.10), transparent 60%),
    linear-gradient(180deg, rgba(7,18,14,0.92), rgba(4,9,10,0.92));
  box-shadow:
    0 0 0 1px rgba(245,196,81,0.10),
    0 25px 60px -25px rgba(245,196,81,0.40);
}
/* perforated edge effect */
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background-image: radial-gradient(circle at 6px 3px, var(--bg-1) 2.5px, transparent 3px);
  background-size: 12px 6px;
  background-repeat: repeat-x;
  pointer-events: none;
}
.ticket::before { top: -3px; }
.ticket::after  { bottom: -3px; }

.ticket-left,
.ticket-right {
  padding: 22px 20px;
}
.ticket-left {
  text-align: center;
  border-bottom: 1px dashed rgba(245,196,81,0.30);
}
.ticket-right { padding-top: 18px; }

.ticket-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mut);
  margin-bottom: 8px;
}

.ticket-amount {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(245,196,81,0.35);
  line-height: 1;
}
.ticket-amount .peso  { font-size: 1.6rem; margin-right: 4px; opacity: 0.9; }
.ticket-amount .amt   { font-size: 3.4rem; letter-spacing: 0.02em; }
.ticket-amount .cents { font-size: 1.1rem; opacity: 0.7; margin-left: 2px; }

.ticket-sub {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 6px;
}

.ticket-divider {
  display: none; /* horizontal mode on mobile uses border-bottom on left side */
}

.ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ticket-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  padding: 6px 0;
}
.ticket-list li + li { border-top: 1px dashed var(--line-soft); }
.ticket-list .check {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(15,169,88,0.18);
  border: 1px solid rgba(77,255,160,0.45);
  color: var(--green-hi);
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}
.ticket-list strong { color: var(--gold); font-weight: 700; }

.ticket-note {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-mut);
  margin: 12px 4px 0;
  padding: 10px 12px;
  border-left: 2px solid var(--line);
  background: rgba(7,18,14,0.4);
  border-radius: 0 8px 8px 0;
}
.ticket-note .prompt { color: var(--gold); margin-right: 6px; }

/* Honeypot — invisible to humans, scraped by bots */
.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* ==== RSVP form (stacked + iOS-safe) ==== */
.rsvp form {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(7,18,14,0.78), rgba(4,9,10,0.78));
  box-shadow: var(--shadow-glow);
}
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.rsvp label { display: flex; flex-direction: column; gap: 6px; }
.rsvp label span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mut);
}
/* 16px font on inputs prevents iOS Safari from auto-zooming on focus */
.rsvp input,
.rsvp select {
  font-family: var(--body);
  font-size: 16px;
  padding: 13px 14px;
  min-height: 48px;
  background: rgba(4,9,10,0.7);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.rsvp select {
  background-image: linear-gradient(45deg, transparent 50%, var(--green-hi) 50%),
                    linear-gradient(135deg, var(--green-hi) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.rsvp input::placeholder { color: var(--ink-dim); }
.rsvp input:focus,
.rsvp select:focus {
  border-color: var(--green-hi);
  box-shadow: 0 0 0 3px rgba(77,255,160,0.18);
  background-color: rgba(7,18,14,0.95);
}
.rsvp select option {
  background: #07120e;
  color: var(--ink);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 22px;
  min-height: 50px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #03130a;
  background: linear-gradient(135deg, var(--green-hi), var(--green-2) 60%, var(--green));
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(77,255,160,0.65), 0 0 0 1px rgba(77,255,160,0.5);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  touch-action: manipulation;
}
.cta:hover { filter: brightness(1.05); }
.cta:active { transform: translateY(1px); filter: brightness(0.96); }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform .8s ease;
}
.cta:hover::before { transform: translateX(120%); }
.cta-arrow { font-size: 16px; }

.form-status {
  font-family: var(--mono);
  font-size: 12.5px;
  margin: 12px 0 0;
  min-height: 1.2em;
  color: var(--green-hi);
  word-break: break-word;
}
.form-status.err { color: #ff8a7a; }

/* ==== Footer ==== */
.foot {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.quote {
  font-family: var(--mono);
  color: var(--ink-mut);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 8px;
  padding: 0 4px;
}
.quote em { color: var(--ink); font-style: italic; }
.copyright {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  margin: 0;
}
.credit {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mut);
  letter-spacing: 0.04em;
  margin: 8px 0 0;
}
.credit a {
  color: var(--green-hi);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(77,255,160,0.40);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease, text-shadow .2s ease;
}
.credit a:hover,
.credit a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
  text-shadow: 0 0 14px rgba(245,196,81,0.45);
  outline: none;
}

/* ==========================================================
   PROGRESSIVE ENHANCEMENT — tablet (≥600px)
   ========================================================== */
@media (min-width: 600px) {
  .shell {
    max-width: 720px;
    padding-left: calc(28px + var(--safe-l));
    padding-right: calc(28px + var(--safe-r));
  }

  .status-bar { font-size: 12px; padding: 9px 12px; }
  .status-title { display: inline; opacity: 0.7; margin-left: 6px; }
  .dot { width: 9px; height: 9px; }

  .hero { padding: 32px 0 24px; }
  .hero-logo { width: 200px; height: 200px; }

  .kicker { font-size: 12.5px; }
  .title { font-size: 2.6rem; letter-spacing: 0.04em; }
  .event-tag { font-size: 0.92rem; padding: 6px 12px; gap: 8px; }
  .subtitle { font-size: 1rem; min-height: 1.8em; }
  .badge { font-size: 11px; padding: 6px 11px; }

  .cd-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .cd-cell { padding: 20px 8px 14px; }
  .cd-num { font-size: 2.4rem; }

  .codeblock { font-size: 13px; padding: 16px 16px 16px 44px; }
  .codeblock::before { left: 12px; width: 20px; padding-right: 8px; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .rsvp form { padding: 20px; }
  .row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .row-full { grid-template-columns: 1fr; }
  .cta { width: auto; }

  .section-h { font-size: 13.5px; margin: 48px 0 16px; }

  /* Ticket: side-by-side on tablets+ */
  .ticket {
    grid-template-columns: 1fr 1px 1.2fr;
  }
  .ticket-left {
    border-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 28px 22px;
  }
  .ticket-right { padding: 28px 26px; }
  .ticket-divider {
    display: block;
    position: relative;
    width: 1px;
    background-image: linear-gradient(to bottom, transparent 0, transparent 6px, rgba(245,196,81,0.40) 6px, rgba(245,196,81,0.40) 12px);
    background-size: 1px 12px;
    background-repeat: repeat-y;
  }
  .notch {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-1);
    box-shadow: inset 0 0 0 1px rgba(245,196,81,0.30);
  }
  .notch-top { top: -10px; }
  .notch-bot { bottom: -10px; }

  .ticket-amount .amt { font-size: 4rem; }
  .ticket-amount .peso { font-size: 1.8rem; }
}

/* ==========================================================
   PROGRESSIVE ENHANCEMENT — desktop (≥960px)
   ========================================================== */
@media (min-width: 960px) {
  .shell {
    max-width: 1080px;
    padding-top: calc(28px + var(--safe-t));
    padding-bottom: calc(80px + var(--safe-b));
  }

  .status-bar { font-size: 12.5px; padding: 10px 14px; margin-bottom: 36px; }

  .hero { padding: 40px 0 28px; }
  .hero-logo { width: 240px; height: 240px; }

  .title { font-size: 4.2rem; }
  .subtitle { font-size: 1.1rem; }

  .cards { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .codeblock { font-size: 13.5px; padding-left: 50px; }

  .section-h { font-size: 14px; margin: 56px 0 18px; }
}

/* ==========================================================
   Accessibility / motion
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .logo-glow,
  .caret,
  .cta::before { animation: none !important; transition: none !important; }
  #matrix { display: none; }
}

/* High-DPI mobile: keep matrix subtle so it doesn't drown content */
@media (max-width: 600px) and (min-resolution: 2dppx) {
  #matrix { opacity: 0.10; }
}
