/* ============================================================================
   SOFTAKOULU — Pelipaja alakoululaisille ja vanhemmille
   ----------------------------------------------------------------------------
   Tyyli: PELISTUDIO x LUOKKAHUONE (Curious / Softamestari-sukulainen)
   Valoisa, leikkisä ja selkeä brändi alakoululaisille sekä vanhemmille.
   Nolla ulkoista riippuvuutta — kaikki typografia ja grafiikka natiivisti.
   ============================================================================ */

:root {
  /* --- Pinnat ------------------------------------------------------------ */
  --paper:       #FBF8F3;
  --paper-alt:   #F3EDE2;
  --white:       #FFFFFF;
  --ink:         #1C1C24;
  --ink-soft:    #262834;
  --ink-muted:   #4B5162;
  --line:        #1C1C24;
  --line-soft:   #D8D0C3;

  /* --- Brändivärit ------------------------------------------------------- */
  --yellow:      #FFD23F;
  --yellow-soft: #FFF4CC;
  --coral:       #D63B18;
  --coral-dark:  #B82E10;
  --cyan:        #5CE1E6;
  --cyan-deep:   #006B7D;
  --green:       #34D399;
  --green-soft:  #DCFCE7;
  --violet:      #7C5CFF;
  --violet-soft: #EDE9FE;

  /* --- Typografia -------------------------------------------------------- */
  --display: "Arial Black", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  --body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:    ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* --- Mitat & varjot ---------------------------------------------------- */
  --max:       1220px;
  --gutter:    clamp(16px, 4vw, 40px);
  --border:    2.5px;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
}

/* ---------- 1. Base ----------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan-deep);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

a:hover {
  color: var(--coral-dark);
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.jump {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 800;
  padding: 12px 18px;
  z-index: 999;
  border: var(--border) solid var(--ink);
}

.jump:focus {
  left: 12px;
  top: 12px;
}

.hold {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 2. Topbar & Ticker ------------------------------------------ */

.chrome {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: var(--border) solid var(--ink);
}

.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 0;
}

.ticker__track {
  display: inline-flex;
  gap: 28px;
  padding-left: 28px;
  animation: ticker-scroll 34s linear infinite;
}

.ticker__sep {
  color: var(--yellow);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink);
  border: var(--border) solid var(--ink);
  border-radius: 7px;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--mono);
  font-weight: 900;
  font-size: 14px;
  padding: 4px 8px;
  line-height: 1;
}

.brand__name {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.brand__sub {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.routes {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.routes a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 7px;
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.routes a:hover {
  background: var(--yellow-soft);
  border-color: var(--ink);
  color: var(--ink);
}

.routes a.routes__cta {
  background: var(--coral);
  color: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.routes a.routes__cta:hover {
  background: var(--coral-dark);
  color: var(--white);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--ink);
  border: var(--border) solid var(--ink);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* ---------- 3. Buttons & Badges ----------------------------------------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 13px 22px;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn--primary {
  background: var(--coral);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--coral-dark);
  color: var(--white);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn--yellow:hover {
  background: #FFC61A;
  color: var(--ink);
}

.btn--cyan {
  background: var(--cyan);
  color: var(--ink);
}

.btn--cyan:hover {
  background: #42D4DB;
  color: var(--ink);
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--yellow-soft);
  color: var(--ink);
}

.btn--dark-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--cyan);
  box-shadow: 3px 3px 0 var(--cyan);
}

.btn--dark-ghost:hover {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--yellow);
}

.btn--sm {
  padding: 9px 14px;
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.tag--cyan   { background: var(--cyan); }
.tag--green  { background: var(--green); }
.tag--violet { background: var(--violet); color: var(--white); }
.tag--coral  { background: var(--coral); color: var(--white); }

/* ---------- 4. Stripes & Sections --------------------------------------- */

.stripes {
  height: 14px;
  border-top: var(--border) solid var(--ink);
  border-bottom: var(--border) solid var(--ink);
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow),
    var(--yellow) 12px,
    var(--ink) 12px,
    var(--ink) 24px
  );
}

