@font-face {
  font-family: "Silkscreen";
  src: url("Silkscreen_font/Silkscreen-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("Silkscreen_font/Silkscreen-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg-cream: #fbf6ec;
  --bg-rose: #f6d7dc;
  --bg-blush: #ead6c8;
  --ink: #1f241d;
  --wine: #8a315c;
  --wine-soft: #b24f7f;
  --leaf: #49684d;
  --leaf-deep: #233827;
  --sky-soft: #dbe8ee;
  --card: rgba(255, 252, 245, 0.78);
  --line: rgba(61, 80, 56, 0.16);
  --shadow: 0 20px 60px rgba(28, 39, 27, 0.14);
}

.world-panel.active .pixel-world,
.world-panel.active .pixel-world * {
  cursor: url("icone/cursor_not_click_web.png") 4 4, auto;
}

.world-panel.active .pixel-world button,
.world-panel.active .pixel-world [role="button"],
.world-panel.active .pixel-world .crossword-cell,
.world-panel.active .pixel-world .desk-monitor-launcher {
  cursor: url("icone/cursor_clickable_web.png") 4 12, pointer;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at -8% -18%, rgba(204, 226, 207, 0.75) 0%, transparent 60%),
    radial-gradient(760px 460px at 108% -14%, rgba(242, 194, 207, 0.72) 0%, transparent 58%),
    linear-gradient(160deg, #fffaf2 0%, var(--bg-cream) 36%, var(--bg-rose) 100%);
}

body.world-fullscreen {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: min(720px, 72vh);
  display: grid;
  align-items: start;
  padding: clamp(1.4rem, 4vw, 3rem);
  overflow: hidden;
  isolation: isolate;
  color: #fffaf2;
  background: var(--leaf-deep);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 29, 20, 0.78) 0%, rgba(22, 29, 20, 0.42) 44%, rgba(22, 29, 20, 0.1) 100%),
    linear-gradient(0deg, rgba(22, 29, 20, 0.58) 0%, rgba(22, 29, 20, 0.18) 34%, rgba(22, 29, 20, 0) 66%);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(0deg, rgba(251, 246, 236, 0.78) 0%, rgba(251, 246, 236, 0.18) 48%, rgba(251, 246, 236, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 68%;
  filter: saturate(1.02) contrast(0.96);
}

.hero-content {
  width: min(760px, 92vw);
  text-align: left;
  position: relative;
  z-index: 1;
  padding: clamp(6.5rem, 16vh, 10rem) 0 clamp(5rem, 10vw, 7rem);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffd6e6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
}

h1 {
  margin-top: 0.35rem;
  font-size: clamp(3.6rem, 11vw, 7.4rem);
  line-height: 0.9;
  text-wrap: balance;
}

.subtitle {
  margin: 0.9rem 0 0;
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255, 250, 242, 0.86);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.hero-meta span {
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(255, 250, 242, 0.36);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.12);
  color: rgba(255, 250, 242, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.container {
  width: min(1180px, 94vw);
  margin: -2.8rem auto 2.6rem;
  display: grid;
  gap: 1.2rem;
  position: relative;
  z-index: 2;
}

.section-tabs {
  display: inline-flex;
  gap: 0.6rem;
  padding: 0.45rem;
  width: fit-content;
  background: rgba(255, 252, 245, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.tab-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--wine);
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.tab-button.active {
  background: var(--leaf-deep);
  color: #fff;
}

.tab-button:hover {
  transform: translateY(-1px);
}

.tab-panel {
  display: none;
  gap: 1.2rem;
}

.tab-panel.active {
  display: grid;
}

.memories-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  grid-template-areas:
    "countdown timeline"
    "anniversary timeline"
    "map map"
    "gallery gallery";
  gap: 1rem;
}

.countdown-card,
.anniversary-card,
.timeline,
.memory-map,
.gallery {
  background:
    linear-gradient(145deg, rgba(255, 252, 245, 0.92), rgba(255, 252, 245, 0.68)),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: clamp(1.15rem, 2vw, 1.55rem);
}

.bento-card {
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  pointer-events: none;
}

.bento-card-countdown {
  grid-area: countdown;
  align-self: start;
  min-height: 280px;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(178, 79, 127, 0.18), transparent 62%),
    linear-gradient(145deg, rgba(255, 252, 245, 0.96), rgba(247, 233, 223, 0.72));
}

.bento-card-timeline {
  grid-area: timeline;
}

.bento-card-anniversary {
  grid-area: anniversary;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  background:
    radial-gradient(360px 220px at 92% 18%, rgba(246, 194, 211, 0.34), transparent 66%),
    linear-gradient(145deg, rgba(255, 252, 245, 0.96), rgba(255, 244, 238, 0.8));
}

.bento-card-map {
  grid-area: map;
}

.bento-card-gallery {
  grid-area: gallery;
}

.section-kicker {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--leaf);
  font-size: 0.72rem;
  font-weight: 800;
}

