/* Top 100 Beers Core — component styles. Colours come from theme tokens with fallbacks. */
:root {
	--t100-ink: var(--ink, #2a1a10);
	--t100-muted: var(--muted, #6f5a4a);
	--t100-bg: var(--bg, #fffaf0);
	--t100-card: var(--card, #ffffff);
	--t100-line: var(--line, #ecdcc4);
	--t100-amber: var(--amber, #e0921e);
	--t100-amber-d: var(--amber-d, #b86f0a);
	--t100-foam: var(--foam, #fff3dc);
	--t100-ok: #2f8a4a;
	--t100-err: #c0392b;
	--t100-r: 14px;
}
.t100-hp { position: absolute !important; left: -9999px; }
.t100-muted { color: var(--t100-muted); }
.t100-small { font-size: .9rem; color: var(--t100-muted); margin: .35rem 0; }
.t100-fine { font-size: .8rem; color: var(--t100-muted); }
.t100-glass { width: 100%; height: 100%; display: block; color: var(--t100-ink); }

/* Buttons & fields */
.t100-btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--t100-amber); color: #2a1606; border: 0; border-radius: 999px; padding: .7rem 1.3rem; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; }
.t100-btn:hover { background: var(--t100-amber-d); color: #fff; transform: translateY(-1px); }
.t100-btn:disabled { opacity: .5; cursor: default; transform: none; }
.t100-btn--ghost { background: transparent; color: var(--t100-ink); box-shadow: inset 0 0 0 2px var(--t100-line); }
.t100-btn--ghost:hover { background: var(--t100-foam); color: var(--t100-ink); }
.t100-btn--small { padding: .45rem .95rem; font-size: .9rem; }
.t100-btn--big { font-size: 1.15rem; padding: 1rem 2rem; }
.t100-field { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 .9rem; font-weight: 600; font-size: .9rem; }
.t100-field input, .t100-field select, .t100-field textarea, .t100-newsletter input, .t100-list__tools input, .t100-game__save input { font: inherit; font-weight: 400; padding: .65rem .8rem; border: 2px solid var(--t100-line); border-radius: 10px; background: var(--t100-card); color: var(--t100-ink); width: 100%; box-sizing: border-box; }
.t100-field :focus, .t100-newsletter input:focus { outline: 3px solid var(--t100-amber); outline-offset: 1px; }
.t100-grid-2, .t100-grid-3 { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.t100-chip { display: inline-block; background: var(--t100-foam); color: var(--t100-ink); border-radius: 999px; padding: .2rem .65rem; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.t100-chip--micro { background: #dff3e4; } .t100-chip--trappist { background: #efe3ff; } .t100-chip--pick { background: var(--t100-amber); }

/* Score badge */
.t100-score { display: inline-grid; place-items: center; min-width: 3.2rem; height: 2.1rem; border-radius: 10px; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--t100-foam); color: var(--t100-ink); }
.t100-score--elite { background: linear-gradient(135deg, #f6c14f, #e0921e); color: #2a1606; }
.t100-score--great { background: #ffe0a8; }
.t100-stars { color: var(--t100-amber); letter-spacing: 1px; }

/* Ranked list */
.t100-list__title { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.t100-list__title small { font-size: .9rem; color: var(--t100-muted); font-weight: 500; }
.t100-list__tools { margin: 0 0 1rem; }
.t100-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.t100-row { display: grid; grid-template-columns: 2.6rem 3rem 1fr auto auto auto; align-items: center; gap: .8rem; background: var(--t100-card); border: 1px solid var(--t100-line); border-radius: var(--t100-r); padding: .6rem .9rem; transition: transform .15s, box-shadow .15s; }
.t100-row:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(90, 50, 10, .1); }
.t100-rank { font-size: 1.45rem; font-weight: 900; color: var(--t100-amber-d); text-align: center; font-variant-numeric: tabular-nums; }
.t100-row:nth-child(-n+3) .t100-rank { color: #fff; background: var(--t100-amber); border-radius: 50%; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; font-size: 1.15rem; }
.t100-row__img { width: 3rem; height: 4rem; display: block; }
.t100-row__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.t100-row__main { min-width: 0; display: flex; flex-direction: column; }
.t100-row__name { font-weight: 800; font-size: 1.05rem; color: var(--t100-ink); text-decoration: none; }
.t100-row__name:hover { color: var(--t100-amber-d); }
.t100-row__meta { font-size: .88rem; color: var(--t100-muted); }
.t100-row__note { font-size: .85rem; color: var(--t100-muted); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t100-abv { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--t100-muted); min-width: 3.2rem; text-align: right; }
@media (max-width: 720px) {
	.t100-row { grid-template-columns: 2.4rem 2.6rem 1fr auto; }
	.t100-row .t100-chip, .t100-row .t100-abv { display: none; }
	.t100-row__note { white-space: normal; }
}

/* Lists hub */
.t100-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.t100-hub__card { display: grid; grid-template-columns: 3rem 1fr; grid-template-rows: auto auto auto; column-gap: .8rem; align-items: start; background: var(--t100-card); border: 1px solid var(--t100-line); border-radius: var(--t100-r); padding: 1rem; color: var(--t100-ink); text-decoration: none; transition: transform .15s, border-color .15s; }
.t100-hub__card:hover, .t100-hub__card.is-active { transform: translateY(-2px); border-color: var(--t100-amber); }
.t100-hub__glass { grid-row: 1 / span 3; width: 3rem; height: 4.2rem; }
.t100-hub__card strong { font-size: 1rem; }
.t100-hub__card span:not(.t100-hub__glass) { font-size: .85rem; color: var(--t100-muted); }
.t100-hub__card em { font-size: .8rem; font-style: normal; color: var(--t100-amber-d); font-weight: 700; margin-top: .3rem; }

/* Cards */
.t100-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.t100-card { background: var(--t100-card); border: 1px solid var(--t100-line); border-radius: var(--t100-r); overflow: hidden; display: flex; flex-direction: column; }
.t100-card__img { height: 170px; background: var(--t100-foam); display: grid; place-items: center; padding: .8rem; box-sizing: border-box; }
.t100-card__img img { width: 100%; height: 100%; object-fit: cover; }
.t100-card__img .t100-glass { height: 100%; width: auto; }
.t100-card__icon { height: 120px; display: grid; place-items: center; font-size: 3.5rem; background: var(--t100-foam); }
.t100-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.t100-card__body h3 { margin: .35rem 0 .2rem; font-size: 1.12rem; }
.t100-card__body h3 a { color: var(--t100-ink); text-decoration: none; }
.t100-card__body h3 a:hover { color: var(--t100-amber-d); }
.t100-card__body p { margin: .2rem 0; }
.t100-card__body .t100-btn { align-self: flex-start; margin-top: auto; }
.t100-styles__family { margin-top: 2.2rem; }
.t100-event-card { flex-direction: row; }
.t100-event-card__date { flex: 0 0 4.5rem; background: var(--t100-amber); color: #2a1606; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; text-transform: uppercase; }
.t100-video-embed { aspect-ratio: 16/9; } .t100-video-embed iframe { width: 100%; height: 100%; }
.t100-video-poster { aspect-ratio: 16/9; display: grid; place-items: center; align-content: center; gap: .6rem; background: linear-gradient(135deg, #3a220f, #7a4414); color: #fff; text-decoration: none; text-align: center; padding: 1rem; font-weight: 700; }
.t100-video-poster__play { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--t100-amber); color: #2a1606; display: grid; place-items: center; font-size: 1.3rem; }

/* Tools */
.t100-tool { background: var(--t100-card); border: 1px solid var(--t100-line); border-radius: 20px; padding: 1.5rem; margin: 0 0 2rem; box-shadow: 0 10px 30px rgba(90, 50, 10, .06); }
.t100-tool > h3, .t100-game__head h3 { margin: 0 0 .3rem; font-size: 1.4rem; }
.t100-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; margin: 1rem 0; }
.t100-choice { font: inherit; text-align: left; padding: .9rem 1rem; border-radius: 12px; border: 2px solid var(--t100-line); background: var(--t100-bg); color: var(--t100-ink); cursor: pointer; font-weight: 600; transition: border-color .15s, transform .1s; }
.t100-choice:hover:not(:disabled) { border-color: var(--t100-amber); transform: translateY(-1px); }
.t100-choice.is-right { border-color: var(--t100-ok); background: #e5f6ea; }
.t100-choice.is-wrong { border-color: var(--t100-err); background: #fde9e7; }
.t100-quiz__step { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--t100-muted); margin: 0; }
.t100-minis { display: grid; gap: .5rem; margin: 1rem 0; }
.t100-mini { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .8rem; align-items: center; padding: .55rem .8rem; border: 1px solid var(--t100-line); border-radius: 12px; color: var(--t100-ink); text-decoration: none; background: var(--t100-bg); }
.t100-mini:hover { border-color: var(--t100-amber); }
.t100-mini__img { width: 2.4rem; height: 3.2rem; }
.t100-mini small { display: block; color: var(--t100-muted); }
.t100-mini__rank { font-weight: 900; color: var(--t100-amber-d); }
.t100-progress { height: 14px; background: var(--t100-foam); border-radius: 999px; overflow: hidden; margin: 1rem 0 .4rem; }
.t100-progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, #f6c14f, var(--t100-amber)); transition: width .4s; }
.t100-checklist { columns: 2 280px; column-gap: 1.5rem; padding: 0; list-style: none; margin: 1rem 0 0; max-height: 520px; overflow: auto; }
.t100-checklist li { break-inside: avoid; padding: .3rem 0; border-bottom: 1px dashed var(--t100-line); }
.t100-checklist label { cursor: pointer; }
.t100-checklist small { color: var(--t100-muted); }
.t100-checklist__rank { font-weight: 800; color: var(--t100-amber-d); display: inline-block; min-width: 2.2rem; }
.t100-tabs { display: inline-flex; background: var(--t100-foam); border-radius: 999px; padding: 4px; margin: .8rem 0 1rem; }
.t100-tabs button { font: inherit; font-weight: 700; border: 0; background: none; padding: .5rem 1rem; border-radius: 999px; cursor: pointer; color: var(--t100-ink); }
.t100-tabs button.is-active { background: var(--t100-card); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.t100-pair-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.t100-pair-list li { background: var(--t100-foam); padding: .35rem .8rem; border-radius: 999px; }
.t100-rules { margin-top: 1rem; } .t100-rules summary { cursor: pointer; font-weight: 700; }
.t100-calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: .5rem 0; }
.t100-calc-out div { background: var(--t100-foam); border-radius: 12px; padding: 1rem; text-align: center; }
.t100-calc-out strong { display: block; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.t100-calc-out span { font-size: .85rem; color: var(--t100-muted); }

/* Head-to-head & bracket */
.t100-h2h__arena { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 1rem; margin: 1rem 0; }
.t100-h2h__pick { font: inherit; color: var(--t100-ink); display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: 1rem; border-radius: 16px; border: 2px solid var(--t100-line); background: var(--t100-bg); cursor: pointer; transition: transform .15s, border-color .15s; }
.t100-h2h__pick:hover { border-color: var(--t100-amber); transform: translateY(-3px); }
.t100-h2h__pick.is-winner { border-color: var(--t100-ok); background: #e5f6ea; }
.t100-h2h__pick small { color: var(--t100-muted); }
.t100-h2h__img { width: 5rem; height: 7rem; display: block; }
.t100-h2h__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.t100-h2h__vs { align-self: center; font-weight: 900; font-size: 1.4rem; color: var(--t100-amber-d); }
.t100-bracket__progress { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.t100-bracket__progress span { width: 14px; height: 14px; border-radius: 4px; background: var(--t100-foam); }
.t100-bracket__progress .is-done { background: var(--t100-amber); } .t100-bracket__progress .is-now { background: var(--t100-ink); }
.t100-bracket__champ { width: 7rem; height: 10rem; margin: 0 auto; animation: t100-pop .5s ease; }

/* Games */
.t100-games__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin: 0 0 2rem; }
.t100-games__nav a { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1rem .5rem; border-radius: 16px; background: var(--t100-card); border: 1px solid var(--t100-line); color: var(--t100-ink); font-weight: 800; text-decoration: none; }
.t100-games__nav a:hover { border-color: var(--t100-amber); transform: translateY(-2px); }
.t100-games__nav span { font-size: 2rem; }
.t100-game { scroll-margin-top: 90px; }
.t100-game__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.t100-game__score { font-weight: 800; background: var(--t100-foam); border-radius: 999px; padding: .3rem .9rem; font-variant-numeric: tabular-nums; }
.t100-game__score:empty { display: none; }
.t100-game__intro { color: var(--t100-muted); }
.t100-game__stage { min-height: 120px; }
.t100-game__fact { min-height: 1.5em; color: var(--t100-muted); }
.t100-game__end { text-align: center; padding: 1rem 0; }
.t100-game__big { font-size: 4rem; font-weight: 900; color: var(--t100-amber-d); line-height: 1; animation: t100-pop .5s ease; }
.t100-game__save { display: flex; gap: .5rem; max-width: 420px; margin: 1rem auto; }
.t100-timer { height: 8px; background: var(--t100-foam); border-radius: 999px; overflow: hidden; }
.t100-timer div { height: 100%; background: var(--t100-amber); transition: width .1s linear; }
.t100-board { margin-top: 1.2rem; border-top: 1px dashed var(--t100-line); padding-top: 1rem; }
.t100-board h4 { margin: 0 0 .5rem; }
.t100-board ol { margin: 0; padding-left: 1.4rem; display: grid; gap: .2rem; }
.t100-board li span { display: inline-block; min-width: 60%; }
.t100-hl { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin: 1rem 0; }
.t100-hl__card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; background: var(--t100-bg); border-radius: 16px; padding: 1rem; border: 1px solid var(--t100-line); }
.t100-hl__card small { color: var(--t100-muted); }
.t100-hl__img { width: 4.5rem; height: 6.3rem; }
.t100-hl__abv { font-size: 2rem; font-weight: 900; color: var(--t100-amber-d); }
.t100-hl__q { display: flex; flex-direction: column; gap: .5rem; align-items: center; text-align: center; max-width: 12rem; }
.t100-hl__q .is-ok { color: var(--t100-ok); font-weight: 800; } .t100-hl__q .is-err { color: var(--t100-err); font-weight: 800; }
.t100-gs { display: flex; gap: 1rem; align-items: center; background: var(--t100-bg); border-radius: 16px; padding: 1rem; }
.t100-gs__img { width: 4rem; height: 5.6rem; flex: none; }
.t100-gs h4 { margin: 0; font-size: 1.3rem; }
.t100-note { font-size: 1.3rem; font-style: italic; margin: 1rem 0; padding: 1rem 1.2rem; border-left: 5px solid var(--t100-amber); background: var(--t100-bg); border-radius: 0 12px 12px 0; }
.t100-bingo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 1rem auto; max-width: 620px; }
.t100-bingo__h { text-align: center; font-weight: 900; font-size: 1.5rem; color: var(--t100-amber-d); }
.t100-bingo__sq { font: inherit; font-size: .78rem; line-height: 1.25; aspect-ratio: 1; padding: .35rem; border-radius: 10px; border: 2px solid var(--t100-line); background: var(--t100-bg); color: var(--t100-ink); cursor: pointer; }
.t100-bingo__sq.is-on { background: var(--t100-amber); border-color: var(--t100-amber-d); color: #2a1606; font-weight: 700; }
.t100-bingo__win { font-weight: 800; font-size: 1.2rem; text-align: center; animation: t100-pop .5s ease; }
@media (max-width: 600px) {
	.t100-h2h__arena, .t100-hl { grid-template-columns: 1fr; }
	.t100-bingo__sq { font-size: .6rem; padding: .15rem; }
	.t100-calc-out { grid-template-columns: 1fr; }
}
@keyframes t100-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Rating widget */
.t100-rate { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: var(--t100-foam); border-radius: 14px; padding: .8rem 1rem; }
.t100-rate__label { font-weight: 800; }
.t100-rate__stars button { font-size: 1.7rem; line-height: 1; background: none; border: 0; cursor: pointer; color: #d9c7aa; padding: 0 .05rem; }
.t100-rate__stars button.is-on { color: var(--t100-amber); }
.t100-rate__summary { font-size: .92rem; color: var(--t100-muted); }

/* Forms */
.t100-form__msg { font-weight: 700; margin: .6rem 0 0; }
.t100-form__msg.is-ok { color: var(--t100-ok); } .t100-form__msg.is-err { color: var(--t100-err); }
.t100-newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; align-items: center; background: linear-gradient(135deg, #3a220f, #6b3a12); color: #fff5e6; border-radius: 22px; padding: 2rem; }
.t100-newsletter h3 { margin: 0; color: #fff; font-size: 1.5rem; }
.t100-newsletter p { margin: .3rem 0 0; }
.t100-newsletter__row { display: flex; gap: .5rem; }
.t100-newsletter .t100-form__msg { grid-column: 1 / -1; color: #ffd98a; }
@media (max-width: 720px) { .t100-newsletter { grid-template-columns: 1fr; } .t100-newsletter__row { flex-direction: column; } }

/* Tables, resources, disclosure */
.t100-table { width: 100%; border-collapse: collapse; background: var(--t100-card); border-radius: 12px; overflow: hidden; }
.t100-table th, .t100-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--t100-line); }
.t100-table th { background: var(--t100-foam); }
.t100-resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.t100-resources section { background: var(--t100-card); border: 1px solid var(--t100-line); border-radius: var(--t100-r); padding: 1rem 1.2rem; }
.t100-resources h3 { margin-top: 0; }
.t100-resources ul { padding-left: 1.1rem; margin: 0; } .t100-resources li { margin: .45rem 0; }
.t100-disclosure { font-size: .85rem; color: var(--t100-muted); border-left: 4px solid var(--t100-amber); padding: .5rem .9rem; background: var(--t100-foam); border-radius: 0 10px 10px 0; margin-top: 1.5rem; }

/* Age gate */
.t100-locked { overflow: hidden; }
.t100-agegate { position: fixed; inset: 0; z-index: 99999; background: rgba(30, 16, 6, .88); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.t100-agegate__box { background: var(--t100-bg); color: var(--t100-ink); border-radius: 24px; padding: 2.2rem; max-width: 440px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.t100-agegate__icon { font-size: 3.5rem; }
.t100-agegate__btns { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

@media print {
	body.t100-printing-bingo * { visibility: hidden; }
	.t100-game.is-printing, .t100-game.is-printing * { visibility: visible; }
}
