/* Browser field apps (/field, /leader): touch-first helpers on top of Tailwind. */
html { -webkit-text-size-adjust: 100%; }
body { overscroll-behavior-y: none; padding-bottom: env(safe-area-inset-bottom); }
.fx-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.fx-green { background: #E3FBF0; color: #00874A; } .fx-gold { background: #FFF6DC; color: #8A6200; }
.fx-red { background: #FDE6E9; color: #A80B1F; }   .fx-teal { background: #DFF6FA; color: #075E6D; }
.fx-gray { background: #EEEEEC; color: #55564F; }
.fx-btn { min-height: 3rem; border-radius: .75rem; font-weight: 600; padding: .6rem 1rem; transition: background-color .15s, opacity .15s; }
.fx-btn:disabled { opacity: .45; }
.fx-input { width: 100%; min-height: 3rem; border-radius: .75rem; border: 1px solid #D4D3CC; background: #fff; padding: .5rem .9rem; font-size: 1rem; }
.fx-input:focus { outline: 2px solid #0B7F92; outline-offset: 1px; border-color: #0B7F92; }
.fx-card { background: #fff; border: 1px solid #ECEBE5; border-radius: 1rem; box-shadow: 0 1px 2px rgba(20,21,26,.04); }
.fx-track { height: 6px; border-radius: 9999px; background: #EEEEEC; overflow: hidden; } .fx-fill { height: 100%; background: #0B7F92; border-radius: 9999px; } .fx-fill.over { background: #E8102B; }
@keyframes fx-pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.fx-live { width: .5rem; height: .5rem; border-radius: 9999px; background: #00C266; display: inline-block; animation: fx-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .fx-live { animation: none; } }
.fx-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(20,21,26,.55); display: flex; align-items: flex-end; justify-content: center; }
.fx-sheet > div { width: 100%; max-width: 40rem; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 1.25rem 1.25rem 0 0; padding: 1.25rem; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .fx-sheet { align-items: center; } .fx-sheet > div { border-radius: 1.25rem; } }

/* Tablet sign-in (portrait first): dark hero on top, white sheet with a big number pad below. */
body { -webkit-tap-highlight-color: transparent; }
button, .sg-key { touch-action: manipulation; }
.sg-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: linear-gradient(170deg, rgba(20,21,26,.35), rgba(20,21,26,.94) 70%), url(/images/junkanoo-background.png) center/cover no-repeat, #14151A; }
.sg-hero { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.5rem 2.5rem; }
.sg-sheet { flex: 0 0 auto; background: #FAFAF7; border-radius: 1.75rem 1.75rem 0 0; padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0,0,0,.35); }
.sg-field { width: 100%; height: 4rem; border-radius: 1rem; border: 2px solid #D4D3CC; background: #fff; text-align: center; font-size: 1.75rem; font-weight: 600; letter-spacing: .3em; caret-color: transparent; }
.sg-field:focus { outline: none; }
.sg-field.sg-active { border-color: #0B7F92; box-shadow: 0 0 0 4px rgba(18,191,211,.25); }
.sg-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.sg-key { height: 4.25rem; border-radius: 1rem; background: #fff; border: 1px solid #E2E1DA; font-size: 1.6rem; font-weight: 600; user-select: none; -webkit-user-select: none; box-shadow: 0 1px 0 rgba(20,21,26,.06); transition: background-color .08s, transform .05s; }
.sg-key:active { background: #DFF6FA; transform: scale(.97); }
.sg-key-sm { font-size: .95rem; color: #55564F; background: #F1F0EA; }
.sg-go { width: 100%; height: 4rem; border-radius: 1rem; font-size: 1.1rem; font-weight: 700; transition: opacity .15s, transform .05s; }
.sg-go:active { transform: scale(.99); } .sg-go:disabled { opacity: .5; }
@media (min-height: 900px) and (max-width: 900px) { .sg-key { height: 4.75rem; } .sg-hero { padding-top: 3.5rem; } }
@media (prefers-reduced-motion: reduce) { .sg-key, .sg-go { transition: none; } }

/* Group-leader dashboard: Junkanoo colour. Each section carries its own accent (--ac). */
.lx-teal { --ac: #0B7F92; } .lx-cyan { --ac: #12BFD3; } .lx-gold { --ac: #FDB913; } .lx-green { --ac: #00C266; } .lx-red { --ac: #E8102B; }
.lx-tile { border-top: 4px solid var(--ac); }
.lx-chip { background: color-mix(in srgb, var(--ac) 16%, white); color: var(--ac); }
.lx-gold .lx-chip { color: #8A6200; }
.lx-panel { border-top: 3px solid var(--ac); }
.lx-tab-on { background: var(--ac); border-color: var(--ac); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--ac) 40%, transparent); }
.lx-tab-on.lx-gold { color: #14151A; }
.lx-hero { background: radial-gradient(700px 220px at 100% -20%, rgba(18,191,211,.5), transparent 60%), radial-gradient(520px 200px at 0% 130%, rgba(253,185,19,.4), transparent 60%), radial-gradient(400px 160px at 60% 140%, rgba(232,16,43,.28), transparent 60%), #14151A; }
.lx-stripe { height: 5px; background: linear-gradient(90deg, #12BFD3 0 25%, #FDB913 25% 50%, #00C266 50% 75%, #E8102B 75%); }
.lx-headbar { border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, #12BFD3 0 25%, #FDB913 25% 50%, #00C266 50% 75%, #E8102B 75%) 1; }
