:root {
  --ink: #0B2A36; --ink-2: #12394A; --paper: #F3F6F7; --white: #FFFFFF;
  --accent: #F2A65A; --eyebrow: #9A4F12; --link: #14566A;
  --body: #3B5561; --muted: #4B6470; --soft: #9DB8C2; --on-ink: #CFDDE2;
  --line: #D5E0E4; --line-2: #A9BEC6; --wash: #E3EBEE; --error: #B42318;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Public Sans', system-ui, sans-serif; color: var(--ink);
       background: var(--paper); font-size: 16px; line-height: 1.55; }
a { color: var(--link); } a:hover { color: var(--ink); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--ink); padding: 8px 12px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }

mark.ph { background: #FFE08A; color: #3A2A00; padding: 0 3px; border-radius: 3px; }
.sample-bar { background: #FFE08A; color: #3A2A00; font-size: 14px; text-align: center; padding: 8px 16px; }

/* Header */
.site-head { background: var(--ink); color: var(--paper); }
.site-head .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
                   justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo { color: var(--paper); text-decoration: none; font-family: var(--display); font-weight: 800;
        font-size: 24px; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.logo .logo-word { color: inherit; }
.logo .logo-word span { color: var(--accent); }
.logo:hover { color: var(--paper); }
.byline { display: block; font-size: 14px; line-height: 1.4; color: #DCE7EB; position: relative; z-index: 1; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; font-size: 15px; }
.nav a { color: var(--paper); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.nav a.nav-signin { color: var(--accent); font-weight: 600; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--ink); text-decoration: none;
       font: inherit; font-weight: 600; padding: 13px 20px; border-radius: 6px; border: 0; cursor: pointer;
       min-height: 44px; }
.btn:hover { background: #F5B87A; color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover { background: var(--ink-2); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--paper); border: 1px solid #4E7383; }
.btn.ghost:hover { border-color: var(--paper); }
.nav .btn { padding: 10px 16px; color: var(--ink); }
.nav .btn:hover { color: var(--ink); }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--eyebrow); }
.on-ink .eyebrow { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-weight: 800; font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -1.5px; text-wrap: balance; }
h2 { font-weight: 700; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.8px; line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.2; }
.lede { font-size: 19px; color: var(--on-ink); max-width: 600px; margin: 0; }
.muted { color: var(--body); }
p { margin: 0; }

/* Layout pieces */
.on-ink { background: var(--ink); color: var(--paper); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 56px; padding-bottom: 64px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { flex: 1 1 360px; min-width: 0; background: var(--ink-2); border-radius: 10px; padding: 24px;
         display: flex; flex-direction: column; gap: 18px; }
.stats-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stats-head strong { font-family: var(--display); font-size: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.stats-grid div { display: flex; flex-direction: column; gap: 2px; }
.stats-grid dt { font-size: 13px; color: var(--soft); }
.stats-grid dd { margin: 0; font-family: var(--mono); font-size: 24px; font-weight: 500; }
.stats-grid .chg { font-size: 13px; color: var(--accent); font-family: inherit; }
.source { font-size: 12px; color: var(--soft); }
.small { font-size: 13px; }

.section { padding-top: 56px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; flex-direction: column; gap: 6px; }
.section-head.split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 280px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
        padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card .tag { font-family: var(--mono); font-size: 12px; color: var(--link); text-transform: uppercase; letter-spacing: 1px; }
.card .foot { margin-top: auto; padding-top: 10px; border-top: 1px solid #E3EBEE; font-size: 14px; color: var(--muted); }
.card .foot strong { color: var(--ink); }
.card .foot > a { display: inline-block; padding: 4px 0; }
.card .more { margin-top: auto; font-weight: 600; }
.soon { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
        background: var(--wash); color: var(--muted); padding: 3px 8px; border-radius: 999px; align-self: flex-start; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--white); color: var(--ink); border: 1px solid #C4D3D9; text-decoration: none;
        padding: 10px 16px; border-radius: 999px; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.chip[aria-current="page"], .chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px;
         display: flex; flex-wrap: wrap; gap: 32px; }
.panel > * { flex: 1 1 320px; min-width: 0; }
.panel ul { margin: 0; padding-left: 20px; color: var(--body); display: flex; flex-direction: column; gap: 6px; }
.placeholder-box { min-height: 220px; border-radius: 8px; background: var(--wash); display: flex; align-items: center;
                   justify-content: center; color: var(--muted); font-size: 14px; text-align: center; padding: 16px; }
.band { border-radius: 10px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.band > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.band strong.big { font-family: var(--display); font-size: 22px; }
.band .sub { font-size: 14px; color: var(--on-ink); }

.wash { background: var(--wash); }
.split-2 { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.split-2 > * { flex: 1 1 420px; min-width: 0; }

/* Forms */
.form { background: var(--white); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.form.bordered { border: 1px solid var(--line); }
.form label { font-weight: 600; font-size: 14px; margin-top: 8px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--line-2); border-radius: 6px; font: inherit; background: var(--white); color: var(--ink); }
.form textarea { min-height: 96px; }
.form .btn { margin-top: 14px; width: 100%; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radios label { font-weight: 400; margin: 0; display: flex; gap: 6px; align-items: center; min-height: 32px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--body); margin-top: 12px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.form .consent label { font-weight: 400; font-size: 13px; margin: 0; }
.error { color: var(--error); font-size: 14px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input[type=email] { flex: 1 1 220px; min-width: 0; padding: 14px; border: 1px solid var(--line-2); border-radius: 6px; font: inherit; }

.page { padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.page.wide { max-width: 1200px; }
.prose { display: flex; flex-direction: column; gap: 14px; color: var(--body); }
.prose h2 { font-size: 24px; color: var(--ink); margin-top: 12px; }

/* Admin */
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #EEF2F7; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }

/* Footer */
.site-foot { background: var(--ink); color: #B9CDD4; font-size: 13px; margin-top: 32px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; }
.site-foot .col { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 520px; }
.site-foot strong, .site-foot a { color: var(--paper); }

/* About + logo */
.about { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: var(--white);
         border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; }
.about .section-head { flex: 1 1 360px; min-width: 0; }
.about .photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex-shrink: 0; }
.logo-box { background: var(--white); border-radius: 6px; padding: 8px 10px; align-self: flex-start; margin-bottom: 8px; line-height: 0; }
.logo-box img { width: 185px; height: auto; }

/* Home type prices in the market box */
.by-type { width: 100%; background: transparent; font-size: 14px; border-collapse: collapse; }
.by-type caption { text-align: left; font-size: 13px; color: var(--soft); padding-bottom: 6px; }
.by-type th, .by-type td { background: transparent; border-bottom: 1px solid #24506A; padding: 6px 0; font-weight: 400; color: var(--paper); }
.by-type td { text-align: right; font-family: var(--mono); }
.by-type td.chg { color: var(--accent); width: 64px; }

/* Neighbourhood numbers */
.area-stats { color: var(--ink); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.area-stats dt { color: var(--muted); }
.hpi { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hpi strong { font-family: var(--mono); font-size: 34px; font-weight: 500; }

/* Price trend line chart in the market box */
.trend { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.trend figcaption { font-size: 13px; color: var(--soft); }
.trend svg { width: 100%; height: auto; overflow: visible; }
.trend .axis { stroke: #2C5A70; stroke-width: 1; }
.trend .line { fill: none; stroke: #CF7A2C; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend .dot { fill: #CF7A2C; stroke: var(--ink-2); stroke-width: 2; opacity: 0; }
.trend .dot.end { opacity: 1; }
.trend .hit { fill: transparent; }
.trend .cross { stroke: #4E7383; stroke-width: 1; opacity: 0; }
.trend .tick { fill: var(--soft); font-size: 10px; text-anchor: middle; font-family: var(--mono); }
.trend .endlabel { fill: var(--paper); font-size: 11px; text-anchor: end; font-family: var(--mono); }
.trend .tip { fill: var(--paper); font-size: 11px; text-anchor: middle; font-family: var(--mono); opacity: 0; pointer-events: none; }
.trend .pt:hover .dot, .trend .pt:focus .dot, .trend .pt:hover .cross, .trend .pt:focus .cross, .trend .pt:hover .tip, .trend .pt:focus .tip { opacity: 1; }
.trend svg:has(.pt:hover) .endlabel, .trend svg:has(.pt:focus) .endlabel { opacity: 0; }
.trend .pt:focus { outline: none; }
.trend .endlabel.peak { text-anchor: middle; }
.trend svg:has(.pt:hover) .peak, .trend svg:has(.pt:focus) .peak { opacity: 0; }

/* Magazine-style neighbourhood report */
.mag { --serif: 'Fraunces', Georgia, serif; padding-bottom: 32px; }
.mag-head { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 14px; }
.mag-head h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(56px, 11vw, 128px); line-height: .92; letter-spacing: -2px; }
.mag .deck { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.3; color: var(--ink-2); max-width: 760px; margin: 0; }
.mag .deck strong { font-style: normal; font-weight: 600; }
.mag-by { font-size: 14px; color: var(--muted); border-top: 2px solid var(--ink); padding-top: 10px; margin: 6px 0 0; max-width: 760px; }
.mag-photo { margin: 0 auto; }
.mag-photo img, .mag-photo-empty { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 4px; display: block; }
.mag-photo-empty { background: repeating-linear-gradient(135deg, var(--wash) 0 14px, #DCE6EA 14px 28px); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; text-align: center; padding: 16px; }
.mag-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (max-width: 600px) { .mag-photo img, .mag-photo-empty { aspect-ratio: 4 / 3; } }
.mag-body { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 40px; align-items: flex-start; }
.mag-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; max-width: 760px; color: var(--body); font-size: 17px; line-height: 1.65; }
.mag-main section { display: flex; flex-direction: column; gap: 14px; }
.mag-h { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--eyebrow);
         border-top: 1px solid var(--line-2); padding-top: 12px; }
.lead-p { font-size: 19px; color: var(--ink); }
.lead-p::first-letter { font-family: var(--serif); font-weight: 800; float: left; font-size: 74px; line-height: .8; padding: 6px 10px 0 0; color: var(--ink); }
.mag strong { color: var(--ink); }
.pull { margin: 8px 0; padding: 18px 0 18px 22px; border-left: 4px solid var(--accent); display: flex; flex-direction: column; gap: 4px;
        font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--ink); }
.pull-num { font-style: normal; font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -1px; }
.mag .note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.mag-table table { font-size: 14px; }
.mag-table th[scope=row] { background: var(--white); font-weight: 600; color: var(--ink); }
.mag-table .addr { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.mag-table td { font-family: var(--mono); white-space: nowrap; }
.mag-side { flex: 1 1 280px; min-width: 0; position: sticky; top: 16px; background: var(--ink); color: var(--paper); border-radius: 6px;
            padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.side-h { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.mag-more .side-h { color: var(--eyebrow); margin-bottom: 12px; }
.mag-side dl { margin: 0; display: flex; flex-direction: column; }
.mag-side dl > div { padding: 12px 0; border-bottom: 1px solid #24506A; }
.mag-side dt { font-size: 13px; color: var(--soft); }
.mag-side dd { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; }
.mag-side dd.sub { font-family: inherit; font-size: 13px; font-weight: 400; color: var(--accent); }
.mag-side .btn { text-align: center; }
.mag-side .side-link { color: var(--paper); font-size: 14px; text-align: center; }
.mag-more { padding-top: 48px; }
@media (max-width: 900px) { .mag-side { position: static; } }
.mag-table th[scope=row] { min-width: 180px; }
/* At-a-glance strip (stands in for a photo) */
.glance { margin-top: 8px; background: var(--ink); border-bottom: 4px solid var(--accent); }
.glance .wrap { padding-top: 36px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.glance-k { font-family: var(--mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.glance-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px 32px; }
.glance-grid > div { border-top: 1px solid #2E5A6E; padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.glance-grid dt { font-size: 13px; color: var(--soft); }
.glance-grid dd { margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.5px; color: var(--paper); overflow-wrap: anywhere; }
.glance-grid dd.up, .glance-grid dd.down { color: var(--accent); }

/* Compare neighbourhoods */
.mag-head h1.cmp-h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: clamp(30px, 8.4vw, 88px); line-height: .95; letter-spacing: -1.5px; }
.cmp-pick { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding-bottom: 24px; }
.cmp-pick > div { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.cmp-pick label { font-weight: 600; font-size: 14px; }
.cmp-pick select { width: 100%; padding: 12px; border: 1px solid var(--line-2); border-radius: 6px; font: inherit; background: var(--white); color: var(--ink); min-height: 46px; }
.cmp-pick .btn { flex: 0 0 auto; }
.cmp { font-size: 15px; table-layout: fixed; min-width: 560px; }
.cmp thead th { background: var(--ink); color: var(--paper); font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 800; padding: 16px 12px; }
.cmp thead th a { color: var(--paper); text-decoration: none; }
.cmp thead th a:hover { color: var(--accent); }
.cmp thead td { background: var(--ink); width: 26%; }
.cmp tbody th[scope=row] { background: var(--white); font-weight: 600; color: var(--ink); font-size: 14px; }
.cmp th .sub { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.cmp td { font-family: var(--mono); color: var(--ink); }
.cmp td.big { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 24px; }
.cmp td.up, .cmp td.down { font-weight: 500; }
.cmp td.down { color: #9A4F12; }
.cmp td.up { color: #1F6B45; }
.cmp td.txt { font-family: inherit; font-size: 14px; color: var(--body); }
.cmp .sch { padding: 2px 0; }
.cmp .sch span { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.cmp tr.grp th { background: var(--wash); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--eyebrow); }
.cmp-wrap { display: flex; flex-direction: column; gap: 12px; }
.cmp tbody th[scope=row], .cmp thead td { position: sticky; left: 0; z-index: 1; }
.cmp tbody th[scope=row] { box-shadow: 1px 0 0 var(--line); }
.cmp tr.grp th { position: static; }
@media (max-width: 600px) {
  .cmp { font-size: 14px; min-width: 520px; }
  .cmp thead td { width: 120px; }
  .cmp thead th { font-size: 19px; padding: 12px 10px; }
  .cmp td.big { font-size: 18px; }
}
/* Slim neighbourhood switcher at the top of each report */
.area-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.area-strip .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: thin; }
.area-strip a { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.area-strip a:hover { background: var(--wash); }
.area-strip a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.area-strip a.cmp-link { margin-left: auto; font-weight: 600; color: var(--link); border: 1px solid var(--line-2); }
.mag .area-strip + .mag-head { padding-top: 40px; }
@media (min-width: 900px) { .area-strip .wrap { flex-wrap: wrap; overflow: visible; } .area-strip a { padding: 6px 11px; } }
/* Price by home type */
.type-table caption { text-align: left; font-weight: 600; color: var(--ink); padding: 0 0 8px; font-size: 15px; }
.type-table td.up, .cmp .chg.up { color: #1F6B45; }
.type-table td.down, .cmp .chg.down { color: #9A4F12; }
.cmp .chg { display: block; font-size: 12px; }

/* Hero byline and rates */
.byline-hero { font-size: 14px; color: var(--soft); max-width: 600px; margin: 0; border-left: 2px solid var(--accent); padding-left: 12px; }
.rate-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.rate-grid > div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.rate-grid dt { font-size: 13px; color: var(--muted); }
.rate-grid dd { margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 40px; line-height: 1.05; color: var(--ink); }
.rate-grid dd.date { font-size: 26px; padding-top: 8px; }
.rate-grid dd.sub { font-family: inherit; font-weight: 400; font-size: 13px; color: var(--eyebrow); }
/* Mortgage calculator */
.mort { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-bottom: 16px; }
.mort-form { flex: 1 1 320px; min-width: 0; }
.mort-form select { width: 100%; padding: 12px; border: 1px solid var(--line-2); border-radius: 6px; font: inherit; background: var(--white); color: var(--ink); }
.mort-out { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mort-note { background: #FFF4E5; border-left: 4px solid var(--accent); padding: 10px 14px; margin: 0; font-size: 14px; color: var(--ink); }
.mort-pay { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.mort-pay .small { color: var(--soft); }
.mort-pay strong { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: clamp(48px, 7vw, 72px); line-height: 1; color: var(--paper); }
.mort-table { border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.mort-table caption { text-align: left; font-weight: 600; padding-bottom: 8px; font-size: 15px; }
.mort-table th { background: var(--white); font-weight: 400; color: var(--body); }
.mort-table td { text-align: right; font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.mort-table td.up { color: #1F6B45; }
.mort-table tr.total th, .mort-table tr.total td { font-weight: 600; color: var(--ink); border-top: 2px solid var(--ink); }
/* Waste panel */
.waste-list { margin: 0; display: flex; flex-direction: column; }
.waste-list > div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.waste-list dt { flex: 0 0 140px; font-weight: 600; color: var(--ink); font-size: 15px; }
.waste-list dd { margin: 0; color: var(--body); font-size: 15px; }
@media (max-width: 600px) { .waste-list > div { flex-direction: column; gap: 2px; } .waste-list dt { flex-basis: auto; } }
/* Suite checker */
.q { border: 0; padding: 0; margin: 10px 0 4px; display: flex; flex-direction: column; gap: 2px; }
.q legend { font-weight: 600; font-size: 15px; color: var(--ink); padding: 0 0 6px; }
.form .q label { font-weight: 400; font-size: 15px; margin: 0; display: flex; gap: 8px; align-items: center; min-height: 36px; }
.suite-res { border-radius: 10px; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; background: var(--ink); color: var(--paper); }
.suite-res .small { color: var(--soft); }
.suite-res strong { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; }
.suite-res.yes { border-left: 8px solid #3FA172; }
.suite-res.maybe { border-left: 8px solid var(--accent); }
.suite-res.no { border-left: 8px solid #C4513A; }
.suite-res.empty { background: var(--wash); color: var(--ink); }
.suite-res.empty .small { color: var(--muted); }
.suite-lines { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--body); }
.suite-next ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--body); font-size: 15px; }
.go-line { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.mag .suite-res strong { color: var(--paper); } .mag .suite-res.empty strong { color: var(--ink); }

/* Competition and fit */
.heat { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.heat.hot { background: #F8DCC0; color: #7A3B0A; }
.heat.mid { background: var(--wash); color: var(--ink); }
.heat.cool { background: #D3E6EC; color: #14566A; }
.heat-table td { white-space: nowrap; }
.fit-pick { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.fit-pick h2 { font-size: 24px; display: flex; gap: 12px; align-items: baseline; margin: 0 0 6px; }
.fit-pick h2 span { font-family: var(--mono); font-size: 14px; color: var(--eyebrow); }

/* Month-by-month price chart */
.pchart { margin: 24px 0 8px; border: 1px solid var(--line); border-radius: 8px; padding: 18px 18px 8px; background: var(--white); }
.pchart figcaption { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 15px; margin-bottom: 8px; }
.pchart figcaption strong { color: var(--ink); margin-right: auto; }
.pchart .key { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.pchart .key i { display: inline-block; width: 18px; height: 0; border-top: 2px solid #9A4F12; }
.pchart .key i.k-then { border-top: 2px dashed #7D97A2; }
.pchart svg { width: 100%; height: auto; overflow: visible; display: block; }
.pchart .grid { stroke: var(--line); stroke-width: 1; }
.pchart .axis { stroke: var(--line-2); stroke-width: 1; }
.pchart .ylab { fill: var(--muted); font-size: 11px; text-anchor: end; font-family: var(--mono); }
.pchart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pchart .line.now { stroke: #9A4F12; }
.pchart .line.then { stroke: #7D97A2; stroke-dasharray: 5 4; }
.pchart .dot { stroke: var(--white); stroke-width: 2; opacity: 0; }
.pchart .dot.now { fill: #9A4F12; } .pchart .dot.then { fill: #7D97A2; }
.pchart .dot.end { opacity: 1; }
.pchart .hit { fill: transparent; }
.pchart .cross { stroke: var(--line-2); stroke-width: 1; opacity: 0; }
.pchart .tick { fill: var(--muted); font-size: 11px; text-anchor: middle; font-family: var(--mono); }
.pchart .endlabel { fill: #9A4F12; font-size: 11px; font-family: var(--mono); }
.pchart .endlabel.then { fill: #5E7883; }
.pchart .tip { fill: var(--ink); font-size: 12px; text-anchor: middle; font-family: var(--mono); opacity: 0; pointer-events: none; }
.pchart .pt:hover .dot, .pchart .pt:focus .dot, .pchart .pt:hover .cross, .pchart .pt:focus .cross, .pchart .pt:hover .tip, .pchart .pt:focus .tip { opacity: 1; }
.pchart .pt:focus { outline: none; }
.chips .chip[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 600px) {
  .pchart { padding: 14px 10px 6px; }
  .pchart .tick, .pchart .ylab, .pchart .endlabel { font-size: 26px; }
  .pchart .tick.minor { display: none; }
  .pchart .tip { display: none; }
  .pchart .line { stroke-width: 3.5; }
}

/* Offer game */
.listing { background: var(--ink); color: var(--paper); border-radius: 8px; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.listing .small { color: var(--on-ink); }
.mag .listing strong { color: var(--paper); font-family: var(--display); font-size: 44px; line-height: 1.1; }
.type-pick { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; margin: 8px 0 4px; }
.type-pick fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.type-pick legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; width: 100%; }
.tchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; background: var(--white); font-size: 15px; cursor: pointer; }
.tchip:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tchip input { accent-color: var(--ink); margin: 0; }

/* Phone menu: a tap opens it, no script needed */
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .site-head .wrap { position: relative; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; position: absolute; top: 18px; right: 16px; border: 1px solid #4E7383; color: var(--paper); border-radius: 6px; padding: 8px 14px; font-size: 15px; cursor: pointer; }
  .menu-btn::before { content: "\2630"; font-size: 16px; }
  .menu-toggle:focus-visible + .menu-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
  .site-head .nav { display: none; flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 8px; }
  .site-head .nav a { padding: 10px 0; font-size: 17px; }
  .site-head .nav a.btn { padding: 10px 16px; margin-top: 8px; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .menu-toggle:checked + .menu-btn::before { content: "\2715"; }
  .site-head .byline { padding-right: 96px; display: block; }
}

/* Footer site map */
.foot-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 32px; width: 100%; border-bottom: 1px solid #1E4557; padding-bottom: 24px; }
.foot-map div { display: flex; flex-direction: column; gap: 6px; }
.foot-map strong { color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; }
.foot-map a { text-decoration: none; font-size: 14px; }
.foot-map a:hover { text-decoration: underline; }
.site-foot .wrap + .wrap { padding-top: 8px; }
.sort-line { margin: 0 0 10px; } .sort-line a, .sort-line strong { margin: 0 2px; }
.next-steps { padding-top: 24px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.next-card { text-decoration: none; color: inherit; transition: border-color .15s; }
.next-card:hover, .next-card:focus-visible { border-color: var(--ink); }
.next-card h3::after { content: " \2192"; color: var(--eyebrow); }
.mag-main .mag-read { gap: 10px; }
.mag-story > * { max-width: 820px; }
.mag-story { display: flex; flex-direction: column; gap: 10px; padding-bottom: 32px; font-size: 17px; line-height: 1.65; color: var(--body); }
.mag-story p { margin: 0; }
.mag-story strong { color: var(--ink); }
.mag-story-h { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 4px 0 6px; color: var(--ink); }
.mag-read p { margin: 0; }
.mag-read strong { color: var(--ink); }
.mag-head .aka { font-family: var(--mono); font-size: 14px; color: var(--muted); margin: 0; }
.heat-table th .sub, .cmp th .sub { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.aka-s { font-size: .8em; color: var(--muted); margin-left: 2px; }
.aka-s::before { content: "· "; }
[aria-current="page"] .aka-s, .area-strip [aria-current="page"] .aka-s { color: inherit; opacity: .8; }
.site-foot .col a { display: inline-block; padding: 8px 0; }
.rate-impact { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.rate-impact h3 { font-size: 20px; margin: 0; }
.rate-impact tr.mine th, .rate-impact tr.mine td { background: #FFF4E5; font-weight: 600; }
.owe-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.owe-form label { font-weight: 600; font-size: 14px; }
.owe-form input { flex: 1 1 160px; max-width: 220px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; font: inherit; }
.rate-impact .sub { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.rate-line { margin: 18px 0 8px; font-size: 17px; }
.headline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.headline-list li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.headline-list li:last-child { border-bottom: 1px solid var(--line); }
.headline-list a { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.headline-list a:hover { text-decoration: underline; }
.headline-list .muted { font-size: 15px; }
@media (max-width: 600px) {
  .rate-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rate-grid > div { padding: 12px 14px; }
  .rate-grid dd { font-size: 28px; }
  .rate-grid dd.date { font-size: 18px; padding-top: 4px; }
  .rate-grid dd.sub { font-size: 12px; }
  #rates .section-head.split .row { display: none; }
}
.headline-list .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--eyebrow); }

.chip:has(.chip-sub) { flex-direction: column; align-items: flex-start; justify-content: center; border-radius: 14px; padding: 6px 16px; line-height: 1.2; }
.chip-sub { font-size: 12px; color: var(--muted); }
.chip[aria-current="page"] .chip-sub { color: inherit; opacity: .75; }
.chip-note { font-size: 14px; color: var(--muted); margin: -8px 0 14px; }
.chips:has(.chip-sub) .chip { border-radius: 14px; min-height: 52px; }

/* ----- Client tracker (admin) ----- */
.adm h1 { font-size: 34px; margin: 0; }
.adm h2 { font-size: 18px; margin: 0 0 10px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.adm-today { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.adm-card, .adm-box { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.adm-box { margin-bottom: 16px; }
.adm-card.hot { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.adm-card h2 { display: flex; justify-content: space-between; gap: 8px; }
.adm-card h2 span { font-family: var(--mono, monospace); }
.adm-card a { display: block; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.adm-card a small { display: block; font-weight: 400; color: var(--muted); }
.adm-stages { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.adm-stages a { padding: 8px 12px; border: 1px solid #C4D3D9; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; background: var(--white); min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.adm-stages a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.adm-search { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.adm-search input[type=search] { flex: 1 1 260px; }
.adm-search input, .adm-search select { padding: 10px 12px; border: 1px solid #C4D3D9; border-radius: 6px; font: inherit; min-height: 44px; }
.adm-table td { vertical-align: top; }
.adm-table tr.dnc td { opacity: .6; }
.stage { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; background: var(--wash); white-space: nowrap; }
.stage.s0 { background: #FDE7D3; } .stage.s3, .stage.s4 { background: #D7EEE3; } .stage.s5, .stage.s6 { background: #CFE3F7; } .stage.s8 { background: #ECECEC; color: var(--muted); }
.late { color: #B4471B; font-weight: 600; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.adm-contact { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-warn { background: #FDE7D3; border-radius: 8px; padding: 10px 14px; }
.adm-lead { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.adm-dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; }
.adm-dl dt { color: var(--muted); font-size: 14px; } .adm-dl dd { margin: 0; }
.adm-msg { border-top: 1px solid var(--line); padding: 10px 0; }
.adm-msg p { margin: 4px 0 8px; }
.adm-msg a { display: inline-block; margin-right: 14px; padding: 6px 0; font-weight: 600; }
.adm-form { padding: 0; }
.adm-form input[type=date] { padding: 10px 12px; border: 1px solid #C4D3D9; border-radius: 6px; font: inherit; min-height: 44px; }
.adm-history { list-style: none; padding: 0; margin: 0; }
.adm-history li { border-top: 1px solid var(--line); padding: 10px 0; }
.adm-history .k { font-weight: 700; }
.adm-history p { margin: 4px 0 0; white-space: pre-wrap; }
.adm-delete { margin-top: 18px; font-size: 14px; }
.adm-delete summary { cursor: pointer; color: #B4471B; min-height: 32px; }
@media (max-width: 800px) {
  .adm-today, .adm-two, .adm-lead { grid-template-columns: 1fr; }
  .adm-dl { grid-template-columns: 1fr; } .adm-dl dd { margin-bottom: 6px; }
  .adm-table th:nth-child(n+4), .adm-table td:nth-child(n+4) { display: none; }
  .adm-table td:first-child { min-width: 120px; }
}
.adm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.ghost-dark { background: var(--white); color: var(--ink); border: 1px solid var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: 14px; color: var(--muted); }
.kpi b { font-size: 32px; line-height: 1.1; color: var(--ink); font-family: 'Bricolage Grotesque', sans-serif; }
.kpi small { font-size: 13px; color: var(--muted); }
.kpi.warn { box-shadow: inset 4px 0 0 var(--accent); border-color: var(--accent); }
.adm .adm-two { margin-top: 0; margin-bottom: 16px; gap: 16px; }
.funnel { display: grid; grid-template-columns: 170px 1fr 40px 44px; gap: 10px; align-items: center; padding: 6px 0; font-size: 15px; }
.funnel .track { background: var(--wash); height: 12px; border-radius: 6px; overflow: hidden; }
.funnel .track i { display: block; height: 100%; background: #2a78d6; border-radius: 0 4px 4px 0; }
.funnel b { text-align: right; } .funnel small { color: var(--muted); text-align: right; }
.adm-bars { width: 100%; height: auto; display: block; }
.adm-bars .axis { stroke: var(--line-2); stroke-width: 1; }
.adm-bars .bar { fill: #2a78d6; }
.adm-bars .hit { fill: transparent; }
.adm-bars g:hover .bar { fill: #1d5fae; }
.adm-bars text { font-size: 12px; fill: var(--muted); font-family: 'Public Sans', sans-serif; }
.adm-bars text.v { fill: var(--ink); font-weight: 600; }
@media (max-width: 800px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .funnel { grid-template-columns: 1fr 34px 40px; } .funnel .track { grid-column: 1 / -1; grid-row: 2; }
}

/* ----- Admin nav, deal checklist, partners ----- */
.adm-nav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.adm-nav a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.adm-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.adm-ok { background: #D7EEE3; border-radius: 8px; padding: 10px 14px; }
.mini { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; min-height: 40px; border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.mini.quiet { background: transparent; color: var(--muted); border-color: transparent; text-decoration: underline; padding: 8px 6px; }
.deal-list { list-style: none; padding: 0; margin: 0 0 10px; }
.deal-list li { border-top: 1px solid var(--line); padding: 6px 0; }
.deal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.deal-row input[type=date], .deal-row input[type=text], .deal-row select { padding: 8px 10px; border: 1px solid #C4D3D9; border-radius: 6px; font: inherit; font-size: 14px; min-height: 40px; }
.deal-row.add input[type=text] { flex: 1 1 220px; }
.deal-check { flex: 1 1 220px; display: flex; gap: 10px; align-items: center; min-height: 40px; font-weight: 600; }
.deal-check input { width: 20px; height: 20px; }
.deal-list li.done .deal-check span { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.deal-list li.late .deal-check span::after { content: " · late"; color: #B4471B; font-weight: 600; }
.share { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.share h3 { font-size: 16px; margin: 0 0 6px; }
.share-link { width: 100%; padding: 8px 10px; border: 1px solid #C4D3D9; border-radius: 6px; font: inherit; font-size: 13px; margin-bottom: 8px; background: var(--wash); }
.refer { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.refer h2 { font-size: 16px; }
.goal { margin-bottom: 14px; }
.goal-track { position: relative; background: var(--wash); height: 14px; border-radius: 7px; margin: 8px 0; }
.goal-track i { display: block; height: 100%; background: #2a78d6; border-radius: 7px; }
.goal-track em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }

/* ----- Booking, open house, client deal page ----- */
.slots { border: 0; padding: 0; margin: 0 0 6px; }
.slots legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.slot-day { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); align-items: center; }
.slot-day > span { font-size: 14px; font-weight: 600; }
.slot-day > div { display: flex; flex-wrap: wrap; gap: 6px; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: inline-block; padding: 8px 12px; min-height: 40px; border: 1px solid #C4D3D9; border-radius: 6px; font-size: 14px; cursor: pointer; background: var(--white); }
.slot input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slot input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
body.kiosk { background: var(--paper); }
.kiosk-wrap { max-width: 560px; margin: 0 auto; padding: 28px 16px 48px; }
.kiosk-wrap h1 { font-size: clamp(28px, 6vw, 40px); margin: 16px 0 6px; }
.kiosk-logo { height: 52px; width: auto; }
.kiosk-thanks { background: #D7EEE3; border-radius: 8px; padding: 14px 16px; font-size: 18px; margin-top: 16px; }
.kiosk .form input[type=text], .kiosk .form input[type=email], .kiosk .form input[type=tel], .kiosk .form select { font-size: 18px; }
.client-steps { list-style: none; padding: 0; margin: 18px 0; }
.client-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.client-steps .dot { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); font-weight: 700; }
.client-steps li.done .dot { background: #1baf7a; color: #fff; }
.client-steps li.next .dot { background: var(--accent); }
.client-steps small { display: block; color: var(--muted); }
.adm-lead > *, .adm-two > * { min-width: 0; }
.adm-msg p, .adm-history p, .adm-dl dd { overflow-wrap: anywhere; }
.mort-table .addr { display: block; font-size: 13px; color: var(--muted); }

/* ----- Ad landing pages ----- */
body.lp { background: var(--paper); }
.lp-head { background: var(--ink); color: var(--paper); }
.lp-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.lp-brand { font-size: 14px; line-height: 1.4; color: var(--on-ink); }
.lp-brand strong { color: var(--paper); }
.lp-phone { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.lp-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding-top: 40px; padding-bottom: 40px; align-items: start; }
.lp-copy h1 { font-family: 'Fraunces', serif; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 8px 0 12px; }
.lp-deck { font-size: 19px; color: var(--body); margin: 0 0 16px; }
.lp-points { padding: 0; list-style: none; margin: 0 0 20px; }
.lp-points li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid var(--line); }
.lp-points li::before { content: "✓"; position: absolute; left: 4px; color: #1baf7a; font-weight: 700; }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-stats div { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.lp-stats b { display: block; font-size: 22px; font-family: 'Bricolage Grotesque', sans-serif; color: var(--ink); }
.lp-stats span { font-size: 13px; color: var(--muted); }
.lp-form h2 { font-size: 22px; margin: 0 0 4px; }
.lp-foot { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .lp-main { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; } .lp-stats b { font-size: 18px; } }
.spend input { width: 100%; min-width: 80px; padding: 8px 10px; border: 1px solid #C4D3D9; border-radius: 6px; font: inherit; min-height: 40px; }
.adm-box code, .adm-box p { overflow-wrap: anywhere; }

/* ----- UX review fixes ----- */
.heat-table { table-layout: auto; min-width: 600px; }
.heat-table thead th { font-family: 'Public Sans', sans-serif; font-size: 14px; font-weight: 600; padding: 12px 10px; vertical-align: bottom; line-height: 1.25; }
.heat-table thead th:first-child { min-width: 130px; }
h2.next-h { margin: 0 0 12px; font-weight: 500; line-height: 1.4; font-size: 13px; font-family: var(--mono); letter-spacing: 1.5px; }
.swipe-hint { display: none; margin: 0 0 6px; }
@media (max-width: 700px) {
  .swipe-hint { display: block; }
  .foot-map { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .foot-map a { font-size: 14px; padding: 5px 0; }
}
.heat-table th[scope=row] a { display: inline-block; padding: 6px 0; }
.home-news .more, .section-head .more, a.more { display: inline-block; padding: 10px 0; }
.mag-side .side-link { display: inline-block; padding: 10px 0; }
.checks { border: 0; padding: 0; margin: 8px 0; display: grid; grid-template-columns: 1fr; gap: 4px; }
.checks legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.checks .check { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; padding: 6px 0; }
.checks .check input { width: auto; margin: 0; }
.adm ul.plain { list-style: none; padding: 0; margin: 0; } .adm ul.plain li { padding: 6px 0; }
.adm-form.adm-box { padding: 20px; }
/* Weekly crossword */
.xw-wrap { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; }
.xw-grid { display: grid; grid-template-columns: repeat(var(--cols), 36px); grid-auto-rows: 36px; gap: 0; }
.xw-cell { position: relative; background: var(--white); outline: 1px solid var(--ink); }
.xw-cell input { width: 100%; height: 100%; border: 0; padding: 8px 0 0; margin: 0; text-align: center; text-transform: uppercase;
  font: 700 18px/1 var(--display); color: var(--ink); background: transparent; box-sizing: border-box; border-radius: 0; }
.xw-cell input:focus { outline: 3px solid var(--accent); outline-offset: -3px; background: #FFF4E8; }
.xw-n { position: absolute; top: 1px; left: 2px; font-size: 10px; line-height: 1; color: var(--ink); pointer-events: none; }
.xw-cell.ok { background: #E3F4E8; } .xw-cell.ok input { color: #1E6B3A; }
.xw-cell.bad { background: #FBE4E2; } .xw-cell.bad input { color: var(--error); }
.xw-clues h2 { font-size: 18px; margin: 0 0 8px; }
.xw-clues ol { margin: 0 0 20px; padding-left: 28px; } .xw-clues li { margin-bottom: 6px; }
.xw-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 16px; }
.linkish { background: none; border: 0; padding: 12px 4px; color: var(--link); text-decoration: underline; font: inherit; cursor: pointer; }
.xw-msg { background: var(--wash); border-left: 4px solid var(--ink-2); padding: 12px 16px; margin: 0 0 20px; }
.xw-msg.ok { background: #E3F4E8; border-color: #1E6B3A; }
@media (max-width: 860px) {
  .xw-wrap { grid-template-columns: 1fr; }
  .xw-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: auto; max-width: 100%; }
  .xw-cell, .xw-empty { aspect-ratio: 1; }
  .xw-cell input { font-size: 16px; padding-top: 6px; }   /* 16px or more, so phones don't zoom in on each tap */
  .xw-n { font-size: 8px; }
}
/* Higher or lower */
.hl-score { font-size: 18px; margin: 0 0 16px; }
.hl-table { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; max-width: 720px; }
.hl-card { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 24px 16px; min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px;
  box-shadow: 4px 4px 0 var(--ink-2); }
.hl-card.back { background: repeating-linear-gradient(45deg, var(--wash) 0 10px, var(--white) 10px 20px); }
.hl-card.right { border-color: #1E6B3A; box-shadow: 4px 4px 0 #1E6B3A; }
.hl-card.wrong { border-color: var(--error); box-shadow: 4px 4px 0 var(--error); }
.hl-name { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; }
.hl-name .chip-sub { font-family: inherit; font-weight: 400; font-size: 13px; color: var(--muted); }
.hl-price { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 5vw, 40px); color: var(--ink); }
.hl-label { font-size: 14px; color: var(--muted); }
.hl-vs { font-family: var(--mono); color: var(--muted); }
.hl-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0; max-width: 720px; }
.hl-actions .xw-msg { flex-basis: 100%; margin: 0; }
@media (max-width: 560px) {
  .hl-table { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hl-vs { display: none; }
  .hl-card { min-height: 180px; padding: 16px 8px; }
  .hl-name { font-size: 16px; }
  .hl-actions .btn { flex: 1; text-align: center; }
}
/* Trivia board */
.tv-board { display: grid; gap: 6px; max-width: 900px; margin-bottom: 16px; }
.tv-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tv-cat { background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 700; font-size: 14px; text-align: center;
  padding: 12px 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center; min-height: 48px; }
.tv-tile { display: flex; align-items: center; justify-content: center; height: 72px; border-radius: 8px; background: var(--ink-2);
  color: var(--accent); font-family: var(--display); font-weight: 800; font-size: 26px; text-decoration: none; }
a.tv-tile:hover, a.tv-tile:focus { background: var(--ink); color: var(--white); }
.tv-tile.used { background: var(--wash); color: var(--muted); font-size: 22px; }
.tv-tile.used.r { color: #1E6B3A; } .tv-tile.used.w { color: var(--error); }
.tv-q { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 24px; max-width: 760px; margin-bottom: 16px; }
.tv-q h2 { margin: 4px 0 16px; }
.tv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tv-opts .btn { text-align: center; }
@media (max-width: 560px) {
  .tv-row { gap: 4px; } .tv-board { gap: 4px; }
  .tv-cat { font-size: 11px; padding: 8px 2px; min-height: 56px; hyphens: auto; overflow-wrap: anywhere; }
  .tv-tile { height: 56px; font-size: 18px; }
  .tv-opts { grid-template-columns: 1fr; }
}
/* Wheel puzzle */
.wh-board { display: flex; flex-wrap: wrap; gap: 6px 22px; background: #1E6B3A; padding: 18px; border-radius: 14px; max-width: 760px; margin: 8px 0 20px; }
.wh-word { display: flex; gap: 4px; }
.wh-tile { width: 38px; height: 48px; background: var(--white); border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--ink); }
.wh-tile:not(.open) { background: #F3F6F7; box-shadow: inset 0 0 0 2px #CFDDE2; }
.wh-spin { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; font-size: 18px; }
.wh-wheel { width: 44px; height: 44px; border-radius: 50%; flex: none; border: 2px solid var(--ink);
  background: conic-gradient(var(--accent) 0 45deg, var(--ink-2) 45deg 90deg, #1E6B3A 90deg 135deg, var(--white) 135deg 180deg,
  var(--accent) 180deg 225deg, var(--ink-2) 225deg 270deg, #1E6B3A 270deg 315deg, var(--white) 315deg 360deg); }
.wh-keys { display: grid; grid-template-columns: repeat(13, minmax(0, 44px)); gap: 6px; margin-bottom: 20px; }
.wh-key { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 6px; background: var(--ink); color: var(--white);
  font-weight: 700; text-decoration: none; }
.wh-key.vowel { background: var(--accent); color: var(--ink); }
.wh-key.used { background: var(--wash); color: var(--line-2); }
.wh-solve { max-width: 520px; } .wh-solve label { font-weight: 600; display: block; margin-bottom: 6px; }
.wh-solve-row { display: flex; gap: 8px; } .wh-solve-row input { flex: 1; min-width: 0; }
@media (max-width: 560px) {
  .wh-board { padding: 12px; gap: 6px 14px; }
  .wh-tile { width: 26px; height: 36px; font-size: 18px; }
  .wh-word { gap: 3px; }
  .wh-keys { grid-template-columns: repeat(7, 1fr); }
}
/* Survey says */
.sv-form { max-width: 620px; }
.sv-board { list-style: none; padding: 0; margin: 0 0 12px; max-width: 620px; counter-reset: sv; }
.sv-board li { counter-increment: sv; display: grid; grid-template-columns: 1fr 120px 48px; gap: 10px; align-items: center;
  background: var(--ink-2); color: var(--white); border-radius: 8px; padding: 12px 14px; margin-bottom: 6px; }
.sv-board li.top { background: var(--ink); outline: 3px solid var(--accent); }
.sv-board .sv-a::before { content: counter(sv) ". "; color: var(--accent); font-weight: 700; }
.sv-board .muted { color: var(--on-ink); }
.sv-bar { height: 10px; background: linear-gradient(90deg, var(--accent) var(--w), rgba(255,255,255,.15) var(--w)); border-radius: 5px; }
.sv-n { text-align: right; font-weight: 700; }
@media (max-width: 560px) { .sv-board li { grid-template-columns: 1fr 48px; } .sv-bar { grid-column: 1 / -1; order: 3; } }
/* Take the offer */
.to-home { max-width: 720px; margin-bottom: 20px; } .to-home h2 { margin: 4px 0 8px; }
.to-offer { max-width: 720px; min-height: 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px #4E7383; flex: none; }
@media (max-width: 560px) { .logo-mark { width: 28px; height: 28px; } }
@media (max-width: 400px) { .logo { font-size: 20px; gap: 8px; } }
@media (max-width: 340px) { .logo { font-size: 17px; } .logo-mark { width: 24px; height: 24px; } }
@media (min-width: 761px) and (max-width: 1140px) { .nav { gap: 6px 14px; font-size: 14px; } .nav .btn { padding: 9px 12px; } }
/* Buying hub */
.buy-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 820px; }
.buy-steps .card.next-card { display: flex; flex-direction: row; gap: 16px; align-items: flex-start; }
.buy-steps h3 { margin: 0 0 4px; }
.buy-steps p { margin: 0; }
.buy-n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 18px; }
.buy-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .buy-split { grid-template-columns: 1fr; gap: 16px; } }
.buy-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.buy-aside > .side-box:first-child { margin-top: 0; }
.buy-left .side-more > .side-box:first-child { margin-top: 24px; }
@media (max-width: 900px) { .buy-top { grid-template-columns: 1fr; gap: 8px; } .buy-aside > .side-box:first-child { margin-top: 16px; } }
/* On phones the form comes right after the intro; the extra boxes follow it. */
@media (max-width: 760px) {
  .buy-left { display: contents; }
  .buy-left > .intro { order: 0; }
  .buy-split > form { order: 1; }
  .buy-left > .side-more { order: 2; }
  .buy-left .side-more > .side-box:first-child { margin-top: 0; }
}
.mag-head .eyebrow a { display: inline-block; padding: 10px 0; margin: -10px 0; }
/* Leaderboard */
.lb-form { max-width: 520px; margin: 20px 0; }
.lb-form h2 { margin: 0 0 4px; font-size: 22px; }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.lb-tabs a { padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--white); }
.lb-tabs a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-bottom: 20px; }
.lb-board li { grid-template-columns: 1fr 100px 72px; }
tr.lb-me td { background: #FFF4E8; font-weight: 600; }
@media (max-width: 760px) { .lb-grid { grid-template-columns: 1fr; } }
/* Arcade */
.arc-wrap { display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: 32px; align-items: start; }
.arc-stage { width: 100%; min-width: 0; }
.arc-canvas { width: 100%; height: auto; display: block; border-radius: 14px; border: 2px solid var(--ink); background: #2E6B3F;
  touch-action: none; user-select: none; -webkit-user-select: none; }
.arc-canvas:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.arc-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.arc-controls .btn { flex: 1 1 auto; min-width: 0; text-align: center; }
.arc-side h2 { margin-top: 0; }
.arc-side ul, .arc-side ol { padding-left: 20px; margin: 0 0 16px; } .arc-side li { margin-bottom: 6px; }
@media (max-width: 760px) { .arc-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
#arc-form[hidden] { display: none; }
.arc-controls .btn:disabled { opacity: .45; cursor: default; }

/* Markets this week */
.markets { margin-top: 36px; }
.markets h3 { margin: 4px 0 14px; }
.mk-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mk { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.mk-label { font-size: 13px; color: var(--muted); }
.mk-value { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 28px; line-height: 1.1; color: var(--ink); }
.mk-change { font-size: 13px; color: var(--ink); }
.mk-change > span[aria-hidden] { font-size: 10px; }
.mk-means { font-size: 14px; line-height: 1.45; color: var(--ink); margin-top: 4px; flex: 1; }
.mk-src { color: var(--muted); }
@media (max-width: 760px) { .mk-list { grid-template-columns: 1fr 1fr; gap: 10px; } .mk { padding: 12px; } .mk-value { font-size: 22px; } .mk-means { font-size: 13px; } }
@media (max-width: 420px) { .mk-list { grid-template-columns: 1fr; } }
@media (min-width: 761px) and (max-width: 1000px) { .mk-list { grid-template-columns: repeat(3, 1fr); } }

/* Weather strip */
.wx { background: var(--white); border-bottom: 1px solid var(--line); padding: 16px 0 10px; }
.wx-page { border: 0; background: transparent; }
.wx-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.wx-now { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-width: 180px; }
.wx-now .eyebrow { grid-column: 1 / -1; }
.wx-temp { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 40px; line-height: 1; color: var(--ink); }
.wx-cond { font-size: 14px; color: var(--muted); }
.wx-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; flex: 1; min-width: 0; }
.wx-days li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--paper); }
.wx-dname { font-size: 13px; font-weight: 600; color: var(--ink); }
.wx-dsum { font-size: 13px; color: var(--muted); }
.wx-hl { font-size: 15px; color: var(--ink); }
.wx-tip { margin: 10px 0 0; font-size: 14px; color: var(--ink); }
.wx-tip .tag { margin-right: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--eyebrow); }
.wx-alert { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #FFF4D6; border: 1px solid #E8C35A; color: var(--ink); font-size: 14px; }
.wx-src { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 760px) {
  .wx-row { gap: 12px; }
  .wx-days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex-basis: 100%; }
  .wx-temp { font-size: 32px; }
}

/* What's being built */
.dev-sub { margin: 14px 0 6px; font-weight: 600; color: var(--ink); }
.dev-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dev-stats li { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 14px; }
.dev-stats b { font-family: 'Fraunces', Georgia, serif; font-size: 18px; color: var(--ink); margin-right: 2px; }
.dev-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.dev-list li { line-height: 1.45; }
.dev-more { margin-top: 6px; }
.dev-more summary { cursor: pointer; color: var(--link); font-size: 14px; }
.dev-more .dev-list { margin-top: 6px; }

/* Everyday distances */
.near-list { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.near-list li { display: grid; grid-template-columns: minmax(0, 1fr) 160px 96px; gap: 12px; align-items: center; }
.near-what { font-size: 15px; line-height: 1.35; }
.near-what .muted { font-size: 13px; white-space: nowrap; }
.near-bar { display: block; height: 10px; border-radius: 5px; background: var(--wash); overflow: hidden; }
.near-bar span { display: block; height: 100%; background: var(--ink-2); border-radius: 5px; }
.near-pct { font-size: 12px; text-align: right; white-space: nowrap; display: flex; flex-direction: column; line-height: 1.15; }
.near-pct b { font-family: 'Fraunces', Georgia, serif; font-size: 18px; color: var(--ink); }
@media (max-width: 760px) {
  .near-list li { grid-template-columns: minmax(0, 1fr) 84px; row-gap: 4px; }
  .near-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* Bigger targets for thumbs (WCAG 2.5.8) */
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
input.menu-toggle { width: 1px; height: 1px; }
.foot-map div { gap: 2px; }
.foot-map a { min-height: 26px; display: inline-flex; align-items: center; }
.dev-more summary { display: inline-flex; align-items: center; min-height: 32px; }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mk-compact .mk-list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 760px) { .mk-compact .mk-list { grid-template-columns: 1fr 1fr; } .mk-compact .mk-change { font-size: 12px; } }
@media (max-width: 420px) { .mk-compact .mk-list { grid-template-columns: 1fr 1fr; } }

/* Wide and ultrawide screens: use more of the width and scale everything up a little. */
@media (min-width: 1700px) {
  .wrap, .page.wide { max-width: 1360px; }
}
@media (min-width: 2200px) {
  body:not(.arcade-page) { zoom: 1.2; }
}
@media (min-width: 3000px) {
  body:not(.arcade-page) { zoom: 1.4; }
}

/* Coming up at council */
.cl { padding-top: 40px; padding-bottom: 8px; }
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-mtg { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.cl-when { font-family: var(--mono); font-size: 13px; color: var(--eyebrow); padding-top: 3px; }
.cl-what strong { color: var(--ink); margin-right: 10px; }
.cl-agenda { font-size: 14px; display: inline-block; padding: 2px 0; }
.cl-items { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.cl-sum, .cl-areas { display: block; font-size: 13px; color: var(--muted); }
.cl-areas::before { content: "Neighbourhood: "; }
.cl-more { display: inline-block; margin-top: 6px; font-size: 14px; padding: 2px 0; }
.cl-src { color: var(--muted); margin-top: 10px; }
@media (max-width: 640px) {
  .cl-mtg { grid-template-columns: 1fr; gap: 4px; }
}

/* What's on, and the home page's "this week" pair */
.tw-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 8px; }
@media (min-width: 1000px) {
  .tw-grid { grid-template-columns: 1fr 1fr; }
  .tw-grid .cl-mtg { grid-template-columns: 1fr; gap: 4px; }
}
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-full { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ev-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.ev-when { font-family: var(--mono); font-size: 13px; color: var(--eyebrow); }
.ev-name { font-weight: 600; color: var(--ink); padding: 2px 0; }
.ev-where, .ev-blurb { font-size: 13px; color: var(--muted); }
.ev-blurb { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-more { margin-top: 10px; }
.ev-more > summary { display: inline-flex; cursor: pointer; list-style: none; min-height: 44px; align-items: center; }
.ev-more > summary::-webkit-details-marker { display: none; }
.ev-more[open] > summary { margin-bottom: 10px; }
.ev-src { color: var(--muted); margin-top: 10px; }
.lc-year { display: inline-block; min-width: 3.6em; font-family: var(--mono); font-size: 13px; color: var(--eyebrow); }

/* Weather line at the top of every page */
.wx-top { background: #0B2733; border-bottom: 1px solid #1E4557; font-size: 13px; }
.wx-top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-top: 0; padding-bottom: 0; min-height: 34px; }
.wx-chip { display: inline-flex; align-items: center; gap: 8px; color: #D7E3E8; text-decoration: none; padding: 6px 0; min-height: 24px; }
.wx-chip b { color: var(--paper); font-size: 15px; }
.wx-chip:hover, .wx-chip:focus-visible { color: var(--paper); text-decoration: underline; }
.wx-chip-hl, .wx-chip-where { color: #9FB6C0; }
.wx-chip-where::before, .wx-chip-hl::before { content: "·"; margin-right: 8px; }
.wx-chip-warn { color: #1B2B33; background: #FFD866; border-radius: 4px; padding: 3px 8px; font-weight: 600; text-decoration: none; }
.wx-chip-warn::before { content: "⚠ "; }
.wx-chip-tip { color: #C9D7DD; flex: 1; min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-chip-tip .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-right: 4px; }
@media (max-width: 900px) { .wx-chip-tip { display: none; } }
@media (max-width: 640px) { .wx-chip-hl { display: none; } }

/* Also this week, under the home page's main story */
.also { margin-top: 28px; border-top: 1px solid #1E4557; padding-top: 16px; }
.also ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.also a { display: block; color: var(--paper); text-decoration: none; padding: 6px 0; font-weight: 500; }
.also a:hover, .also a:focus-visible { color: var(--accent); text-decoration: underline; }
.also-tag { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #9FB6C0; margin-bottom: 2px; }

/* Mortgage page: full budget */
.budget-more { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.budget-more summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 8px 0; min-height: 24px; }
.budget-more[open] summary { margin-bottom: 4px; }
.budget-more label, .budget-more select, .budget-more input { display: block; width: 100%; }
.budget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.mort-table tr.subtotal th, .mort-table tr.subtotal td { color: var(--muted); }
.mort-table + .mort-table { margin-top: 24px; }
.qual { margin-top: 20px; border-radius: 10px; padding: 14px 16px; border: 1px solid var(--line); }
.qual p { margin: 8px 0 0; font-size: 15px; }
.qual-ok { background: #EAF6EE; border-color: #9CCFAE; }
.qual-no { background: #FFF4E5; border-color: #E8B26A; }
.glance-sub { display: block; font-size: 13px; font-family: var(--body, inherit); color: #9FB6C0; font-weight: 400; letter-spacing: 0; }
.glance-note { margin: 0; color: #9FB6C0; } .glance-note a { color: var(--paper); }
.qual-cta { margin-top: 12px; display: inline-block; }
.suite-rent { margin: 20px 0; } .suite-rent .btn { margin-top: 8px; }

/* Address check and help page */
.addr-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.addr-list li { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); line-height: 1.5; }
.addr-list li.addr-flag { border-left: 4px solid var(--eyebrow); }
.help-toc { margin-top: 16px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.help-toc a { display: inline-block; padding: 10px 4px; min-height: 24px; }
.help section { padding: 8px 0 24px; max-width: 820px; }
.help-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.help-side { position: sticky; top: 16px; }
.help-side > .side-box:first-child { margin-top: 8px; }
.side-toc { list-style: none; margin: 0; padding: 0; display: grid; }
.side-toc a { display: block; padding: 6px 0; }
@media (max-width: 1000px) { .help-body { grid-template-columns: 1fr; gap: 0; } .help-side { position: static; } .help-side .side-box:first-child { display: none; } }
@media (min-width: 1001px) { .mag-head .help-toc { display: none; } }
.mort-out > .side-box { margin-top: 0; }
.help .mort-table { margin: 12px 0 16px; }

/* Texts on a client's page */
.adm-texts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.adm-texts li { padding: 8px 12px; border-radius: 10px; max-width: 90%; }
.adm-texts li.in { background: var(--wash); }
.adm-texts li.out { background: var(--white); border: 1px solid var(--line); justify-self: end; }
.adm-texts p { margin: 4px 0 0; }

/* Video calls */
.vc-join { max-width: 520px; }
.vc-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.vc-tile { margin: 0; position: relative; background: var(--ink); border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.vc-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc-tile figcaption { position: absolute; left: 8px; bottom: 8px; color: var(--white); background: rgba(0, 0, 0, .5); padding: 2px 8px; border-radius: 6px; font-size: 13px; }
.vc-off { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; color: var(--white); background: var(--ink); font-size: 15px; }
.vc-tile.is-off .vc-off { display: flex; }
.vc-tile.is-off video { visibility: hidden; }
.vc-join[hidden], .vc-room[hidden] { display: none; }
.vc-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Side columns beside forms (home value, contact, book a call) */
.side-box { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.side-box .side-h { color: var(--eyebrow); margin: 0 0 12px; }
.side-list, .side-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.side-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; }
.side-stats dt { font-size: 13px; color: var(--muted); }
.side-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; }
.side-stats dd span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
/* On phones the form comes right after the intro; the extra boxes follow it. */
@media (max-width: 900px) {
  .split-2 > .section-head:has(> .side-more) { display: contents; }
  .split-2 > .section-head > .intro { order: 0; flex: 1 1 100%; }
  .split-2 > form { order: 1; }
  .split-2 > .section-head > .side-more { order: 2; flex: 1 1 100%; }
  .split-2 .side-more > .side-box:first-child { margin-top: 0; }
}

/* ---- Game polish (works with or without games.js) ---- */
.wh-board { background: radial-gradient(circle at 50% 0%, #2A8A4D, #1E6B3A 60%, #17562F); box-shadow: inset 0 0 0 4px #F2A65A, inset 0 0 0 7px #17562F, 0 8px 20px rgba(11,42,54,.18); padding: 22px; }
.wh-tile { box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.wh-tile.open { background: linear-gradient(#FFFFFF, #EEF3F5); }
.wh-tile:not(.open) { background: linear-gradient(#E7F1EA, #D5E6DA); box-shadow: inset 0 0 0 2px #B9D4C2, 0 2px 0 rgba(0,0,0,.2); }
.wh-spin { font-size: 18px; }
.wh-wheel-wrap { position: relative; flex: none; width: 92px; height: 92px; }
.wh-wheel { position: absolute; inset: 0; width: auto; height: auto; border: 4px solid var(--ink); box-shadow: 0 6px 14px rgba(11,42,54,.25);
  background: radial-gradient(circle, var(--ink) 0 9px, transparent 10px),
  conic-gradient(var(--accent) 0 30deg, var(--ink-2) 30deg 60deg, #1E6B3A 60deg 90deg, var(--white) 90deg 120deg, #C8553D 120deg 150deg, var(--ink-2) 150deg 180deg,
  var(--accent) 180deg 210deg, #1E6B3A 210deg 240deg, var(--white) 240deg 270deg, #C8553D 270deg 300deg, var(--ink-2) 300deg 330deg, #F5C518 330deg 360deg); }
.wh-pointer { position: absolute; top: -8px; left: 50%; margin-left: -9px; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 16px solid var(--ink); }
.wh-wheel.spin { animation: wh-spin .7s cubic-bezier(.2,.6,.4,1) infinite; }
.wh-wheel.settle { animation: wh-settle 1.1s cubic-bezier(.15,.85,.3,1); }
@keyframes wh-spin { to { transform: rotate(360deg); } }
@keyframes wh-settle { from { transform: rotate(-540deg); } to { transform: rotate(0); } }
.wh-key { box-shadow: 0 3px 0 #061820; transition: transform .08s, box-shadow .08s; }
a.wh-key:hover, a.wh-key:focus-visible { transform: translateY(-2px); box-shadow: 0 5px 0 #061820; }
.wh-key.vowel { box-shadow: 0 3px 0 #B9773A; }
.wh-key.used { box-shadow: none; }
.wh-tile.flip { animation: tile-flip .5s ease-out backwards; }
@keyframes tile-flip { 0% { transform: rotateY(90deg); background: #F2A65A; } 60% { transform: rotateY(-10deg); } 100% { transform: rotateY(0); } }
.tv-cat { background: linear-gradient(#12394A, #0B2A36); }
.tv-tile { background: linear-gradient(#1C4E63, #12394A); box-shadow: 0 3px 0 #061820, inset 0 1px 0 rgba(255,255,255,.12); transition: transform .1s, box-shadow .1s; }
a.tv-tile:hover, a.tv-tile:focus-visible { transform: translateY(-2px); box-shadow: 0 5px 0 #061820, inset 0 1px 0 rgba(255,255,255,.12); }
.tv-tile.used { box-shadow: none; }
.hl-card.turn { animation: card-turn .6s ease-out; }
@keyframes card-turn { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
.sv-bar { animation: bar-grow .9s ease-out backwards; transform-origin: left; }
@keyframes bar-grow { from { transform: scaleX(0); } }
.pop { animation: pop .35s cubic-bezier(.2,1.4,.4,1) backwards; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.bump { display: inline-block; animation: bump .5s; color: var(--eyebrow); }
@keyframes bump { 40% { transform: scale(1.35); } }
.deal { animation: deal .35s ease-out backwards; }
@keyframes deal { from { transform: translateY(8px) scale(.96); opacity: 0; } }
.live-busy .live-pressed { opacity: .7; }
.live-busy { cursor: progress; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--drift), 105vh) rotate(var(--spin)); } }
.arc-sound { flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .wh-wheel.spin, .wh-wheel.settle, .wh-tile.flip, .hl-card.turn, .sv-bar, .pop, .shake, .bump, .deal { animation: none; }
}
@media (max-width: 560px) { .wh-wheel-wrap { width: 64px; height: 64px; } }

/* Burlington says: game-show board (our own look, site colours) */
.bs-wrap { max-width: 820px; }
.bs-stage { position: relative; background: radial-gradient(ellipse at 50% 0%, #1C4E63 0%, #0B2A36 70%); color: var(--white);
  border-radius: 22px; padding: 26px 22px 24px; margin-bottom: 20px;
  box-shadow: 0 0 0 5px #F2A65A, 0 0 0 9px #0B2A36, 0 14px 30px rgba(11,42,54,.3); }
.bs-stage::before { content: ""; position: absolute; inset: 7px; border-radius: 15px; pointer-events: none;
  border: 4px dotted #FFE3B8; opacity: .55; animation: bs-bulbs 1.6s steps(2) infinite; }
@keyframes bs-bulbs { 50% { opacity: .9; } }
.bs-q { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.2; text-align: center; margin: 6px 8px 20px; }
.bs-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.bs-bank { background: #061820; border: 3px solid #F2A65A; border-radius: 12px; padding: 6px 16px; text-align: center; min-width: 110px; }
.bs-bank span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #F2A65A; }
.bs-bank strong { font-family: var(--display); font-size: 34px; line-height: 1.1; color: var(--white); }
.bs-strikes { display: flex; gap: 8px; }
.bs-x { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; background: rgba(255,255,255,.08); color: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.15); }
.bs-x.on { background: #B42318; color: #FFFFFF; border-color: #FF8A80; box-shadow: 0 0 18px rgba(255,80,60,.6); }
.bs-x.new { animation: bs-slam .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes bs-slam { from { transform: scale(2.4); opacity: 0; } }
.bs-starter { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: rgba(245, 197, 24, 0.16); border: 1px dashed rgba(245, 197, 24, 0.7); font-size: 15px; line-height: 1.45; }
.bs-starter strong { color: #F5C518; }
.bs-board { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; perspective: 800px; }
.bs-panel { display: flex; align-items: center; justify-content: center; min-height: 58px; border-radius: 10px; position: relative;
  background: linear-gradient(#174257, #0E3243); border: 2px solid #2E6A82; box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 3px 0 #061820; }
.bs-num { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #FFD9A8, #F2A65A 60%, #B9773A); color: #0B2A36; font-family: var(--display); font-weight: 900; font-size: 22px;
  box-shadow: 0 0 12px rgba(242,166,90,.5); }
.bs-panel.open { justify-content: space-between; padding: 0 0 0 18px; background: linear-gradient(#FFF6EA, #F7E2C6); border-color: #F2A65A; color: #0B2A36; overflow: hidden; }
.bs-panel.missed { background: linear-gradient(#E7EDF0, #D3DDE1); border-color: #9AA8AE; color: #3A4D55; }
.bs-ans { font-family: var(--display); font-weight: 800; font-size: clamp(17px, 2.4vw, 22px); text-transform: uppercase; letter-spacing: .02em; }
.bs-ans small { text-transform: none; font-weight: 600; font-size: 13px; }
.bs-pts { align-self: stretch; display: flex; align-items: center; justify-content: center; min-width: 66px; background: #0B2A36; color: #F2A65A;
  font-family: var(--display); font-weight: 900; font-size: 26px; }
.bs-panel.missed .bs-pts { color: #C9D3D7; }
.bs-panel.new { animation: bs-flip .6s ease-out; transform-origin: 50% 50%; }
@keyframes bs-flip { 0% { transform: rotateX(90deg); } 70% { transform: rotateX(-12deg); } 100% { transform: rotateX(0); } }
.bs-ask { text-align: center; font-weight: 700; margin: 8px 0 10px; color: #FFE3B8; }
.bs-picks, .bs-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.bs-pick, .bs-choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 12px;
  border-radius: 12px; background: linear-gradient(#F7B977, #F2A65A); color: #0B2A36; font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 0 #B9773A; transition: transform .08s, box-shadow .08s; }
a.bs-pick:hover, a.bs-pick:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 0 #B9773A; color: #0B2A36; }
a.bs-pick:focus-visible, .bs-choice input:focus-visible + span { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.bs-pick.used { background: rgba(255,255,255,.1); color: rgba(255,255,255,.45); box-shadow: none; text-decoration: line-through; }
.bs-vote fieldset { border: 0; padding: 0; margin: 0; }
.bs-vote legend { font-weight: 700; color: #FFE3B8; margin: 0 auto 10px; text-align: center; }
.bs-choice { cursor: pointer; }
.bs-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bs-choice input:checked + span { background: #FFFFFF; box-shadow: 0 0 0 3px #F2A65A, 0 4px 0 #B9773A; }
.bs-go { display: block; margin: 18px auto 8px; padding: 14px 36px; border: 0; border-radius: 999px; cursor: pointer;
  background: #FFFFFF; color: #0B2A36; font-weight: 900; font-size: 18px; box-shadow: 0 4px 0 #9DB8C2; }
.bs-go:hover, .bs-go:focus-visible { background: #FFF4E8; }
.bs-fine { text-align: center; font-size: 13px; color: #C9D8DE; margin: 6px 0 0; }
.bs-stage .xw-msg { color: var(--ink); margin: 6px 0 4px; }
.bs-stage .small { color: #E3ECEF; padding: 0 8px; } .bs-stage .small strong { color: #FFFFFF; }
.bs-sound { margin: 0 0 8px; width: auto; align-self: flex-start; }
@media (max-width: 560px) {
  .bs-stage { padding: 20px 12px 18px; border-radius: 16px; }
  .bs-x { width: 38px; height: 38px; font-size: 24px; }
  .bs-bank strong { font-size: 28px; }
  .bs-picks, .bs-choices { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .bs-stage::before, .bs-x.new, .bs-panel.new { animation: none; } }

/* ---- Game extras: today's challenge, own stats, streaks, combos, speed bonus ---- */
.g-challenge { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; text-decoration: none; color: var(--white);
  background: linear-gradient(120deg, var(--ink) 0%, #14566A 100%); border-radius: 16px; padding: 18px 22px; margin: 0 0 14px;
  box-shadow: 0 6px 0 #061820; border: 3px solid var(--accent); }
.g-challenge:hover { color: var(--white); transform: translateY(-1px); }
.g-ch-eyebrow { grid-column: 1; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.g-ch-title { grid-column: 1; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.15; }
.g-ch-goal { grid-column: 1; color: var(--on-ink); }
.g-ch-done { grid-column: 1; font-weight: 800; color: #9BE3B0; }
.g-ch-go { grid-column: 2; grid-row: 1 / span 4; background: var(--accent); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 10px 18px; box-shadow: 0 3px 0 #B86E2A; }
.g-challenge.done { border-color: #9BE3B0; }
.g-challenge.done .g-ch-go { background: var(--white); box-shadow: 0 3px 0 var(--line-2); }
.g-stats { margin: 0 0 18px; color: var(--ink); }
.g-best { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--eyebrow); background: #FFF3E6; border-radius: 999px; padding: 2px 10px; }
.g-newbest { display: inline-block; background: #F5C518; color: var(--ink); font-weight: 800; border-radius: 999px; padding: 6px 14px; margin: 8px 0; animation: pop .45s cubic-bezier(.2,1.4,.4,1) backwards; }
.hl-tier { display: inline-block; font-size: 13px; font-weight: 800; border-radius: 999px; padding: 2px 10px; vertical-align: 2px; margin-left: 6px; }
.hl-tier.t1 { background: #FFF3E6; color: var(--eyebrow); }
.hl-tier.t2 { background: var(--accent); color: var(--ink); }
.hl-tier.t3 { background: #C8553D; color: var(--white); animation: tier-glow 1.2s ease-in-out infinite; }
@keyframes tier-glow { 50% { box-shadow: 0 0 0 5px rgba(200, 85, 61, .25); } }
.hl-milestone { display: inline-block; background: var(--ink); color: var(--white); font-family: var(--display); font-weight: 800; font-size: 20px;
  border-radius: 12px; padding: 8px 16px; margin: 4px 0 12px; border: 2px solid var(--accent); animation: pop .45s cubic-bezier(.2,1.4,.4,1) backwards; }
.tv-double { display: inline-block; background: #F5C518; color: var(--ink); font-weight: 800; border-radius: 8px; padding: 4px 12px; margin: 0 0 8px; animation: pop .45s cubic-bezier(.2,1.4,.4,1) backwards; }
.tv-timer { height: 8px; background: var(--wash); border-radius: 999px; overflow: hidden; margin: -6px 0 6px; }
.tv-timer span { display: block; height: 100%; background: linear-gradient(90deg, #1E6B3A, var(--accent)); transform-origin: left; animation: tv-count linear forwards; }
@keyframes tv-count { to { transform: scaleX(0); } }
.tv-timer-note { margin: 0 0 12px; }
@media (max-width: 560px) {
  .g-challenge { grid-template-columns: 1fr; }
  .g-ch-go { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .g-newbest, .hl-milestone, .tv-double, .hl-tier.t3 { animation: none; } .tv-timer span { animation: none; } }
.g-best[hidden], .g-ch-done[hidden], .g-stats[hidden] { display: none; }
/* Seasonal touch on today's challenge: a light pattern of leaves, snow, blossoms or sun. */
.g-challenge { position: relative; overflow: hidden; }
.g-challenge::after { content: ""; position: absolute; right: -18px; bottom: -36px; width: 150px; height: 150px; pointer-events: none; opacity: .2; transform: rotate(-14deg);
  background-repeat: no-repeat; background-size: contain; }
.g-challenge.s-fall::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23F2A65A' d='M50 2L56 20L66 14L63 34L80 26L76 40L92 44L78 54L82 62L60 60L62 78L52 70L52 98L48 98L48 70L38 78L40 60L18 62L22 54L8 44L24 40L20 26L37 34L34 14L44 20Z'/%3E%3C/svg%3E"); }
.g-challenge.s-winter::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg stroke='%23FFFFFF' stroke-width='6' stroke-linecap='round'%3E%3Cpath d='M50 8v84M14 29l72 42M14 71l72-42M40 14l10 10 10-10M40 86l10-10 10 10'/%3E%3C/g%3E%3C/svg%3E"); }
.g-challenge.s-spring::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23F7B6C8'%3E%3Ccircle cx='50' cy='28' r='18'/%3E%3Ccircle cx='72' cy='45' r='18'/%3E%3Ccircle cx='63' cy='70' r='18'/%3E%3Ccircle cx='37' cy='70' r='18'/%3E%3Ccircle cx='28' cy='45' r='18'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='10' fill='%23F5C518'/%3E%3C/svg%3E"); }
.g-challenge.s-summer::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='22' fill='%23F5C518'/%3E%3Cg stroke='%23F5C518' stroke-width='6' stroke-linecap='round'%3E%3Cpath d='M50 6v12M50 82v12M6 50h12M82 50h12M19 19l8 8M73 73l8 8M19 81l8-8M73 27l8-8'/%3E%3C/g%3E%3C/svg%3E"); }
.g-challenge > * { position: relative; z-index: 1; }

/* ---- Members area ---- */
.mb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 20px 0 8px; }
.mb-card h2 { font-size: 24px; margin: 4px 0 6px; }
.mb-soon { background: var(--wash); }
.mb-sec { margin: 32px 0 0; }
.mb-sec h2 { font-size: 26px; margin: 0 0 12px; }
.mb-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.mb-month { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.mb-month h3 { margin: 0 0 8px; font-size: 20px; }
.mb-month ul, .mb-list, .mb-saves { list-style: none; padding: 0; margin: 0; }
.mb-month li, .mb-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.mb-month li:first-child, .mb-list li:first-child { border-top: 0; }
.mb-tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--eyebrow); margin-right: 4px; }
.mb-saves li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mb-del, .mb-inline, .mb-addr-del { display: inline; margin: 0; }
.mb-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mb-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.mb-search fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.mb-search legend { font-weight: 700; margin-bottom: 6px; }
.mb-where { max-width: 560px; }
.mb-addr-del { display: block; margin: 8px 0 0; }
.mb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 8px; }
.mb-stats div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mb-stats dt { font-size: 13px; color: var(--muted); }
.mb-stats dd { margin: 2px 0 0; font-family: var(--display); font-weight: 800; font-size: 22px; }
.mb-ask { background: var(--ink); color: var(--white); border-radius: 14px; padding: 18px 20px; margin: 16px 0; }
.mb-ask p { margin: 0 0 12px; }
.mb-ask .btn.dark { background: var(--accent); color: var(--ink); }
.mb-save { background: #FFF3E6; border: 1px solid #F2C79A; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.mb-save label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.mb-save-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mb-save-row input { flex: 1 1 140px; min-width: 0; }
.mb-ask strong { color: var(--white); }

/* ---- Games page: arcade look ---- */
.arcade-hub { background: radial-gradient(ellipse at top, #14566A 0%, #0B2A36 55%, #061820 100%); color: var(--white); padding: 40px 0 56px; }
.ah-head { text-align: center; }
.ah-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ah-title { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 8vw, 76px); line-height: 1; margin: 10px 0 12px;
  color: var(--white); text-shadow: 0 4px 0 #061820, 0 0 24px rgba(242, 166, 90, .35); }
.ah-title span { color: var(--accent); }
.ah-deck { max-width: 620px; margin: 0 auto 28px; color: var(--on-ink); font-size: 18px; }
.ah-body { padding-top: 0; }
.arcade-hub .g-stats { color: var(--on-ink); text-align: center; }
.arcade-hub .g-stats .muted { color: var(--soft); }
.ah-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 8px; }
.ah-tile { position: relative; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink);
  background: var(--white); border-radius: 18px; padding: 18px 18px 16px; border: 3px solid transparent;
  box-shadow: 0 6px 0 #061820; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; overflow: hidden; }
.ah-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 74px; background: var(--k, #FFE8D1); }
.ah-tile > * { position: relative; }
.ah-tile:hover, .ah-tile:focus-visible { transform: translateY(-4px); box-shadow: 0 10px 0 #061820; border-color: var(--accent); color: var(--ink); }
.ah-icon { width: 76px; height: 76px; border-radius: 20px; background: var(--white); display: grid; place-items: center;
  box-shadow: 0 3px 0 rgba(11, 42, 54, .15), 0 0 0 3px rgba(11, 42, 54, .06); margin-bottom: 4px; }
.ah-icon .gi { width: 56px; height: 56px; }
.ah-tile:hover .gi { animation: gi-wiggle .5s ease; }
@keyframes gi-wiggle { 30% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(6deg) scale(1.08); } }
.ah-kind { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow); }
.ah-name { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; }
.ah-desc { color: var(--muted); font-size: 15px; flex: 1; }
.ah-play { align-self: flex-start; margin-top: 8px; background: var(--accent); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 7px 16px; box-shadow: 0 3px 0 #B86E2A; }
.ah-tile .g-best { align-self: flex-start; }
.k-arcade { --k: #FFE3C4; } .k-cards { --k: #DDEFE3; } .k-quiz { --k: #DCEBF2; } .k-puzzle { --k: #EDE4F7; }
.k-game-show { --k: #FFF1BF; } .k-seller { --k: #F8DCD4; } .k-buyer { --k: #DDEFE3; }
.k-memory { --k: #FDE7D9; } .k-word { --k: #E2F0D9; } .k-map { --k: #D6EEF5; } .k-seasonal { --k: #F7DCDC; }
.ah-board { text-align: center; margin: 32px 0 0; }
.ah-board .btn { font-size: 17px; }
.ah-fine { color: var(--soft); text-align: center; max-width: 640px; margin: 20px auto 0; }
.ah-fine a { color: var(--accent); }
.arcade-hub .g-challenge { box-shadow: 0 6px 0 #02101A; }
@media (prefers-reduced-motion: reduce) { .ah-tile, .ah-tile:hover { transition: none; transform: none; } .ah-tile:hover .gi { animation: none; } }

/* Quick games made of page elements (static/minigames.js) */
.mg { position: relative; background: var(--ink); color: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 10px; min-height: 420px; }
.mg:focus { outline: none; }
.mg-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 15px; }
.mg-label { color: var(--soft); font-family: 'Public Sans', system-ui, sans-serif; font-weight: 600; font-size: 13px; text-align: center; }
.mg-time.low { color: var(--accent); } .mg-time.frozen { color: #9CD6F2; }
.mg-bar { height: 4px; background: rgba(255,255,255,.14); border-radius: 2px; margin: 6px 0 8px; overflow: hidden; }
.mg-bar i { display: block; height: 100%; background: #7FA7B5; transition: width .1s linear; }
.mg-bar.low i { background: var(--accent); }
.mg-buffs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; min-height: 0; }
.mg-buff { font: 700 13px 'Public Sans', system-ui, sans-serif; background: #F5C518; color: var(--ink); border: 0; border-radius: 999px; padding: 6px 12px; min-height: 44px; cursor: pointer; }
.mg-buff:disabled { background: rgba(255,255,255,.16); color: var(--on-ink); cursor: default; }
.mg-buff.got { animation: mg-bump .6s ease; }
.mg-buff:focus-visible, .mg-card:focus-visible, .mg-tile:focus-visible, .mg-slot:focus-visible, .mg-opt:focus-visible, .mg-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mg-msg { min-height: 2.6em; margin: 8px 2px 0; font-size: 14px; color: var(--on-ink); }
.mg-msg strong { color: var(--white); }
.mg-panel { position: absolute; inset: 0; background: rgba(11,42,54,.9); border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; z-index: 3; }
.mg-panel[hidden] { display: none; }
.mg-panel p { margin: 0 0 10px; max-width: 30em; color: var(--on-ink); }
.mg-panel p strong { color: var(--white); }
.mg-panel .mg-ptitle { font: 800 26px var(--display); color: var(--white); margin-bottom: 12px; }
.mg-panel .mg-go { margin-top: 8px; background: var(--accent); color: var(--ink); border: 0; font-weight: 800; padding: 12px 28px; border-radius: 999px; }
.mg-pop { position: absolute; transform: translate(-50%, -50%); font: 800 17px var(--display); pointer-events: none; z-index: 4;
          text-shadow: 0 2px 0 rgba(11,42,54,.8), 0 0 6px rgba(11,42,54,.6); animation: mg-float 1s ease-out forwards; white-space: nowrap; }
.mg-pop.good { color: #FFFFFF; } .mg-pop.gold { color: #F5C518; } .mg-pop.bad { color: #FF8A80; }
@keyframes mg-float { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }
@keyframes mg-bump { 50% { transform: scale(1.2); } }
@keyframes mg-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.shake { animation: mg-shake .4s; }
@media (prefers-reduced-motion: reduce) { .mg-pop { animation-duration: .01s; } .shake, .mg-buff.got { animation: none; } }

/* Memory */
.mg-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 8px; }
.mg-card { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; border-radius: 10px; cursor: pointer; background: transparent; perspective: 600px; }
.mg-card > span { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; transition: transform .3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.mg-back { background: repeating-linear-gradient(45deg, #14566A 0 8px, #12394A 8px 16px); border: 2px solid #F2A65A; }
.mg-back::after { content: ""; width: 34%; aspect-ratio: 1; background: #F2A65A; clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); opacity: .9; }
.mg-face { background: #FFFFFF; color: var(--ink); transform: rotateY(180deg); border: 2px solid var(--ink); padding: 4px; text-align: center; }
.mg-card.up .mg-back { transform: rotateY(180deg); } .mg-card.up .mg-face { transform: rotateY(0); }
.mg-card.done .mg-face { background: #E4F3E8; border-color: #1E6B3A; }
.mg-card.done { animation: mg-bump .4s ease; cursor: default; }
.mg-card.gust .mg-back { box-shadow: 0 0 0 3px #9CD6F2; }
.mg-card.c0 .mg-face { background: #FFF3E6; } .mg-card.c1 .mg-face { background: #E8F1F4; } .mg-card.c2 .mg-face { background: #FDF6D8; }
.mg-card.c3 .mg-face { background: #EEE8F4; } .mg-card.c4 .mg-face { background: #E9F4E4; } .mg-card.c5 .mg-face { background: #F8E8E4; }
.mg-ce { font-size: clamp(22px, 7vw, 34px); line-height: 1; } .mg-ce.big { font-size: clamp(28px, 9vw, 42px); }
.mg-cn { font: 700 11px/1.15 'Public Sans', system-ui, sans-serif; } .mg-cn.big { font: 800 13px/1.15 var(--display); }
.mg-star { position: absolute; top: 3px; right: 6px; color: #C99A00; font-size: 14px; }
.mg-peeking .mg-card { cursor: wait; }

/* Street Scramble */
.mg-scr { text-align: center; padding: 18px 0 6px; }
.mg-scr-hint { color: var(--soft); font-size: 14px; margin: 0 0 14px; }
.mg-slots, .mg-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 18px; }
.mg-slot, .mg-tile { width: clamp(30px, 8.5vw, 40px); height: clamp(38px, 10vw, 48px); border-radius: 8px; font: 800 clamp(17px, 5vw, 22px) var(--display); cursor: pointer; }
.mg-slot { background: rgba(255,255,255,.08); border: 2px dashed var(--soft); color: var(--white); }
.mg-slot.hinted { border-style: solid; border-color: #F5C518; color: #F5C518; }
.mg-slot.right { background: #1E6B3A; border: 2px solid #9BE3B0; }
.mg-gap { width: 14px; }
.mg-tile { background: #FFF3E6; border: 2px solid var(--accent); color: var(--ink); box-shadow: 0 3px 0 #C47A2E; }
.mg-tile:disabled { opacity: .2; box-shadow: none; cursor: default; }

/* Name that Neighbourhood */
.mg-clues { list-style: none; counter-reset: c; padding: 0; margin: 4px 0 12px; min-height: 9.5em; }
.mg-clue { counter-increment: c; background: rgba(255,255,255,.08); border-left: 4px solid var(--accent); border-radius: 6px; padding: 8px 10px 8px 34px; margin-bottom: 6px; position: relative; }
.mg-clue::before { content: counter(c); position: absolute; left: 10px; top: 8px; font: 800 14px var(--display); color: var(--accent); }
.mg-clue.in { animation: mg-in .35s ease; }
@keyframes mg-in { from { opacity: 0; transform: translateY(-6px); } }
.mg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mg-opt { background: #FFFFFF; color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 8px; font: 800 15px var(--display); cursor: pointer; min-height: 52px; }
.mg-opt .aka-s { display: block; font: 600 11px 'Public Sans', system-ui, sans-serif; color: var(--muted); }
.mg-opt.right { background: #E4F3E8; border-color: #1E6B3A; } .mg-opt.wrong { background: #FDE7E4; border-color: var(--error); }
.mg-opt.gone { opacity: .25; }
.mg-opt:disabled { cursor: default; }

/* Map Match */
.mg-map { width: 100%; height: auto; display: block; border-radius: 10px; background: #E8EFE3; touch-action: none; }
.mg-mt { font: 700 11px 'Public Sans', system-ui, sans-serif; fill: #3B5561; text-anchor: middle; } .mg-mt.e { fill: #7E6B4F; } .mg-mt.n { text-anchor: start; fill: #0B2A36; }
.mg-mr { font: 800 10px 'Public Sans', system-ui, sans-serif; fill: #C8553D; text-anchor: middle; } .mg-mr.b { fill: #14566A; }
.mg-pin { cursor: pointer; outline: none; } .mg-pin .hit { fill: transparent; }
.mg-pin .dot { fill: #F2A65A; stroke: #0B2A36; stroke-width: 2; }
.mg-pin .num { font: 800 10px var(--display); fill: #0B2A36; text-anchor: middle; pointer-events: none; }
.mg-pin:focus-visible .dot { stroke: #FFFFFF; stroke-width: 4; }
.mg-pin.right .dot { fill: #1E6B3A; } .mg-pin.right .num { fill: #FFFFFF; } .mg-pin.right { cursor: default; }
.mg-pin.wrong .dot { fill: #B42318; } .mg-pin.missed .dot { fill: #FFFFFF; stroke: #B42318; stroke-width: 3; }
.mg-pin.glow .dot { fill: #F5C518; stroke: #FFFFFF; stroke-width: 4; }
.mg-plabel { font: 800 9px 'Public Sans', system-ui, sans-serif; fill: #0B2A36; text-anchor: middle; paint-order: stroke; stroke: #FFFFFF; stroke-width: 3px; pointer-events: none; }
.mg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mg-chip { background: #FFF3E6; color: var(--ink); border: 2px solid var(--accent); border-radius: 999px; padding: 6px 12px; font: 700 13px 'Public Sans', system-ui, sans-serif; cursor: grab; touch-action: none; }
.mg-chip[aria-pressed="true"] { background: var(--accent); border-color: #FFFFFF; }
.mg-ghost { position: fixed; transform: translate(-50%, -130%); background: var(--accent); color: var(--ink); font: 700 13px 'Public Sans', system-ui, sans-serif; padding: 6px 12px; border-radius: 999px; pointer-events: none; z-index: 50; box-shadow: 0 6px 16px rgba(0,0,0,.3); }

/* Spot the Problem */
.mg-scene { width: 100%; height: auto; display: block; border-radius: 10px; }
.mg-hot { cursor: pointer; outline: none; } .mg-hot circle { fill: transparent; stroke: transparent; stroke-width: 3; }
.mg-hot:focus-visible circle { stroke: #FFFFFF; stroke-dasharray: 4 3; }
.mg-hot.found circle { stroke: #1E6B3A; fill: rgba(30,107,58,.15); stroke-width: 4; }
.mg-hot.fine circle { stroke: #9DB8C2; stroke-dasharray: 3 3; }
.mg-hot.missed circle { stroke: #B42318; stroke-width: 4; }
.mg-hot.glow circle { stroke: #F5C518; fill: rgba(245,197,24,.3); stroke-width: 4; }
.hl-pass { display: inline-block; font-size: 13px; font-weight: 800; border-radius: 999px; padding: 2px 10px; margin-left: 6px; background: #F5C518; color: var(--ink); }
/* Member guides */
.mb-guide { max-width: 820px; }
.mb-check { list-style: none; padding: 0; margin: 0; }
.mb-check li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.mb-check li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 16px; height: 16px; border: 2px solid var(--link); border-radius: 4px; }
.mb-steps li { margin-bottom: 10px; }
.mb-compare table { width: 100%; margin: 16px 0; }
.mb-compare tr.total th, .mb-compare tr.total td { font-weight: 800; border-top: 2px solid var(--ink); }

/* Visual pass: depth, light and texture for the quick games */
.mg { background: radial-gradient(120% 80% at 50% 0%, #1B5770 0%, #0E3445 45%, #071E28 100%); box-shadow: 0 18px 40px rgba(7,30,40,.35), inset 0 1px 0 rgba(255,255,255,.08); }
.mg::before { content: ""; position: absolute; inset: 0; border-radius: 12px; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 14px 14px; }
.mg > * { position: relative; }
.mg-panel { position: absolute; background: radial-gradient(90% 70% at 50% 30%, rgba(27,87,112,.94), rgba(7,30,40,.96)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mg-panel .mg-ptitle { font-size: 30px; background: linear-gradient(180deg, #FFFFFF, #FFD9A8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mg-panel .mg-go { background: linear-gradient(180deg, #FFC37F, #E8893A); box-shadow: 0 6px 18px rgba(242,166,90,.45), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .12s; }
.mg-panel .mg-go:hover { transform: translateY(-2px); }
.mg-top .mg-score, .mg-top .mg-time { background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.mg-bar { height: 5px; } .mg-bar i { background: linear-gradient(90deg, #4FB3D9, #9BE3B0); box-shadow: 0 0 8px rgba(79,179,217,.7); }
.mg-bar.low i { background: linear-gradient(90deg, #E8893A, #F5C518); box-shadow: 0 0 8px rgba(242,166,90,.8); }
.mg-buff { background: linear-gradient(180deg, #FFE27A, #F2B705); box-shadow: 0 3px 0 #B88700, 0 6px 14px rgba(245,197,24,.3); transition: transform .1s, box-shadow .1s; }
.mg-buff:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #B88700; }
.mg-buff:disabled { box-shadow: none; }
/* Memory: cards with thickness, gloss and a lift on hover */
.mg-grid { perspective: 900px; }
.mg-card { transition: transform .18s ease; transform-style: preserve-3d; }
.mg-card:hover:not(.done):not(.up) { transform: translateY(-3px) rotateX(6deg); }
.mg-card > span { box-shadow: 0 6px 0 rgba(0,0,0,.25), 0 10px 18px rgba(0,0,0,.25); }
.mg-back { background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,0) 40%), repeating-linear-gradient(45deg, #1B6A82 0 8px, #14566A 8px 16px); }
.mg-face::after { content: ""; position: absolute; inset: 0; border-radius: 9px; pointer-events: none; background: linear-gradient(160deg, rgba(255,255,255,.65), rgba(255,255,255,0) 38%); }
.mg-card.done .mg-face { box-shadow: 0 0 0 3px #9BE3B0, 0 0 22px rgba(155,227,176,.6); }
/* Scramble: letter tiles that look like game pieces */
.mg-tile { background: linear-gradient(180deg, #FFFFFF, #FFE6C8); box-shadow: 0 4px 0 #C47A2E, 0 8px 14px rgba(0,0,0,.3); transition: transform .08s, box-shadow .08s; }
.mg-tile:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #C47A2E; }
.mg-slot { background: rgba(255,255,255,.06); box-shadow: inset 0 3px 6px rgba(0,0,0,.35); }
.mg-slot.right { background: linear-gradient(180deg, #2F8F52, #1E6B3A); box-shadow: 0 0 14px rgba(155,227,176,.6); }
/* Name that Neighbourhood: glassy clues and raised answers */
.mg-clue { background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.mg-opt { background: linear-gradient(180deg, #FFFFFF, #E9F0F3); box-shadow: 0 4px 0 #9DB8C2, 0 8px 16px rgba(0,0,0,.25); transition: transform .1s, box-shadow .1s; }
.mg-opt:hover:not(:disabled) { transform: translateY(-2px); }
.mg-opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #9DB8C2; }
.mg-opt.right { background: linear-gradient(180deg, #E8F8EC, #BFE8CB); box-shadow: 0 4px 0 #1E6B3A, 0 0 18px rgba(155,227,176,.55); }
.mg-opt.wrong { background: linear-gradient(180deg, #FFF0EE, #F8C9C2); box-shadow: 0 4px 0 var(--error); }
/* Map and scenes: framed like a picture */
.mg-map, .mg-scene { box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.08); }
.mg-pin .dot { filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.mg-chip { background: linear-gradient(180deg, #FFFFFF, #FFE6C8); box-shadow: 0 3px 0 #C47A2E; }
.mg-chip[aria-pressed="true"] { background: linear-gradient(180deg, #FFC37F, #E8893A); box-shadow: 0 0 0 3px #FFFFFF, 0 0 16px rgba(242,166,90,.7); }
.arc-canvas { box-shadow: 0 18px 40px rgba(7,30,40,.35); }
@media (prefers-reduced-motion: reduce) { .mg-card, .mg-opt, .mg-tile, .mg-buff { transition: none; } .mg-card:hover:not(.done):not(.up) { transform: none; } }

/* ----- Seasonal game on the Games page ----- */
.g-featured { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: var(--ink);
  background: linear-gradient(120deg, #FFF3E6 0%, #FDE7D9 100%); border: 3px solid var(--ink); border-radius: 16px; padding: 14px 18px; margin: 0 0 14px;
  box-shadow: 0 6px 0 var(--ink); transition: transform .15s; }
.g-featured:hover { color: var(--ink); transform: translateY(-1px); }
.g-featured.f-sleigh-run, .g-featured.f-sky-show { background: linear-gradient(120deg, #0B2A36 0%, #1B3A5C 100%); color: var(--white); border-color: #F5C518; }
.g-featured.f-sleigh-run:hover, .g-featured.f-sky-show:hover { color: var(--white); }
.g-featured.f-leaf-sweep { background: linear-gradient(120deg, #FFE3C4 0%, #F7C59F 100%); }
.g-featured.f-snow-day { background: linear-gradient(120deg, #F4FAFD 0%, #D6EEF5 100%); }
.g-featured.f-bird-snap { background: linear-gradient(120deg, #E2F0D9 0%, #D6EEF5 100%); }
.gf-icon .gi { width: 64px; height: 64px; display: block; }
.gf-text { display: grid; gap: 2px; min-width: 0; }
.gf-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow); }
.f-sleigh-run .gf-eyebrow, .f-sky-show .gf-eyebrow { color: #F5C518; }
.gf-title { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.15; }
.gf-go { background: var(--accent); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 10px 18px; box-shadow: 0 3px 0 #B86E2A; }
@media (max-width: 560px) { .g-featured { grid-template-columns: auto 1fr; } .gf-go { grid-column: 1 / -1; justify-self: start; } .gf-icon .gi { width: 52px; height: 52px; } }

/* ----- Header effects: holidays, today's weather, the season. CSS only, a few cycles, then they stop. ----- */
.site-head.has-fx { position: relative; overflow: hidden; }
.site-head.has-fx > .wrap, .site-head.has-fx > .wx-top { position: relative; z-index: 1; }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fx i { position: absolute; top: -12px; display: block; opacity: 0; animation-fill-mode: both; animation-timing-function: linear; animation-iteration-count: 4; }
.fx i:nth-child(1) { left: 4%; animation-delay: 0s; } .fx i:nth-child(2) { left: 12%; animation-delay: 1.6s; }
.fx i:nth-child(3) { left: 21%; animation-delay: .7s; } .fx i:nth-child(4) { left: 29%; animation-delay: 2.4s; }
.fx i:nth-child(5) { left: 38%; animation-delay: 1.1s; } .fx i:nth-child(6) { left: 46%; animation-delay: 3s; }
.fx i:nth-child(7) { left: 55%; animation-delay: .3s; } .fx i:nth-child(8) { left: 63%; animation-delay: 2s; }
.fx i:nth-child(9) { left: 71%; animation-delay: 1.3s; } .fx i:nth-child(10) { left: 80%; animation-delay: 2.7s; }
.fx i:nth-child(11) { left: 88%; animation-delay: .9s; } .fx i:nth-child(12) { left: 96%; animation-delay: 1.9s; }
.fx i:nth-child(odd) { animation-duration: 6s; } .fx i:nth-child(even) { animation-duration: 7.5s; }
@keyframes fx-fall { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 10% { opacity: .9; } 85% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--dx, 20px), 220px) rotate(var(--rot, 0deg)); } }
.fx-snow i { width: 5px; height: 5px; border-radius: 50%; background: #FFFFFF; animation-name: fx-fall; }
.fx-snow i:nth-child(3n) { width: 3px; height: 3px; --dx: -14px; }
.fx-rain i { width: 1.5px; height: 14px; background: linear-gradient(#9CC9DE00, #9CC9DE); animation-name: fx-fall; --dx: -18px; --rot: 0deg; }
.fx-rain i:nth-child(odd) { animation-duration: 1.4s; } .fx-rain i:nth-child(even) { animation-duration: 1.8s; }
.fx-rain i { animation-iteration-count: 10; }
.fx-leaves i { width: 10px; height: 10px; border-radius: 0 70% 0 70%; background: #E07A2E; animation-name: fx-fall; --dx: 40px; --rot: 300deg; }
.fx-leaves i:nth-child(3n) { background: #C8553D; --dx: -30px; } .fx-leaves i:nth-child(3n+1) { background: #F5C518; }
.fx-blossoms i { width: 7px; height: 7px; border-radius: 70% 0 70% 0; background: #F7C6D9; animation-name: fx-fall; --dx: 36px; --rot: 200deg; }
.fx-fog i { top: auto; bottom: 0; left: -40%; width: 70%; height: 60%; border-radius: 50%; background: radial-gradient(#FFFFFF2E, #FFFFFF00 70%);
  animation: fx-drift 18s ease-in-out 2 both; }
.fx-fog i:nth-child(n+4) { display: none; }
.fx-fog i:nth-child(2) { animation-delay: -6s; bottom: 20%; } .fx-fog i:nth-child(3) { animation-delay: -12s; }
@keyframes fx-drift { 0% { opacity: 0; transform: translateX(0); } 20%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(160%); } }
/* December lights along the bottom of the header (they stay; only the twinkle stops) */
.fx-lights { top: auto; height: 12px; bottom: 0; display: flex; justify-content: space-around; border-top: 1px solid #FFFFFF26; }
.fx-lights i { position: static; width: 6px; height: 9px; border-radius: 50% 50% 45% 45%; opacity: .95; background: #F5C518;
  box-shadow: 0 0 6px currentColor; color: #F5C518; animation: fx-twinkle 1.6s ease-in-out 6 alternate both; }
.fx-lights i:nth-child(4n+1) { background: #C8553D; color: #C8553D; animation-delay: .4s; }
.fx-lights i:nth-child(4n+2) { background: #2FA36B; color: #2FA36B; animation-delay: .8s; }
.fx-lights i:nth-child(4n+3) { background: #7FD3FF; color: #7FD3FF; animation-delay: 1.2s; }
.fx-lights i:nth-child(n+13) { display: none; }
@media (min-width: 760px) { .fx-lights i:nth-child(n+13) { display: block; } }
@keyframes fx-twinkle { from { opacity: .45; } to { opacity: 1; } }
/* Canada Day and New Year: a few bursts */
.fx-fireworks i { top: auto; width: 4px; height: 4px; border-radius: 50%; color: #F5C518; background: currentColor;
  box-shadow: 0 -14px currentColor, 10px -10px currentColor, 14px 0 currentColor, 10px 10px currentColor, 0 14px currentColor, -10px 10px currentColor, -14px 0 currentColor, -10px -10px currentColor;
  animation: fx-burst 2.6s ease-out 4 both; }
.fx-fireworks i:nth-child(n+7) { display: none; }
.fx-fireworks i:nth-child(1) { top: 30%; } .fx-fireworks i:nth-child(2) { top: 55%; color: #C8553D; } .fx-fireworks i:nth-child(3) { top: 25%; color: #FFFFFF; }
.fx-fireworks i:nth-child(4) { top: 60%; color: #7FD3FF; } .fx-fireworks i:nth-child(5) { top: 35%; color: #C8553D; } .fx-fireworks i:nth-child(6) { top: 50%; }
.fx-fireworks i:nth-child(1) { left: 8%; } .fx-fireworks i:nth-child(3) { left: 34%; } .fx-fireworks i:nth-child(5) { left: 60%; }
@keyframes fx-burst { 0% { opacity: 0; transform: scale(.1); } 15% { opacity: 1; } 70% { opacity: .8; } 100% { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) { .fx:not(.fx-lights) { display: none; } .fx-lights i { animation: none; } }
@media print { .fx { display: none; } }
.gf-head { font-family: var(--display); font-size: 20px; margin: 0 0 10px; }
.gf-row { display: grid; gap: 14px; margin: 0 0 14px; }
.gf-row .g-featured { margin: 0; }
@media (min-width: 900px) {
  .gf-row.n2 { grid-template-columns: 1fr 1fr; } .gf-row.n3 { grid-template-columns: 1fr 1fr 1fr; }
  .gf-row.n2 .g-featured, .gf-row.n3 .g-featured { grid-template-columns: auto 1fr; align-content: start; }
  .gf-row.n2 .gf-go, .gf-row.n3 .gf-go { grid-column: 1 / -1; justify-self: start; }
}
.g-featured.f-crossword { background: linear-gradient(120deg, #FFFFFF 0%, #E8EFE3 100%); }
.deal-forms { display: block; font-weight: 400; font-size: 12px; }
.deal-ready { background: var(--wash); border-radius: 10px; padding: 12px 16px; margin: 6px 0 18px; }
.deal-ready h2 { font-size: 18px; margin: 0 0 6px; }
.deal-ready ul { margin: 0; padding-left: 20px; }
.next-step { border: 2px solid var(--accent); border-radius: 10px; padding: 10px 14px; margin: 6px 0 12px; }
.next-step p { margin: 2px 0; }
.next-label { font-size: 18px; font-weight: 700; }
.late-tag { color: #B4471B; }
.deal-all > summary { cursor: pointer; font-weight: 600; padding: 8px 0; min-height: 40px; }
.deal-qs { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; display: grid; gap: 6px; flex: 1 1 100%; }
.deal-q { display: flex; gap: 8px; align-items: center; min-height: 32px; }
.here-cards { display: grid; gap: 10px; margin: 14px 0; }
@media (min-width: 640px) { .here-cards { grid-template-columns: repeat(3, 1fr); } }
.here { border-radius: 10px; padding: 12px 14px; background: var(--wash); }
.here.now { background: #FFF1DC; border: 2px solid var(--accent); }
.here-k { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.here-v { margin: 4px 0 0; font-weight: 700; font-size: 17px; }
.gr-form { display: grid; gap: 12px; max-width: 640px; }
.gr-q { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.gr-q legend { font-weight: 700; padding: 0 4px; }
.gr-opt { display: flex; gap: 10px; align-items: center; min-height: 40px; }
.deal-ready h3 { font-size: 17px; margin: 0 0 6px; }
.agent-flag { border: 2px solid #B42318; color: #B42318; font-weight: 700; }
.agent-tag { display: inline-block; background: #B42318; color: #fff; border-radius: 4px; padding: 1px 6px; font-weight: 700; }
.choice-q { border: 1px solid #C4D3D9; border-radius: 8px; padding: 8px 12px; margin: 12px 0 4px; }
.choice-q legend { font-weight: 600; padding: 0 4px; }

/* ----- Card table (static/cards/) ----- */
.ct { position: relative; background: radial-gradient(ellipse at 50% 40%, #1E6B4A 0%, #14533A 60%, #0E3E2C 100%); color: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 10px 8px 12px; min-height: 520px; box-shadow: inset 0 0 40px rgba(0,0,0,.35); }
.ct-scores { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font: 600 13px 'Public Sans', system-ui, sans-serif; }
.ct-scores span { background: rgba(11,42,54,.55); border-radius: 999px; padding: 3px 10px; }
.ct-scores b { font-family: var(--display); } .ct-scores small { color: #F5C518; font-weight: 700; }
.ct-felt { position: relative; height: 300px; margin: 6px 0 2px; }
.ct-seat { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 700 12px 'Public Sans', system-ui, sans-serif; }
.ct-seat.on .ct-name, .ct-you.on .ct-name { color: #F5C518; }
.ct-tag { font-weight: 600; color: var(--on-ink); font-size: 11px; min-height: 1em; }
.ct-n { top: 0; left: 50%; transform: translateX(-50%); }
.ct-w { left: 0; top: 50%; transform: translateY(-50%); } .ct-e { right: 0; top: 50%; transform: translateY(-50%); }
.ct-cards { display: flex; }
.ct-n .ct-cards .cd { margin-left: -18px; } .ct-n .ct-cards .cd:first-child { margin-left: 0; }
.ct-w .ct-cards, .ct-e .ct-cards { flex-direction: column; } .ct-w .ct-cards .cd, .ct-e .ct-cards .cd { margin-top: -30px; } .ct-w .ct-cards .cd:first-child, .ct-e .ct-cards .cd:first-child { margin-top: 0; }
.ct-mid { position: absolute; left: 50%; top: 52%; width: 170px; height: 190px; transform: translate(-50%, -50%); }
.ct-slot { position: absolute; width: 50px; height: 70px; }
.ct-slot-s { left: 60px; bottom: 0; } .ct-slot-n { left: 60px; top: 0; } .ct-slot-w { left: 0; top: 60px; } .ct-slot-e { right: 0; top: 60px; }
.ct-slot.win .cd { box-shadow: 0 0 0 3px #F5C518, 0 6px 16px rgba(0,0,0,.4); }
.ct-info { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 12px 'Public Sans', system-ui, sans-serif; text-align: center; color: var(--on-ink); width: 70px; }
.ct-info .cd { margin: 0 auto 4px; }
.ct-you { display: flex; justify-content: center; gap: 10px; align-items: center; font: 700 13px 'Public Sans', system-ui, sans-serif; }
.ct-hand { display: flex; justify-content: center; flex-wrap: nowrap; padding: 14px 4px 4px; min-height: 96px; }
.ct-hand .cd { margin-left: -14px; transition: transform .12s ease; }
.ct-hand .cd:first-child { margin-left: 0; }
.ct-hand.many .cd { margin-left: -22px; }
.ct-hand .cd.ok { transform: translateY(-10px); cursor: pointer; }
.ct-hand .cd.ok:hover, .ct-hand .cd.ok:focus-visible { transform: translateY(-16px); }
.ct-hand .cd:disabled { filter: brightness(.78); cursor: default; }
.ct-hand .cd.chosen { transform: translateY(-22px); box-shadow: 0 0 0 3px #F5C518, 0 6px 14px rgba(0,0,0,.35); }
.ct-bar { text-align: center; }
.ct-msg { min-height: 2.6em; margin: 6px 4px; font-size: 14px; color: var(--on-ink); } .ct-msg strong { color: var(--white); }
.ct-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ct-btns .btn.ghost { background: rgba(255,255,255,.14); color: var(--white); border: 0; }
.ct-speed { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--soft); font: 600 12px 'Public Sans', system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
.ct-panel { position: absolute; inset: 0; background: rgba(11,42,54,.92); border-radius: 14px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; z-index: 3; }
.ct-panel p { margin: 0 0 10px; max-width: 30em; color: var(--on-ink); } .ct-panel strong { color: var(--white); }
.ct-ptitle { font: 800 26px var(--display); color: var(--white) !important; }
/* the cards themselves */
.cd { position: relative; width: 50px; height: 70px; flex: 0 0 auto; border-radius: 7px; border: 1px solid rgba(11,42,54,.35); background: linear-gradient(160deg, #FFFFFF 0%, #F1F4F5 100%); box-shadow: 0 2px 5px rgba(0,0,0,.3); padding: 0; font: 800 15px var(--display); color: #1B1F21; }
.cd.red { color: #C0262D; }
.cd-c { position: absolute; top: 3px; left: 4px; display: flex; flex-direction: column; align-items: center; line-height: .95; }
.cd-c i { font-style: normal; font-size: 12px; }
.cd-c2 { top: auto; left: auto; bottom: 3px; right: 4px; transform: rotate(180deg); }
.cd-pip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 26px; }
.cd-art { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 30px; }
.cd-art svg { width: 30px; height: 24px; display: block; }
.cd.back { background: repeating-linear-gradient(45deg, #14566A 0 6px, #0B2A36 6px 12px); border: 2px solid #FFFFFF; }
.cd.back::after { content: ""; position: absolute; inset: 22% 22%; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M6 18l14-12 14 12h-5l-9-7.5-9 7.5z' fill='%23F2A65A'/%3E%3Crect x='13' y='18' width='14' height='9' fill='%23FFFFFF'/%3E%3C/svg%3E"); }
.cd.sm { width: 30px; height: 42px; border-radius: 5px; } .cd.sm.back { border-width: 1.5px; }
.ct-slot .cd { animation: cd-in .22s ease-out; }
@keyframes cd-in { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ct-slot .cd { animation: none; } }
@media (max-width: 420px) { .cd { width: 44px; height: 62px; font-size: 14px; } .ct-hand .cd { margin-left: -16px; } .ct-hand.many .cd { margin-left: -24px; } .cd-pip { font-size: 22px; } .ct-slot { width: 44px; height: 62px; } }
.ct-trump { display: block; font-size: 11px; } .ct-trump b { font-size: 30px; line-height: 1; }
/* Solitaire */
.ct.sol { padding: 10px 6px 12px; }
.sol-top, .sol-tab { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 8px; }
.sol-slot { position: relative; height: 72px; border: 2px dashed rgba(255,255,255,.25); border-radius: 8px; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); }
.sol-slot .cd { position: absolute; inset: -2px; width: auto; height: auto; }
.sol-redo { font-size: 26px; } .sol-suit { font-size: 24px; } .sol-suit.red { color: rgba(255,140,140,.55); }
.sol-gap { display: block; }
.sol-col { position: relative; min-height: 80px; }
.sol-col .cd { position: absolute; left: 0; right: 0; width: auto; height: 70px; }
.sol-col .cd.back { cursor: default; }
.sol-col button.cd { cursor: pointer; }
.sol-col .cd .cd-pip { font-size: 20px; top: 62%; } .sol-col .cd .cd-art { top: 62%; }
.sol-empty { height: 72px; width: 100%; }
@media (max-width: 420px) { .sol-slot, .sol-empty { height: 60px; } .sol-col .cd { height: 58px; font-size: 12px; } .sol-col .cd .cd-c i { font-size: 10px; } .sol-col .cd .cd-pip { font-size: 16px; } .sol-col .cd .cd-art svg { width: 22px; height: 18px; } }
.ct-crazy_eights .ct-info { width: 90px; } .ct-crazy_eights .ct-info .cd { animation: cd-in .22s ease-out; }
/* Dominoes */
.dm { display: inline-flex; align-items: center; gap: 0; width: 46px; height: 24px; padding: 2px; border-radius: 5px; background: linear-gradient(160deg, #FFFFFF, #ECEFF0); border: 1px solid rgba(11,42,54,.4); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.dm.vert { flex-direction: column; width: 24px; height: 46px; }
.dm-h { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 19px; height: 19px; padding: 2px; }
.dm-h i { display: block; width: 4px; height: 4px; margin: auto; border-radius: 50%; background: #0B2A36; } .dm-h b { display: block; }
.dm-line { flex: 0 0 1px; align-self: stretch; background: rgba(11,42,54,.45); }
.dm.vert .dm-line { flex-basis: 1px; height: 1px; width: auto; }
.dm.back { background: repeating-linear-gradient(45deg, #14566A 0 5px, #0B2A36 5px 10px); border: 1.5px solid #FFFFFF; width: 30px; height: 15px; padding: 0; }
.dm.back.vert { width: 15px; height: 30px; }
.ct-n .ct-cards .dm { margin-left: 2px; } .ct-w .ct-cards .dm, .ct-e .ct-cards .dm { margin-top: -14px; } .ct-w .ct-cards .dm:first-child, .ct-e .ct-cards .dm:first-child { margin-top: 0; }
.dm-felt .ct-mid { width: calc(100% - 90px); height: 200px; top: 54%; }
.dm-chain { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 2px; height: 100%; overflow-y: auto; }
.dm-chain .dm.new { animation: cd-in .2s ease-out; }
.dm-chain.snake { display: block; position: relative; overflow: hidden; } .dm-snake { position: absolute; transform-origin: 0 0; }
.dm-snake .dm { position: absolute; margin: 0; } .dm.rev { flex-direction: row-reverse; } .dm.vert.rev { flex-direction: column-reverse; } .dm-chain .dm.end { box-shadow: 0 0 0 2px #F5C518, 0 2px 4px rgba(0,0,0,.3); }
.ct-hand .dm { width: 30px; height: 60px; margin: 0 2px; cursor: default; } .ct-hand .dm .dm-h { width: 25px; height: 25px; }
.ct-hand .dm.ok { transform: translateY(-10px); cursor: pointer; } .ct-hand .dm:disabled { filter: brightness(.75); }
/* All Fours signs */
.af-signs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; font: 600 12px 'Public Sans', system-ui, sans-serif; color: var(--on-ink); }
.af-sign { background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 12px; font: 700 12px 'Public Sans', system-ui, sans-serif; cursor: pointer; }
.af-sign:hover, .af-sign:focus-visible { background: #F2A65A; color: var(--ink); }
.af-code { display: flex; flex-direction: column; gap: 2px; margin: 10px auto 0; max-width: 340px; padding: 8px 12px; border-radius: 10px; background: rgba(11,42,54,.5); font: 600 12px 'Public Sans', system-ui, sans-serif; color: var(--on-ink); }
.af-code strong { color: var(--white); }
/* trump card sits in the top-left corner so it never covers the trick */
.ct-all_fours .ct-info, .ct-euchre .ct-info { left: -78px; top: -42px; transform: none; width: 64px; }
.ct-all_fours .ct-info .cd, .ct-euchre .ct-info .cd { width: 36px; height: 50px; font-size: 12px; }
.ct-all_fours .ct-info .cd-art svg, .ct-euchre .ct-info .cd-art svg { width: 22px; height: 18px; }
.ct-all_fours .ct-info .cd-pip { font-size: 18px; }
@media (max-width: 420px) { .ct-all_fours .ct-info, .ct-euchre .ct-info { left: -64px; } }
/* Card rooms: a scene behind the table, and the table itself (an oval on the felt) */
.ct[class*="room-"] { background-color: #1B1F21; background-size: cover; background-position: center; border-color: #0B0F12; box-shadow: inset 0 0 80px rgba(0,0,0,.45), 0 10px 30px rgba(11,42,54,.25); }
.ct.room-patio { background-image: linear-gradient(rgba(10,6,20,.15), rgba(10,6,20,.35)), url("rooms/patio.svg"); }
.ct.room-porch { background-image: linear-gradient(rgba(4,10,20,.1), rgba(4,10,20,.35)), url("rooms/porch.svg"); }
.ct.room-recroom { background-image: linear-gradient(rgba(20,10,4,.1), rgba(20,10,4,.35)), url("rooms/recroom.svg"); }
.ct.room-cafe { background-image: linear-gradient(rgba(6,10,14,.1), rgba(6,10,14,.35)), url("rooms/cafe.svg"); }
.ct[class*="room-"] .ct-felt { margin: 10px 0 4px; }
.ct[class*="room-"] .ct-felt::before { content: ""; position: absolute; inset: 22px 6% 6px; border-radius: 50% / 46%; background: radial-gradient(ellipse at 50% 38%, var(--felt-hi, #2A8A5E) 0%, var(--felt, #17603F) 62%, var(--felt-lo, #0E4029) 100%); box-shadow: 0 0 0 10px var(--rim, #5A3A22), 0 0 0 13px var(--rim-lo, #2E1C10), 0 18px 34px rgba(0,0,0,.55), inset 0 0 40px rgba(0,0,0,.35); }
.ct[class*="room-"] .ct-felt::after { content: ""; position: absolute; inset: 22px 6% 6px; border-radius: 50% / 46%; background: radial-gradient(ellipse at 40% 20%, rgba(255,255,255,.12), transparent 55%); pointer-events: none; }
.ct.room-patio { --felt: #1E5D57; --felt-hi: #2F8077; --felt-lo: #123C38; --rim: #8A5A33; --rim-lo: #4D2F18; }
.ct.room-porch { --felt: #24486B; --felt-hi: #346492; --felt-lo: #152D45; --rim: #D8DEE2; --rim-lo: #7E8C96; }
.ct.room-recroom { --felt: #17603F; --felt-hi: #2A8A5E; --felt-lo: #0E4029; --rim: #6A4024; --rim-lo: #351E0F; }
.ct.room-cafe { --felt: #7A2E32; --felt-hi: #9C4146; --felt-lo: #4C1A1D; --rim: #2A2522; --rim-lo: #0F0D0C; }
.ct[class*="room-"] .ct-seat, .ct[class*="room-"] .ct-mid { z-index: 1; }
.ct[class*="room-"] .ct-name { background: rgba(11,15,18,.72); padding: 2px 9px; border-radius: 999px; }
.ct[class*="room-"] .ct-seat.on .ct-name, .ct[class*="room-"] .ct-you.on .ct-name { background: #F5C518; color: #1B1F21; box-shadow: 0 0 14px rgba(245,197,24,.7); }
.ct[class*="room-"] .ct-scores span, .ct[class*="room-"] .ct-msg, .ct[class*="room-"] .ct-bar { text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.ct[class*="room-"] .ct-bar, .ct[class*="room-"] .tb-say { background: rgba(11,15,18,.6); border-radius: 12px; padding: 6px 10px; margin: 6px auto; max-width: 560px; }
.ct[class*="room-"] .ct-hand { background: linear-gradient(transparent, rgba(0,0,0,.35)); border-radius: 0 0 12px 12px; }
/* Cards: a little more weight and shine */
.ct[class*="room-"] .cd { background: linear-gradient(160deg, #FFFFFF 0%, #F6F3EC 70%, #ECE6D9 100%); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 3px 8px rgba(0,0,0,.45); border-color: rgba(0,0,0,.25); }
.ct[class*="room-"] .cd.back { background: radial-gradient(circle at 50% 50%, rgba(242,166,90,.25), transparent 60%), repeating-linear-gradient(45deg, #14566A 0 5px, #0F4556 5px 10px), #0B2A36; border: 2px solid #F8F4EA; }
.ct[class*="room-"] .ct-hand .cd.ok { box-shadow: 0 0 0 2px rgba(245,197,24,.85), 0 8px 16px rgba(0,0,0,.45); }
.ct[class*="room-"] .ct-slot .cd { animation: cd-toss .32s cubic-bezier(.2,.8,.3,1.1); }
.ct[class*="room-"] .ct-slot .cd.in-s { --from: translate(0, 90px) rotate(-8deg); } .ct[class*="room-"] .ct-slot .cd.in-n { --from: translate(0, -90px) rotate(8deg); }
.ct[class*="room-"] .ct-slot .cd.in-w { --from: translate(-90px, 0) rotate(-12deg); } .ct[class*="room-"] .ct-slot .cd.in-e { --from: translate(90px, 0) rotate(12deg); }
@keyframes cd-toss { from { opacity: .2; transform: var(--from, translateY(20px)) scale(.85); } to { opacity: 1; transform: none; } }
.ct[class*="room-"] .ct-slot:nth-child(1) .cd { rotate: -3deg; } .ct[class*="room-"] .ct-slot:nth-child(2) .cd { rotate: 4deg; } .ct[class*="room-"] .ct-slot:nth-child(3) .cd { rotate: 2deg; } .ct[class*="room-"] .ct-slot:nth-child(4) .cd { rotate: -5deg; }
.ct-mid.done .ct-slot .cd { opacity: .75; transition: opacity .4s; }
@media (prefers-reduced-motion: reduce) { .ct[class*="room-"] .ct-slot .cd { animation: none; } }
/* Room and level picker before the deal */
.ct-pick { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 12px 6px; }
.ct-pick-h { font: 700 13px 'Public Sans', system-ui, sans-serif; color: var(--white); margin: 0; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.ct-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 8px; }
.ct-room-btn, .tb-room { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 82px; padding: 6px 8px; border-radius: 10px; border: 2px solid rgba(255,255,255,.35); background-size: cover; background-position: center; color: var(--white); font: 700 12px 'Public Sans', system-ui, sans-serif; text-align: left; cursor: pointer; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.ct-room-btn[aria-pressed="true"], .tb-room:has(input:checked) { border-color: #F5C518; box-shadow: 0 0 0 2px #F5C518; }
.ct-room-btn.r-patio, .tb-room-patio { background-image: linear-gradient(transparent 40%, rgba(0,0,0,.6)), url("rooms/patio.svg"); }
.ct-room-btn.r-porch, .tb-room-porch { background-image: linear-gradient(transparent 40%, rgba(0,0,0,.6)), url("rooms/porch.svg"); }
.ct-room-btn.r-recroom, .tb-room-recroom { background-image: linear-gradient(transparent 40%, rgba(0,0,0,.6)), url("rooms/recroom.svg"); }
.ct-room-btn.r-cafe, .tb-room-cafe { background-image: linear-gradient(transparent 40%, rgba(0,0,0,.6)), url("rooms/cafe.svg"); }
.ct-levels { display: flex; gap: 6px; } .ct-levels button { background: rgba(11,15,18,.6); color: var(--white); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 14px; min-height: 44px; font: 700 12px 'Public Sans', system-ui, sans-serif; cursor: pointer; }
.ct-levels button[aria-pressed="true"] { background: #F5C518; color: #1B1F21; border-color: #F5C518; }
/* Play with friends */
.tb-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 10px 0; }
.tb-rooms legend { font-weight: 700; margin-bottom: 6px; }
.tb-games { display: grid; gap: 6px; border: 0; padding: 0; margin: 10px 0; }
.tb-games legend { font-weight: 700; margin-bottom: 6px; }
.tb-game { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid rgba(11,42,54,.2); border-radius: 10px; cursor: pointer; font-weight: 400; }
.tb-game:has(input:checked) { border-color: #14566A; box-shadow: 0 0 0 2px #14566A inset; }
.tb-game input { margin-top: 4px; }
.ct-hand .dm.chosen { transform: translateY(-22px); box-shadow: 0 0 0 3px #F5C518, 0 6px 14px rgba(0,0,0,.35); }
.tb-room input { position: absolute; opacity: 0; } .tb-room:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.tb-new { max-width: 560px; }
.tb-list li { margin: 4px 0; }
.tb-lobby { background: rgba(11,15,18,.78); border-radius: 14px; padding: 16px; margin: 12px auto; max-width: 460px; color: var(--white); display: flex; flex-direction: column; gap: 8px; }
.tb-lobby h2 { margin: 0; font-size: 22px; color: var(--white); } .tb-lobby label { font: 600 13px 'Public Sans', system-ui, sans-serif; }
.tb-lobby input, .tb-lobby select, .tb-host select, .tb-report select { padding: 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.4); font: 500 14px 'Public Sans', system-ui, sans-serif; }
.tb-seats { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 6px; }
.tb-seat-row { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border-radius: 10px; padding: 6px 10px; }
.tb-team { font: 700 11px 'Public Sans', system-ui, sans-serif; color: #F2A65A; min-width: 52px; }
.tb-seat-row .btn { margin-left: auto; padding: 6px 12px; }
.tb-share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .tb-share p { width: 100%; margin: 0; } .tb-share input { flex: 1 1 180px; }
.tb-host { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-note { color: var(--white); text-align: center; margin: 30px 0 12px; }
.tb-say { color: var(--white); margin: 6px 0; font: 600 14px 'Public Sans', system-ui, sans-serif; }
.tb-tools { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8px; }
.tb-react { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tb-rx { background: rgba(11,15,18,.6); color: var(--white); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 10px; font: 600 12px 'Public Sans', system-ui, sans-serif; cursor: pointer; }
.tb-rx:hover, .tb-rx:focus-visible { background: #F2A65A; color: #1B1F21; }
.tb-safety { display: flex; gap: 16px; } .tb-link { background: none; border: 0; color: var(--on-ink); text-decoration: underline; font: 600 12px 'Public Sans', system-ui, sans-serif; cursor: pointer; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.tb-report { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; background: rgba(11,15,18,.78); padding: 10px; border-radius: 10px; }
.tb-log { list-style: none; margin: 10px auto 0; padding: 8px 12px; max-width: 560px; max-height: 150px; overflow-y: auto; background: rgba(11,15,18,.6); border-radius: 10px; font: 500 12px 'Public Sans', system-ui, sans-serif; color: var(--on-ink); display: flex; flex-direction: column-reverse; }
.tb-log li { padding: 2px 0; } .tb-log li.mine { color: #F5C518; } .tb-log li.new { animation: tb-new 1.2s ease-out; }
@keyframes tb-new { from { background: rgba(245,197,24,.3); } to { background: transparent; } }
.tb-level { color: #F2A65A; }
.tb .af-code { display: block; } .tb .af-code summary { cursor: pointer; font-weight: 700; color: var(--white); } .tb .af-code span { display: block; }
.ct-pick-panel { position: absolute; inset: 44px 0 auto; max-height: calc(100% - 150px); overflow-y: auto; z-index: 4; background: rgba(11,15,18,.82); border-radius: 14px; margin: 0 8px; }
/* Card table characters (static/cards/avatar.js) */
.av { width: 54px; height: 54px; display: block; filter: drop-shadow(0 3px 5px rgba(0,0,0,.45)); }
.av-bg { fill: rgba(255,255,255,.18); stroke: rgba(255,255,255,.7); stroke-width: 1.5; }
.ct-seat.on .av-bg, .ct-you.on .av-bg { fill: rgba(245,197,24,.4); stroke: #F5C518; stroke-width: 2.5; }
.ct-av { display: flex; justify-content: center; }
.ct-you .ct-av .av { width: 44px; height: 44px; }
.av * { transform-box: fill-box; transform-origin: center; }
.av.g-wink .av-eye-l { animation: av-wink 2.4s ease-in-out; }
.av.g-brow .av-brow-r { animation: av-brow 2.4s ease-in-out; }
.av.g-lip .av-bite { animation: av-show 2.4s ease-in-out; } .av.g-lip .av-mouth { animation: av-flat 2.4s ease-in-out; }
.av.g-ear .av-ear-r { animation: av-tug 2.4s ease-in-out; }
.av.g-cheeks .av-cheeks { animation: av-puff 2.4s ease-in-out; }
.av.g-eye .av-eye-l { animation: av-wink 2.4s ease-in-out; }
.av.g-shrug .av-body { animation: av-shrug 2.4s ease-in-out; }
.av.g-tongue .av-tongue { animation: av-show 2.4s ease-in-out; }
.av.g-up .av-eye-l, .av.g-up .av-eye-r { animation: av-up 2.4s ease-in-out; } .av.g-up .av-brow-l, .av.g-up .av-brow-r { animation: av-up 2.4s ease-in-out; }
.av.g-smile .av-mouth { animation: av-smile 2.4s ease-in-out; }
.av.g-blink .av-eye-l, .av.g-blink .av-eye-r { animation: av-blink 2.4s ease-in-out; }
.av.g-closed .av-eye-l, .av.g-closed .av-eye-r { animation: av-closed 2.4s ease-in-out; }
.av.g-table .av-hand { animation: av-table 2.4s ease-in-out; }
.av-arm { opacity: 0; }
.av[class*="g-arm"] .av-arm { animation: av-show 2.4s ease-in-out; }
.av[class*="g-arm"] .av-point { animation: av-point 2.4s ease-in-out; }
.av.g-arm3 { --pt: 0px; } .av.g-arm4 { --pt: 6px; } .av.g-arm5 { --pt: 11px; } .av.g-arm6 { --pt: 16px; }
.av.g-arm7 { --pt: 21px; } .av.g-arm8 { --pt: 26px; } .av.g-arm9 { --pt: 32px; }
.av.g-arm10 .av-point { animation-name: av-cover; }
@keyframes av-wink { 0%, 100% { transform: none; } 15%, 35%, 60%, 80% { transform: scaleY(.12); } 25%, 70% { transform: none; } }
@keyframes av-brow { 0%, 100% { transform: none; } 15%, 80% { transform: translateY(-3px) rotate(-8deg); } }
@keyframes av-show { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }
@keyframes av-flat { 0%, 100% { transform: none; } 15%, 80% { transform: scaleY(.3); } }
.av-hand { opacity: 0; }
@keyframes av-nose { 0%, 100% { opacity: 0; transform: none; } 10% { opacity: 1; } 20%, 75% { opacity: 1; transform: translate(0, -30px); } 90% { opacity: 1; } }
@keyframes av-ear { 0%, 100% { opacity: 0; transform: none; } 10% { opacity: 1; } 20%, 75% { opacity: 1; transform: translate(14px, -30px) rotate(-20deg); } 90% { opacity: 1; } }
@keyframes av-tug { 0%, 100% { transform: none; } 30%, 50% { transform: translateX(1.5px) scaleY(1.15); } }
@keyframes av-puff { 0%, 100% { transform: none; } 15%, 80% { transform: scale(1.6); } }
@keyframes av-chin { 0%, 100% { opacity: 0; transform: none; } 10% { opacity: 1; } 20%, 75% { opacity: 1; transform: translate(2px, -15px); } 35%, 55% { opacity: 1; transform: translate(-1px, -16px); } 90% { opacity: 1; } }
@keyframes av-eye { 0%, 100% { opacity: 0; transform: none; } 10% { opacity: 1; } 20%, 75% { opacity: 1; transform: translate(-7px, -26px); } 40%, 60% { opacity: 1; transform: translate(-5px, -27px); } 90% { opacity: 1; } }
@keyframes av-tap { 0%, 100% { opacity: 0; transform: none; } 10% { opacity: 1; } 20%, 40%, 60%, 75% { opacity: 1; transform: translate(-12px, -20px); } 30%, 50% { opacity: 1; transform: translate(-10px, -18px); } 90% { opacity: 1; } }
@keyframes av-shrug { 0%, 100% { transform: none; } 20%, 70% { transform: translateY(-4px) scaleX(1.06); } }
@keyframes av-up { 0%, 100% { transform: none; } 15%, 80% { transform: translateY(-2px); } }
@keyframes av-down { 0%, 100% { transform: none; } 15%, 80% { transform: translateY(2px); } }
.av.g-down .av-eye-l, .av.g-down .av-eye-r, .av.g-down .av-brow-l, .av.g-down .av-brow-r { animation: av-down 2.4s ease-in-out; }
@keyframes av-smile { 0%, 100% { transform: none; } 15%, 80% { transform: scale(1.35, 1.25); } }
@keyframes av-blink { 0%, 100%, 30%, 55% { transform: none; } 20%, 45% { transform: scaleY(.12); } }
@keyframes av-closed { 0%, 100% { transform: none; } 15%, 80% { transform: scaleY(.12); } }
@keyframes av-table { 0%, 100% { opacity: 0; transform: none; } 10%, 30%, 50%, 70% { opacity: 1; transform: translateY(-5px); } 20%, 40%, 60%, 80% { opacity: 1; transform: none; } }
@keyframes av-point { 0% { transform: translate(var(--pt, 0px), -8px); } 20%, 85% { transform: translate(var(--pt, 0px), 0); } 100% { transform: translate(var(--pt, 0px), -8px); } }
@keyframes av-cover { 0% { transform: translate(37px, -6px); } 20%, 85% { transform: translate(37px, 6px) scale(1.9, 1.2); } 100% { transform: translate(37px, -6px); } }

.av-prev { background: radial-gradient(circle, #2A8A5E, #14533A); border-radius: 50%; padding: 6px; }
.av-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(0,0,0,.25); cursor: pointer; padding: 0; }
.av-sw[aria-pressed="true"] { outline: 3px solid #F2A65A; outline-offset: 1px; }
.av-chip { border: 1px solid rgba(0,0,0,.25); background: #FFFFFF; color: #1B1F21; border-radius: 999px; padding: 4px 10px; font: 600 12px 'Public Sans', system-ui, sans-serif; cursor: pointer; }
.av-chip[aria-pressed="true"] { background: #F2A65A; border-color: #F2A65A; }
.ct .av-build { background: rgba(11,15,18,.82); border-radius: 12px; padding: 10px; color: var(--white); }

.ct-me-btn { display: flex; align-items: center; gap: 6px; background: rgba(11,15,18,.6); color: var(--white); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 3px 12px 3px 3px; font: 700 12px 'Public Sans', system-ui, sans-serif; cursor: pointer; }
.ct-me-btn .av { width: 30px; height: 30px; filter: none; }
.ct .ct-info.ct-info-corner, .ct-all_fours .ct-info.ct-info-corner, .ct-euchre .ct-info.ct-info-corner { left: 4px; top: 0; transform: none; width: 64px; z-index: 1; background: rgba(11,15,18,.6); border-radius: 10px; padding: 5px 4px; }
.ct-info-corner:empty { display: none; }
.ct[class*="room-"] .ct-felt { height: 380px; }
.ct .ct-info.ct-info-corner, .ct-all_fours .ct-info.ct-info-corner, .ct-euchre .ct-info.ct-info-corner { top: auto; bottom: 0; }
.ct[class*="room-"] .ct-mid { top: 54%; }
/* friends tables: Dominoes, Spades, Euchre, Hearts */
.tb .ct-info-corner span { display: block; }
.tb .dm-felt .ct-mid { width: calc(100% - 160px); height: 210px; top: 54%; }
.tb .dm-chain { gap: 2px; overflow-y: auto; }
.tb .dm-chain .dm { width: 32px; height: 17px; padding: 1px; border-radius: 3px; }
.tb .dm-chain .dm.vert { width: 17px; height: 32px; }
.tb .dm-chain .dm-h { width: 14px; height: 14px; padding: 1px; }
.tb .dm-chain .dm-h i { width: 3px; height: 3px; }
@media (max-width: 480px) { .tb .dm-felt .ct-mid { width: calc(100% - 120px); } }
.ct-speed { min-height: 44px; padding: 10px 16px; }
/* character builder: big preview, tabs, choices in a grid */
.av-build { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; }
.av-side { display: flex; flex-direction: column; align-items: center; gap: 10px; position: sticky; top: 0; }
.av-prev .av { width: 150px; height: 150px; }
.av-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.av-rand { background: #0B2A36; color: #FFFFFF; min-height: 36px; }
.av-done { width: 100%; }
.av-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid rgba(127,127,127,.35); margin-bottom: 10px; }
.av-tab { border: 0; background: transparent; color: inherit; font: 700 14px 'Public Sans', system-ui, sans-serif; padding: 8px 12px; min-height: 40px; border-radius: 8px 8px 0 0; cursor: pointer; opacity: .75; }
.av-tab[aria-selected="true"] { opacity: 1; background: #F2A65A; color: #1B1F21; }
.av-opts { display: flex; flex-direction: column; gap: 6px; }
.av-lab { font: 700 13px 'Public Sans', system-ui, sans-serif; margin-top: 4px; }
.av-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.av-row-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.av-chip { min-height: 36px; font-size: 13px; }
.av-sw { width: 34px; height: 34px; }
.av-panel { position: absolute; inset: 0; z-index: 8; overflow-y: auto; background: rgba(11,15,18,.94); border-radius: inherit; padding: 16px; color: var(--white); }
.ct .av-panel .av-build { background: none; padding: 0; }
.ct.av-editing .ct-pick-panel, .ct.av-editing .ct-bar { visibility: hidden; }
@media (max-width: 560px) {
  .av-build { grid-template-columns: 1fr; }
  .av-side { position: static; flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .av-prev .av { width: 110px; height: 110px; }
  .av-acts { flex-direction: column; }
  .av-row { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
}
.av-tab { padding: 8px 9px; font-size: 13px; }
.av-panel .av-done { background: #F2A65A; color: #1B1F21; border-color: #F2A65A; }
/* games hub: Play with friends lists every table game */
.g-friends { border: 3px solid var(--ink); border-radius: 16px; padding: 16px 18px; background: linear-gradient(120deg, #E2F0D9 0%, #F4FAFD 100%); color: var(--ink); box-shadow: 0 6px 0 var(--ink); margin: 0 0 14px; }
.g-friends p { margin: 0 0 6px; }
.g-friends .gf-title { display: block; }
.g-friends .gf-desc a { color: #14566A; font-weight: 700; }
.g-friends.is-off { background: linear-gradient(120deg, #FFF3E6 0%, #F4FAFD 100%); }
.g-friends.is-off .gf-eyebrow { color: #8A3B1E; }
.gfr-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gfr-game { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; min-height: 56px; padding: 10px 12px; border-radius: 12px; background: #FFFFFF; border: 2px solid rgba(11,42,54,.2); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 16px; }
a.gfr-game:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.gfr-icon { grid-row: 1 / span 2; }
.gfr-icon .gi { width: 44px; height: 44px; }
.gfr-go { font-size: 13px; font-weight: 700; color: #14566A; }
/* today's challenge as a slim strip in the arcade header */
.arcade-hub .g-ch-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; max-width: 920px; margin: 0 auto 10px; padding: 10px 12px 10px 18px; border-radius: 999px; border-width: 2px; box-shadow: 0 4px 0 #02101A; text-align: left; }
.g-ch-strip .g-ch-eyebrow, .g-ch-strip .g-ch-title, .g-ch-strip .g-ch-goal, .g-ch-strip .g-ch-done { grid-column: auto; }
.g-ch-strip .g-ch-title { font-size: 18px; }
.g-ch-strip .g-ch-goal { flex: 1 1 160px; }
.g-ch-strip .g-ch-go { grid-row: auto; margin-left: auto; padding: 8px 16px; }
.g-ch-strip::after { width: 80px; height: 80px; bottom: -46px; right: -22px; opacity: .12; z-index: 0; }
.g-ch-strip > * { position: relative; z-index: 1; }
.arcade-hub .ah-head .g-stats { margin: 0 0 22px; }
/* the This week crossword: Play sits under the text, like the This season cards */
.gf-row.n1 .g-featured { grid-template-columns: auto 1fr; }
.gf-row.n1 .gf-go { grid-column: 2; justify-self: start; }
@media (max-width: 560px) {
  .arcade-hub .g-ch-strip { border-radius: 16px; padding: 10px 12px; }
  .g-ch-strip .g-ch-go { margin-left: 0; }
  .gf-row.n1 .gf-go { grid-column: 1 / -1; }
  /* two columns of compact tiles, so the page isn't a mile long */
  .ah-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ah-tile { padding: 10px 10px 12px; border-radius: 14px; box-shadow: 0 4px 0 #061820; gap: 4px; }
  .ah-tile::before { height: 44px; }
  .ah-icon { width: 52px; height: 52px; border-radius: 14px; }
  .ah-icon .gi { width: 38px; height: 38px; }
  .ah-name { font-size: 16px; }
  .ah-kind { font-size: 10px; }
  .ah-desc { display: none; }
  .ah-play { padding: 5px 12px; font-size: 14px; }
  .ah-tile .g-best { font-size: 11px; }
}
/* Phone: the compact markets box shows the first 4 cards; the rest are on the mortgage page. */
@media (max-width: 600px) { .mk-compact .mk-list > li:nth-child(n+5) { display: none; } }
/* Keyboard focus on chart points shows a ring (the hover tip still shows too). */
.pchart .pt:focus-visible .hit, .trend .pt:focus-visible .hit { fill: rgba(11,42,54,.06); stroke: var(--ink); stroke-width: 2; }
/* card table lobby: light text on the dark panel (names, notes, host line) */
.tb-lobby strong, .tb-lobby p, .tb-lobby .small, .tb-lobby label { color: var(--white); }
.tb-lobby .muted, .tb-lobby p.muted { color: rgba(255,255,255,.82); }
.tb-lobby input[type="text"] { color: #1B1F21; background: #FFFFFF; }
/* All Fours sign code form and sign bar groups */
.tb-codes h3 { margin: 14px 0 4px; font-size: 15px; color: #F2A65A; }
.tb-code-row { display: grid; grid-template-columns: 1fr; gap: 2px; margin-bottom: 6px; }
@media (min-width: 640px) { .tb-code-row { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 10px; } }
.tb-code-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .tb-code-acts .btn { flex: 1 1 160px; }
.af-signs { flex-direction: column; align-items: center; } .af-sign-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.af-sign.on { background: #F2A65A; color: var(--ink); border-color: #F2A65A; }
.af-send { background: #F5C518; color: var(--ink); border-color: #F5C518; } .af-send:disabled { opacity: .5; cursor: default; }
.af-signs > summary.af-signs-head { cursor: pointer; list-style: none; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 7px 14px; font: 700 13px 'Public Sans', system-ui, sans-serif; color: var(--white); }
.af-signs > summary.af-signs-head::-webkit-details-marker { display: none; }
.af-signs > summary.af-signs-head::after { content: " \25BE"; } .af-signs[open] > summary.af-signs-head::after { content: " \25B4"; }
.af-signs[open] { gap: 6px; }
/* A big view of whoever is signing, so the sign is easy to see */
.tb-spot { position: fixed; left: 50%; top: 8px; transform: translate(-50%, 10px) scale(.9); z-index: 30; pointer-events: none; opacity: 0; transition: opacity .25s, transform .25s; display: flex; flex-direction: column; align-items: center; gap: 6px; background: rgba(11,15,18,.94); border: 2px solid #F5C518; border-radius: 22px; padding: 12px 18px 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.tb-spot.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.tb-spot .av { width: 150px; height: 150px; }
.tb-spot span { font: 700 14px 'Public Sans', system-ui, sans-serif; color: var(--white); }
.tb .ct-seat .av { width: 64px; height: 64px; }
.tb .ct-you .ct-av .av { width: 56px; height: 56px; }
@media (prefers-reduced-motion: reduce) { .tb-spot { transition: none; } }
.tb-react-box { text-align: center; margin: 6px 0; } .tb-react-box[open] .tb-react { margin-top: 8px; }
.tb-react-head { display: inline-block; cursor: pointer; list-style: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 7px 14px; font: 700 13px 'Public Sans', system-ui, sans-serif; color: var(--white); }
.tb-react-head::-webkit-details-marker { display: none; } .tb-react-head::after { content: " \25BE"; } .tb-react-box[open] .tb-react-head::after { content: " \25B4"; }
.af-signs .af-code { margin-top: 6px; text-align: left; align-self: stretch; }
.av.g-nod > g { animation: av-nod 2.4s ease-in-out; } .av.g-shake > g { animation: av-shake 2.4s ease-in-out; }
@keyframes av-nod { 0%, 100% { transform: none; } 15%, 45%, 75% { transform: translateY(3px); } 30%, 60% { transform: translateY(-1px); } }
@keyframes av-shake { 0%, 100% { transform: none; } 12%, 36%, 60% { transform: translateX(-3px); } 24%, 48%, 72% { transform: translateX(3px); } }
.af-ack { margin-top: 8px; }
.av.g-tilt > g { animation: av-tilt 2.4s ease-in-out; } .av.g-wiggle .av-brow-l, .av.g-wiggle .av-brow-r { animation: av-wiggle 2.4s ease-in-out; }
@keyframes av-tilt { 0%, 100% { transform: none; } 20%, 75% { transform: rotate(-12deg); } }
@keyframes av-wiggle { 0%, 100% { transform: none; } 10%, 30%, 50%, 70% { transform: translateY(-3px); } 20%, 40%, 60%, 80% { transform: none; } }
/* ---- Admin dashboard look: grey canvas, white rounded cards, pill menu, big numbers ---- */
body:has(.adm) { background: #F2F3F5; }
.adm .adm-nav { border-bottom: 0; gap: 8px; margin-bottom: 26px; }
.adm .adm-nav a { border: 0; margin: 0; padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; background: #FFFFFF; color: #3B4650; box-shadow: 0 1px 2px rgba(16,24,32,.06); }
.adm .adm-nav a:hover { background: #E8EBEF; color: var(--ink); }
.adm .adm-nav a[aria-current] { background: #1B1F21; color: #FFFFFF; }
.adm .adm-box, .adm .adm-card, .adm .kpi { border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(16,24,32,.05), 0 4px 16px rgba(16,24,32,.04); }
.adm .adm-box { padding: 22px 24px; }
.adm .adm-box h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.dash-head { align-items: flex-end; }
.dash-head h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.02em; margin: 0; }
.dash-date { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.dash-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #FFFFFF; color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,32,.06); }
.dash-pill:hover { background: #E8EBEF; color: var(--ink); }
.dash-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; margin: 6px 0 26px; align-items: start; }
.dash-stat { display: grid; grid-template-columns: auto 1fr; align-items: center; align-content: start; gap: 2px 10px; }
.dash-stat > span { grid-column: 1 / -1; color: #4A5560; font-size: 15px; }
.dash-stat > b { font-size: clamp(34px, 3.4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-family: 'Public Sans', sans-serif; font-variant-numeric: tabular-nums; }
.dash-stat > small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.dash-chg { justify-self: start; display: inline-flex; gap: 3px; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.dash-chg.up { background: #DDF3E4; color: #17663A; }
.dash-chg.down { background: #FBE3E0; color: #9B2C1F; }
.dash-chg.flat { background: #E8EBEF; color: #3B4650; }
.adm .dash-tiles .kpi { padding: 16px 18px; }
.adm .dash-tiles .kpi b { font-family: 'Public Sans', sans-serif; font-weight: 600; letter-spacing: -.01em; }
.adm .kpi.warn { box-shadow: inset 0 0 0 2px #E08A2E, 0 4px 16px rgba(16,24,32,.04); }
.adm .funnel .track { background: #EEF0F3; height: 14px; border-radius: 7px; }
.adm .funnel .track i { background: linear-gradient(90deg, #2F5BEA, #6A7CF0); border-radius: 7px; }
.adm .goal-track i { background: linear-gradient(90deg, #2F5BEA, #6A7CF0); }
.adm-bars .bar { fill: #2F5BEA; }
.adm-bars .hatch-bg { fill: #EEF0F3; }
.adm-bars .hatch-line { stroke: #CBD1D8; stroke-width: 2; }
.adm-bars g:hover .bar { fill: #2347C4; }
.adm-bars g:not(.now):hover .bar { opacity: .8; }
.adm-bars g.now text.v { fill: #2F5BEA; font-weight: 700; }
.adm .table-wrap table { border-collapse: separate; border-spacing: 0; }
.adm .table-wrap th { background: #F6F7F9; font-weight: 600; color: #4A5560; }
.adm .table-wrap th:first-child { border-radius: 10px 0 0 10px; } .adm .table-wrap th:last-child { border-radius: 0 10px 10px 0; }
@media (max-width: 900px) { .dash-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .adm .adm-nav { gap: 6px; } .adm .adm-nav a { padding: 8px 14px; font-size: 15px; } .dash-hero { gap: 18px 16px; } }
/* ---- Interactive charts (charts.js): crosshair follows pointer/finger, readout under the chart ---- */
svg[data-chart].live { touch-action: pan-y; cursor: crosshair; }
svg[data-chart]:focus { outline: none; }
svg[data-chart]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.trend .pt.on .dot, .trend .pt.on .cross, .trend .pt.on .tip,
.pchart .pt.on .dot, .pchart .pt.on .cross, .pchart .pt.on .tip { opacity: 1; }
.trend svg.scrub .endlabel, .trend svg.scrub .peak, .pchart svg.scrub .endlabel { opacity: 0; }
.pchart svg.scrub .dot.end { opacity: .35; }
.chart-readout { min-height: 1.4em; margin: 6px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.trend .chart-readout { color: var(--soft); }
@media (min-width: 601px) { .chart-readout { display: none; } }
/* soft fill under this year's line */
.trend .area { stroke: none; }
.trend .fill-top { stop-color: #CF7A2C; stop-opacity: .28; } .trend .fill-bottom { stop-color: #CF7A2C; stop-opacity: 0; }
.pchart .area { stroke: none; }
.pchart .fill-top { stop-color: #9A4F12; stop-opacity: .16; } .pchart .fill-bottom { stop-color: #9A4F12; stop-opacity: 0; }
/* lines draw in once when the page opens */
@media (prefers-reduced-motion: no-preference) {
  .line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: line-draw 1.1s cubic-bezier(.3,.7,.3,1) .15s forwards; }
  .area { opacity: 0; animation: area-in .6s ease-out .9s forwards; }
  .adm-bars .bar { transform-box: fill-box; transform-origin: bottom; animation: bar-grow .6s cubic-bezier(.3,.7,.3,1) both; }
}
@keyframes line-draw { to { stroke-dashoffset: 0; } }
@keyframes area-in { to { opacity: 1; } }
@keyframes bar-grow { from { transform: scaleY(0); } }
/* Smooth fade between pages in browsers that support it (no script). */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
/* Events: 6 on phones, 8 on wide screens (a full 4-across grid); the rest behind Show all. */
.ev-full > .ev-item:nth-child(n+7) { display: none; }
.ev-more .ev-full > .ev-item { display: flex; }
@media (min-width: 900px) {
  .ev-full > .ev-item:nth-child(n+7) { display: flex; }
  .ev-more .ev-full > .ev-item:nth-child(-n+2) { display: none; }
}
@media (min-width: 900px) { .ev-more.few { display: none; } }
/* ---- Members dashboard: same look as the admin dashboard (grey canvas, white rounded cards, big numbers) ---- */
body:has(.mbd) { background: #F2F3F5; }
.mbd .dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mbd .dash-actions form { margin: 0; }
.mbd button.dash-pill { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.mbd .dash-hero { margin-top: 10px; }
.dash-track { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: #E3E6EA; overflow: hidden; margin-top: 6px; }
.dash-track i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #2F5BEA, #6A7CF0); }
.mbd-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mbd-box, .mbd .mb-sec, .mbd-tile { background: #FFFFFF; border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(16,24,32,.05), 0 4px 16px rgba(16,24,32,.04); padding: 22px 24px; }
.mbd-box h2, .mbd .mb-sec > h2, .mbd-h { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 12px; }
.mbd-chart .trend { margin: 0; }
.mbd-chart .trend svg { width: 100%; height: auto; }
.mbd-deal { margin: 0 0 14px; display: grid; gap: 10px; }
.mbd-deal div { border-left: 3px solid #E3E6EA; padding-left: 12px; }
.mbd-deal div:first-child { border-left-color: #2F5BEA; }
.mbd-deal dt { font-size: 13px; color: var(--muted); }
.mbd-deal dd { margin: 2px 0 0; font-weight: 600; }
.mbd-deal small { color: var(--muted); font-weight: 400; }
.mbd-ask { background: var(--ink); color: var(--white); }
.mbd-ask h2 { color: var(--white); }
.mbd-ask .btn.dark { background: var(--accent); color: var(--ink); }
.mbd-h { margin-top: 28px; }
.mbd-tiles { margin-top: 0; }
.mbd-tile { display: block; text-decoration: none; color: inherit; padding: 18px 20px; transition: transform .15s, box-shadow .15s; }
a.mbd-tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,24,32,.06), 0 10px 24px rgba(16,24,32,.08); }
.mbd-tile h3 { font-size: 19px; margin: 4px 0 6px; color: var(--ink); }
.mbd-tile p { margin: 0; font-size: 15px; }
.mbd-tile.mb-soon { background: #E8EBEF; box-shadow: none; }
.mbd .mb-sec { margin-top: 16px; }
.mbd .mb-month { border: 0; background: #F6F7F9; border-radius: 14px; }
.mbd .mb-search { border: 0; padding: 0; box-shadow: none; }
.mbd-foot { margin: 22px 0 0; color: var(--muted); }
@media (max-width: 900px) { .mbd-two { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .mbd-box, .mbd .mb-sec { padding: 18px; border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .mbd-tile { transition: none; } a.mbd-tile:hover { transform: none; } }
.mbd .mb-where { background: #FFFFFF; border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(16,24,32,.05), 0 4px 16px rgba(16,24,32,.04); }
.mbd .mb-sec .dash-hero { margin: 4px 0 12px; }
.mbd .mb-sec .dash-stat > b { font-size: clamp(26px, 2.6vw, 34px); }
.mbd .mb-ask { border-radius: 16px; }
.mbd .here-cards .here { border-radius: 14px; }
.mbd-chart .trend figcaption, .mbd-chart .trend .tick { color: var(--muted); fill: var(--muted); }
.mbd-chart .trend .endlabel, .mbd-chart .trend .tip { fill: var(--ink); }
.mbd-chart .trend .axis { stroke: #D5DAE0; }
.mbd-chart .trend .dot { stroke: #FFFFFF; }
.mbd-chart .trend .cross { stroke: #9AA6B2; }
.mbd-chart .trend .chart-readout { color: var(--ink); }
.mbd .dash-stat > b { font-size: clamp(28px, 2.8vw, 38px); }
.mbd-tiles { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.mbd-box .dash-pill { background: #F2F3F5; box-shadow: none; }
.mbd-box .dash-pill:hover { background: #E3E6EA; }
.mbd-chart p { margin: 12px 0 0; }
/* The members chart is drawn 320 wide and stretches on wide cards; shrink its text so it reads at about 12px. */
@media (min-width: 601px) { .mbd-chart .trend .tick, .mbd-chart .trend .endlabel, .mbd-chart .trend .tip { font-size: 5.2px; } .mbd-chart .trend .dot { r: 2.4; stroke-width: 1.2; } .mbd-chart .trend .line { stroke-width: 1.3; } }
@media (min-width: 901px) { .mbd-chart .trend .tick, .mbd-chart .trend .endlabel, .mbd-chart .trend .tip { font-size: 6.3px; } }
#result { scroll-margin-top: 16px; }
/* Arcade hub: nothing jumps when the device-only bits appear (CLS). The stats line only gets room when
   this browser has stats (html.has-stats, set by gamestats-flag.js); best scores and the Done tag float. */
html.has-stats .arcade-hub .ah-head .g-stats[hidden] { display: block; visibility: hidden; }
html.has-stats .arcade-hub .ah-head .g-stats { min-height: 2.6em; }
@media (min-width: 640px) { html.has-stats .arcade-hub .ah-head .g-stats { min-height: 1.4em; } }
.arcade-hub .ah-tile { position: relative; }
@media (min-width: 640px) { .arcade-hub .ah-tile .g-best { position: absolute; right: 12px; top: 14px; margin: 0; max-width: calc(100% - 118px); font-size: 12px; text-align: right; border-radius: 12px; } }
@media (max-width: 639px) { html.has-stats .arcade-hub .ah-tile .g-best[hidden] { display: inline-block; visibility: hidden; } }
/* Done today: a tick on the Play button (the words stay for screen readers); the button always has room for it */
.arcade-hub .g-ch-strip .g-ch-done { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arcade-hub .g-ch-strip .g-ch-go { position: relative; overflow: visible; }
.arcade-hub .g-ch-strip.done .g-ch-go::after { content: "\2713"; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: #1E6B3A; color: #FFFFFF; font-size: 12px; line-height: 20px; text-align: center; opacity: 1; }
/* Admin: My reminders list */
.rem-list { list-style: none; padding: 0; margin: 0 0 12px; }
.rem-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.rem-list li:first-child { border-top: 0; }
.rem-list li > span { min-width: 0; }
.rem-list form { margin: 0; flex: none; }
.rem-del { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; min-height: 36px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.rem-del:hover { color: #9B2C1F; border-color: #9B2C1F; }
/* ---- Stories (features and explainers) ---- */
.st-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.st-filter a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.st-filter a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.st-list { list-style: none; padding: 0; margin: 0 0 24px; }
.st-item { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.st-item:has(img) { grid-template-columns: minmax(0, 220px) 1fr; }
.st-item img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 10px; }
.st-item h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; margin: 6px 0 6px; }
.st-item h2 a { color: var(--ink); text-decoration: none; }
.st-item h2 a:hover { text-decoration: underline; }
.st-item p { margin: 0; color: var(--body); max-width: 680px; }
.st-empty { padding: 24px 0; }
/* One centred reading column for the header, body and more links (QA). */
.story .st-head, .st-body, .st-more { max-width: 768px; }
.mag-head h1.st-h1 { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: clamp(34px, 6vw, 64px); line-height: 1.02; letter-spacing: -1px; max-width: 920px; margin: 0; }
.st-body { font-size: 18px; line-height: 1.65; color: var(--body); overflow-wrap: break-word; }
.st-body h2 { font-size: 26px; color: var(--ink); margin: 34px 0 10px; line-height: 1.2; }
.st-body p { margin: 0 0 16px; }
.st-body ul, .st-body ol { margin: 0 0 16px; padding-left: 22px; }
.st-body li { margin-bottom: 6px; }
.st-fix { background: #FFF6E5; border-left: 4px solid #E0A23B; border-radius: 8px; padding: 14px 18px; margin: 28px 0; font-size: 16px; }
.st-fix h2 { font-size: 18px; margin: 0 0 6px; }
.st-sources { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 8px; font-size: 16px; }
.st-sources h2 { font-size: 20px; }
.st-note { margin-top: 18px; }
.st-more { margin-top: 28px; }
.st-more h2 { font-size: 20px; }
.st-more ul { padding-left: 20px; }
@media (max-width: 600px) { .st-item:has(img) { grid-template-columns: 1fr; } .st-body { font-size: 17px; } }
/* Back to the games hub, on every game page */
.games-back { display: flex; width: fit-content; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; margin: 0 0 8px; border: 2px solid currentColor; border-radius: 999px; font: 700 14px 'Public Sans', system-ui, sans-serif; text-decoration: none; color: var(--ink); }
.games-back:hover, .games-back:focus-visible { background: rgba(0,0,0,.06); }
.games-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.games-nav .games-back { margin: 0; }
#howto { scroll-margin-top: 80px; }
.tb-howto { border: 2px solid var(--ink); border-radius: 12px; padding: 0 14px; margin: 0 0 10px; background: var(--white); }
.tb-howto summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; list-style: none; }
.tb-howto summary::-webkit-details-marker { display: none; }
.tb-howto summary::after { content: "+"; margin-left: auto; padding-left: 12px; font-size: 22px; line-height: 1; }
.tb-howto[open] summary::after { content: "\2212"; }
.tb-howto ol { margin: 0 0 12px; padding-left: 20px; }
.tb-howto li { margin: 0 0 6px; }
/* Card and domino score strip (core.js board()): a tile per player or team, leader in gold */
.ct-scores.sb { display: block; }
.ct-scores.sb span, .ct[class*="room-"] .ct-scores.sb span { background: none; padding: 0; border-radius: 0; text-shadow: none; }
.ct-scores.sb .sb-bar { background: rgba(255,255,255,.18); border-radius: 2px; }
.sb-row { display: flex; gap: 8px; justify-content: center; padding-top: 9px; }
.ct-scores .sb-tile { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 200px; flex: 1 1 0;
  background: rgba(11,42,54,.72); border: 2px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 12px 9px; color: #fff; text-shadow: none; }
.sb-tile.you { border-color: rgba(255,255,255,.7); }
.sb-tile.lead { border-color: #F5C518; box-shadow: 0 0 0 2px rgba(245,197,24,.35); }
.sb-tile.lead::before { content: "Leading"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: #F5C518; color: #0B2A36;
  font: 800 10px/1 'Public Sans', system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.sb-name { font: 600 12px/1.25 'Public Sans', system-ui, sans-serif; opacity: .9; text-align: center; overflow-wrap: break-word; max-width: 100%; }
.sb-score { font: 700 26px/1.1 var(--display); }
.sb-tile.lead .sb-score { color: #F5C518; }
.sb-note { font: 700 11px/1.2 'Public Sans', system-ui, sans-serif; color: #F5C518; }
.sb-bar { display: block; width: 100%; height: 4px; margin-top: 5px; background: rgba(255,255,255,.18); border-radius: 2px; overflow: hidden; }
.sb-bar i { display: block; height: 100%; background: #9CD6F2; border-radius: 2px; transition: width .4s ease; }
.sb-tile.lead .sb-bar i { background: #F5C518; }
.sb-foot { margin: 6px 0 0; text-align: center; font: 600 12px 'Public Sans', system-ui, sans-serif; color: #F2D9A0; }
.sb.sb-low .sb-bar i { background: #F2A65A; }
@media (max-width: 520px) { .sb-row { gap: 5px; } .ct-scores .sb-tile { padding: 9px 4px 7px; border-radius: 10px; } .sb-name { font-size: 11px; } .sb-score { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .sb-bar i { transition: none; } }
/* Card table, more like the real thing: cloth with a weave, a wood rail with grain, a lamp overhead, cards held in a fan */
.ct[class*="room-"] .ct-felt::before {
  border: 13px solid transparent; inset: 9px calc(6% - 13px) -7px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E") padding-box,
    radial-gradient(ellipse at 50% 42%, var(--felt-hi, #2A8A5E) 0%, var(--felt, #17603F) 58%, var(--felt-lo, #0E4029) 100%) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.35)) border-box,
    repeating-linear-gradient(100deg, rgba(0,0,0,.14) 0 2px, rgba(0,0,0,0) 2px 7px, rgba(255,255,255,.06) 7px 8px, rgba(0,0,0,0) 8px 15px) border-box,
    var(--rim, #5A3A22) border-box;
  box-shadow: 0 0 0 2px var(--rim-lo, #2E1C10), 0 22px 40px rgba(0,0,0,.6), 0 6px 12px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(0,0,0,.4), inset 0 10px 18px rgba(0,0,0,.45), inset 0 0 60px rgba(0,0,0,.35);
}
/* the lamp: a warm pool of light in the middle, the edges falling off */
.ct[class*="room-"] .ct-felt::after { inset: 22px 6% 6px;
  background: radial-gradient(ellipse 55% 60% at 50% 45%, rgba(255,236,190,.16), rgba(255,236,190,0) 70%), radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0,0,0,.28) 100%); }
/* played cards sit on the cloth: a deeper, softer shadow */
.ct[class*="room-"] .ct-slot .cd { box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 2px 3px rgba(0,0,0,.35), 0 8px 14px rgba(0,0,0,.35); }
/* your hand: a gentle arc, the middle cards highest */
.ct[class*="room-"] .ct-hand.fan { align-items: flex-end; padding-top: 22px; padding-bottom: 16px; }
.ct[class*="room-"] .ct-hand.fan .cd { transform-origin: 50% 120%; rotate: calc(var(--d, 0) * 2.4deg); translate: 0 calc(var(--d, 0) * var(--d, 0) * .55px); }
.ct[class*="room-"] .ct-hand.fan .cd + .cd { box-shadow: -3px 0 6px rgba(0,0,0,.28), 0 3px 8px rgba(0,0,0,.4); }
/* the other players' hands: a tight fan of backs instead of a long stack */
.ct[class*="room-"] .ct-cards.fan .cd { transform-origin: 50% 100%; }
.ct[class*="room-"] .ct-n .ct-cards.fan .cd { margin-left: -22px; rotate: calc(var(--d, 0) * 3deg); translate: 0 calc(var(--d, 0) * var(--d, 0) * .4px); }
.ct[class*="room-"] .ct-w .ct-cards.fan .cd, .ct[class*="room-"] .ct-e .ct-cards.fan .cd { margin-top: -35px; }
.ct[class*="room-"] .ct-w .ct-cards.fan .cd { rotate: calc(var(--d, 0) * -2deg); }
.ct[class*="room-"] .ct-e .ct-cards.fan .cd { rotate: calc(var(--d, 0) * 2deg); }
.ct[class*="room-"] .ct-cards.fan .cd:first-child { margin-left: 0; margin-top: 0; }
/* names stay on one line: long ones end in … (the full name is in the tooltip) */
.ct .ct-seat .ct-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-scores.sb .sb-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a 13-card hand at a friends table squeezes like the solo games and stays on screen */
@media (max-width: 420px) { .ct[class*="room-"] .ct-hand.fan.many .cd { margin-left: -27px; } .ct[class*="room-"] .ct-hand.fan.many .cd:first-child { margin-left: 0; } .ct[class*="room-"] .ct-hand.fan.many .cd { rotate: calc(var(--d, 0) * 1.6deg); } }
.ct-hand { max-width: 100%; }
/* under the table: Last trick, Sound, Fast play */
.ct-extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; }
.ct-extras .ct-speed { margin: 6px 0 0; }
.ct-peek-wrap { display: flex; justify-content: center; }
.ct-peek { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; background: rgba(11,15,18,.6); border-radius: 12px; padding: 8px 12px; margin: 6px auto 0; }
.ct-peek-c { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ct-peek-c figcaption { font: 600 11px 'Public Sans', system-ui, sans-serif; color: #FFFFFF; max-width: 76px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-peek-c.win .cd { box-shadow: 0 0 0 2px #F5C518, 0 4px 10px rgba(0,0,0,.4); }
.ct-peek-c.win figcaption { color: #F5C518; }
/* Easy: the hinted card lifts and glows */
.ct-hand .cd.hint { box-shadow: 0 0 0 3px #9CD6F2, 0 0 18px rgba(156,214,242,.9) !important; transform: translateY(-20px); }
/* dealing: cards fly in from the middle of the table one after another */
.ct-hand.deal .cd, .ct-cards.deal .cd { animation: cd-deal .38s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc((var(--d, 0) + 7) * 45ms); }
@keyframes cd-deal { from { opacity: 0; transform: translateY(-140px) scale(.6) rotate(-20deg); } to { opacity: 1; transform: none; } }
.ct-cards.deal .cd { animation-name: cd-deal-in; }
@keyframes cd-deal-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ct-hand.deal .cd, .ct-cards.deal .cd { animation: none; } }

/* Kalooki (friends tables): stock and pile in the middle, melds below the felt */
.rm-piles { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.rm-stock, .rm-pile { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 4px; border-radius: 10px; cursor: pointer; color: #F4EBD0; font: 700 12px var(--body, inherit); }
.rm-stock:disabled, .rm-pile:disabled { cursor: default; }
.rm-stock:not(:disabled) .cd, .rm-pile:not(:disabled) .cd { box-shadow: 0 0 0 3px #F5C518, 0 4px 12px rgba(0,0,0,.4); }
.rm-stock:focus-visible, .rm-pile:focus-visible { outline: 3px solid #F5C518; outline-offset: 2px; }
.rm-empty { display: flex; align-items: center; justify-content: center; width: 50px; height: 70px; border: 2px dashed rgba(244,235,208,.45); border-radius: 7px; font-size: 10px; }
.rm-n { white-space: nowrap; }
.rm-table, .rm-staged { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; padding: 10px; border-radius: 12px; background: #0E3B2E; color: #F4EBD0; min-width: 0; }
.rm-staged { flex-direction: row; flex-wrap: wrap; align-items: center; background: #2B2A1E; }
.rm-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.rm-label { font: 700 13px var(--display, inherit); margin-right: 4px; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-meld { display: inline-flex; padding: 4px 6px; border-radius: 8px; background: rgba(255,255,255,.08); border: 2px solid transparent; }
.rm-meld .cd { margin-left: -12px; } .rm-meld .cd:first-child { margin-left: 0; }
button.rm-meld { cursor: pointer; }
.rm-meld.can { border-color: #F5C518; }
.rm-meld.staged { border-color: rgba(245,197,24,.6); }
.rm-meld:focus-visible { outline: 3px solid #F5C518; outline-offset: 2px; }
.rm-none { margin: 0; font-size: 14px; }
.rm-sort { margin-left: auto; }
.ct-hand.rm-hand { flex-wrap: wrap; row-gap: 12px; }
.cd.joker { background: linear-gradient(160deg, #FFF8E1 0%, #F6E7B8 100%); color: #7A4B00; }
.cd.joker .cd-pip { color: #C98A00; }
.cd.joker .cd-c i { color: #C98A00; }
.ct-hand.rm-hand.many .cd { margin-left: -12px; }
@media (max-width: 420px) { .ct-hand.rm-hand .cd, .ct-hand.rm-hand.many .cd { margin-left: -8px; } }

/* More All Fours signs: finger up (ace), stroke the upper lip (king), look to the shoulder (queen), and the suits */
.av-finger { opacity: 0; }
.av.g-finger .av-finger { animation: av-finger 2.4s ease-in-out; }
.av.g-shoulder .av-eye-l, .av.g-shoulder .av-eye-r { animation: av-side 2.4s ease-in-out; }
.av.g-shoulder .av-body { animation: av-lift 2.4s ease-in-out; }
.av.g-slash .av-hand { animation: av-slash 2.4s ease-in-out; }
.av.g-drop .av-hand { animation: av-drop 2.4s ease-in-out; }
.av.g-scoop .av-hand { animation: av-scoop 2.4s ease-in-out; }
@keyframes av-finger { 0%, 100% { opacity: 0; transform: translateY(12px); } 15%, 80% { opacity: 1; transform: none; } }
@keyframes av-stroke { 0%, 100% { opacity: 0; transform: none; } 10% { opacity: 1; } 20%, 45%, 70% { opacity: 1; transform: translate(-4px, -8px); } 32%, 58% { opacity: 1; transform: translate(4px, -8px); } 90% { opacity: 1; } }
@keyframes av-side { 0%, 100% { transform: none; } 15%, 80% { transform: translate(3px, 2px); } }
@keyframes av-lift { 0%, 100% { transform: none; } 25%, 75% { transform: rotate(-10deg) translate(1px, -3px); } }
@keyframes av-chest { 0%, 100% { opacity: 0; transform: none; } 10% { opacity: 1; } 20%, 40%, 60% { opacity: 1; transform: translate(-7px, -6px); } 30%, 50%, 70% { opacity: 1; transform: translate(-7px, -3px); } 85% { opacity: 1; } }
@keyframes av-slash { 0%, 100% { opacity: 0; transform: none; } 10% { opacity: 1; transform: translate(-16px, -26px) rotate(-30deg); } 30%, 50% { opacity: 1; transform: translate(16px, -4px) rotate(-30deg); } 40% { opacity: 1; transform: translate(-16px, -26px) rotate(-30deg); } 85% { opacity: 1; } }
@keyframes av-drop { 0%, 100% { opacity: 0; transform: none; } 10% { opacity: 1; } 25%, 45% { opacity: 1; transform: translate(12px, -26px); } 60%, 80% { opacity: 1; transform: translate(12px, 0); } }
@keyframes av-scoop { 0%, 100% { opacity: 0; transform: none; } 10% { opacity: 1; transform: translate(-14px, -10px) rotate(-25deg); } 35% { opacity: 1; transform: translate(0, -16px) rotate(0deg); } 60% { opacity: 1; transform: translate(14px, -10px) rotate(25deg); } 85% { opacity: 1; } }
.av.g-fdown .av-finger { animation: av-finger-hi 2.4s ease-in-out; } .av.g-fdown .av-tip { transform: translateY(15px); }
@keyframes av-under-arm { 0%, 100% { opacity: 0; transform: none; } 15%, 80% { opacity: 1; transform: translateY(-9px); } }
@keyframes av-under { 0%, 100% { transform: translate(37px, 28px); } 25%, 80% { transform: translate(37px, 20px); } }
/* Private test copy (SITE_ENV=test) */
.test-banner { background: repeating-linear-gradient(135deg, #FFE08A 0 14px, #FFD35C 14px 28px); color: #1B1B1B; font: 700 14px 'Public Sans', system-ui, sans-serif; text-align: center; padding: 8px 16px; }
/* Admin > Errors: one card per error, readable on phones */
.err-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.err-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-wrap: anywhere; }
.err-card p { margin: 0 0 6px; }
.err-meta { color: var(--muted, #5b6770); }
.err-card pre { white-space: pre-wrap; margin: 6px 0; }
.err-fixed { opacity: .6; }
@media (max-width: 600px) { .err-fix { width: 100%; min-height: 44px; } }
/* Members home-screen app card */
.app-box { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 24px; }
.app-box img { border-radius: 12px; flex: none; }
.app-box h2 { margin: 0 0 6px; }
.app-box .app-on { display: none; }
.app-box.is-app .app-on { display: inline; }
.app-box.is-app p.app-on { display: block; }
.app-box.is-app .app-off { display: none; }
.app-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.app-actions .btn { min-height: 44px; }
/* Members home file */
.hf .mbd-box { margin-bottom: 20px; }
.hf-intro { max-width: 760px; }
.hf-list, .hf-presets { list-style: none; padding: 0; margin: 0 0 12px; }
.hf-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.hf-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.hf-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.hf-acts .btn { min-height: 44px; }
.hf-row.hf-due, .hf-sys-row.hf-due { border-left: 4px solid #B3261E; padding-left: 10px; }
.hf-row.hf-soon, .hf-sys-row.hf-soon { border-left: 4px solid #E0A23B; padding-left: 10px; }
.hf-presets li { border-top: 1px solid var(--line); }
.hf-add { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; }
.hf-add .mini, .hf-row .mini { min-height: 44px; }
.hf-sys-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.hf-sys-row label { display: flex; flex-direction: column; gap: 2px; }
.hf-sys-row input { width: 7em; min-height: 44px; }
.hf-sys .btn { margin-top: 12px; min-height: 44px; }
@media (max-width: 600px) { .hf-row { flex-direction: column; } .hf-acts { align-items: stretch; width: 100%; } .hf-acts .btn { width: 100%; } }
/* "Where your budget fits" sketch map on /fit */
.fit-map { margin: 28px 0 8px; }
.fit-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 0 0 10px; }
.fit-legend li::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 2px solid; box-sizing: border-box; }
.fit-legend .yes::before, .fit-tile.yes { background: #DDF1E4; border-color: #2E7D4F; }
.fit-legend .stretch::before, .fit-tile.stretch { background: #FFF1D6; border-color: #B7791F; }
.fit-legend .no::before, .fit-tile.no { background: #EEF1F3; border-color: #C5CDD3; }
.fit-tile.na { background: transparent; border-color: #C5CDD3; border-style: dashed; }
.fit-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; list-style: none; padding: 0; margin: 0; }
.fit-tile { border: 2px solid; border-radius: 8px; min-height: 64px; }
.fit-tile a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 6px; color: var(--ink); text-decoration: none; overflow-wrap: normal; hyphens: manual; }
.fit-tile b { font-size: 13px; line-height: 1.15; }
.fit-tile span { font-size: 12px; font-weight: 700; }
.fit-tile small { font-size: 11px; color: var(--body); }
.fit-tile.no b, .fit-tile.no small, .fit-tile.na b, .fit-tile.na span { color: #5b6770; }
.fit-tile a:hover b, .fit-tile a:focus-visible b { text-decoration: underline; }
.fit-lake { margin: 4px 0 0; padding: 6px; text-align: center; background: #D7E8F2; color: #1F4E66; border-radius: 8px; font-weight: 600; }
@media (max-width: 600px) { .fit-grid { gap: 3px; } .fit-tile small { display: none; } .fit-tile b { font-size: 10.5px; letter-spacing: -.2px; } .fit-tile span { font-size: 10px; } .fit-tile a { padding: 4px 3px; } }
.hf-more summary, .hf-custom summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.hf-row.hf-unset { border-left: 4px solid #C5CDD3; padding-left: 10px; }
.ct-hand.rm-hand { padding-top: 26px; }
/* Sign in with Google (members) */
.g-sign { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 16px 0; }
.g-sign .btn, .g-opts .btn { min-height: 44px; }
.g-card form { display: flex; flex-direction: column; gap: 8px; }
.g-card .g-sign { margin: 0; align-items: stretch; }
.g-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; }
.g-or::before, .g-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.g-opts form { margin-top: 14px; }
/* face signs: an arm with one finger on the spot, which glows (built in avatar.js) */
.av-reach { animation: av-reach 2.4s ease-in-out both; }
.av-reach.stroke { animation-name: av-reach-rub; } .av-reach.tap, .av-reach.chest { animation-name: av-reach-tap; }
.av-glow { fill: rgba(255, 226, 122, .35); stroke: #FFE27A; stroke-width: 1; animation: av-glow 2.4s ease-in-out both; }
@keyframes av-reach { 0% { opacity: 0; transform: translateY(10px); } 18%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); } }
@keyframes av-reach-rub { 0% { opacity: 0; transform: translateY(10px); } 18%, 42%, 66%, 82% { opacity: 1; transform: none; } 30%, 54% { opacity: 1; transform: translateX(4px); } 100% { opacity: 0; transform: translateY(10px); } }
@keyframes av-reach-tap { 0% { opacity: 0; transform: translateY(10px); } 18%, 38%, 58%, 82% { opacity: 1; transform: none; } 28%, 48%, 68% { opacity: 1; transform: translateY(2px); } 100% { opacity: 0; transform: translateY(10px); } }
@keyframes av-glow { 0%, 15% { opacity: 0; } 25%, 80% { opacity: 1; } 100% { opacity: 0; } }
/* reduce motion: no movement, each sign's pose just shows and holds */
@media (prefers-reduced-motion: reduce) { .av * { animation-timing-function: steps(1, end) !important; } }
@keyframes av-finger-hi { 0%, 100% { opacity: 0; transform: translateY(2px); } 15%, 80% { opacity: 1; transform: translateY(-11px); } }
/* Trivia night (members) */
.tn-next { padding: 16px; border-radius: 12px; margin: 16px 0; }
.tn-when { font: 700 22px var(--display); margin: 4px 0; }
.tn-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tn-btns .btn { min-height: 44px; }
.tn { background: #0E3B2E; color: #F4EBD0; border-radius: 16px; padding: 16px; margin: 16px 0; min-height: 240px; }
.tn-top { display: flex; justify-content: space-between; gap: 8px; font: 700 14px var(--display); opacity: .9; }
.tn-top .tn-count { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; }
.tn-big { font: 800 clamp(24px, 5vw, 34px) var(--display); margin: 24px 0 8px; text-align: center; }
.tn-lobby .muted, .tn .muted { color: #CFE3D8; text-align: center; }
.tn-card { margin-top: 12px; }
.tn-cat { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: #F5C518; margin: 0 0 6px; }
.tn-q { font: 700 clamp(19px, 3.6vw, 24px)/1.3 var(--display); margin: 0 0 12px; }
.tn-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; margin-bottom: 14px; }
.tn-bar i { display: block; height: 100%; background: #F5C518; transition: width .25s linear; }
.tn-opts { display: grid; gap: 10px; }
@media (min-width: 640px) { .tn-opts { grid-template-columns: 1fr 1fr; } }
.tn-opt { display: flex; gap: 10px; align-items: center; text-align: left; min-height: 52px; padding: 10px 12px; border-radius: 12px; border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: inherit; font: 600 16px var(--body, inherit); cursor: pointer; }
.tn-opt:not(:disabled):hover, .tn-opt:focus-visible { border-color: #F5C518; outline: none; }
.tn-opt:disabled { cursor: default; }
.tn-letter { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); font-weight: 800; }
.tn-opt.picked { border-color: #F5C518; background: rgba(245,197,24,.15); }
.tn-opt.right { border-color: #5BD18B; background: rgba(91,209,139,.22); }
.tn-opt.wrong { border-color: #FF8A80; background: rgba(255,138,128,.18); }
.tn-msg { margin: 14px 0 0; font-size: 15px; }
.tn-board { margin-top: 18px; }
.tn-h { font-size: 18px; margin: 0 0 8px; color: #F4EBD0; }
.tn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.tn-list li { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.06); }
.tn-list li.you { background: rgba(245,197,24,.18); }
.tn-rank { width: 24px; font-weight: 800; }
.tn-nick { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-pts { font-weight: 800; }
.tn-me { margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .tn-bar i { transition: none; } }
/* Admin: contact timeline and follow-up plan */
.adm-timeline li.in { border-left: 4px solid var(--gold, #C9A227); padding-left: 10px; }
.adm-timeline li.out { border-left: 4px solid #C5CDD3; padding-left: 10px; }
.adm-plan { list-style: none; padding: 0; margin: 0 0 12px; }
.adm-plan li { border-top: 1px solid var(--line); padding: 10px 0; }
.adm-plan li.done p, .adm-plan li.skipped p { color: #5b6770; text-decoration: line-through; }
.adm-plan li.late small { color: #9B2C2C; font-weight: 700; }
.adm-plan .k { font-weight: 700; }
.adm-plan p { margin: 4px 0 6px; }
.adm-plan .adm-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.adm-plan .mini, #plan > form .mini { min-height: 40px; }
#after-consent .after-off { margin-top: 12px; }
#after-consent .after-off .mini { margin-top: 8px; }

/* Admin: where leads come from */
.src-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.src-table th, .src-table td { padding: 6px 8px; border-bottom: 1px solid var(--line, #dde3e6); text-align: left; white-space: nowrap; }
.src-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.src-table tfoot th, .src-table tfoot td { border-top: 2px solid var(--line, #dde3e6); border-bottom: 0; }
.src-total { position: relative; min-width: 110px; }
.src-total b { position: relative; }
.src-bar { position: absolute; left: 0; top: 50%; height: 8px; margin-top: 8px; border-radius: 0 4px 4px 0; background: var(--accent, #a0522d); opacity: .55; }
.gbp-text { width: 100%; font: inherit; font-size: 14px; line-height: 1.45; padding: 10px; border: 1px solid var(--line, #dde3e6); border-radius: 8px; resize: vertical; }
/* Quick answers */
.qa { max-width: 760px; }
.qa-item { padding: 18px 0; border-top: 1px solid var(--line, #dde3e6); }
.qa-item h2 { font-size: 1.15rem; margin: 0 0 8px; }
.qa-item h2 a { color: inherit; text-decoration: none; display: block; padding: 4px 0; }
.qa-item h2 a:hover { text-decoration: underline; }
.qa-answer { font-size: 1.1rem; line-height: 1.55; }
.qa-more { padding-left: 1.2em; line-height: 1.8; }
.condo-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0; }
.condo-facts dt { font-weight: 600; }
.condo-facts dd { margin: 0; }
.quiz-results { margin-top: 28px; }
.quiz-list { padding-left: 1.3em; }
.quiz-list h3 { margin: 14px 0 4px; font-size: 1.1rem; }
.quiz-list ul { margin: 0; padding-left: 1.1em; line-height: 1.6; }
.rec-codes { columns: 2; list-style: none; padding: 0; }
.ts-key { display: inline-block; margin-top: 4px; font-size: 15px; letter-spacing: .5px; }
.ts-key span { white-space: nowrap; }

/* ----- Occasions: the 3D header picture (static/seasons.js), stripes and the greeting line ----- */
.site-head .fx3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.site-head.fx3d-on > .fx { display: none; }
.fx-stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 1; pointer-events: none; }
.fx-stripe-pride { background: linear-gradient(90deg, #E40303, #FF8C00, #FFED00, #008026, #004DFF, #750787); }
.fx-stripe-orange { background: #E8761E; }
.ribbon { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center;
  font-size: 13px; line-height: 1.3; padding: 4px 16px; background: var(--rb, #F2A65A); color: var(--rf, #0B2A36); }
.ribbon a { color: inherit; font-weight: 600; text-decoration: underline; display: inline-block; padding: 4px 0; }
.ribbon-art { flex: none; }
.ribbon .flame { fill: #F5C518; animation: rb-flicker 1.2s ease-in-out 14 both; }
@keyframes rb-flicker { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.ribbon-holidays, .ribbon-stpat { --rb: #2F7A57; --rf: #FFFFFF; }
.ribbon-winter { --rb: #DCE9EF; --rf: #0B2A36; }
.ribbon-hanukkah, .ribbon-passover, .ribbon-roshhashanah { --rb: #1F4E8C; --rf: #FFFFFF; }
.ribbon-christmas { --rb: #8E2A1F; --rf: #FFFFFF; }
.ribbon-kwanzaa { --rb: #1E5E3A; --rf: #FFFFFF; }
.ribbon-newyear, .ribbon-fireworks, .ribbon-holi, .ribbon-music { --rb: #F2A65A; --rf: #0B2A36; }
.ribbon-lunar { --rb: #A3241B; --rf: #FFE6A8; }
.ribbon-ramadan { --rb: #183F50; --rf: #F5D58A; }
.ribbon-eid { --rb: #1E5E3A; --rf: #F5D58A; }
.ribbon-valentine { --rb: #B53A5B; --rf: #FFFFFF; }
.ribbon-spring { --rb: #F7D6E2; --rf: #5A2338; }
.ribbon-easter { --rb: #E8E2F4; --rf: #3A2A5C; }
.ribbon-vaisakhi { --rb: #E8901F; --rf: #0B2A36; }
.ribbon-pride, .ribbon-remembrance { --rb: #F3F6F7; --rf: #0B2A36; }
.ribbon-summer { --rb: #F5C518; --rf: #0B2A36; }
.ribbon-canada { --rb: #C8102E; --rf: #FFFFFF; }
.ribbon-autumn, .ribbon-halloween { --rb: #E07A2E; --rf: #0B2A36; }
.ribbon-orange { --rb: #E8761E; --rf: #0B2A36; }
.ribbon-diwali { --rb: #7A2E0E; --rf: #FFE6A8; }
.ribbon-heritage { --rb: #E3EBEE; --rf: #0B2A36; }
@media (prefers-reduced-motion: reduce) { .ribbon .flame { animation: none; } }
@media print { .site-head .fx3d, .fx-stripe, .ribbon { display: none !important; } }
.occ-list { list-style: none; padding: 0; margin: 10px 0; max-height: 340px; overflow-y: auto; }
.occ-list li { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.occ-list input { width: 20px; height: 20px; flex: none; }
/* Diwali lamps get their own strip on phones, so they never sit over the brokerage line */
@media (max-width: 760px) { .site-head.fx3d-on[data-season="diwali"] { padding-bottom: 26px; } }
.ok-box { background: #E6F4EC; color: #0B2A36; border-left: 4px solid #2F7A57; padding: 12px 14px; border-radius: 6px; }
.fb-list { list-style: none; padding: 0; } .fb-list li { padding: 10px 0; border-top: 1px solid var(--line, #dde3e6); }
.fb-list form { margin-top: 6px; }
/* Chart labels: near an edge, the label grows inward so it never runs off the card */
.trend .tip.tip-start, .pchart .tip.tip-start { text-anchor: start; }
.trend .tip.tip-end, .pchart .tip.tip-end { text-anchor: end; }
/* With charts.js running, only the chosen month (.on) shows its crosshair and label. Phones keep :hover and :focus
   on earlier taps, so the plain hover rules would show several months at once. */
.trend svg.live .pt:not(.on) .dot:not(.end), .trend svg.live .pt:not(.on) .cross, .trend svg.live .pt:not(.on) .tip,
.pchart svg.live .pt:not(.on) .dot:not(.end), .pchart svg.live .pt:not(.on) .cross, .pchart svg.live .pt:not(.on) .tip { opacity: 0; }
.trend svg.live:not(.scrub) .endlabel, .trend svg.live:not(.scrub) .peak, .pchart svg.live:not(.scrub) .endlabel { opacity: 1; }
/* On phones the line under the chart shows the month, so the label inside the chart is left out */
@media (max-width: 600px) { svg[data-chart].live .tip { display: none; } }
/* ---- Phone tap targets and wrapping (QA phone sweep, 2026-11-09) ---- */
.consent label { padding: 12px 0; margin: -12px 0; }      /* 44 px tall to tap, same layout */
.gr-opt, .occ-list li { min-height: 44px; }
.occ-list li label { padding: 12px 0; }
.choice-q legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; }
.choice-q legend + * { clear: both; }
.foot-map strong { font-size: 12px; }
@media (max-width: 760px) { .foot-map a { min-height: 44px; } }
.mag-head h1 { overflow-wrap: anywhere; }
@media (max-width: 400px) { .mag-head h1:not(.cmp-h1):not(.st-h1) { font-size: clamp(40px, 13vw, 56px); } }
.wx-chip-gas { color: #C9D7DD; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; }
.wx-chip-gas .muted { color: #8FA9B3; }
@media (max-width: 600px) { .wx-chip-gas { display: none; } }   /* phones: in the footer's Explore list instead */

/* TRESA review: outside links are marked; client records and the agreement gate in admin */
a[href^="http"]:not([href*="homesinburlington.onrender.com"]):not([href*="burlingtonhomehub"]):not(.btn)::after { content: "\00a0\2197"; content: "\00a0\2197" / " (another site)"; font-size: 0.85em; }
.rec-list { list-style: none; padding: 0; margin: 0 0 12px; }
.rec-list li { padding: 8px 0; border-bottom: 1px solid var(--line, #E3E8EA); }
.rec-detail { white-space: pre-wrap; margin: 6px 0 0; }
.adm-gate { background: #FFF4D6; border-radius: 8px; padding: 10px 14px; }
.foot-map a[href^="http"] { display: block; padding: 6px 0; }
.disc-head { font-size: 16px; margin: 4px 0 6px; }
/* the Music button on games without a Sound button */
.game-music { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; padding-bottom: 4px; }
.game-music[hidden] { display: none; }
/* All Fours: the hand tracker, the end-of-hand count and the jack moments */
.af-t0 { color: #8FD3FF; } .af-t1 { color: #FFB46B; } .ct-msg b.af-t0, .ct-msg b.af-t1 { font-weight: 800; }
.af-track { position: absolute; right: 2px; top: 0; z-index: 2; width: 122px; padding: 5px 7px; border-radius: 10px; background: rgba(11,15,18,.62); font: 600 12px/1.3 'Public Sans', system-ui, sans-serif; color: var(--on-ink); pointer-events: none; }
.af-track .af-head { font-size: 11px; margin-bottom: 1px; }
@media (max-width: 360px) { .af-track { top: auto; bottom: 2px; left: 2px; right: auto; width: 112px; } }
.af-track .af-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-count { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; width: min(300px, 86%); padding: 10px 14px; border-radius: 14px; background: rgba(11,15,18,.88); border: 1px solid rgba(245,197,24,.5); box-shadow: 0 10px 30px rgba(0,0,0,.45); font: 600 13px/1.4 'Public Sans', system-ui, sans-serif; color: var(--on-ink); display: flex; flex-direction: column; gap: 3px; }
.af-head { font: 800 12px 'Public Sans', system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #F5C518; margin-bottom: 2px; }
.af-count .af-head { text-align: center; font-size: 14px; }
.af-row strong { color: var(--white); margin-right: 5px; }
.af-row.sum { margin-top: 4px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.2); }
.af-chip { float: right; font: 800 12px 'Public Sans', system-ui, sans-serif; font-style: normal; padding: 0 7px; border-radius: 999px; color: #0B2A36; animation: af-chip .5s ease-out; }
.af-bg0 { background: #8FD3FF; } .af-bg1 { background: #FFB46B; }
.af-in { animation: af-slide .35s ease-out; }
.af-flash { animation: af-flash 1.1s ease-out; border-radius: 4px; }
.af-anchor { position: relative; }
.af-bub { position: absolute; z-index: 7; white-space: nowrap; padding: 5px 10px; border-radius: 12px; background: #FFFFFF; color: #0B2A36; font: 800 12px 'Public Sans', system-ui, sans-serif; box-shadow: 0 4px 12px rgba(0,0,0,.35); border: 2px solid #8FD3FF; pointer-events: none; animation: af-bub .3s ease-out; }
.af-bd1 { border-color: #FFB46B; }
.af-bub.hot { background: #C0262D; color: #F5C518; font-size: 14px; border-color: #F5C518; }
.af-bub-0 { bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; }
.af-bub-1, .af-bub-2 { left: 100%; top: 0; margin-left: 4px; }
.af-bub-3 { right: 100%; top: 0; margin-right: 4px; }
.af-bub::after { content: ""; position: absolute; width: 8px; height: 8px; background: inherit; border: inherit; border-width: 0 2px 2px 0; }
.af-bub-0::after { left: 50%; bottom: -6px; transform: translateX(-50%) rotate(45deg); }
.af-bub-1::after, .af-bub-2::after { left: -6px; top: 9px; transform: rotate(135deg); }
.af-bub-3::after { right: -6px; top: 9px; transform: rotate(-45deg); }
@keyframes af-bub { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes af-slide { from { opacity: 0; translate: -18px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes af-chip { 0% { scale: 0; } 70% { scale: 1.35; } 100% { scale: 1; } }
@keyframes af-flash { 0% { background: rgba(245,197,24,.75); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .af-bub, .af-in, .af-chip, .af-flash { animation: none; } }
.af-burst { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 6; overflow: hidden; pointer-events: none; text-align: center; min-width: 220px; max-width: 92%; padding: 12px 18px; border-radius: 14px; background: rgba(11,42,54,.92); color: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: af-pop .35s ease-out; }
.af-burst strong { display: block; position: relative; z-index: 1; color: var(--white); font: 800 20px 'Public Sans', system-ui, sans-serif; }
.af-burst span { display: block; position: relative; z-index: 1; margin-top: 4px; font: 600 13px 'Public Sans', system-ui, sans-serif; color: var(--on-ink); }
.af-burst.big { background: #C0262D; padding: 18px 22px 20px; min-width: 270px; animation: af-pop .4s ease-out, af-shake .5s .4s ease-in-out 2; }
.af-burst.big strong { font-size: 30px; letter-spacing: .06em; color: #F5C518; white-space: nowrap; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.af-burst.big span { color: var(--white); }
.af-bit { position: absolute; z-index: 0; top: -10px; width: 7px; height: 11px; border-radius: 2px; animation: af-fall 1.6s linear forwards; }
.af-bit.c0 { background: #F5C518; } .af-bit.c1 { background: #F2A65A; } .af-bit.c2 { background: #3E7A4A; } .af-bit.c3 { background: #E9EEF1; } .af-bit.c4 { background: #14566A; }
@keyframes af-pop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes af-shake { 0%, 100% { transform: translate(-50%, -50%) rotate(0); } 25% { transform: translate(-50%, -50%) rotate(-3deg); } 75% { transform: translate(-50%, -50%) rotate(3deg); } }
@keyframes af-fall { to { transform: translateY(140px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .af-burst, .af-burst.big { animation: none; } .af-bit { display: none; } }
.post-link { display: inline; }
.link-btn { display: inline-block; min-height: 24px; background: none; border: 0; padding: 4px 0; margin: 0; font: inherit; color: var(--link, inherit); text-decoration: underline; cursor: pointer; text-align: left; }
/* All Fours signs: folded under one button; when open they scroll inside a short panel instead of stretching the page */
.af-signs[open] { max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; }
.af-solo .af-sign-row { margin-top: 2px; }
/* The pack on the table in front of the dealer, with the kicked card beside it */
.ct-info.ct-pack { position: absolute; z-index: 1; width: 64px; transform: translate(-50%, -50%); background: none; padding: 0; transition: left .5s ease, top .5s ease; }
.ct-pack[data-at="s"] { left: 70%; top: 79%; } .ct-pack[data-at="n"] { left: 30%; top: 23%; }
.ct-pack[data-at="w"] { left: 21%; top: 56%; } .ct-pack[data-at="e"] { left: 79%; top: 44%; }
.ct-pack-stack { position: relative; width: 36px; height: 50px; margin: 0 auto 3px; }
.ct-pack-stack > .cd { position: absolute; left: 0; top: 0; width: 36px; height: 50px; margin: 0; box-shadow: 1px 1px 0 #E9EEF1, 2px 2px 0 #0B2A36, 3px 3px 0 #E9EEF1, 4px 4px 0 #0B2A36, 5px 6px 8px rgba(0,0,0,.4); }
.ct-pack-stack > .ct-pack-kick { left: 16px; top: 8px; transform: rotate(14deg); box-shadow: 0 3px 8px rgba(0,0,0,.45); animation: ct-flip .35s ease-out; }
.ct-pack-label { display: block; margin-top: 8px; font: 700 11px 'Public Sans', system-ui, sans-serif; color: var(--white); text-shadow: 0 1px 2px rgba(0,0,0,.7); white-space: nowrap; }
.ct-flying { position: absolute; z-index: 4; width: 36px; height: 50px; margin: 0; pointer-events: none; }
@keyframes ct-flip { from { transform: rotate(14deg) scaleX(0); } to { transform: rotate(14deg) scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .ct-pack-kick { animation: none; } .ct-info.ct-pack { transition: none; } }
.vid-link { width: 100%; max-width: 420px; min-height: 40px; padding: 6px 10px; font: inherit; font-size: 14px; border: 1px solid #9AA9B0; border-radius: 6px; }
.vid-send { display: flex; flex-wrap: wrap; gap: 8px; }
.vid-send .btn { min-height: 44px; }
/* many choices at once (Spades bids and the like): small buttons that fit in a row or two */
.ct-btns.compact { gap: 5px; } .ct-btns.compact .btn { padding: 7px 11px; min-height: 36px; font-size: 14px; }
.af-chip.bad { background: #E9EEF1; color: #C0262D; }
/* phones: keep the pack off the dealer's own cards and name */
@media (max-width: 420px) { .ct-pack[data-at="w"] { left: 32%; } .ct-pack[data-at="n"] { left: 40%; top: 30%; } .ct-pack[data-at="e"] { left: 68%; } }
/* trackers (QA 11-10): top-left, clear of North's and East's labels; rows wrap instead of cutting off */
.af-track { left: 2px; right: auto; width: 132px; }
.af-track .af-row { white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 360px) { .af-track { top: auto; bottom: 2px; left: 2px; width: 120px; } }
@media (max-width: 420px) and (min-width: 361px) { .af-track { width: 120px; } }
/* phones: the tracker folds into a small chip at the top-left; tap to open it over the table (QA 11-10) */
.af-track.open .af-head::after { content: " \25B4"; }
@media (max-width: 480px) {
  .af-track { top: 0; bottom: auto; left: 2px; width: auto; max-width: 150px; padding: 4px 9px; pointer-events: auto; cursor: pointer; z-index: 6; }
  .af-track:not(.open) .af-row { display: none; }
  .af-track:not(.open) .af-head { margin: 0; }
  .af-track:not(.open) .af-head::after { content: " \25BE"; }
  .af-track.open { width: 150px; background: rgba(11,15,18,.9); box-shadow: 0 6px 18px rgba(0,0,0,.45); }
}
/* friends tables: the jack banner sits over the screen, so table redraws don't wipe it */
.af-burst.tb-burst { position: fixed; top: 40%; z-index: 60; }
.af-track[role=button]:focus-visible { outline: 2px solid #E9EEF1; outline-offset: 2px; }
/* Open seats switch (host, at the table and on the new-table form) */
.tb-public { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 6px 0; }
.tb-public input { width: auto; margin: 0; }
.tb-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tb-filter a { padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; }
.tb-filter a[aria-current] { background: #1F3A4D; color: #fff; border-color: #1F3A4D; }
.tb-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.tb-quick label { font-weight: 600; margin: 0; }
.tb-quick select { width: auto; }
.tb-quick p { flex-basis: 100%; margin: 0; }
/* Turn timer and "away" tag at friends tables */
.tb-timer { display: block; width: 100%; max-width: 90px; height: 4px; margin: 3px auto 0; background: rgba(255,255,255,.22); border-radius: 2px; overflow: hidden; }
.tb-timer i { display: block; height: 100%; background: #F2C14E; transform-origin: left center; transform: scaleX(var(--from, 1)); animation: tb-shrink linear forwards; }
@keyframes tb-shrink { from { transform: scaleX(var(--from, 1)); } to { transform: scaleX(0); } }
.tb-mytimer { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 4px 0; }
.tb-mytimer .tb-timer { max-width: 180px; margin: 0; }
.ct-seat.away { opacity: .7; }
.tb-away { display: block; font-size: 11px; color: #F2C14E; }
@media (prefers-reduced-motion: reduce) { .tb-timer i { animation: none; } }
.tb-stats { border-collapse: collapse; font-size: 14px; }
.tb-stats th, .tb-stats td { padding: 4px 10px; text-align: left; border-bottom: 1px solid rgba(0,0,0,.1); }
/* Team colours on score tiles and seats (blue = team 1, orange = team 2, as in solo All Fours), and the dealer chip */
.sb-tile.sb-t0 { box-shadow: inset 4px 0 0 #3B8FD9; }
.sb-tile.sb-t1 { box-shadow: inset 4px 0 0 #E8893A; }
.ct-seat.tm0 .ct-name, .ct-you.tm0 .ct-name { border-bottom: 3px solid #3B8FD9; }
.ct-seat.tm1 .ct-name, .ct-you.tm1 .ct-name { border-bottom: 3px solid #E8893A; }
.tb-dealer { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #F5C518; color: #1B1F21; font: 800 11px 'Public Sans', system-ui, sans-serif; }
.tb-watching { color: var(--on-ink, #cfd8dc); }
/* Ludi / Ludo board */
.ld-felt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; min-height: 0; }
.ld-board { position: relative; width: min(100%, 440px); aspect-ratio: 1; background: #F4EFE3; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .4s ease; }
.ld-sq { position: absolute; width: calc(100% / 15); height: calc(100% / 15); box-sizing: border-box; border: 1px solid rgba(0,0,0,.18); background: #fff; }
.ld-yard { position: absolute; width: 40%; height: 40%; border-radius: 8px; opacity: .85; }
.ld-mid { position: absolute; top: 40%; left: 40%; width: 20%; height: 20%; background: conic-gradient(#3B8FD9 0 25%, #F5C518 0 50%, #3E9B5A 0 75%, #E2553D 0); clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); }
.ld-star { background: #FFF6CC; }
.ld-star::after { content: "\2605"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: #B08900; }
.ld-sq.ld-c0, .ld-yard.ld-c0 { background: #3B8FD9; } .ld-sq.ld-c1, .ld-yard.ld-c1 { background: #F5C518; }
.ld-sq.ld-c2, .ld-yard.ld-c2 { background: #3E9B5A; } .ld-sq.ld-c3, .ld-yard.ld-c3 { background: #E2553D; }
.ld-piece { position: absolute; width: 6.6%; height: 6.6%; min-width: 24px; min-height: 24px; translate: -50% -50%; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.45); transition: top .35s ease, left .35s ease; z-index: 2; }
.ld-piece.ld-c0 { background: #1F5FA0; } .ld-piece.ld-c1 { background: #C79A00; } .ld-piece.ld-c2 { background: #23703B; } .ld-piece.ld-c3 { background: #B23423; }
button.ld-piece.ok { cursor: pointer; outline: 3px solid #FFFFFF; animation: ld-pulse 1s ease-in-out 4; z-index: 3; }
button.ld-piece:focus-visible { outline: 3px solid #1B1F21; }
.ld-piece.chosen { outline: 3px solid #1B1F21; }
.ld-piece.moved { box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 2px 4px rgba(0,0,0,.45); }
@keyframes ld-pulse { 50% { box-shadow: 0 0 0 6px rgba(255,255,255,.55), 0 2px 4px rgba(0,0,0,.45); } }
.ld-dice { display: flex; gap: 8px; font-size: 44px; line-height: 1; color: #fff; min-height: 44px; }
.ld-die.used { opacity: .35; }
.ld-players { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0; }
.ld-p { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 4px 6px; border-radius: 10px; border-top: 4px solid; font: 700 12px 'Public Sans', system-ui, sans-serif; background: rgba(11,15,18,.35); color: var(--on-ink, #E9EEF1); }
.ld-p.ld-c0 { border-color: #3B8FD9; } .ld-p.ld-c1 { border-color: #F5C518; } .ld-p.ld-c2 { border-color: #3E9B5A; } .ld-p.ld-c3 { border-color: #E2553D; }
.ld-p.on { box-shadow: 0 0 0 2px #F5C518; }
.ld-p .ct-av svg, .ld-p .ct-av canvas { width: 40px; height: 40px; }
@media (prefers-reduced-motion: reduce) { button.ld-piece.ok { animation: none; } .ld-piece, .ld-board { transition: none; } }
.ct-felt.ld-felt, .ct[class*="room-"] .ct-felt.ld-felt { height: auto; }
.ld-die { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: #fff; color: #1B1F21; font-size: 34px; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.ld-dice { font-size: inherit; min-height: 40px; }
@media (max-width: 480px) { .ld-players { flex-wrap: nowrap; gap: 4px; } .ld-p { min-width: 0; flex: 1 1 0; padding: 4px 2px; } .ld-p .ct-name { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
/* Mahjong */
.mj-felt { height: auto !important; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.mj-others { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.mj-p { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; flex: 1 1 0; max-width: 220px; padding: 4px; border-radius: 10px; background: rgba(11,15,18,.35); color: var(--on-ink, #E9EEF1); font: 700 12px 'Public Sans', system-ui, sans-serif; }
.mj-p.on { box-shadow: 0 0 0 2px #F5C518; }
.mj-p .ct-av svg, .mj-p .ct-av canvas { width: 40px; height: 40px; }
.mj-pond { background: rgba(11,15,18,.45); border-radius: 12px; padding: 6px 8px; color: var(--on-ink, #E9EEF1); }
.mj-row { display: flex; gap: 6px; align-items: flex-start; margin: 3px 0; }
.mj-who { flex: 0 0 64px; font: 700 11px 'Public Sans', system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 4px; }
.mj-dis, .mj-melds { display: flex; flex-wrap: wrap; gap: 2px; }
.mj-melds { gap: 6px; justify-content: center; }
.mj-meld { display: inline-flex; gap: 1px; }
.mj-t { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 34px; height: 46px; padding: 0; border-radius: 6px; border: 1px solid #C9C2B0; background: linear-gradient(#FFFDF6, #EFE8D6); box-shadow: 0 2px 0 #B9B19B; color: #1B1F21; font: 800 18px/1 'Public Sans', system-ui, sans-serif; }
.mj-t.sm { width: 22px; height: 30px; font-size: 12px; border-radius: 4px; box-shadow: 0 1px 0 #B9B19B; }
.mj-t i { font-style: normal; font-size: 11px; font-weight: 700; margin-top: 2px; }
.mj-t.sm i { font-size: 8px; margin-top: 0; }
.mj-t.mj-d { color: #1F5FA0; } .mj-t.mj-b { color: #23703B; } .mj-t.mj-c { color: #B23423; }
.mj-t.mj-dr { color: #B23423; } .mj-t.mj-dg { color: #23703B; } .mj-t.mj-dw b { display: block; width: 55%; height: 45%; border: 2px solid #1F5FA0; border-radius: 3px; }
.mj-t.mj-dw i { color: #1F5FA0; font-size: 9px; } .mj-t.sm.mj-dw i { font-size: 6px; } .mj-hand .mj-t.mj-dw i { font-size: 8px; }
.mj-t.back { background: #2E7D6B; border-color: #1E5C4E; }
.mj-t.hot { outline: 2px solid #F5C518; }
.mj-hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin: 8px 0; }
.mj-hand .mj-t { width: 38px; height: 52px; font-size: 20px; }
.mj-hand .mj-t:disabled { opacity: 1; cursor: default; }
.mj-hand .mj-t.ok { cursor: pointer; }
.mj-hand .mj-t.ok:hover, .mj-hand .mj-t.ok:focus-visible { transform: translateY(-4px); outline: 2px solid #F5C518; }
.mj-hand .mj-t.drew { margin-left: 10px; box-shadow: 0 2px 0 #B9B19B, 0 0 0 2px #F5C518; }
.mj-you { position: static; display: flex; flex-direction: column; align-items: center; }
@media (max-width: 480px) { .mj-hand .mj-t { width: 24px; height: 36px; font-size: 14px; } .mj-hand .mj-t i { font-size: 9px; } .mj-hand { gap: 2px; } .mj-p .ct-name { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.mj-others, .mj-pond, .ld-board, .ld-dice { position: relative; z-index: 1; }
/* Play with friends: pick a game, then play now or start a table */
.tb-step { font-size: 20px; margin: 18px 0 8px; }
.tb-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tb-pick { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid rgba(11,42,54,.2); border-radius: 12px; text-decoration: none; color: inherit; background: #fff; }
.tb-pick:hover { border-color: #14566A; }
.tb-pick.on { border-color: #14566A; box-shadow: 0 0 0 2px #14566A inset; background: #EAF3F5; }
.tb-pick-trivia { background: #FFF6DB; }
.tb-badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #3E7A4A; color: #fff; }
.tb-panel { margin-top: 8px; }
.tb-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 10px 0; }
.tb-way { border: 1px solid rgba(11,42,54,.2); border-radius: 12px; padding: 14px; background: #fff; }
.tb-way h3 { margin: 0 0 4px; font-size: 18px; }
.tb-way form { display: flex; flex-direction: column; gap: 6px; }
.tb-way .btn { align-self: flex-start; margin-top: 4px; }
.tb-quick { display: flex; } .tb-quick label { font-weight: 600; } .tb-quick select { width: auto; }
.tb-more summary { cursor: pointer; font-weight: 600; margin: 4px 0; }
.tb-invites { border: 2px solid #3E7A4A; border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.tb-invites h2 { font-size: 18px; margin: 0 0 6px; }
.tb-lobby-list h3 { font-size: 17px; margin: 14px 0 6px; }
.tb-mine { margin-top: 18px; }
.tb-box { border-top: 1px solid rgba(11,42,54,.15); padding: 10px 0; }
.tb-box > summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.tb-way form { align-items: stretch; flex-wrap: nowrap; }
.tb-way form > label:not(.tb-public) { font-weight: 600; margin: 0; text-align: left; }
.tb-way .tb-public { justify-content: flex-start; }
.tb-way .tb-more[open] { display: flex; flex-direction: column; gap: 6px; }
/* Games room lobby: room scene, little tables for each game, felt counter */
.tb-scene { margin: 4px 0 14px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 24px rgba(11,42,54,.25), inset 0 0 0 1px rgba(0,0,0,.1); }
.tb-scene svg { display: block; width: 100%; height: clamp(130px, 24vw, 210px); }
.tb-picker { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 10px; padding: 12px; border-radius: 14px; background: linear-gradient(#EFE3CE, #E2CCA8); box-shadow: inset 0 2px 6px rgba(94,59,32,.25); }
.tb-pick { align-items: center; text-align: center; padding: 10px 8px 12px; background: linear-gradient(#FFFDF8, #F7EFE1); border-color: rgba(94,59,32,.25); box-shadow: 0 3px 0 rgba(94,59,32,.25); transition: transform .15s ease, box-shadow .15s ease; }
.tb-pick:hover, .tb-pick:focus-visible { transform: translateY(-3px); box-shadow: 0 7px 12px rgba(94,59,32,.25); }
.tb-pick.on { background: radial-gradient(120% 80% at 50% 0%, #FFF3C9, #F7EFE1 70%); border-color: #B9814E; box-shadow: 0 0 0 2px #B9814E inset, 0 6px 12px rgba(94,59,32,.3); }
.tb-pick-trivia { background: linear-gradient(#FFF8E0, #F9EBC0); }
.tb-badge { align-self: center; }
.tb-tbl { position: relative; display: block; width: 100%; max-width: 120px; height: 64px; margin: 0 auto 4px; }
.tb-tbl::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 2px; height: 30px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #3C9A62, #1F6B41 75%); border: 4px solid #8A5A33; box-shadow: 0 5px 0 #5E3B20, 0 9px 10px rgba(0,0,0,.25); }
.tb-tbl-ludi::before { background: radial-gradient(ellipse at 50% 40%, #FFF8E8, #E9DCC3 75%); }
.tb-tbl-mahjong::before { background: radial-gradient(ellipse at 50% 40%, #3D8FA3, #1F5F70 75%); }
.tb-tbl-trivia::before { background: radial-gradient(ellipse at 50% 40%, #2C4F7A, #18304D 75%); }
.tb-ico { position: absolute; left: 50%; bottom: 12px; width: 64px; height: 44px; translate: -50% 0; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); fill: #1B1F21; }
.tb-pick:hover .tb-ico, .tb-pick.on .tb-ico { bottom: 16px; }
.tb-ico { transition: bottom .15s ease; }
.tb-counter { margin-top: 16px; padding: 4px 14px 14px; border-radius: 16px; background: linear-gradient(#24604A, #1A4A39); box-shadow: inset 0 0 0 6px #8A5A33, inset 0 0 0 8px #5E3B20, 0 10px 22px rgba(11,42,54,.25); color: #F3F6F7; }
.tb-counter > .tb-step, .tb-counter > p.muted { color: #F3F6F7; padding-left: 4px; }
.tb-counter > p.muted { opacity: .9; }
.tb-counter .tb-way { color: var(--ink); box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.tb-counter .tb-lobby-list { background: #fff; color: var(--ink); border-radius: 12px; padding: 2px 14px 10px; margin-top: 10px; }
.tb-counter .tb-howto { margin-top: 10px; color: var(--ink); }
.tb-counter .tb-safe { color: #E3EBEE; }
.tb-counter .tb-safe.muted { color: #E3EBEE; }
.tb-open .tb-who { font-weight: 600; }
@media (max-width: 480px) { .tb-picker { grid-template-columns: repeat(3, 1fr); padding: 8px; gap: 6px; } .tb-pick { padding: 6px 4px 8px; font-size: 13px; line-height: 1.25; } .tb-tbl { height: 54px; } .tb-tbl::before { height: 24px; border-width: 3px; } .tb-ico { width: 54px; height: 37px; bottom: 9px; } .tb-pick .small { font-size: 11px; } .tb-counter { padding: 2px 8px 10px; } }
@media (prefers-reduced-motion: reduce) { .tb-pick, .tb-ico { transition: none; } .tb-pick:hover, .tb-pick:focus-visible { transform: none; } }
/* Step 2: the game's felt, a name card and two playing-card buttons */
.tb-head { display: flex; gap: 12px; align-items: center; padding-top: 6px; }
.tb-head .tb-step { margin: 6px 0 2px; color: #FFF8EA; }
.tb-head p { margin: 0; color: #E3EBEE; }
.tb-head-ico { flex: 0 0 auto; width: 76px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #3C9A62, #1F6B41 75%); border: 4px solid #8A5A33; box-shadow: 0 4px 0 #5E3B20; }
.tb-head-ico .tb-ico { position: static; translate: none; width: 60px; height: 42px; }
.tb-change { color: #FFE7A8; white-space: nowrap; }
.tb-change:hover { color: #fff; }
.tb-seat { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 6px; }
.tb-place { align-self: center; width: min(100%, 320px); display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 10px; background: linear-gradient(#FFFDF6, #F4EAD6); color: var(--ink); border-radius: 4px; box-shadow: 0 6px 0 #D9C8A6, 0 10px 16px rgba(0,0,0,.35); transform: perspective(500px) rotateX(8deg); text-align: center; }
.tb-place label { font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8A5A33; margin: 0; }
.tb-place input { text-align: center; font: 700 22px var(--display); border: 0; border-bottom: 2px dashed #B9814E; border-radius: 0; background: transparent; padding: 4px; }
.tb-place input:focus { outline: 2px solid #F5C518; outline-offset: 2px; }
.tb-place .small { color: #6B5A43; }
.tb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tb-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 14px 30px; min-height: 200px; border: 0; border-radius: 14px; background: linear-gradient(160deg, #FFFFFF, #F6EFE2); color: var(--ink); text-align: center; cursor: pointer; font: inherit; box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 8px 18px rgba(0,0,0,.35); transition: transform .15s ease, box-shadow .15s ease; }
.tb-card-now { transform: rotate(-2deg); }
.tb-card-friends { transform: rotate(2deg); }
.tb-card:hover, .tb-card:focus-visible { transform: translateY(-6px) rotate(0); box-shadow: 0 0 0 3px #F5C518, 0 14px 24px rgba(0,0,0,.4); outline: none; }
.tb-card strong { font: 800 21px/1.15 var(--display); }
.tb-card span:not(.tb-pip) { font-size: 14px; line-height: 1.35; color: var(--body); }
.tb-card-art { width: 84px; height: 63px; margin-bottom: 4px; }
.tb-pip { position: absolute; top: 8px; left: 11px; font: 800 18px/1 var(--display); color: #B23423; }
.tb-card-friends .tb-pip { color: #1B1F21; }
.tb-pip.b { top: auto; left: auto; bottom: 8px; right: 11px; transform: rotate(180deg); }
.tb-adult { align-self: center; color: #F3F6F7; }
.tb-seat .tb-more { align-self: center; width: min(100%, 520px); background: rgba(0,0,0,.18); border-radius: 12px; padding: 4px 12px; }
.tb-seat .tb-more summary { color: #FFE7A8; font-weight: 700; cursor: pointer; min-height: 40px; display: flex; align-items: center; }
.tb-seat .tb-more[open] { display: flex; flex-direction: column; gap: 6px; background: #fff; color: var(--ink); padding-bottom: 12px; }
.tb-seat .tb-more[open] summary { color: var(--link); }
.tb-counter .tb-safe { text-align: center; color: #E3EBEE; }
.tb-counter .tb-howto { background: #FFFBEF; }
/* Step 3: open tables drawn on a wood floor */
.tb-floor { margin: 18px 0 8px; padding: 6px 14px 16px; border-radius: 16px; background: repeating-linear-gradient(90deg, #A06A3F 0 46px, #94603A 46px 48px, #A8744A 48px 94px, #94603A 94px 96px); box-shadow: inset 0 0 0 6px #6A4226, 0 10px 22px rgba(11,42,54,.25); color: #FFF8EA; }
.tb-floor .tb-step { color: #FFF8EA; text-shadow: 0 2px 3px rgba(0,0,0,.35); }
.tb-tables { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tb-mini-link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: rgba(43,24,12,.35); color: #FFF8EA; text-decoration: none; transition: background .15s ease; }
.tb-mini-link:hover, .tb-mini-link:focus-visible { background: rgba(43,24,12,.55); color: #fff; }
.tb-mini-link strong { color: #FFE7A8; text-decoration: underline; text-underline-offset: 3px; }
.tb-mini-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-mini-text .small { color: #F3E6D0; }
.tb-free-seats { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #3E7A4A; color: #fff; }
.tb-mini { position: relative; flex: 0 0 auto; width: 92px; height: 92px; }
.tb-mini::before { content: ""; position: absolute; inset: 20px; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #3C9A62, #1F6B41 75%); border: 4px solid #8A5A33; box-shadow: 0 4px 0 #5E3B20, 0 8px 10px rgba(0,0,0,.3); }
.tb-chip { position: absolute; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font: 800 13px/1 'Public Sans', system-ui, sans-serif; color: #fff; box-shadow: 0 2px 3px rgba(0,0,0,.35); }
.tb-chip.at0 { top: 0; left: 32px; } .tb-chip.at1 { top: 32px; right: 0; } .tb-chip.at2 { bottom: 0; left: 32px; } .tb-chip.at3 { top: 32px; left: 0; }
.tb-chip-p.at0 { background: #1F5FA0; } .tb-chip-p.at1 { background: #C27C0E; } .tb-chip-p.at2 { background: #23703B; } .tb-chip-p.at3 { background: #B23423; }
.tb-chip-o { background: #5B6B73; } .tb-chip-c { background: #3A4A52; font-size: 15px; }
.tb-chip-f { background: rgba(255,255,255,.15); border: 2px dashed #FFE7A8; color: #FFE7A8; box-shadow: none; }
.tb-empty { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; background: rgba(43,24,12,.35); }
.tb-empty p { margin: 0; color: #FFF8EA; }
.tb-watch { margin-top: 12px; padding: 4px 12px 8px; border-radius: 12px; background: #FFFBEF; color: var(--ink); }
@media (max-width: 480px) { .tb-cards { gap: 10px; } .tb-card { padding: 22px 8px 26px; min-height: 180px; } .tb-card strong { font-size: 18px; } .tb-card span:not(.tb-pip) { font-size: 13px; } .tb-card-art { width: 64px; height: 48px; } .tb-head-ico { width: 62px; height: 50px; } .tb-head-ico .tb-ico { width: 48px; height: 34px; } .tb-floor { padding: 4px 8px 12px; } }
@media (prefers-reduced-motion: reduce) { .tb-card, .tb-mini-link { transition: none; } .tb-card:hover, .tb-card:focus-visible { transform: none; } }
.form.tb-seat { background: transparent; padding: 0; border-radius: 0; gap: 14px; }
.form.tb-seat .tb-place input[type=text] { border: 0; border-bottom: 2px dashed #B9814E; border-radius: 0; background: transparent; box-shadow: none; text-align: center; font: 700 22px var(--display); }
.form.tb-seat .tb-adult { justify-content: center; text-align: left; font-weight: 600; color: #F3F6F7; margin: 0; }
.form.tb-seat .tb-more[open] label { color: var(--ink); }
.tb-cards { width: min(100%, 620px); margin: 0 auto; }
.tb-seat .tb-more summary { list-style: none; } .tb-seat .tb-more summary::-webkit-details-marker { display: none; }
.tb-seat .tb-more summary::after { content: "+"; margin-left: auto; font-size: 22px; } .tb-seat .tb-more[open] summary::after { content: "\2212"; }
.tb-card-art { height: 68px; }
/* Games page: the Games Room entrance */
.g-friends .tb-scene { margin: 0 0 12px; }
.g-friends .tb-scene svg { height: clamp(110px, 22vw, 230px); }
.gr-live { color: #1E6B3A; }
.gr-enter { display: inline-block; margin: 6px 0 12px; text-decoration: none; }
.gr-picker { margin-top: 4px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.tb-panel-note { align-self: center; width: min(100%, 560px); margin: 0; }
.form.tb-seat { flex-wrap: nowrap; align-items: stretch; }
/* Played-card pile, sweep to the pile, riffle shuffle, dominoes wash */
.ct-pile { position: absolute; width: 44px; height: 60px; z-index: 1; pointer-events: none; }
.ct-pile .cd { position: absolute; left: 0; top: 0; transform: translate(calc(var(--k, 0) * 1px), calc(var(--k, 0) * -2px)) rotate(calc(var(--k, 0) * 3deg - 6deg)); }
.ct-pile.empty { border: 2px dashed rgba(255,255,255,.28); border-radius: 6px; width: 38px; height: 54px; }
.ct-ghost { position: absolute; z-index: 4; pointer-events: none; margin: 0; }
.ct-shuffle { position: absolute; left: 50%; top: 50%; width: 120px; height: 70px; translate: -50% -50%; z-index: 5; pointer-events: none; }
.ct-half { position: absolute; top: 4px; width: 44px; height: 60px; }
.ct-half-l { left: 10px; animation: ct-riffle-l .95s ease-in-out both; }
.ct-half-r { right: 10px; animation: ct-riffle-r .95s ease-in-out both; }
.ct-half .cd { position: absolute; left: 0; top: 0; transform: translateY(calc(var(--k, 0) * -2px)); }
@keyframes ct-riffle-l { 0% { transform: translateX(26px); } 25% { transform: translateX(0) rotate(-10deg); } 60% { transform: translateX(14px) rotate(-4deg); } 85%, 100% { transform: translateX(26px) rotate(0); opacity: 1; } }
@keyframes ct-riffle-r { 0% { transform: translateX(-26px); } 25% { transform: translateX(0) rotate(10deg); } 60% { transform: translateX(-14px) rotate(4deg); } 85%, 100% { transform: translateX(-26px) rotate(0); opacity: 1; } }
.ct-hand.deal.after-shuffle .cd { animation-delay: calc((var(--d, 0) + 7) * 45ms + 850ms); }
.dm-wash { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; z-index: 5; pointer-events: none; }
.dm-wash .dm { position: absolute; left: 0; top: 0; translate: -50% -50%; animation: dm-wash 1.2s ease-in-out both; animation-delay: calc(var(--k, 0) * 25ms); }
@keyframes dm-wash {
  0% { transform: rotate(calc(var(--k, 0) * 40deg)) translateX(10px) rotate(calc(var(--k, 0) * 17deg)); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: rotate(calc(var(--k, 0) * 40deg + 160deg)) translateX(46px) rotate(calc(var(--k, 0) * 17deg + 90deg)); }
  85% { transform: rotate(calc(var(--k, 0) * 40deg + 300deg)) translateX(24px) rotate(calc(var(--k, 0) * 17deg + 200deg)); opacity: 1; }
  100% { transform: rotate(calc(var(--k, 0) * 40deg + 330deg)) translateX(0) rotate(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .ct-half-l, .ct-half-r, .dm-wash .dm { animation: none; } .ct-hand.deal.after-shuffle .cd { animation: none; } }
/* All Fours signs step: save first, signs at a glance, changes folded away */
.tb-code-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.tb-code-chip { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.08); font-size: 13px; line-height: 1.25; min-width: 0; }
.tb-code-chip b { color: #F2A65A; font-size: 12px; }
.tb-code-chip.card b { color: #FFE7A8; }
.tb-code-more { margin-top: 6px; }
.tb-code-more summary { cursor: pointer; font-weight: 700; color: #FFE7A8; min-height: 40px; display: flex; align-items: center; }
.tb-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 6px 0 10px; }
.tb-code-grid .tb-code-row { display: flex; flex-direction: column; gap: 2px; margin: 0; min-width: 0; }
.tb-code-grid label { font-size: 12px; font-weight: 700; color: #F2A65A; }
.tb-code-grid select { font-size: 13px; padding: 6px 8px; min-height: 36px; width: 100%; }
.tb-codes .tb-code-acts { margin-top: 8px; }
@media (min-width: 640px) { .tb-code-sum, .tb-code-grid { grid-template-columns: 1fr 1fr 1fr; } }
.tb-code-sum[hidden] { display: none; }
.ct-pile.at-s { left: 24%; bottom: 4%; }
.ct-pile.at-ne { right: 20%; top: 26%; }
.ct-pile.at-se { right: 8%; bottom: 6%; }
.ct-pile.at-nw { left: 22%; top: 24%; }
.ct-pile.empty:not(.at-s) { visibility: hidden; }
.tb-start { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin: 6px 0 12px; border-radius: 12px; background: rgba(245,197,24,.12); border: 1px solid rgba(245,197,24,.45); }
.tb-start p { margin: 0; font-size: 15px; }
@media (max-width: 480px) { .ct-seat.ct-w .ct-tag, .ct-seat.ct-e .ct-tag { display: block; max-width: 84px; white-space: normal; text-align: center; line-height: 1.2; } }
/* Phones 360px and under: pull the side trick cards inward so West/East seat names stay readable */
@media (max-width: 360px) { .ct-mid { width: 86px; } .ct-slot-s, .ct-slot-n { left: 21px; } .ct-slot-w { left: 0; } .ct-slot-e { right: 0; } }
/* Games Room: continue banner, reopen card and the "Your tables" rows */
.tb-continue { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 16px; }
a.tb-card { text-decoration: none; }
.tb-card-again { box-shadow: 0 0 0 3px #2E8B57, 0 8px 18px rgba(0,0,0,.35); }
.tb-my { list-style: none; padding: 0; }
.tb-my-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(11,42,54,.08); }
.tb-my-main { flex: 1; min-width: 0; }
.tb-my-phase { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #E6F2EA; color: #1E5A35; font-size: 13px; font-weight: 700; }
.tb-my-who { display: block; }
.tb-my-row.done .tb-my-main > a { color: #44545A; }
.tb-my-row.done .tb-my-phase { background: #EEE; color: #555; }
.tb-my-leave { margin: 0; }
/* Ideas box in the Games Room */
.tb-idea-form { max-width: 560px; }
.tb-idea-kinds { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
.tb-idea-kinds legend { font-weight: 700; margin-bottom: 4px; }
.tb-idea-form textarea { width: 100%; }
.idea-note { max-width: 420px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tb-idea-msg { margin: 8px 0; padding: 10px 14px; border-radius: 8px; border-left: 4px solid #2E8B57; background: #E6F2EA; color: #1E3A2A; font-weight: 600; }
.tb-idea-msg.warn { border-left-color: var(--accent); background: #FFF4E5; color: var(--ink); }
/* Four cards in a row group read as 2x2 on wide screens instead of 3 + 1 */
@media (min-width: 700px) { .cards:has(> .card:nth-child(4):last-child) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones 360px and under: a tighter face-down fan at North so it clears the West and East names */
@media (max-width: 360px) { .ct[class*="room-"] .ct-n .ct-cards.fan .cd { margin-left: -25px; } .ct[class*="room-"] .ct-n .ct-cards.fan .cd:first-child { margin-left: 0; } }
/* Admin ideas list: one card per idea on phones */
@media (max-width: 640px) {
  .adm-ideas, .adm-ideas tbody, .adm-ideas tr, .adm-ideas td { display: block; width: 100%; }
  .adm-ideas tr:first-child { display: none; }
  .adm-ideas tr { padding: 10px 12px; border-bottom: 1px solid rgba(11,42,54,.15); }
  .adm-ideas td { border: 0; padding: 2px 0; }
  .adm-ideas td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; }
  .idea-note { max-width: none; }
}
@media (min-width: 641px) { .adm-ideas td:last-child { white-space: nowrap; } }
button[data-share][hidden] { display: none; }
/* Video panel under a private Games Room table */
.tv { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(11,42,54,.12); }
.tv[hidden] { display: none; }
.tv-title { font-size: 18px; margin: 0 0 6px; }
.tv-note { margin: 0 0 10px; }
.tv-adult { display: flex; margin: 0 0 10px; }
.tv-status { margin: 8px 0 0; }
.tv-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; max-width: 720px; }
.gv-tile { width: 100%; }
.gv-tile video { width: 100%; height: 100%; }
.tv-videos[hidden], .tv-bar[hidden], #tv .btn[hidden], .tv-adult[hidden], .tv-note[hidden] { display: none; }