.countdown-text {
  margin: 0.7rem 0 1rem;
  color: rgba(31, 36, 29, 0.72);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.time-box {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 104px;
  border: 1px solid rgba(73, 104, 77, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
  padding: 0.8rem 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.time-box span {
  display: block;
  min-width: 4ch;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--leaf-deep);
  overflow-wrap: anywhere;
}

.time-box small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.countdown-message {
  margin: 0.9rem 0 0;
  font-weight: 600;
  color: var(--wine);
}

.anniversary-date {
  margin: 0.55rem 0 0.9rem;
  color: rgba(31, 36, 29, 0.68);
}

.anniversary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.anniversary-box {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 82px;
  border: 1px solid rgba(178, 79, 127, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  text-align: center;
  padding: 0.65rem 0.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.anniversary-box span {
  display: block;
  min-width: 3ch;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--wine);
  overflow-wrap: anywhere;
}

.anniversary-box small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.63rem;
}

.handwritten-note {
  align-self: end;
  margin: 1rem 0 0;
  max-width: 24rem;
  font-family: "Caveat", "Bradley Hand ITC", "Segoe Print", cursive;
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  line-height: 1.08;
  color: var(--leaf-deep);
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.gallery-head > p,
.gallery-head div > p:not(.section-kicker) {
  margin: 0.25rem 0 0;
  color: rgba(31, 36, 29, 0.62);
}

.timeline-list {
  display: grid;
  gap: 0.72rem;
}

.timeline-item {
  position: relative;
  border: 1px solid rgba(73, 104, 77, 0.12);
  border-left: 4px solid rgba(178, 79, 127, 0.58);
  background: rgba(255, 255, 255, 0.48);
  border-radius: 11px;
  padding: 0.95rem 1rem;
}

.timeline-date {
  color: var(--wine);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.timeline-item p {
  margin: 0.3rem 0 0;
  color: rgba(31, 36, 29, 0.68);
}

.memory-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.memory-map-controls {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.memory-map-control {
  border: 1px solid rgba(73, 104, 77, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--leaf-deep);
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 8px 18px rgba(28, 39, 27, 0.08);
}

.memory-map-control:hover,
.memory-map-control:focus-visible {
  transform: translateY(-1px);
}

.memory-map-control.is-active {
  background: var(--leaf-deep);
  color: #fff;
}

.memory-map-board {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(73, 104, 77, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.82), rgba(238, 243, 231, 0.92)),
    radial-gradient(circle at top right, rgba(219, 232, 238, 0.76), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.memory-map-board {
  padding: 1rem;
}

.memory-map-viewport {
  position: relative;
  min-height: 540px;
  border-radius: 14px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  border: 1px solid rgba(73, 104, 77, 0.2);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.7), transparent 22%),
    linear-gradient(180deg, #dbe8ee 0%, #f3f7f4 100%);
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.55),
    0 14px 34px rgba(28, 39, 27, 0.13);
}

.memory-map-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 1;
}

.memory-map-viewport.is-dragging {
  cursor: grabbing;
}

.memory-map-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1680px;
  height: 920px;
  transform-origin: 0 0;
  will-change: transform;
}

.memory-map-tiles,
.memory-map-pins {
  position: absolute;
  inset: 0;
}

.memory-map-tiles {
  z-index: 0;
  pointer-events: none;
}

.memory-map-surface {
  width: 100%;
  height: 100%;
  display: block;
}

.memory-map-panel {
  fill: rgba(255, 255, 255, 0.76);
  stroke: rgba(73, 104, 77, 0.16);
  stroke-width: 3;
}

.memory-map-panel-water {
  fill: rgba(204, 225, 229, 0.62);
}

.memory-map-panel-grid {
  stroke: rgba(73, 104, 77, 0.09);
  stroke-width: 1;
}

.memory-map-continent {
  fill: rgba(255, 250, 252, 0.82);
  stroke: rgba(122, 45, 79, 0.18);
  stroke-width: 2.5;
}

.memory-map-country-stroke {
  fill: rgba(248, 243, 229, 0.92);
  stroke: rgba(73, 104, 77, 0.38);
  stroke-width: 4;
}

.memory-map-country-shade {
  fill: rgba(155, 179, 136, 0.24);
}

.memory-map-route {
  fill: none;
  stroke: rgba(178, 79, 127, 0.55);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 9 10;
}

.memory-map-route-glow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
}

.memory-map-stop-dot {
  fill: rgba(73, 104, 77, 0.88);
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 3;
}

.memory-map-region-label {
  fill: rgba(73, 104, 77, 0.66);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-map-panel-label {
  fill: rgba(31, 36, 29, 0.86);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.memory-map-panel-subtitle {
  fill: rgba(73, 104, 77, 0.62);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.memory-map-pins {
  z-index: 2;
}

.memory-map-pin {
  position: absolute;
  width: 76px;
  margin-left: -38px;
  margin-top: -86px;
  padding: 0.3rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 100%;
  transition: transform 180ms ease, filter 180ms ease;
}

.memory-map-pin:hover,
.memory-map-pin:focus-visible,
.memory-map-pin.is-active {
  transform: translateY(-4px) scale(1.05) rotate(-2deg);
}

.memory-map-pin.is-active {
  z-index: 5;
}

.memory-map-pin-card {
  display: block;
  position: relative;
  padding: 0.25rem 0.25rem 0.7rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffefc 0%, #f4eadf 100%);
  border: 2px solid rgba(73, 104, 77, 0.18);
  box-shadow: 0 10px 22px rgba(28, 39, 27, 0.16);
}

.memory-map-pin-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, #fffefc 0%, #f4eadf 100%);
  border-right: 2px solid rgba(73, 104, 77, 0.18);
  border-bottom: 2px solid rgba(73, 104, 77, 0.18);
  transform: translateX(-50%) rotate(45deg);
}

.memory-map-pin img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.memory-map-pin-card > span {
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  transform: translateX(-50%);
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  background: rgba(122, 45, 79, 0.92);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.memory-map-pin-city {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(6px);
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 251, 252, 0.96);
  border: 1px solid rgba(122, 45, 79, 0.22);
  box-shadow: 0 10px 24px rgba(79, 27, 50, 0.16);
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  max-width: 180px;
  text-align: center;
}

.memory-map-pin-city::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: rgba(255, 251, 252, 0.96);
  border-right: 1px solid rgba(122, 45, 79, 0.22);
  border-bottom: 1px solid rgba(122, 45, 79, 0.22);
  transform: translateX(-50%) rotate(45deg);
}

.memory-map-pin:hover .memory-map-pin-city,
.memory-map-pin:focus-visible .memory-map-pin-city,
.memory-map-pin.is-active .memory-map-pin-city {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.memory-map-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: min(320px, calc(100% - 2rem));
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 252, 253, 0.94);
  border: 1px solid rgba(122, 45, 79, 0.18);
  color: var(--wine);
  text-align: center;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(79, 27, 50, 0.12);
}

.memory-map-status[hidden] {
  display: none;
}

.memory-map-stage.focus-france .memory-map-panel-group[data-region="china"],
.memory-map-stage.focus-france .memory-map-pin[data-region="china"],
.memory-map-stage.focus-china .memory-map-panel-group[data-region="france"],
.memory-map-stage.focus-china .memory-map-pin[data-region="france"],
.memory-map-stage.focus-france .memory-map-route-group,
.memory-map-stage.focus-china .memory-map-route-group {
  display: none;
}

.memory-map-note {
  margin: 0.85rem 0 0;
  color: rgba(49, 31, 42, 0.78);
  font-size: 0.88rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 8px;
  grid-auto-flow: dense;
  gap: 0.85rem;
  align-items: start;
}

.photo-card {
  display: block;
  width: 100%;
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 14px 34px rgba(28, 39, 27, 0.16);
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  cursor: pointer;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(28, 39, 27, 0.2);
  filter: saturate(1.04);
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.26rem 0.58rem;
  border-radius: 999px;
  background: rgba(31, 36, 29, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.memory-record-player {
  position: fixed;
  right: 32px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.memory-record-art {
  width: 108px;
  height: 108px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 14px rgba(255, 229, 147, 0.95)) drop-shadow(6px 8px 0 rgba(26, 18, 56, 0.32));
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.memory-record-status,
.memory-record-hint {
  font-family: "Silkscreen", monospace;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  text-shadow: 2px 2px 0 #1a1238;
}

.memory-record-status {
  padding: 0.35rem 0.55rem;
  border: 3px solid #1a1238;
  border-radius: 999px;
  background: #32b669;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 rgba(26, 18, 56, 0.24);
}

.memory-record-hint {
  font-size: 0.55rem;
}

.memory-record-player.is-playing .memory-record-art {
  animation: spinMemoryRecord 2.8s linear infinite;
}

.memory-record-player.is-paused .memory-record-art {
  animation: none;
  filter: grayscale(1) brightness(0.72) drop-shadow(6px 8px 0 rgba(26, 18, 56, 0.32));
  opacity: 0.88;
}

.memory-record-player.is-paused .memory-record-status {
  background: #de5a6f;
}

.memory-record-player:hover .memory-record-art {
  transform: scale(1.04);
}

.world-panel {
  display: none;
}

.world-panel.active {
  display: grid;
}

.pixel-world {
  display: grid;
  gap: 1rem;
  position: relative;
}

.pixel-world-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pixel-world-tools-left,
.pixel-world-tools-right {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pixel-tool {
  font-family: "Silkscreen", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  border: 4px solid #1a1238;
  background: #fff7d1;
  color: #1a1238;
  padding: 0.65rem 0.8rem;
  box-shadow: 4px 4px 0 #1a1238;
  cursor: pointer;
}

.pixel-tool:hover {
  transform: translate(-1px, -1px);
}

.pixel-tool:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #1a1238;
}

.pixel-tool.active {
  background: #bdf5d0;
}

.pixel-world.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1200;
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(255, 222, 173, 0.22), transparent 30%),
    linear-gradient(180deg, #1b0a38 0%, #2d0f53 45%, #10051f 100%);
}

.pixel-world.is-fullscreen .pixel-world-toolbar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 10;
}

.pixel-world.is-fullscreen .pixel-sky {
  min-height: calc(100vh - 2rem);
  border-radius: 28px;
}

.pixel-world.is-fullscreen .pixel-dialog-shell {
  display: none;
}

.pixel-world.is-fullscreen:not(.desk-scene-active) .cloud-front-left,
.pixel-world.is-fullscreen:not(.desk-scene-active) .cloud-front-right {
  display: none;
}

.pixel-world.is-fullscreen:not(.desk-scene-active) .pixel-world-center {
  padding-top: 110px;
}

.pixel-world.is-fullscreen:not(.desk-scene-active) .pixel-couple {
  bottom: 104px;
}

.pixel-world.is-fullscreen:not(.desk-scene-active) .world-scene-buttons {
  bottom: 34px;
}

.pixel-world.is-fullscreen .world-preview-grid {
  display: none;
}

.pixel-sky {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  border: 6px solid #1a1238;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(23, 7, 40, 0.35);
  image-rendering: pixelated;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px),
    radial-gradient(circle at 84% 24%, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px),
    linear-gradient(180deg, #36106d 0%, #7921c7 18%, #c33fda 37%, #ff7596 57%, #ffad73 76%, #ffe3b0 92%, #fff4dd 100%);
}

.pixel-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 6px, 6px 100%;
  opacity: 0.18;
  pointer-events: none;
}

.pixel-world.desk-scene-active .pixel-sky {
  background: #120918;
}

.pixel-world.desk-scene-active .pixel-sky::before {
  opacity: 0;
}

.pixel-world.desk-scene-active .pixel-stars,
.pixel-world.desk-scene-active .pixel-moon,
.pixel-world.desk-scene-active .pixel-cloud,
.pixel-world.desk-scene-active .pixel-world-center,
.pixel-world.desk-scene-active .pixel-couple,
.pixel-world.desk-scene-active .pixel-dialog-shell {
  display: none;
}

.desk-scene-art {
  display: none;
}

.pixel-world.desk-scene-active .desk-scene-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  image-rendering: pixelated;
}

