:root {
  color-scheme: light;
  --cream: #fff9e9;
  --butter: #ffe79a;
  --pink: #ffb7cf;
  --pink-soft: #ffe2eb;
  --mint: #a9e8d5;
  --mint-soft: #e7fbf4;
  --lavender: #cfc2ff;
  --blue: #86b6ff;
  --ink: #3c2d36;
  --muted: #7f6b75;
  --line: rgba(90, 58, 72, 0.14);
  --paper: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 44px rgba(153, 92, 112, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(255, 183, 207, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 183, 207, 0.18) 1px, transparent 1px),
    linear-gradient(135deg, var(--cream), #fff4f8 46%, var(--mint-soft));
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body.opening-active {
  overflow: hidden;
}

.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(255, 183, 207, 0.2) 1px, transparent 1px),
    linear-gradient(180deg, rgba(134, 182, 255, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 28% 28%, rgba(255, 231, 154, 0.88), transparent 28%),
    radial-gradient(circle at 76% 22%, rgba(169, 232, 213, 0.76), transparent 24%),
    linear-gradient(135deg, #fff9e9, #ffeef5 48%, #e7fbf4);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.opening-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-screen.is-transitioning {
  background:
    linear-gradient(90deg, rgba(255, 183, 207, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(134, 182, 255, 0.14) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.94) 0 18%, rgba(255, 255, 255, 0.38) 19% 34%, transparent 56%),
    linear-gradient(135deg, #fff9e9, #ffeef5 48%, #e7fbf4);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.opening-screen::before,
.opening-screen::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(60, 45, 54, 0.1);
  pointer-events: none;
}

.opening-screen::before {
  width: min(78vw, 780px);
  height: min(78vw, 780px);
  border-radius: 50%;
  background: conic-gradient(from 140deg, rgba(255, 183, 207, 0.16), rgba(255, 231, 154, 0.2), rgba(169, 232, 213, 0.16), rgba(207, 194, 255, 0.18), rgba(255, 183, 207, 0.16));
  animation: opening-spin 14s linear infinite;
}

.opening-screen.is-transitioning::before {
  animation: opening-spin 620ms linear infinite, opening-orbit-dissolve 920ms cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
}

.opening-screen::after {
  inset: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(255, 255, 255, 0.48) 48%, transparent 52%),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 183, 207, 0.1) 19px 21px);
  animation: opening-shine 2600ms ease-in-out both;
}

.opening-screen.is-transitioning::after {
  animation: opening-page-sweep 920ms cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
}

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

.opening-petal,
.opening-spark {
  position: absolute;
  display: block;
  opacity: 0;
  filter: drop-shadow(0 12px 18px rgba(153, 92, 112, 0.18));
  animation: opening-float 2600ms cubic-bezier(0.2, 0.85, 0.28, 1) both;
}

.opening-petal {
  width: 54px;
  height: 26px;
  border: 1px solid rgba(60, 45, 54, 0.08);
  border-radius: 50% 8px 50% 8px;
  background: linear-gradient(135deg, #fff, var(--pink));
}

.petal-one {
  top: 14%;
  left: 16%;
  rotate: -22deg;
}

.petal-two {
  top: 18%;
  right: 18%;
  background: linear-gradient(135deg, #fff, var(--mint));
  animation-delay: 180ms;
}

.petal-three {
  right: 20%;
  bottom: 18%;
  background: linear-gradient(135deg, #fff, var(--butter));
  animation-delay: 320ms;
}

.petal-four {
  bottom: 16%;
  left: 18%;
  background: linear-gradient(135deg, #fff, var(--lavender));
  animation-delay: 460ms;
}

.opening-spark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.28), 0 0 28px rgba(217, 93, 134, 0.32);
}

.spark-one {
  top: 24%;
  left: 48%;
  animation-delay: 260ms;
}

.spark-two {
  right: 26%;
  bottom: 34%;
  background: var(--butter);
  animation-delay: 520ms;
}

.spark-three {
  bottom: 28%;
  left: 30%;
  background: var(--mint);
  animation-delay: 680ms;
}

.opening-badge {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(520px, 100%);
  justify-items: center;
  border: 1px solid rgba(60, 45, 54, 0.14);
  border-radius: 8px;
  padding: 34px 30px 30px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 28px 70px rgba(153, 92, 112, 0.22);
  backdrop-filter: blur(18px);
  animation: opening-badge-in 900ms cubic-bezier(0.18, 0.9, 0.24, 1.12) both;
}

.opening-screen.is-transitioning .opening-badge {
  animation: opening-badge-out 520ms cubic-bezier(0.62, 0, 0.4, 1) forwards;
}

.opening-mark {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(60, 45, 54, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), var(--butter));
  color: #fff;
  font-size: 1.85rem;
  font-weight: 950;
  box-shadow: inset 0 -3px 0 rgba(60, 45, 54, 0.08), 0 16px 30px rgba(217, 93, 134, 0.18);
}

.opening-kicker,
.opening-subtitle {
  margin: 16px 0 0;
  color: #d95d86;
  font-weight: 900;
}

.opening-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.opening-title {
  margin: 6px 0 0;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  line-height: 1.02;
  text-align: center;
  transform-origin: center bottom;
  animation: opening-title-pop 900ms 240ms cubic-bezier(0.18, 0.9, 0.24, 1.16) both;
}

.opening-subtitle {
  color: var(--muted);
  font-size: 0.98rem;
}

.opening-loader {
  position: relative;
  width: min(280px, 82%);
  height: 8px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(60, 45, 54, 0.1);
  border-radius: 8px;
  background: rgba(255, 226, 235, 0.78);
}

.opening-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--butter), var(--mint));
  transform: translateX(-102%);
  animation: opening-load 1900ms 360ms cubic-bezier(0.2, 0.85, 0.28, 1) forwards;
}