.stripes--cyan {
  background: repeating-linear-gradient(
    -45deg,
    var(--cyan),
    var(--cyan) 12px,
    var(--ink) 12px,
    var(--ink) 24px
  );
}

.section {
  padding: clamp(56px, 7vw, 96px) 0;
  position: relative;
}

.section--dots {
  background-color: var(--paper);
  background-image: radial-gradient(#CFC6B8 1.25px, transparent 1.25px);
  background-size: 20px 20px;
}

.section--alt {
  background: var(--paper-alt);
  border-top: var(--border) solid var(--ink);
  border-bottom: var(--border) solid var(--ink);
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--dark p {
  color: #D7DCE5;
}

.section--dark a {
  color: var(--cyan);
}

.section__head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section__title {
  font-family: var(--display);
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.section__lead {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--ink-muted);
  margin: 0;
}

.section--dark .section__lead {
  color: #C7D0DD;
}

/* ---------- 5. Hero ----------------------------------------------------- */

.hero {
  padding: clamp(44px, 6vw, 84px) 0 clamp(52px, 6vw, 80px);
  background-color: var(--paper);
  background-image: radial-gradient(#CFC6B8 1.25px, transparent 1.25px);
  background-size: 20px 20px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.82fr);
  gap: clamp(28px, 4.5vw, 52px);
  align-items: center;
}

.hero .btn-row {
  gap: 10px;
}

.hero .btn {
  padding: 12px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 20px;
}

.hero__kicker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 1.5px solid var(--ink);
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.hero__title-accent {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  background: var(--yellow);
  padding: 2px clamp(8px, 1.5vw, 14px) 4px;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  margin-top: 6px;
}

.hero__lead {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 26px;
}

.hero__lead strong {
  color: var(--ink);
  background: linear-gradient(180deg, transparent 58%, var(--yellow) 58%);
  padding: 0 3px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 30px;
}

.fact-pill {
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.fact-pill__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--yellow-soft);
}

.fact-pill--cyan .fact-pill__icon   { background: #D8F7F9; }
.fact-pill--green .fact-pill__icon  { background: var(--green-soft); }
.fact-pill--violet .fact-pill__icon { background: var(--violet-soft); }

.fact-pill__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  display: block;
}

.fact-pill__val {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.25;
}

/* Hero Mascot Illustration */
.hero__mascot-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.hero__mascot-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

/* Hero Visual Card (Arcade / Studio Cartridge) */
.studio-card {
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 3px var(--ink);
  overflow: hidden;
}

.studio-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #2A2D3B;
  border-bottom: 2px solid #3C4154;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
}

.studio-card__dots {
  display: flex;
  gap: 6px;
}

.studio-card__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}

.studio-card__dots span:nth-child(1) { background: var(--coral); }
.studio-card__dots span:nth-child(2) { background: var(--yellow); }
.studio-card__dots span:nth-child(3) { background: var(--green); }

.studio-card__screen {
  padding: 22px;
  background:
    radial-gradient(circle at 80% 20%, rgba(124, 92, 255, 0.25), transparent 50%),
    radial-gradient(circle at 20% 85%, rgba(92, 225, 230, 0.2), transparent 50%),
    #181A24;
}

.studio-card__svg {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #353B50;
  margin-bottom: 18px;
}

.studio-card__prompt {
  background: #232738;
  border: 2px solid var(--cyan);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--paper);
}

