/* phvsz.com — Frutiger Aero visual system (CLAUDE.md §4) */

:root {
  /* céu */
  --sky-1: #1b7fd1;
  --sky-2: #3fa9ef;
  --sky-3: #9fdcff;
  --sky-4: #e6f7ff;

  /* texto */
  --ink: #0b2d4f;
  --ink-title: #0b3b6b;
  --ink-soft: #24496e;
  --link: #0b4f8a;
  --link-hover: #0a7a3c;

  /* grama */
  --grass-1: #9be35a;
  --grass-2: #3f9d22;
  --grass-3: #c4f27f;
  --grass-4: #5ab52f;

  /* vidro */
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 14px 40px rgba(6, 58, 110, 0.22);

  --radius-panel: 22px;
  --radius-row: 14px;
  --font: "Nunito Sans", "Segoe UI", Frutiger, "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

html {
  background: var(--sky-4);
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-weight: 800;
  color: var(--ink-title);
  line-height: 1.2;
}

a {
  color: var(--link);
}
a:hover {
  color: var(--link-hover);
}
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--sky-1);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- componentes ---------- */

.sky {
  background: linear-gradient(
    180deg,
    var(--sky-1) 0%,
    var(--sky-2) 30%,
    var(--sky-3) 62%,
    var(--sky-4) 100%
  );
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.glass {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 48%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}
.glass > * {
  position: relative;
}

@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .glass {
    background: rgba(255, 255, 255, 0.85);
  }
}

.pill {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    #8fe6ff 0%,
    #2fb3f0 50%,
    #1690d6 51%,
    #38b8f2 100%
  );
  border: 1px solid #0f78b8;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 50, 100, 0.6);
  box-shadow:
    0 3px 8px rgba(0, 60, 120, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
}
.pill:hover {
  filter: brightness(1.08);
  color: #fff;
}
.pill.green {
  background: linear-gradient(
    180deg,
    #b6f58a 0%,
    #5cc93a 50%,
    #3aa81f 51%,
    #62cf3c 100%
  );
  border-color: #2e8a17;
}