.opening-skip {
  position: absolute;
  right: max(18px, calc((100vw - 1120px) / 2));
  bottom: 18px;
  z-index: 2;
  border: 1px solid rgba(60, 45, 54, 0.14);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.opening-skip:hover,
.opening-skip:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: #fff;
}

.opening-dot-cloud {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.opening-dot-cloud span {
  --angle: 0deg;
  --distance: 300px;
  --dot-size: 12px;
  position: absolute;
  width: var(--dot-size);
  height: var(--dot-size);
  margin: calc(var(--dot-size) / -2);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.28), 0 14px 30px rgba(153, 92, 112, 0.18);
  opacity: 0;
  transform: rotate(var(--angle)) translateX(28px) scale(0.52);
}

.opening-dot-cloud span:nth-child(1) { --angle: 0deg; --distance: 300px; --dot-size: 10px; background: var(--pink); }
.opening-dot-cloud span:nth-child(2) { --angle: 20deg; --distance: 330px; --dot-size: 14px; background: var(--butter); }
.opening-dot-cloud span:nth-child(3) { --angle: 40deg; --distance: 286px; --dot-size: 9px; background: var(--mint); }
.opening-dot-cloud span:nth-child(4) { --angle: 60deg; --distance: 344px; --dot-size: 12px; background: var(--lavender); }
.opening-dot-cloud span:nth-child(5) { --angle: 80deg; --distance: 312px; --dot-size: 16px; background: var(--blue); }
.opening-dot-cloud span:nth-child(6) { --angle: 100deg; --distance: 360px; --dot-size: 11px; background: var(--pink); }
.opening-dot-cloud span:nth-child(7) { --angle: 120deg; --distance: 294px; --dot-size: 13px; background: var(--mint); }
.opening-dot-cloud span:nth-child(8) { --angle: 140deg; --distance: 348px; --dot-size: 10px; background: var(--butter); }
.opening-dot-cloud span:nth-child(9) { --angle: 160deg; --distance: 320px; --dot-size: 15px; background: var(--lavender); }
.opening-dot-cloud span:nth-child(10) { --angle: 180deg; --distance: 304px; --dot-size: 9px; background: var(--pink); }
.opening-dot-cloud span:nth-child(11) { --angle: 200deg; --distance: 352px; --dot-size: 13px; background: var(--blue); }
.opening-dot-cloud span:nth-child(12) { --angle: 220deg; --distance: 292px; --dot-size: 11px; background: var(--mint); }
.opening-dot-cloud span:nth-child(13) { --angle: 240deg; --distance: 338px; --dot-size: 15px; background: var(--butter); }
.opening-dot-cloud span:nth-child(14) { --angle: 260deg; --distance: 310px; --dot-size: 10px; background: var(--lavender); }
.opening-dot-cloud span:nth-child(15) { --angle: 280deg; --distance: 366px; --dot-size: 12px; background: var(--pink); }
.opening-dot-cloud span:nth-child(16) { --angle: 300deg; --distance: 318px; --dot-size: 14px; background: var(--mint); }
.opening-dot-cloud span:nth-child(17) { --angle: 320deg; --distance: 342px; --dot-size: 9px; background: var(--blue); }
.opening-dot-cloud span:nth-child(18) { --angle: 340deg; --distance: 302px; --dot-size: 13px; background: var(--butter); }

.opening-screen.is-transitioning .opening-dot-cloud {
  opacity: 1;
  animation: opening-dot-cloud-spin 1080ms cubic-bezier(0.2, 0.82, 0.2, 1) forwards;
}

.opening-screen.is-transitioning .opening-dot-cloud span {
  animation: opening-dot-dissolve 1080ms cubic-bezier(0.16, 0.78, 0.22, 1) forwards;
}

.opening-screen.is-transitioning .opening-dot-cloud span:nth-child(3n + 1) {
  animation-delay: 30ms;
}

.opening-screen.is-transitioning .opening-dot-cloud span:nth-child(3n + 2) {
  animation-delay: 80ms;
}

.opening-screen.is-transitioning .opening-dot-cloud span:nth-child(3n) {
  animation-delay: 130ms;
}

.opening-screen.is-transitioning .opening-skip {
  opacity: 0;
  pointer-events: none;
}

