






#kuukausikoosteModal.kk-huntu { padding: 0; align-items: stretch; justify-content: center; --huntu: rgba(10, 10, 10, 0.85); }
.kk-ikkuna { position: relative; width: 100%; max-width: 520px; height: 100%; height: 100dvh; overflow: hidden; }
.kk-rata { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.kk-rata::-webkit-scrollbar { display: none; }
.kk-sivu {
  position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  box-sizing: border-box; display: flex; flex-direction: column; color: #F5F1E8;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(165deg, var(--v1), var(--v2));
}
.kk-sivu::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 60% at 85% -5%, rgba(255,255,255,0.16), transparent 60%), radial-gradient(90% 50% at -10% 105%, rgba(0,0,0,0.35), transparent 70%); }
.kk-sivu > * { position: relative; z-index: 1; }
.kk-sivu > .kk-vesileima { position: absolute; z-index: 0; right: -70px; top: 120px; width: 330px; height: 330px; color: rgba(255,255,255,0.05); transform: rotate(-14deg); pointer-events: none; }
.kk-vesileima svg { width: 100% !important; height: 100% !important; stroke-width: 1.2; }
.kk-sivu.nakyy > .kk-vesileima { animation: kkLeijuu 14s ease-in-out infinite alternate; }
@keyframes kkLeijuu { to { transform: rotate(-6deg) translate(-18px, 22px) scale(1.04); } }
.kk-sivu > .kk-pisteet { position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1.2px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%, transparent 100%); }
.kk-sivu.nakyy > .kk-pisteet { animation: kkValuu 30s linear infinite; }
@keyframes kkValuu { to { background-position: 0 220px; } }