.bubble {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(
    circle at 32% 28%,
    rgba(255, 255, 255, 0.95) 0 10%,
    rgba(255, 255, 255, 0.25) 26%,
    rgba(170, 225, 255, 0.18) 60%,
    rgba(255, 255, 255, 0.55) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.orb {
  --orb-light: #7fd6ff;
  --orb-dark: #1477c9;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  flex: 0 0 30px;
  background: radial-gradient(
    circle at 35% 30%,
    #fff 0 12%,
    var(--orb-light) 40%,
    var(--orb-dark) 100%
  );
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.18),
    0 2px 4px rgba(0, 50, 100, 0.25);
}
.orb-big {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}
.orb-purple {
  --orb-light: #c9b2ff;
  --orb-dark: #6a3fd1;
}

.row {
  border-radius: var(--radius-row);
  transition: background 0.15s ease;
}
.row:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* ---------- cenário ---------- */

.scenery {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubble-1 {
  width: 200px;
  height: 200px;
  top: 90px;
  left: -60px;
}
.bubble-2 {
  width: 120px;
  height: 120px;
  top: 40px;
  right: 8%;
}
.bubble-3 {
  width: 64px;
  height: 64px;
  top: 300px;
  right: 3%;
}
.bubble-4 {
  width: 36px;
  height: 36px;
  top: 210px;
  left: 22%;
}
.bubble-5 {
  width: 150px;
  height: 150px;
  top: 55%;
  right: -40px;
}
.bubble-6 {
  width: 48px;
  height: 48px;
  top: 62%;
  left: 4%;
}
.bubble-7 {
  width: 90px;
  height: 90px;
  top: 30%;
  left: 46%;
}

.hills {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 260px;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .bubble {
    animation: float 9s ease-in-out infinite alternate;
  }
  .bubble-2,
  .bubble-5 {
    animation-duration: 12s;
  }
  .bubble-3,
  .bubble-6 {
    animation-duration: 7s;
    animation-delay: -3s;
  }
  @keyframes float {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(-18px);
    }
  }
}

/* ---------- layout ---------- */

.page {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 20px 16px 220px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-title);
  text-decoration: none;
  min-height: 44px;
}
.brand-name {
  display: block;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
}
.brand-tagline {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.brand:hover {
  color: var(--ink-title);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero {
  padding: 48px 4px 36px;
  max-width: 720px;
}
.hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  text-shadow:
    0 2px 0 rgba(0, 60, 120, 0.35),
    0 8px 24px rgba(0, 50, 110, 0.45);
}
.hero p {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  text-shadow:
    0 1px 2px rgba(0, 50, 100, 0.7),
    0 4px 14px rgba(0, 50, 110, 0.5);
}
.hero a {
  color: #fff;
  text-decoration-thickness: 2px;
}
.hero a:hover {
  color: #eaffd6;
}

.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.main-col {
  flex: 2 1 520px;
  min-width: 0;
}
.side-col {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel {
  padding: 22px 24px;
}
.panel h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}
.panel p {
  margin: 0 0 12px;
}
.panel p:last-child {
  margin-bottom: 0;
}

.narrow {
  max-width: 640px;
  margin: 48px auto 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.panel-heading h1 {
  margin: 0;
  font-size: 1.8rem;
}

/* lista de jogos */
.playground-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.playground {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
}
.playground:hover {
  color: var(--ink);
}
.playground-text {
  flex: 1 1 auto;
  min-width: 0;
}
.playground-name {
  display: block;
  font-weight: 800;
  color: var(--ink-title);
}
.playground-desc {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tag {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 800;
  min-height: 0;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-soon {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(11, 45, 79, 0.18);
}

/* projetos */
.project-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.plain-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-weight: 600;
}

/* rodapé sobre a grama */
.site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  text-shadow:
    0 1px 2px rgba(20, 70, 10, 0.8),
    0 2px 10px rgba(20, 70, 10, 0.5);
}
.site-footer a {
  color: #fff;
}
.site-footer a:hover {
  color: #eaffd6;
}

/* ---------- celular ---------- */

@media (max-width: 640px) {
  .bubble-1,
  .bubble-3,
  .bubble-5,
  .bubble-7 {
    display: none;
  }
  .bubble-2 {
    width: 80px;
    height: 80px;
  }
  .site-header {
    padding: 12px 14px;
  }
  .site-nav .pill {
    padding: 0 14px;
  }
  .hero {
    padding: 32px 4px 24px;
  }
  .panel {
    padding: 18px 16px;
  }
  .playground {
    gap: 12px;
    padding: 10px 8px;
  }
  .hills {
    height: 180px;
  }
}

/* ---------- flauta (/flauta) ---------- */

.flute-page {
  max-width: 820px;
  margin: 32px auto 0;
}
.flute-intro {
  max-width: 60ch;
}
.flute-warning {
  font-weight: 800;
  color: #8a1d4a;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  font: 800 0.85em/1.5 var(--font);
  text-align: center;
  color: var(--ink-title);
  background: linear-gradient(180deg, #fff, #e3f1fb);
  border: 1px solid rgba(11, 59, 107, 0.3);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(11, 59, 107, 0.25);
}

.flute-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: flex-start;
  margin-top: 20px;
}

.flute {
  flex: 0 0 auto;
  border-radius: var(--radius-panel);
  padding: 8px;
  background: rgba(255, 255, 255, 0.35);
  touch-action: manipulation;
}
.flute:focus {
  outline: none;
}
.flute:focus-visible {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--sky-1);
}

.flute-svg {
  display: block;
  width: 240px;
  height: auto;
  max-width: 100%;
  user-select: none;
  -webkit-user-select: none;
}
.flute-gloss {
  fill: #fff;
  opacity: 0.55;
  pointer-events: none;
}

.hole {
  cursor: pointer;
  outline: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.hole-hit {
  fill: transparent;
  transition: fill 0.1s ease;
}
.hole:hover .hole-hit {
  fill: rgba(255, 255, 255, 0.45);
}
.hole-ring {
  fill: none;
  stroke: #3fa9ef;
  stroke-width: 4;
  opacity: 0;
  transition: opacity 0.08s ease;
}
.hole.is-active .hole-ring {
  opacity: 1;
}
.hole.is-active .hole-hit {
  fill: rgba(159, 220, 255, 0.45);
}
.hole:focus-visible .hole-hit {
  stroke: var(--sky-1);
  stroke-width: 3;
}

.hole-name {
  font: 800 20px var(--font);
  fill: var(--ink-title);
}
.hole-key {
  fill: #fff;
  stroke: rgba(11, 59, 107, 0.3);
}
.hole-key-text {
  font: 800 15px var(--font);
  fill: var(--ink-title);
  text-anchor: middle;
}
.hole.is-active .hole-key {
  fill: #9fdcff;
}

.flute-side {
  flex: 1 1 260px;
  min-width: 0;
}
.flute-now {
  font-size: 1.15rem;
  margin: 0 0 20px;
}
.flute-now strong {
  display: inline-block;
  min-width: 3ch;
  font-size: 1.6rem;
  color: var(--ink-title);
}
.flute-side h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.flute-songs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.song-name {
  display: block;
  font-weight: 800;
  color: var(--ink-title);
}
.song-keys {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  word-spacing: 0.2em;
}

@media (max-width: 640px) {
  .flute-layout {
    justify-content: center;
  }
}

/* ---------- guestbook (/guestbook) ---------- */

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

.guestbook-editor,
.mural {
  max-width: 980px;
  margin: 32px auto 0;
}

.notice {
  padding: 10px 16px;
  border-radius: var(--radius-row);
  background: rgba(196, 242, 127, 0.6);
  border: 1px solid rgba(46, 138, 23, 0.35);
  color: #1d4d0e;
  font-weight: 700;
}

.oekaki {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(200px, 1fr);
  gap: 20px 28px;
  margin-top: 16px;
}

.oekaki-board {
  min-width: 0;
}
#oekaki-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(11, 45, 79, 0.25);
  box-shadow:
    inset 0 1px 4px rgba(0, 40, 80, 0.15),
    0 4px 14px rgba(6, 58, 110, 0.15);
  image-rendering: pixelated;
  touch-action: none;
  cursor: crosshair;
}

.oekaki-tools {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.tool-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.tool-group legend {
  padding: 0;
  margin-bottom: 6px;
  font-weight: 800;
  color: var(--ink-title);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.swatch {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.swatch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.swatch::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 35% 30%,
      rgba(255, 255, 255, 0.75) 0 12%,
      transparent 45%
    ),
    var(--swatch);
  box-shadow:
    inset 0 -3px 5px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 50, 100, 0.3);
}
.swatch:has(input:checked)::after {
  inset: 2px;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--sky-1);
}
.swatch:has(input:focus-visible) {
  outline: 3px solid var(--sky-1);
  outline-offset: 2px;
  border-radius: 999px;
}