body.opening-revealed .site-header,
body.opening-revealed main,
body.opening-revealed .site-footer {
  animation: opening-page-in 620ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

@keyframes opening-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes opening-shine {
  0% {
    transform: translateX(-18%);
    opacity: 0;
  }

  35%,
  70% {
    opacity: 1;
  }

  100% {
    transform: translateX(18%);
    opacity: 0;
  }
}

@keyframes opening-float {
  0% {
    transform: translateY(28px) scale(0.68);
    opacity: 0;
  }

  35%,
  78% {
    opacity: 1;
  }

  100% {
    transform: translateY(-18px) scale(1);
    opacity: 0;
  }
}

@keyframes opening-badge-in {
  0% {
    transform: translateY(24px) scale(0.92);
    opacity: 0;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes opening-badge-out {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-8px) scale(0.72);
    opacity: 0;
  }
}

@keyframes opening-title-pop {
  0% {
    transform: translateY(12px) scale(0.94);
    opacity: 0;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes opening-load {
  to {
    transform: translateX(0);
  }
}

@keyframes opening-dot-cloud-spin {
  0% {
    transform: rotate(0deg) scale(0.78);
    opacity: 0;
  }

  16%,
  72% {
    opacity: 1;
  }

  100% {
    transform: rotate(420deg) scale(1.08);
    opacity: 0;
  }
}

@keyframes opening-dot-dissolve {
  0% {
    transform: rotate(var(--angle)) translateX(26px) scale(0.52);
    opacity: 0;
    filter: blur(0);
  }

  18% {
    transform: rotate(calc(var(--angle) + 22deg)) translateX(92px) scale(1);
    opacity: 1;
    filter: blur(0);
  }

  62% {
    transform: rotate(calc(var(--angle) + 130deg)) translateX(calc(var(--distance) * 0.72)) scale(0.86);
    opacity: 0.88;
    filter: blur(1px);
  }

  100% {
    transform: rotate(calc(var(--angle) + 220deg)) translateX(var(--distance)) scale(0);
    opacity: 0;
    filter: blur(8px);
  }
}

@keyframes opening-orbit-dissolve {
  0% {
    transform: scale(1);
    opacity: 0.48;
  }

  100% {
    transform: scale(0.92);
    opacity: 0;
  }
}

@keyframes opening-page-sweep {
  0% {
    clip-path: circle(0 at 50% 50%);
    opacity: 0.72;
  }

  100% {
    clip-path: circle(86% at 50% 50%);
    opacity: 0;
  }
}

@keyframes opening-page-in {
  0% {
    transform: translateY(14px);
    opacity: 0.72;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 249, 233, 0.82);
  box-shadow: 0 12px 30px rgba(153, 92, 112, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(60, 45, 54, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), var(--butter));
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(60, 45, 54, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.button,
.contact-links a {
  border-radius: 8px;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a {
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.button:hover,
.button:focus-visible,
.contact-links a:hover,
.contact-links a:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #fff;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 42px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  padding: 56px 0 64px;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: -28px;
  left: -20px;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 183, 207, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 231, 154, 0.72), rgba(255, 231, 154, 0));
  z-index: -1;
}


.avatar {
  width: 86px;
  height: 86px;
  margin-bottom: 16px;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 30px rgba(153, 92, 112, 0.2);
  object-fit: cover;
}
.eyebrow {
  margin: 0 0 12px;
  color: #d95d86;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 7.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero-name {
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: 2.45rem;
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.28;
}

.intro,
.lead {
  color: var(--muted);
  font-size: 1.18rem;
}

.intro {
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.contact-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 850;
}

.button.primary {
  background: #3c2d36;
  color: #fff9e9;
  box-shadow: 0 10px 26px rgba(60, 45, 54, 0.18);
}

.button.secondary {
  border-color: rgba(60, 45, 54, 0.16);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.mood-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.mood-list li,
.project-tags span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.hero-art {
  position: relative;
  margin: 0;
  border: 1px solid rgba(255, 183, 207, 0.42);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.hero-art::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255, 183, 207, 0.65) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(169, 232, 213, 0.72) 25%, transparent 25%);
  background-size: 18px 18px;
  z-index: -1;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.section {
  padding: 76px 0;
}

.section-heading,
.about-layout,
.collection-grid,
.project-grid,
.personal-tools-grid,
.games-grid,
.short-video-row,
.cinema-layout,
.contact-panel {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-note {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.lead {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(153, 92, 112, 0.08);
}

.quick-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.quick-facts div,
.collection-card,
.project-card,
.personal-tool-card,
.personal-tool-empty,
.game-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 28px rgba(153, 92, 112, 0.08);
}

.quick-facts div {
  padding: 16px 18px;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.quick-facts dd {
  margin: 2px 0 0;
  font-weight: 850;
}

.short-videos-section {
  background: linear-gradient(180deg, rgba(255, 249, 233, 0.38), rgba(231, 251, 244, 0.44));
}

.short-videos-heading {
  align-items: start;
}

.short-video-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.short-video-card,
.short-video-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.short-video-card {
  overflow: hidden;
  scroll-snap-align: start;
}

.short-video-frame {
  position: relative;
  background: #2b2027;
}

.short-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #2b2027;
  object-fit: cover;
}

.short-video-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f8eee8;
  object-fit: contain;
}

.short-video-image-button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #f8eee8;
  color: #fff;
  cursor: zoom-in;
  overflow: hidden;
}

.short-video-image-button > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(43, 32, 39, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.short-video-image-button:hover > span,
.short-video-image-button:focus-visible > span {
  opacity: 1;
  transform: translateY(0);
}

.short-video-image-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.image-lightbox {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  height: min(860px, calc(100vh - 32px));
  max-height: none;
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #21191e;
  color: #fffaf5;
  box-shadow: 0 24px 80px rgba(35, 22, 29, 0.42);
  overflow: hidden;
}

.image-lightbox::backdrop {
  background: rgba(28, 20, 25, 0.76);
  backdrop-filter: blur(8px);
}

.image-lightbox-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.image-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 18px;
  background: rgba(255, 255, 255, 0.06);
}

.image-lightbox-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.image-lightbox-toolbar a,
.image-lightbox-toolbar button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.image-lightbox-stage {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 12px;
  overflow: auto;
}

.image-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .image-lightbox {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .image-lightbox-toolbar {
    align-items: flex-start;
  }
}

.short-video-load {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 36px;
  border: 1px solid rgba(255, 249, 233, 0.72);
  border-radius: 8px;
  padding: 7px 11px;
  background: rgba(60, 45, 54, 0.9);
  color: #fff9e9;
  font-weight: 900;
  cursor: pointer;
}

.short-video-load:disabled {
  cursor: wait;
  opacity: 0.78;
}

.short-video-copy {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.short-video-copy h3,
.short-video-copy p {
  margin: 0;
}

.short-video-copy h3 {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.media-path {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(60, 45, 54, 0.12);
  border-radius: 8px;
  padding: 3px 7px;
  background: rgba(231, 251, 244, 0.64);
  color: #4f7b70;
  font-size: 0.76rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.short-video-copy p {
  color: var(--muted);
  font-size: 0.92rem;
}

.short-video-copy div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.short-video-copy span {
  border: 1px solid rgba(217, 93, 134, 0.22);
  border-radius: 8px;
  padding: 3px 7px;
  background: rgba(255, 226, 235, 0.5);
  color: #d95d86;
  font-size: 0.76rem;
  font-weight: 850;
}

.short-video-empty {
  display: grid;
  grid-auto-flow: row;
  gap: 8px;
  min-height: 180px;
  padding: 22px;
  color: var(--muted);
}

.short-video-empty strong {
  color: var(--ink);
}

.collection-section {
  background: linear-gradient(180deg, rgba(255, 226, 235, 0.55), rgba(231, 251, 244, 0.42));
}

.collection-grid,
.project-grid,
.personal-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.personal-tools-section {
  background: linear-gradient(180deg, rgba(231, 251, 244, 0.48), rgba(255, 249, 233, 0.58));
}

.personal-tools-page .tool-hero {
  padding-bottom: 12px;
}

.tool-panel .personal-tools-grid {
  width: 100%;
}

.personal-tools-heading {
  align-items: start;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.collection-card,
.project-card,
.personal-tool-card,
.personal-tool-empty {
  min-height: 220px;
  padding: 22px;
}

.game-card {
  min-height: 250px;
  padding: 22px;
}

.collection-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.collection-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}

.collection-card:nth-child(2) .collection-icon {
  background: var(--butter);
}

.collection-card:nth-child(3) .collection-icon {
  background: var(--lavender);
}

.collection-card p,
.project-card p,
.contact-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.personal-tool-card,
.personal-tool-empty {
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.personal-tool-icon,
.personal-tool-empty > span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(60, 45, 54, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--butter), var(--mint));
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(153, 92, 112, 0.12);
}

.personal-tool-card h3,
.personal-tool-empty h3 {
  margin-top: 0;
}

.personal-tool-card p,
.personal-tool-empty p {
  margin-bottom: 0;
  color: var(--muted);
}

.personal-tool-empty {
  grid-column: 1 / -1;
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(231, 251, 244, 0.62)),
    radial-gradient(circle at top right, rgba(255, 231, 154, 0.46), transparent 32%);
}

.project-card p {
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.collection-card {
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.collection-card:hover,
.collection-card:focus-visible {
  border-color: rgba(217, 93, 134, 0.46);
  box-shadow: 0 16px 34px rgba(153, 92, 112, 0.16);
  outline: none;
  transform: translateY(-2px);
}

.project-meta {
  display: grid;
  gap: 12px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(60, 45, 54, 0.14);
  border-radius: 8px;
  padding: 7px 11px;
  background: rgba(255, 249, 233, 0.82);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.project-action:hover,
.project-action:focus-visible {
  border-color: rgba(217, 93, 134, 0.42);
  background: #fff;
  outline: none;
}



.games-section {
  padding-top: 46px;
  background: linear-gradient(180deg, rgba(255, 249, 233, 0.34), rgba(255, 226, 235, 0.5));
}

.games-heading {
  align-items: start;
  margin-bottom: 18px;
}

.game-launcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 18px;
}

.game-play-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(60, 45, 54, 0.14);
  border-radius: 8px;
  padding: 10px 15px;
  background: #3c2d36;
  color: #fff9e9;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(60, 45, 54, 0.16);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.game-play-button span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), var(--butter));
  color: #fff;
  font-size: 0.82rem;
}

.game-play-button:hover,
.game-play-button:focus-visible {
  border-color: rgba(217, 93, 134, 0.5);
  background: #4a3943;
  outline: none;
  transform: translateY(-2px);
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.game-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, rgba(169, 232, 213, 0.42) 0 8px, rgba(255, 183, 207, 0.42) 8px 16px);
  opacity: 0.7;
}

.game-orbit {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #3c2d36;
  color: #fff9e9;
  font-weight: 900;
}

.game-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.game-card-head span {
  border: 1px solid rgba(217, 93, 134, 0.22);
  border-radius: 8px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #d95d86;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.game-card p {
  margin-bottom: 20px;
  color: var(--muted);
}

.cinema-section {
  background: linear-gradient(180deg, rgba(231, 251, 244, 0.5), rgba(255, 249, 233, 0.5));
}

.cinema-heading {
  align-items: start;
}

.cinema-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.58fr);
  gap: 16px;
  align-items: start;
}

.cinema-player-panel,
.cinema-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.cinema-player-panel {
  overflow: hidden;
}

.cinema-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #2b2027;
}

.cinema-now {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: 20px;
}

.cinema-now h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.cinema-now p:last-child {
  margin: 0;
  color: var(--muted);
}

.cinema-list {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding: 12px;
}

.cinema-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 90px;
  border: 1px solid rgba(60, 45, 54, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 249, 233, 0.7);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cinema-item:hover,
.cinema-item:focus-visible,
.cinema-item.is-active {
  border-color: rgba(217, 93, 134, 0.46);
  background: #fff;
  outline: none;
  transform: translateY(-1px);
}

.cinema-thumb {
  display: grid;
  width: 74px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background-color: #f7d9e5;
  background-size: cover;
  background-position: center;
  color: #3c2d36;
  font-weight: 950;
}

.cinema-item strong,
.cinema-item b,
.cinema-item small,
.cinema-item em {
  display: block;
}

.cinema-item strong {
  overflow-wrap: anywhere;
}

.cinema-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cinema-item em {
  margin-top: 6px;
  color: #d95d86;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.cinema-empty {
  display: grid;
  gap: 8px;
  padding: 20px;
  color: var(--muted);
}

.cinema-empty strong {
  color: var(--ink);
}
.markdown-body {
  color: var(--muted);
}

.markdown-body h3,
.markdown-body h4,
.markdown-body h5 {
  margin: 20px 0 8px;
  color: var(--ink);
}

.markdown-body p,
.markdown-body ul {
  margin: 0 0 12px;
}

.markdown-body a {
  color: #d95d86;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-body code {
  border-radius: 6px;
  padding: 2px 5px;
  background: rgba(255, 183, 207, 0.24);
  color: var(--ink);
}

.markdown-media {
  display: block;
  width: 100%;
  max-height: 520px;
  margin: 16px 0;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}

.markdown-video {
  margin: 16px 0;
}

.markdown-video figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.detail-hero {
  margin-bottom: 24px;
}

.detail-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.detail-image,
.detail-video {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  background: #fff;
}

.detail-panel .markdown-body {
  padding: 28px;
}

.tool-page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 84px;
}