.pixel-world.is-fullscreen.desk-scene-active .desk-scene-art {
  border-radius: 22px;
}

.desk-monitor-ui {
  display: none;
}

.pixel-world.desk-scene-active .desk-monitor-ui {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 4;
  pointer-events: none;
}

.desk-monitor-launcher {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 10px 14px rgba(13, 7, 28, 0.45));
  transition: transform 160ms ease, filter 160ms ease;
}

.desk-monitor-launcher[hidden],
.crossword-game[hidden] {
  display: none !important;
}

.desk-monitor-launcher:hover,
.desk-monitor-launcher:focus-visible {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 18px rgba(13, 7, 28, 0.6));
}

.desk-monitor-launcher:focus-visible {
  outline: 2px solid rgba(255, 247, 209, 0.95);
  outline-offset: 4px;
}

.desk-monitor-launcher img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.desk-monitor-launcher.is-complete::after {
  content: "";
  position: absolute;
  left: var(--desk-check-left, 70%);
  top: var(--desk-check-top, 70%);
  width: var(--desk-check-size, 32px);
  aspect-ratio: 1;
  background: url("icone/check.png") center / contain no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  filter:
    drop-shadow(0 2px 0 rgba(255, 247, 209, 0.95))
    drop-shadow(0 5px 6px rgba(13, 7, 28, 0.45));
}

.desk-monitor-launcher span {
  display: none;
}

.crossword-game {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1040px, calc(100% - 2.4rem));
  height: min(760px, calc(100% - 2.4rem));
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.75rem;
  padding: 1rem;
  transform: translate(-50%, -50%);
  background: rgba(15, 9, 22, 0.97);
  border: 4px solid #f3d7ff;
  border-radius: 18px;
  box-shadow: inset 0 0 0 2px rgba(114, 82, 182, 0.45);
  pointer-events: auto;
  overflow: auto;
  z-index: 6;
}

.pixel-world.is-fullscreen .crossword-game {
  width: min(936px, calc((100% - 2.4rem) * 0.9));
  height: min(684px, calc((100% - 2.4rem) * 0.9));
}

