/* maximum3.fun — Frutiger Aero / Windows 7 Aero invite.
   Layers: #scene fixed at z0 · content z2 · #bubbles z3 · dialog top-layer. */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", SegoeUI, Frutiger, "Frutiger Linotype", "Helvetica Neue", Arial, sans-serif;
  color: #0b3a55;
  min-height: 100vh;
  min-height: 100dvh; /* Firefox/Chrome Android: survives the collapsing URL bar */
  overflow-x: hidden;
  background: linear-gradient(180deg, #6fd0f5 0%, #38b6ee 30%, #7fe2cf 62%, #bff0e2 100%);
  background-attachment: fixed;
}

/* ===== fixed scene behind everything ===== */

#scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #6fd0f5 0%, #38b6ee 30%, #7fe2cf 62%, #bff0e2 100%); }

.sun {
  position: absolute; top: 6vh; right: 12vw;
  width: 16vmin; height: 16vmin; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fffef0 0%, #ffe98a 45%, rgba(255, 233, 138, 0) 72%);
  box-shadow: 0 0 60px 30px rgba(255, 244, 180, 0.55);
  animation: sunpulse 6s ease-in-out infinite;
}
.sun::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 60vmin; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.7), rgba(255,255,255,0));
  transform: translate(-50%, -50%) rotate(-18deg);
}
@keyframes sunpulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.ribbon {
  position: absolute; top: 18vh; left: -20vw;
  width: 140vw; height: 22vh;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 30%, rgba(255,255,255,0.22) 50%,
    rgba(180,255,230,0.18) 60%, rgba(255,255,255,0) 75%);
  transform: rotate(-8deg);
}