.tool-hero {
  padding: 34px 0 28px;
}

.tool-hero h1 {
  max-width: 760px;
  font-size: clamp(2.3rem, 7vw, 4.2rem);
}

.tool-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.tool-panel-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.tool-panel-heading h2 {
  font-size: 1.65rem;
}

.tool-panel-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(60, 45, 54, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), var(--butter));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
  box-shadow: inset 0 -2px 0 rgba(60, 45, 54, 0.08), 0 12px 24px rgba(153, 92, 112, 0.14);
}

.tool-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-copy-grid article,
.sms-empty,
.sms-item {
  border: 1px solid rgba(60, 45, 54, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 249, 233, 0.66);
}

.tool-copy-grid h3,
.tool-copy-grid p,
.sms-item h3,
.sms-item p,
.sms-empty strong,
.sms-empty span {
  margin: 0;
}

.tool-copy-grid p,
.tool-form-note,
.sms-empty span,
.sms-item p,
.sms-item time {
  color: var(--muted);
}

.tool-password-form {
  display: grid;
  gap: 10px;
}

.tool-password-form label {
  font-weight: 850;
}

.tool-password-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.tool-password-form input {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(60, 45, 54, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
}

.tool-password-form input:focus {
  border-color: rgba(217, 93, 134, 0.48);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 183, 207, 0.18);
}

