@font-face {
  font-family: "Janna LT";
  src: url("/fonts/janna-lt-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Janna LT";
  src: url("/fonts/janna-lt-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy-900: #1a2158;
  --navy-700: #222a6d;
  --teal-600: #2ba8a0;
  --teal-500: #3bb8af;
  --lime-500: #a4c639;
  --lime-600: #8db52e;
  --ink: #1a2158;
  --ink-soft: rgba(26, 33, 88, 0.58);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.75);
  --danger: #c9392b;
  --ok: #1c7f4b;
  --radius: 22px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: "Janna LT", "Tajawal", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #eef2fa 0%, #f5f8fc 45%, #eaf4f0 100%);
  background-attachment: fixed;
}
[dir="rtl"] body { font-family: "Janna LT", "Tajawal", -apple-system, Tahoma, sans-serif; }

.bg { position: fixed; inset: 0; overflow: hidden; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.b1 { width: 320px; height: 320px; background: #3bb8af; top: -80px; inset-inline-start: -60px; opacity: 0.28; }
.b2 { width: 260px; height: 260px; background: #a4c639; bottom: -60px; inset-inline-end: -40px; opacity: 0.3; }
.b3 { width: 200px; height: 200px; background: #222a6d; top: 40%; inset-inline-end: -70px; opacity: 0.14; }

.app { max-width: 480px; margin: 0 auto; padding: 18px 16px 90px; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(16, 31, 66, 0.10);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px; margin-bottom: 16px;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(26,33,88,.18);
  overflow: hidden; padding: 4px;
}
.mark img { width: 100%; height: 100%; object-fit: contain; }
.brand h1 { color: var(--navy-700); }
.brand h1 { font-size: 15px; margin: 0; line-height: 1.25; }
.brand .sub { font-size: 11px; color: var(--ink-soft); }
.langbtn {
  flex: none; border: 1px solid var(--glass-border); background: var(--glass-strong);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600;
  color: var(--navy-700); cursor: pointer;
}

.card { padding: 18px; margin-bottom: 14px; }
.card h2 { margin: 0 0 4px; font-size: 17px; }
.card h3 { margin: 0 0 8px; font-size: 15px; }
.muted { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }

label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
input[type="text"], input[type="email"], input[type="number"], textarea, select {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit;
  border: 1px solid rgba(16, 31, 66, 0.16); border-radius: 14px;
  background: rgba(255, 255, 255, 0.75); color: var(--ink); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(43, 168, 160, 0.16); }
textarea { min-height: 110px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; margin-top: 14px;
  border: none; border-radius: 16px; font-size: 16px; font-weight: 700; font-family: inherit;
  color: var(--navy-900); background: linear-gradient(135deg, var(--lime-500) 0%, var(--lime-600) 130%);
  box-shadow: 0 6px 16px rgba(141, 181, 46, 0.35), inset 0 1px 1px rgba(255,255,255,.5);
  cursor: pointer;
}
.btn:active { transform: scale(0.985); }
.btn.ghost {
  background: var(--glass-strong); color: var(--navy-700);
  border: 1px solid var(--glass-border); box-shadow: none;
}
.btn.small { width: auto; padding: 9px 16px; font-size: 14px; margin-top: 0; border-radius: 12px; }
.btn.accept { background: linear-gradient(145deg, #27a05e, #14663b); box-shadow: 0 6px 16px rgba(20,102,59,.3); }
.btn.reject { background: linear-gradient(145deg, #e0594a, #a3271b); box-shadow: 0 6px 16px rgba(163,39,27,.3); }

.pill {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.pill.pending { background: rgba(240, 168, 40, 0.18); color: #9a6a06; }
.pill.accepted { background: rgba(28, 127, 75, 0.14); color: var(--ok); }
.pill.rejected { background: rgba(201, 57, 43, 0.12); color: var(--danger); }
.pill.role { background: rgba(43, 168, 160, 0.13); color: #1d7a74; }

.submission { padding: 14px 16px; margin-bottom: 10px; }
.submission .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.submission h3 { margin: 0; font-size: 15px; }
.submission .abs { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.55; white-space: pre-wrap; }
.actions { display: flex; gap: 8px; margin-top: 12px; }
.actions .btn { margin-top: 0; flex: 1; }

.scoregrid { display: grid; grid-template-columns: 1fr 84px; gap: 8px 12px; align-items: center; margin-top: 10px; }
.scoregrid .cname { font-size: 14px; font-weight: 600; }
.scoregrid input { text-align: center; }
.scoregrid .max { font-size: 11px; color: var(--ink-soft); font-weight: 400; }

.board-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin-bottom: 8px; }
.board-row .rank {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; background: var(--glass-strong); color: var(--navy-700);
}
.board-row.first .rank { background: linear-gradient(145deg, #ffd76a, #e0a92f); color: #5c3d00; }
.board-row .who { flex: 1; min-width: 0; }
.board-row .who b { display: block; font-size: 14px; }
.board-row .who span { font-size: 12px; color: var(--ink-soft); }
.board-row .score { font-size: 19px; font-weight: 800; color: var(--navy-700); }
.board-row .score small { font-size: 11px; font-weight: 600; color: var(--ink-soft); }

.navbar {
  position: fixed; bottom: 12px; inset-inline: 12px; max-width: 456px; margin: 0 auto;
  display: flex; padding: 8px; gap: 4px; z-index: 10;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--glass-border); border-radius: 24px;
  box-shadow: 0 10px 30px rgba(16, 31, 66, 0.18);
}
.navbar a {
  flex: 1; text-align: center; text-decoration: none; color: var(--ink-soft);
  font-size: 11px; font-weight: 600; padding: 7px 2px; border-radius: 16px;
}
.navbar a .ico { display: block; font-size: 18px; margin-bottom: 1px; }
.navbar a.active { background: rgba(164, 198, 57, 0.2); color: var(--navy-700); }

.notice { padding: 12px 16px; font-size: 13px; border-radius: 14px; margin: 10px 0; }
.notice.ok { background: rgba(28,127,75,.1); color: var(--ok); }
.notice.err { background: rgba(201,57,43,.1); color: var(--danger); }
.notice.info { background: rgba(43,168,160,.1); color: #1d7a74; }
.notice.info .nl { white-space: nowrap; }
.notice.info .nt { overflow-wrap: anywhere; }

.urow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid rgba(16,31,66,.08); }
.urow .uwho { flex: 1 1 100%; min-width: 0; }
.urow .uwho b { display: block; font-size: 14px; }
.urow .uwho span { font-size: 12px; color: var(--ink-soft); word-break: break-all; }
.urow .uctrl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
table.admin { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
table.admin td { overflow-wrap: break-word; }
table.admin th, table.admin td { text-align: start; padding: 7px 6px; border-bottom: 1px solid rgba(16,31,66,.08); }
table.admin th { font-size: 11px; color: var(--ink-soft); }

.center-hero { text-align: center; padding: 34px 20px; }
.center-hero.hero-dark {
  background: linear-gradient(155deg, #262f75 0%, #1a2158 70%);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}
.center-hero .hero-logo { width: 100%; max-width: 250px; height: auto; object-fit: contain; margin-bottom: 12px; }
.center-hero .kicker {
  color: var(--lime-500); font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; margin: 0 0 8px;
}
.center-hero h1 { font-size: 22px; margin: 0 0 6px; }
.center-hero.hero-dark .muted { color: rgba(255,255,255,.72); }

.rowflex { display: flex; gap: 8px; align-items: center; }
.rowflex > * { flex: 1; }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 14px; font-weight: 600; }
.empty { text-align: center; padding: 30px 16px; color: var(--ink-soft); font-size: 14px; }

/* ---------- landing ---------- */
.landing-hero {
  position: relative; overflow: hidden; text-align: center;
  margin: 14px; padding: 40px 22px 34px; border-radius: var(--radius);
  background: linear-gradient(150deg, #1c2258 0%, #222a6d 45%, #173a5e 100%);
  background-size: 200% 200%;
  animation: heroShift 14s ease-in-out infinite alternate;
  box-shadow: 0 18px 44px rgba(34, 42, 109, 0.35);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 26%, rgba(164, 198, 57, 0.22), transparent 55%);
  animation: glowPulse 5s ease-in-out infinite;
}
.landing-hero .hero-logo { width: min(74%, 300px); position: relative; filter: drop-shadow(0 10px 26px rgba(0,0,0,.35)); }
.floaty { animation: floaty 4.5s ease-in-out infinite; }
.land-tag { color: #e9edf9; font-size: 16px; margin: 18px 4px 0; position: relative; }
.land-tba {
  display: inline-block; margin-top: 12px; padding: 7px 16px; border-radius: 999px;
  color: #a4c639; border: 1px solid rgba(164, 198, 57, 0.55); font-size: 13.5px; font-weight: 500;
  position: relative;
}
.land-cta { display: inline-block; margin-top: 22px; text-decoration: none; min-width: 190px; position: relative; }
.land-how h2 { margin-top: 0; }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: start; opacity: 0; animation: fadeup .7s ease forwards; }
.step-ico {
  grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 18px; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: rgba(43, 168, 160, 0.12); color: #2ba8a0;
}
.step-ico svg { width: 28px; height: 28px; }
.step-num {
  position: absolute; top: -6px; inset-inline-end: -6px; width: 22px; height: 22px;
  border-radius: 50%; background: #a4c639; color: #222a6d; font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-t { font-weight: 700; color: #222a6d; padding-top: 4px; }
.step-d { font-size: 14px; margin-top: 2px; }
.step-line { width: 2px; height: 26px; margin-inline-start: 27px; background: linear-gradient(#2ba8a0, #a4c639); border-radius: 2px; }
.land-footer { text-align: center; font-size: 12.5px; margin: 18px 14px 30px; }

.fadeup { opacity: 0; animation: fadeup .8s ease forwards; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes glowPulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes heroShift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@media (prefers-reduced-motion: reduce) {
  .floaty, .hero-glow, .landing-hero { animation: none; }
  .fadeup, .step { animation-duration: .01s; }
}

.land-when { display: flex; flex-direction: column; gap: 8px; align-items: center; margin-top: 12px; position: relative; }
.land-when .land-tba { margin-top: 0; }

/* ---------- premium polish ---------- */
.isvg { display: inline-flex; align-items: center; justify-content: center; vertical-align: -3px; flex: none; }
.isvg svg { width: 100%; height: 100%; display: block; }
.h2ico { display: flex; align-items: center; gap: 9px; }
.h2ico .isvg { color: var(--teal-600); }

.view { animation: viewIn .38s cubic-bezier(.22,.8,.32,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.glass { transition: box-shadow .25s ease, transform .25s ease; }

.btn { transition: transform .16s ease, filter .2s ease, box-shadow .25s ease; }
.btn:hover { filter: brightness(1.05) saturate(1.04); box-shadow: 0 8px 20px rgba(141, 181, 46, 0.42), inset 0 1px 1px rgba(255,255,255,.5); }
.btn:focus-visible, .langbtn:focus-visible, .navbar a:focus-visible {
  outline: 2px solid var(--teal-500); outline-offset: 2px;
}
.btn.ghost:hover { box-shadow: 0 4px 12px rgba(16,31,66,.10); filter: none; background: rgba(255,255,255,.94); }
.btn.icononly { padding: 9px 11px; }
.btn.icononly .isvg { vertical-align: 0; }

input[type="text"], input[type="email"], input[type="number"], textarea, select {
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:hover, textarea:hover, select:hover { border-color: rgba(16, 31, 66, 0.30); }

input[type="file"] { font-size: 13px; color: var(--ink-soft); }
input[type="file"]::file-selector-button {
  font-family: inherit; font-weight: 700; font-size: 13px; color: var(--navy-700);
  background: rgba(43,168,160,.13); border: none; border-radius: 10px;
  padding: 8px 14px; margin-inline-end: 10px; cursor: pointer;
}

.langbtn { transition: background .2s ease, transform .15s ease; }
.langbtn:hover { background: #fff; }
.langbtn:active { transform: scale(.96); }

.navbar a { transition: background .22s ease, color .22s ease, transform .15s ease; }
.navbar a .ico { display: flex; justify-content: center; margin-bottom: 2px; }
.navbar a .ico .isvg { width: 20px; height: 20px; vertical-align: 0; }
.navbar a.active {
  background: linear-gradient(135deg, rgba(164,198,57,.34), rgba(164,198,57,.16));
  color: var(--navy-700);
  box-shadow: inset 0 0 0 1px rgba(164,198,57,.35);
}
.navbar a:active { transform: scale(.94); }

.notice {
  border-inline-start: 3px solid currentColor;
  display: flex; gap: 8px; align-items: flex-start;
  animation: viewIn .3s ease;
}

.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .isvg { color: var(--teal-600); opacity: .55; }

.scoregrid input {
  font-weight: 700; font-size: 17px; color: var(--navy-700);
  border-radius: 12px;
}
.scoregrid .cname { display: flex; align-items: baseline; gap: 6px; }

.board-row { transition: transform .2s ease, box-shadow .2s ease; }
.board-row:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(16,31,66,.14); }
.board-row .rank.r1 { background: linear-gradient(145deg, #ffd76a, #e0a92f); color: #5c3d00; box-shadow: 0 3px 8px rgba(224,169,47,.4); }
.board-row .rank.r2 { background: linear-gradient(145deg, #e8ecf4, #b9c2d4); color: #3d4659; box-shadow: 0 3px 8px rgba(150,160,180,.35); }
.board-row .rank.r3 { background: linear-gradient(145deg, #f0c39a, #c98a4e); color: #5c3200; box-shadow: 0 3px 8px rgba(201,138,78,.35); }

.submission:hover { box-shadow: 0 10px 30px rgba(16,31,66,.13); }

.urow .uctrl .pill { cursor: default; }
table.admin tbody tr:hover, table.admin tr:hover td { background: rgba(43,168,160,.05); }

.skel { padding: 20px; margin: 14px; }
.skel-line {
  height: 14px; border-radius: 8px; margin: 14px 0;
  background: linear-gradient(90deg, rgba(255,255,255,.4) 25%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.4) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
.skel-line.w60 { width: 60%; } .skel-line.w90 { width: 90%; } .skel-line.w40 { width: 40%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.toggle input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 46px !important; height: 26px; border-radius: 999px;
  background: rgba(16,31,66,.18); position: relative; cursor: pointer;
  transition: background .25s ease; transform: none !important; flex: none;
}
.toggle input[type="checkbox"]::after {
  content: ''; position: absolute; top: 3px; inset-inline-start: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.22); transition: transform .25s cubic-bezier(.22,.8,.32,1);
}
.toggle input[type="checkbox"]:checked { background: var(--lime-500); }
.toggle input[type="checkbox"]:checked::after { transform: translateX(20px); }
[dir="rtl"] .toggle input[type="checkbox"]:checked::after { transform: translateX(-20px); }

.land-cta { transition: transform .18s ease, box-shadow .25s ease, filter .2s ease; }
.land-cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
.land-cta:active { transform: translateY(0) scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .view, .notice { animation: none; }
  .skel-line { animation: none; }
}

/* ---------- illustrated hero ---------- */
.hero-art { width: min(82%, 310px); height: auto; position: relative; margin-bottom: 4px; }
.land-title { color: #fff; font-size: 25px; font-weight: 700; margin: 2px 8px 0; line-height: 1.3; position: relative; }
.markG { transform-origin: 180px 96px; transform-box: view-box; animation: markSway 6s ease-in-out infinite; }
.orbitG { transform-origin: 180px 96px; transform-box: view-box; animation: orbitSpin 26s linear infinite; }
.spark { animation: twinkle 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.pulseGlow { animation: glowPulse 5s ease-in-out infinite; }
.rise { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawIn 2.4s ease .5s forwards; }
.steps rect { animation: stepUp .8s cubic-bezier(.22,.8,.32,1) both; }
.steps rect:nth-child(1) { animation-delay: .9s; } .steps rect:nth-child(2) { animation-delay: 1.05s; } .steps rect:nth-child(3) { animation-delay: 1.2s; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
@keyframes markSway { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes stepUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .orbitG, .spark, .markG, .pulseGlow, .rise, .steps rect { animation: none; }
  .rise { stroke-dashoffset: 0; }
}

/* ---------- hero: premium restrained scene ---------- */
.landing-hero { padding: 46px 24px 38px; }
.landing-hero .plx {
  transform: translate(calc(var(--px, 0) * var(--pd, 4px) * 2), calc(var(--py, 0) * var(--pd, 4px) * 2));
  transition: transform .3s cubic-bezier(.22,.8,.32,1);
  will-change: transform;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(46px); pointer-events: none;
}
.oA {
  width: 210px; height: 210px; background: #2ba8a0; opacity: .30;
  top: -70px; inset-inline-start: -60px;
  transform: translate(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -14px));
  animation: orbDriftA 16s ease-in-out infinite alternate;
}
.oB {
  width: 180px; height: 180px; background: #a4c639; opacity: .20;
  bottom: -60px; inset-inline-end: -50px;
  transform: translate(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 12px));
  animation: orbDriftB 19s ease-in-out infinite alternate;
}
@keyframes orbDriftA { from { margin-top: 0; } to { margin-top: 46px; } }
@keyframes orbDriftB { from { margin-bottom: 0; } to { margin-bottom: 40px; } }
.pxfield { position: absolute; inset: 0; pointer-events: none; }
.px {
  position: absolute; border-radius: 50%; background: #fff; opacity: .18;
  animation: twinkle 3s ease-in-out infinite;
}
.beam {
  position: absolute; top: -45%; bottom: -45%; width: 110px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.075), transparent);
  transform: skewX(-18deg); left: -30%;
  animation: beamSweep 9.5s ease-in-out infinite;
}
@keyframes beamSweep { 0%, 55% { left: -30%; } 85%, 100% { left: 115%; } }
.landing-hero .hero-logo { width: min(76%, 300px); }
.land-tag { font-size: 16.5px; letter-spacing: .2px; }
.land-title { display: none; }
@media (prefers-reduced-motion: reduce) {
  .orb, .px, .beam { animation: none; }
  .landing-hero .plx { transform: none; }
}

/* ---------- desktop layout (mobile untouched below 900px) ---------- */
@media (min-width: 900px) {
  .app { max-width: 1140px; padding: 26px 34px 120px; }

  .topbar { padding: 16px 22px; margin-bottom: 22px; }
  .topbar .mark { width: 46px; height: 46px; border-radius: 14px; }
  .brand h1 { font-size: 17px; }
  .brand .sub { font-size: 12px; }
  .langbtn { padding: 9px 18px; font-size: 14px; }

  .card { padding: 26px 30px; margin-bottom: 18px; }
  .card h2 { font-size: 20px; }
  .card h3 { font-size: 16px; }
  .muted { font-size: 14px; }

  /* landing */
  .landing-hero { margin: 16px 0 22px; padding: 74px 60px 66px; }
  .landing-hero .hero-logo { width: min(38%, 340px); }
  .land-tag { font-size: 21px; max-width: 620px; margin-inline: auto; margin-top: 24px; }
  .land-when { flex-direction: row; justify-content: center; gap: 14px; margin-top: 20px; }
  .land-when .land-tba { font-size: 15px; padding: 9px 20px; }
  .land-cta { width: auto; min-width: 260px; margin-top: 30px; font-size: 17px; padding-inline: 48px; }
  .land-how { padding: 32px 36px; }
  .land-how h2 { font-size: 22px; }
  .steps { flex-direction: row; gap: 26px; margin-top: 18px; }
  .step { flex: 1; grid-template-columns: 64px 1fr; }
  .step-ico { width: 64px; height: 64px; border-radius: 20px; }
  .step-line { display: none; }
  .step-t { font-size: 16px; }
  .step-d { font-size: 14.5px; }
  .land-footer { font-size: 14px; margin-top: 26px; }

  /* submission lists: two-column grids */
  .sub-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
  .sub-list .submission { margin-bottom: 0; padding: 20px 22px; }
  .submission h3 { font-size: 16px; }
  .submission .abs { font-size: 13.5px; }

  /* leaderboard */
  .board-row { padding: 18px 24px; margin-bottom: 10px; }
  .board-row .rank { width: 42px; height: 42px; font-size: 17px; }
  .board-row .who b { font-size: 16px; }
  .board-row .who span { font-size: 13px; }
  .board-row .score { font-size: 24px; }

  /* forms breathe a bit more */
  label { font-size: 14px; margin-top: 16px; }
  input[type="text"], input[type="email"], input[type="number"], textarea, select { padding: 13px 16px; }
  textarea { min-height: 140px; }
  .btn { padding: 15px; }

  /* admin: two-column grid, people card spans both rows */
  .admin-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: start; }
  .admin-grid > .card { margin-bottom: 0; }
  .admin-grid > .card:first-child { grid-row: span 2; }
  .urow .uwho { flex: 1 1 auto; }
  #au-role { flex: 0 0 140px; }
  table.admin { font-size: 14px; }

  /* scoring grid wider inputs */
  .scoregrid { grid-template-columns: 1fr 110px; gap: 10px 16px; }

  /* bottom nav becomes a wider floating dock */
  .navbar { max-width: 620px; bottom: 20px; padding: 10px; border-radius: 26px; }
  .navbar a { font-size: 12px; padding: 9px 6px; }
  .navbar a .ico .isvg { width: 22px; height: 22px; }

  .empty { padding: 44px 20px; }
  .signin-wide { max-width: 560px; margin: 0 auto; }
}

@media (min-width: 1500px) {
  .app { max-width: 1320px; }
  .landing-hero { padding: 88px 80px 78px; }
  .landing-hero .hero-logo { width: min(34%, 380px); }
  .sub-list { grid-template-columns: 1fr 1fr 1fr; }
  .board-row { padding: 20px 28px; }
  .admin-grid { grid-template-columns: 1.2fr 1fr; gap: 22px; }
}

/* ---------- resident journey tracker ---------- */
.j-msg { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--navy-700); }
.journey { display: flex; align-items: flex-start; margin: 12px 0 4px; }
.j-stage { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 56px; flex: none; text-align: center; }
.j-ico { width: 34px; height: 34px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(16,31,66,.06); color: rgba(26,33,88,.35); }
.j-ico svg { width: 18px; height: 18px; }
.j-t { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.25; }
.j-stage.done .j-ico { background: rgba(43,168,160,.15); color: #1d7a74; }
.j-stage.done .j-t { color: var(--navy-700); }
.j-stage.active .j-ico { background: rgba(164,198,57,.22); color: #6d8f12; box-shadow: 0 0 0 2px rgba(164,198,57,.5); animation: jPulse 2.2s ease-in-out infinite; }
.j-stage.active .j-t { color: var(--navy-700); }
.j-stage.failed .j-ico { background: rgba(201,57,43,.12); color: var(--danger); }
.j-stage.failed .j-t { color: var(--danger); }
.j-link { flex: 1; height: 2px; margin-top: 16px; background: rgba(16,31,66,.10); border-radius: 2px; }
.j-link.done { background: linear-gradient(90deg, #2ba8a0, #a4c639); }
@keyframes jPulse { 0%,100% { box-shadow: 0 0 0 2px rgba(164,198,57,.5); } 50% { box-shadow: 0 0 0 5px rgba(164,198,57,.18); } }
@media (prefers-reduced-motion: reduce) { .j-stage.active .j-ico { animation: none; } }
.submission.accepted-sub { border-inline-start: 3px solid var(--teal-600); }
.submission.rejected-sub { border-inline-start: 3px solid var(--danger); }

/* ---------- award / result card ---------- */
.award { display: flex; gap: 18px; align-items: center; }
.award .award-ico { width: 62px; height: 62px; border-radius: 20px; flex: none; display: flex; align-items: center; justify-content: center; }
.award .award-ico svg { width: 34px; height: 34px; }
.award h2 { margin: 2px 0; font-size: 22px; }
.award-sep { margin-inline: .35em; opacity: .6; font-weight: 400; }
.award .award-kicker { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; opacity: .75; }
.award .award-score { font-size: 26px; font-weight: 800; margin-top: 6px; }
.award .award-score small { font-size: 12px; font-weight: 600; opacity: .7; }
.award.gold { background: linear-gradient(150deg, #fff6dd, #ffe9ae); border-color: #f0d488; color: #5c3d00; }
.award.gold .award-ico { background: linear-gradient(145deg, #ffd76a, #e0a92f); color: #5c3d00; box-shadow: 0 4px 12px rgba(224,169,47,.4); }
.award.silver { background: linear-gradient(150deg, #f4f7fb, #e3e9f2); border-color: #cdd6e4; color: #3d4659; }
.award.silver .award-ico { background: linear-gradient(145deg, #e8ecf4, #b9c2d4); color: #3d4659; }
.award.bronze { background: linear-gradient(150deg, #f9ecdf, #f2d9bd); border-color: #e3c49c; color: #5c3200; }
.award.bronze .award-ico { background: linear-gradient(145deg, #f0c39a, #c98a4e); color: #5c3200; }
.award.navy { background: linear-gradient(150deg, #262f75, #1a2158); color: #fff; border-color: rgba(255,255,255,.15); }
.award.navy .award-ico { background: rgba(255,255,255,.12); color: var(--lime-500); }
.award.navy .muted { color: rgba(255,255,255,.7); }

/* ---------- perfecting pass ---------- */
.btn:disabled { opacity: .55; cursor: default; filter: none; transform: none; box-shadow: none; }
.submission h3, .board-row .who b, .submission .abs, .award h2 { overflow-wrap: anywhere; }
.brand h1 { overflow-wrap: anywhere; }
.navbar a:focus-visible { outline-offset: -2px; }

/* ---------- winner confetti (one gentle burst, gold award card only) ---------- */
.award { position: relative; overflow: hidden; }
.cf { position: absolute; inset: 0; pointer-events: none; }
.cfp {
  position: absolute; top: -12px; width: var(--cfs, 6px); height: calc(var(--cfs, 6px) * 1.4);
  background: var(--cfc, #a4c639); border-radius: var(--cfr, 2px); opacity: 0;
  animation: cfFall var(--cfdur, 3s) cubic-bezier(.25,.6,.45,1) var(--cfd, 0s) 1 forwards;
}
@keyframes cfFall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  8% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--cfsway, 0px), 190px) rotate(340deg); }
}
@media (prefers-reduced-motion: reduce) { .cf { display: none; } }
