/* ==========================================================================
   educis Play — Aussehen der Filmszenen.
   Bausteine und Einheit (--u) kommen aus film.css.
   ========================================================================== */

/* ---------- Formen der Spielkacheln ---------- */
.shape { display: block; aspect-ratio: 1; background: currentColor; }
.shape--circle { border-radius: 50%; }
.shape--square { border-radius: 24%; }
.shape--hex { clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
.shape--tri { clip-path: polygon(50% 6%, 96% 92%, 4% 92%); }
.shape--star { clip-path: polygon(50% 2%, 62% 36%, 98% 36%, 69% 58%, 80% 94%, 50% 72%, 20% 94%, 31% 58%, 2% 36%, 38% 36%); }
.shape--bolt { clip-path: polygon(58% 0, 14% 56%, 46% 56%, 38% 100%, 86% 40%, 54% 40%); }

.gtile--c0, .gcard--c0 { --c: #a78bfa; --c2: #6d28d9; }
.gtile--c1, .gcard--c1 { --c: #fdba74; --c2: #ea580c; }
.gtile--c2, .gcard--c2 { --c: #93c5fd; --c2: #2563eb; }
.gtile--c3, .gcard--c3 { --c: #6ee7b7; --c2: #059669; }

/* ---------- 1 · Uhr ---------- */
.clock {
  position: relative;
  width: calc(19 * var(--u));
  height: calc(19 * var(--u));
  display: grid;
  place-items: center;
}
.clock__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.clock__track { fill: none; stroke: rgb(255 255 255 / 0.1); stroke-width: 4; }
.clock__arc {
  fill: none;
  stroke: var(--f-accent-2);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 calc(0.8 * var(--u)) rgb(167 139 250 / 0.9));
}
.clock__face { place-items: center; }
.clock__num {
  font-size: calc(11 * var(--u));
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.clock__play {
  display: grid;
  place-items: center;
  width: calc(11 * var(--u));
  height: calc(11 * var(--u));
  border-radius: 50%;
  background: linear-gradient(140deg, #a78bfa, #6d28d9);
  box-shadow: 0 0 calc(5 * var(--u)) rgb(139 92 246 / 0.8);
}
.clock__play svg { width: 52%; height: 52%; fill: #fff; transform: translateX(4%); }
.clock__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--f-accent-2);
  opacity: 0;
}

/* ---------- 2 · Browser ---------- */
.browser {
  width: calc(46 * var(--u));
  overflow: hidden;
  border-radius: calc(1.4 * var(--u));
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: calc(0.6 * var(--u));
  padding: calc(1 * var(--u)) calc(1.3 * var(--u));
  border-bottom: 1px solid var(--f-line);
  background: rgb(255 255 255 / 0.04);
}
.browser__bar > i {
  width: calc(0.9 * var(--u));
  height: calc(0.9 * var(--u));
  border-radius: 50%;
  background: rgb(255 255 255 / 0.22);
}
.browser__url {
  display: flex;
  align-items: center;
  gap: calc(0.7 * var(--u));
  flex: 1;
  margin-left: calc(0.8 * var(--u));
  padding: calc(0.6 * var(--u)) calc(1.1 * var(--u));
  border-radius: 999px;
  background: rgb(0 0 0 / 0.35);
  font-family: var(--mono);
  font-size: calc(1.25 * var(--u));
  color: var(--f-text);
}
.browser__url .f-ico { width: calc(1.3 * var(--u)); height: calc(1.3 * var(--u)); color: var(--f-ok); }
.caret {
  width: 2px;
  height: calc(1.5 * var(--u));
  margin-left: calc(-0.5 * var(--u));
  background: var(--f-accent-2);
  animation: caret 0.9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.browser__body { position: relative; padding: calc(1.5 * var(--u)); }
.gtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(1.1 * var(--u)); }
.gtile {
  display: grid;
  gap: calc(0.9 * var(--u));
  align-content: space-between;
  aspect-ratio: 1.42;
  padding: calc(1.1 * var(--u));
  border-radius: calc(1.1 * var(--u));
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c2) 46%, #120e24));
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  color: var(--c);
}
.gtile .shape { width: calc(3.4 * var(--u)); }
.gtile span { color: #fff; font-size: calc(1.28 * var(--u)); font-weight: 600; letter-spacing: -0.01em; }
.pointer {
  position: absolute;
  right: 6%;
  bottom: 4%;
  width: calc(2.6 * var(--u));
  height: calc(2.6 * var(--u));
  filter: drop-shadow(0 calc(0.4 * var(--u)) calc(0.6 * var(--u)) rgb(0 0 0 / 0.7));
}
.pointer svg { width: 100%; height: 100%; fill: #fff; stroke: #0b0915; stroke-width: 1.4; stroke-linejoin: round; }
.stopwatch { position: absolute; right: calc(-1 * var(--u)); top: calc(-2.2 * var(--u)); font-size: calc(1.28 * var(--u)); }
.stopwatch b { font-variant-numeric: tabular-nums; }

/* ---------- Tauziehen (Geräte und Arena) ---------- */
.tug { position: relative; overflow: hidden; --pos: 0; }
.tug__half { position: absolute; top: 0; bottom: 0; width: 50%; }
.tug__half--a { left: 0; background: linear-gradient(120deg, rgb(251 146 60 / 0.42), rgb(251 146 60 / 0.14)); }
.tug__half--b { right: 0; background: linear-gradient(240deg, rgb(96 165 250 / 0.42), rgb(96 165 250 / 0.14)); }
.tug__rope {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: calc(0.42 * var(--u));
  border-radius: 99px;
  background: repeating-linear-gradient(90deg, #f5e9d3 0 calc(0.7 * var(--u)), #d9c7a3 calc(0.7 * var(--u)) calc(1.4 * var(--u)));
  transform: translateY(-50%);
}
.tug__knot {
  position: absolute;
  top: 50%;
  left: calc(50% + var(--pos) * 1%);
  width: calc(2 * var(--u));
  height: calc(2 * var(--u));
  border-radius: 50%;
  background: #fff;
  border: calc(0.4 * var(--u)) solid var(--f-accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 calc(1.6 * var(--u)) rgb(167 139 250 / 0.9);
}
.tug--tall .tug__rope { left: 10%; right: 10%; }

/* ---------- 3 · Geräte ---------- */
.devices {
  position: relative;
  width: calc(72 * var(--u));
  height: calc(27.5 * var(--u));
}
.devices .dev { position: absolute; }
.devices .dev--board { width: calc(44 * var(--u)); left: calc(14 * var(--u)); top: 0; }
.devices .dev--tablet { width: calc(23 * var(--u)); right: calc(1 * var(--u)); bottom: 0; }
.devices .dev--phone { width: calc(9.6 * var(--u)); left: calc(5 * var(--u)); bottom: 0; border-radius: calc(1.6 * var(--u)); border-width: calc(0.4 * var(--u)); }
.devices .dev--phone::before { top: calc(0.45 * var(--u)); height: calc(0.55 * var(--u)); }
.devices .tug { width: 100%; height: 100%; }
.devices .dev--phone .tug__knot,
.devices .dev--tablet .tug__knot { width: calc(1.4 * var(--u)); height: calc(1.4 * var(--u)); border-width: calc(0.3 * var(--u)); }

/* ---------- 4 · Von leicht bis strategisch ---------- */
.range { width: calc(46 * var(--u)); padding: calc(1.6 * var(--u)); display: grid; gap: calc(1.5 * var(--u)); }
.range__view {
  height: calc(21 * var(--u));
  border-radius: calc(1.1 * var(--u));
  background: rgb(0 0 0 / 0.3);
  perspective: calc(90 * var(--u));
  overflow: hidden;
}
.easy, .strat { display: grid; place-items: center; align-content: center; gap: calc(1.6 * var(--u)); backface-visibility: hidden; }
.easy__q { font-size: calc(6.4 * var(--u)); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.easy__answers { display: flex; gap: calc(1.2 * var(--u)); }
.easy__answers b {
  display: grid;
  place-items: center;
  width: calc(6.4 * var(--u));
  height: calc(5 * var(--u));
  border-radius: calc(1.2 * var(--u));
  border: 1px solid var(--f-line-strong);
  background: rgb(255 255 255 / 0.07);
  font-size: calc(2.4 * var(--u));
  font-weight: 650;
}
.strat { position: relative; }
.strat svg { width: 92%; height: 92%; overflow: visible; }
.hx { fill: rgb(255 255 255 / 0.07); stroke: rgb(255 255 255 / 0.16); stroke-width: 0.5; }
.strat__crown {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: calc(4.4 * var(--u));
  height: calc(4.4 * var(--u));
  border-radius: 50%;
  background: #fbbf24;
  color: #3b2a00;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 calc(2.4 * var(--u)) rgb(251 191 36 / 0.8);
}
.strat__crown .f-ico { width: calc(2.4 * var(--u)); height: calc(2.4 * var(--u)); }
.range__slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: calc(1.2 * var(--u));
  font-size: calc(1.2 * var(--u));
  color: var(--f-muted);
}
.range__track { position: relative; height: calc(0.6 * var(--u)); border-radius: 99px; background: rgb(255 255 255 / 0.12); --v: 0; }
.range__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 1%);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--f-accent-2), var(--f-accent));
}
.range__knob {
  position: absolute;
  top: 50%;
  left: calc(var(--v) * 1%);
  width: calc(2.2 * var(--u));
  height: calc(2.2 * var(--u));
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 calc(0.5 * var(--u)) rgb(139 92 246 / 0.45), 0 calc(0.4 * var(--u)) calc(1 * var(--u)) rgb(0 0 0 / 0.5);
}

/* ---------- 5 · Regal ---------- */
.shelf {
  display: grid;
  gap: calc(1.4 * var(--u));
  width: calc(100% + 12 * var(--u));
  margin-inline: calc(-6 * var(--u));
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.shelf__row { display: flex; gap: calc(1.4 * var(--u)); width: max-content; }
.gcard {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: calc(0.5 * var(--u)) calc(1.2 * var(--u));
  min-width: calc(21 * var(--u));
  padding: calc(1.4 * var(--u)) calc(1.6 * var(--u));
  border-radius: calc(1.4 * var(--u));
  border: 1px solid color-mix(in srgb, var(--c) 36%, transparent);
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 22%, transparent), color-mix(in srgb, var(--c2) 30%, #120e24));
  color: var(--c);
}
.gcard .shape { grid-row: span 2; width: calc(4.2 * var(--u)); }
.gcard span { color: #fff; font-size: calc(1.6 * var(--u)); font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.gcard em { display: flex; gap: calc(0.4 * var(--u)); }
.gcard em b { width: calc(1.3 * var(--u)); height: calc(0.42 * var(--u)); border-radius: 99px; background: rgb(255 255 255 / 0.2); }
.gcard em b.on { background: var(--c); }

/* ---------- 6 · Arena ---------- */
.arena {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: calc(1.6 * var(--u));
  width: calc(80 * var(--u));
}
.arena__team {
  display: grid;
  place-items: center;
  align-content: center;
  gap: calc(0.4 * var(--u));
  min-width: calc(13 * var(--u));
  padding: calc(1.6 * var(--u));
  border-radius: calc(1.6 * var(--u));
  border: 1px solid var(--f-line);
}
.arena__team span { font-size: calc(1.3 * var(--u)); font-weight: 550; }
.arena__team b { font-size: calc(5.4 * var(--u)); font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.arena__team--a { background: rgb(251 146 60 / 0.16); color: #fed7aa; border-color: rgb(251 146 60 / 0.4); }
.arena__team--b { background: rgb(96 165 250 / 0.16); color: #bfdbfe; border-color: rgb(96 165 250 / 0.4); }
.arena__mid { position: relative; }
.tug--arena { height: calc(13 * var(--u)); border-radius: calc(1.6 * var(--u)); border: 1px solid var(--f-line); overflow: visible; }
.tug--arena .tug__half--a { border-radius: calc(1.6 * var(--u)) 0 0 calc(1.6 * var(--u)); }
.tug--arena .tug__half--b { border-radius: 0 calc(1.6 * var(--u)) calc(1.6 * var(--u)) 0; }
.tug--arena .tug__rope { height: calc(0.7 * var(--u)); }
.tug--arena .tug__knot { width: calc(3.4 * var(--u)); height: calc(3.4 * var(--u)); border-width: calc(0.6 * var(--u)); }
.arena__win { position: absolute; left: calc(1 * var(--u)); top: calc(-2 * var(--u)); font-size: calc(1.4 * var(--u)); font-weight: 600; }
.confetti { position: absolute; left: 12%; top: 50%; width: 0; height: 0; }
.cf { position: absolute; width: calc(0.9 * var(--u)); height: calc(1.5 * var(--u)); border-radius: 2px; opacity: 0; }
.cf--0 { background: #fb923c; }
.cf--1 { background: #c4b5fd; }
.cf--2 { background: #fde047; }
.cf--3 { background: #6ee7b7; }
.cf--4 { background: #fff; }

/* ---------- Hochformat ---------- */
@container (max-aspect-ratio: 1/1) {
  .clock { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
  .browser { width: calc(45 * var(--u)); }
  .stopwatch { right: 0; top: calc(-2.6 * var(--u)); }
  .devices { width: calc(45 * var(--u)); height: calc(33 * var(--u)); }
  .devices .dev--board { width: calc(41 * var(--u)); left: calc(2 * var(--u)); }
  .devices .dev--tablet { width: calc(21 * var(--u)); right: 0; }
  .devices .dev--phone { left: calc(3 * var(--u)); }
  .range { width: calc(45 * var(--u)); }
  .range__view { height: calc(22 * var(--u)); }
  .shelf { width: calc(100% + 6.8 * var(--u)); margin-inline: calc(-3.4 * var(--u)); gap: calc(1.2 * var(--u)); }
  .gcard { min-width: calc(19 * var(--u)); }
  .arena { width: calc(45.6 * var(--u)); grid-template-columns: 1fr 1fr; gap: calc(1.2 * var(--u)); }
  .arena__mid { grid-column: 1 / -1; grid-row: 2; }
  .arena__team { min-width: 0; padding: calc(1.2 * var(--u)); }
  .arena__team b { font-size: calc(4.6 * var(--u)); }
  .tug--arena { height: calc(11 * var(--u)); }
  .arena__win { top: calc(-2.6 * var(--u)); left: 0; }
}