.tool-password-form input:disabled,
.tool-password-form button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.tool-form-note {
  margin: 0;
  font-size: 0.94rem;
}

.sms-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sms-toolbar span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.sms-storage-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  gap: 12px;
  align-items: start;
}

.sms-list {
  display: grid;
  gap: 10px;
}

.sms-empty {
  display: grid;
  gap: 6px;
}

.sms-item {
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.sms-file-item {
  display: grid;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(60, 45, 54, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.sms-file-item:hover,
.sms-file-item:focus-visible {
  border-color: rgba(217, 93, 134, 0.42);
  background: #fff;
  outline: none;
  transform: translateY(-1px);
}

.sms-file-item > div,
.sms-item > div {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.sms-file-item h3,
.sms-file-item p {
  margin: 0;
}

.sms-file-item p {
  color: var(--muted);
}

.sms-content-viewer {
  display: grid;
  gap: 12px;
  min-height: 360px;
  border: 1px solid rgba(60, 45, 54, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 249, 233, 0.66);
}

.sms-content-viewer h3 {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.sms-content-viewer pre {
  min-height: 260px;
  max-height: 560px;
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(60, 45, 54, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: 0.92rem/1.7 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sms-item time {
  font-size: 0.86rem;
  font-weight: 750;
  white-space: nowrap;
}

.sms-list-panel[hidden] {
  display: none;
}

/* Backup code vault */
.vault-brand-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.vault-page {
  width: min(1120px, calc(100% - 32px));
}

.vault-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.vault-hero > img {
  width: clamp(120px, 18vw, 180px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(153, 92, 112, 0.18));
}

.vault-login-panel {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.tool-form-note[data-error="true"] {
  color: #b83b63;
  font-weight: 800;
}

.vault-workspace {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.vault-workspace[hidden] {
  display: none;
}

.vault-toolbar,
.vault-layout,
.vault-status {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.vault-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.vault-toolbar p,
.vault-toolbar strong {
  margin: 0;
}

.vault-toolbar-actions,
.vault-code-actions,
.vault-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vault-lock-button {
  border-color: rgba(184, 59, 99, 0.24);
  color: #a42f56;
}

.vault-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  min-height: 480px;
  overflow: hidden;
}

.vault-groups {
  padding: 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 249, 233, 0.82), rgba(231, 251, 244, 0.52));
}

.vault-section-title,
.vault-code-heading,
.vault-code-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vault-section-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vault-section-title small,
.vault-group-button span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(60, 45, 54, 0.08);
  color: var(--muted);
  font-size: 0.75rem;
}

.vault-group-list {
  display: grid;
  gap: 7px;
}

.vault-group-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 11px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms ease, background 160ms ease;
}

.vault-group-button:active,
.vault-action:active,
.vault-filters button:active {
  transform: scale(0.97);
}

.vault-group-button.is-active {
  border-color: rgba(217, 93, 134, 0.22);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(153, 92, 112, 0.1);
}

.vault-codes {
  min-width: 0;
  padding: 22px;
}

.vault-code-heading {
  margin-bottom: 18px;
}

.vault-code-heading h2,
.vault-code-heading p {
  margin-bottom: 0;
}

.vault-code-heading > div:first-child > p:last-child {
  margin-top: 6px;
  color: var(--muted);
}

.vault-filters button,
.vault-action {
  min-height: 36px;
  border: 1px solid rgba(60, 45, 54, 0.13);
  border-radius: 8px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms ease, background 160ms ease;
}

.vault-filters button.is-active,
.vault-action-primary {
  border-color: rgba(217, 93, 134, 0.32);
  background: var(--pink);
  color: #67213b;
}

.vault-code-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vault-code-card,
.vault-empty {
  border: 1px solid rgba(60, 45, 54, 0.12);
  border-radius: 11px;
  padding: 17px;
  background: rgba(255, 249, 233, 0.7);
}

.vault-code-card {
  display: grid;
  gap: 13px;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms ease;
}

.vault-code-card h3,
.vault-code-card p {
  margin: 0;
}

.vault-code-card code {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font: 800 1.05rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.vault-code-card.is-used {
  opacity: 0.68;
  background: rgba(242, 239, 234, 0.72);
}

.vault-code-card.is-used h3,
.vault-code-card.is-used code {
  text-decoration: line-through;
}

.vault-state-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--mint);
  color: #315c4d;
  font-size: 0.72rem;
  font-weight: 900;
}

.vault-code-card.is-used .vault-state-badge {
  background: rgba(60, 45, 54, 0.09);
  color: var(--muted);
}

.vault-code-meta,
.vault-status,
.vault-empty,
.vault-empty-small {
  color: var(--muted);
}

.vault-code-meta {
  min-height: 1.5em;
  font-size: 0.84rem;
}

.vault-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-height: 150px;
  place-content: center;
  text-align: center;
}

.vault-empty strong {
  color: var(--ink);
}

.vault-empty-small {
  padding: 12px 4px;
  font-size: 0.84rem;
  line-height: 1.6;
}

.vault-status {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 750;
}

.personal-tool-icon-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(153, 92, 112, 0.14));
}

@media (hover: hover) and (pointer: fine) {
  .vault-group-button:hover,
  .vault-action:hover,
  .vault-filters button:hover {
    border-color: rgba(217, 93, 134, 0.32);
    background: #fff;
  }
}

@media (max-width: 760px) {
  .vault-hero {
    grid-template-columns: 1fr;
  }

  .vault-hero > img {
    order: -1;
    width: 118px;
  }

  .vault-toolbar,
  .vault-code-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .vault-layout {
    grid-template-columns: 1fr;
  }

  .vault-groups {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .vault-group-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .vault-group-button {
    width: auto;
    min-width: max-content;
  }

  .vault-code-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vault-group-button,
  .vault-action,
  .vault-filters button,
  .vault-code-card {
    transition: opacity 120ms ease, border-color 120ms ease, background 120ms ease;
  }
}

/* File drop box */
.drop-page {
  width: min(1160px, calc(100% - 32px));
}

.drop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.drop-hero > img {
  width: clamp(126px, 18vw, 190px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(153, 92, 112, 0.18));
}

.drop-workspace {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.drop-workspace[hidden] {
  display: none;
}

.drop-topbar,
.drop-upload-panel,
.drop-browser {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.drop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.drop-topbar p,
.drop-topbar strong,
.drop-section-heading h2,
.drop-section-heading p {
  margin: 0;
}

.drop-upload-panel,
.drop-browser {
  padding: 22px;
}

.drop-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.drop-section-heading > span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: right;
}

.drop-zone {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1.5px dashed rgba(217, 93, 134, 0.36);
  border-radius: 14px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255, 244, 207, 0.66), rgba(231, 251, 244, 0.62));
  text-align: center;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms ease, background 180ms ease;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.drop-zone:focus-within,
.drop-zone.is-dragging {
  border-color: rgba(217, 93, 134, 0.78);
  background: linear-gradient(145deg, rgba(255, 231, 238, 0.86), rgba(220, 250, 239, 0.8));
  outline: none;
}

.drop-zone.is-dragging {
  transform: scale(0.99);
}

.drop-zone-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: var(--pink);
  color: #7e2949;
  font-size: 1.8rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(153, 92, 112, 0.14);
}

.drop-zone small {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.55;
}

.drop-upload-queue {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.drop-upload-queue[hidden] {
  display: none;
}

.drop-upload-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.8fr) minmax(120px, auto) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(60, 45, 54, 0.1);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.drop-upload-item > div:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.drop-upload-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-upload-item span,
.drop-upload-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.drop-upload-item button,
.drop-file-actions button {
  min-height: 34px;
  border: 1px solid rgba(60, 45, 54, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms ease, background 160ms ease;
}

.drop-upload-item button:active,
.drop-file-actions button:active,
.drop-icon-button:active {
  transform: scale(0.97);
}

.drop-upload-item button[hidden] {
  display: none;
}

.drop-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(60, 45, 54, 0.08);
}

.drop-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9ebc, #ffd166, #79d8b0);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms linear;
}

