/* The Trust Fund · "Candlelit Pop" theme.
   Fonts are self-hosted (SIL Open Font License 1.1, via Fontsource): no third-party requests. */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('../fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'IM Fell English'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/im-fell-english-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --cream: #FFF5E4;
  --paper: #FFFFFF;
  --ink: #2A1B10;
  --muted: #6B5A45;
  --soft: #F2E4CC;
  --crimson: #C21F3A;
  --crimson-dark: #8E1229;
  --gold: #FFB320;
  --gold-light: #FFC94A;
  --emerald: #0B7A52;
  --oak: #4A1A14;
  --on-oak: #FBE7CC;
  --on-oak-muted: #F2D9B3;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --fell: 'IM Fell English', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --pop: 2.5px solid var(--ink);
  --pop-shadow: 4px 4px 0 var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.45; }
a { color: var(--crimson); }
a:hover { color: var(--crimson-dark); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 2px; }

/* ---- Textures ---- */
.oak {
  background-color: var(--oak);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255,170,40,.65), transparent 62%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 2px, transparent 2px 9px, rgba(255,255,255,.03) 9px 11px, transparent 11px 23px);
  color: var(--on-oak);
}
.tapestry {
  height: 14px;
  background-color: var(--crimson);
  background-image:
    linear-gradient(45deg, rgba(255,179,32,.75) 25%, transparent 25%, transparent 75%, rgba(255,179,32,.75) 75%),
    linear-gradient(45deg, rgba(255,179,32,.75) 25%, transparent 25%, transparent 75%, rgba(255,179,32,.75) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
}

/* ---- Layout ---- */
.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.top { padding: 18px 20px 6px; }
.brand { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.4px; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--gold); }
.wordmark:hover { color: var(--ink); }
.meta { font-size: 12px; color: var(--muted); }
.signin-link { font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px 16px; background: var(--ink); color: var(--cream); border-radius: 999px; }
.signin-link:hover { color: var(--gold); }
h1 { margin: 12px 0 2px; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.02; letter-spacing: -0.8px; }
h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.sub { margin: 0; font-size: 14px; color: var(--muted); }
main { flex: 1; padding: 10px 20px 28px; display: flex; flex-direction: column; gap: 12px; }

