/* The African Chronicle app and Chronicle Club pages. */
@font-face { font-family: "TCC Archivo"; src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "TCC Serif"; src: url(../fonts/source-serif-4-latin-standard-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "TCC Serif"; src: url(../fonts/source-serif-4-latin-standard-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

.tcc {
	--indigo: #23306b; --deep: #182152; --gold: #e8a317; --gold-d: #b97f08; --ink: #15171e; --muted: #5d6170;
	--line: #e3e1da; --paper: #faf8f3; --card: #fff; --green: #1f7a3a; --red: #b3261e; --r: 14px;
	--sans: "TCC Archivo", "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--serif: "TCC Serif", "Source Serif 4", Georgia, serif;
	font-family: var(--sans); color: var(--ink); line-height: 1.45; -webkit-font-smoothing: antialiased;
}
.tcc *, .tcc *::before, .tcc *::after { box-sizing: border-box; }
.tcc button { font: inherit; color: inherit; cursor: pointer; }
.tcc h1, .tcc h2, .tcc h3 { font-family: var(--sans); font-stretch: 88%; letter-spacing: -.01em; margin: 0; line-height: 1.15; color: var(--ink); }
.tcc p { margin: 0; }
.tcc img { max-width: 100%; display: block; }
.tcc .ic { display: inline-flex; vertical-align: -0.2em; }
.tcc a { color: var(--indigo); }

/* Standalone app shell */
body.tcc-standalone { margin: 0; background: var(--paper, #faf8f3); background: #f3f1ea; min-height: 100vh; }
.tcc--app { max-width: 560px; margin: 0 auto; min-height: 100vh; background: #faf8f3; padding: calc(64px + env(safe-area-inset-top)) 0 calc(84px + env(safe-area-inset-bottom)); box-shadow: 0 0 0 1px rgba(0,0,0,.03); }
.tcc-top { position: fixed; z-index: 20; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--indigo); color: #fff; box-shadow: 0 2px 12px rgba(24,33,82,.25); }
.tcc-brand { display: flex; flex-direction: column; align-items: flex-start; background: none; border: 0; padding: 0; color: #fff !important; line-height: 1; }
.tcc-brand__the { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.tcc-brand__name { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.tcc-bottom { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tcc-bottom button { background: none; border: 0; padding: 9px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; }
.tcc-bottom button.is-on { color: var(--indigo); }
.tcc-bottom button.is-on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
.tcc--app .tcc-main { padding: 16px; display: grid; gap: 22px; }

/* Points chip */
.tcc-chip { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 8px 7px 12px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.tcc-chip .ic { color: var(--gold); }
.tcc-chip__tier { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--gold); color: var(--deep); border-radius: 999px; padding: 3px 8px; }
.tcc-chip--join { background: var(--gold); color: var(--deep); padding: 8px 16px; }

/* Embedded pages (/play/ and /club/) */
.tcc-page { background: #faf8f3; padding: 28px 16px 56px; }
.tcc--embed { max-width: 980px; margin: 0 auto; }
.tcc-embedhead { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: end; background: linear-gradient(135deg, var(--indigo), var(--deep)); color: #fff; border-radius: 18px; padding: 26px 26px 0; overflow: hidden; position: relative; }
.tcc-embedhead::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(232,163,23,.18); pointer-events: none; }
.tcc-embedhead h1 { color: #fff; font-size: clamp(30px, 5vw, 44px); }
.tcc-embedhead .tcc-kicker { color: var(--gold); }
.tcc-embedhead .tcc-sub { color: rgba(255,255,255,.82); max-width: 560px; margin-top: 6px; }
.tcc-embedhead .tcc-chip { align-self: start; position: relative; z-index: 1; }
.tcc-tabs { grid-column: 1 / -1; display: flex; gap: 4px; margin-top: 8px; overflow-x: auto; }
.tcc-tab { background: none; border: 0; color: rgba(255,255,255,.75) !important; padding: 12px 16px; font-weight: 700; border-radius: 10px 10px 0 0; white-space: nowrap; }
.tcc-tab.is-on { background: #faf8f3; color: var(--indigo) !important; }
.tcc--embed .tcc-main { padding: 24px 0 0; display: grid; gap: 28px; }

/* Shared text */
.tcc-kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); }
.tcc-kicker--light { color: var(--gold); }
.tcc-sub, .tcc-sub2 { color: var(--muted); font-size: 15px; }
.tcc-sub2 { margin: -4px 0 12px; }
.tcc-loading, .tcc-empty { color: var(--muted); padding: 18px 0; text-align: center; }
.tcc-error { color: var(--red); font-weight: 600; font-size: 14px; }
.tcc-error:empty, .tcc-ok:empty { display: none; }
.tcc-ok { color: var(--green); font-weight: 600; }

/* Buttons */
.tcc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--indigo); background: var(--indigo); color: #fff !important; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, background .15s; }
.tcc-btn:hover { background: var(--deep); border-color: var(--deep); }
.tcc-btn:active { transform: scale(.97); }
.tcc-btn--gold { background: var(--gold); border-color: var(--gold); color: var(--deep) !important; }
.tcc-btn--gold:hover { background: #f2b52f; border-color: #f2b52f; }
.tcc-btn--line { background: transparent; color: var(--indigo) !important; }
.tcc-btn--line:hover { background: rgba(35,48,107,.06); border-color: var(--indigo); }
.tcc-btn--off, .tcc-btn:disabled { background: #eceae4; border-color: #eceae4; color: var(--muted) !important; cursor: not-allowed; }
.tcc-link { background: none; border: 0; padding: 0; color: var(--indigo) !important; font-weight: 700; font-size: 14px; text-decoration: none; }
.tcc-link:hover { text-decoration: underline; }
.tcc-link--light { color: #fff !important; opacity: .85; }
.tcc-back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; font-weight: 700; color: var(--indigo) !important; justify-self: start; }

/* Blocks */
.tcc-block { display: grid; gap: 12px; }
.tcc-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 3px solid var(--ink); padding-top: 10px; }
.tcc-block__head h2 { font-size: 20px; }
.tcc-intro h2 { font-size: 24px; }
.tcc-intro p { color: var(--muted); margin-top: 4px; }

/* Status and join */
.tcc-status, .tcc-join { border-radius: 18px; padding: 20px; color: #fff; background: linear-gradient(140deg, var(--indigo) 0%, var(--deep) 100%); position: relative; overflow: hidden; }
.tcc-status::after, .tcc-join::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 180px; height: 180px; border-radius: 50%; border: 24px solid rgba(232,163,23,.16); pointer-events: none; }
.tcc-join { display: grid; gap: 10px; justify-items: start; }
.tcc-join h2 { color: #fff; font-family: var(--serif); font-size: 28px; font-stretch: 100%; }
.tcc-join p { color: rgba(255,255,255,.86); font-size: 15px; max-width: 520px; }
.tcc-join .tcc-btn { margin-top: 6px; position: relative; z-index: 1; }
.tcc-status__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tcc-status__hi { font-size: 14px; color: rgba(255,255,255,.75); }
.tcc-status__bal { font-size: 15px; color: rgba(255,255,255,.88); }
.tcc-status__bal strong { display: block; font-size: 40px; line-height: 1.05; color: #fff; font-stretch: 90%; }
.tcc-status__next { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 8px; }
.tcc-progress { height: 8px; background: rgba(255,255,255,.18); border-radius: 99px; margin-top: 16px; overflow: hidden; }
.tcc-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #ffd469); border-radius: 99px; transition: width .6s; }
.tcc-tierbadge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: #fff; color: var(--deep); }
.tcc-tier--reader { background: #e9ecf6; color: var(--indigo); }
.tcc-tier--bronze { background: #c9814a; color: #fff; }
.tcc-tier--silver { background: #d5d9e0; color: #2c3240; }
.tcc-tier--gold { background: var(--gold); color: var(--deep); }
.tcc-tier--platinum { background: linear-gradient(135deg, #f4f4f7, #b9c0d0); color: #1c2233; }
.tcc-install { width: 100%; border: 2px dashed var(--gold); background: #fff8e6; color: var(--deep) !important; border-radius: var(--r); padding: 14px; font-weight: 700; }

/* Games */
.tcc-hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.tcc-hscroll::-webkit-scrollbar { display: none; }
.tcc-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tcc-game { display: flex; align-items: stretch; gap: 0; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 0; overflow: hidden; transition: transform .15s, box-shadow .15s; scroll-snap-align: start; }
.tcc-game:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(24,33,82,.12); }
.tcc-game__art { flex: 0 0 92px; display: grid; place-items: center; color: #fff; font-size: 38px; font-weight: 800; font-family: var(--serif); position: relative; overflow: hidden; }
.tcc-game__art::after { content: ""; position: absolute; inset: auto -20px -30px auto; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.14); }
.tcc-game__body { display: flex; flex-direction: column; gap: 4px; padding: 14px; min-width: 0; }
.tcc-game__name { font-weight: 800; font-size: 17px; font-stretch: 90%; }
.tcc-game__tag { font-size: 14px; color: var(--muted); }
.tcc-game__pts { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--gold-d); }
.tcc-game__pts.is-done { color: var(--green); }
.tcc-game--small { flex-direction: column; }
.tcc-game--small .tcc-game__art { flex: 0 0 auto; height: 84px; font-size: 32px; }
.tcc-game--small .tcc-game__body { padding: 10px 12px 12px; }
.tcc-game--small .tcc-game__name { font-size: 15px; }

/* Stories */
.tcc-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.tcc-chips::-webkit-scrollbar { display: none; }
.tcc-chips button { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; }
.tcc-chips button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tcc-stories { display: grid; gap: 0; }
.tcc-story { display: grid; grid-template-columns: 1fr 108px; gap: 14px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 14px 0; }
.tcc-story img { grid-column: 2; grid-row: 1; width: 108px; height: 76px; object-fit: cover; border-radius: 8px; }
.tcc-story__body { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 4px; }
.tcc-story:not(:has(img)) { grid-template-columns: 1fr; }
.tcc-story__sec { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.tcc-story__title { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.22; }
.tcc-story__ex { font-family: var(--serif); color: #3b3e48; font-size: 15px; }
.tcc-story__meta { font-size: 12px; color: var(--muted); }
.tcc-story--big { grid-template-columns: 1fr; padding-top: 0; }
.tcc-story--big img { grid-column: 1; grid-row: 1; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r); }
.tcc-story--big .tcc-story__body { grid-row: 2; }
.tcc-story--big .tcc-story__title { font-size: 25px; }

/* Article */
.tcc-article { display: grid; gap: 10px; }
.tcc-article__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.tcc-article__title { font-family: var(--serif) !important; font-size: 30px; font-stretch: 100%; line-height: 1.12; }
.tcc-article__by { color: var(--muted); font-size: 13px; }
.tcc-article__player iframe, .tcc-article__player video, .tcc-article__player audio { width: 100%; border: 0; border-radius: 10px; }
.tcc-article__player iframe { aspect-ratio: 16 / 9; height: auto; }
.tcc-article__body { font-family: var(--serif); font-size: 18px; line-height: 1.65; color: #23252c; }
.tcc-article__body p { margin: 0 0 1em; }
.tcc-article__body img, .tcc-article__body figure { max-width: 100%; height: auto; margin: 1em 0; }
.tcc-article__body h2, .tcc-article__body h3 { font-family: var(--sans); margin: 1.2em 0 .4em; }
.tcc-article__body blockquote { margin: 1em 0; padding-left: 16px; border-left: 4px solid var(--gold); font-style: italic; }
.tcc-article__body .tcc-bar, .tcc-article__body .tcc-like { display: none; }
.tcc-acts { position: sticky; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; box-shadow: 0 6px 22px rgba(0,0,0,.08); }
.tcc-act { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #f2f1ec; border-radius: 999px; padding: 8px 14px; font-weight: 700; }
.tcc-act[aria-pressed="true"] { background: #fde7e5; color: var(--red); }
.tcc-act[aria-pressed="true"] svg { fill: currentColor; }
.tcc-acts__note { font-size: 12px; color: var(--muted); flex: 1 1 140px; }

/* Game stage */
.tcc-stage { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 14px; }
.tcc--embed .tcc-stage { max-width: 640px; width: 100%; justify-self: center; }
.tcc-stage__title { font-size: 26px; }
.tcc-stage__sub { color: var(--muted); font-size: 15px; margin-top: -8px; }
.tcc-qbar { display: flex; gap: 4px; }
.tcc-qbar span { flex: 1; height: 6px; border-radius: 4px; background: #eceae4; }
.tcc-qbar .is-done { background: var(--indigo); }
.tcc-qbar .is-now { background: var(--gold); }
.tcc-q { display: grid; gap: 12px; }
.tcc-q__count { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tcc-q__text { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.3; }
.tcc-q__opts { display: grid; gap: 8px; }
.tcc-opt { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 13px 16px; font-weight: 600; font-size: 16px; transition: border-color .12s, background .12s; }
.tcc-opt:hover { border-color: var(--indigo); background: #f4f5fb; }
.tcc-review { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: rv; }
.tcc-review li { counter-increment: rv; display: grid; gap: 3px; padding: 10px 12px 10px 40px; border-radius: 10px; position: relative; font-size: 15px; }
.tcc-review li::before { content: "✓"; position: absolute; left: 12px; top: 10px; font-weight: 800; }
.tcc-review li.is-right { background: #e8f4ec; }
.tcc-review li.is-right::before { color: var(--green); }
.tcc-review li.is-wrong { background: #fbeceb; }
.tcc-review li.is-wrong::before { content: "✗"; color: var(--red); }
.tcc-review small { color: var(--muted); }
.tcc-review a { font-size: 13px; font-weight: 700; }

/* Result */
.tcc-result { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 22px 16px; border-radius: 16px; background: linear-gradient(160deg, #fff8e6, #fff); border: 1px solid #f5dfa8; animation: tcc-pop .45s cubic-bezier(.2,1.4,.4,1); }
.tcc-result__burst { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--deep); box-shadow: 0 0 0 8px rgba(232,163,23,.18); }
.tcc-result__score { font-size: 32px; font-weight: 800; font-stretch: 90%; }
.tcc-result__score:empty { display: none; }
.tcc-result__word { font-weight: 700; letter-spacing: .04em; }
.tcc-result__pts { font-size: 22px; font-weight: 800; color: var(--green); }
.tcc-result__note { color: var(--muted); font-size: 14px; max-width: 360px; }
.tcc-result__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
@keyframes tcc-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* Word */
.tcc-wgrid { display: grid; gap: 6px; justify-content: center; }
.tcc-wrow { display: grid; grid-template-columns: repeat(5, 54px); gap: 6px; }
.tcc-wcell { width: 54px; height: 54px; display: grid; place-items: center; border: 2px solid #dcdad3; border-radius: 6px; font-size: 26px; font-weight: 800; text-transform: uppercase; background: #fff; transition: background .25s, border-color .25s, color .25s; }
.tcc-wcell.is-typed { border-color: #8a8d98; animation: tcc-tap .12s; }
.tcc-wcell.is-correct { background: var(--green); border-color: var(--green); color: #fff; }
.tcc-wcell.is-present { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.tcc-wcell.is-absent { background: #7b7f8c; border-color: #7b7f8c; color: #fff; }
@keyframes tcc-tap { 50% { transform: scale(1.08); } }
.tcc-wmsg { text-align: center; min-height: 1.4em; font-weight: 600; color: var(--red); }
.tcc-kb { display: grid; gap: 6px; }
.tcc-kb__row { display: flex; gap: 5px; justify-content: center; }
.tcc-key { flex: 1 1 0; max-width: 44px; height: 52px; border: 0; border-radius: 6px; background: #e4e3de; font-weight: 800; font-size: 15px; padding: 0; }
.tcc-key--wide { max-width: 68px; flex-grow: 1.6; font-size: 12px; }
.tcc-key.is-correct { background: var(--green); color: #fff; }
.tcc-key.is-present { background: var(--gold); color: var(--deep); }
.tcc-key.is-absent { background: #7b7f8c; color: #fff; }

/* Memory */
.tcc-mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; width: 100%; justify-self: center; }
.tcc-card { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: none; perspective: 600px; }
.tcc-card__back, .tcc-card__face { position: absolute; inset: 0; border-radius: 12px; display: grid; place-items: center; backface-visibility: hidden; transition: transform .35s; }
.tcc-card__back { background-color: #23306b; background-image: radial-gradient(circle, rgba(232,163,23,.55) 0 2.5px, transparent 3px); background-size: 16px 16px; background-position: center; border: 3px solid #182152; }
.tcc-card__face { background: #fff; border: 2px solid var(--line); font-size: clamp(28px, 8vw, 42px); transform: rotateY(180deg); }
.tcc-card.is-open .tcc-card__back { transform: rotateY(180deg); }
.tcc-card.is-open .tcc-card__face { transform: rotateY(360deg); }
.tcc-card.is-found .tcc-card__face { background: #e8f4ec; border-color: var(--green); }

/* Timeline */
.tcc-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tcc-tl__item { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.tcc-tl__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: #fff; font-weight: 800; font-size: 14px; }
.tcc-tl__text { font-size: 15px; font-weight: 600; }
.tcc-tl__btns { display: flex; flex-direction: column; gap: 4px; }
.tcc-tl__btns button { width: 36px; height: 28px; border: 1px solid var(--line); background: #f6f5f1; border-radius: 6px; font-size: 11px; }
.tcc-tl__btns button:disabled { opacity: .3; cursor: default; }

/* Tiers */
.tcc-tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tcc-tierstep { display: grid; gap: 3px; align-content: start; padding: 12px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; position: relative; opacity: .72; }
.tcc-tierstep.is-reached { opacity: 1; }
.tcc-tierstep.is-current { border: 2px solid var(--gold); box-shadow: 0 6px 18px rgba(232,163,23,.22); opacity: 1; }
.tcc-tierstep__dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.tcc-tierstep__name { font-weight: 800; font-size: 15px; }
.tcc-tierstep__min { font-size: 12px; font-weight: 700; color: var(--gold-d); }
.tcc-tierstep__perk { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* Rewards */
.tcc-rewards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tcc-reward { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.tcc-reward__band { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; min-height: 56px; }
.tcc-reward__partner { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 16px; }
.tcc-reward__tier { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tcc-reward__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tcc-reward__body h3 { font-size: 19px; }
.tcc-reward__body > p { font-size: 15px; color: #3b3e48; }
.tcc-reward__meta { font-size: 13px !important; color: var(--muted) !important; }
.tcc-reward__terms { font-size: 13px; color: var(--muted); }
.tcc-reward__terms summary { cursor: pointer; font-weight: 700; color: var(--indigo); }
.tcc-reward__terms p { margin-top: 6px; }
.tcc-reward .tcc-btn { margin-top: auto; width: 100%; }

/* Leaderboard */
.tcc-board { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tcc-board li { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tcc-board li:last-child { border-bottom: 0; }
.tcc-board li.is-me { background: #fff8e6; }
.tcc-board__rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #eceae4; font-weight: 800; font-size: 13px; }
.tcc-board li:nth-child(1) .tcc-board__rank { background: var(--gold); color: var(--deep); }
.tcc-board li:nth-child(2) .tcc-board__rank { background: #d5d9e0; }
.tcc-board li:nth-child(3) .tcc-board__rank { background: #c9814a; color: #fff; }
.tcc-board__name { font-weight: 600; }
.tcc-board__tier { font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.tcc-board li.tcc-empty { display: block; }

/* Modal */
.tcc-modal, .tcc-modal *, .tcc-toast2, .tcc-toast2 * { box-sizing: border-box; }
.tcc-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(15,18,35,.6); display: grid; place-items: center; padding: 16px; animation: tcc-fade .2s; font-family: "TCC Archivo", system-ui, sans-serif; color: #15171e; }
.tcc-modal__box { background: #fff; border-radius: 18px; padding: 24px; width: 100%; max-width: 420px; display: grid; gap: 12px; justify-items: center; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: tcc-pop .35s cubic-bezier(.2,1.4,.4,1); }
.tcc-modal__box h3 { font-size: 22px; margin: 0; }
.tcc-modal__box p { margin: 0; }
.tcc-modal .tcc-btn, .tcc-modal .tcc-result__burst { font-family: inherit; }
.tcc-modal .tcc-result__burst { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #e8a317; color: #182152; }
.tcc-modal .tcc-btn { display: inline-flex; border: 2px solid #23306b; background: #23306b; color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; }
.tcc-modal .tcc-btn--gold { background: #e8a317; border-color: #e8a317; color: #182152; }
.tcc-modal .tcc-btn--line { background: transparent; color: #23306b; }
.tcc-modal .tcc-result__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tcc-modal .tcc-reward__meta { font-size: 13px; color: #5d6170; }
.tcc-modal .tcc-error { color: #b3261e; font-weight: 600; font-size: 14px; }
.tcc-modal .tcc-error:empty { display: none; }
.tcc-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 28px; font-weight: 800; letter-spacing: .12em; background: #fff8e6; border: 2px dashed #e8a317; border-radius: 12px; padding: 10px 18px; color: #182152; }
@keyframes tcc-fade { from { opacity: 0; } }

/* Forms and auth */
.tcc-auth { max-width: 460px; width: 100%; justify-self: center; display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.tcc-seg { display: grid; grid-template-columns: 1fr 1fr; background: #f0efe9; border-radius: 999px; padding: 4px; }
.tcc-seg button { border: 0; background: none; padding: 10px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.tcc-seg button.is-on { background: #fff; color: var(--indigo); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.tcc-perks { display: grid; gap: 8px; background: #f4f5fb; border-radius: 12px; padding: 14px; }
.tcc-perks p { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.tcc-perks .ic { color: var(--gold-d); }
.tcc-form { display: grid; gap: 12px; }
.tcc-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: #3b3e48; }
.tcc-form input:not([type=checkbox]), .tcc-form select, .tcc-invite input { font: inherit; font-size: 16px; font-weight: 400; width: 100%; padding: 12px 14px; border: 1.5px solid #d6d4cc; border-radius: 10px; background: #fff; color: var(--ink); }
.tcc-form input:focus, .tcc-form select:focus { outline: 0; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(35,48,107,.14); }
.tcc-check { grid-template-columns: 22px 1fr !important; align-items: start; font-weight: 500 !important; }
.tcc-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--indigo); }
.tcc-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.tcc-form .tcc-btn { width: 100%; }
.tcc-form .tcc-link { justify-self: center; }
.tcc-invite__row { display: flex; gap: 8px; }
.tcc-invite__row input { min-width: 0; font-size: 14px; background: #f6f5f1; }

/* Earn table and history */
.tcc-earn { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.tcc-earn td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tcc-earn tr:last-child td { border-bottom: 0; }
.tcc-earn__pts { font-weight: 800; color: var(--green); text-align: right; white-space: nowrap; }
.tcc-earn__lim { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; width: 1%; }
.tcc-hist { display: grid; gap: 12px; }
.tcc-claims, .tcc-pts { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tcc-claims { border-color: #f5dfa8; background: #fffaf0; }
.tcc-claims li, .tcc-pts li { display: grid; padding: 10px 14px; border-bottom: 1px solid var(--line); gap: 2px; }
.tcc-claims li:last-child, .tcc-pts li:last-child { border-bottom: 0; }
.tcc-claims span { font-size: 13px; color: var(--muted); text-transform: capitalize; }
.tcc-pts li { grid-template-columns: 1fr auto; }
.tcc-pts small { grid-row: 2; color: var(--muted); font-size: 12px; }
.tcc-pts strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--green); }
.tcc-pts strong.is-neg { color: var(--red); }
.tcc-signout { justify-self: center; }

/* Toast */
.tcc-toast2 { position: fixed; z-index: 99999; left: 50%; top: 16px; transform: translate(-50%, -140%); display: flex; align-items: center; gap: 8px; background: #182152; color: #fff; padding: 11px 18px; border-radius: 999px; font: 700 15px/1.2 "TCC Archivo", system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .35s cubic-bezier(.2,1.3,.4,1); white-space: nowrap; }
.tcc-toast2 .ic { color: #e8a317; display: inline-flex; }
.tcc-toast2.is-in { transform: translate(-50%, calc(env(safe-area-inset-top) + 0px)); }

/* Wider screens */
@media (min-width: 720px) {
	.tcc--embed .tcc-main > .tcc-status, .tcc--embed .tcc-main > .tcc-join { padding: 26px 30px; }
	.tcc--embed .tcc-hscroll, .tcc--embed .tcc-chips { margin: 0; padding-left: 0; padding-right: 0; }
}
@media (max-width: 640px) {
	.tcc-page { padding: 16px 12px 40px; }
	.tcc-embedhead { padding: 20px 18px 0; grid-template-columns: 1fr; }
	.tcc-embedhead .tcc-chip { justify-self: start; }
	.tcc-tiers { grid-template-columns: 1fr; }
	.tcc-tierstep { grid-template-columns: 18px auto 1fr; align-items: center; column-gap: 10px; }
	.tcc-tierstep__min { text-align: right; }
	.tcc-tierstep__perk { grid-column: 2 / -1; }
	.tcc-board li { grid-template-columns: 32px 1fr auto; }
	.tcc-board__tier { display: none; }
	.tcc-wrow { grid-template-columns: repeat(5, 50px); }
	.tcc-wcell { width: 50px; height: 50px; }
	.tcc-stage { padding: 16px; }
	.tcc-article__title { font-size: 26px; }
	.tcc-acts { bottom: 12px; }
	.tcc--app .tcc-acts { bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
	.tcc *, .tcc-toast2, .tcc-modal, .tcc-modal__box { animation: none !important; transition: none !important; }
}