.drop-upload-item.is-complete {
  border-color: rgba(61, 151, 114, 0.26);
  background: rgba(231, 251, 244, 0.76);
}

.drop-upload-item.is-error {
  border-color: rgba(184, 59, 99, 0.28);
  background: rgba(255, 231, 238, 0.7);
}

.drop-browser-heading {
  align-items: center;
}

.drop-search input {
  width: min(280px, 42vw);
  min-height: 42px;
  border: 1px solid rgba(60, 45, 54, 0.13);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(255, 249, 233, 0.72);
  color: var(--ink);
  font: inherit;
}

.drop-search input:focus {
  border-color: rgba(217, 93, 134, 0.44);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 183, 207, 0.16);
}

.drop-file-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.drop-file-card,
.drop-empty {
  border: 1px solid rgba(60, 45, 54, 0.11);
  border-radius: 12px;
  background: rgba(255, 249, 233, 0.68);
}

.drop-file-card {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 16px;
  transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms ease, background 180ms ease;
}

.drop-file-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drop-file-kind {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--pink), #fff4cf);
  color: #7e2949;
  font-size: 0.78rem;
  font-weight: 950;
}

.drop-file-type {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--mint);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.drop-file-copy {
  min-width: 0;
}

.drop-file-copy h3,
.drop-file-copy p {
  margin: 0;
}