.crossword-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.crossword-eyebrow,
.crossword-list-title {
  margin: 0;
  font-family: "Silkscreen", monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #efbfff;
}

.crossword-header h3 {
  margin-top: 0.25rem;
  font-family: "Silkscreen", monospace;
  font-size: 0.96rem;
  color: #fff7d9;
}

.crossword-close,
.crossword-validate {
  border: 3px solid #1a1238;
  background: #fff7d1;
  color: #1a1238;
  font-family: "Silkscreen", monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(26, 18, 56, 0.24);
}

.crossword-close {
  min-width: 38px;
  min-height: 38px;
}

.crossword-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.72fr);
  gap: 0.85rem;
  align-items: start;
  min-height: 0;
}

.crossword-grid {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 2px;
  align-self: start;
  align-content: start;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.45rem;
  border-radius: 10px;
}

.crossword-cell {
  aspect-ratio: 1;
  border: 2px solid #1a1238;
  background: #fff6d8;
  color: #1a1238;
  font-family: "Silkscreen", monospace;
  font-size: clamp(0.5rem, 0.95vw, 0.78rem);
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

.crossword-cell.is-blocked {
  background: rgba(26, 18, 56, 0.94);
  border-color: rgba(26, 18, 56, 0.94);
  cursor: default;
}

.crossword-cell.is-selected {
  background: #6bb7ff;
  color: #08131f;
}

.crossword-cell.is-correct {
  background: #6de28b;
  color: #0f2813;
}

.crossword-cell.is-wrong {
  background: #ff7c90;
  color: #320511;
}

.boyfriend-quiz-game {
  width: min(980px, calc(100% - 2.4rem));
}

.boyfriend-quiz-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.34fr);
  gap: 1rem;
  align-items: start;
  min-height: 0;
}