.segmented {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 45, 79, 0.18);
}
.segmented label {
  position: relative;
  cursor: pointer;
}
.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.segmented span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink-soft);
}
.segmented input:checked + span {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 50, 100, 0.6);
  background: linear-gradient(
    180deg,
    #8fe6ff 0%,
    #2fb3f0 50%,
    #1690d6 51%,
    #38b8f2 100%
  );
}
.segmented input:focus-visible + span {
  outline: 3px solid var(--sky-1);
  outline-offset: 1px;
}

.pill.plain-pill {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #eef6fc 50%,
    #dcebf7 51%,
    #eef6fc 100%
  );
  border-color: rgba(11, 45, 79, 0.3);
  color: var(--ink-title);
  text-shadow: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.oekaki-send {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  color: var(--ink-title);
}
.field small {
  font-weight: 400;
  color: var(--ink-soft);
}
.field input {
  min-height: 44px;
  width: min(280px, 100%);
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  border-radius: 12px;
  border: 1px solid rgba(11, 45, 79, 0.3);
  background: rgba(255, 255, 255, 0.9);
}
.field input:focus-visible {
  outline: 3px solid var(--sky-1);
  outline-offset: 1px;
}
.oekaki-send .pill {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pill:disabled {
  filter: grayscale(0.7) opacity(0.6);
  cursor: not-allowed;
}

/* honeypot: off-screen for humans, still in the form for bots */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.oekaki-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.5em;
  font-weight: 700;
  color: var(--ink-soft);
}
.oekaki-status[data-kind="error"] {
  color: #9b1c1c;
}
.oekaki-status[data-kind="ok"] {
  color: #1d5e0e;
}

