/* Turizm Media — Quiz yarışması. Self-contained so it also works under other themes. */
.tmq {
	--tmq-ink: #0F1B24;
	--tmq-muted: #55636F;
	--tmq-line: #E3E8ED;
	--tmq-line-2: #C9D2DA;
	--tmq-surface: #F3F6F8;
	--tmq-night: #0F1B24;
	--tmq-night-2: #18283A;
	--tmq-gold: #E8A317;
	--tmq-ok-bg: #E5F1E3; --tmq-ok: #1F4A19; --tmq-ok-line: #2F6127;
	--tmq-bad-bg: #FBE6E3; --tmq-bad: #7A1D14; --tmq-bad-line: #A3271B;
	color: var(--tmq-ink);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	line-height: 1.5;
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin: 8px 0 40px;
}
.tmq *, .tmq *::before, .tmq *::after { box-sizing: border-box; }
.tmq h2, .tmq h3 { font-family: "Inter Tight", Inter, system-ui, sans-serif; letter-spacing: -0.01em; margin: 0; }
.tmq a { color: inherit; }
.tmq [hidden] { display: none !important; }
.tmq-muted { color: var(--tmq-muted); margin: 0; }
.tmq-small { font-size: 13px; }

.tmq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 25px; border: 0; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
.tmq-btn:disabled { opacity: .6; cursor: wait; }
/* Scoped under .tmq so link colours from ".tmq a" or the theme never override button text. */
.tmq .tmq-btn--gold, .tmq .tmq-btn--gold:hover { background: var(--tmq-gold); color: var(--tmq-ink); }
.tmq .tmq-btn--dark, .tmq .tmq-btn--dark:hover { background: var(--tmq-night); color: #fff; }
.tmq .tmq-btn--light, .tmq .tmq-btn--light:hover { background: #fff; color: var(--tmq-ink); }
.tmq .tmq-btn--ghost, .tmq .tmq-btn--ghost:hover { background: transparent; color: #fff; border: 1px solid #5E6E7B; }
.tmq .tmq-btn:hover:not(:disabled) { filter: brightness(1.06); }

.tmq-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tmq-tag { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid #3D4B57; color: #D5DDE4; }
.tmq-tag--gold { background: var(--tmq-gold); border-color: var(--tmq-gold); color: var(--tmq-ink); }

/* Hero */
.tmq-hero, .tmq-intro { background: var(--tmq-night); color: #fff; border-radius: 20px; padding: clamp(22px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-start; }
.tmq-intro { flex-direction: column; gap: 16px; }
.tmq-hero__text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tmq-hero__title { font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.06; color: #fff; }
.tmq-hero__lead { margin: 0; font-size: 17px; color: #C9D2DA; max-width: 560px; }
.tmq-cards { display: flex; flex-wrap: wrap; gap: 14px; }
.tmq-card { flex: 1 1 220px; background: var(--tmq-night-2); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.tmq-card__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tmq-gold); }
.tmq-card__value { font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: 20px; line-height: 1.2; }
.tmq-card__note { font-size: 14px; color: #C9D2DA; }
.tmq-card__note a { color: #fff; font-weight: 600; }
.tmq-countdown { display: flex; gap: 8px; }
.tmq-countdown span { background: var(--tmq-night); border-radius: 10px; padding: 6px 12px; display: flex; flex-direction: column; align-items: center; font-size: 12px; color: #C9D2DA; }
.tmq-countdown b { font-family: "Inter Tight", Inter, sans-serif; font-size: 26px; line-height: 1.1; color: #fff; }

.tmq-panel { flex: 1 1 320px; min-width: 0; background: #fff; color: var(--tmq-ink); border-radius: 18px; padding: 24px; }
.tmq-panel h3 { font-size: 22px; margin-bottom: 10px; }
.tmq-panel p { margin: 0 0 12px; }
.tmq-big { font-family: "Inter Tight", Inter, sans-serif; font-size: 44px; font-weight: 800; line-height: 1; color: #A87408; }

.tmq-form { display: flex; flex-direction: column; gap: 8px; }
.tmq-form label { font-size: 14px; font-weight: 600; }
.tmq-form input[type="text"], .tmq-form input[type="email"], .tmq-form input[type="tel"] { height: 48px; border-radius: 10px; border: 1px solid var(--tmq-line-2); padding: 0 14px; font: inherit; width: 100%; }
.tmq-form .tmq-btn { margin-top: 8px; }
.tmq-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin-top: 6px; }
.tmq-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; }
.tmq-check a { color: #0B5CAD; font-weight: 600; }
.tmq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.tmq-error { color: var(--tmq-bad); background: var(--tmq-bad-bg); border-radius: 8px; padding: 10px 12px; margin: 4px 0 0; font-size: 14px; }

/* Play */
.tmq-play { background: var(--tmq-surface); border-radius: 18px; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 16px; }
.tmq-play__top { display: flex; justify-content: space-between; font-weight: 700; }
.tmq-timer { height: 10px; border-radius: 5px; background: var(--tmq-line); overflow: hidden; }
.tmq-timer__bar { display: block; height: 100%; width: 100%; background: var(--tmq-gold); transition: width .2s linear; }
.tmq-timer__bar.is-low { background: #D9542C; }
.tmq-timer__text { font-size: 13px; color: var(--tmq-muted); margin-top: -8px; }
.tmq-play__question { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.2; font-weight: 800; }
.tmq-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.tmq-option { display: flex; gap: 12px; align-items: center; min-height: 58px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--tmq-line-2); background: #fff; color: var(--tmq-ink); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.tmq-option:hover:not(:disabled) { border-color: var(--tmq-ink); }
.tmq-option:disabled { cursor: default; }
.tmq-option__letter { flex: 0 0 30px; height: 30px; border-radius: 15px; background: var(--tmq-surface); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.tmq-option.is-picked { border-color: var(--tmq-ink); }
.tmq-option.is-correct { border-color: var(--tmq-ok-line); background: var(--tmq-ok-bg); color: var(--tmq-ok); }
.tmq-option.is-correct .tmq-option__letter { background: var(--tmq-ok-line); color: #fff; }
.tmq-option.is-wrong { border-color: var(--tmq-bad-line); background: var(--tmq-bad-bg); color: var(--tmq-bad); }
.tmq-option.is-wrong .tmq-option__letter { background: var(--tmq-bad-line); color: #fff; }
.tmq-feedback { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; }
.tmq-feedback.is-ok { background: var(--tmq-ok-bg); color: var(--tmq-ok); }
.tmq-feedback.is-bad { background: #FBEFD5; color: #5C3D02; }
.tmq-next { align-self: flex-end; }

/* How it works + board */
.tmq-how h3, .tmq-board h3 { font-size: 24px; margin-bottom: 12px; }
.tmq-how ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.tmq-board__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tmq-table-wrap { overflow-x: auto; border: 1px solid var(--tmq-line); border-radius: 14px; }
.tmq-board table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; margin: 0; }
.tmq-board th, .tmq-board td { padding: 12px 16px; text-align: left; border: 0; border-top: 1px solid var(--tmq-line); }
.tmq-board thead th { background: var(--tmq-surface); border-top: 0; font-weight: 700; }
.tmq-board tr.is-me td { background: #FBF6EA; font-weight: 700; }

/* Practice result */
.tmq-result { background: var(--tmq-night); color: #fff; border-radius: 20px; padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.tmq-result__score { font-family: "Inter Tight", Inter, sans-serif; font-size: 64px; font-weight: 800; line-height: 1; color: var(--tmq-gold); }
.tmq-result__title { font-size: 28px; color: #fff; }
.tmq-result__text { margin: 0; color: #C9D2DA; }
.tmq-share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.tmq-cta { margin-top: 10px; color: var(--tmq-gold) !important; font-weight: 700; }

/* Sharing and invites */
.tmq-sharebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tmq-sharebar__label { font-size: 14px; color: #C9D2DA; margin-right: 4px; }
.tmq-share-links { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.tmq .tmq-chip, .tmq .tmq-chip:hover { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid #3D4B57; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.tmq .tmq-panel .tmq-chip, .tmq .tmq-panel .tmq-chip:hover { border-color: var(--tmq-line-2); color: var(--tmq-ink); }
.tmq-invite { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--tmq-line); display: flex; flex-direction: column; gap: 10px; }
.tmq-invite__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tmq .tmq-btn--line, .tmq .tmq-btn--line:hover { background: #fff; color: var(--tmq-ink); border: 1px solid var(--tmq-line-2); }
.tmq-invite .tmq-btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.tmq-invited:empty { display: none; }
.tmq .tmq-link { color: #0B5CAD; font-weight: 700; text-decoration: none; }

/* Archive */
.tmq-archive { gap: 16px; }
.tmq-arch { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; border: 1px solid var(--tmq-line); border-radius: 16px; padding: 22px 24px; }
.tmq-arch__main { flex: 999 1 320px; display: flex; flex-direction: column; gap: 6px; }
.tmq-arch__main h3 { font-size: 22px; }
.tmq-arch__main p { margin: 0; }
.tmq-arch__winner { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; background: #FBF6EA; border-radius: 12px; padding: 14px 16px; }
.tmq-arch__winner .tmq-card__label { color: #7A5203; }
.tmq-arch__winner b { font-size: 20px; }