.boyfriend-quiz-list {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.boyfriend-quiz-card {
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(243, 215, 255, 0.28);
  border-radius: 14px;
}

.boyfriend-quiz-card h4 {
  margin: 0 0 0.8rem;
  font-family: "Silkscreen", monospace;
  font-size: 0.72rem;
  line-height: 1.7;
  color: #fff7d9;
}

.boyfriend-quiz-options {
  display: grid;
  gap: 0.55rem;
}

.boyfriend-quiz-option {
  width: 100%;
  border: 3px solid #1a1238;
  background: #fff7d1;
  color: #1a1238;
  font-family: "Silkscreen", monospace;
  font-size: 0.64rem;
  line-height: 1.6;
  text-align: left;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(26, 18, 56, 0.24);
}

.boyfriend-quiz-option.is-correct {
  background: #6de28b;
  color: #0f2813;
}

.boyfriend-quiz-option.is-wrong {
  background: #ff9bab;
  color: #3a0812;
}

.boyfriend-quiz-option:disabled {
  cursor: default;
  opacity: 0.92;
}

.boyfriend-quiz-card.is-solved {
  border-color: rgba(109, 226, 139, 0.55);
}

.boyfriend-quiz-side {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.boyfriend-quiz-score {
  margin: 0;
  font-family: "Silkscreen", monospace;
  font-size: 1.2rem;
  color: #fff7d9;
}

.boyfriend-quiz-feedback {
  margin: 0;
}

.boyfriend-quiz-reset {
  width: 100%;
}

.puzzle-game {
  width: min(1160px, calc(100% - 2.4rem));
}

.puzzle-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 1rem;
  align-items: start;
  min-height: 0;
}

.puzzle-frame-panel,
.puzzle-side {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0.95rem;
}

.puzzle-frame-panel {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.puzzle-panel-title {
  margin: 0;
  font-family: "Silkscreen", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #fff7d9;
}

.puzzle-board {
  width: min(100%, 520px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.8rem;
  background: rgba(11, 6, 19, 0.7);
  border: 3px solid rgba(243, 215, 255, 0.28);
  border-radius: 18px;
}

.puzzle-slot {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  border: 2px dashed rgba(255, 247, 209, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.puzzle-slot.is-ready {
  border-color: #ffd869;
  box-shadow: inset 0 0 0 2px rgba(255, 216, 105, 0.3);
}

.puzzle-slot.is-filled {
  border-style: solid;
  border-color: rgba(243, 215, 255, 0.45);
}

.puzzle-slot.is-correct {
  border-color: rgba(109, 226, 139, 0.78);
}

.puzzle-piece {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 247, 209, 0.82);
  border-radius: 12px;
  background-color: #23163a;
  background-repeat: no-repeat;
  box-shadow: 6px 6px 0 rgba(9, 5, 22, 0.28);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
}

.puzzle-piece:hover,
.puzzle-piece:focus-visible {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 rgba(9, 5, 22, 0.34);
}

.puzzle-piece:focus-visible {
  outline: 2px solid rgba(255, 247, 209, 0.95);
  outline-offset: 3px;
}

.puzzle-piece.is-selected {
  outline: 4px solid #ffd869;
  outline-offset: -4px;
  transform: translateY(-2px) scale(1.01);
}

.puzzle-side {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}

.puzzle-side-block {
  display: grid;
  gap: 0.45rem;
}

.puzzle-feedback {
  min-height: 3.2rem;
}

.puzzle-tray {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
  align-items: start;
}

.puzzle-tray .puzzle-piece {
  width: 70%;
  justify-self: center;
  aspect-ratio: 1;
  min-height: clamp(57px, 5.6vw, 76px);
  height: auto;
}

.puzzle-tray:empty::after {
  content: "All pieces are in the frame.";
  grid-column: 1 / -1;
  padding: 0.85rem;
  border: 2px dashed rgba(255, 247, 209, 0.24);
  border-radius: 12px;
  color: rgba(255, 247, 209, 0.86);
  text-align: center;
  font-size: 0.8rem;
}

.puzzle-actions {
  display: grid;
}

.crossword-cell.is-correct.is-selected {
  background: #6bb7ff;
  color: #08131f;
}

.crossword-cell.is-correct.is-wrong {
  background: #ff7c90;
  color: #320511;
}

.crossword-side {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.8rem;
  border-radius: 10px;
}

.crossword-validate {
  padding: 0.72rem 0.9rem;
}

.crossword-feedback {
  min-height: 2.2rem;
  margin: 0;
  color: #fff4d2;
  font-size: 0.86rem;
}

.crossword-clues {
  display: grid;
  gap: 0.7rem;
}

.crossword-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: #fff;
  display: grid;
  gap: 0.22rem;
  font-size: 0.82rem;
}

.crossword-list li.is-solved {
  color: #83f0a1;
  text-decoration: line-through;
}

.pixel-stars {
  position: absolute;
  inset: 0;
  opacity: 0.95;
  background-image:
    radial-gradient(circle, #ffffff 0 2px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 1px, transparent 1px);
  background-position: 8% 12%, 26% 30%, 72% 18%, 88% 44%, 52% 22%, 18% 58%, 79% 67%, 58% 80%;
  background-size: 120px 120px, 180px 180px, 240px 240px;
  animation: starsTwinkle 5s steps(2) infinite;
}

.pixel-moon {
  position: absolute;
  top: 92px;
  left: 14%;
  width: 187px;
  height: 187px;
  background: url("icone/moon.png") center / contain no-repeat;
  image-rendering: pixelated;
  filter: brightness(1.24) drop-shadow(10px 10px 0 rgba(26, 18, 56, 0.25));
  animation: moonFloat 6s ease-in-out infinite alternate;
}

.pixel-cloud {
  position: absolute;
  display: block;
  width: min(55vw, 760px);
  pointer-events: none;
}

.cloud-back-left {
  top: 150px;
  left: -8%;
  opacity: 0.45;
  animation: driftSlow 26s linear infinite alternate;
}

.cloud-back-right {
  top: 190px;
  right: -18%;
  opacity: 0.42;
  animation: driftSlow 32s linear infinite alternate-reverse;
}

.cloud-front-left {
  bottom: 110px;
  left: -6%;
  width: min(60vw, 820px);
  opacity: 0.95;
  animation: driftWide 24s linear infinite alternate;
}

.cloud-front-right {
  bottom: 90px;
  right: -12%;
  width: min(58vw, 760px);
  opacity: 0.9;
  animation: driftWide 28s linear infinite alternate-reverse;
}

.pixel-world-center {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding-top: 140px;
  text-align: center;
}

.pixel-overline {
  margin: 0;
  font-family: "Silkscreen", monospace;
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  color: #fef6ff;
  text-shadow: 3px 3px 0 #1a1238;
}

.pixel-title {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 0;
  font-family: "Silkscreen", monospace;
  font-size: clamp(2.5rem, 9vw, 5.8rem);
  line-height: 0.96;
  color: #f6d6ff;
  text-transform: uppercase;
  text-shadow:
    5px 5px 0 #241148,
    10px 10px 0 rgba(36, 17, 72, 0.72);
}

.pixel-title span {
  display: block;
}

.pixel-subtitle {
  max-width: 620px;
  margin: 1.2rem auto 0;
  padding: 0 1rem;
  font-family: "Silkscreen", monospace;
  font-size: clamp(0.74rem, 1.9vw, 1rem);
  line-height: 1.8;
  color: #fff8fc;
  text-shadow: 3px 3px 0 rgba(26, 18, 56, 0.95);
}

.pixel-couple {
  position: absolute;
  left: 50%;
  bottom: 168px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translateX(-50%);
  z-index: 3;
  animation: floatCouple 2.8s ease-in-out infinite;
}

.pixel-avatar {
  width: clamp(112px, 12vw, 156px);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(8px 8px 0 rgba(26, 18, 56, 0.25));
  cursor: pointer;
}

.pixel-avatar:focus-visible {
  outline: 3px solid #fff6d8;
  outline-offset: 8px;
}

.avatar-left {
  margin-right: -22px;
  transform: translateY(2px) scale(1.02);
}

.avatar-right {
  margin-left: -8px;
}

.pixel-dialog-shell {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(760px, calc(100% - 2rem));
  transform: translateX(-50%);
  z-index: 4;
}

.pixel-dialog-box {
  position: relative;
  background: #fff6d8;
  border: 4px solid #1a1238;
  border-radius: 10px;
  box-shadow: 0 0 0 4px #fff6d8, 8px 8px 0 rgba(26, 18, 56, 0.28);
  padding: 1rem 1.2rem 1.2rem;
  min-height: 132px;
  font-family: "Silkscreen", monospace;
  font-size: clamp(0.68rem, 1.5vw, 0.92rem);
  line-height: 1.85;
  color: #1a1238;
}

.pixel-dialog-box::before,
.pixel-dialog-box::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff6d8;
  border: 4px solid #1a1238;
  transform: rotate(45deg);
  top: 50%;
  margin-top: -11px;
}

.pixel-dialog-box::before {
  left: -14px;
}

.pixel-dialog-box::after {
  right: -14px;
}

.pixel-dialog-box p {
  margin: 0;
}

.pixel-dialog-tag {
  margin-bottom: 0.65rem;
  color: #6b4ee1;
}

.world-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.world-scene-buttons {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: none;
  transform: translateX(-50%);
  z-index: 5;
}

.pixel-world.is-fullscreen .world-scene-buttons {
  display: flex;
}

.pixel-world.desk-scene-active .world-scene-buttons {
  display: none;
}

.world-entry-button {
  font-family: "Silkscreen", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  border: 3px solid #1a1238;
  background: #ffd78e;
  color: #1a1238;
  padding: 0.7rem 0.85rem;
  box-shadow: 4px 4px 0 rgba(26, 18, 56, 0.2);
  cursor: pointer;
}

.world-entry-button.active {
  background: #bdf5d0;
}

.world-entry-button.has-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.world-entry-button.has-icon img {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
  image-rendering: pixelated;
}

.world-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.world-preview-card {
  background: rgba(255, 251, 235, 0.88);
  border: 4px solid #1a1238;
  border-radius: 18px;
  box-shadow: 8px 8px 0 rgba(26, 18, 56, 0.14);
  padding: 1rem;
}

.world-preview-label {
  margin: 0 0 0.35rem;
  font-family: "Silkscreen", monospace;
  font-size: 0.68rem;
  color: #6b4ee1;
  text-transform: uppercase;
}

.world-preview-card h3 {
  font-family: "Silkscreen", monospace;
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.world-preview-card p:last-child {
  margin-bottom: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(18, 7, 13, 0.78);
  backdrop-filter: blur(3px);
  z-index: 1600;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: unset;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: block;
}

.lightbox-close,
.lightbox-nav,
.lightbox-play {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
}

.lightbox-nav.left {
  left: 1rem;
}

.lightbox-nav.right {
  right: 1rem;
}

.lightbox-play {
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  min-width: 78px;
  height: 40px;
  padding: 0 1rem;
  font-weight: 700;
}

.footer {
  text-align: center;
  padding: 1.4rem 0 2rem;
  color: #5a3a4a;
  font-weight: 500;
}

@keyframes driftSlow {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(34px);
  }
}

@keyframes driftWide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(56px);
  }
}

@keyframes moonFloat {
  from {
    transform: translateX(-10px);
  }

  to {
    transform: translateX(10px);
  }
}

@keyframes floatCouple {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes spinMemoryRecord {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes starsTwinkle {
  0%,
  100% {
    opacity: 0.92;
  }

  50% {
    opacity: 0.65;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 620px;
  }

  .hero-image {
    object-position: 50% 70%;
  }

  .memories-bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "countdown"
      "anniversary"
      "timeline"
      "map"
      "gallery";
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pixel-world.is-fullscreen {
    padding: 0.7rem;
  }

  .pixel-world.is-fullscreen .pixel-world-toolbar {
    top: 0.7rem;
    left: 0.7rem;
    right: 0.7rem;
  }

  .pixel-world.is-fullscreen .pixel-sky {
    min-height: calc(100vh - 1.4rem);
  }

  .pixel-world.is-fullscreen:not(.desk-scene-active) .pixel-world-center {
    padding-top: 132px;
  }

  .pixel-world.is-fullscreen:not(.desk-scene-active) .pixel-couple {
    bottom: 128px;
  }

  .pixel-sky {
    min-height: 720px;
  }

  .world-preview-grid {
    grid-template-columns: 1fr;
  }

  .crossword-body {
    grid-template-columns: 1fr;
  }

  .puzzle-body {
    grid-template-columns: 1fr;
  }

  .puzzle-board {
    width: min(100%, 460px);
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 560px;
  }

  .hero-content {
    width: min(100%, 92vw);
  }

  .hero-meta {
    gap: 0.42rem;
  }

  .hero-meta span {
    font-size: 0.7rem;
  }

  .memory-map-controls {
    width: 100%;
  }

  .memory-map-control {
    flex: 1 1 0;
    text-align: center;
  }

  .container {
    margin-top: -1.2rem;
  }

  .section-tabs {
    width: 100%;
    justify-content: center;
  }

  .tab-button {
    flex: 1;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .time-box {
    min-height: 92px;
  }

  .anniversary-grid {
    grid-template-columns: 1fr;
  }

  .anniversary-box {
    min-height: 72px;
  }

  .memory-map-board {
    padding: 0.8rem;
  }

  .memory-map-viewport {
    min-height: 380px;
  }

  .memory-map-pin {
    width: 62px;
    margin-left: -31px;
    margin-top: -72px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .memory-record-player {
    right: 14px;
    bottom: 14px;
  }

  .memory-record-art {
    width: 84px;
    height: 84px;
  }

  .memory-record-status {
    font-size: 0.5rem;
    padding: 0.3rem 0.45rem;
  }

  .memory-record-hint {
    font-size: 0.46rem;
  }

  .pixel-world-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pixel-world-tools-left,
  .pixel-world-tools-right {
    justify-content: space-between;
  }

  .pixel-tool {
    width: 100%;
  }

  .pixel-sky {
    min-height: 690px;
  }

  .pixel-moon {
    top: 70px;
    left: 8%;
    width: 138px;
    height: 138px;
  }

  .pixel-world-center {
    padding-top: 160px;
  }

  .pixel-title {
    font-size: clamp(2.1rem, 15vw, 4rem);
  }

  .pixel-subtitle {
    line-height: 1.6;
  }

  .pixel-couple {
    bottom: 212px;
  }

  .pixel-avatar {
    width: clamp(92px, 24vw, 122px);
  }

  .avatar-left {
    margin-right: -16px;
  }

  .avatar-right {
    margin-left: -4px;
  }

  .pixel-dialog-shell {
    bottom: 24px;
    width: calc(100% - 1.4rem);
  }

  .world-scene-buttons {
    bottom: 24px;
    width: calc(100% - 1.4rem);
    justify-content: center;
  }

  .pixel-dialog-box {
    padding: 0.8rem 0.9rem 1rem;
    min-height: 155px;
    line-height: 1.7;
  }

  .pixel-dialog-box::before,
  .pixel-dialog-box::after {
    display: none;
  }

  .world-entry-actions {
    flex-direction: column;
  }

  .world-entry-button {
    width: 100%;
  }

  .pixel-world.is-fullscreen .world-scene-buttons .world-entry-button {
    width: min(100%, 260px);
  }

  .pixel-world.is-fullscreen:not(.desk-scene-active) .world-scene-buttons {
    bottom: 20px;
  }

  .crossword-game {
    padding: 0.5rem;
  }

  .crossword-header h3 {
    font-size: 0.72rem;
  }

  .crossword-close,
  .crossword-validate {
    font-size: 0.54rem;
  }

  .crossword-list {
    font-size: 0.68rem;
  }

  .boyfriend-quiz-body {
    grid-template-columns: 1fr;
  }

  .boyfriend-quiz-side {
    order: -1;
  }

  .puzzle-frame-panel,
  .puzzle-side {
    padding: 0.7rem;
  }

  .puzzle-tray {
    gap: 0.55rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}

/* ── Memory card game ──────────────────────────────────────────── */

.memory-card-game {
  width: min(900px, calc(100% - 2.4rem));
}

.memory-card-game[hidden] {
  display: none;
}

.memory-card-body {
  display: grid;
  gap: 0.9rem;
}

.memory-card-stats {
  display: flex;
  gap: 1.4rem;
  font-family: "Silkscreen", monospace;
  font-size: 0.75rem;
  color: #ffd6e8;
  letter-spacing: 0.05em;
}

.memory-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  width: min(440px, 54vh);
  margin: 0 auto;
}

.memory-card-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Card flip */
.memory-card-item {
  perspective: 600px;
  aspect-ratio: 1;
  cursor: pointer;
  user-select: none;
}

.memory-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.42s ease;
}

.memory-card-item.is-flipped .memory-card-inner,
.memory-card-item.is-matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
}

.memory-card-back {
  background: linear-gradient(135deg, #7a2d4f 0%, #3d1528 100%);
  border: 2px solid rgba(248, 164, 200, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.memory-card-front {
  transform: rotateY(180deg);
}

.memory-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.memory-card-item.is-matched .memory-card-front {
  box-shadow: 0 0 0 3px #a74873;
}

.memory-card-launcher-icon {
  font-size: 2rem;
  display: block;
}

/* ── Heart Hunt game ───────────────────────────────────────────── */

.heart-hunt-game {
  width: min(820px, calc(100% - 2.4rem));
}

.heart-hunt-game[hidden] {
  display: none;
}

.heart-hunt-body {
  display: grid;
  gap: 0.65rem;
}

.heart-hunt-info {
  display: flex;
  gap: 1.4rem;
  font-family: "Silkscreen", monospace;
  font-size: 0.75rem;
  color: #ffd6e8;
  letter-spacing: 0.05em;
}

.heart-hunt-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  cursor: crosshair;
  background: #1a0d14;
  max-height: 52vh;
}

.heart-hunt-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.heart-hunt-heart {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  background: url('icone/vecteezy_ai-generated-pixelation-of-red-heart-in-png-image_41638505.png') no-repeat center;
  background-size: contain;
  cursor: pointer;
  transform: translate(-50%, -50%);
  opacity: 0.35;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.heart-hunt-heart:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.15);
}

.heart-hunt-heart.is-found {
  opacity: 1;
  animation: heartPop 0.5s ease both;
  pointer-events: none;
  cursor: default;
}

@keyframes heartPop {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  60%  { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}

/* ── Love Letter Scramble ───────────────────────────────────────── */

.love-letter-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
}

.love-letter-scroll {
  overflow-y: auto;
  max-height: 40vh;
  border-radius: 8px;
  background: #fff9f5;
  padding: 0.1rem;
}

.love-letter-paper {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.93rem;
  line-height: 2.1;
  color: #3a1a28;
  padding: 1.2rem 1.5rem;
  background: #fff9f5;
  border-radius: 8px;
  border: 2px solid #e8c9d8;
  min-height: 80px;
}

.love-letter-paper .ll-line {
  margin-bottom: 0.3rem;
}

.ll-blank {
  display: inline-block;
  min-width: 80px;
  min-height: 1.4em;
  border-bottom: 2px dashed #c06090;
  vertical-align: bottom;
  cursor: pointer;
  border-radius: 3px 3px 0 0;
  padding: 0 4px;
  transition: background 0.15s ease;
  position: relative;
}

.ll-blank:empty::before {
  content: "_ _ _";
  color: #d9a0c0;
  font-size: 0.8em;
  pointer-events: none;
}

.ll-blank.ll-drag-over {
  background: rgba(192, 96, 144, 0.15);
}

.ll-blank.ll-filled {
  background: rgba(192, 96, 144, 0.08);
  color: #7a2d4f;
  font-weight: bold;
  border-bottom-color: #7a2d4f;
}

.ll-blank.ll-correct {
  background: rgba(80, 180, 120, 0.15);
  border-bottom-color: #2d7a50;
  color: #1a4d32;
}

.ll-blank.ll-wrong {
  background: rgba(200, 60, 60, 0.12);
  border-bottom-color: #c03030;
  animation: llShake 0.35s ease;
}

@keyframes llShake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

.love-letter-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(122, 45, 79, 0.08);
  border-radius: 10px;
  border: 2px dashed rgba(122, 45, 79, 0.3);
  min-height: 52px;
}

.ll-tile {
  font-family: "Silkscreen", monospace;
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  background: #7a2d4f;
  color: #fff6f3;
  border-radius: 6px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  border: 2px solid #5a1a38;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.ll-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.35);
}

.ll-tile.ll-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.ll-tile.ll-used {
  opacity: 0.25;
  pointer-events: none;
  cursor: default;
}

.ll-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-family: "Silkscreen", monospace;
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  background: #7a2d4f;
  color: #fff6f3;
  border-radius: 6px;
  border: 2px solid #5a1a38;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.love-letter-footer {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.love-letter-reset-btn {
  background: transparent;
  border-color: rgba(122, 45, 79, 0.5);
  color: #7a2d4f;
}

/* ── Completion letter overlay ─────────────────────────────────── */

.completion-overlay[hidden] {
  display: none;
}

.completion-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 8, 14, 0.78);
  backdrop-filter: blur(6px);
  z-index: 3000;
  animation: completionFadeIn 0.6s ease both;
}

