/* Tag 18: Ausparken in der Werkhalle (KB-ADV-010). Nur Regeln unter .day-18.
   Hallenboden 6x6 als gemaltes Stahlplatten-Bild, Fahrzeuge als gemalte Bilder im Button (Drehung am Bild), Hallentor rechts in der dritten Reihe als Ziel. Rahmen, Brief, Polaroid und Werkzeugzeile bleiben wie in der Referenz. */

.day-18 .quest-panel { min-height:0; padding:0; background:none; }
.day-18 .world-label,.day-18 form>h2 { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.day-18.chapter-later .quest-playfield { min-height:0; padding:0; border:0; background:none; box-shadow:none; overflow:visible; container-type:inline-size; }
.day-18.chapter-later .quest-playfield::before { content:none; }
.day-18 .feedback-space { min-height:0; }
.day-18 .answer-feedback { margin:0; font-size:18px; }

.day-18 .pk-scene { --bs:min(356px, calc(100cqw - 44px)); display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:14px 34px; padding-bottom:8px; color:#17202c; }
.day-18 .pk-info { width:190px; display:grid; gap:7px; }
.day-18 .pk-info p { margin:0; }
.day-18 .pk-hall { font:800 22px/1.1 Roboto,'Roboto Condensed',Arial,sans-serif; }
.day-18 .pk-dots { display:flex; gap:8px; margin:0; padding:0; list-style:none; }
.day-18 .pk-dots li { width:18px; height:18px; border-radius:50%; border:2px solid #17202c; background:#fff8; }
.day-18 .pk-dots .is-now { background:#f3b60a; }
.day-18 .pk-dots .is-done { background:#3fbf6f; }
.day-18 .pk-count { font:600 17px/1.2 Roboto,Arial,sans-serif; }
.day-18 .pk-count b { font-size:24px; }
.day-18 .pk-battery { height:12px; border-radius:99px; border:2px solid #17202c; background:#fff8; overflow:hidden; }
.day-18 .pk-battery i { display:block; height:100%; background:#f3b60a; transition:width .2s; }
.day-18 .pk-sel { font:600 16px/1.25 Roboto,Arial,sans-serif; min-height:2.5em; }

/* Halle */
.day-18 .pk-hallbox { padding-right:calc(var(--bs) * .72 / 6); }
.day-18 .pk-floor { position:relative; box-sizing:content-box; width:var(--bs); aspect-ratio:1; border:0; border-radius:4px; box-shadow:0 8px 18px #000a, 0 0 0 3px #1a2430; background:#1f2f40 url('../../assets/daily/day-18/hallenboden.webp') center/100% 100% no-repeat; }
.day-18 .pk-gate { position:absolute; z-index:0; left:calc(100% - var(--bs) * .1 / 6); top:calc(var(--bs) * 1.69 / 6); width:calc(var(--bs) * .79 / 6); height:calc(var(--bs) * 1.62 / 6); pointer-events:none; filter:drop-shadow(0 3px 4px #0008); }
.day-18 .pk-gate img { display:block; width:100%; height:100%; }
.day-18 .pk-goal { position:absolute; left:68%; top:-21px; translate:-50% 0; padding:1px 9px 2px; border-radius:9px; background:#3fe07b; color:#0c2a18; font:800 13px/1.2 'Roboto Condensed',Arial,sans-serif; letter-spacing:.06em; text-transform:uppercase; box-shadow:0 1px 3px #0009; white-space:nowrap; }

.day-18 .pk-vehicle { --d:0; position:absolute; z-index:1; margin:0; padding:0; min-width:0; min-height:0; border:0; border-radius:10px; background:none; cursor:grab; touch-action:none; opacity:1; container-type:size;
  transition:left .14s ease-out, top .14s ease-out; }
.day-18 .pk-vehicle.pk-h { left:calc((var(--x) + var(--d)) * 100% / 6); top:calc(var(--y) * 100% / 6); width:calc(var(--l) * 100% / 6); height:calc(100% / 6); }
.day-18 .pk-vehicle.pk-v { left:calc(var(--x) * 100% / 6); top:calc((var(--y) + var(--d)) * 100% / 6); width:calc(100% / 6); height:calc(var(--l) * 100% / 6); }
.day-18 .pk-art { position:absolute; left:50%; top:50%; display:block; width:96cqw; height:92cqh; margin:-46cqh 0 0 -48cqw; object-fit:fill; pointer-events:none; user-select:none; filter:drop-shadow(0 3px 2px #000b); }
.day-18 .pk-v .pk-art { width:92cqh; height:96cqw; margin:-48cqw 0 0 -46cqh; rotate:90deg; }
.day-18 .pk-vehicle.no-tr { transition:none; }
.day-18 .pk-vehicle.is-drag { transition:none; cursor:grabbing; z-index:3; }
.day-18 .pk-vehicle.is-selected { z-index:2; box-shadow:0 0 0 3px #fff, 0 0 18px 4px #ffd45acc; }
.day-18 .pk-vehicle:focus-visible { outline:4px solid #fff; outline-offset:1px; box-shadow:0 0 0 7px #10223c; z-index:4; }
.day-18 .pk-vehicle.hint-target { animation:pk-pulse 1.3s ease-in-out 3; }
.day-18 .pk-vehicle.is-out .pk-art { filter:drop-shadow(0 0 8px #27e0ff) drop-shadow(0 3px 2px #000b); }
@keyframes pk-pulse { 50% { box-shadow:0 0 0 4px #fff, 0 0 22px 8px #ffd45a; } }
@media (hover:hover) and (pointer:fine) { .day-18 .pk-vehicle:not(.is-selected):not(:disabled):hover { filter:brightness(1.12); } }

/* Bedienung: zwei grosse Pfeile fuer das gewaehlte Fahrzeug, Zug zurueck, neu starten */
.day-18 .pk-controls { width:190px; display:grid; gap:10px; justify-items:stretch; }
.day-18 .pk-arrows { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.day-18 .pk-arrow { display:grid; place-items:center; min-width:0; min-height:56px; padding:0; border:3px solid #17202c; border-radius:14px; background:linear-gradient(#ffd45a,#f3b60a); color:#17202c; cursor:pointer; box-shadow:0 3px 0 #7a4f00; }
.day-18 .pk-arrow svg { width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:3.500; stroke-linecap:round; stroke-linejoin:round; }
.day-18 .pk-arrows:not(.is-v) .pk-arrow:last-child svg { rotate:180deg; }
.day-18 .pk-arrows.is-v .pk-arrow:first-child svg { rotate:90deg; }
.day-18 .pk-arrows.is-v .pk-arrow:last-child svg { rotate:-90deg; }
.day-18 .pk-arrow:disabled { opacity:.4; cursor:default; box-shadow:none; }
.day-18 .pk-arrow:focus-visible { outline:4px solid #fff; outline-offset:2px; box-shadow:0 0 0 7px #10223c; }
.day-18 .pk-controls .tool-button { min-height:44px; justify-content:center; }
.day-18 .pk-controls .tool-button:disabled { opacity:.45; }

@media (prefers-reduced-motion:reduce) {
  .day-18 .pk-vehicle, .day-18 .pk-battery i { transition:none; }
  .day-18 .pk-vehicle.hint-target { animation:none; box-shadow:0 0 0 4px #fff, 0 0 22px 8px #ffd45a; }
}

/* Werkzeugzeile wie in der Referenz: Vorlesen | Hauptaktion | Hinweis */
@media (min-width:1251px) {
  .mission-paper.day-18.chapter-later form { grid-template-columns:max-content minmax(0,1fr) max-content; grid-template-rows:auto auto auto; align-content:start; }
  .mission-paper.day-18.chapter-later form .quest-playfield { grid-row:1; }
  .mission-paper.day-18.chapter-later form .feedback-space { grid-row:2; min-height:24px; }
  .mission-paper.day-18.chapter-later form .chapter-tools { display:contents; }
  .mission-paper.day-18.chapter-later form .read-aloud { grid-column:1; grid-row:3; align-self:center; margin-top:6px; }
  .mission-paper.day-18.chapter-later form #hint-button { grid-column:3; grid-row:3; align-self:center; margin-top:6px; }
  .mission-paper.day-18.chapter-later form .check-answer { grid-column:2; grid-row:3; justify-self:center; width:470px; margin:6px 0 0; }
}

/* schmal: Info, Halle, Bedienung untereinander */
@media (max-width:700px) {
  .day-18 .pk-scene { gap:12px; }
  .day-18 .pk-info,.day-18 .pk-controls { width:min(100%,330px); }
  .day-18 .pk-info { grid-template-columns:1fr 1fr; align-items:center; }
  .day-18 .pk-hall,.day-18 .pk-count { grid-column:auto; }
  .day-18 .pk-dots,.day-18 .pk-battery,.day-18 .pk-sel { grid-column:1 / -1; }
  .day-18 .pk-sel { min-height:0; }
  .day-18 .pk-controls { grid-template-columns:1fr 1fr; }
  .day-18 .pk-arrows { grid-column:1 / -1; }
}
