:root {
  color-scheme: dark;
  --bg: #06080c;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f7fb;
  --muted: rgba(243, 247, 251, 0.74);
  --soft: rgba(243, 247, 251, 0.3);
  --emerald: #39d98a;
  --emerald-deep: #0f7a49;
  --blue: #5fa8ff;
  --amber: #ffbf47;
  --red: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 2rem;
  --radius-2xl: 2.75rem;
  --radius-3xl: 3.25rem;
  --cta-pill-width: min(100%, 35rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 0.75rem;
  z-index: 60;
  padding: 0.65rem 0.95rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(95, 168, 255, 0.4);
  background: rgba(9, 16, 25, 0.96);
  color: #eaf4ff;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #7ec4ff;
  outline-offset: 3px;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
}

.background {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: none;
  opacity: 0.24;
  will-change: transform, opacity;
  animation: none;
}

.glow-a {
  top: -12%;
  left: -15%;
  width: 60vw;
  height: 60vw;
  background: rgba(57, 217, 138, 0.16);
}

.glow-b {
  right: -10%;
  bottom: -10%;
  width: 52vw;
  height: 52vw;
  background: rgba(95, 168, 255, 0.16);
  animation-delay: 1.6s;
}

.mesh {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.22) 1px, transparent 0);
  background-size: 34px 34px;
}

.shape {
  position: absolute;
  display: none;
  opacity: 0.06;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: none;
}

.floating-icon {
  position: absolute;
  display: none;
  opacity: 0.08;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: none;
  animation: none;
  pointer-events: none;
}