@keyframes completionFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes letterSlideIn {
  from { opacity: 0; transform: translateY(40px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes giftBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes giftShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}

.completion-letter {
  width: min(520px, 92vw);
  animation: letterSlideIn 0.7s 0.3s ease both;
}

.completion-letter-border {
  background: #1a0d14;
  border: 3px solid #a74873;
  border-radius: 6px;
  padding: 2rem 1.8rem;
  text-align: center;
  font-family: "Silkscreen", monospace;
  image-rendering: pixelated;
  box-shadow:
    0 0 0 6px #1a0d14,
    0 0 0 9px #a74873,
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.completion-letter-pixel-tag {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #f8a4c8;
}

.completion-letter-title {
  margin: 0 0 1rem;
  font-family: "Silkscreen", monospace;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: #ffd6e8;
  text-shadow: 2px 2px 0 #7a2d4f;
}

.completion-letter-body {
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #e8b8cc;
}

.completion-gift-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding: 1rem 2rem;
  border: 2px solid #f8a4c8;
  border-radius: 6px;
  background: rgba(167, 72, 115, 0.3);
  color: #ffd6e8;
  font-family: "Silkscreen", monospace;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.completion-gift-box:hover {
  background: rgba(167, 72, 115, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(167, 72, 115, 0.4);
}

.gift-box-icon {
  font-size: 2.8rem;
  display: block;
  animation: giftShake 0.8s ease-in-out infinite;
}

.completion-gift-box:hover .gift-box-icon {
  animation: giftBounce 0.5s ease-in-out infinite;
}

.gift-box-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Final pixel letter overlay */
.final-letter-overlay[hidden] {
  display: none;
}

.final-letter-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(520px 360px at 50% 36%, rgba(122, 45, 79, 0.3), transparent 72%),
    rgba(15, 8, 13, 0.86);
  backdrop-filter: blur(5px);
  z-index: 4200;
  animation: completionFadeIn 0.5s ease both;
}

.final-letter-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 3px solid #2a2420;
  border-radius: 0;
  background: #ffd077;
  color: #2a2420;
  font-family: "Silkscreen", monospace;
  font-size: 1rem;
  cursor: pointer;
  box-shadow:
    4px 0 0 #8f3d35,
    0 4px 0 #8f3d35,
    4px 4px 0 #2a2420;
}

.final-letter-close:hover,
.final-letter-close:focus-visible {
  background: #ffe09a;
}

.pixel-scroll-letter {
  position: relative;
  width: min(560px, 92vw);
  padding-top: 28px;
  font-family: "Silkscreen", monospace;
  color: #462b1c;
  image-rendering: pixelated;
  animation: letterSlideIn 0.65s 0.1s ease both;
}

.pixel-scroll-rod {
  position: absolute;
  left: 38px;
  right: 38px;
  top: 0;
  height: 28px;
  background: #ffbd62;
  border: 6px solid #26211f;
  box-shadow:
    inset 12px 0 0 #f28b3d,
    inset -12px 0 0 #f28b3d,
    0 7px 0 rgba(0, 0, 0, 0.22);
  z-index: 3;
}

.pixel-scroll-knob {
  position: absolute;
  top: -20px;
  width: 46px;
  height: 58px;
  background:
    linear-gradient(#26211f 0 100%) center top / 12px 100% no-repeat,
    linear-gradient(#26211f 0 100%) center / 100% 12px no-repeat,
    #bd4c43;
  border: 6px solid #26211f;
  box-shadow:
    inset 10px 0 0 rgba(255, 144, 88, 0.42),
    inset -10px 0 0 rgba(89, 31, 36, 0.35);
}

.pixel-scroll-knob.left {
  left: -64px;
}

.pixel-scroll-knob.right {
  right: -64px;
}

.pixel-scroll-paper {
  position: relative;
  margin: 0 auto;
  width: min(430px, calc(100vw - 5.5rem));
  min-height: 560px;
  padding: 34px 28px 54px;
  background:
    linear-gradient(90deg, #e88e35 0 13px, transparent 13px calc(100% - 13px), #e88e35 calc(100% - 13px) 100%),
    linear-gradient(#ffc966, #ffc966);
  border-left: 14px solid #26211f;
  border-right: 14px solid #26211f;
  border-bottom: 14px solid #26211f;
  box-shadow:
    inset 13px 0 0 #ffdb86,
    inset -13px 0 0 #f3a44a,
    0 18px 0 rgba(0, 0, 0, 0.18),
    0 32px 60px rgba(0, 0, 0, 0.42);
}

.pixel-scroll-paper::before,
.pixel-scroll-paper::after {
  content: "";
  position: absolute;
  bottom: -14px;
  width: 44%;
  height: 86px;
  background: #ffc966;
  border-bottom: 14px solid #26211f;
}

.pixel-scroll-paper::before {
  left: -14px;
  border-left: 14px solid #26211f;
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 100%);
}

.pixel-scroll-paper::after {
  right: -14px;
  border-right: 14px solid #26211f;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 38%);
}

.pixel-scroll-folds {
  position: absolute;
  top: 0;
  left: 44px;
  right: 44px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  height: 18px;
}

.pixel-scroll-folds span {
  background: #e98f38;
}

.pixel-scroll-content {
  position: relative;
  z-index: 1;
  max-height: min(62vh, 500px);
  overflow-y: auto;
  padding: 0.2rem 0.25rem 0;
  scrollbar-color: #bd4c43 #ffd98a;
}

.pixel-scroll-content p {
  margin: 0 0 1rem;
  font-size: clamp(0.72rem, 1.85vw, 0.9rem);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.pixel-scroll-greeting,
.pixel-scroll-signature {
  color: #8f3d35;
  text-shadow: 2px 2px 0 rgba(255, 233, 165, 0.9);
}

.pixel-scroll-greeting {
  font-size: clamp(0.95rem, 2.4vw, 1.2rem) !important;
}

.pixel-scroll-signature {
  margin-top: 1.2rem !important;
  text-align: right;
  font-size: clamp(0.9rem, 2.2vw, 1.15rem) !important;
}

@media (max-width: 560px) {
  .final-letter-overlay {
    padding: 0.85rem;
  }

  .final-letter-close {
    top: 0.7rem;
    right: 0.7rem;
    width: 38px;
    height: 38px;
  }

  .pixel-scroll-letter {
    width: min(100%, 420px);
    padding-top: 24px;
  }

  .pixel-scroll-rod {
    left: 30px;
    right: 30px;
    height: 24px;
    border-width: 5px;
  }

  .pixel-scroll-knob {
    top: -16px;
    width: 36px;
    height: 48px;
    border-width: 5px;
  }

  .pixel-scroll-knob.left {
    left: -50px;
  }

  .pixel-scroll-knob.right {
    right: -50px;
  }

  .pixel-scroll-paper {
    width: min(330px, calc(100vw - 3.6rem));
    min-height: 510px;
    padding: 30px 20px 46px;
    border-left-width: 11px;
    border-right-width: 11px;
    border-bottom-width: 11px;
  }

  .pixel-scroll-paper::before,
  .pixel-scroll-paper::after {
    bottom: -11px;
    height: 64px;
    border-bottom-width: 11px;
  }

  .pixel-scroll-paper::before {
    left: -11px;
    border-left-width: 11px;
  }

  .pixel-scroll-paper::after {
    right: -11px;
    border-right-width: 11px;
  }

  .pixel-scroll-folds {
    left: 32px;
    right: 32px;
    gap: 7px;
    height: 14px;
  }
}

/* ── Video player overlay ──────────────────────────────────────── */

.video-overlay[hidden] {
  display: none;
}

.video-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.94);
  z-index: 4000;
  animation: completionFadeIn 0.5s ease both;
}

.video-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
  z-index: 1;
}

.video-overlay-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.video-player {
  width: min(960px, 94vw);
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ── Dev completion button ─────────────────────────────────────── */

.pixel-tool-gift {
  background: #a74873;
  border-color: #f8a4c8;
  color: #fff;
}

.pixel-tool-gift:hover {
  background: #c25585;
}

.pixel-tool-gift[hidden] {
  display: none;
}

.dev-complete-btn {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #666;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #0f0;
  font-family: monospace;
  font-size: 0.72rem;
  cursor: pointer;
  z-index: 5000;
  opacity: 0.6;
  transition: opacity 180ms ease;
}

.dev-complete-btn[hidden] {
  display: none;
}

.dev-complete-btn:hover {
  opacity: 1;
}