.cloud {
  position: absolute; left: -30vw;
  width: 22vmin; height: 7vmin; border-radius: 999px;
  background: radial-gradient(130% 180% at 50% 18%, #ffffff 0%, #f6fcff 42%, #d9f1ff 100%);
  box-shadow:
    0 10px 24px rgba(110, 165, 210, 0.3),
    0 0 26px rgba(255, 255, 255, 0.75),
    inset 0 4px 7px rgba(255, 255, 255, 0.95),
    inset 0 -6px 12px rgba(150, 200, 238, 0.4);
  animation: drift linear infinite;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(120% 140% at 42% 22%, #ffffff 0%, #eaf7ff 70%, #d3edff 100%);
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.95), inset 0 -4px 8px rgba(150, 200, 238, 0.35);
}
.cloud::before { left: 13%; top: -52%; width: 50%; height: 130%; }
.cloud::after { right: 15%; top: -34%; width: 38%; height: 104%; }
.c1 { top: 10vh; animation-duration: 95s; }
.c2 { top: 21vh; width: 15vmin; height: 4vmin; animation-duration: 140s; animation-delay: -60s; }
.c3 { top: 4vh; width: 28vmin; height: 7vmin; animation-duration: 120s; animation-delay: -100s; }
@keyframes drift { to { transform: translateX(160vw); } }

/* Roche-style towers small on the horizon, in the middle of the ocean;
   sits just behind .water so its base is hidden by the waterline */
.roche {
  position: absolute; left: 70%; bottom: 31vh;
  height: min(20vh, 172px); width: auto;
  opacity: 0.9;
  filter: drop-shadow(0 3px 10px rgba(20, 80, 120, 0.35));
}

.water {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34vh;
  background: linear-gradient(180deg, #35acdf 0%, #1e88c4 55%, #136aa0 100%);
}
.waves {
  position: absolute; left: 0; width: 200%; height: 3vh;
  animation: waveslide 11s linear infinite;
}
.waves path { fill: #35acdf; }
.waves.front { top: -2.4vh; }
.waves.back { top: -4.2vh; opacity: 0.5; animation-duration: 17s; animation-direction: reverse; }
@keyframes waveslide { to { transform: translateX(-50%); } }

.sand {
  position: absolute; left: -10vw; right: -10vw; bottom: -6vh; height: 22vh;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(ellipse at 50% 0%, #f9ecc4 0%, #f2d99b 55%, #e7c47f 100%);
  box-shadow: inset 0 -6px 18px rgba(120, 80, 20, 0.18);
}

/* ===== glass + content layout ===== */

.glass {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.60) 0%, rgba(255,255,255,0.28) 46%,
    rgba(255,255,255,0.10) 52%, rgba(255,255,255,0.30) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(15, 80, 130, 0.35), inset 0 1px 0 rgba(255,255,255,0.9);
}

header.banner, main { position: relative; z-index: 2; }

.banner {
  width: min(680px, 92vw);
  margin: 7vh auto 4vh;
  padding: 26px 34px;
  text-align: center;
}
.banner h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 3px 12px rgba(10, 80, 130, 0.55);
}
.banner .date {
  margin-top: 6px;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 600;
  color: #08507a;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

main { padding-bottom: 30vh; } /* keep the beach visible at the end of the page */

/* ===== Tinguely-style machine ===== */

.machine {
  position: absolute; right: 4vw; bottom: 12vh;
  width: min(36vw, 340px); opacity: 0.92;
  filter: drop-shadow(0 6px 8px rgba(10, 60, 100, 0.35));
}
.wheel { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.wheel.fast { animation-duration: 6s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.belt { animation: beltrun 1.2s linear infinite; }
@keyframes beltrun { to { stroke-dashoffset: -14; } }

.lever { transform-box: fill-box; transform-origin: 0% 100%; animation: wobble 2.6s ease-in-out infinite alternate; }
@keyframes wobble { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }

/* ===== Wickelfisch swim bag ===== */

.fish {
  position: absolute; left: 8vw; bottom: 18vh;
  width: min(30vw, 230px);
  filter: drop-shadow(0 8px 10px rgba(10, 60, 100, 0.4));
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

/* ===== Windows 7 Aero program window ===== */

.aero-window {
  width: min(560px, 92vw);
  margin: 0 auto;
  padding: 5px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(210,235,250,0.75), rgba(150,200,235,0.55));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 14px 40px rgba(10, 70, 120, 0.45), inset 0 1px 0 rgba(255,255,255,0.9);
}
.titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, #f3fbff 0%, #d9effc 45%, #b9dcf3 50%, #d3ecfb 100%);
}
.titlebar .title {
  font-size: 0.95rem; color: #0b3a55; text-shadow: 0 1px 0 #fff;
  min-width: 0; overflow-wrap: anywhere; /* let long titles wrap instead of clipping */
}
.winbtns { display: flex; gap: 1px; flex: 0 0 auto; margin-left: 8px; align-self: flex-start; }
.winbtns i {
  display: inline-block; width: 30px; height: 17px;
  border: 1px solid rgba(30, 80, 120, 0.55); border-top: none;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #fdfeff, #cfe4f2 45%, #a9c9de 50%, #cfe6f5);
}
.winbtns i.close {
  width: 42px;
  border-color: #8e2415;
  background: linear-gradient(180deg, #ffb0a2, #e35d4b 45%, #c93a26 50%, #e8836f);
}

.schedule {
  list-style: none;
  background: rgba(255,255,255,0.94);
  border-radius: 0 0 7px 7px;
  padding: 20px 22px;
  display: grid; gap: 12px;
}
/* min-width:0 + overflow-wrap: a flex item defaults to min-width:auto and
   refuses to shrink below its longest word, which clips the text on narrow
   phones — Firefox hits it first because its fallback font runs wider */
.schedule li {
  display: flex; align-items: center; gap: 12px; font-size: 1.05rem;
  min-width: 0; overflow-wrap: break-word;
}
.schedule li > a, .schedule li > span:not(.chip) { min-width: 0; }
.chip {
  flex: 0 0 auto;
  min-width: 64px; text-align: center;
  padding: 4px 10px; border-radius: 999px;
  color: #fff; font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(180deg, #9fe325, #67c400 48%, #4ea800 52%, #7ad11c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 6px rgba(40, 120, 0, 0.35);
  text-shadow: 0 1px 1px rgba(0, 60, 0, 0.35);
}

/* ===== glossy Aero buttons ===== */

.aero-btn {
  font: inherit; font-weight: 600; color: #053a5f; cursor: pointer;
  padding: 14px 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.9);
  background: linear-gradient(180deg, #eafcff 0%, #9fe3f7 45%, #59c7ef 52%, #a7ecff 100%);
  box-shadow: 0 6px 18px rgba(10, 90, 140, 0.35), inset 0 1px 0 rgba(255,255,255,0.95);
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.aero-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 24px rgba(10, 90, 140, 0.45), inset 0 1px 0 #fff;
}
.aero-btn:active { transform: translateY(1px); }
#rsvp-open { display: block; margin: 0; font-size: 1.35rem; }

/* ===== generic white window body (practical.exe & co) ===== */

.win-body {
  background: rgba(255,255,255,0.94);
  border-radius: 0 0 7px 7px;
  padding: 20px 22px;
  line-height: 1.5;
}
.responsible { margin-top: 10px; font-weight: 600; color: #08507a; }
.responsible a { color: #0a6fb4; text-decoration: underline; white-space: nowrap; }
.aero-window.practical { margin-top: 6px; }

/* ===== floating name bubbles ===== */

#bubbles {
  position: fixed; inset: 0; z-index: 3;
  overflow: hidden; pointer-events: none;
}
.bubble {
  position: absolute;
  left: var(--x); bottom: -18vh;
  width: var(--s); height: var(--s);
  pointer-events: auto; cursor: pointer;
  animation: rise var(--t) linear infinite;
  animation-delay: var(--d);
}
.bubble .skin {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; border-radius: 50%;
  background: radial-gradient(circle at 30% 26%,
    rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.30) 16%,
    rgba(190,235,255,0.14) 55%, rgba(140,205,240,0.42) 92%,
    rgba(255,255,255,0.65) 100%);
  box-shadow: inset 0 0 14px rgba(255,255,255,0.6), 0 4px 14px rgba(20, 90, 140, 0.25);
}
.bubble .bname {
  padding: 8px 8px 0;
  font-size: 0.8rem; font-weight: 600; color: #0b3a55;
  text-shadow: 0 1px 2px rgba(255,255,255,0.85);
  overflow-wrap: anywhere;
}
.bubble .btags {
  font-size: 0.62rem; font-weight: 700; color: #0a6f4a;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 1px rgba(255,255,255,0.85);
}
@keyframes rise {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(3vw, -32vh); }
  50%  { transform: translate(-3vw, -64vh); }
  75%  { transform: translate(2vw, -96vh); }
  100% { transform: translate(0, -128vh); }
}

.bubble .skin.pop { animation: pop 0.28s ease-out forwards; }
.bubble .skin.pop::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  animation: popring 0.28s ease-out forwards;
}
@keyframes pop { to { transform: scale(1.6); opacity: 0; } }
@keyframes popring { to { transform: scale(2.1); opacity: 0; } }

/* ===== reduced motion: everything holds still, bubbles shimmer ===== */

@media (prefers-reduced-motion: reduce) {
  .sun, .cloud, .waves, .wheel, .belt, .lever, .fish { animation: none !important; }
  .bubble {
    bottom: auto; top: var(--y);
    animation: shimmer 4s ease-in-out infinite;
  }
}
@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* ===== RSVP dialog (Win7 style) ===== */

dialog#rsvp {
  margin: auto;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 10px;
  padding: 5px;
  width: min(420px, 92vw);
  /* the on-screen keyboard can leave less room than the dialog needs —
     without this the Yes/Nope buttons end up unreachable on a phone */
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(215,238,252,0.92), rgba(160,205,238,0.88));
  box-shadow: 0 18px 60px rgba(5, 50, 90, 0.55);
}
dialog#rsvp::backdrop { background: rgba(10, 60, 100, 0.35); backdrop-filter: blur(3px); }
.dlg-close {
  border: 1px solid #8e2415; border-radius: 4px;
  width: 42px; height: 20px; line-height: 1;
  color: #fff; font-weight: 700; cursor: pointer;
  background: linear-gradient(180deg, #ffb0a2, #e35d4b 45%, #c93a26 50%, #e8836f);
}
.dlg-body {
  background: rgba(255,255,255,0.96);
  border-radius: 0 0 7px 7px;
  padding: 20px 22px;
  display: grid; gap: 10px;
}
/* :not([hidden]) — an author `display` would otherwise beat the UA's
   [hidden] { display: none } and leave both panes on screen at once */
#rsvp-main:not([hidden]), #rsvp-confirm:not([hidden]) { display: grid; gap: 10px; }
.dlg-body label { font-weight: 600; }
.dlg-body input {
  font: inherit; padding: 9px 12px;
  border: 1px solid #9cc4dd; border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f2f9ff);
}
.dlg-body input:focus { outline: 2px solid #59c7ef; }
#rsvp-website, #ask-website { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hint { min-height: 1.2em; font-size: 0.9rem; color: #b3341e; }
.dlg-opts { display: grid; gap: 6px; }
.dlg-opts .opt {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; color: #0b3a55; cursor: pointer;
}
.dlg-opts .opt input { width: 17px; height: 17px; accent-color: #4ea800; cursor: pointer; }
.opt-note {
  margin: 2px 0 0; padding: 8px 10px;
  font-size: 0.82rem; line-height: 1.4; color: #08507a;
  background: linear-gradient(180deg, rgba(210,240,255,0.7), rgba(180,225,250,0.5));
  border: 1px solid rgba(120,190,230,0.6); border-radius: 8px;
}
.opt-note a { color: #0a6fb4; text-decoration: underline; }
.dlg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dlg-actions .aero-btn { flex: 1 1 45%; padding: 11px 10px; }
.aero-btn.no {
  background: linear-gradient(180deg, #ffe9e4, #f6b3a6 45%, #ee8672 52%, #ffc9bd 100%);
  color: #6e1f10;
}

/* ===== toast note ===== */

#note {
  position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%); /* clears the taskbar */
  z-index: 5; max-width: min(480px, 92vw);
  padding: 12px 20px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(220,242,255,0.85));
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 8px 26px rgba(10, 70, 120, 0.4);
  font-weight: 600; text-align: center;
}

/* ===== schedule links ===== */

.schedule a {
  color: #0a6fb4;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(10, 111, 180, 0.4);
  text-underline-offset: 2px;
  border-radius: 4px;
  transition: background 0.15s ease, text-decoration-color 0.15s ease;
}
.schedule a:hover {
  background: linear-gradient(180deg, rgba(160, 225, 255, 0.55), rgba(90, 195, 240, 0.35));
  text-decoration-color: #0a6fb4;
}

/* ===== flashy CTA arrows ===== */

.cta { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 34px auto; }
.cta-arrows { display: flex; gap: 7px; }
.cta-arrows.flip { transform: scaleX(-1); } /* right-side chevrons point back at the button */
.cta-arrows i {
  width: 26px; height: 26px;
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
  background: linear-gradient(180deg, #ffe259, #ffa751 50%, #ff7a00);
  filter: drop-shadow(0 2px 4px rgba(200, 90, 0, 0.5));
  animation: ctaflash 1.2s ease-in-out infinite;
}
.cta-arrows i:nth-child(2) { animation-delay: 0.15s; }
.cta-arrows i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ctaflash {
  0%, 100% { opacity: 0.25; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(7px); }
}
#rsvp-open { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.1; }
.cta-sub {
  font-weight: 800; font-size: 0.72rem; letter-spacing: 1px;
  color: #ff5400; text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,0.85), 0 0 8px rgba(255, 120, 0, 0.5);
  animation: ctapulse 1s ease-in-out infinite;
}
@keyframes ctapulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 1; }
}
@media (max-width: 430px) {
  .cta { gap: 8px; }
  .cta-arrows { gap: 4px; }
  .cta-arrows i { width: 15px; height: 15px; }
  #rsvp-open { font-size: 1.15rem; padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-sub { animation: none !important; }
}

/* ===== FAQ window ===== */

.aero-window.faq { margin-top: 26px; }
.faq-body {
  background: rgba(255,255,255,0.94);
  border-radius: 0 0 7px 7px;
  padding: 20px 22px;
  display: grid; gap: 16px;
}
.faq-empty { color: #4a7a99; font-style: italic; }
.faq-item { display: grid; gap: 4px; }
.faq-q { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.q-avatar {
  flex: 0 0 auto; width: 18px; height: auto;
  filter: drop-shadow(0 1px 2px rgba(30, 110, 30, 0.3));
}
.faq-q > span { min-width: 0; flex: 1; overflow-wrap: anywhere; } /* wrap long questions cleanly */
.faq-a { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; color: #23506e; overflow-wrap: anywhere; }
.a-avatar {
  flex: 0 0 auto; width: 18px; height: auto;
  filter: drop-shadow(0 1px 2px rgba(30, 90, 150, 0.3));
}
.faq-a > span { min-width: 0; flex: 1; overflow-wrap: anywhere; } /* wrap long answers cleanly */
.faq-a a { color: #0a6fb4; text-decoration: underline; overflow-wrap: anywhere; }
.ask-row { display: flex; gap: 10px; align-items: center; }
.ask-row input#ask-q {
  flex: 1 1 auto; min-width: 0;
  font: inherit; padding: 9px 12px;
  border: 1px solid #9cc4dd; border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f2f9ff);
}
.ask-row input#ask-q:focus { outline: 2px solid #59c7ef; }
.ask-row .aero-btn { flex: 0 0 auto; padding: 9px 22px; white-space: nowrap; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* one-bubble-per-device lock */
.hint.locked { color: #0a6fb4; }
.dlg-body input[readonly] {
  background: linear-gradient(180deg, #eef4f8, #e3edf4);
  color: #4a6a80;
  cursor: not-allowed;
}

/* ===== claim-an-existing-answer (picker + confirm) ===== */

.claim:not([hidden]) { display: grid; gap: 6px; min-width: 0; }
.claim select {
  font: inherit; width: 100%; max-width: 100%; padding: 9px 12px;
  border: 1px solid #9cc4dd; border-radius: 6px; color: #0b3a55;
  background: linear-gradient(180deg, #ffffff, #f2f9ff);
  cursor: pointer;
}
.claim select:focus { outline: 2px solid #59c7ef; }
/* "or" rule between picking an existing name and typing a new one */
.claim-or {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 0; color: #5b7f96; font-size: 0.85rem;
}
.claim-or::before, .claim-or::after {
  content: ''; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, rgba(120,190,230,0), rgba(120,190,230,0.8), rgba(120,190,230,0));
}
.linkish {
  justify-self: start; padding: 0; border: 0; background: none;
  font: inherit; font-size: 0.85rem; color: #0a6fb4;
  text-decoration: underline; cursor: pointer;
}
.confirm-q { margin: 0; font-size: 1.05rem; color: #0b3a55; overflow-wrap: anywhere; }
.confirm-now {
  margin: 0; padding: 8px 10px;
  font-size: 0.85rem; color: #08507a;
  background: linear-gradient(180deg, rgba(210,240,255,0.7), rgba(180,225,250,0.5));
  border: 1px solid rgba(120,190,230,0.6); border-radius: 8px;
  overflow-wrap: anywhere;
}
.confirm-warn { margin: 0; font-size: 0.85rem; color: #b3341e; }

/* ===== close buttons + taskbar ===== */

.winbtns .winmin {
  position: relative;
  width: 30px; height: 17px;
  border: 1px solid rgba(30, 80, 120, 0.55); border-top: none;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #fdfeff, #cfe4f2 45%, #a9c9de 50%, #cfe6f5);
  cursor: pointer; padding: 0;
}
.winbtns .winmin::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 10px; height: 2px; background: #0b3a55;
}
.winbtns .winmin:hover { filter: brightness(1.06); }

.winbtns .winclose {
  width: 42px; height: 17px;
  border: 1px solid #8e2415; border-top: none;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #ffb0a2, #e35d4b 45%, #c93a26 50%, #e8836f);
  color: #fff; font-weight: 700; font-size: 0.75rem; line-height: 1;
  cursor: pointer; padding: 0;
}
.winbtns .winclose:hover { filter: brightness(1.12); }

.task-btn[hidden] { display: none; } /* a closed window has no taskbar entry until reload */

#taskbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px;
  z-index: 4;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  max-width: 94vw;
}
.orb {
  flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9f6ff, #59c7ef 55%, #0a6fb4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 6px rgba(10, 90, 140, 0.4);
}
.task-btn {
  font: inherit; font-size: 0.85rem; font-weight: 600; color: #053a5f;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.7);
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(210,240,255,0.45));
  cursor: pointer; white-space: nowrap;
}
.task-btn.open {
  box-shadow: inset 0 2px 6px rgba(10, 80, 130, 0.35);
  background: linear-gradient(180deg, rgba(190,230,250,0.85), rgba(150,210,240,0.6));
}
@media (max-width: 430px) {
  .task-btn { font-size: 0.75rem; padding: 5px 8px; }
  #taskbar { gap: 5px; padding: 6px 10px; }
}

/* ===== scene props: palm, grass, gull, micro-bubbles ===== */

.tree {
  position: absolute; left: 1vw; bottom: 0;
  width: min(34vw, 300px);
  transform-origin: 50% 100%;
  filter: drop-shadow(6px 8px 12px rgba(40, 90, 20, 0.3));
  animation: treesway 5s ease-in-out infinite alternate;
}
@keyframes treesway {
  from { transform: rotate(-1.5deg); }
  to { transform: rotate(1.5deg); }
}

/* small yellow/orange fish swimming across the water */
.swimfish {
  position: absolute; width: 40px; height: auto;
  filter: drop-shadow(0 2px 3px rgba(10, 60, 100, 0.35));
  animation: swim linear infinite;
}
.sf1 { top: 24%; width: 40px; animation-duration: 22s; }
.sf2 { top: 52%; width: 32px; animation-duration: 30s; animation-delay: -12s; transform: scaleX(-1); animation-name: swim-rl; }
.sf3 { top: 70%; width: 30px; animation-duration: 26s; animation-delay: -6s; }
.sf4 { top: 40%; width: 36px; animation-duration: 34s; animation-delay: -20s; transform: scaleX(-1); animation-name: swim-rl; }
@keyframes swim {
  0% { transform: translateX(-12vw); }
  100% { transform: translateX(112vw); }
}
@keyframes swim-rl {
  0% { transform: scaleX(-1) translateX(-12vw); }
  100% { transform: scaleX(-1) translateX(112vw); }
}

/* blue butterflies (papillons) drifting across the scene */
.fly {
  position: absolute; width: 44px; height: auto;
  filter: drop-shadow(0 3px 5px rgba(20, 60, 120, 0.3));
}
.fly1 { top: 16vh; left: 4vw; animation: flit1 26s ease-in-out infinite; }
.fly2 { top: 34vh; left: 34vw; width: 34px; animation: flit2 32s ease-in-out infinite; animation-delay: -8s; }
.fly3 { top: 24vh; left: 62vw; width: 38px; animation: flit1 30s ease-in-out infinite; animation-delay: -15s; }
.fly .wingL, .fly .wingR {
  transform-box: view-box; transform-origin: 24px 20px;
  animation: flutter 0.28s ease-in-out infinite alternate;
}
@keyframes flutter { from { transform: scaleX(1); } to { transform: scaleX(0.55); } }
@keyframes flit1 {
  0%   { transform: translate(0, 0) rotate(-8deg); }
  25%  { transform: translate(14vw, -7vh) rotate(8deg); }
  50%  { transform: translate(30vw, 3vh) rotate(-6deg); }
  75%  { transform: translate(16vw, 10vh) rotate(8deg); }
  100% { transform: translate(0, 0) rotate(-8deg); }
}
@keyframes flit2 {
  0%   { transform: translate(0, 0) rotate(6deg); }
  30%  { transform: translate(-12vw, 8vh) rotate(-8deg); }
  60%  { transform: translate(-24vw, -4vh) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(6deg); }
}

.grass { position: absolute; width: min(9vw, 70px); }
.grass.g1 { left: 26vw; bottom: 2.5vh; }
.grass.g2 { right: 7vw; bottom: 1.2vh; transform: scaleX(-1); }

.gull {
  position: absolute; top: 9vh; left: -8vw; width: 54px;
  animation: gullglide 45s linear infinite;
}
@keyframes gullglide {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(30vw, 3vh); }
  50%  { transform: translate(58vw, -2vh); }
  75%  { transform: translate(85vw, 2vh); }
  100% { transform: translate(118vw, -1vh); }
}

.mb {
  position: absolute; bottom: 1vh;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255,255,255,0.9), rgba(255,255,255,0.15) 60%, rgba(255,255,255,0.4));
  opacity: 0;
  animation: mbrise linear infinite;
}
.mb:nth-of-type(1) { left: 10%; width: 8px; height: 8px; animation-duration: 7s; }
.mb:nth-of-type(2) { left: 22%; width: 12px; height: 12px; animation-duration: 9s; animation-delay: -3s; }
.mb:nth-of-type(3) { left: 38%; width: 7px; height: 7px; animation-duration: 6s; animation-delay: -1.5s; }
.mb:nth-of-type(4) { left: 55%; width: 10px; height: 10px; animation-duration: 8s; animation-delay: -5s; }
.mb:nth-of-type(5) { left: 71%; width: 9px; height: 9px; animation-duration: 7.5s; animation-delay: -2s; }
.mb:nth-of-type(6) { left: 88%; width: 11px; height: 11px; animation-duration: 8.5s; animation-delay: -6s; }
@keyframes mbrise {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.85; }
  100% { transform: translateY(-26vh); opacity: 0; }
}

/* ===== machine fountain jet ===== */

.jet { animation: jetrun 0.6s linear infinite; }
@keyframes jetrun { to { stroke-dashoffset: -10; } }
.splash {
  transform-box: fill-box; transform-origin: center;
  animation: splashpop 1.2s ease-in-out infinite;
}
@keyframes splashpop {
  0%, 100% { opacity: 0.35; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ===== dew droplets on the banner glass ===== */

.banner { position: relative; overflow: hidden; }
.banner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 25%, rgba(255,255,255,0.75) 0 2px, rgba(255,255,255,0) 4px),
    radial-gradient(circle at 22% 72%, rgba(255,255,255,0.6) 0 1.5px, rgba(255,255,255,0) 3px),
    radial-gradient(circle at 35% 40%, rgba(255,255,255,0.7) 0 2.5px, rgba(255,255,255,0) 5px),
    radial-gradient(circle at 55% 80%, rgba(255,255,255,0.55) 0 1.5px, rgba(255,255,255,0) 3px),
    radial-gradient(circle at 68% 30%, rgba(255,255,255,0.7) 0 2px, rgba(255,255,255,0) 4px),
    radial-gradient(circle at 82% 65%, rgba(255,255,255,0.6) 0 2.5px, rgba(255,255,255,0) 5px),
    radial-gradient(circle at 92% 22%, rgba(255,255,255,0.65) 0 1.5px, rgba(255,255,255,0) 3px);
}

/* ===== glass shine sweep ===== */

.aero-window { position: relative; overflow: hidden; }
.banner::after, .aero-window::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -30%; width: 24%;
  transform: rotate(20deg); pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  animation: shinesweep 8s ease-in-out infinite;
}
.aero-window::after { animation-delay: 2.5s; }
.aero-window.practical::after { animation-delay: 4s; }
.aero-window.faq::after { animation-delay: 5.5s; }
@keyframes shinesweep {
  0% { left: -30%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

/* ===== reduced motion for everything new ===== */

@media (prefers-reduced-motion: reduce) {
  .tree, .gull, .mb, .jet, .splash, .cta-arrows i, .swimfish, .fly,
  .fly .wingL, .fly .wingR { animation: none !important; }
  .banner::after, .aero-window::after { animation: none !important; display: none; }
  .mb { opacity: 0; }
  .gull { left: 32vw; }
  .sf1, .sf3 { left: 30vw; } .sf2, .sf4 { right: 30vw; }
}

/* ===== fish centered in the page ===== */

.fish { left: calc(50% - min(15vw, 115px)); }

/* ===== hell — the anti-Frutiger-Aero page ===== */

body.hell-open { overflow: hidden; }

#hell {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 130%, #5c0d00 0%, #2a0303 45%, #0c0002 80%, #050001 100%);
  overflow: hidden;
}
#hell[hidden] { display: none; } /* beat the [hidden] UA rule that .display:flex overrides */

.hell-window {
  position: relative; z-index: 2;
  width: min(460px, 92vw);
  border: 1px solid #ff3b00;
  border-radius: 2px; /* sharp corners — the opposite of Aero */
  background: linear-gradient(180deg, rgba(46, 2, 0, 0.96), rgba(16, 0, 0, 0.98));
  box-shadow: 0 0 46px rgba(255, 59, 0, 0.4), inset 0 0 22px rgba(0, 0, 0, 0.8);
}

/* little devils + pitchforks peeking from behind the window (z-index -1) */
.imp, .fork {
  position: absolute; z-index: -1; pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 60, 0, 0.6));
}
.imp { width: 60px; }
.imp1 { left: -40px; bottom: -18px; animation: impbob 2.2s ease-in-out infinite; }
.imp2 { right: -40px; bottom: -18px; transform: scaleX(-1); animation: impbob 2.2s ease-in-out infinite; animation-delay: -1.1s; }
@keyframes impbob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}
.imp2 { animation-name: impbob-flip; }
@keyframes impbob-flip {
  0%, 100% { transform: scaleX(-1) translateY(0) rotate(-4deg); }
  50% { transform: scaleX(-1) translateY(-8px) rotate(4deg); }
}
.fork { width: 34px; }
.fork1 { left: -26px; top: 26%; transform: rotate(-18deg); animation: forksway 3s ease-in-out infinite alternate; }
.fork2 { right: -26px; top: 26%; transform: rotate(18deg) scaleX(-1); animation: forksway-r 3s ease-in-out infinite alternate; }
@keyframes forksway { from { transform: rotate(-22deg); } to { transform: rotate(-12deg); } }
@keyframes forksway-r { from { transform: rotate(22deg) scaleX(-1); } to { transform: rotate(12deg) scaleX(-1); } }
.hell-titlebar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid #7a1500;
  background: linear-gradient(180deg, #3a0500, #1c0100);
  color: #ff3b00; font-size: 0.95rem; letter-spacing: 1px;
}
.hell-x { color: #7a1500; font-weight: 700; }
.hell-body { padding: 26px 26px 30px; text-align: center; color: #d96a4a; }
.hell-body h2 {
  font-size: clamp(2.6rem, 8vw, 4rem); font-weight: 800; letter-spacing: 6px;
  color: #ff2400;
  text-shadow: 0 0 18px rgba(255, 36, 0, 0.7), 0 0 50px rgba(255, 90, 0, 0.4);
  margin-bottom: 14px;
}
.hell-body p { line-height: 1.55; margin-bottom: 10px; }
#mercy {
  margin-top: 14px;
  font: inherit; font-size: 0.9rem; color: #ff8a5e; cursor: pointer;
  padding: 9px 20px;
  background: #140100;
  border: 1px solid #ff3b00; border-radius: 2px;
  letter-spacing: 1px;
}
#mercy:hover { background: #2a0300; box-shadow: 0 0 14px rgba(255, 59, 0, 0.5); }

.flames { position: absolute; left: -2vw; right: -2vw; bottom: -4vh; height: 30vh; z-index: 1; }
.flames i {
  position: absolute; bottom: 0;
  width: 16vw; height: 100%;
  border-radius: 50% 50% 20% 20% / 80% 80% 20% 20%;
  background: linear-gradient(180deg, rgba(255, 214, 80, 0.9) 0%, #ff7a00 40%, #c81d00 75%, rgba(90, 8, 0, 0.6) 100%);
  filter: blur(7px);
  transform-origin: 50% 100%;
  animation: flick 0.9s ease-in-out infinite alternate;
}
.flames i:nth-child(1) { left: 0%;  height: 62%; animation-delay: -0.10s; }
.flames i:nth-child(2) { left: 12%; height: 86%; animation-delay: -0.45s; }
.flames i:nth-child(3) { left: 25%; height: 58%; animation-delay: -0.72s; }
.flames i:nth-child(4) { left: 38%; height: 92%; animation-delay: -0.22s; }
.flames i:nth-child(5) { left: 51%; height: 66%; animation-delay: -0.58s; }
.flames i:nth-child(6) { left: 63%; height: 88%; animation-delay: -0.83s; }
.flames i:nth-child(7) { left: 76%; height: 60%; animation-delay: -0.33s; }
.flames i:nth-child(8) { left: 87%; height: 84%; animation-delay: -0.65s; }
@keyframes flick {
  from { transform: scaleY(0.86) scaleX(1.05); opacity: 0.85; }
  to { transform: scaleY(1.1) scaleX(0.95); opacity: 1; }
}

.ember {
  position: absolute; bottom: 8vh; z-index: 1;
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd27a, #ff5400 65%, rgba(120, 10, 0, 0));
  opacity: 0;
  animation: emberrise linear infinite;
}
#hell .ember:nth-of-type(1) { left: 14%; animation-duration: 5s; }
#hell .ember:nth-of-type(2) { left: 33%; animation-duration: 6.5s; animation-delay: -2s; }
#hell .ember:nth-of-type(3) { left: 52%; animation-duration: 5.5s; animation-delay: -3.4s; }
#hell .ember:nth-of-type(4) { left: 70%; animation-duration: 7s; animation-delay: -1.2s; }
#hell .ember:nth-of-type(5) { left: 86%; animation-duration: 6s; animation-delay: -4.1s; }
@keyframes emberrise {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.95; }
  100% { transform: translateY(-70vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .flames i, .ember, .imp, .fork { animation: none !important; }
  .ember { opacity: 0; }
}
