/* London Falcons CC: black and gold club colours, falcon red-orange for actions, navy for depth. Dark by design. */
:root {
  --bg: #0b0b0c;
  --surface: #151516;
  --surface-2: #1d1d1f;
  --fg: #f4efe4;
  --muted: #a9a398;
  --line: #2b2a28;
  --accent: #ef5a24;
  --accent-ink: #ffffff;
  --gold: #d6a63a;
  --gold-soft: rgba(214, 166, 58, .14);
  --navy: #13213f;
  --ok: #5fbf7a;
  --hero-bg: #000000;
  --hero-fg: #f7f1e3;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* Header */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
nav.main { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav.main a:hover { color: var(--accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
  nav.main.open { display: flex; }
  nav.main a { padding-block: 10px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--gold); color: #111; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }

/* Next gathering band */
.gather { background: var(--surface); border-bottom: 1px solid var(--line); }
.gather .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 22px; }
.gather .what { min-width: 0; flex: 1 1 260px; }
.gather h3 { font-size: 1.5rem; margin-top: 2px; }
.gather .meta { color: var(--muted); font-size: .95rem; }
.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 68px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; }
.countdown b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Install banner */
.install { border-bottom: 1px solid var(--line); background: var(--surface); }
.install .wrap { display: flex; align-items: center; gap: 14px; padding-block: 12px; flex-wrap: wrap; }
.install p { flex: 1; min-width: 200px; font-size: .95rem; }
.install p b { display: block; }
.install .btn { padding: 8px 16px; background: var(--accent); color: var(--accent-ink); }
.install .close { background: none; border: 0; font-size: 1.4rem; color: var(--muted); cursor: pointer; line-height: 1; }

/* Sections */
section.block .wrap { padding-block: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 36em; margin-top: 8px; }

/* Family wall */
.wall { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.wall > * { min-width: 0; }
.wall-feed { display: grid; gap: 16px; }
.wall-compose { display: grid; gap: 12px; }
.wall-compose textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); width: 100%; min-height: 72px; resize: vertical; }
.wall-compose .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.wall-compose .row label { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.wall-compose select, .wall-compose input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
.kind { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; margin-left: auto; white-space: nowrap; }
.kind-general { color: var(--muted); }
.invite { border: 1px solid var(--gold); outline: 3px double var(--gold); outline-offset: -8px; border-radius: 10px; padding: 26px 20px; text-align: center; display: grid; gap: 6px; }
.invite .eyebrow { color: var(--gold); }
.invite h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 0; }
.invite p { color: var(--muted); }
.upcoming { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.upcoming li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.upcoming .date { padding: 4px; }
.upcoming .date b { font-size: 1.3rem; }
.upcoming small { display: block; color: var(--muted); }
.signin-hint { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .wall { grid-template-columns: 1fr; } }

/* Chat */
.chat { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); height: 560px; max-height: 80vh; }
.chat > * { min-width: 0; min-height: 0; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.chat-list .label { padding: 14px 14px 6px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.convo { display: flex; gap: 10px; align-items: center; text-align: left; font: inherit; color: var(--fg); background: none; border: 0; padding: 10px 14px; cursor: pointer; width: 100%; }
.convo:hover { background: var(--bg); }
.convo[aria-current="true"] { background: var(--bg); box-shadow: inset 3px 0 0 var(--accent); }
.convo .avatar { width: 40px; height: 40px; font-size: .9rem; flex: none; }
.convo > div { min-width: 0; }
.convo small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-pane { display: flex; flex-direction: column; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.chat-head .avatar { width: 36px; height: 36px; font-size: .85rem; }
.chat-head small { display: block; color: var(--muted); }
.chat-back { display: none; font: inherit; font-weight: 700; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 0 6px 0 0; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 75%; display: grid; gap: 2px; }
.msg .bubble { padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.msg small { color: var(--muted); font-size: .72rem; padding-inline: 6px; }
.msg.mine { align-self: flex-end; }
.msg.mine .bubble { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); border-radius: 16px 16px 4px 16px; }
.msg.mine small { text-align: right; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.chat-form .btn { padding: 8px 18px; }
.chat-hint { padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; }
  .chat.in-convo .chat-list { display: none; }
  .chat:not(.in-convo) .chat-pane { display: none; }
  .chat-back { display: inline; }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 12px; }
.tile { border-radius: 10px; position: relative; overflow: hidden; display: flex; align-items: end; padding: 12px; color: #fff; font-weight: 700; font-size: .9rem; }
.tile span { position: relative; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile small { position: relative; display: block; font-weight: 600; opacity: .9; font-size: .75rem; }
.tile::before { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; } }

/* Family directory */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar input { flex: 1; min-width: 200px; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); }
.chip { font: inherit; font-size: .85rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gen-label { margin: 28px 0 12px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.person { text-align: left; font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; cursor: pointer; }
.person:hover { border-color: var(--gold); }
.person > div { min-width: 0; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.2rem; color: #fff; box-shadow: inset 0 0 0 2px var(--gold); }
.person b { display: block; }
.person small { color: var(--muted); display: block; }
.empty { color: var(--muted); }
/* Facebook-style profile page */
.profile-page { position: fixed; inset: 0; z-index: 20; background: var(--bg); overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.pp-bar { position: sticky; top: 0; z-index: 2; background: var(--bg); border-bottom: 1px solid var(--line); }
.pp-bar .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.pp-bar button { font: inherit; font-weight: 700; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.pp-cover { height: clamp(140px, 26vw, 260px); border-radius: 0 0 14px 14px; position: relative; }
.pp-head { display: flex; align-items: end; gap: 18px; flex-wrap: wrap; margin-top: -56px; padding-inline: 8px; position: relative; }
.pp-head .avatar { width: 136px; height: 136px; font-size: 2.8rem; box-shadow: 0 0 0 5px var(--bg), inset 0 0 0 3px var(--gold); flex: none; }
.pp-head > div { min-width: 0; padding-bottom: 8px; }
.pp-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.pp-head p { color: var(--muted); }
.pp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 18px; overflow-x: auto; }
.pp-tabs button { font: inherit; font-weight: 700; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: 12px 14px; cursor: pointer; white-space: nowrap; }
.pp-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.pp-body { display: grid; grid-template-columns: 300px 1fr; gap: 20px; padding-block: 20px 48px; align-items: start; }
.pp-body > * { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 12px; }
.panel h3 { font-size: 1.15rem; }
.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: .95rem; }
.panel dt { color: var(--muted); }
.panel dd { margin: 0; }
.rel { display: grid; gap: 8px; }
.rel-item { display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; color: var(--fg); background: none; border: 0; padding: 4px; border-radius: 8px; cursor: pointer; }
.rel-item:hover { background: var(--bg); }
.rel-item .avatar { width: 38px; height: 38px; font-size: .9rem; flex: none; }
.rel-item small { display: block; color: var(--muted); }
.feed { display: grid; gap: 16px; }
.post-head { display: flex; gap: 10px; align-items: center; }
.post-head .avatar { width: 40px; height: 40px; font-size: .9rem; flex: none; }
.post-head small { display: block; color: var(--muted); }
.post-img { height: 220px; border-radius: 10px; }
.post-foot { display: flex; gap: 18px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 10px; }
.post-foot button { font: inherit; font-weight: 700; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.post-foot button[aria-pressed="true"] { color: var(--accent); }
.composer { display: flex; gap: 10px; align-items: center; }
.composer input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photos div { aspect-ratio: 1; border-radius: 8px; max-width: 100%; }
@media (max-width: 760px) { .pp-body { grid-template-columns: 1fr; } .pp-head .avatar { width: 108px; height: 108px; font-size: 2.2rem; } }
body.viewing { overflow: hidden; }
form.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 14px; }
form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
form input, form select, form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-solid { background: var(--accent); color: var(--accent-ink); justify-self: start; }
.you { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.add-row { display: flex; flex-wrap: wrap; gap: 8px; }
.note { font-size: .9rem; color: var(--ok); font-weight: 600; }
@media (max-width: 760px) { .join-wrap { grid-template-columns: 1fr; } .row2 { grid-template-columns: 1fr; } }

/* Footer */
footer.site { background: var(--hero-bg); color: var(--hero-fg); }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
footer.site h3 { font-size: 1.1rem; margin-bottom: 10px; }
footer.site a { color: var(--hero-fg); opacity: .85; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 16px; font-size: .85rem; opacity: .75; }
@media (max-width: 760px) { footer.site .wrap { grid-template-columns: 1fr; } }

/* Sign-in and states */
.signin-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.signin-wrap > div { min-width: 0; }
.form-msg { font-size: .9rem; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--accent); }
.members-only { color: var(--muted); }
.loading { color: var(--muted); font-style: italic; }
.user-chip { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.user-chip button { font: inherit; font-weight: 700; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar { overflow: hidden; }
.post-img { background-size: cover; background-position: center; }
.post-img.has { height: auto; max-height: 520px; object-fit: cover; width: 100%; display: block; }
.del { margin-left: auto; font: inherit; font-size: .85rem; background: none; border: 0; color: var(--muted); cursor: pointer; }
@media (max-width: 760px) { .signin-wrap { grid-template-columns: 1fr; } }
.you.role { background: var(--gold); color: #111; }
.tile .tile-del { position: absolute; top: 8px; right: 8px; z-index: 1; background: rgba(0,0,0,.55); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: .75rem; margin: 0; }
.msg-del { font-size: .72rem; padding: 0 0 0 8px; margin: 0; }
.msg.mine .msg-del { color: var(--muted); }
/* Profile photo editing */
.pp-cover { position: relative; }
.avatar-wrap { position: relative; flex: none; }
.photo-edit { position: absolute; z-index: 3; }
.cover-edit { right: 14px; bottom: 14px; }
.avatar-edit { right: 2px; bottom: 6px; }
.cam-btn { font: inherit; font-weight: 700; font-size: .9rem; border: 0; border-radius: 8px; padding: 8px 12px; background: var(--surface); color: var(--fg); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
.cam-btn.round { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.photo-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 6px; display: grid; }
.avatar-edit .photo-menu { left: 0; right: auto; }
.photo-menu label, .photo-menu button { font: inherit; font-weight: 600; text-align: left; padding: 10px 12px; border-radius: 8px; background: none; border: 0; color: var(--fg); cursor: pointer; }
.photo-menu label:hover, .photo-menu button:hover { background: var(--bg); }
.photo-menu button { color: var(--accent); }
.edit-form { display: grid; gap: 12px; }
.edit-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.edit-form input, .edit-form select, .edit-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; }
.pp-cover.uploading::after, .avatar.uploading::after { content: "Uploading…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; border-radius: inherit; }
.avatar { position: relative; }
@media (max-width: 760px) { .cover-edit .cam-btn { font-size: 0; padding: 0; width: 40px; height: 40px; border-radius: 50%; } .cover-edit .cam-btn::before { content: "📷"; font-size: 1.1rem; } }

/* family adverts */
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.ad img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; display: block; }
.ad h3 { font-size: 1.15rem; overflow-wrap: anywhere; }
.ad p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ad .ad-price { font-weight: 800; color: var(--accent); }
.ad .ad-contact { font-size: .9rem; overflow-wrap: anywhere; }
.ad .post-foot { align-items: center; }
#ad-form { margin-bottom: 4px; }
#ad-form input[type=file] { max-width: 220px; }
.ad-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-btns .chip { text-decoration: none; }
.ad-links label { flex: 1 1 150px; }
.ad-links input { width: 100%; }

/* photo crop dialog */
.crop-ov { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.crop-box { background: var(--surface); color: var(--fg); border-radius: 14px; padding: 18px; width: min(560px, 100%); display: grid; gap: 12px; }
.crop-box p { margin: 0; font-size: .9rem; }
.crop-stage { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: #222; touch-action: none; }
.crop-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.crop-stage canvas:active { cursor: grabbing; }
.crop-stage.round .crop-mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); pointer-events: none; }
.crop-ctl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.crop-ctl label { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .9rem; flex: 1 1 200px; }
.crop-ctl input[type=range] { flex: 1; accent-color: var(--accent); }
/* show the whole 3:1 cover as cropped, instead of trimming top and bottom on wide screens */
.pp-cover { height: auto; aspect-ratio: 3 / 1; max-height: 380px; }

/* full-screen photo viewer */
.tile { cursor: zoom-in; }
.photo-thumb { border: 0; padding: 0; cursor: zoom-in; aspect-ratio: 1; border-radius: 8px; }
.viewer { position: fixed; inset: 0; z-index: 70; background: #0b0806; display: grid; place-items: center; touch-action: pan-y; }
.viewer img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; user-select: none; }
.viewer-btn { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; line-height: 44px; text-align: center; cursor: pointer; text-decoration: none; padding: 0; }
.viewer-btn:hover { background: rgba(255,255,255,.28); }
.viewer-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.viewer-dl { top: calc(12px + env(safe-area-inset-top, 0px)); right: 64px; }
.viewer-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.viewer-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.viewer-count { position: absolute; top: calc(22px + env(safe-area-inset-top, 0px)); left: 16px; color: #fff; font-weight: 700; font-size: .9rem; }
.viewer-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.6)); }

/* ---------- London Falcons additions ---------- */
h1, h2, h3, h4 { font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.eyebrow { color: var(--accent); }
section.block .wrap { padding-block: 64px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.brand img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .03em; text-transform: uppercase; }
header.site { background: rgba(0,0,0,.92); backdrop-filter: blur(8px); }
nav.main { gap: 18px; align-items: center; }
nav.main a { font-size: .9rem; }
nav.main a.nav-cta { background: var(--gold); color: #111; padding: 6px 14px; border-radius: 999px; }
nav.main a.nav-cta:hover { color: #111; filter: brightness(1.08); }
@media (max-width: 1100px) { .menu-btn { display: block; } nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #000; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 12px; } nav.main.open { display: flex; } nav.main a { padding-block: 10px; } nav.main a.nav-cta { text-align: center; margin-top: 6px; } }
.btn-primary { background: var(--gold); color: #111; }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-link { color: var(--gold); padding-inline: 6px; }
.btn:disabled { opacity: .6; cursor: default; }

/* Hero: crest on black with a gold rule */
.hero { background: radial-gradient(circle at 78% 50%, rgba(239,90,36,.18), transparent 42%), radial-gradient(circle at 10% 110%, rgba(19,33,63,.9), transparent 55%), var(--hero-bg); color: var(--hero-fg); border-bottom: 3px solid var(--gold); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding-block: 72px; }
.hero .copy { min-width: 0; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); line-height: .95; }
.hero h1 span { color: var(--gold); }
.hero .eyebrow { color: var(--gold); }
.hero p.lede { margin-top: 18px; font-size: 1.1rem; color: #ddd6c8; max-width: 34em; white-space: pre-line; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.crest { width: min(300px, 100%); height: auto; aspect-ratio: 1; justify-self: center; border-radius: 50%; box-shadow: 0 0 0 4px #000, 0 0 0 6px var(--gold), 0 20px 60px rgba(239,90,36,.25); }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 40px 48px; } .crest { width: 180px; } }
.gather { background: var(--navy); border-bottom: 1px solid var(--line); }
.gather .meta { color: #c9cfdc; }
.countdown div { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.12); }
.countdown b { color: var(--gold); font-weight: 700; }
.date b { color: var(--gold); font-weight: 700; }
.date { background: var(--surface-2); }

/* Squad */
.sub-head { font-size: 1.1rem; color: var(--gold); margin: 32px 0 14px; }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.counters div { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; padding: 14px 16px; }
.counters b { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.counters span { color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 560px) { .counters { grid-template-columns: repeat(2, 1fr); } }
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.leader { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--fg); background: linear-gradient(135deg, var(--navy), var(--surface)); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.leader:hover { border-color: var(--gold); }
.leader > div { min-width: 0; }
.leader small { display: block; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.leader b { display: block; font-size: 1.05rem; }
.avatar { background: var(--navy); color: var(--gold); font-family: var(--font-display); font-weight: 700; }
.avatar.initials { background: linear-gradient(135deg, var(--navy), #000); }
.avatar.mini { width: 30px; height: 30px; font-size: .75rem; box-shadow: inset 0 0 0 1px var(--gold); flex: none; }
.squad-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.squad-list > li.empty { grid-column: 1 / -1; }
.squad-row { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.squad-row:hover { border-color: var(--gold); }
.sq-main { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; color: var(--fg); text-decoration: none; }
.sq-main:hover b { color: var(--gold); }
.stats-link { text-decoration: none; }
.squad-row .avatar { width: 46px; height: 46px; font-size: 1rem; flex: none; }
.sq-name { min-width: 0; flex: 1; }
.sq-name b { display: block; overflow-wrap: anywhere; }
.sq-name small { display: block; color: var(--muted); }
.role-ic { margin-right: 6px; font-size: .9em; }
.caps { text-transform: none; }
.stats-link { font-size: .8rem; font-weight: 700; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 3px 10px; flex: none; }
.you.guest { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.you.role { background: var(--gold); color: #111; }
.toolbar input { background: var(--surface); }
.chip { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #111; }
.chip:disabled { opacity: .55; cursor: default; }

/* Fixtures and Playing XI */
.fixtures { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fx, .net { display: grid; grid-template-columns: 72px 1fr auto; gap: 8px 18px; align-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.fx > *, .net > * { min-width: 0; }
.fx-info h3 { font-size: 1.35rem; }
.fx-info .meta { color: var(--muted); font-size: .92rem; }
.fx-info .score { font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.fx-info .summary { color: var(--muted); margin-top: 4px; white-space: pre-line; }
.fx-side { display: flex; flex-direction: column; align-items: end; gap: 8px; }
.pill { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill-won { background: var(--ok); border-color: var(--ok); color: #08210f; }
.pill-lost { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill-tied, .pill-drawn { border-color: var(--gold); color: var(--gold); }
.xi, .fx > .xi-notes, .avail, .fx-tools { grid-column: 2 / -1; }
.xi { border-top: 1px solid var(--line); padding-top: 10px; }
.xi-label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.xi-list { margin: 0; padding-left: 1.4em; columns: 2 200px; column-gap: 24px; }
.xi-list li { break-inside: avoid; padding: 2px 0; }
.xi-list a { color: var(--fg); text-decoration: none; }
.xi-list a:hover { color: var(--gold); }
.tag-c { font-size: .68rem; font-weight: 800; text-transform: uppercase; color: #111; background: var(--gold); border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.xi-notes { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.avail { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.avail-q { font-weight: 700; margin-right: 4px; }
.avail-yes[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #08210f; }
.avail-no[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.avail-who { flex-basis: 100%; color: var(--muted); font-size: .9rem; }
.avail-who summary { cursor: pointer; font-weight: 600; }
.avail-who p { margin-top: 4px; }
.fx-tools { display: flex; gap: 14px; }
.fx-tools .del { margin-left: 0; }
@media (max-width: 560px) { .fx, .net { grid-template-columns: 60px 1fr; } .fx-side { grid-column: 2; align-items: start; flex-direction: row; } .xi, .fx > .xi-notes, .avail, .fx-tools { grid-column: 1 / -1; } }
.result-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; min-width: 0; }
.result-box legend { font-weight: 700; padding: 0 6px; }
.xi-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 12px; max-height: 320px; overflow-y: auto; }
.xi-opt { display: flex !important; gap: 8px; align-items: center; font-weight: 500 !important; font-size: .9rem; color: var(--fg) !important; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.xi-opt input { width: auto; }
.xi-opt.is-yes { background: rgba(95,191,122,.12); }
.xi-opt.is-no { opacity: .55; }
.wall-compose textarea, .wall-compose select, .wall-compose input { background: var(--bg); }
.wall-compose label textarea { min-height: 90px; }

/* Rankings */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.rank, table.stats-edit { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.rank th, .rank td, .stats-edit th, .stats-edit td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rank th, .stats-edit th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--gold); background: #000; position: sticky; top: 0; }
.rank .pl, .stats-edit .pl { text-align: left; }
.rank td.pl a { display: inline-flex; gap: 10px; align-items: center; color: var(--fg); text-decoration: none; font-weight: 600; }
.rank td.pl a:hover { color: var(--gold); }
.rank td:first-child, .rank th:first-child { text-align: center; width: 44px; color: var(--muted); }
.rank tbody tr:nth-child(1) td:first-child { color: var(--gold); font-weight: 800; }
.rank td.strong { font-weight: 800; color: var(--gold); }
.rank td.empty { text-align: left; }
.rank tbody tr:last-child td { border-bottom: 0; }
.staff-tools { margin-top: 20px; display: grid; gap: 12px; }
.staff-tools .btn { justify-self: start; }
.num-in { width: 72px; font: inherit; padding: 6px 8px; text-align: right; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
.inline-label { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.inline-label select, .admin-grid select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }

/* Hall of Fame: framed honours board */
.hall { background: radial-gradient(circle at 50% 0, rgba(214,166,58,.12), transparent 50%), #000; }
.hall-frame { border: 2px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 6px; border-radius: 18px; padding: clamp(18px, 4vw, 40px); max-width: 900px; margin: 6px auto; }
.hall-head { text-align: center; display: grid; justify-items: center; gap: 6px; margin-bottom: 18px; }
.hall-head img { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold); }
.hall-head h2 { color: var(--gold); font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: .06em; }
.hall-head p { color: var(--muted); text-transform: uppercase; letter-spacing: .2em; font-weight: 700; font-size: .85rem; }
.hall-seasons { justify-content: center; }
.hof-group { text-align: center; font-size: 1rem; letter-spacing: .2em; color: var(--accent); margin: 28px 0 12px; display: flex; align-items: center; gap: 14px; }
.hof-group::before, .hof-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hof-group::after { background: linear-gradient(90deg, var(--gold), transparent); }
.hof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hof-grid.one { grid-template-columns: minmax(0, 420px); justify-content: center; }
@media (max-width: 620px) { .hof-grid { grid-template-columns: 1fr; } }
.hof-card { background: linear-gradient(160deg, var(--navy), #0a0f1c); border: 1px solid rgba(214,166,58,.45); border-radius: 14px; padding: 18px; text-align: center; display: grid; justify-items: center; gap: 6px; min-width: 0; }
.hof-card h4 { margin: 0; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.trophy { font-size: 1.1rem; }
.mvp { font-size: .68rem; background: var(--gold); color: #111; border-radius: 4px; padding: 1px 6px; }
.hof-winners { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; }
.hof-winner { display: grid; justify-items: center; gap: 6px; color: var(--fg); text-decoration: none; }
.hof-winner:hover .hof-name { color: var(--gold); }
.avatar.hof-avatar { width: 88px; height: 88px; font-size: 1.8rem; box-shadow: 0 0 0 3px var(--gold); }
.hof-name { font-size: 1.05rem; }
.hof-value { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--gold); margin-top: 4px; }
.hof-unit { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; }
.hof-tba { color: var(--muted); font-style: italic; padding: 18px 0; }
.hof-awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hof-awards li { display: grid; grid-template-columns: auto 1fr auto; gap: 0 10px; align-items: baseline; padding: 8px 4px; }
.aw-title { font-weight: 700; }
.aw-dots { border-bottom: 2px dotted rgba(214,166,58,.5); transform: translateY(-4px); }
.aw-winner { color: var(--gold); font-weight: 700; text-decoration: none; text-align: right; }
.aw-winner.tba { color: var(--muted); font-weight: 500; font-style: italic; }
.aw-note { grid-column: 1 / -1; color: var(--muted); }
.hall-admin { margin-top: 24px; display: grid; gap: 12px; }
.hall-admin .btn { justify-self: center; }
.awards-edit { display: grid; gap: 10px; }
.awards-edit .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.awards-edit input, .awards-edit select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); flex: 1 1 160px; min-width: 0; }

/* News and nets */
.news-list, .nets { display: grid; gap: 14px; }
.news-item { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 6px; }
.news-item.pinned { border-color: var(--gold); box-shadow: inset 4px 0 0 var(--gold); }
.news-meta { color: var(--muted); font-size: .85rem; }
.news-body, .post-body { white-space: pre-line; overflow-wrap: anywhere; }
.net { background: var(--surface); }
.check { display: flex !important; flex-direction: row; gap: 8px; align-items: center; }
.check input { width: auto; }

/* Photos, wall, notices */
.upload-box { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.album-pick { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.album-pick input { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
.tile { background: var(--navy); }
.kind-general { color: var(--muted); }
.kind-match_report { color: var(--gold); }
.kind-social { color: var(--accent); }
.kind-news { color: var(--ok); }
.invite { border-color: var(--gold); }
.pp-cover { background: linear-gradient(120deg, #000, var(--navy) 55%, var(--accent)); background-size: cover; background-position: center; }
.side-col { display: grid; gap: 16px; align-content: start; }
.form-note { color: var(--muted); font-size: .85rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 14px; }
.card + .card { margin-top: 16px; }
.card label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.card select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--accent); }

/* Admin */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.admin-grid .panel label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.admin-grid .panel input, .admin-grid .panel textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; }
.admin-grid .btn { justify-self: start; }
.admin-grid details summary { cursor: pointer; font-weight: 600; color: var(--gold); }
.admin-grid details[open] { display: grid; gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.claim-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.claim-row span { flex: 1 1 180px; }
.claim-row .del { margin-left: 0; }
.imp-log { margin: 0; padding-left: 1.2em; font-size: .9rem; color: var(--muted); display: grid; gap: 2px; }
.imp-log li.err { color: var(--accent); font-weight: 600; }
.imp-log li:last-child { color: var(--fg); }

footer.site { border-top: 3px solid var(--gold); }
#toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80; background: var(--gold); color: #111; font-weight: 700; padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.4); max-width: calc(100vw - 32px); text-align: center; }
.date { text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; }
.date b { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.date span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.you { display: inline-block; white-space: nowrap; }
.fx-tools .del { padding: 0; }
.hero .wrap { position: relative; }
.fclock { display: flex; justify-self: center; gap: 8px; padding: 8px; border-radius: 14px; background: linear-gradient(#3b3b3e, #1c1c1e); box-shadow: 0 0 0 3px #77777c, 0 0 0 5px #2a2a2c, 0 10px 30px rgba(0,0,0,.6); }
.fc-face { width: 92px; height: 92px; background: radial-gradient(#111, #000); border: 2px solid #2b2b2d; border-radius: 6px; display: block; }
.fc-tiles { display: grid; gap: 6px; align-content: center; }
.fc-row { display: flex; gap: 4px; align-items: center; }
.fc-row b { position: relative; display: grid; place-items: center; width: 30px; height: 40px; font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; color: #f2f2f2; border-radius: 4px; background: linear-gradient(#2a2a2c 0 50%, #0e0e0f 50% 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 2px 4px rgba(0,0,0,.6); overflow: hidden; }
.fc-row b.wide { width: 68px; font-size: 1.6rem; letter-spacing: .02em; }
.fc-row b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: rgba(0,0,0,.85); }
.fc-row b.tick { animation: flip .45s ease-out; }
@media (prefers-reduced-motion: reduce) { .fc-row b.tick { animation: none; } }
.fc-colon { width: 8px; height: 22px; display: block; background: radial-gradient(circle at 50% 25%, #9a9a9a 0 2.5px, transparent 3px), radial-gradient(circle at 50% 75%, #9a9a9a 0 2.5px, transparent 3px); }
@media (max-width: 760px) { .fclock { transform: scale(.92); } }

/* Flip-clock countdown under the crest */
.hero-side { display: grid; justify-items: center; gap: 26px; min-width: 0; }
.flip { width: 100%; max-width: 440px; text-align: center; }
.flip-title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.flip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.flip-row div { display: grid; gap: 8px; }
.flip-row b { position: relative; display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; padding: 14px 0; border-radius: 10px; color: #eee; background: linear-gradient(#3a3a3c 0 50%, #232325 50% 100%); box-shadow: 0 6px 16px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12); font-variant-numeric: tabular-nums; overflow: hidden; }
.flip-row b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(0,0,0,.75); }
.flip-row b.tick { animation: flip .45s ease-out; }
@keyframes flip { 0% { transform: perspective(300px) rotateX(-70deg); opacity: .4; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .flip-row b.tick { animation: none; } }
.flip-row span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.flip-meta { margin: 12px 0 0; color: #c9c2b4; font-size: .92rem; }
@media (max-width: 760px) { .hero-side { grid-row: 1; } .flip-row b { font-size: 2rem; padding: 10px 0; } }
.flip-edit { margin-top: 12px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--gold); background: none; border: 1px solid rgba(214,166,58,.5); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.flip-form { margin-top: 14px; display: grid; gap: 10px; text-align: left; background: rgba(0,0,0,.55); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.flip-form label { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.flip-form input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; }
.ev-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ev-btns .btn { padding: 8px 16px; }
.radios { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: grid; gap: 8px; justify-items: start; }
.radio-fab { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; max-width: min(320px, calc(100vw - 32px)); border-radius: 999px; background: #000; color: var(--fg); box-shadow: 0 0 0 2px var(--gold), 0 8px 24px rgba(0,0,0,.5); }
.radio-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: .95rem; cursor: pointer; display: grid; place-items: center; }
.radio-btn:hover { filter: brightness(1.1); }
.radio-txt { min-width: 0; display: grid; line-height: 1.2; }
.radio-txt b { font-size: .85rem; color: var(--gold); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.radio-txt small { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-dot { width: 7px; height: 7px; border-radius: 50%; background: #666; flex: none; }
.radio-fab.on .radio-dot { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.radio-fab.on small { color: var(--fg); }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .radio-fab.on .radio-dot { animation: none; } }
body.viewing .radios { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.radio-fab { padding-right: 18px; min-width: 196px; }
@media (max-width: 760px) { .radio-btn { width: 36px; height: 36px; } .radio-fab { min-width: 0; } }
