[hidden] { display: none !important; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  --navy: #14324a; --muted: #3e5a70; --grass: #bfe8a8; --grass-d: #8cc477; --white: #ffffff; --ice: #f4f9ff; --line: #e2e8ee;
  --blue: #2f7fe0; --orange: #ff6b3d; --orange-d: #c94a22; --sun: #ffd23f; --sun-d: #d6a800;
  --go: #1f7a43; --maybe: #ffe27a; --maybe-bd: #8a6300; --no: #b3261e;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--grass); color: var(--navy); font: 1rem/1.45 Rubik, system-ui, -apple-system, "Segoe UI", sans-serif; }
.map { position: fixed; inset: 0; z-index: 0; }
.map svg { width: 100%; height: 100%; display: block; }
main { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; padding: max(14px, env(safe-area-inset-top)) 0 0; }
.screen { display: flex; flex-direction: column; width: 100%; gap: 12px; }
.screen.center { justify-content: center; align-items: center; padding: 16px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* first screen */
.title-card { position: relative; margin: 4px 16px 0; background: var(--white); border-radius: 22px 22px 6px 6px; padding: 14px 18px 26px; box-shadow: 0 4px 0 var(--grass-d); overflow: hidden; transform: rotate(-1.2deg); }
.title-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(90deg, #d93b30 0 22px, #ffffff 22px 44px); border-top: 2px solid var(--navy); }
.wordmark { margin: 0; display: flex; flex-direction: column; line-height: 1; }
.wm-top { font-weight: 900; font-size: .95rem; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); margin-left: 2px; }
.wm-main { display: flex; align-items: center; font-weight: 900; font-size: 2.45rem; letter-spacing: -0.02em; color: var(--navy); margin-top: 4px; }
.wm-p { display: inline-flex; align-items: center; justify-content: center; width: 1.05em; height: 1.05em; margin-right: 3px; border-radius: .3em; background: var(--blue); color: #fff; font-size: .9em; box-shadow: 0 3px 0 #1d5fb8; transform: rotate(-6deg); }
.wm-q { color: var(--orange); display: inline-block; transform: rotate(10deg); margin-left: 1px; }
.tagline { margin: 8px 0 0; font-weight: 800; color: #2a6fb0; font-size: 1rem; }
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 16px; }
.p-big { width: 190px; height: 210px; }
.p-big .p-svg, .p-mid .p-svg { width: 100%; height: 100%; overflow: visible; }
.catch-btn { margin-top: -34px; position: relative; display: inline-flex; align-items: center; gap: 10px; border: 6px solid var(--white); border-radius: 999px; background: var(--orange); color: #fff; font-weight: 900; font-size: 1.4rem; padding: 18px 30px; box-shadow: 0 7px 0 var(--orange-d); cursor: pointer; min-height: 64px; transition: transform .08s, box-shadow .08s; }
.catch-btn:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--orange-d); }
.pill-link { margin-top: 12px; font-weight: 800; background: var(--white); border-radius: 999px; padding: 9px 18px; box-shadow: 0 3px 0 var(--grass-d); cursor: pointer; text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
.pill-note { margin: 8px 0 0; text-align: center; font-weight: 600; font-size: .9rem; background: rgba(255,255,255,.9); border-radius: 16px; padding: 7px 14px; }
.bottom-card { margin: 0 16px max(16px, env(safe-area-inset-bottom)); background: var(--white); border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 0 var(--grass-d); }
.label { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 2px; }
.optional { font-weight: 500; color: var(--muted); }
input[type=text], input[type=time], select { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 2.5px solid var(--navy); border-radius: 14px; background: var(--ice); color: var(--navy); min-height: 48px; }
.saved-permit { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 2px dashed var(--line); border-radius: 14px; padding: 8px 12px; }
.pill { border: 2px solid var(--navy); border-radius: 999px; padding: 4px 12px; background: #fff; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; min-height: 36px; color: var(--navy); }
.text-link { align-self: center; background: none; border: 0; font: inherit; font-weight: 700; color: var(--navy); text-decoration: underline; cursor: pointer; padding: 6px; min-height: 44px; }
.privacy { margin: 2px 0 0; text-align: center; font-size: .85rem; line-height: 1.45; }
.privacy a { color: var(--muted); font-size: .8rem; }

/* P + speech bubble */
.p-says { display: flex; align-items: flex-end; gap: 8px; }
.p-says.top { padding: 4px 16px 0; }
.p-mid { width: 70px; height: 80px; flex-shrink: 0; }
.bubble { margin: 0 0 22px; background: var(--white); border-radius: 18px 18px 18px 4px; padding: 9px 13px; box-shadow: 0 3px 0 var(--grass-d); }
.bubble-title { font-weight: 900; font-size: 1rem; margin: 0; }
.bubble .bubble-title { margin: 0; }
.bubble-sub { margin: 2px 0 0; font-weight: 600; font-size: .85rem; color: var(--muted); }
#screen-reading .p-mid { width: 84px; height: 96px; }

/* reading */
.catch-frame { position: relative; width: 236px; height: 236px; border-radius: 50%; border: 8px solid var(--white); background: #e8eef3; box-shadow: 0 8px 0 var(--grass-d); overflow: hidden; }
.catch-frame img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); border-radius: 50%; object-fit: cover; opacity: .85; }
.progress-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pr-track { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 9; }
.pr-bar { fill: none; stroke: var(--orange); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 339.29; stroke-dashoffset: 339.29; }
.sheet-card { background: var(--white); border-radius: 22px; padding: 14px 16px; text-align: center; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 0 var(--grass-d); width: 100%; max-width: 360px; }
.sheet-card p { margin: 0; font-weight: 600; }

/* result sheet */
.sheet { flex: 1; margin: 0 12px; background: var(--white); border-radius: 28px 28px 0 0; padding: 18px 16px max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -4px 0 var(--grass-d); }
.card { border-radius: 22px; padding: 16px 18px; }
.card h2 { margin: 8px 0 0; font-weight: 900; font-size: 2rem; line-height: 1.05; letter-spacing: -0.015em; }
.card.go { background: var(--go); color: #fff; }
.card.no { background: var(--no); color: #fff; }
.card.maybe { background: var(--maybe); color: var(--navy); box-shadow: inset 0 0 0 3px var(--maybe-bd); }
.card.neutral { background: var(--ice); border: 2.5px dashed var(--navy); }
.card.neutral p { margin: 6px 0 0; }
.kicker { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.v-icon { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.15rem; flex-shrink: 0; }
.card.go .v-icon { background: #fff; color: var(--go); }
.card.no .v-icon { background: #fff; color: var(--no); }
.card.maybe .v-icon { background: var(--navy); color: var(--maybe); }
.v-sub { margin: 8px 0 0; font-weight: 500; font-size: 1.05rem; line-height: 1.35; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags:empty { display: none; }
.tags span { font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: rgba(255,255,255,.22); }
.card.maybe .tags span { background: rgba(20,50,74,.1); }
.v-next { margin: 10px 0 0; font-size: .9rem; font-weight: 500; opacity: .9; }
.v-next b { font-weight: 800; }
.details { margin: 10px 0 0; padding-left: 1.2em; color: var(--muted); font-size: .9rem; display: flex; flex-direction: column; gap: 4px; }
.details:empty { display: none; }
#check-crop { width: 100%; max-height: 120px; object-fit: contain; border: 2.5px dashed var(--navy); border-radius: 16px; background: var(--ice); }
.fine { font-size: .85rem; color: var(--muted); margin: 0; }
.fine.strong { color: var(--navy); font-weight: 700; margin-top: 4px; }
.muted { color: var(--muted); margin: 0; }
.meta-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; font-weight: 600; }
.chip { border: 2px solid var(--navy); border-radius: 999px; padding: 3px 12px; font-weight: 800; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.btn .ic { margin-right: 6px; }
.row-ic { display: inline-flex; align-items: center; gap: 8px; }
.btn { display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 14px; padding: 11px 10px; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; min-height: 48px; border: 2.5px solid var(--navy); background: #fff; color: var(--navy); }
.btn.orange { border: 0; background: var(--orange); color: #fff; font-weight: 900; font-size: 1.1rem; box-shadow: 0 5px 0 var(--orange-d); }
.btn.primary { border: 0; background: var(--navy); color: #fff; }
.add-location { min-height: 50px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 2.5px dashed var(--navy); border-radius: 14px; padding: 10px 12px; background: var(--ice); font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; text-align: left; }
.curb { margin: 0; display: flex; align-items: center; gap: 10px; background: #fff3c4; border-radius: 14px; padding: 10px 12px; font-weight: 600; font-size: .95rem; }
.curb .ic { width: 24px; height: 24px; color: #8a6300; }
.curb b { font-weight: 900; }
details { background: #e9f2ff; border-radius: 14px; padding: 0 12px; }
details[open] { padding-bottom: 12px; }
summary { list-style: none; font-weight: 800; cursor: pointer; min-height: 50px; display: flex; align-items: center; justify-content: space-between; color: #1d5fb8; }
summary::-webkit-details-marker { display: none; }
summary .ic { color: #1d5fb8; }
.chev { width: 10px; height: 10px; border-right: 3px solid #1d5fb8; border-bottom: 3px solid #1d5fb8; transform: rotate(45deg); margin: -4px 6px 0 0; transition: transform .15s; }
details[open] .chev { transform: rotate(-135deg); margin-top: 4px; }
.rules { margin: 6px 0 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.rules li.now { font-weight: 700; }
.rules li.unreadable { font-weight: 800; color: var(--maybe-bd); }
.comment { margin: 0; font-weight: 700; color: #2a6fb0; }
.disclaimer { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: .8rem; line-height: 1.35; color: var(--muted); }
.disclaimer .ic { width: 16px; height: 16px; margin-top: 1px; }
.action-row { display: flex; gap: 8px; margin-top: 4px; }
.action-row button { flex: 1; border: 0; border-radius: 14px; background: var(--sun); box-shadow: 0 4px 0 var(--sun-d); font: inherit; font-weight: 800; font-size: .85rem; padding: 9px 4px; color: var(--navy); cursor: pointer; min-height: 58px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.action-row .ic { width: 22px; height: 22px; }
.action-row button[aria-pressed=true] { background: var(--navy); color: #fff; box-shadow: 0 4px 0 #000; }

/* bottom sheets */
dialog.sheet-dialog { border: 0; border-radius: 24px 24px 0 0; padding: 20px 16px max(20px, env(safe-area-inset-bottom)); width: 100%; max-width: 480px; margin: auto auto 0; color: var(--navy); font-family: inherit; }
dialog.sheet-dialog::backdrop { background: rgba(20,50,74,.4); }
dialog.sheet-dialog form { display: flex; flex-direction: column; gap: 10px; }
dialog.sheet-dialog h3 { margin: 0; font-size: 1.25rem; font-weight: 900; }
.seg-field { border: 0; padding: 0; margin: 0; }
.seg { display: flex; border: 2.5px solid var(--navy); border-radius: 14px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1; text-align: center; padding: 10px 4px; cursor: pointer; border-right: 2px solid var(--navy); font-weight: 700; }
.seg label:last-of-type { border-right: 0; }
.seg input:checked + label { background: var(--navy); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: -3px; }

/* about page */
.about { display: block; background: var(--white); border-radius: 22px; margin: 4px 16px 24px; padding: 18px; box-shadow: 0 4px 0 var(--grass-d); }
.about h1 { font-size: 1.6rem; margin: 6px 0 2px; font-weight: 900; }
.about h2 { font-size: 1.1rem; margin: 20px 0 6px; font-weight: 800; }
.about ul { padding-left: 1.2em; margin: 0; } .about li { margin: 4px 0; } .about p { margin: 6px 0; }
.about a { color: #2a6fb0; }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

.p-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 16px; }
.p-btn:active { transform: scale(.94); }
.caught-badge { margin: 0 0 -6px; display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--navy); border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: .85rem; box-shadow: 0 3px 0 var(--grass-d); position: relative; z-index: 2; }
.caught-badge .ic { width: 18px; height: 18px; color: #d6a800; }

.tip { margin: 10px 16px 0; display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 16px; padding: 8px 10px 8px 12px; font-size: .9rem; box-shadow: 0 3px 0 var(--grass-d); }
.tip .ic { width: 22px; height: 22px; color: var(--orange); }
.tip span { flex: 1; }
.tip-x { border: 0; background: var(--ice); border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 800; font-size: .8rem; color: var(--navy); cursor: pointer; min-height: 36px; }
.odd { margin: 0; display: flex; align-items: center; gap: 10px; background: #ffe2d6; border-radius: 14px; padding: 10px 12px; font-weight: 600; font-size: .95rem; }
.odd .ic { width: 24px; height: 24px; color: var(--orange-d); }
