/* "Ghicește destinația" game page. */

.tb-game-page { margin-top: 34px; }
.tb-game-page__head { text-align: center; }
.tb-game-page__kicker {
	display: inline-flex; align-items: center; gap: 8px;
	height: 32px; padding: 0 14px; border-radius: 999px;
	background: #e8f1ff; color: var(--tb-blue-ink); font-size: 14px; font-weight: 600;
}
.tb-game-page__title { margin-top: 14px; font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; color: var(--tb-ink); }
.tb-game-page__content { max-width: 760px; margin: 48px auto 0; }

.tb-game { max-width: 760px; margin: 28px auto 0; }
.tb-game__card {
	position: relative; overflow: hidden;
	padding: 34px 38px 36px; border-radius: var(--tb-radius-xl);
	background: #fff; box-shadow: var(--tb-shadow);
}
.tb-game__card::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 6px;
	background: linear-gradient(90deg, #19aafd 0%, #4f87fa 24%, #8e69fa 48%, #b562ee 72%, #f065bf 100%);
}

/* Intro */
.tb-game__lead { font-size: 18px; line-height: 1.6; color: #2b3144; }
.tb-game__rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; list-style: none; }
.tb-game__rules li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--tb-bg, #f3f6fa); }
.tb-game__rules strong { font-size: 20px; color: var(--tb-ink); }
.tb-game__rules span { font-size: 14px; color: var(--tb-muted); }
.tb-game__best { margin-top: 18px; font-size: 15px; color: var(--tb-muted); }
.tb-game__start { margin-top: 24px; height: 50px; padding: 0 30px; font-size: 16px; }

/* Round */
.tb-game__bar { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--tb-muted); }
.tb-game__score { color: var(--tb-blue-ink); }
.tb-game__progress { margin-top: 10px; height: 6px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.tb-game__progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #19aafd, #8e69fa); transition: width .4s ease; }
.tb-game__ask { margin-top: 26px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--tb-ink); }
.tb-game__clues { margin-top: 14px; display: grid; gap: 10px; list-style: none; counter-reset: clue; }
.tb-game__clue {
	counter-increment: clue;
	display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start;
	padding: 14px 16px; border-radius: 14px; background: #f5f7fb;
	font-size: 17px; line-height: 1.5; color: #2b3144;
}
.tb-game__clue::before {
	content: counter(clue); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	background: #fff; color: var(--tb-blue-ink); font-size: 14px; font-weight: 700; box-shadow: var(--tb-shadow);
}
.tb-game__clue.is-new { animation: tb-clue-in .35s ease; }
@keyframes tb-clue-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tb-game__more {
	margin-top: 12px; padding: 0; border: 0; background: none;
	font-size: 15px; font-weight: 600; color: var(--tb-blue-ink); cursor: pointer;
}
.tb-game__more:disabled { color: var(--tb-soft); cursor: default; }
.tb-game__more:not(:disabled):hover { text-decoration: underline; }

.tb-game__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.tb-game__opt {
	min-height: 56px; padding: 12px 18px; border: 2px solid #e5e9f0; border-radius: 16px;
	background: #fff; font-size: 17px; font-weight: 600; color: var(--tb-ink); text-align: left; cursor: pointer;
	transition: border-color .15s, background-color .15s, transform .15s;
}
.tb-game__opt:not(:disabled):hover { border-color: #8e69fa; transform: translateY(-1px); }
.tb-game__opt:focus-visible { outline: 3px solid #8e69fa; outline-offset: 2px; }
.tb-game__opt:disabled { cursor: default; }
.tb-game__opt.is-right { border-color: #1fa463; background: #e9f8f0; color: #0c6b3d; }
.tb-game__opt.is-wrong { border-color: #e2554f; background: #fdecec; color: #a3231e; }

.tb-game__feedback {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
	margin-top: 20px; padding: 16px 18px; border-radius: 16px;
}
.tb-game__feedback.is-right { background: #e9f8f0; }
.tb-game__feedback.is-wrong { background: #fff4e5; }
.tb-game__feedback strong { font-size: 17px; color: var(--tb-ink); }
.tb-game__read { font-size: 14px; font-weight: 600; color: var(--tb-blue-ink); }
.tb-game__read:hover { text-decoration: underline; }
.tb-game__next { margin-left: auto; height: 44px; padding: 0 22px; font-size: 15px; }

/* End */
.tb-game__end { text-align: center; }
.tb-game__kicker { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #b562ee; }
.tb-game__total {
	margin-top: 8px; font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -.04em;
	background: linear-gradient(90deg, #19aafd, #8e69fa 55%, #f065bf); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tb-game__rank { margin-top: 12px; font-size: 28px; letter-spacing: -.02em; color: var(--tb-ink); }
.tb-game__verdict { margin-top: 6px; font-size: 16px; color: var(--tb-muted); }
.tb-game__recap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 26px 0 0; list-style: none; text-align: left; }
.tb-game__recap li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: 15px; }
.tb-game__recap li.is-right { background: #e9f8f0; color: #0c6b3d; }
.tb-game__recap li.is-wrong { background: #f5f7fb; color: var(--tb-muted); }
.tb-game__recap li span:last-child { font-weight: 700; }
.tb-game__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.tb-game__actions .tb-btn { height: 48px; padding: 0 26px; font-size: 15.5px; }
.tb-game__share { background: #f1ecff; color: #5b3fd1; }
.tb-game__share:hover { background: #e6ddff; }
.tb-game__noscript { padding: 24px; text-align: center; color: var(--tb-muted); }

@media (max-width: 640px) {
	.tb-game-page { margin-top: 20px; }
	.tb-game-page__title { font-size: 32px; }
	.tb-game { margin-top: 20px; }
	.tb-game__card { padding: 26px 18px 24px; border-radius: 22px; }
	.tb-game__rules { grid-template-columns: 1fr; }
	.tb-game__ask { font-size: 22px; }
	.tb-game__clue { font-size: 16px; }
	.tb-game__options { grid-template-columns: 1fr; }
	.tb-game__next { width: 100%; margin-left: 0; justify-content: center; }
	.tb-game__total { font-size: 52px; }
	.tb-game__recap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.tb-game__clue.is-new { animation: none; }
	.tb-game__progress span, .tb-game__opt { transition: none; }
}