.kk-sivut { display: flex; gap: 4px; margin: 4px 0 0; }
.kk-sivut span { flex: 1; height: 3px; border-radius: 2px; background: rgba(245, 241, 232, 0.28); }
.kk-sivut span.on { background: #F5F1E8; }


.kk-sivu .kk-sulje { position: absolute; z-index: 3; top: calc(24px + env(safe-area-inset-top, 0px)); right: 14px; width: 36px; height: 36px; padding: 0; border: none; border-radius: 50%;
  background: rgba(0, 0, 0, 0.25); color: #F5F1E8; display: grid; place-items: center; cursor: pointer; }
.kk-sivu .kk-sulje svg { width: 16px; height: 16px; }
.kk-yla { margin-top: 14px; padding-right: 44px; font: 600 12px 'Oswald', sans-serif; letter-spacing: 2.2px; text-transform: uppercase; opacity: 0.85; }
.kk-h { margin: 6px 0 0; font: 700 40px/1 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.kk-alaotsake { font: 600 11px 'Oswald', sans-serif; letter-spacing: 1.8px; text-transform: uppercase; opacity: 0.8; margin-bottom: 8px; }
.kk-sivu > .kk-alaotsake { margin-top: 20px; }


.kk-sivu.nakyy .kk-tulee { animation: kkTulee 0.7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0) * 0.12s + 0.1s); }
@keyframes kkTulee { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
@keyframes kkKasvaa { from { transform: scaleX(0); } }
@keyframes kkPomppaa { from { transform: scale(0); } }


.kk-jatti { display: flex; align-items: flex-end; gap: 12px; margin-top: 20px; }
.kk-jatti b { font: 700 132px/0.82 'Oswald', sans-serif; letter-spacing: -2px; }
.kk-jatti span, .kk-iso span { font: 600 15px 'Oswald', sans-serif; letter-spacing: 2px; text-transform: uppercase; opacity: 0.85; padding-bottom: 6px; }
.kk-kansirivi { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; margin-top: 20px; }
.kk-chipit { display: grid; gap: 8px; }
.kk-chip { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.kk-chip b { font: 700 22px/1 'Oswald', sans-serif; min-width: 24px; }
.kk-chip span { font-size: 13px; font-weight: 600; opacity: 0.9; }
.kk-chip small { margin-left: auto; font-size: 11px; opacity: 0.7; white-space: nowrap; }
.kk-jakauma { margin-top: auto; padding-top: 18px; }
.kk-pino { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 3px; }
.kk-pino i { display: block; height: 100%; transform-origin: left; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35); }
.kk-sivu.nakyy .kk-pino i { animation: kkKasvaa 1s cubic-bezier(.3,.7,.2,1) both; animation-delay: calc(0.6s + var(--d) * 0.15s); }
.kk-selite { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 12px; }
.kk-selite > div { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; }
.kk-selite-ik { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.kk-selite-ik svg { width: 17px !important; height: 17px !important; }
.kk-selite em { font: 700 17px 'Oswald', sans-serif; font-style: normal; margin-left: auto; }


.kk-rengas { position: relative; width: 112px; height: 112px; flex: none; }
.kk-rengas svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.kk-rengas circle { fill: none; stroke-width: 10; }
.kk-r-pohja { stroke: rgba(255,255,255,0.14); }
.kk-r-tayte { stroke: #F5F1E8; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: calc(289 - 289 * var(--p)); }
.kk-sivu.nakyy .kk-r-tayte { animation: kkRengas 1.6s cubic-bezier(.3,.7,.2,1) 0.5s both; }
@keyframes kkRengas { from { stroke-dashoffset: 289; } }
.kk-r-keski { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.kk-r-keski b { font: 700 30px/1 'Oswald', sans-serif; }
.kk-r-keski small { font: 600 10px 'Oswald', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.8; }


.kk-peliotsikko { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.kk-peliotsikko .kk-h { margin: 0; font-size: 34px; }
.kk-peliotsikko small { display: block; margin-top: 3px; font: 600 12px 'Oswald', sans-serif; letter-spacing: 1.6px; text-transform: uppercase; opacity: 0.75; }
.kk-peli-ikoni { width: 52px; height: 52px; flex: none; border-radius: 14px; background: rgba(255,255,255,0.14); display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.25); color: #F5F1E8; }
.kk-peli-ikoni svg { width: 32px !important; height: 32px !important; }
.kk-peliluvut { display: grid; grid-template-columns: 1fr 104px; gap: 12px; align-items: center; margin-top: 16px; }
.kk-iso b { display: block; font: 700 86px/0.85 'Oswald', sans-serif; }
.kk-peliluvut .kk-rengas { width: 104px; height: 104px; }
.kk-kortit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.kk-kortti, .kk-div, .kk-syonnit { border-radius: 14px; padding: 11px 12px 12px; background: rgba(0,0,0,0.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); min-width: 0; }
.kk-kortti small, .kk-div-otsa small, .kk-koho small:first-child { display: block; font: 600 10.5px 'Oswald', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.75; }
.kk-kortti b { display: flex; align-items: center; gap: 6px; font: 700 30px/1.1 'Oswald', sans-serif; margin-top: 4px; flex-wrap: wrap; }
.kk-kortti b svg { width: 15px; height: 15px; opacity: 0.85; }
.kk-vanha { font-size: 18px; opacity: 0.55; font-weight: 500; }
.kk-muutos { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; background: #46A28B; color: #fff; font: 700 11px 'Inter', sans-serif; margin-left: auto; }
.kk-muutos.lasku { background: #b44a3c; }
.kk-sivu.nakyy .kk-muutos { animation: kkPomppaa 0.6s cubic-bezier(.3,1.6,.5,1) 1.3s both; }
.kk-kortti-ala { font-size: 11.5px; opacity: 0.8; margin-top: 2px; }
.kk-kortti .kk-sijarata { position: relative; height: 34px; margin-top: 6px; display: block; overflow: visible; }
.kk-kortti .kk-sijarata::before { content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.22); }
.kk-kortti .kk-sijarata span { position: absolute; top: 16px; padding-top: 3px; font: 600 9.5px 'Oswald', sans-serif; opacity: 0.7; transform: translateX(-50%); }
.kk-kortti .kk-sijarata i { position: absolute; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: #F5F1E8; box-shadow: 0 0 0 4px rgba(255,255,255,0.18); transform: translateX(-50%); }
.kk-sivu.nakyy .kk-kortti .kk-sijarata i { animation: kkLiukuu 1.2s cubic-bezier(.3,.7,.2,1) 0.8s both; }
@keyframes kkLiukuu { from { left: 0; } }
.kk-div { margin-top: 12px; padding-bottom: 8px; }
.kk-div-otsa { display: flex; align-items: center; gap: 8px; }
.kk-kilvet { margin-left: auto; display: flex; align-items: center; gap: 6px; font: 600 13px 'Inter', sans-serif; text-align: right; }
.kk-kilvet svg { width: 22px; height: 26px; flex: none; }
.kk-kilvet > svg:not(.landing-kilpi) { width: 14px; height: 14px; opacity: 0.8; }
.kk-kuvaaja-svg { display: block; width: 100%; height: auto; margin-top: 6px; }
.kk-sivu.nakyy .kk-polku { stroke-dasharray: 700; animation: kkPiirtyy 1.8s ease-out 0.8s both; }
@keyframes kkPiirtyy { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
.kk-sivu.nakyy .kk-alue { animation: kkHaalistuu 1.2s ease-out 1.5s both; }
@keyframes kkHaalistuu { from { opacity: 0; } }
.kk-sivu.nakyy .kk-loppu { transform-box: fill-box; transform-origin: center; animation: kkPomppaa 0.5s cubic-bezier(.3,1.6,.5,1) 2.4s both; }
.kk-kohot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.kk-koho { display: flex; gap: 10px; align-items: center; border-radius: 14px; padding: 10px 11px; background: rgba(255,255,255,0.1); min-width: 0; }
.kk-koho > div { min-width: 0; }
.kk-koho-ik { width: 34px; height: 34px; border-radius: 10px; background: rgba(0,0,0,0.22); display: grid; place-items: center; flex: none; }
.kk-koho-ik svg { width: 19px; height: 19px; }
.kk-koho b { display: block; font: 700 17px/1.15 'Oswald', sans-serif; overflow-wrap: anywhere; }
.kk-koho small:last-child:not(:first-child) { display: block; font-size: 11px; opacity: 0.8; }
.kk-netti { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; margin-top: 12px; border-radius: 16px; padding: 11px 12px; background: rgba(245,241,232,0.95); color: #2B2B2B; }
.kk-netti-ik { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--v1); color: #F5F1E8; display: grid; place-items: center; }
.kk-netti-ik svg { width: 22px !important; height: 22px !important; }
.kk-netti-otsa { font: 600 11px 'Oswald', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #6b5a45; }
.kk-netti-luvut { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.kk-netti-luvut span { font-size: 12px; color: #4a4237; }
.kk-netti-luvut b { font: 700 18px 'Oswald', sans-serif; color: #2B2B2B; margin-right: 3px; }


.kk-noppaisku { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.kk-noppaisku b { display: block; font: 700 76px/0.85 'Oswald', sans-serif; }
.kk-noppaisku span { font: 600 14px 'Oswald', sans-serif; letter-spacing: 2px; text-transform: uppercase; opacity: 0.85; }
.kk-noppa { width: 88px; height: 88px; flex: none; box-sizing: border-box; padding: 14px; border-radius: 20px; background: #F5F1E8; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), inset 0 -5px 0 rgba(0,0,0,0.12); }
.kk-noppa i { width: 13px; height: 13px; border-radius: 50%; background: #2B2B2B; place-self: center; }
.kk-sivu.nakyy .kk-noppa { animation: kkPyorii 1.1s cubic-bezier(.2,.9,.3,1.2) 0.3s both; }
@keyframes kkPyorii { from { transform: rotate(-200deg) scale(0.4); opacity: 0; } }
.kk-vertailu { margin-top: 16px; display: grid; gap: 9px; }
.kk-v-rivi { display: grid; grid-template-columns: 56px 1fr 40px; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; }
.kk-v-rivi i { display: block; height: 14px; border-radius: 7px; background: #F5F1E8; transform-origin: left; }
.kk-v-rivi.liiga i { background: rgba(245,241,232,0.35); }
.kk-sivu.nakyy .kk-v-rivi i { animation: kkKasvaa 1s cubic-bezier(.3,.7,.2,1) both; animation-delay: calc(0.6s + var(--d) * 0.2s); }
.kk-v-rivi em { font: 700 17px 'Oswald', sans-serif; font-style: normal; text-align: right; }
.kk-syonnit { margin-top: 14px; }
.kk-s-otsa { display: flex; justify-content: space-between; font: 600 10.5px 'Oswald', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.8; }
.kk-s-luvut { display: flex; justify-content: space-between; font: 700 34px/1 'Oswald', sans-serif; margin-top: 4px; }
.kk-s-palkki { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 8px; gap: 3px; }
.kk-s-palkki i { display: block; height: 100%; background: #F5F1E8; }
.kk-s-palkki i + i { background: rgba(245,241,232,0.3); }
.kk-lasi { display: flex; gap: 12px; align-items: center; margin-top: 12px; border-radius: 16px; padding: 12px; background: rgba(255,255,255,0.1); }
.kk-lasi svg { width: 44px; height: 56px; flex: none; }
.kk-sivu.nakyy .kk-neste { transform-box: fill-box; transform-origin: bottom; animation: kkTayttyy 1.6s ease-out 1s both; }
@keyframes kkTayttyy { from { transform: scaleY(0); } }
.kk-lasi b { display: block; font: 700 26px/1 'Oswald', sans-serif; }
.kk-lasi small { font-size: 12px; opacity: 0.85; }


.kk-vastus { display: grid; grid-template-columns: 50px 1fr auto; gap: 4px 12px; align-items: center; padding: 11px 12px; border-radius: 16px; background: rgba(255,255,255,0.08); margin-top: 9px; }
.kk-sivu .kk-vastus:first-of-type { margin-top: 14px; }
.kk-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: none; background: linear-gradient(135deg, #5a5a5a, #1f1f1f); color: #F5F1E8;
  display: grid; place-items: center; font: 600 22px 'Oswald', sans-serif; box-shadow: 0 0 0 2.5px #F5F1E8; }
.kk-vastus-nimi { min-width: 0; }
.kk-vastus-nimi small { display: block; font: 600 10px 'Oswald', sans-serif; letter-spacing: 1.4px; text-transform: uppercase; opacity: 0.75; }
.kk-vastus-nimi b { display: block; font: 700 18px/1.15 'Oswald', sans-serif; overflow-wrap: anywhere; }
.kk-vastus-nimi span { font-size: 11.5px; opacity: 0.8; }
.kk-tase { text-align: right; }
.kk-tase b { display: block; font: 700 20px 'Oswald', sans-serif; }
.kk-tase small { font: 600 9.5px 'Oswald', sans-serif; letter-spacing: 1.2px; text-transform: uppercase; opacity: 0.7; white-space: nowrap; }
.kk-vt { grid-column: 2 / -1; display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; }
.kk-vt i { display: block; height: 100%; background: #46A28B; }
.kk-vt i + i { background: #c0533f; }
.kk-sivu .kk-napit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 16px; }
.kk-sivu .kk-napit button { height: 50px; border-radius: 14px; border: none; font: 800 14px 'Inter', sans-serif; letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer; }
.kk-sivu .kk-jaa { background: #F5F1E8; color: #2B2B2B; }
.kk-sivu .kk-jaa:disabled { opacity: 0.6; }

.kk-sivu .kk-napit .kk-kuvana { grid-column: 1 / -1; }
.kk-sivu .kk-pois { background: rgba(255,255,255,0.12); color: #F5F1E8; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.3); }


@media (max-height: 700px) {
  .kk-jatti b { font-size: 104px; }
  .kk-iso b { font-size: 72px; }
  .kk-h { font-size: 34px; }
  .kk-kansirivi, .kk-peliluvut { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .kk-sivu.nakyy *, .kk-sivu.nakyy > * { animation: none !important; }
}








@media (prefers-reduced-motion: no-preference) {
  .kk-sivu:not(.nakyy) .kk-tulee,
  .kk-sivu:not(.nakyy) .kk-alue,
  .kk-sivu:not(.nakyy) .kk-noppa { opacity: 0; }
  .kk-sivu:not(.nakyy) .kk-pino i,
  .kk-sivu:not(.nakyy) .kk-v-rivi i { transform: scaleX(0); }
  .kk-sivu:not(.nakyy) .kk-muutos,
  .kk-sivu:not(.nakyy) .kk-loppu { transform: scale(0); }
  .kk-sivu:not(.nakyy) .kk-neste { transform: scaleY(0); }
  .kk-sivu:not(.nakyy) .kk-r-tayte { stroke-dashoffset: 289; }
  .kk-sivu:not(.nakyy) .kk-polku { stroke-dasharray: 700; stroke-dashoffset: 700; }
  .kk-sivu:not(.nakyy) .kk-kortti .kk-sijarata i { left: 0 !important; }
}


.kk-nosto {
  display: flex; align-items: center; gap: 10px;
  background: #FFFDF8; border: 1.5px solid #2E5E4E; border-radius: 12px;
  padding: 10px 12px; margin: 0 10px 14px; box-sizing: border-box; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
.kk-nosto-ikoni { font-size: 22px; }
.kk-nosto-teksti { flex: 1; font-size: 13px; font-weight: 600; color: #2B2B2B; }
.kk-nosto-teksti small { display: block; font-weight: 400; color: #5f5f5f; font-size: 11px; }
.kk-nosto .btn-submit { width: auto; margin: 0; padding: 7px 14px; font-size: 12px; }
.kk-lista { display: flex; flex-direction: column; padding: 0 4px 6px; }
.kk-lista-rivi {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 44px; padding: 8px 4px; border: none; border-top: 1px solid rgba(0,0,0,0.05);
  background: none; color: #2B2B2B; font-size: 14px; text-align: left; cursor: pointer;
}
.kk-lista-rivi:first-child { border-top: none; }
.kk-lista-rivi span:last-child { color: #5f5f5f; font-size: 12px; }



.kk-reuna {
  position: absolute;
  top: 90px;
  bottom: 96px;
  width: 22%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.kk-reuna.vasen { left: 0; }
.kk-reuna.oikea { right: 0; }
.kk-reuna:focus-visible { outline: 2px solid #F5F1E8; outline-offset: -4px; }