.studio-card__prompt-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-card__mascot-badge {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.studio-card__mascot-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.studio-card__prompt-label {
  display: block;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.studio-card__prompt-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
}

.studio-card__foot {
  background: var(--yellow);
  color: var(--ink);
  padding: 13px 18px;
  border-top: 2.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

/* ---------- 6. Cards & Grids -------------------------------------------- */

.card {
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card--dark {
  background: #252836;
  color: var(--paper);
  border: var(--border) solid #424861;
  box-shadow: 5px 5px 0 #0F1016;
}

.card__kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 8px;
}

.card--dark .card__kicker {
  color: var(--cyan);
}

.card__title {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-3 > .card {
  display: flex;
  flex-direction: column;
}

.grid-3 > .card .btn-row {
  margin-top: auto;
  padding-top: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- 7. Timeline (3 tunnin ohjelma) ------------------------------ */

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.timeline .step-card {
  grid-column: span 2;
}

.timeline .step-card:nth-child(4),
.timeline .step-card:nth-child(5) {
  grid-column: span 3;
}

.step-card {
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
}

.step-card__time {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  background: var(--ink);
  color: var(--yellow);
  padding: 4px 9px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.step-card__title {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.step-card__text {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}

/* Parent role banner */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.photo-card {
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.photo-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: var(--border) solid var(--ink);
}

.photo-card__cap {
  padding: 14px 18px 16px;
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.photo-card__kicker {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 4px;
}

.photo-card__cap strong {
  color: var(--ink);
}

.parent-box {
  background: var(--yellow-soft);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: center;
}

.parent-box__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-pill {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.mini-pill strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.mini-pill span {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.45;
  display: block;
}

/* ---------- 8. Ennakko-ohjeet & Agentit --------------------------------- */

.prep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #1D202C;
  border: 2px solid #393F56;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.checklist__icon {
  font-size: 20px;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 1px;
}

.checklist__item:hover {
  border-color: var(--cyan);
}

.checklist__item.is-checked {
  border-color: var(--green);
  background: rgba(52, 211, 153, 0.1);
}

.checklist__item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

.checklist__title {
  display: block;
  font-weight: 800;
  color: var(--paper);
  font-size: 15.5px;
}

.checklist__item.is-checked .checklist__title {
  text-decoration: line-through;
  color: var(--green);
}

.checklist__desc {
  display: block;
  font-size: 13.5px;
  color: #B7C0D1;
  margin-top: 2px;
}

.checklist__progress {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Antigravity Recommendation Card */
.recommend-card {
  background: linear-gradient(135deg, #252A3D 0%, #1F2230 100%);
  border: 3px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--yellow);
  padding: 26px;
  position: relative;
}

.recommend-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.price-strip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(92, 225, 230, 0.12);
  border: 2px solid var(--cyan);
  border-radius: 8px;
  padding: 8px 14px;
  margin: 12px 0 16px;
  font-family: var(--mono);
}

.price-strip__big {
  font-size: 20px;
  font-weight: 900;
  color: var(--cyan);
}

.price-strip__note {
  font-size: 13px;
  color: var(--paper);
}

.steps-mini {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  counter-reset: prepstep;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps-mini li {
  counter-increment: prepstep;
  position: relative;
  padding-left: 35px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #E2E7F0;
  overflow-wrap: break-word;
}

.steps-mini li::before {
  content: counter(prepstep);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 900;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.agent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.agent-pill {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  background: #2C3144;
  border: 1.5px solid #4A5270;
  color: var(--paper);
}

.agent-pill--star {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

/* ---------- 9. Tapahtumat (Tulevat & Menneet) --------------------------- */

.events-group + .events-group {
  margin-top: 44px;
}

.events-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2.5px solid var(--ink);
}

.events-group__title {
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.count-badge {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  background: var(--ink);
  color: var(--yellow);
  padding: 3px 9px;
  border-radius: 999px;
}

.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 22px;
}

.events-list--single {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
  .events-list--single .event-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }

  .events-list--single .event-card > div:first-child {
    flex: 1;
    min-width: 0;
  }

  .events-list--single .event-card .btn-row {
    flex-shrink: 0;
  }
}

.event-card {
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.event-card--past {
  background: var(--paper);
}

.event-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.event-status {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  border: 2px solid var(--ink);
}

.event-status--upcoming {
  background: var(--green);
  color: var(--ink);
}

.event-status--past {
  background: var(--yellow);
  color: var(--ink);
}

.event-date {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.event-card__title {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.15;
  margin: 10px 0 8px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.event-card__summary {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

.empty-state {
  background: var(--white);
  border: 2.5px dashed var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.empty-state h4 {
  font-family: var(--display);
  font-size: 19px;
  margin: 0 0 6px;
}

.empty-state p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 56ch;
}

/* ---------- 10. Peligalleria -------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 15px;
  border-radius: 999px;
  border: 2px solid #4E5673;
  background: #252938;
  color: var(--paper);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.filter-btn.is-active {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 22px;
}

.games-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.game-card__actions-primary {
  width: 100%;
}

.game-card__actions-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.game-card__actions-secondary .btn {
  width: 100%;
  padding: 8px 10px;
  font-size: 11.5px;
}

.game-card {
  background: #252938;
  border: 2.5px solid #444B66;
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 #0F1016;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
}

.game-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--cyan);
}

.game-card__thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2F3650 0%, #1C2030 100%);
  border-bottom: 2px solid #444B66;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.game-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__placeholder {
  text-align: center;
  padding: 20px;
  font-family: var(--mono);
}

.game-card__placeholder-icon {
  font-size: 38px;
  margin-bottom: 8px;
}

.game-card__genre {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 5px;
  border: 1.5px solid var(--ink);
}

.game-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.game-card__event {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.game-card__title {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.2;
  color: var(--paper);
  margin: 0;
}

.game-card__creators {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--yellow);
  margin: 0;
}

.game-card__desc {
  font-size: 14.5px;
  color: #C7D0DD;
  margin: 0;
  flex: 1;
}

.games-coming-soon {
  background: #252938;
  border: 2.5px dashed var(--cyan);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
}

.games-coming-soon h3 {
  font-family: var(--display);
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--paper);
}

.games-coming-soon code {
  background: #171923;
  color: var(--yellow);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.9em;
}

.slot-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.slot-box {
  background: #1C1F2B;
  border: 2px dashed #4A5270;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: #96A3B8;
}

.slot-box span {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

/* ---------- 11. Ilmoita oma tapahtuma (Form) ---------------------------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}

.form-layout .card__kicker {
  letter-spacing: 0.05em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label:not(.radio-card):not(.checkbox-inline),
.field .field__label {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.field input,
.field textarea {
  font-family: var(--body);
  font-size: 15.5px;
  padding: 11px 13px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: background 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--violet);
  border-color: var(--violet);
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.radio-card:has(input:checked) {
  background: var(--yellow-soft);
  box-shadow: 3px 3px 0 var(--ink);
}

.radio-card input[type="radio"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--coral);
  flex-shrink: 0;
}

.radio-card strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 3px;
}

.radio-card span {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.field-hint {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 2px 0 0;
  line-height: 1.45;
}

.checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--coral);
  flex-shrink: 0;
}

.form-result {
  margin-top: 22px;
  background: var(--green-soft);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.form-result[hidden] {
  display: none;
}

.form-result h4 {
  font-family: var(--display);
  font-size: 18px;
  margin: 0 0 8px;
}

.form-result pre {
  background: var(--ink);
  color: var(--cyan);
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0 14px;
}

/* ---------- 12. Materiaalit & Prompt-box -------------------------------- */

.prompt-box {
  margin-top: 26px;
  background: var(--ink);
  color: var(--paper);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.prompt-box__head {
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 18px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 900;
}

.prompt-box__body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  color: var(--paper);
}

/* ---------- 13. UKK (Accordion) ----------------------------------------- */

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.faq-item {
  background: var(--white);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 18px 20px;
  font-weight: 800;
  font-size: 16.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 821px) {
  .faq-item summary {
    min-height: 94px;
  }
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-family: var(--mono);
  font-weight: 900;
  font-size: 18px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--cyan);
}

.faq-item__body {
  padding: 0 20px 18px;
  color: var(--ink-muted);
  font-size: 15px;
  border-top: 1.5px solid var(--line-soft);
  padding-top: 14px;
}

.faq-item__body p {
  margin: 0 0 10px;
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

/* ---------- 14. Game Modal ---------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 16, 22, 0.82);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal__dialog {
  width: 100%;
  max-width: 1060px;
  height: min(86vh, 760px);
  background: var(--ink);
  border: 3px solid var(--yellow);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #252938;
  border-bottom: 2px solid #3C4259;
  color: var(--paper);
}

.modal__title {
  font-family: var(--display);
  font-size: 17px;
  margin: 0;
}

.modal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--white);
}

.modal__dialog--doc {
  max-width: 720px;
  height: auto;
  max-height: 86vh;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}

.modal__dialog--doc .modal__bar {
  background: var(--yellow);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 14px 20px;
}

.modal__dialog--doc .modal__title {
  color: var(--ink);
  font-size: 18px;
}

.modal__body {
  padding: 24px 26px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.6;
  background: var(--white);
  color: var(--ink);
}

.modal__body a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal__body a:hover {
  color: var(--coral);
}

.modal__body h3,
.modal__body h4 {
  font-family: var(--display);
  font-size: 15px;
  margin: 18px 0 6px;
  color: var(--ink);
}

.modal__body h3:first-child,
.modal__body h4:first-child {
  margin-top: 0;
}

.modal__body p,
.modal__body ul {
  margin: 0 0 10px;
}

.modal__body ul {
  padding-left: 20px;
}

.form-info-box {
  background: #FFF7D6;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}

.privacy-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-link:hover {
  color: var(--coral);
}

.footer__bottom .privacy-link {
  color: #B7C0D1;
  font-weight: 600;
}

.footer__bottom .privacy-link:hover {
  color: var(--yellow);
}

/* ---------- 15. Footer -------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  border-top: var(--border) solid var(--ink);
  padding: 48px 0 36px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1.5px solid #353B4E;
}

.footer__mascot-badge {
  width: 46px;
  height: 46px;
  background: var(--yellow);
  border-radius: 10px;
  border: 2px solid var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--paper);
}

.footer__mascot-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer h2,
.footer h3 {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin: 0 0 12px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer a {
  color: #D7DCE5;
  text-decoration: none;
  font-size: 15px;
}

.footer a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.footer__bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  color: #96A3B8;
}

/* ---------- 16. Responsive ---------------------------------------------- */

@media (max-width: 1100px) {
  .hero__grid,
  .prep-grid,
  .form-layout,
  .parent-box,
  .games-coming-soon {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline .step-card,
  .timeline .step-card:nth-child(4),
  .timeline .step-card:nth-child(5) {
    grid-column: auto;
  }

  .timeline .step-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .parent-box__list,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .photo-strip,
  .games-grid--2col {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .routes {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: var(--border) solid var(--ink);
    padding: 14px var(--gutter) 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .routes.is-open {
    display: flex;
  }

  .routes a {
    padding: 10px 12px;
  }

  .faq-list,
  .grid-2,
  .form-grid,
  .radio-group,
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .facts-grid,
  .timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline .step-card:nth-child(5) {
    grid-column: auto;
  }

  .hero .btn {
    white-space: normal;
  }

  .game-card__actions-secondary {
    grid-template-columns: minmax(0, 1fr);
  }

  .card,
  .recommend-card,
  .parent-box,
  .games-coming-soon {
    padding: 20px 18px;
  }

  .studio-card {
    box-shadow: 6px 6px 0 var(--yellow), 6px 6px 0 3px var(--ink);
  }

  .recommend-card {
    box-shadow: 4px 4px 0 var(--yellow);
  }

  .price-strip {
    display: flex;
    flex-wrap: wrap;
  }
}
