/* ==========================================================================
   Otava-ilme etusivulle (11/2026)
   Etusivun omat osiot. Kaikki luokat alkavat ot-, jotta muut sivut eivät muutu.
   Värit tulevat sivuston teematokeneista, joten vaalea teema toimii.
   ========================================================================== */

.ot-page {
  --ot-bg: var(--bg, #0b0f15);
  --ot-card: color-mix(in srgb, var(--bg, #0b0f15) 97%, #fff 3%);
  --ot-card-2: var(--bg, #0b0f15);
  --ot-mat: color-mix(in srgb, var(--bg, #0b0f15) 95%, #fff 5%);
  --ot-mat-sel: color-mix(in srgb, var(--bg, #0b0f15) 91%, #fff 9%);
  --ot-seam: color-mix(in srgb, var(--bg, #0b0f15) 70%, #000 30%);
  --ot-ink: var(--text, #f1f3f5);
  --ot-ink-2: color-mix(in srgb, var(--text, #f1f3f5) 82%, var(--bg, #0b0f15));
  --ot-ink-3: var(--text-muted, #aeb6c0);
  --ot-ink-4: color-mix(in srgb, var(--text-muted, #aeb6c0) 75%, var(--bg, #0b0f15));
  --ot-line: var(--border, rgba(255, 255, 255, 0.12));
  --ot-red: #ff0915;
  --ot-red-text: #ff4650;
  --ot-hoku: #ff0915;
  --ot-junnu: #f5c400;
  --ot-ken: #4f8cff;
  --ot-ken-text: #7fa9ff;
  --ot-diesel: #ff7a1a;
  --ot-diesel-text: #ff8a33;
  --ot-vapaa: #5a6472;
  --ot-live: #3ddc84;
  --ot-gold: #f5c400;
  --ot-brown: #7a4a26;
  --ot-mono: 'Roboto Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ot-jp: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  display: block;
  overflow-x: clip;
}
:root[data-theme="light"] .ot-page {
  --ot-card: var(--surface, #fff);
  --ot-mat: color-mix(in srgb, var(--bg) 92%, #000 8%);
  --ot-mat-sel: color-mix(in srgb, var(--bg) 86%, #000 14%);
  --ot-red-text: #c8000c;
  --ot-ken-text: #1f5fd1;
  --ot-diesel-text: #b04e00;
  --ot-junnu: #a37f00;
  --ot-live: #0e8a4a;
  --ot-gold: #a37f00;
  --ot-seam: color-mix(in srgb, var(--bg) 85%, #000 15%);
}

.ot-page [hidden] { display: none !important; }

.ot-wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-left: max(clamp(16px, 3vw, 24px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 3vw, 24px), env(safe-area-inset-right, 0px));
}
.ot-sec { padding-block: clamp(56px, 8vw, 110px); }
.ot-stack { display: flex; flex-direction: column; }

/* Tähtitaivas (vain tummassa teemassa) */
.ot-sky-tw {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(1.8px 1.8px at 8% 22%, #fff 50%, transparent 60%), radial-gradient(1.6px 1.6px at 27% 64%, #fff 50%, transparent 60%), radial-gradient(2px 2px at 46% 12%, #fff 50%, transparent 60%), radial-gradient(1.4px 1.4px at 63% 81%, #fff 50%, transparent 60%), radial-gradient(1.8px 1.8px at 78% 34%, #fff 50%, transparent 60%), radial-gradient(1.6px 1.6px at 92% 70%, #fff 50%, transparent 60%), radial-gradient(1.4px 1.4px at 17% 90%, #fff 50%, transparent 60%), radial-gradient(2px 2px at 55% 47%, rgba(255, 140, 140, 0.9) 50%, transparent 60%);
  animation: ot-sky 4.5s ease-in-out infinite alternate;
}
.ot-sky-tw.b {
  background-image: radial-gradient(1.6px 1.6px at 14% 48%, #fff 50%, transparent 60%), radial-gradient(2px 2px at 36% 28%, #fff 50%, transparent 60%), radial-gradient(1.4px 1.4px at 51% 74%, #fff 50%, transparent 60%), radial-gradient(1.8px 1.8px at 69% 16%, #fff 50%, transparent 60%), radial-gradient(1.6px 1.6px at 86% 52%, #fff 50%, transparent 60%), radial-gradient(1.4px 1.4px at 4% 76%, #fff 50%, transparent 60%), radial-gradient(1.8px 1.8px at 97% 9%, #fff 50%, transparent 60%);
  animation-duration: 6.5s; animation-delay: -3s;
}
:root[data-theme="light"] .ot-sky-tw { display: none; }
@keyframes ot-sky { from { opacity: 0.12; } to { opacity: 0.85; } }

/* Typografia */
.ot-eyebrow { font: 500 12px/1.3 var(--ot-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ot-ink-3); display: flex; align-items: center; gap: 10px; margin: 0; }
.ot-eyebrow i { font-style: normal; color: var(--ot-red-text); }
.ot-sdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ot-ink); box-shadow: 0 0 8px 1px color-mix(in srgb, var(--ot-ink) 60%, transparent); flex: 0 0 auto; }
.ot-h2 { margin: 0; font: 900 clamp(32px, 4.2vw, 58px)/1.02 Roboto, sans-serif; text-transform: uppercase; letter-spacing: 0.005em; text-wrap: balance; color: var(--ot-ink); }
.ot-h2 span { color: var(--ot-red); }
.ot-lead { margin: 0; font: 400 clamp(17px, 1.4vw, 19px)/1.65 Roboto, sans-serif; color: var(--ot-ink-2); max-width: 62ch; }
.ot-muted { margin: 0; font: 400 16px/1.6 Roboto, sans-serif; color: var(--ot-ink-3); max-width: 60ch; }
.ot-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ot-sec-head > div { display: flex; flex-direction: column; gap: 18px; }
.ot-kanji { writing-mode: vertical-rl; font-family: var(--ot-jp); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 9, 21, 0.85); }

/* Napit */
.ot-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ot-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 6px; font: 700 19px/1 Roboto, sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.ot-btn:hover { transform: translateY(-2px); }
.ot-btn:active { transform: scale(0.98); }
.ot-btn-red { background: var(--ot-red); color: #fff !important; }
.ot-btn-red:hover { background: #e00010; color: #fff !important; }
.ot-btn-ghost { background: color-mix(in srgb, var(--ot-ink) 4%, transparent); color: var(--ot-ink) !important; border-color: var(--ot-line); }
.ot-btn-ghost:hover { border-color: var(--ot-red); }
.ot-textlink { font: 500 14px/1 var(--ot-mono); letter-spacing: 0.06em; text-decoration: none; color: var(--ot-red-text) !important; padding: 14px 0; display: inline-block; }

/* Hero */
.ot-hero { position: relative; z-index: 3; padding-block: clamp(110px, 12vw, 140px) 0; display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.ot-kanji-col { flex: 0 0 auto; padding-top: 4px; }
.ot-kanji-col .ot-kanji { font-size: 88px; letter-spacing: 0.04em; }
.ot-hero-text { flex: 1 1 480px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.ot-hero h1 { margin: 0; font: 900 clamp(34px, 4.1vw, 58px)/0.98 Roboto, sans-serif; text-transform: uppercase; letter-spacing: 0.005em; color: var(--ot-ink); text-wrap: balance; }
.ot-hero h1 span { color: var(--ot-red); position: relative; display: inline-block; }
.ot-hero h1 span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 5px; background: var(--ot-red); transform: scaleX(0); transform-origin: 0 50%; animation: ot-slash 0.6s cubic-bezier(0.7, 0, 0.2, 1) 0.95s forwards; }
@keyframes ot-slash { to { transform: scaleX(1); } }
.ot-hokuto { margin: 0; padding-left: 14px; border-left: 2px solid rgba(255, 9, 21, 0.7); font: 400 14px/1.6 var(--ot-mono); color: var(--ot-ink-3); max-width: 540px; }
.ot-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 500 13px/1.4 var(--ot-mono); letter-spacing: 0.03em; color: var(--ot-ink-3); }
.ot-trust b { color: var(--ot-gold); font-weight: 400; }

/* Löydä oma treenisi */
.ot-finder { flex: 1 1 400px; min-width: 0; max-width: 540px; margin-top: 6px; display: flex; flex-direction: column; gap: 18px; padding: 30px 30px 28px; border-radius: 4px; border: 1px solid var(--ot-line); background: var(--ot-card); box-shadow: inset 0 10px 0 var(--c, var(--ot-hoku)), inset 0 -10px 0 var(--c, var(--ot-hoku)), 0 30px 60px rgba(0, 0, 0, 0.35); }
.ot-today { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0 16px; border-bottom: 1px solid var(--ot-line); text-decoration: none; }
.ot-led { position: relative; width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex: 0 0 auto; background: var(--ot-vapaa); }
.ot-led.is-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ot-live); animation: ot-ring 1.6s ease-out infinite; }
.ot-today .t-head { display: block; font: 500 11px/1.3 var(--ot-mono); letter-spacing: 0.14em; color: var(--ot-ink-3); text-transform: uppercase; }
.ot-today .t-line { display: block; font: 700 15px/1.4 Roboto, sans-serif; margin-top: 3px; color: var(--ot-ink); }
.ot-today > span:last-child { min-width: 0; }
.ot-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ot-seg button { position: relative; overflow: hidden; min-height: 48px; border-radius: 3px; border: 0; cursor: pointer; text-align: left; padding: 0 14px; font: 700 15px/1.2 Roboto, sans-serif; color: var(--ot-ink); background: var(--ot-mat); box-shadow: inset 0 3px 0 var(--sc), inset 0 -3px 0 var(--sc); transition: transform 0.2s; }
.ot-seg button[aria-pressed="true"] { background: var(--ot-bg); box-shadow: inset 0 3px 0 var(--sc), inset 0 -3px 0 var(--sc), 0 0 0 2px var(--ot-ink); }
.ot-ftitle { margin: 0; font: 900 clamp(26px, 2.6vw, 34px)/1.05 Roboto, sans-serif; text-transform: uppercase; color: var(--ot-ink); }
.ot-fdesc { margin: 0; font: 400 16px/1.55 Roboto, sans-serif; color: var(--ot-ink-2); }
.ot-fnext { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 3px; background: color-mix(in srgb, var(--ot-ink) 4%, transparent); border: 1px solid var(--ot-line); }
.ot-fnext b { font: 500 11px/1 var(--ot-mono); letter-spacing: 0.14em; color: var(--ot-ink-4); text-transform: uppercase; }
.ot-fnext strong { font: 700 20px/1.3 var(--ot-mono); font-variant-numeric: tabular-nums; color: var(--ot-ink); }
.ot-live { align-self: flex-start; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font: 700 12px/1 var(--ot-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--lc, var(--ot-ink-3)); border: 1px solid var(--lc, var(--ot-ink-3)); }
.ot-fweek { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font: 500 14px/1.4 var(--ot-mono); color: var(--ot-ink-3); font-variant-numeric: tabular-nums; }
.ot-fweek li { display: flex; gap: 12px; }
.ot-fweek li b { color: var(--ot-ink); font-weight: 700; min-width: 28px; }
.ot-finder .ot-btn { width: 100%; }

/* Kuvanauha ja tekniikkanauha */
.ot-band { position: relative; z-index: 1; height: clamp(330px, 44vw, 640px); margin-top: -30px; }
.ot-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%); }
:root[data-theme="light"] .ot-band > img { mix-blend-mode: normal; }
.ot-ticker { position: relative; z-index: 2; width: calc(100% + 60px); margin: -14px -30px 0; background: var(--ot-red); color: #0b0f15; transform: rotate(-1.2deg); border-block: 3px solid #0b0f15; overflow: hidden; }
.ot-ticker-track { display: flex; align-items: center; width: max-content; animation: ot-tick 34s linear infinite; }
.ot-ticker span { font: 900 clamp(26px, 3.6vw, 46px)/1 Roboto, sans-serif; text-transform: uppercase; padding: 12px 26px; white-space: nowrap; }
.ot-ticker span.o { color: transparent; -webkit-text-stroke: 1.6px #0b0f15; }
.ot-ticker i { width: 14px; height: 10px; flex: 0 0 auto; clip-path: polygon(0 0, 100% 0, 50% 100%); background: #0b0f15; }
.ot-ticker:hover .ot-ticker-track { animation-play-state: paused; }
@keyframes ot-tick { to { transform: translateX(-50%); } }
.ot-motion-toggle { position: absolute; right: 46px; top: 50%; transform: translateY(-50%) rotate(1.2deg); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #0b0f15; background: var(--ot-red); color: #0b0f15; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ot-motion-toggle:hover { background: #0b0f15; color: var(--ot-red); }
.ot-motion-paused .ot-ticker-track, .ot-motion-paused .ot-sky-tw, .ot-motion-paused .ot-led::after, .ot-motion-paused .ot-nowdot::after, .ot-motion-paused .ot-polaris .dot::after { animation-play-state: paused; }

/* Laji */
.ot-split { display: flex; flex-wrap: wrap; gap: 56px; }
.ot-split > .ot-stack { flex: 1 1 500px; min-width: 0; gap: 22px; }
.ot-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ot-line); border: 1px solid var(--ot-line); border-radius: 14px; overflow: hidden; margin-top: 8px; }
.ot-stats > div { background: var(--ot-card); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.ot-stats strong { font: 900 44px/1 Roboto, sans-serif; font-variant-numeric: tabular-nums; color: var(--ot-ink); }
.ot-stats strong em { font-style: normal; font-size: 28px; color: var(--ot-red); }
.ot-stats strong em.gold { color: var(--ot-gold); }
.ot-stats > div > span { font: 500 12px/1.3 var(--ot-mono); letter-spacing: 0.08em; color: var(--ot-ink-3); text-transform: uppercase; }
.ot-techs { flex: 1 1 340px; min-width: 0; position: relative; list-style: none; margin: 0; padding: 8px 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.ot-techs::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 30px; width: 1px; background: linear-gradient(to bottom, color-mix(in srgb, var(--ot-ink) 35%, transparent), rgba(255, 9, 21, 0.8)); }
.ot-techs li { display: flex; align-items: center; gap: 22px; min-height: 58px; font: 900 clamp(24px, 2.4vw, 30px)/1 Roboto, sans-serif; text-transform: uppercase; color: var(--ot-ink); }
.ot-techs li.cap { display: block; min-height: 0; font: 500 12px/1 var(--ot-mono); letter-spacing: 0.14em; color: var(--ot-ink-4); padding: 0 0 12px 40px; }
.ot-techs li i { width: 27px; display: flex; justify-content: center; }
.ot-techs li i::before { content: ""; width: var(--s, 8px); height: var(--s, 8px); border-radius: 50%; background: var(--ot-ink); box-shadow: 0 0 10px var(--ot-ink); }
.ot-techs li.red i::before { background: var(--ot-red); box-shadow: 0 0 14px var(--ot-red); }

/* Viikkotatami */
.ot-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 500 13px/1 var(--ot-mono); color: var(--ot-ink-2); }
.ot-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ot-legend span::before { content: ""; width: 18px; height: 10px; border-radius: 2px; background: var(--c); }
.ot-legend .now { color: var(--ot-red-text); }
.ot-legend .now::before { height: 2px; box-shadow: 0 0 6px var(--ot-red); }
.ot-cal-wrap { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 16px; border: 1px solid var(--ot-line); background: color-mix(in srgb, var(--ot-bg) 86%, #000 14%); }
.ot-cal { min-width: 920px; display: grid; grid-template-columns: 58px repeat(7, minmax(118px, 1fr)); grid-template-rows: 60px repeat(16, 30px); gap: 3px; padding: 10px; }
.ot-dhead { position: relative; overflow: hidden; border: 0; cursor: pointer; text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 12px; border-radius: 3px; background: var(--ot-card); color: var(--ot-ink); font-family: Roboto, sans-serif; transition: transform 0.2s; }
.ot-dhead .dh-d { font: 900 18px/1 Roboto, sans-serif; }
.ot-dhead .dh-date { font: 500 11px/1.2 var(--ot-mono); letter-spacing: 0.08em; color: var(--ot-ink-4); }
.ot-dhead.is-today { background: var(--ot-red); color: #fff; }
.ot-dhead.is-today .dh-date, .ot-dhead.is-today .dh-d { color: #fff; }
.ot-dhead[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ot-ink); }
.ot-colstrip { border-radius: 3px; background-color: var(--ot-mat); background-image: repeating-linear-gradient(to bottom, transparent 0 30px, var(--ot-seam) 30px 33px); }
.ot-colstrip.is-dim { opacity: 0.75; }
.ot-hr { grid-column: 1; align-self: start; font: 500 12px/1 var(--ot-mono); color: var(--ot-ink-4); padding: 2px 10px 2px 0; text-align: right; font-variant-numeric: tabular-nums; }
.ot-hr.end { align-self: end; }
.ot-rest { z-index: 1; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; font: 500 12px/1 var(--ot-mono); letter-spacing: 0.3em; color: var(--ot-vapaa); text-transform: uppercase; pointer-events: none; }
.ot-mat { position: relative; z-index: 1; overflow: hidden; border: 0; text-align: left; cursor: pointer; color: var(--ot-ink); padding: 7px 12px 7px 15px; display: flex; flex-direction: column; gap: 3px; border-radius: 3px; font-family: Roboto, sans-serif; background-color: var(--ot-mat); box-shadow: inset 6px 0 0 var(--c), inset -6px 0 0 var(--c); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.ot-mat:hover { transform: scale(0.97); }
.ot-mat[aria-pressed="true"] { background-color: var(--ot-mat-sel); box-shadow: inset 6px 0 0 var(--c), inset -6px 0 0 var(--c), 0 0 0 2px var(--ot-ink), 0 10px 30px rgba(0, 0, 0, 0.4); }
.ot-mat .m-t { font: 700 12px/1.2 var(--ot-mono); color: var(--ot-ink-2); font-variant-numeric: tabular-nums; }
.ot-mat .m-n { font: 900 14px/1.15 Roboto, sans-serif; text-transform: uppercase; }
.ot-mat .m-g { font: 400 12px/1.3 Roboto, sans-serif; color: var(--ot-ink-3); }
.ot-seg button::after, .ot-dhead::after, .ot-mat::after, .ot-dm::after, .ot-daypick button::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--ot-ink) 7%, transparent); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.ot-seg button:hover::after, .ot-dhead:hover::after, .ot-mat:hover::after, .ot-dm:hover::after, .ot-daypick button:hover::after { opacity: 1; }
.ot-nowcol { position: relative; z-index: 3; pointer-events: none; }
.ot-nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--ot-red); box-shadow: 0 0 10px rgba(255, 9, 21, 0.9); }
.ot-nowdot { position: absolute; left: -5px; width: 11px; height: 11px; margin-top: -4.5px; border-radius: 50%; background: var(--ot-red); }
.ot-nowdot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ot-red); animation: ot-ring 2s ease-out infinite; }
.ot-daypick { display: none; }
.ot-daypick button { position: relative; overflow: hidden; min-height: 58px; border: 0; border-radius: 3px; background: var(--ot-card); color: var(--ot-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 900 14px/1 Roboto, sans-serif; cursor: pointer; padding: 0; }
.ot-daypick button small { font: 500 10px/1 var(--ot-mono); color: var(--ot-ink-4); font-variant-numeric: tabular-nums; }
.ot-daypick button em { display: flex; gap: 2px; height: 4px; }
.ot-daypick button em i { width: 7px; height: 4px; border-radius: 1px; }
.ot-daypick button.is-today { background: var(--ot-red); color: #fff; }
.ot-daypick button.is-today small, .ot-daypick button.is-today span { color: #fff; }
.ot-daypick button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ot-ink); }
.ot-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px 40px; padding: 40px; border-radius: 4px; border: 1px solid var(--ot-line); background: var(--ot-card); box-shadow: inset 0 10px 0 var(--c, var(--ot-vapaa)), inset 0 -10px 0 var(--c, var(--ot-vapaa)), 0 24px 50px rgba(0, 0, 0, 0.35); }
.ot-pick-time { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ot-pick-time strong { font: 700 clamp(34px, 4vw, 56px)/1 var(--ot-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ot-ink); }
.ot-pick-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ot-pick-body h3 { margin: 0; font: 900 clamp(28px, 3vw, 42px)/1.04 Roboto, sans-serif; text-transform: uppercase; color: var(--ot-ink); }
.ot-pick-body p { margin: 0; font: 400 18px/1.5 Roboto, sans-serif; color: var(--ot-ink-2); }
.ot-pick .ot-btns { flex-direction: column; align-items: stretch; }
.ot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ot-tag { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font: 700 12px/1 var(--ot-mono); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--tc); color: var(--tc); }
.ot-daymats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ot-dm-lbl { font: 500 12px/1 var(--ot-mono); letter-spacing: 0.14em; color: var(--ot-ink-4); text-transform: uppercase; margin-right: 6px; }
.ot-dm { position: relative; overflow: hidden; border: 0; cursor: pointer; min-height: 46px; padding: 0 18px; border-radius: 3px; display: inline-flex; align-items: center; gap: 12px; color: var(--ot-ink); font: 700 14px/1 Roboto, sans-serif; background-color: var(--ot-mat); box-shadow: inset 0 4px 0 var(--c), inset 0 -4px 0 var(--c); transition: transform 0.2s; }
.ot-dm[aria-pressed="true"] { background-color: var(--ot-mat-sel); box-shadow: inset 0 4px 0 var(--c), inset 0 -4px 0 var(--c), 0 0 0 2px var(--ot-ink); }
.ot-dm .dm-t { font: 700 13px/1 var(--ot-mono); color: var(--ot-ink-2); font-variant-numeric: tabular-nums; }
.ot-dm-none { font: 400 15px/1.5 Roboto, sans-serif; color: var(--ot-ink-3); }
.ot-table-toggle summary { cursor: pointer; font: 500 14px/1 var(--ot-mono); letter-spacing: 0.06em; color: var(--ot-red-text); padding: 14px 0; min-height: 44px; }
.ot-table-toggle[open] summary { margin-bottom: 12px; }

/* Ryhmät */
.ot-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.ot-gcard { position: relative; overflow: hidden; isolation: isolate; padding: 28px 26px 32px; min-height: 340px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ot-ink) !important; background: var(--ot-card); border: 1px solid var(--ot-line); border-radius: 14px; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.ot-gcard:hover { transform: translateY(-4px); }
.ot-gcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 70% at 50% 115%, color-mix(in srgb, var(--c) 26%, transparent), transparent 65%); opacity: 0; transition: opacity 0.35s; }
.ot-gcard:hover::before { opacity: 1; }
.ot-gcard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--c); transform: scaleY(0.6); transform-origin: 50% 100%; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.ot-gcard:hover::after { transform: none; }
.ot-gcard .ot-kanji { position: absolute; right: 14px; top: 16px; font-size: 64px; -webkit-text-stroke-color: color-mix(in srgb, var(--ot-ink) 42%, transparent); opacity: 0.4; transition: opacity 0.35s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.ot-gcard:hover .ot-kanji { opacity: 1; transform: translateY(-6px); }
.ot-gcard .age { font: 500 12px/1 var(--ot-mono); letter-spacing: 0.12em; color: var(--ct); text-transform: uppercase; }
.ot-gcard h3 { margin: 0; font: 900 28px/1.04 Roboto, sans-serif; text-transform: uppercase; max-width: 70%; color: var(--ot-ink); }
.ot-gcard p { margin: 0; font: 400 16px/1.55 Roboto, sans-serif; color: var(--ot-ink-3); }
.ot-gcard .foot { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; font: 500 13px/1.3 var(--ot-mono); letter-spacing: 0.04em; }
.ot-gcard .foot span:first-child { color: var(--ot-ink-3); }

/* Peruskurssi */
.ot-course { border-radius: 18px; border: 1px solid rgba(255, 9, 21, 0.45); background: linear-gradient(110deg, rgba(255, 9, 21, 0.12), var(--ot-card) 44%); display: flex; flex-wrap: wrap; gap: 40px; padding: clamp(24px, 4vw, 44px); }
.ot-course > .ot-stack { flex: 1 1 500px; min-width: 0; gap: 18px; }
.ot-course h2 { margin: 0; font: 900 clamp(24px, 2.8vw, 38px)/1.08 Roboto, sans-serif; text-transform: uppercase; color: var(--ot-ink); }
.ot-course-date { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 22px; }
.ot-course-date strong { font: 900 clamp(32px, 4vw, 52px)/1 Roboto, sans-serif; text-transform: uppercase; color: var(--ot-ink); }
.ot-course-date span { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; font: 500 13px/1.2 var(--ot-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ot-ink-3); }
.ot-perk { margin: 0; padding: 14px 16px; border-radius: 10px; background: rgba(255, 9, 21, 0.1); border: 1px solid rgba(255, 9, 21, 0.35); font: 400 16px/1.55 Roboto, sans-serif; color: var(--ot-ink); }
.ot-facts { flex: 1 1 340px; min-width: 0; margin: 0; border-radius: 14px; background: color-mix(in srgb, var(--ot-bg) 70%, transparent); border: 1px solid var(--ot-line); padding: 8px 26px; }
.ot-facts > div { padding: 18px 0; border-bottom: 1px solid var(--ot-line); display: flex; flex-direction: column; gap: 6px; }
.ot-facts > div:last-child { border-bottom: 0; }
.ot-facts dt { font: 500 11px/1 var(--ot-mono); letter-spacing: 0.14em; color: var(--ot-ink-4); text-transform: uppercase; }
.ot-facts dd { margin: 0; font: 700 17px/1.5 Roboto, sans-serif; color: var(--ot-ink); }
.ot-facts dd small { display: block; font: 400 15px/1.5 Roboto, sans-serif; color: var(--ot-ink-3); }

/* Kokemukset */
.ot-score { display: flex; align-items: baseline; gap: 14px; }
.ot-score strong { font: 900 96px/0.9 Roboto, sans-serif; color: var(--ot-ink); }
.ot-score .stars { color: var(--ot-gold); font-size: 22px; letter-spacing: 3px; }
.ot-score .stars em { font-style: normal; background: linear-gradient(90deg, var(--ot-gold) 60%, color-mix(in srgb, var(--ot-ink) 25%, transparent) 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ot-score small { display: block; font: 500 12px/1 var(--ot-mono); letter-spacing: 0.08em; color: var(--ot-ink-3); margin-top: 6px; }
.ot-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ot-review { margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 18px; background: var(--ot-card); border: 1px solid var(--ot-line); border-radius: 14px; }
.ot-review blockquote { margin: 0; font: 400 17px/1.6 Roboto, sans-serif; color: var(--ot-ink); }
.ot-review figcaption { margin-top: auto; font: 500 12px/1.3 var(--ot-mono); letter-spacing: 0.08em; color: var(--ot-ink-3); }

/* Yhteisö */
.ot-wa { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: 18px; border: 1px solid var(--ot-line); background: var(--ot-card); }
.ot-wa > .ot-stack { flex: 1 1 300px; min-width: 0; gap: 16px; }
.ot-wa h2 { margin: 0; font: 900 clamp(26px, 3vw, 40px)/1.05 Roboto, sans-serif; text-transform: uppercase; color: var(--ot-ink); }
.ot-steps-box { flex: 2 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ot-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.ot-steps li { display: flex; flex-direction: column; gap: 10px; }
.ot-steps .n { font: 700 13px/1 var(--ot-mono); color: var(--ot-red-text); }
.ot-steps b { font: 700 18px/1.2 Roboto, sans-serif; color: var(--ot-ink); }
.ot-steps span:last-child { font: 400 15px/1.5 Roboto, sans-serif; color: var(--ot-ink-3); }
.ot-fine { margin: 0; padding-top: 16px; border-top: 1px solid var(--ot-line); font: 400 14px/1.6 Roboto, sans-serif; color: var(--ot-ink-3); }
.ot-crew { display: flex; flex-wrap: wrap; gap: 22px; align-items: stretch; margin-top: 22px; }
.ot-crew > .ot-stack { flex: 1 1 280px; min-width: 0; justify-content: center; gap: 12px; }
.ot-crew h3 { margin: 0; font: 900 26px/1.1 Roboto, sans-serif; text-transform: uppercase; color: var(--ot-ink); }
.ot-person { flex: 1 1 360px; min-width: 0; margin: 0; padding: 18px; display: flex; gap: 20px; align-items: center; background: var(--ot-card); border: 1px solid var(--ot-line); border-radius: 14px; }
.ot-person img { width: 116px; height: 116px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.ot-person figcaption { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ot-person .nm { font: 900 19px/1.1 Roboto, sans-serif; text-transform: uppercase; color: var(--ot-ink); }
.ot-person .rk { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.3 var(--ot-mono); letter-spacing: 0.06em; color: var(--ot-ink-2); }
.ot-person .rk::before { content: ""; width: 26px; height: 6px; border-radius: 2px; background: var(--belt); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ot-ink) 20%, transparent); flex: 0 0 auto; }
.ot-person .rl { font: 400 14px/1.5 Roboto, sans-serif; color: var(--ot-ink-3); }

/* Kokeilu ja sali */
.ot-trial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro form" "dojo form"; gap: 28px 56px; align-items: start; }
.ot-trial > .ot-stack { grid-area: intro; min-width: 0; gap: 22px; }
.ot-trial > .ot-form { grid-area: form; min-width: 0; }
.ot-trial > .ot-dojo { grid-area: dojo; }
.ot-form .glass-panel { background: var(--ot-card) !important; border: 1px solid var(--ot-line) !important; border-radius: 14px !important; box-shadow: none !important; }
.ot-polaris { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.ot-polaris svg { position: absolute; inset: 0; }
.ot-polaris .dot { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--ot-red); box-shadow: 0 0 0 6px rgba(255, 9, 21, 0.18), 0 0 30px 8px rgba(255, 9, 21, 0.55); }
.ot-polaris .dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--ot-red); animation: ot-ring 2.6s ease-out infinite; }
.ot-dojo { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--ot-line); }
.ot-dojo .addr { font: 900 clamp(22px, 2.4vw, 28px)/1.2 Roboto, sans-serif; text-transform: uppercase; color: var(--ot-ink); }
.ot-dojo p { margin: 0; font: 400 16px/1.55 Roboto, sans-serif; color: var(--ot-ink-3); }

/* Liike: yksi latausjakso, kuvan syvyys, osioiden nousu, klikkausisku.
   Tekstien animaatiot liikkuvat pelkällä siirrolla, eivät häivytä: läpinäkyvä teksti
   alittaa kontrastivaatimuksen ja kaataa laatuportin axe-tarkistuksen. */
@keyframes ot-rise { from { transform: translateY(22px); } to { transform: none; } }
@keyframes ot-ink { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes ot-ring { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }
@keyframes ot-swap { from { transform: translateY(8px); } to { transform: none; } }
@keyframes ot-impact { from { transform: scale(0.15); opacity: 0.9; } to { transform: scale(1); opacity: 0; } }
@keyframes ot-drift { from { transform: translateY(-4%) scale(1.07); } to { transform: translateY(4%) scale(1); } }
@keyframes ot-enter { from { transform: translateY(28px) scale(0.985); } to { transform: none; } }
.ot-hero-text > *, .ot-finder { animation: ot-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.ot-hero-text > :nth-child(2) { animation-delay: 0.12s; }
.ot-hero-text > :nth-child(3) { animation-delay: 0.22s; }
.ot-hero-text > :nth-child(4) { animation-delay: 0.3s; }
.ot-hero-text > :nth-child(5) { animation-delay: 0.38s; }
.ot-hero-text > :nth-child(6) { animation-delay: 0.44s; }
.ot-finder { animation-delay: 0.3s; }
.ot-kanji-col .ot-kanji { animation: ot-ink 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.ot-swap { animation: ot-swap 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.ot-impact { position: fixed; z-index: 60; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; border: 2px solid var(--ot-red, #ff0915); pointer-events: none; animation: ot-impact 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@supports (animation-timeline: view()) {
  .ot-band > img { animation: ot-drift linear both; animation-timeline: view(); animation-range: cover; }
  .ot-h2, .ot-cards, .ot-reviews, .ot-person, .ot-course, .ot-wa, .ot-pick, .ot-cal-wrap, .ot-stats { animation: ot-enter linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}

/* Mobiili */
@media (max-width: 860px) {
  .ot-trial { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "dojo"; }
  .ot-pick { grid-template-columns: minmax(0, 1fr); padding: 34px 24px; }
  .ot-pick .ot-btns { flex-direction: row; flex-wrap: wrap; }
  .ot-pick .ot-btns .ot-btn { flex: 1 1 200px; }
}
@media (max-width: 760px) {
  .ot-kanji-col, .ot-hidesm { display: none !important; }
  .ot-hero { gap: 18px; }
  .ot-hero-text { display: contents; }
  .ot-hero-text > * { flex: 1 1 100%; order: 1; }
  .ot-finder { order: 2; flex: 1 1 100%; max-width: none; padding: 24px 20px 22px; }
  .ot-hero .ot-trust { order: 3; }
  .ot-hero .ot-hokuto { order: 4; }
  .ot-hero-text > .ot-btns { display: none; }
  .ot-band { height: 300px; margin-top: 0; }
  .ot-stats > div { padding: 16px 12px; }
  .ot-stats strong { font-size: 30px; }
  .ot-stats strong em { font-size: 20px; }
  .ot-stats > div > span { font-size: 10px; }
  .ot-techs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; padding: 0; }
  .ot-techs::before { display: none; }
  .ot-techs li { min-height: 40px; font-size: 16px; gap: 10px; }
  .ot-techs li i { width: 12px; }
  .ot-techs li.cap { grid-column: 1 / -1; padding: 0 0 8px; }
  .ot-cal-wrap { display: none; }
  .ot-daypick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  #aikataulut > .ot-wrap > *, #schedule > .ot-wrap > * { order: 1; }
  .ot-daymats { order: 2 !important; }
  .ot-pick { order: 3 !important; }
  .ot-table-toggle { order: 4 !important; }
  .ot-cards, .ot-reviews { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 10px; }
  .ot-cards > *, .ot-reviews > * { flex: 0 0 84%; scroll-snap-align: start; }
  .ot-gcard { min-height: 300px; }
  .ot-polaris { width: 72px; height: 72px; }
  .ot-polaris .dot { width: 16px; height: 16px; }
  .ot-motion-toggle { right: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .ot-page *, .ot-page *::before, .ot-page *::after, .ot-sky-tw, .ot-impact { animation: none !important; transition: none !important; }
  .ot-hero h1 span::after { transform: none; }
  .ot-motion-toggle, .ot-impact { display: none; }
}