body.enhanced-effects .glow {
  filter: blur(120px);
  opacity: 0.55;
  animation: glowBreathe 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

body.enhanced-effects .shape {
  display: block;
  animation: float 8s ease-in-out infinite;
}

body.enhanced-effects .floating-icon {
  display: block;
  animation: drift 6s ease-in-out infinite;
}

.icon-gamepad {
  top: 15%;
  left: calc(50% - min(42vw, 37rem));
  width: 7.5rem;
  height: 4.75rem;
  transform: rotate(12deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M34 25h52c12 0 22 10 25 22l3 12c2 10-6 19-16 19-6 0-12-3-15-9l-5-10H42l-5 10c-3 6-9 9-15 9-10 0-18-9-16-19l3-12c3-12 13-22 25-22z'/%3E%3Cpath d='M36 41v16'/%3E%3Cpath d='M28 49h16'/%3E%3Ccircle cx='83' cy='45' r='4'/%3E%3Ccircle cx='94' cy='54' r='4'/%3E%3C/svg%3E");
}

.icon-pencil {
  top: 56%;
  left: calc(50% - min(39vw, 34rem));
  width: 5rem;
  height: 5rem;
  transform: rotate(-12deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M48 14l18 18'/%3E%3Cpath d='M18 62l9-2 34-34a6 6 0 0 0 0-8l-3-3a6 6 0 0 0-8 0L16 49l-2 13z'/%3E%3C/svg%3E");
}

.icon-dice {
  top: 10%;
  left: calc(50% + min(33vw, 29rem));
  width: 6.25rem;
  height: 6.25rem;
  transform: rotate(45deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='18' y='18' width='64' height='64' rx='12'/%3E%3Ccircle cx='38' cy='38' r='4' fill='rgba(255,255,255,0.9)' stroke='none'/%3E%3Ccircle cx='62' cy='38' r='4' fill='rgba(255,255,255,0.9)' stroke='none'/%3E%3Ccircle cx='38' cy='62' r='4' fill='rgba(255,255,255,0.9)' stroke='none'/%3E%3Ccircle cx='62' cy='62' r='4' fill='rgba(255,255,255,0.9)' stroke='none'/%3E%3C/svg%3E");
}

.icon-palette {
  bottom: 20%;
  left: calc(50% + min(36vw, 31rem));
  width: 5.625rem;
  height: 5.625rem;
  transform: rotate(-6deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M45 12c-18.8 0-34 15.2-34 34s15.2 34 34 34h4.5c5.7 0 10.5-4.8 10.5-10.5S55.2 59 49.5 59h-3c-5.2 0-9.5-4.3-9.5-9.5S41.3 40 46.5 40H54c12.7 0 23-10.3 23-23S66.7 12 54 12h-9z'/%3E%3Ccircle cx='28' cy='42' r='3'/%3E%3Ccircle cx='37' cy='30' r='3'/%3E%3Ccircle cx='52' cy='28' r='3'/%3E%3Ccircle cx='62' cy='39' r='3'/%3E%3C/svg%3E");
}

.icon-shapes {
  top: 40%;
  left: calc(50% + min(38vw, 33rem));
  width: 4.375rem;
  height: 4.375rem;
  transform: rotate(12deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 70' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='22' r='9'/%3E%3Crect x='36' y='12' width='18' height='18' rx='3'/%3E%3Cpath d='M25 47l11-18 11 18H25z'/%3E%3C/svg%3E");
}

.icon-trophy {
  bottom: 10%;
  left: calc(50% - min(29vw, 25rem));
  width: 3.75rem;
  height: 3.75rem;
  transform: rotate(12deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12h20v10a10 10 0 0 1-20 0V12z'/%3E%3Cpath d='M15 15H9a5 5 0 0 0 5 10h6'/%3E%3Cpath d='M45 15h6a5 5 0 0 1-5 10h-6'/%3E%3Cpath d='M30 32v8'/%3E%3Cpath d='M23 46h14'/%3E%3Cpath d='M25 40h10'/%3E%3C/svg%3E");
}

.delay-a {
  animation-delay: 0.1s;
}

.delay-b {
  animation-delay: 1s;
}

.delay-c {
  animation-delay: 2.2s;
}

.delay-d {
  animation-delay: 0.7s;
}

.delay-e {
  animation-delay: 1.7s;
}

.delay-f {
  animation-delay: 2.8s;
}

.shape-controller {
  top: 14%;
  left: calc(50% - min(43vw, 38rem));
  width: 7rem;
  height: 4.4rem;
  border-radius: 2.5rem;
}

.shape-pencil {
  top: 62%;
  left: calc(50% - min(38vw, 33rem));
  width: 1rem;
  height: 5.5rem;
  border-radius: 999px;
  transform: rotate(18deg);
}

.shape-dice {
  top: 12%;
  left: calc(50% + min(33vw, 29rem));
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1.5rem;
  transform: rotate(16deg);
}

.shape-palette {
  left: calc(50% + min(36vw, 31rem));
  bottom: 20%;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
}

.app {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 5.35rem 1rem calc(6rem + env(safe-area-inset-bottom));
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1120px);
  z-index: 40;
  padding: calc(0.95rem + env(safe-area-inset-top)) 1rem 1.1rem;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 15, 0.88) 0%,
    rgba(6, 10, 15, 0.68) 72%,
    rgba(6, 10, 15, 0) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.enhanced-effects .topbar {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-interactive {
  cursor: default;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: var(--emerald);
  color: #03130a;
  font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 0 24px rgba(57, 217, 138, 0.24);
}

.topbar .brand-mark {
  border-bottom: 2px solid rgba(6, 31, 18, 0.28);
  transform: rotate(3deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.topbar .brand-interactive:hover .brand-mark {
  transform: rotate(0deg);
  box-shadow: 0 0 28px rgba(57, 217, 138, 0.28);
}

.brand-title,
.brand h4,
.hero-empty h2,
.quick-card h3,
.modal-head h3 {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.topbar .brand-title,
.footer-brand .brand-title {
  font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.18rem, 2vw, 1.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 900;
  background: linear-gradient(90deg, #ffffff 0%, #f1f4f6 40%, #c3cbd1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar .brand-title span,
.footer-brand .brand-title span {
  background: linear-gradient(90deg, var(--emerald) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(57, 217, 138, 0.24);
}

.hero-title {
  margin: 0;
  max-width: 14ch;
  font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(2.35rem, 6.4vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 900;
  text-wrap: balance;
}

.hero-title span {
  display: block;
}

.hero-title-accent {
  font-style: normal;
  background: linear-gradient(90deg, #34d399 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow,
.panel-label,
.field-label,
.section-head p,
.footer-heading {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  font-weight: 800;
}

.eyebrow,
.field-label,
.section-head p {
  color: var(--soft);
}

.topbar .eyebrow {
  margin-bottom: 0.18rem;
}

.topbar-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.topbar-slop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0.35rem 0.65rem 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.32);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.14) 0%, rgba(239, 68, 68, 0.08) 100%);
  color: #ffe2e2;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 124, 124, 0.2);
  transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.topbar-slop-alert {
  width: 1.08rem;
  height: 1.08rem;
  flex: 0 0 1.08rem;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5258' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.72 3h16.92a2 2 0 0 0 1.72-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cpath d='M12 9v4.2'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

.topbar-slop-copy {
  display: grid;
  line-height: 1;
  gap: 0.1rem;
  white-space: nowrap;
}

.topbar-slop-kicker {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 193, 193, 0.78);
}

.topbar-slop-name {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(
    90deg,
    #ff5a5f 0%,
    #ea8f95 36%,
    #b8b7a0 68%,
    #eef5f3 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar-slop-name-short {
  display: none;
}

.icon-button,
.secondary-button,
.mini-chip,
.chip,
.text-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
}

.icon-button.small {
  width: 2.2rem;
  height: 2.2rem;
}

.icon,
.mask-icon,
.close-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  position: relative;
}

.history-icon::before,
.history-icon::after {
  content: "";
  position: absolute;
}

.history-icon {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v4h4'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.history-icon::before,
.history-icon::after {
  content: none;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0.08rem;
  width: 0.84rem;
  height: 0.12rem;
  border-radius: 999px;
  background: currentColor;
}

.close-icon::before {
  transform: rotate(45deg);
}

.close-icon::after {
  transform: rotate(-45deg);
}

.mask-icon {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.mask-icon-closed {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M4 20L20 4'/%3E%3C/svg%3E");
}

.mask-icon-open {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23082117' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}

.content {
  display: grid;
  gap: 1.25rem;
}

.quick-section,
.feature-section,
.popular-section,
.faq-section,
.playbook-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.hero-card,
.panel,
.quick-card,
.modal-card {
  background: rgba(22, 24, 24, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.enhanced-effects .hero-card,
body.enhanced-effects .panel,
body.enhanced-effects .quick-card,
body.enhanced-effects .modal-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-card {
  position: relative;
  margin-top: 0.45rem;
  padding: 1.5rem;
  border-radius: var(--radius-3xl);
  min-height: 29rem;
  overflow: hidden;
  background: rgba(10, 14, 22, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    var(--shadow);
}

body.enhanced-effects .hero-card {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hero-empty,
.hero-results {
  height: 24rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-results {
  align-items: center;
  position: relative;
  padding-bottom: 1rem;
}

.hero-empty {
  align-items: center;
  text-align: center;
  padding: 2rem 0.5rem 1rem;
}

.sparkle-badge {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.5rem;
  border-radius: 2rem;
  background: rgba(57, 217, 138, 0.12);
  color: var(--emerald);
  font-size: 2rem;
  border: 1px solid rgba(57, 217, 138, 0.12);
  box-shadow: 0 0 0 0 rgba(57, 217, 138, 0.22);
  animation: pulse 2s infinite;
}

.hero-empty p,
.field-caption,
.footer-copy,
.quick-card p,
.helper-copy,
.empty-note {
  color: var(--muted);
}

.hero-empty p {
  width: min(100%, 42rem);
  margin: 1.25rem 0 auto;
  line-height: 1.6;
  font-size: clamp(1.05rem, 1.8vw, 1.12rem);
  color: rgba(243, 247, 251, 0.78);
}

.hero-empty p strong {
  color: rgba(243, 247, 251, 0.88);
  font-weight: 800;
}

.primary-button,
.secondary-button,
.timer-button,
.text-button {
  border-radius: 1.4rem;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.primary-button,
.timer-button {
  border: 0;
  background: linear-gradient(135deg, #f9fcff 0%, #39d98a 100%);
  color: #08110c;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.primary-button {
  min-height: 3.75rem;
  padding: 1rem 1.4rem;
}

.hero-cta {
  padding-inline: 2rem;
}

.generate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: auto;
  max-width: 100%;
  min-width: var(--cta-pill-width);
  min-height: 4.25rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #57e0ad 0%, #1fc88d 100%);
  color: #082217;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  box-shadow: 0 18px 34px rgba(31, 200, 141, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.generate-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 24px 42px rgba(31, 200, 141, 0.22);
}

.hero-empty .generate-pill {
  align-self: center;
  margin-top: 1.25rem;
}

.hero-actions .generate-pill,
.bottom-bar .generate-pill {
  width: 100%;
  min-width: 0;
}

.hero-actions .generate-pill {
  width: min(100%, 36.5rem);
  min-width: min(100%, 36.5rem);
  max-width: 100%;
  justify-self: center;
}

.generate-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  transform: rotate(0deg);
}

.generate-icon::before,
.generate-icon::after {
  content: "";
  position: absolute;
}

.generate-icon::before {
  inset: 0.08rem;
  background: currentColor;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}

.generate-icon::after {
  width: 0.2rem;
  height: 0.2rem;
  right: -0.02rem;
  top: -0.02rem;
  background: currentColor;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  opacity: 0.85;
}

.primary-button:active,
.secondary-button:active,
.timer-button:active,
.chip:active,
.mini-chip:active,
.icon-button:active {
  transform: scale(0.97);
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 15rem));
  justify-content: center;
  gap: 1.9rem;
  margin: 1.25rem 0 0;
  width: 100%;
}

.word-grid[data-count="1"] {
  grid-template-columns: repeat(1, minmax(0, 15rem));
}

.word-grid[data-count="1"] .word-card {
  width: 15rem;
}

.word-grid[data-count="4"] {
  grid-template-columns: repeat(4, minmax(0, 15rem));
}

.word-card {
  width: 15rem;
  height: 16rem;
  padding: 2rem 1.35rem 1.5rem;
  border-radius: 2.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transform: scale(1);
  transition: transform 500ms ease, border-color 500ms ease, box-shadow 500ms ease;
  will-change: transform;
}

.word-card.is-masked {
  transform: scale(0.95);
}

.word-tag {
  display: inline-flex;
  align-self: center;
  width: fit-content;
  padding: 0.38rem 0.88rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3f7fb;
  background: transparent;
  border: 1.25px solid currentColor;
}

.tag-people {
  color: #5be7a4;
}

.tag-object {
  color: #ffca63;
}

.tag-action {
  color: #7ec4ff;
}

.tag-abstract {
  color: #c79bff;
}

.word-text-wrap {
  height: 7.5rem;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  width: 100%;
  flex: 1;
}

.word-text {
  font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: rgba(244, 247, 250, 0.98);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.02);
  transition: filter 700ms ease, opacity 700ms ease, transform 700ms ease;
  max-width: 100%;
  padding-inline: 0.12rem;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
  text-wrap: balance;
}

.word-text.word-text-md {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  line-height: 0.95;
}

.word-text.word-text-sm {
  font-size: clamp(1.55rem, 2.55vw, 1.95rem);
  line-height: 0.98;
}

.word-text.word-text-xs {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 0.98;
}

.word-text.is-masked {
  filter: blur(32px);
  opacity: 0;
  transform: scale(1.01);
}

.word-mask-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 300ms ease, transform 300ms ease;
}

.word-mask-overlay.is-visible {
  opacity: 1;
  transform: scale(1);
}

.word-mask-icon {
  width: 2rem;
  height: 2rem;
  display: block;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M4 20L20 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.word-mask-overlay.is-visible .word-mask-icon {
  animation: pulse 1.6s infinite;
}

.word-card-actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: auto;
}

.hint-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.hint-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hint-trigger-icon {
  width: 1rem;
  height: 1rem;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.8c.6.4 1 1 1 1.7V18h6v-1.5c0-.7.4-1.3 1-1.7A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.icon-pill:hover,
.icon-button:hover,
.chip:hover,
.mini-chip:hover,
.secondary-button:hover,
.text-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.topbar-slop-link:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.12) 100%);
}

.definition {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 1.3rem;
  background: rgba(57, 217, 138, 0.1);
  border: 1px solid rgba(57, 217, 138, 0.18);
}

.hint-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.definition .hint-eyebrow {
  color: rgba(214, 255, 229, 0.72);
}

.definition-copy {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #d4ffe6;
  text-align: center;
}

.ai-help-box {
  padding: 0.15rem 0 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  display: grid;
  gap: 0.9rem;
}

.ai-help-copy {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.ai-help-button {
  justify-self: center;
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(79, 226, 167, 0.14);
  color: #74efbb;
  font-weight: 800;
}

.ai-help-button-canvas {
  align-self: center;
}

.ai-sketch-card {
  display: grid;
  place-items: center;
  min-height: 11.75rem;
  padding: 0.9rem;
  border-radius: 1.25rem;
  background: rgba(8, 10, 11, 0.28);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.ai-sketch-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.ai-sketch-card.is-ready {
  background: rgba(255, 255, 255, 0.05);
  border-style: solid;
}

.ai-sketch-card.is-loading {
  border-style: solid;
  border-color: rgba(79, 226, 167, 0.22);
}

.ai-sketch-card.is-loading .ai-sketch-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(116, 239, 187, 0.9);
  animation: sketchTextPulse 1.3s ease-in-out infinite;
}

.ai-sketch-card.is-loading .ai-sketch-status::before {
  content: "";
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  border: 2px solid rgba(116, 239, 187, 0.28);
  border-top-color: rgba(116, 239, 187, 0.95);
  animation: sketchSpin 0.9s linear infinite;
}

.ai-sketch-image {
  display: block;
  width: 100%;
  max-width: 13rem;
  margin: 0 auto;
  border-radius: 1.1rem;
}

.hint-modal-card {
  width: min(100%, 44rem);
  margin: 0 auto;
}

.hint-modal-body {
  gap: 1rem;
}

.hint-modal-top {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.hint-modal-word {
  margin: 0;
  font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: rgba(244, 247, 250, 0.98);
  text-align: center;
}

.modal[open] {
  display: grid;
  place-items: center;
}

#hintDialog::backdrop {
  animation: hintBackdropIn 220ms ease-out;
}

#hintDialog[open] .hint-modal-card {
  transform-origin: center;
  animation: hintModalIn 260ms cubic-bezier(0.2, 0.8, 0.22, 1);
}

.hero-actions {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}

.hero-actions::before {
  content: "";
  width: 5.4rem;
  min-width: 5.4rem;
  min-height: 4.25rem;
  visibility: hidden;
}

.secondary-button {
  min-height: 3.75rem;
  padding: 0.95rem 1.15rem;
}

.secondary-button.icon-only {
  width: 5.4rem;
  min-width: 5.4rem;
  min-height: 4.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2.125rem;
}

.secondary-button.icon-only.is-active {
  background: linear-gradient(90deg, #57e0ad 0%, #1fc88d 100%);
  color: #082217;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(31, 200, 141, 0.12);
}

.helper-copy {
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  transform: translateX(-50%);
  width: min(100%, 30rem);
  margin: 0;
  min-height: 0;
  font-size: 0.92rem;
  text-align: center;
  pointer-events: none;
}

.tool-grid {
  display: grid;
  gap: 1rem;
}

.panel {
  padding: 1.8rem;
  border-radius: var(--radius-2xl);
  background: rgba(10, 14, 22, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.panel-head .panel-label {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: -0.04em;
  text-transform: none;
  color: #f0f1f2;
  font-weight: 800;
}

.field-block + .field-block {
  margin-top: 2rem;
}

.field-block {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.field-block .field-label {
  display: block;
  margin-bottom: 0.8rem;
  letter-spacing: 0.14em;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.chip {
  min-height: 3.15rem;
  min-width: 6.25rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  text-transform: none;
  font-size: 0.82rem;
  letter-spacing: 0;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.76);
  border-color: transparent;
}

.chip.is-active {
  background: linear-gradient(135deg, #19be83 0%, #39d98a 100%);
  color: #052016;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(57, 217, 138, 0.18);
}

.mode-toggle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  width: min(100%, 19rem);
  height: 3.75rem;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(7, 7, 8, 0.88);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.mode-thumb {
  position: absolute;
  inset: 0.3rem auto 0.3rem 0.3rem;
  width: calc(50% - 0.3rem);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 220ms ease;
}

.mode-toggle.is-multi .mode-thumb {
  transform: translateX(100%);
}

.mode-text {
  position: relative;
  z-index: 1;
  text-transform: none;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.62);
}

.mode-toggle .mode-left {
  color: rgba(255, 255, 255, 0.62);
}

.mode-toggle.is-multi .mode-left {
  color: rgba(255, 255, 255, 0.62);
}

.mode-toggle.is-multi .mode-right {
  color: #4fe2a7;
}

.mode-toggle:not(.is-multi) .mode-left {
  color: #f0f1f2;
}

.timer-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.mini-chip {
  min-height: 2.25rem;
  min-width: 3.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  background: rgba(5, 5, 5, 0.82);
  color: rgba(255, 255, 255, 0.75);
  border-color: transparent;
}

.mini-chip-accent {
  color: #4fe2a7;
  border-color: rgba(79, 226, 167, 0.24);
  background: rgba(10, 22, 18, 0.82);
}

.timer-panel {
  padding: 1.8rem 1.5rem;
  background:
    radial-gradient(circle at bottom, rgba(87, 214, 157, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(47, 46, 46, 0.78), rgba(35, 36, 35, 0.72));
}

.timer-head {
  margin-bottom: 1.4rem;
  text-align: center;
}

.timer-kicker {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
}

.timer-body {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
}

.timer-ring {
  --timer-progress: 1;
  width: min(100%, 13rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(21, 22, 21, 0.98) 62%, transparent 63%),
    conic-gradient(
      #4fe2a7 calc(var(--timer-progress) * 1turn),
      rgba(255, 255, 255, 0.09) 0
    );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 24px rgba(79, 226, 167, 0.12);
}

.timer-ring-inner {
  width: calc(100% - 0.95rem);
  height: calc(100% - 0.95rem);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(38, 39, 39, 0.96), rgba(31, 31, 31, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.timer-value {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(3.8rem, 13vw, 4.7rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #f5f5f5;
}

.timer-value span {
  margin-left: 0.14rem;
  font-size: 0.28em;
  color: currentColor;
}

.timer-value.is-danger {
  color: var(--red);
}

.timer-button {
  width: min(100%, 13rem);
  min-height: 3.85rem;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4fe2a7 0%, #5ad39b 100%);
  color: #062117;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.timer-button.is-stop {
  background: rgba(255, 107, 107, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 107, 107, 0.25);
}

.quick-section {
  padding: 5.4rem 0 1.6rem;
}

.quick-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  text-align: center;
}

.quick-kicker {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(91, 231, 164, 0.82);
}

.quick-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.quick-title {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.quick-copy {
  margin: 2rem auto 1rem;
  max-width: 52rem;
  color: rgba(243, 247, 251, 0.48);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

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

.quick-card {
  position: relative;
  min-height: 14.8rem;
  padding: 1.55rem;
  border-radius: 2.2rem;
  background: rgba(10, 14, 22, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: none;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  cursor: pointer;
}

.quick-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.quick-card-slop {
  border-color: rgba(239, 68, 68, 0.42);
  background: linear-gradient(
    145deg,
    rgba(239, 68, 68, 0.16),
    rgba(10, 14, 22, 0.3) 52%,
    rgba(255, 122, 89, 0.12)
  );
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2), 0 18px 36px rgba(0, 0, 0, 0.28);
}

.quick-card-slop h3 {
  text-transform: uppercase;
  letter-spacing: -0.02em;
  background: linear-gradient(
    90deg,
    #ff585d 0%,
    #f08b8e 34%,
    #d7b5a2 66%,
    #f1f6f5 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timer-panel {
  background: rgba(10, 14, 22, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.quick-soon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  padding: 0.18rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(243, 247, 251, 0.44);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 4.3rem;
  height: 4.3rem;
  border-radius: 1rem;
  margin-bottom: 1.75rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1.75rem 1.75rem;
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.quick-icon-kids {
  background-color: rgba(145, 151, 255, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c6ff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M9 10h.01'/%3E%3Cpath d='M15 10h.01'/%3E%3Cpath d='M9.5 14.5c.8 1 1.7 1.5 2.5 1.5s1.7-.5 2.5-1.5'/%3E%3C/svg%3E");
}

.quick-icon-team {
  background-color: rgba(91, 231, 164, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235be7a4' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9.5' cy='7' r='3'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a3 3 0 0 1 0 5.74'/%3E%3C/svg%3E");
}

.quick-icon-party {
  background-color: rgba(199, 155, 255, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d2b7ff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='m12 4 6.5 13h-13z'/%3E%3Ccircle cx='12' cy='4' r='1.5'/%3E%3Cpath d='M7 8h.01'/%3E%3Cpath d='M15 11h.01'/%3E%3Cpath d='M9 14h.01'/%3E%3Cpath d='M4 6c1.1 0 1.6-.5 2-1.2.4.7.9 1.2 2 1.2'/%3E%3Cpath d='M16 7c1.1 0 1.6-.5 2-1.2.4.7.9 1.2 2 1.2'/%3E%3C/svg%3E");
}

.quick-icon-remote {
  background-color: rgba(75, 142, 255, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a8c7ff' stroke='%23a8c7ff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 10 20 7v10l-5-3z'/%3E%3Crect x='3' y='6' width='12' height='12' rx='2' ry='2' fill='none'/%3E%3C/svg%3E");
}

.quick-icon-slop {
  background-color: rgba(255, 88, 93, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff585d' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.72 3h16.92a2 2 0 0 0 1.72-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cpath d='M12 9v4.2'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  background-size: 1.95rem 1.95rem;
}

.quick-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.quick-card p {
  margin: 0;
  max-width: 13rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(243, 247, 251, 0.4);
}

.quick-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.24);
}

.quick-card-slop:hover {
  border-color: rgba(239, 68, 68, 0.56);
  background: linear-gradient(
    145deg,
    rgba(239, 68, 68, 0.24),
    rgba(10, 14, 22, 0.32) 52%,
    rgba(255, 122, 89, 0.18)
  );
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.28), 0 0 30px rgba(239, 68, 68, 0.24);
}

.quick-card:hover .quick-soon {
  color: rgba(243, 247, 251, 0.62);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.quick-live {
  color: rgba(255, 139, 139, 0.96);
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.16);
}

.quick-card:hover .quick-icon {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.feature-section {
  display: grid;
  gap: 3.35rem;
  padding: 4rem 0 0.6rem;
}

.feature-head {
  display: grid;
  justify-items: center;
  gap: 1.9rem;
  text-align: center;
}

.feature-title {
  margin: 0;
  font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 2.25rem;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 900;
  background: linear-gradient(90deg, #34d399 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-title span {
  display: block;
}

@media (min-width: 760px) {
  .feature-title {
    font-size: 3rem;
  }
}

.feature-copy {
  margin: 0;
  max-width: 52rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

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

.feature-card {
  min-height: 15.8rem;
  padding: 1.35rem 1.2rem;
  border-radius: 2.2rem;
  background: rgba(10, 14, 22, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.1rem;
  border-radius: 1rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1.55rem 1.55rem;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.feature-icon-library {
  background-color: rgba(91, 231, 164, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235be7a4' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6c-1.4-1-3.2-1.5-5.2-1.5H4.5a1.5 1.5 0 0 0-1.5 1.5V18a1.5 1.5 0 0 0 1.5 1.5h2.3c2 0 3.8.5 5.2 1.5'/%3E%3Cpath d='M12 6c1.4-1 3.2-1.5 5.2-1.5h2.3A1.5 1.5 0 0 1 21 6V18a1.5 1.5 0 0 1-1.5 1.5h-2.3c-2 0-3.8.5-5.2 1.5'/%3E%3Cpath d='M12 6v15'/%3E%3C/svg%3E");
}

.feature-icon-fast {
  background-color: rgba(199, 155, 255, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c79bff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m13 2-8 11h6l-1 9 9-13h-6l0-7z'/%3E%3C/svg%3E");
}

.feature-icon-hints {
  background-color: rgba(126, 196, 255, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ec4ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='14' rx='2'/%3E%3Cpath d='M6.5 15.5 10 12l2.2 2.2 2.5-2.5 2.8 3.8'/%3E%3Cpath d='M8 9.5h.01'/%3E%3Cpath d='M15.7 8.2h2.6'/%3E%3Cpath d='M17 6.9v2.6'/%3E%3C/svg%3E");
}

.feature-icon-timer {
  background-color: rgba(255, 190, 71, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffbf47' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 1.5'/%3E%3Cpath d='M9 2h6'/%3E%3C/svg%3E");
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  max-width: none;
  font-size: 1.18rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.feature-card p {
  margin: 0;
  max-width: 45ch;
  color: rgba(243, 247, 251, 0.38);
  font-size: 0.9rem;
  line-height: 1.45;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(24, 27, 32, 0.6);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.22);
}

.feature-card:hover .feature-icon {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.16);
}

.popular-section {
  display: grid;
  gap: 1.8rem;
  padding: 3.6rem 0 0.8rem;
}

.popular-title {
  margin: 0 0 1.8rem;
  text-align: center;
  font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 900;
}

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

.popular-card {
  min-height: 20.5rem;
  padding: 3rem 1.25rem;
  border-radius: 2.25rem;
  background: rgba(10, 14, 22, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.popular-card-head {
  display: grid;
  grid-template-columns: 1.15rem max-content;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 1.8rem;
  min-height: 2.2rem;
  width: fit-content;
  max-width: 100%;
}

.popular-card h3 {
  margin: 0;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  line-height: 1.12;
  font-weight: 800;
  color: rgba(243, 247, 251, 0.72);
  text-align: left;
  width: max-content;
}

.popular-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.72;
}

.popular-icon-kids {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c6ff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M9 10h.01'/%3E%3Cpath d='M15 10h.01'/%3E%3Cpath d='M9.5 14.5c.8 1 1.7 1.5 2.5 1.5s1.7-.5 2.5-1.5'/%3E%3C/svg%3E");
}

.popular-icon-person {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235be7a4' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9.5' cy='7' r='3'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a3 3 0 0 1 0 5.74'/%3E%3C/svg%3E");
}

.popular-icon-objects {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ec4ff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5h6v6H5z'/%3E%3Ccircle cx='17.5' cy='17.5' r='3.5'/%3E%3Cpath d='m16 5 3 3-3 3-3-3z'/%3E%3C/svg%3E");
}

.popular-icon-actions {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffbf47' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l2.5 1.5'/%3E%3C/svg%3E");
}

.popular-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.popular-list li {
  color: rgba(243, 247, 251, 0.44);
  font-size: 0.9rem;
  line-height: 1.38;
  text-align: center;
  font-weight: 400;
  transition: color 180ms ease;
  cursor: default;
}

.popular-list li:hover {
  color: #58e2ab;
}

.popular-list .is-highlight {
  color: rgba(243, 247, 251, 0.32);
}

.faq-section {
  display: grid;
  gap: 3.25rem;
  padding: 3.2rem 0 1rem;
}

.faq-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.faq-head h2 {
  margin: 0;
  font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.875rem;
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.faq-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 2px solid #44d8a4;
  color: #44d8a4;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.faq-accordion {
  display: grid;
  gap: 0.95rem;
}

.faq-item {
  width: 80%;
  margin: 0 auto;
  border-radius: 1.8rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(11, 16, 24, 0.6);
  transition: border-color 200ms ease, background 200ms ease;
}

.faq-item.is-open {
  background: rgba(16, 22, 31, 0.68);
}

.faq-trigger {
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: rgba(10, 14, 22, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.55rem 2.45rem;
  transition: background 180ms ease;
}

.faq-item.is-open .faq-trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-question {
  position: relative;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(243, 247, 251, 0.86);
}

.faq-chevron {
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid rgba(243, 247, 251, 0.9);
  border-bottom: 2px solid rgba(243, 247, 251, 0.9);
  transform: rotate(45deg);
  transition: transform 180ms ease;
  flex: 0 0 auto;
  margin-right: 0.2rem;
}

.faq-chevron.is-up {
  transform: rotate(-135deg);
}

.faq-answer {
  margin: 0;
  max-height: 0;
  padding: 0 1.45rem;
  color: rgba(243, 247, 251, 0.78);
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0;
  overflow: hidden;
  transition: max-height 260ms ease, opacity 220ms ease, padding 220ms ease;
}

.faq-item.is-open .faq-answer {
  max-height: 10rem;
  padding: 0.35rem 2.45rem 1.45rem;
  opacity: 1;
}

.playbook-section {
  padding: 3.4rem 0 1rem;
}

.playbook-wrap {
  border-radius: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 22, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  padding: 2rem 1.4rem;
  display: grid;
  gap: 1.5rem;
}

.playbook-main {
  display: grid;
  gap: 1.35rem;
}

.playbook-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.playbook-title-icon {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000000' d='M12 5.1c-1.4-.9-3.2-1.4-5.2-1.4H4.7c-1 0-1.7.8-1.7 1.7v12.8c0 1 .8 1.7 1.7 1.7h2.1c2 0 3.8.5 5.2 1.4a.6.6 0 0 0 .6 0c1.4-.9 3.2-1.4 5.2-1.4h2.1c1 0 1.7-.8 1.7-1.7V5.4c0-1-.8-1.7-1.7-1.7h-2.1c-2 0-3.8.5-5.2 1.4a.6.6 0 0 1-.6 0Zm-.9 2v11.7c-1.3-.6-2.8-.9-4.3-.9H5.2V6h1.6c1.6 0 3.1.4 4.5 1.1Zm1.8 0c1.4-.7 2.9-1.1 4.5-1.1H19v11.9h-1.6c-1.5 0-3 .3-4.3.9V7.1Z'/%3E%3C/svg%3E") center / 1.28rem 1.28rem no-repeat,
    linear-gradient(145deg, #5af0be 10%, #26d99f 90%);
  box-shadow:
    0 10px 20px rgba(28, 197, 140, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(77, 235, 174, 0.35);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #04160f;
  padding: 0;
}

.playbook-title-icon.lucide {
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
}

/* Fallback when lucide runtime replacement is unavailable */
i.playbook-title-icon[data-lucide] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000000' d='M12 5.1c-1.4-.9-3.2-1.4-5.2-1.4H4.7c-1 0-1.7.8-1.7 1.7v12.8c0 1 .8 1.7 1.7 1.7h2.1c2 0 3.8.5 5.2 1.4a.6.6 0 0 0 .6 0c1.4-.9 3.2-1.4 5.2-1.4h2.1c1 0 1.7-.8 1.7-1.7V5.4c0-1-.8-1.7-1.7-1.7h-2.1c-2 0-3.8.5-5.2 1.4a.6.6 0 0 1-.6 0Zm-.9 2v11.7c-1.3-.6-2.8-.9-4.3-.9H5.2V6h1.6c1.6 0 3.1.4 4.5 1.1Zm1.8 0c1.4-.7 2.9-1.1 4.5-1.1H19v11.9h-1.6c-1.5 0-3 .3-4.3.9V7.1Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.28rem 1.28rem;
}

.playbook-main h2 {
  margin: 0;
  font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.875rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.playbook-intro {
  margin: 0;
  max-width: 34rem;
  color: rgba(243, 247, 251, 0.45);
  font-size: 0.98rem;
  line-height: 1.65;
}

.playbook-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
}

.playbook-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem 1rem;
  align-items: center;
  color: rgba(243, 247, 251, 0.68);
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.step-num {
  color: #3de2a9;
  font-size: 1.1rem;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 900;
  font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.playbook-tip {
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 16, 0.66);
  min-height: 14rem;
  padding: 1.5rem 1.3rem;
  display: grid;
  align-content: center;
  gap: 0.95rem;
}

.playbook-tip .playbook-tip-kicker {
  margin: 0;
  color: #3de2a9;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 900;
  font-style: normal;
}

.playbook-tip p {
  margin: 0;
  color: rgba(243, 247, 251, 0.4);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
}

.modal-body {
  display: grid;
  gap: 0.85rem;
}

.modal-body {
  display: grid;
  gap: 0.85rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-group + .history-group {
  margin-top: 1rem;
}

.history-group h4 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 247, 251, 0.42);
}

.history-group-list {
  display: grid;
  gap: 0.65rem;
}

.empty-note-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  justify-items: center;
  align-content: center;
  gap: 0.7rem;
}

.empty-note-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8c0cf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v4h4'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.82rem 0.82rem;
  opacity: 0.85;
}

.empty-note {
  margin: 0;
  text-align: center;
}

.history-item-round .history-meta strong {
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.history-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  height: 1.95rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(243, 247, 251, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.history-meta {
  display: grid;
  gap: 0.2rem;
}

.history-meta strong {
  letter-spacing: -0.03em;
}

.history-meta span {
  color: var(--soft);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.66rem;
  font-weight: 700;
}

.footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: none;
  align-items: flex-start;
  flex-direction: column;
}

.footer-brand {
  margin-bottom: 0.8rem;
}

.footer-brand .brand-mark {
  border-bottom: 2px solid rgba(6, 31, 18, 0.28);
  transform: rotate(3deg);
}

.footer-copy {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-copy + .footer-copy {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(243, 247, 251, 0.4);
  line-height: 1.5;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 2rem;
  width: 100%;
}

.footer-links p {
  margin: 0.35rem 0;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.8rem;
  width: auto;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.52rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(243, 247, 251, 0.82);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 300ms ease;
}

.footer-pill:hover {
  background: rgba(57, 217, 138, 0.1);
  border-color: rgba(57, 217, 138, 0.3);
  color: #39d98a;
  transform: translateY(-1px);
}

.footer-pill-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  flex: 0 0 auto;
  opacity: 0.9;
  color: currentColor;
}

/* Fallback when lucide runtime replacement is unavailable */
i.footer-pill-icon[data-lucide] {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

i.footer-pill-icon[data-lucide="gamepad-2"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9deea' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h4'/%3E%3Cpath d='M8 10v4'/%3E%3Cpath d='M15 11h.01'/%3E%3Cpath d='M18 13h.01'/%3E%3Cpath d='M5 16 3.5 12l1.3-3.3A3 3 0 0 1 7.6 7h8.8a3 3 0 0 1 2.8 1.7L20.5 12 19 16a3 3 0 0 1-2.8 2H7.8A3 3 0 0 1 5 16z'/%3E%3C/svg%3E");
}

i.footer-pill-icon[data-lucide="shield"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9deea' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v6c0 5 3.2 8.1 7 9 3.8-.9 7-4 7-9V6z'/%3E%3C/svg%3E");
}

i.footer-pill-icon[data-lucide="mail"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9deea' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E");
}

i.icon.lucide-icon[data-lucide="history"] {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f7fb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v4h4'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.footer-pill-icon.lucide,
.icon.lucide-icon.lucide {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  fill: none;
}

.bottom-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  z-index: 20;
}

.bottom-primary {
  min-height: 3.8rem;
}

.bottom-secondary {
  min-width: 5.5rem;
}

.modal {
  padding: 0;
  border: 0;
  width: min(100% - 1.5rem, 42rem);
  background: transparent;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

.modal-card {
  padding: 1.2rem;
  border-radius: 2rem;
}

#historyDialog {
  width: min(100% - 1.5rem, 68rem);
}

#historyDialog .modal-card {
  width: 100%;
  height: min(78vh, 44rem);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

@media (max-width: 759px) {
  #historyDialog {
    width: min(100% - 1.5rem, 24rem);
  }
}

#historyDialog .modal-head {
  margin-bottom: 0.8rem;
}

#historyDialog .modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
}

#historyDialog .modal-foot {
  margin-top: 0.8rem;
}

.modal-head,
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.modal-head {
  margin-bottom: 1rem;
}

.modal-foot {
  margin-top: 1rem;
}

.modal-foot-split {
  justify-content: stretch;
}

.modal-foot-split > * {
  flex: 1;
}

.timer-form .modal-body {
  gap: 0.7rem;
}

.timer-form .modal-foot-split {
  gap: 1rem;
}

.timer-form .modal-foot-split .secondary-button,
.timer-form .modal-foot-split .primary-button {
  min-height: 4.2rem;
  border-radius: 2rem;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.timer-form .modal-foot-split .secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f3f7fb;
}

.timer-form .modal-foot-split .primary-button {
  background: linear-gradient(90deg, #57e0ad 0%, #1fc88d 100%);
  color: #08110c;
  box-shadow: 0 18px 34px rgba(31, 200, 141, 0.12);
}

.timer-input {
  width: 100%;
  min-height: 4rem;
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.8rem;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.text-button {
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  color: #ff9c9c;
}

@media (min-width: 760px) {
  .app {
    padding: 6.05rem 1.5rem 4rem;
  }

  .brand {
    gap: 0.85rem;
  }

  .topbar .brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.95rem;
    font-size: 1.1rem;
  }

  .hero-card {
    padding: 2rem;
  }

  .tool-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
  }

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

  .popular-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .playbook-wrap {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
    gap: 2rem;
    padding: 4.8rem 3.4rem;
  }

  .playbook-main {
    gap: 1.6rem;
  }

  .playbook-main h2 {
    font-size: 1.875rem;
  }

  .playbook-intro {
    font-size: 0.99rem;
  }

  .playbook-steps {
    gap: 1rem;
  }

  .playbook-tip {
    min-height: 15rem;
    padding: 2rem 1.8rem;
    margin-top: 4.9rem;
  }

  .word-grid {
    grid-template-columns: repeat(2, minmax(0, 15rem));
    justify-content: center;
  }

  .footer {
    flex-direction: row;
  }

  .footer-links {
    width: auto;
  }

  .footer-actions {
    margin-top: 3.1rem;
  }
}

@media (min-width: 1100px) {
  .bottom-bar {
    display: none;
  }

  .word-grid[data-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 15rem));
    column-gap: 2.6rem;
    row-gap: 1.9rem;
    justify-content: center;
  }
}

@media (max-width: 759px) {
  .bottom-bar {
    display: none;
  }

  .hero-card {
    min-height: 27rem;
    overflow: hidden;
  }

  .hero-empty p {
    margin: 1.05rem 0 0.6rem;
  }

  .hero-empty .generate-pill {
    margin-top: 0.8rem;
  }

  .generate-pill {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .word-grid[data-count="4"] {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1rem;
    overflow-x: scroll;
    overflow-y: hidden;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-inline: 0;
    padding-inline: 0.25rem;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .word-grid[data-count="4"]::-webkit-scrollbar {
    display: none;
  }

  .word-grid[data-count="4"] .word-card {
    flex: 0 0 15rem;
    scroll-snap-align: center;
  }

  .topbar {
    padding-top: calc(0.8rem + env(safe-area-inset-top));
  }

  .topbar-slop-link {
    min-height: 2.35rem;
    padding: 0.35rem 0.55rem;
    gap: 0.3rem;
  }

  .topbar-slop-kicker {
    display: none;
  }

  .topbar-slop-name {
    font-size: 0.74rem;
  }

  .topbar-slop-name-full {
    display: none;
  }

  .topbar-slop-name-short {
    display: inline;
  }

  .footer {
    align-items: center;
  }

  .footer > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-copy {
    text-align: center;
  }

  .footer-actions {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .timer-body {
    align-items: center;
  }

  .timer-button {
    min-width: 5.8rem;
  }

  .playbook-main h2 {
    font-size: 1.875rem;
  }

  .faq-head {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
  }

  .faq-head h2 {
    display: inline-block;
    width: fit-content;
    max-width: 12ch;
    justify-self: start;
    text-align: center;
  }

  .faq-head-icon {
    align-self: center;
  }

  .faq-item {
    width: 92%;
  }

  .playbook-steps li {
    font-size: 0.93rem;
  }

  .step-num {
    font-size: 1.1rem;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(6deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 217, 138, 0.24);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(57, 217, 138, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(57, 217, 138, 0);
  }
}


@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -14px, 0) rotate(6deg);
  }
}

@keyframes glowBreathe {
  0%,
  100% {
    opacity: 0.44;
    transform: translate3d(0, 0, 0);
  }

  50% {
    opacity: 0.58;
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes hintBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hintModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

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

@keyframes sketchSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sketchTextPulse {
  0%,
  100% {
    opacity: 0.68;
  }

  50% {
    opacity: 1;
  }
}
