/* Pi Kappa Phi party check-in. Paradise / tropical theme. */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Baloo+2:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #3a2740;
  --ink-soft: #614a63;
  --muted: #8a7887;
  --text: #fff5ea;                 /* text that sits on the gradient hero */
  --card: #ffffff;
  --panel-2: #fdf1e8;
  --line: rgba(58,39,64,.12);
  --line-strong: rgba(58,39,64,.24);
  --coral: #ff6f5e;
  --pink: #ff4d97;
  --teal: #14b8a6;
  --gold: #f0a92b;
  --gold-bright: #ffbf3f;
  --sun: #ffcf5c;
  --good: #1a9e5f;
  --warn: #d98a1f;
  --bad: #e0483f;
  --radius: 16px;
  --radius-lg: 24px;
  --grad-hero: linear-gradient(160deg, #46215f 0%, #9c3673 36%, #ff6f61 70%, #ffb463 100%);
  --grad-btn: linear-gradient(120deg, #ff7a4d, #ff4d97);
  --font-ui: "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Baloo 2", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Pacifico", "Brush Script MT", cursive;
  --font-greek: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
  overflow-wrap: break-word;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px; line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(720px 380px at 92% 4%, rgba(255,207,92,.60), transparent 62%),
    radial-gradient(680px 440px at 2% 16%, rgba(20,184,166,.28), transparent 60%),
    radial-gradient(760px 520px at 50% 112%, rgba(255,77,151,.24), transparent 60%),
    #fff3e2;
  background-attachment: fixed;
}
img, svg, video, canvas { max-width: 100%; height: auto; }

a { color: var(--pink); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

.wrap { max-width: 940px; margin: 0 auto; padding: 22px 16px calc(64px + env(safe-area-inset-bottom)); }
.wrap-narrow { max-width: 480px; }

@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.card, .hero, .evt, .name-row { animation: pop .4s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* header / brand */
header.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-greek); font-weight: 700; letter-spacing: 1px; font-size: 22px; color: var(--ink); }
.brand .dot { color: var(--gold); font-size: 18px; }
.brand small { font-family: var(--font-script); color: var(--pink); font-weight: 400; letter-spacing: .3px; font-size: 15px; }

.brandmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; gap: 8px; }
.brandmark .star { font-size: 22px; color: var(--gold-bright); filter: drop-shadow(0 2px 8px rgba(255,191,63,.6)); }
.brandmark .greek { font-family: var(--font-greek); font-weight: 700; font-size: 36px; letter-spacing: 6px; }

/* hero = tropical sunset masthead */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(34px, 10vw, 54px) 22px clamp(26px, 6vw, 38px);
  text-align: center; margin-bottom: 20px;
  background: var(--grad-hero); color: var(--text);
  box-shadow: 0 18px 46px rgba(156,54,115,.35);
}
.hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(40,16,44,.18), rgba(40,16,44,.62)); }
.hero .brandmark .greek { color: #fff6ea; font-size: clamp(38px, 13vw, 54px); }
.hero .brandmark .star { color: var(--gold-bright); }
.hero h1 { font-family: var(--font-script); color: #fff6ea; margin: 12px 0 4px; font-weight: 400; font-size: clamp(28px, 8vw, 40px); text-shadow: 0 3px 16px rgba(0,0,0,.35); }
.hero .sub { color: #ffe7d6; font-size: clamp(14px, 4vw, 16px); }
.hero .hero-emoji { font-size: 22px; margin-top: 12px; letter-spacing: 6px; }
.hero .rule { display: none; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 5vw, 24px); box-shadow: 0 12px 28px rgba(156,54,115,.10); }
.card + .card { margin-top: 16px; }

h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(23px, 6vw, 28px); margin: 0 0 4px; letter-spacing: .2px; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 12px; }
h3 { margin: 0 0 6px; font-weight: 700; font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* forms */
label { display: block; font-size: 12px; color: var(--ink-soft); margin: 15px 0 6px; font-weight: 700; letter-spacing: .3px; }
input, textarea, select {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--line-strong); color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 500;
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: #c3b2c0; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.18); }
textarea { min-height: 100px; resize: vertical; }
input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--coral); }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }

/* birthday month/day/year selects stay 3-across, even on phones */
.bday-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 8px; }
.bday-grid select { padding-left: 10px; padding-right: 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px; border: none;
  background: var(--grad-btn); color: #fff;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px; letter-spacing: .3px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 24px rgba(255,77,151,.34);
  transition: transform .08s, filter .12s, box-shadow .12s;
}
.btn:hover { filter: brightness(1.05); box-shadow: 0 14px 30px rgba(255,77,151,.44); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: #fff; border: 1.5px solid var(--line-strong); color: var(--ink); box-shadow: none; }
.btn.ghost:hover { border-color: var(--teal); filter: none; }
.btn.small { min-height: 38px; padding: 8px 15px; font-size: 13px; }
.btn.good { background: linear-gradient(120deg, #22c98a, #12a06a); box-shadow: 0 10px 24px rgba(26,158,95,.3); }
.btn.warn { background: linear-gradient(120deg, #ffc65c, #f0a92b); color: #4a2f00; box-shadow: 0 10px 24px rgba(240,169,43,.3); }
.btn.bad  { background: #fff; border: 1.5px solid var(--bad); color: var(--bad); box-shadow: none; }
.btn.block { width: 100%; }

/* badges */
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; background: #fbeef4; color: var(--ink-soft); border: 1px solid var(--line); }
.badge.paid { background: #e7f7ee; color: var(--good); border-color: rgba(26,158,95,.4); }
.badge.cash { background: #fdf1de; color: var(--warn); border-color: rgba(217,138,31,.4); }
.badge.unpaid { background: #fdeceb; color: var(--bad); border-color: rgba(224,72,63,.4); }
.badge.open { background: #e7f7ee; color: var(--good); border-color: rgba(26,158,95,.4); }
.badge.upcoming { background: #fdeef6; color: var(--pink); border-color: rgba(255,77,151,.4); }
.badge.closed { background: #f1ecef; color: var(--muted); }
.badge.in { background: #e7f7ee; color: var(--good); border-color: rgba(26,158,95,.4); }
.badge.out { background: #f1ecef; color: var(--muted); }

/* tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(20,184,166,.06); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(102px, 1fr)); gap: 10px; }
.stat { background: linear-gradient(180deg, #fff, #fff7f0); border: 1px solid var(--line); border-radius: 14px; padding: 15px 12px; text-align: center; }
.stat .n { font-family: var(--font-display); font-size: clamp(24px, 6.5vw, 30px); font-weight: 800; line-height: 1; color: var(--coral); }
.stat .l { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; margin-top: 5px; font-weight: 700; }

/* event cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.evt { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; box-shadow: 0 10px 24px rgba(156,54,115,.08); transition: transform .12s, box-shadow .12s; }
.evt:hover, .evt:active { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(255,77,151,.2); }
.evt h3 { font-family: var(--font-display); font-size: 18px; }

/* misc */
.notice { padding: 12px 15px; border-radius: 12px; margin: 12px 0; font-size: 14px; font-weight: 600; border: 1px solid; }
.notice.err { background: #fdeceb; color: #b4322b; border-color: rgba(224,72,63,.4); }
.notice.ok { background: #e7f7ee; color: #16794a; border-color: rgba(26,158,95,.4); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.center { text-align: center; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qr { background: #fff; padding: 12px; border-radius: 14px; display: inline-block; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(156,54,115,.12); }
.copyrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copyrow input { flex: 1; min-width: 0; font-size: 14px; }

/* full-screen door pass (vivid, functional) */
.pass { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; overflow: hidden; }
.pass-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; }
.pass-star { font-size: 22px; letter-spacing: 4px; opacity: .95; font-family: var(--font-greek); }
.pass-age { font-family: var(--font-display); font-weight: 800; font-size: clamp(46px, 16vw, 116px); line-height: .9; max-width: 100%; }
.pass-name { font-size: clamp(22px, 7vw, 34px); font-weight: 700; margin-top: 6px; overflow-wrap: anywhere; }
.pass-pay { margin-top: 16px; font-weight: 800; letter-spacing: 2px; padding: 9px 22px; border-radius: 999px; border: 2px solid rgba(255,255,255,.7); font-size: 17px; }
.pass-pay.ok { background: rgba(255,255,255,.2); }
.pass-pay.no { background: rgba(0,0,0,.26); }
.pass-event { opacity: .9; margin-top: 14px; font-weight: 600; }
.pass-note { opacity: .72; font-size: 12px; margin-top: 24px; text-transform: uppercase; letter-spacing: 2px; }
.p-21plus  { background: linear-gradient(165deg, #12a06a, #22c98a); }
.p-under21 { background: linear-gradient(165deg, #c0281f, #f0483f); }
.p-under18 { background: linear-gradient(165deg, #c01e63, #ff4d97); }
.p-unknown { background: linear-gradient(165deg, #4a5568, #6b7688); }

@media (max-width: 560px) {
  .wrap { padding: 18px 15px calc(56px + env(safe-area-inset-bottom)); }
  .toolbar { align-items: stretch; }
  .toolbar h1 { width: 100%; }
  .toolbar > .btn { width: 100%; }
  .row > * { min-width: 100%; }
  th:nth-child(5), td:nth-child(5) { display: none; }
  .spread.wrap-sm { flex-direction: column; align-items: stretch; gap: 12px; }
  .spread.wrap-sm .row, .spread.wrap-sm input { max-width: 100% !important; }
  .copyrow { flex-wrap: wrap; }
  .qr img { width: 100%; height: auto; max-width: 260px; }
}