.drop-file-copy h3 {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-file-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.drop-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drop-file-actions .is-danger {
  border-color: rgba(184, 59, 99, 0.2);
  color: #aa315a;
}

.drop-file-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.drop-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: 6px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.drop-empty strong {
  color: var(--ink);
}

.drop-preview-dialog,
.drop-pattern-dialog {
  width: min(900px, calc(100% - 28px));
  max-height: min(820px, calc(100vh - 28px));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fffdf7;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(60, 45, 54, 0.24);
}

.drop-pattern-dialog {
  width: min(460px, calc(100% - 28px));
}

.drop-preview-dialog::backdrop,
.drop-pattern-dialog::backdrop {
  background: rgba(43, 31, 38, 0.46);
  backdrop-filter: blur(5px);
}

.drop-dialog-head,
.drop-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drop-dialog-head h2,
.drop-dialog-head p {
  margin: 0;
}

.drop-dialog-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.drop-icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(60, 45, 54, 0.12);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), background 160ms ease;
}

.drop-preview-body {
  display: grid;
  min-height: 360px;
  max-height: calc(100vh - 220px);
  place-items: center;
  overflow: auto;
  margin-top: 16px;
  border: 1px solid rgba(60, 45, 54, 0.1);
  border-radius: 12px;
  background: rgba(255, 249, 233, 0.55);
}

