/* Tiikerin pino */
.ttp-game {
	--g: #0F4D3A; --cr: #F8F6E9; --y: #FFDD00; --ink: #17231e;
	position: relative; width: 100%; max-width: 560px; margin: 0 auto 2rem;
	height: min(78svh, 760px); min-height: 420px;
	border-radius: 20px; overflow: hidden; background: var(--cr);
	box-shadow: 0 10px 40px rgba(15, 77, 58, .18);
	-webkit-user-select: none; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ttp-game.ttp-full { position: fixed; inset: 0; z-index: 100000; max-width: none; height: 100vh; height: 100dvh; min-height: 0; margin: 0; border-radius: 0; }
html.ttp-noscroll, html.ttp-noscroll body { overflow: hidden; }
.ttp-stage { position: absolute; inset: 0; cursor: pointer; }
.ttp-canvas { display: block; position: absolute; inset: 0; }
.ttp-hud { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 0; right: 0; text-align: center; pointer-events: none; color: var(--g); }
.ttp-score { font-family: "Permanent Marker", "Comic Sans MS", cursive; font-size: clamp(52px, 15vw, 76px); line-height: 1; text-shadow: 0 2px 0 rgba(255, 255, 255, .7); }
.ttp-sub { margin-top: 6px; font: 600 13px/1.3 "Archivo", system-ui, sans-serif; opacity: .8; }
.ttp-combo { margin-top: 10px; font: 800 16px/1 "Archivo", system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--g); opacity: 0; }
.ttp-combo.is-on { animation: ttp-pop .9s ease-out; }
@keyframes ttp-pop { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; transform: scale(1.15); } 30% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.ttp-tools { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); display: flex; gap: 6px; z-index: 3; }
.ttp-icon { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .75); color: var(--g); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.ttp-icon:focus-visible, .ttp-btn:focus-visible { outline: 3px solid var(--g); outline-offset: 2px; }
.ttp-panel { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 64px 16px 16px; background: rgba(248, 246, 233, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); overflow-y: auto; cursor: default; }
.ttp-panel[hidden] { display: none !important; }
.ttp-card { width: 100%; max-width: 360px; max-height: 100%; overflow-y: auto; background: #fff; border-radius: 18px; padding: 22px 20px; box-shadow: 0 8px 30px rgba(15, 77, 58, .18); text-align: center; color: var(--ink); font: 15px/1.45 "Archivo", system-ui, sans-serif; display: flex; flex-direction: column; gap: 12px; }
.ttp-card p { margin: 0; }
.ttp-mascot { display: block; width: 150px; height: auto; margin: -4px auto -6px; animation: ttp-float 2.4s ease-in-out infinite; }
@keyframes ttp-float { 50% { transform: translateY(-6px) rotate(-2deg); } }
.ttp-title { margin: 0; font-family: "Permanent Marker", "Comic Sans MS", cursive; font-size: 34px; line-height: 1.05; color: var(--g); font-weight: 400; }
.ttp-lead { color: #3d4a44; }
.ttp-prize { background: var(--y); color: var(--g); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.ttp-btn { display: block; width: 100%; border: 0; border-radius: 12px; padding: 13px 16px; font: 800 17px/1.1 "Archivo", system-ui, sans-serif; cursor: pointer; background: var(--g); color: var(--cr); }
.ttp-btn--go { background: var(--g); color: var(--cr); font-size: 20px; padding: 16px; }
.ttp-btn--ghost { background: transparent; color: var(--g); box-shadow: inset 0 0 0 2px var(--g); }
.ttp-btn:disabled { opacity: .6; cursor: wait; }
.ttp-link { background: none; border: 0; padding: 0; color: var(--g); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; }
.ttp-over__label { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--g); }
.ttp-over__score { font-family: "Permanent Marker", "Comic Sans MS", cursive; font-size: 64px; line-height: 1; color: var(--g); }
.ttp-over__best { font-size: 13px; color: #56635c; }
.ttp-status { font-size: 14px; font-weight: 600; color: var(--g); min-height: 1em; }
.ttp-status:empty { display: none; }
.ttp-form { display: flex; flex-direction: column; gap: 10px; text-align: left; background: #f4f2e3; border-radius: 12px; padding: 12px; }
.ttp-form__lead { font-size: 14px; font-weight: 600; }
.ttp-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.ttp-form input[type="text"], .ttp-form input[type="email"] { font: 16px/1.3 "Archivo", system-ui, sans-serif; padding: 10px 12px; border: 1.5px solid #c9c6b2; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.ttp-form input:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px rgba(15, 77, 58, .15); }
.ttp-form .ttp-check { flex-direction: row; align-items: flex-start; line-height: 1.35; gap: 8px; font-weight: 500; }
.ttp-form .ttp-check input { width: 20px; height: 20px; accent-color: var(--g); flex: none; }
.ttp-form .ttp-check a { color: var(--g); }
.ttp-more { text-align: left; }
.ttp-more summary { cursor: pointer; font-weight: 700; color: var(--g); font-size: 14px; }
.ttp-board { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ttp-board li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 14px; }
.ttp-board li:nth-child(1) { background: var(--y); font-weight: 700; }
.ttp-board li.is-me { box-shadow: inset 0 0 0 2px var(--g); }
.ttp-board__n { width: 1.4em; text-align: right; color: #6a766f; }
.ttp-board__nick { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttp-board__empty { color: #56635c; font-size: 13px; }
.ttp-rules li { margin-bottom: .4em; }
.ttp-paused { text-align: center; padding: 2rem; }
@media (prefers-reduced-motion: reduce) { .ttp-mascot { animation: none; } .ttp-combo.is-on { animation-duration: .01s; opacity: 1; } }
/* Viikon peli: yhteiset lisät ja Tikru lentää */
.ttp-hint { margin-top: 12px; font: 800 15px/1 "Archivo", system-ui, sans-serif; letter-spacing: .03em; color: var(--g); animation: ttp-bob 1.2s ease-in-out infinite; }
.ttp-hint[hidden] { display: none; }
@keyframes ttp-bob { 50% { transform: translateY(-5px); } }
.ttp-game--lento .ttp-score { text-shadow: 0 3px 0 rgba(255, 255, 255, .85); }
.ttp-kicker { margin: 0 0 -6px !important; font: 800 12px/1 "Archivo", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #56635c; }
.ttp-next { font-size: 13px; font-weight: 700; color: var(--g); background: #f4f2e3; border-radius: 10px; padding: 7px 10px; }
.ttp-board__won { font-size: 11px; font-weight: 700; color: #7a5b00; background: #fff3b0; border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.ttp-medals { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ttp-medal { width: 58px; height: 58px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 800 11px/1.1 "Archivo", system-ui, sans-serif; color: var(--g); background: #ece9d6; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #d8d4bd; transform: rotate(-4deg); opacity: .45; }
.ttp-medal:nth-child(even) { transform: rotate(3deg); }
.ttp-medal b { font-size: 17px; }
.ttp-medal.is-on { opacity: 1; }
.ttp-medal--1.is-on { background: #E3A26B; } .ttp-medal--2.is-on { background: #D7DBD8; } .ttp-medal--3.is-on { background: var(--y); } .ttp-medal--4.is-on { background: #F28A2E; color: #fff; }
@media (prefers-reduced-motion: reduce) { .ttp-hint { animation: none; } }
.ttp-prize__bonus { display: block; margin-top: 4px; font-weight: 600; }
.ttp-coupon { background: var(--g); color: var(--cr); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ttp-coupon__lead { font-weight: 700; font-size: 14px; }
.ttp-coupon__code { font: 800 24px/1 "Archivo", system-ui, sans-serif; letter-spacing: .08em; background: var(--y); color: var(--g); border-radius: 10px; padding: 10px 16px; -webkit-user-select: all; user-select: all; }
.ttp-coupon .ttp-coupon__copy { color: var(--cr); box-shadow: inset 0 0 0 2px var(--cr); padding: 9px 12px; font-size: 15px; }
.ttp-coupon__note { font-size: 12px; opacity: .85; }
.ttp-card .ttp-title, .ttp-card .ttp-kicker { margin: 0 !important; }
.ttp-card > * { flex-shrink: 0; }
.ttp-coupon-slot:empty { display: none; }

/* Pelisivu: iso sivuotsikko piiloon (jää ruudunlukijoille), jotta peli mahtuu ruutuun ilman vierittämistä. */
.ttp-page .page-hero { position: absolute !important; width: 1px; height: 1px; padding: 0 !important; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ttp-page .page-hero + .section { padding-top: 12px; }
/* Matalat näytöt (esim. läppäri 1366 × 768): tiiviimpi aloitusruutu. */
@media (max-height: 820px) {
	.ttp-panel { padding-top: 56px; }
	.ttp-card { padding: 16px 18px; gap: 9px; }
	.ttp-mascot { width: 104px; }
	.ttp-title { font-size: 30px; }
}
/* Puhelimen alapalkki (WhatsApp / Pyydä tarjous) piiloon pelisivulla, ettei se peitä peliä. */
.ttp-page .mobile-cta { display: none !important; }