.mural h1,
.mural h2 {
  margin-top: 0;
}
.mural-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.mural-grid figure {
  margin: 0;
}
.mural-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(11, 45, 79, 0.2);
  box-shadow: 0 4px 12px rgba(6, 58, 110, 0.15);
  image-rendering: pixelated;
}
.mural-grid figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  padding: 6px 4px 0;
  font-size: 0.95rem;
}
.mural-grid figcaption strong {
  color: var(--ink-title);
  overflow-wrap: anywhere;
}
.mural-grid time {
  color: var(--ink-soft);
}
.mural-grid li.is-hidden img {
  opacity: 0.4;
}
.mural-grid li form {
  margin-top: 6px;
}
.mural-grid li form .pill {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.mod-state {
  width: 100%;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.pagination-current {
  color: var(--ink-soft);
  font-weight: 700;
}

@media (max-width: 760px) {
  .oekaki {
    grid-template-columns: minmax(0, 1fr);
  }
  .oekaki-tools {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
  }
}

/* ---------- bomba (/bomba) ---------- */

.bomb-page {
  max-width: 760px;
  margin: 32px auto 0;
}
.bomb-intro {
  max-width: 62ch;
}

.bomb-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  outline: none;
}

.bomb-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  width: 100%;
}
.bomb-hud p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.bomb-hud strong {
  font-size: 1.4rem;
  color: var(--ink-title);
}
.bomb-mute {
  min-height: 44px;
}

.bomb-stage {
  position: relative;
  width: 100%;
  max-width: 340px;
}
.bomb-svg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  filter: drop-shadow(0 10px 18px rgba(6, 40, 80, 0.35));
}

.bomb-lcd,
.bomb-lcd-ghost {
  font:
    700 48px ui-monospace,
    "SFMono-Regular",
    Menlo,
    Consolas,
    monospace;
  text-anchor: middle;
  letter-spacing: 2px;
}
.bomb-lcd-ghost {
  fill: #3a0d10;
}
.bomb-lcd {
  fill: #ff3b3b;
  filter: drop-shadow(0 0 6px rgba(255, 40, 40, 0.8));
}
.bomb-game.is-urgent .bomb-lcd {
  animation: bomb-blink 0.5s steps(2, start) infinite;
}
.bomb-game.is-defused .bomb-lcd {
  fill: #3dff7a;
  filter: drop-shadow(0 0 6px rgba(60, 255, 120, 0.8));
}