.drop-preview-body img,
.drop-preview-body video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 240px);
  object-fit: contain;
}

.drop-preview-body iframe {
  width: 100%;
  min-height: 620px;
  border: 0;
}

.drop-preview-body pre {
  width: 100%;
  min-height: 360px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: var(--ink);
  font: 0.88rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.drop-preview-loading,
.drop-no-preview,
.drop-audio-preview {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.drop-no-preview > span,
.drop-audio-preview > span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 20px;
  background: var(--pink);
  color: #7e2949;
  font-weight: 950;
}

.drop-no-preview p {
  margin: 0;
}

.drop-audio-preview audio {
  width: min(520px, 74vw);
}

.pattern-lock {
  position: relative;
  width: min(300px, 76vw);
  aspect-ratio: 1;
  margin: 18px auto;
  border: 1px solid rgba(60, 45, 54, 0.1);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 244, 207, 0.72), rgba(231, 251, 244, 0.72));
  touch-action: none;
  user-select: none;
}

.pattern-lock svg,
.pattern-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pattern-lock polyline {
  fill: none;
  stroke: #dd6e91;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 9;
  opacity: 0.66;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
}

.pattern-grid button {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 7px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  padding: 0;
  background: #c8beb7;
  box-shadow: 0 2px 0 rgba(60, 45, 54, 0.12), 0 6px 16px rgba(60, 45, 54, 0.1);
  cursor: crosshair;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), background 140ms ease, box-shadow 140ms ease;
}

.pattern-grid button.is-selected {
  background: #dd6e91;
  box-shadow: 0 0 0 5px rgba(221, 110, 145, 0.16), 0 6px 16px rgba(153, 92, 112, 0.18);
  transform: scale(1.12);
}

.pattern-grid button:focus-visible {
  outline: 3px solid rgba(69, 143, 117, 0.46);
  outline-offset: 4px;
}

.drop-pattern-message {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .drop-zone:hover,
  .drop-file-card:hover {
    border-color: rgba(217, 93, 134, 0.32);
    background-color: rgba(255, 255, 255, 0.92);
    transform: translateY(-2px);
  }

  .drop-upload-item button:hover,
  .drop-file-actions button:hover,
  .drop-icon-button:hover {
    border-color: rgba(217, 93, 134, 0.32);
    background: #fff;
  }
}

@media (max-width: 900px) {
  .drop-file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drop-upload-item {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.8fr);
  }
}

@media (max-width: 640px) {
  .drop-hero {
    grid-template-columns: 1fr;
  }

  .drop-hero > img {
    order: -1;
    width: 122px;
  }

  .drop-topbar,
  .drop-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .drop-section-heading > span {
    text-align: left;
  }

  .drop-search input {
    width: 100%;
  }

  .drop-file-grid,
  .drop-upload-item {
    grid-template-columns: 1fr;
  }

  .drop-preview-dialog,
  .drop-pattern-dialog {
    padding: 16px;
  }

  .drop-preview-body iframe {
    min-height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drop-zone,
  .drop-file-card,
  .drop-upload-item button,
  .drop-file-actions button,
  .drop-icon-button,
  .pattern-grid button {
    transition: border-color 120ms ease, background 120ms ease, opacity 120ms ease;
  }
}
.contact-section {
  padding-bottom: 80px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(60, 45, 54, 0.12);
  border-radius: 8px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 226, 235, 0.78), rgba(255, 249, 233, 0.86));
  box-shadow: var(--shadow);
}

.contact-panel p {
  max-width: 620px;
}

.contact-links a {
  border-color: rgba(60, 45, 54, 0.14);
  background: rgba(255, 255, 255, 0.74);
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: rgba(217, 93, 134, 0.42);
  background: #fff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer a {
  font-weight: 850;
}

@media (max-width: 900px) {
  .site-header {
    margin-top: 10px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .about-layout,
  .cinema-layout,
  .contact-panel,
  .tool-copy-grid,
  .tool-password-form > div,
  .sms-storage-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-art {
    order: -1;
  }

  h1 {
    font-size: clamp(2.25rem, 8.6vw, 3.3rem);
  }

  h2 {
    font-size: 2rem;
  }

  .collection-grid,
  .project-grid,
  .personal-tools-grid,
  .games-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero,
  .section-heading,
  .about-layout,
  .collection-grid,
  .project-grid,
  .personal-tools-grid,
  .game-launcher,
  .games-grid,
  .short-video-row,
  .cinema-layout,
  .contact-panel,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .cinema-now {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(1.95rem, 8.4vw, 2.5rem);
  }

  .intro,
  .lead {
    font-size: 1.04rem;
  }

  .section {
    padding: 56px 0;
  }

  .button,
  .game-play-button,
  .contact-links a,
  .tool-password-form button {
    width: 100%;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening-screen,
  .opening-screen::before,
  .opening-screen::after,
  .opening-petal,
  .opening-spark,
  .opening-badge,
  .opening-title,
  .opening-dot-cloud,
  .opening-dot-cloud span,
  .opening-loader::after {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }
}