/* ---- Cards and banners ---- */
.card { background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 20px; padding: 12px 14px; }
.card.gold { border-width: 2.5px; box-shadow: 4px 4px 0 var(--gold); }
.card.dashed { background: #FFE3E3; border: 2px dashed var(--crimson); box-shadow: 3px 3px 0 var(--crimson); }
.banner { background: #FFF0CC; border: 2px solid var(--ink); border-radius: 16px; padding: 10px 12px; font-size: 13px; }
.banner.warn { background: var(--gold); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 9px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* My team hero: points, rank, bonus */
.hero-card { border-radius: 24px; overflow: hidden; border: var(--pop); box-shadow: var(--pop-shadow); }
.hero-card .inner { padding: 14px 18px 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.hero-card .label { font-size: 13px; color: var(--on-oak-muted); }
.hero-card .big { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; color: #FFF5E4; }
.hero-card .mid { font-family: var(--display); font-weight: 800; font-size: 28px; color: #FFF5E4; }
.hero-card .note { font-size: 12px; color: var(--on-oak-muted); }
.hero-card .winner { font-size: 13px; font-weight: 600; color: #FFF5E4; }

/* ---- Buttons ---- */
.btn { min-height: 46px; border-radius: 14px; border: 2px solid var(--ink); background: var(--paper); padding: 0 16px; font-weight: 600; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; display: inline-grid; place-items: center; color: var(--ink); }
.btn:hover { color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--gold); font-weight: 800; }
.btn.primary:disabled { background: var(--soft); color: var(--muted); box-shadow: none; border-color: #C9B79A; }
.btn.crimson { background: var(--crimson); color: var(--cream); }
.btn.outline-gold { color: var(--crimson); }
.btn.block { width: 100%; display: grid; }
.btn.big { min-height: 54px; font-size: 17px; border-width: 2.5px; box-shadow: var(--pop-shadow), 0 0 30px rgba(255,170,40,.5); }
.btn.link { border: none; box-shadow: none; min-height: 0; padding: 0; color: var(--crimson); text-decoration: underline; background: none; font-weight: 500; display: inline; }

/* ---- Pick your five ---- */
.tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tier { min-height: 50px; padding: 6px 4px; border-radius: 12px; background: var(--paper); border: 2px solid var(--ink); color: var(--muted); text-align: center; }
.tier.done { background: #FFF0CC; color: var(--ink); }
.tier.active { background: var(--gold); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.tier b { display: block; font-size: 11px; }
.tier span { display: block; font-size: 10px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player { width: 100%; min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); text-align: left; }
.player[aria-pressed="true"] { background: var(--gold); }
.player .name { font-weight: 600; }
.player .known { font-size: 12px; color: var(--muted); }
.player[aria-pressed="true"] .known { color: var(--ink); }
.dot { flex: none; width: 26px; height: 26px; border-radius: 13px; border: 2px solid var(--ink); display: grid; place-items: center; background: var(--paper); }
.player[aria-pressed="true"] .dot { background: var(--ink); }

/* ---- My team ---- */
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #F2E4CC; color: var(--ink); }
.pill.shield { background: #CFF0E0; color: #075A3C; }
.pill.out { background: #FFD3D9; color: var(--crimson-dark); }
.tierlabel { font-size: 11px; color: var(--muted); }
.pts { text-align: right; }
.pts b { font-family: var(--display); font-weight: 800; font-size: 22px; display: block; }
.pts small { font-size: 10px; color: var(--muted); }
.cap { width: 44px; height: 44px; border-radius: 22px; border: 2px solid #C9B79A; background: transparent; color: var(--muted); font-weight: 800; }
.cap[aria-pressed="true"] { border: none; color: var(--ink); background: radial-gradient(circle at 50% 40%, #FFF0B8, var(--gold) 55%, #E07B00); box-shadow: 0 0 20px rgba(255,170,40,.9); }

/* ---- Forms ---- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
input[type="text"], select { min-height: 46px; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); padding: 0 12px; font-size: 15px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 22px; height: 22px; margin-top: 0; accent-color: var(--crimson); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--crimson); color: var(--cream); font-weight: 600; box-shadow: 2px 2px 0 var(--ink); }

/* ---- Leagues ---- */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); gap: 4px; padding: 5px; border-radius: 18px; background: var(--paper); border: 2px solid var(--ink); overflow-x: auto; }
.tabs button { min-height: 40px; border: none; border-radius: 12px; background: transparent; color: var(--muted); font-size: 14px; white-space: nowrap; padding: 0 12px; }
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--ink); font-weight: 700; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
caption { text-align: left; font-size: 12px; color: var(--muted); padding-bottom: 8px; caption-side: top; }
th { font-size: 11px; color: var(--muted); font-weight: 600; text-align: left; padding: 8px 10px; background: #FFF0CC; }
td { padding: 10px; border-top: 1px solid #F0E4D2; vertical-align: middle; }
tr.me td { background: #FFE7A8; font-weight: 600; }
td.rank { width: 36px; color: var(--crimson); font-weight: 800; }
td.num, th.num { text-align: right; }
td.num { font-family: var(--display); font-weight: 800; font-size: 18px; }
.cell-sub { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ---- Bottom menu ---- */
.nav { position: sticky; bottom: 12px; margin: 0 14px 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 6px; border-radius: 22px; border: var(--pop); box-shadow: var(--pop-shadow); }
.nav a { min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-decoration: none; color: var(--on-oak-muted); font-size: 11px; border-radius: 16px; }
.nav a svg { width: 18px; height: 18px; }
.nav a[aria-current="page"] { background: var(--gold); color: var(--ink); font-weight: 700; }

/* ---- Homepage ---- */
.home main { padding-top: 4px; gap: 0; }
.hero { border-radius: 28px; overflow: hidden; border: var(--pop); box-shadow: var(--pop-shadow); }
.hero .inner { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { margin: 0; color: #FFF5E4; font-size: 50px; line-height: 0.96; letter-spacing: -1.2px; }
.hero h1 em { font-family: var(--fell); font-weight: 400; letter-spacing: 0; color: var(--gold-light); }
.hero p { margin: 0; font-size: 16px; color: var(--on-oak); }
.hero .lock { font-size: 13px; color: var(--on-oak-muted); text-align: center; }
.badge { font-size: 12px; font-weight: 700; background: var(--gold); color: var(--ink); padding: 6px 12px; border-radius: 999px; }
.candles { display: flex; gap: 10px; align-items: flex-end; }
.sample { background: var(--cream); color: var(--ink); border-radius: 18px; padding: 12px 14px; }
.sample .head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 6px; font-size: 14px; }
.sample .head span { font-size: 11px; color: var(--muted); }
.sample .r { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid #F0E4D2; font-size: 14px; }
.sample .r i { font-style: normal; font-weight: 800; color: var(--crimson); display: inline-block; width: 20px; }
.sample .r.you { background: var(--gold); border: none; border-radius: 10px; margin: 0 -8px; padding: 6px 8px; font-weight: 600; }
.sample .r.you i { color: var(--ink); }
.band { margin: 30px -20px 0; padding: 30px 20px; display: flex; flex-direction: column; gap: 14px; }
.band.plain { padding-bottom: 6px; }
.band h2 { font-size: 34px; letter-spacing: -0.8px; line-height: 1.02; }
.band p { margin: 0; font-size: 15px; }
.band.crimson { background: var(--crimson); color: var(--cream); }
.band.gold { background: var(--gold); }
.band.gold p { color: #3A2410; }
.band.emerald { background: var(--emerald); color: var(--cream); }
.band.emerald p { color: #E2F5EC; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.step { padding: 16px; border-radius: 20px; border: var(--pop); box-shadow: var(--pop-shadow); color: var(--ink); }
.step .n { font-family: var(--display); font-weight: 800; font-size: 28px; }
.step b { display: block; margin-top: 6px; }
.step span { display: block; font-size: 13px; line-height: 1.4; color: #4A3826; }
.tierchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tierchips span { padding: 10px 14px; border-radius: 999px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-size: 14px; font-weight: 600; }
.whispers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.whisper { padding: 16px; border-radius: 20px; background: var(--paper); border: var(--pop); box-shadow: var(--pop-shadow); }
.whisper b { font-family: var(--fell); font-style: italic; font-weight: 400; font-size: 19px; display: block; }
.whisper span { font-size: 13px; line-height: 1.4; color: #4A3826; display: block; margin-top: 4px; }
.points-card { margin-top: 28px; border-radius: 28px; overflow: hidden; border: var(--pop); box-shadow: var(--pop-shadow); }
.points-card .inner { padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.points-card .line { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid rgba(255,201,74,.25); }
.points-card .line:last-of-type { border: none; padding-bottom: 0; }
.points-card .line b { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--gold); }
.points-card h2 { font-size: 28px; color: #FFF5E4; }
.points-card p { margin: 4px 0 0; font-size: 13px; color: var(--on-oak-muted); }
.home-footer { margin: 0 -20px -28px; padding: 26px 20px 30px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }

/* ---- Small print ---- */
.fine { font-size: 11px; color: var(--muted); text-align: center; margin: 8px 0 0; }
.error { color: var(--crimson-dark); background: #FFE3E3; border: 2px solid var(--crimson); border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.demo-bar { background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 600; text-align: center; padding: 6px 12px; border-bottom: 2px solid var(--ink); }
.prose { font-size: 15px; color: #3A2A1C; }
.prose h2 { margin-top: 20px; font-size: 22px; }
.prose li { margin: 6px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Standings ---- */
.track { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tdot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); }
.tdot.done { background: var(--gold); }
.tdot.next { background: var(--paper); border-style: dashed; }
.tcrown svg { display: block; }
.podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 8px; align-items: end; text-align: center; padding: 16px 14px 0; color: #FFF5E4; }
.pname { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p1 .pname { font-weight: 800; font-size: 15px; }
.pod-sub { font-size: 12px; color: var(--on-oak-muted); }
.pod { margin-top: 6px; border-radius: 12px 12px 0 0; border: 2px solid var(--ink); border-bottom: none; color: var(--ink); font-family: var(--display); font-weight: 800; display: grid; place-items: center; }
.p1 .pod { height: 104px; background: var(--gold); font-size: 38px; box-shadow: 0 0 24px rgba(255,170,40,.6); }
.p2 .pod { height: 74px; background: #E4E0DA; font-size: 30px; }
.p3 .pod { height: 56px; background: #E39A62; font-size: 26px; }
.honour { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; font-size: 14px; }
.standings { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
.srow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid #F0E4D2; color: var(--ink); text-decoration: none; }
a.srow:hover { background: #FFF8EA; color: var(--ink); }
.srow.head { border-top: none; background: #FFF0CC; font-size: 11px; color: var(--muted); font-weight: 600; padding: 8px 12px; }
.srow.me { background: #FFE7A8; }
.srow .rk { width: 18px; color: var(--crimson); font-weight: 800; }
.srow .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srow .nm b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .nm small, .srow .pt small { font-size: 11px; color: var(--muted); }
.srow .pt { width: 44px; text-align: right; display: flex; flex-direction: column; }
.srow .pt b { font-family: var(--display); font-weight: 800; font-size: 18px; }
.srow .pt small { color: var(--emerald); font-weight: 700; }
.mv { width: 26px; font-size: 12px; font-weight: 800; color: var(--muted); }
.mv.up { color: var(--emerald); }
.mv.down { color: var(--crimson); }
.candlerow { white-space: nowrap; display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.cdl { display: inline-block; width: 6px; height: 13px; border-radius: 2px; position: relative; box-sizing: border-box; }
.cdl.on { background: #FFF5E4; border: 1.5px solid var(--ink); }
.cdl.on::before { content: ""; position: absolute; left: -1px; top: -8px; width: 5px; height: 7px; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.cdl.off { background: #D8C8AE; height: 9px; }
.oak .cdl.off { background: #8A6B4E; }

/* ---- Castle, friend's team, My team extras ---- */
.tbadge { flex: none; width: 30px; height: 24px; border-radius: 8px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.card .tbadge { width: 40px; height: 40px; border-radius: 12px; font-size: 13px; }
.capbadge { font-size: 11px; font-weight: 700; background: var(--gold); border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.srow.gone { opacity: .62; }
.srow.gone .nm b { text-decoration: line-through; }
.srow .pill { white-space: nowrap; }
.castle-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; padding: 14px 12px 6px; color: #FFF5E4; }
.castle-stats b { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; }
.castle-stats span { font-size: 12px; color: var(--on-oak-muted); }
.castle-next { padding: 0 16px 14px; text-align: center; font-size: 13px; color: var(--on-oak-muted); }
.castle-next b { color: #FFF5E4; }
.castle-next a { color: var(--gold-light); }
.record { display: flex; flex-direction: column; }
.recep { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.recep:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 36px; bottom: 0; width: 2px; background: var(--ink); }
.recnum { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.recline { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 3px 0; }
.countdown { padding: 14px; background: var(--gold); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: var(--pop-shadow); }
.cd { display: flex; gap: 8px; margin: 8px 0 10px; }
.cd > div { flex: 1; text-align: center; background: var(--cream); border: 2px solid var(--ink); border-radius: 12px; padding: 6px 0; }
.cd b { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; }
.cd span { font-size: 11px; }
.gap { padding: 4px 18px 16px; }
.gapbar { height: 12px; border-radius: 999px; background: rgba(255,245,228,.18); border: 1.5px solid #FFF5E4; overflow: hidden; margin-top: 5px; }
.gapbar i { display: block; height: 100%; background: var(--gold); }
.mv.onoak { color: #F2D9B3; font-size: 14px; }
.mv.onoak.up { color: #A6E8C8; }
.mv.onoak.down { color: #FFB3BE; }
.appicon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--oak); border: 2px solid var(--ink); display: grid; place-items: center; color: var(--gold); font-family: var(--display); font-weight: 800; }
.gloss { padding: 10px 0; border-top: 1px solid #F0E4D2; }
.gloss div { font-size: 14px; color: #4A3826; margin-top: 2px; }

/* ---- Draft leagues ---- */
.modes { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.modes legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.mode { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; cursor: pointer; }
.mode input { margin-top: 3px; accent-color: var(--crimson); }
.mode b { display: block; }
.mode small { display: block; color: #6b5444; font-size: 13px; line-height: 1.35; }
.mode:has(input:checked) { background: #FFF0C2; box-shadow: 3px 3px 0 var(--ink); }
.draft-only { display: none; }
form:has(input[name="mode"][value="draft"]:checked) .draft-only { display: grid; }
.field select { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.dgrid { display: grid; gap: 4px; align-items: center; font-size: 12px; }
.dgrid .dh { text-align: center; font-weight: 800; }
.dgrid .dname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dgrid .dname.me { color: var(--crimson); }
.dcell { min-height: 34px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px 2px; border: 2px solid var(--ink); border-radius: 10px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.dcell.empty { border-style: dashed; opacity: .45; background: transparent; }
.dcell.out { text-decoration: line-through; opacity: .55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* League picker on the Round table */
.league-pick { display: grid; gap: 6px; }
.league-pick label { font-size: 13px; font-weight: 700; }
.league-pick .row { gap: 8px; }
.league-pick select { flex: 1; min-width: 0; min-height: 52px; padding: 0 40px 0 16px; font: inherit; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink);
  border: var(--pop); border-radius: 16px; box-shadow: var(--pop-shadow); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232A1B10' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
.league-pick .btn { min-height: 52px; }
.league-pick .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.league-pick select { width: 100%; font-size: 18px; }
.league-pick .btn { width: auto; padding: 0 16px; white-space: nowrap; }

/* Weekly poll */
.poll { border-color: var(--crimson); }
.poll select { font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; min-height: 46px; }
.pollrow { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; font-size: 14px; background: #fff; }
.pollrow i { position: absolute; inset: 0 auto 0 0; background: #FFE3A3; z-index: 0; }
.pollrow span, .pollrow > b { position: relative; z-index: 1; }
.pollrow.mine i { background: var(--gold); }
.pollrow.right { border-color: var(--emerald); box-shadow: 2px 2px 0 var(--emerald); }
.pollrow.right i { background: #BFE8D3; }