.wire {
  cursor: default;
  outline: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.bomb-game[data-state="armed"] .wire:not(.is-cut) {
  cursor: pointer;
}
.wire-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 44;
  stroke-linecap: round;
  pointer-events: stroke;
}
.wire-half {
  transform-box: view-box;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.wire-shadow {
  fill: none;
  stroke: rgba(10, 20, 30, 0.55);
  stroke-width: 18;
  stroke-linecap: butt;
  transform: translateY(2px);
}
.wire-core {
  fill: none;
  stroke-width: 14;
  stroke-linecap: butt;
}
.wire-gloss {
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 3;
  stroke-linecap: butt;
  transform: translateY(-3px);
  pointer-events: none;
}
.wire-flash {
  fill: none;
  stroke: #fff;
  stroke-width: 24;
  stroke-linecap: round;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 8px #fff);
}
.wire.is-flash .wire-flash {
  opacity: 0.85;
}
.wire-led {
  fill: #4a1a1a;
  stroke: #2a2f35;
  stroke-width: 2;
}
.wire.is-flash .wire-led {
  fill: #ff4040;
  filter: drop-shadow(0 0 6px #ff4040);
}
.wire.is-cut .wire-led {
  fill: #2e9e3a;
}
.wire-plug {
  fill: #c9a15a;
  stroke: #6b5427;
  stroke-width: 1.5;
  pointer-events: none;
}
.wire-number {
  font: 800 16px var(--font);
  fill: var(--ink-title);
  text-anchor: middle;
  pointer-events: none;
}
.bomb-game[data-state="armed"] .wire:not(.is-cut):hover .wire-core {
  stroke-width: 16;
}
.wire:focus-visible .wire-hit {
  stroke: rgba(255, 255, 255, 0.55);
}
.wire.is-cut .wire-hit {
  pointer-events: none;
}

.bomb-status {
  margin: 0;
  min-height: 3em;
  max-width: 46ch;
  text-align: center;
  font-weight: 700;
  color: var(--ink-title);
}
.bomb-game.is-exploded .bomb-status {
  color: #9b1c1c;
}
.bomb-game.is-defused .bomb-status {
  color: #1d5e0e;
}
.bomb-start {
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 28px;
}

.bomb-boom {
  position: absolute;
  inset: -20px;
  display: grid;
  place-items: center;
  pointer-events: none;
  border-radius: 40px;
  opacity: 0;
  background: radial-gradient(
    circle,
    #fffbe0 0 12%,
    #ffd23f 30%,
    #ff7a1a 52%,
    rgba(200, 40, 0, 0.85) 70%,
    rgba(80, 20, 0, 0) 78%
  );
}
.bomb-boom span {
  font: 800 64px var(--font);
  color: #fff;
  letter-spacing: 2px;
  text-shadow:
    0 3px 0 #b3260f,
    0 6px 18px rgba(80, 10, 0, 0.7);
}
.bomb-game.is-exploded .bomb-boom {
  animation: bomb-boom 1.6s ease-out forwards;
}
.bomb-game.is-exploded .bomb-svg {
  filter: grayscale(0.6) brightness(0.55)
    drop-shadow(0 10px 18px rgba(6, 40, 80, 0.35));
  transition: filter 0.4s ease 0.3s;
}
.bomb-game.is-shaking .bomb-stage {
  animation: bomb-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes bomb-boom {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  12% {
    opacity: 1;
    transform: scale(1.05);
  }
  60% {
    opacity: 0.95;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}
@keyframes bomb-shake {
  10%,
  90% {
    transform: translate(-2px, 1px);
  }
  20%,
  80% {
    transform: translate(5px, -3px);
  }
  30%,
  50%,
  70% {
    transform: translate(-9px, 4px) rotate(-1deg);
  }
  40%,
  60% {
    transform: translate(9px, -4px) rotate(1deg);
  }
}
@keyframes bomb-blink {
  to {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wire-half {
    transition: none;
  }
  .bomb-game.is-urgent .bomb-lcd {
    animation: none;
  }
  .bomb-game.is-exploded .bomb-boom {
    animation: none;
    opacity: 0.9;
  }
}

/* ---------- aero: sol, nuvens, luz, bolhas que estouram ---------- */

.sun {
  position: absolute;
  top: -180px;
  left: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 240, 0.95) 0 9%,
    rgba(255, 250, 210, 0.55) 18%,
    rgba(200, 240, 255, 0.25) 40%,
    rgba(255, 255, 255, 0) 70%
  );
}
.sun-rays {
  position: absolute;
  top: -560px;
  left: -520px;
  width: 1280px;
  height: 1280px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    rgba(255, 255, 255, 0.16) 0deg 5deg,
    rgba(255, 255, 255, 0) 5deg 15deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 60%);
  mask-image: radial-gradient(circle, #000 8%, transparent 60%);
}

/* nuvem: uma pílula com dois círculos em cima, tudo inteiro (sem recorte) */
.cloud {
  --s: 1;
  position: absolute;
  left: 0;
  width: 200px;
  height: 56px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.88;
  filter: drop-shadow(0 6px 8px rgba(20, 90, 160, 0.16));
  transform: translateX(var(--from, -30vw)) scale(var(--s));
  transform-origin: 0 100%;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
}
.cloud::before {
  width: 80px;
  height: 80px;
  left: 28px;
  top: -40px;
}
.cloud::after {
  width: 104px;
  height: 104px;
  left: 78px;
  top: -58px;
}
.cloud-1 {
  top: 110px;
  --from: 12vw;
}
.cloud-2 {
  top: 230px;
  --s: 0.7;
  opacity: 0.75;
  --from: 62vw;
}
.cloud-3 {
  top: 70px;
  --s: 0.55;
  opacity: 0.65;
  --from: 84vw;
}

.swooshes {
  position: absolute;
  top: 34%;
  left: 0;
  width: 200%;
  height: 300px;
  opacity: 0.8;
}

.sparkle {
  position: absolute;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(90deg, transparent 44%, #fff 50%, transparent 56%),
    linear-gradient(0deg, transparent 44%, #fff 50%, transparent 56%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%);
  mask-image: radial-gradient(circle, #000 20%, transparent 70%);
  opacity: 0.8;
}
.sparkle-1 {
  top: 140px;
  left: 30%;
}
.sparkle-2 {
  top: 260px;
  right: 18%;
  width: 12px;
  height: 12px;
}
.sparkle-3 {
  top: 48%;
  left: 12%;
  width: 14px;
  height: 14px;
}
.sparkle-4 {
  top: 58%;
  right: 30%;
}

/* filme de sabão: borda iridescente */
.bubble {
  transition:
    scale 0.7s cubic-bezier(0.2, 1.5, 0.4, 1),
    opacity 0.5s ease;
}
.bubble::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(
    from 20deg,
    rgba(255, 140, 220, 0.55),
    rgba(120, 220, 255, 0.5),
    rgba(255, 245, 150, 0.5),
    rgba(150, 255, 190, 0.45),
    rgba(255, 140, 220, 0.55)
  );
  -webkit-mask-image: radial-gradient(circle, transparent 62%, #000 72%);
  mask-image: radial-gradient(circle, transparent 62%, #000 72%);
  opacity: 0.55;
}
.bubble.is-popped {
  scale: 1.45;
  opacity: 0;
  transition:
    scale 0.2s ease-out,
    opacity 0.2s ease-out;
}
.bubble.is-unborn {
  scale: 0.2;
  opacity: 0;
  transition: none;
}

.bubble-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.bubble-rising {
  will-change: transform;
}

.droplet {
  position: absolute;
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 30%, rgba(190, 235, 255, 0.9) 70%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: droplet 0.55s cubic-bezier(0.1, 0.7, 0.3, 1) forwards;
}
.pop-ring {
  position: absolute;
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  animation: pop-ring 0.35s ease-out forwards;
}

/* brilho que passa nos botões */
.pill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
}
.pill:active {
  filter: brightness(0.96);
  box-shadow:
    0 1px 3px rgba(0, 60, 120, 0.3),
    inset 0 2px 4px rgba(0, 50, 100, 0.25);
}

.orb {
  position: relative;
  transition:
    transform 0.3s cubic-bezier(0.2, 1.6, 0.4, 1),
    box-shadow 0.3s ease;
}
.playground:hover .orb,
.playground:focus-visible .orb {
  transform: scale(1.12) rotate(-8deg);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.18),
    0 0 0 4px rgba(255, 255, 255, 0.6),
    0 0 18px var(--orb-light);
}

.footer-hint {
  margin: 0 0 4px;
  font-size: 0.85rem;
  opacity: 0.9;
}
.footer-hint kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 5px;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  color: var(--ink-title);
  text-shadow: none;
  background: linear-gradient(180deg, #fff, #d9f1ff);
  border: 1px solid rgba(11, 79, 138, 0.35);
  box-shadow: 0 2px 0 rgba(11, 79, 138, 0.35);
}
.footer-credits {
  margin: 2px 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.85;
}
.hint-touch {
  display: none;
}
@media (hover: none) {
  .hint-pointer,
  .hint-key {
    display: none;
  }
  .hint-touch {
    display: inline;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sun {
    animation: sun-glow 6s ease-in-out infinite alternate;
  }
  .sun-rays {
    animation: spin 160s linear infinite;
  }
  .cloud {
    animation: cloud-drift 110s linear infinite;
  }
  .cloud-2 {
    animation-duration: 150s;
    animation-delay: -40s;
  }
  .cloud-3 {
    animation-duration: 190s;
    animation-delay: -120s;
  }
  .swoosh {
    animation: swoosh 26s ease-in-out infinite alternate;
  }
  .swoosh-2 {
    animation-duration: 34s;
    animation-direction: alternate-reverse;
  }
  .sparkle {
    animation: twinkle 3.2s ease-in-out infinite;
  }
  .sparkle-2 {
    animation-delay: -1.1s;
  }
  .sparkle-3 {
    animation-delay: -2.3s;
    animation-duration: 4s;
  }
  .sparkle-4 {
    animation-delay: -0.6s;
    animation-duration: 2.6s;
  }
  .bubble::after {
    animation: spin 14s linear infinite;
  }
  .bubble.bubble-rising {
    animation-name: bubble-rise, bubble-sway;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-direction: normal, alternate;
    animation-fill-mode: both, none;
  }
  .pill:hover::after,
  .pill:focus-visible::after {
    animation: pill-shine 0.8s ease-out;
  }
  .glass {
    animation: glass-in 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  }
  main .glass {
    animation-delay: 0.08s;
  }
  main .side-col .glass {
    animation-delay: 0.16s;
  }
  main .side-col .glass + .glass {
    animation-delay: 0.24s;
  }
  .hero {
    animation: glass-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  }
}

/* sem movimento: bolhas novas só aparecem e somem */
.bubble.bubble-rising.is-calm {
  animation: bubble-calm 5s ease-in-out both;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
@keyframes sun-glow {
  to {
    transform: scale(1.08);
    opacity: 0.85;
  }
}
@keyframes cloud-drift {
  from {
    transform: translateX(var(--from)) scale(var(--s));
  }
  to {
    transform: translateX(calc(var(--from) + 130vw)) scale(var(--s));
  }
}
@keyframes swoosh {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(45deg);
  }
}
@keyframes bubble-rise {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(var(--rise));
  }
}
@keyframes bubble-sway {
  from {
    translate: calc(var(--sway) * -1) 0;
  }
  to {
    translate: var(--sway) 0;
  }
}
@keyframes bubble-calm {
  0%,
  100% {
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
}
@keyframes droplet {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.4);
    opacity: 0;
  }
}
@keyframes pop-ring {
  from {
    transform: scale(0.9);
    opacity: 1;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes pill-shine {
  from {
    left: -60%;
    opacity: 1;
  }
  to {
    left: 130%;
    opacity: 1;
  }
}
@keyframes glass-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (max-width: 640px) {
  .sun-rays {
    animation: none;
  }
  .swooshes {
    top: 46%;
  }
  .sparkle-1,
  .sparkle-4 {
    display: none;
  }
}

/* ---------- logo ---------- */

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  filter: drop-shadow(0 3px 5px rgba(6, 58, 110, 0.3));
  transition: transform 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  transform: scale(1.08) rotate(-10deg);
}

/* ---------- prévias dos jogos ---------- */

.playground-thumb {
  --orb-light: #7fd6ff;
  --orb-dark: #1477c9;
  position: relative;
  flex: 0 0 128px;
  width: 128px;
  aspect-ratio: 8 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #fff;
  background: var(--orb-light);
  box-shadow:
    0 4px 10px rgba(6, 58, 110, 0.22),
    0 0 0 1px rgba(11, 79, 138, 0.12);
  transition:
    transform 0.3s cubic-bezier(0.2, 1.5, 0.4, 1),
    box-shadow 0.3s ease;
}
.thumb-soon {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 210, 40, 0.9) 0 10px,
      rgba(40, 40, 40, 0.85) 10px 20px
    );
}
.thumb-soon > span {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--ink-title);
  background: linear-gradient(180deg, #fff 0%, #f1f8ff 50%, #e1f0fb 51%, #fff 100%);
  border: 1px solid rgba(11, 79, 138, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.playground-thumb img {
  display: block;
  width: 100%;
  height: 100%;
}
.playground-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}
.playground:hover .playground-thumb,
.playground:focus-visible .playground-thumb {
  transform: translateY(-2px) scale(1.04) rotate(-1.5deg);
  box-shadow:
    0 8px 18px rgba(6, 58, 110, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.8),
    0 0 22px var(--orb-light);
}
@media (max-width: 640px) {
  .playground-thumb {
    flex-basis: 88px;
    width: 88px;
    border-radius: 10px;
  }
  .playground {
    gap: 12px;
    padding: 8px 6px;
  }
}

/* ---------- vacas ---------- */

.cow {
  position: absolute;
  height: auto;
  overflow: visible;
  translate: -50% 0;
}
/* bottom = altura da colina naquele ponto (o SVG das colinas tem 260px fixos) */
.cow-1 {
  left: 12%;
  bottom: 182px;
  width: 74px;
}
.cow-2 {
  left: 86%;
  bottom: 54px;
  width: 104px;
  transform: scaleX(-1);
}
.cow-3 {
  left: 60%;
  bottom: 106px;
  width: 46px;
  opacity: 0.92;
}
.cow-tail {
  transform-box: view-box;
  transform-origin: 22px 32px;
}
.cow-head {
  transform-box: view-box;
  transform-origin: 92px 34px;
  transition: transform 0.2s ease-out;
}
.cow-snout {
  transform-box: view-box;
  transform-origin: 108px 35px;
  transition: transform 0.2s ease-out;
}
.cow.is-mooing .cow-head {
  animation: none;
  transform: rotate(-16deg);
}
.cow.is-mooing .cow-snout {
  transform: scaleY(1.25);
}

.moo {
  position: absolute;
  translate: -50% -100%;
  padding: 2px 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink-title);
  background: linear-gradient(180deg, #fff 0%, #eaf7ff 50%, #d6efff 51%, #f2fbff 100%);
  border: 1px solid rgba(11, 79, 138, 0.25);
  box-shadow: 0 4px 10px rgba(6, 58, 110, 0.2);
  pointer-events: none;
}
.moo.is-done {
  animation: moo-out 0.7s ease-in forwards;
}

/* o cenário não recebe cliques; o aero.js marca quando o mouse está sobre algo clicável */
html.is-over-toy,
html.is-over-toy body {
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .cow-tail {
    animation: cow-tail 2.6s ease-in-out infinite alternate;
  }
  .cow-head {
    animation: cow-graze 11s ease-in-out infinite;
  }
  .cow-2 .cow-head {
    animation-delay: -4s;
    animation-duration: 13s;
  }
  .cow-3 .cow-head {
    animation-delay: -8s;
  }
  .cow-2 .cow-tail {
    animation-duration: 3.4s;
  }
  .moo {
    animation: moo-in 0.25s cubic-bezier(0.2, 1.6, 0.4, 1);
  }
}

@keyframes cow-tail {
  from {
    transform: rotate(-10deg);
  }
  to {
    transform: rotate(14deg);
  }
}
@keyframes cow-graze {
  0%,
  62%,
  100% {
    transform: rotate(0);
  }
  70%,
  90% {
    transform: rotate(22deg);
  }
  76%,
  84% {
    transform: rotate(18deg);
  }
}
@keyframes moo-in {
  from {
    scale: 0.4;
    opacity: 0;
  }
}
@keyframes moo-out {
  to {
    transform: translateY(-24px);
    opacity: 0;
  }
}

/* no celular as colinas têm 180px (×0,69), então as vacas descem junto */
@media (max-width: 640px) {
  .cow-1 {
    width: 54px;
    bottom: 126px;
  }
  .cow-2 {
    left: 90%;
    width: 64px;
    bottom: 44px;
  }
  .cow-3 {
    width: 34px;
    bottom: 72px;
  }
}
