:root {
  color-scheme: light;
  --page: #f7f7f7;
  --ink: #111111;
  --muted: #666666;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --line: rgba(17, 17, 17, 0.12);
  --accent: #f20d1b;
  --accent-strong: #d90012;
  --sun: #f20d1b;
  --pink: #f20d1b;
  --teal: #111111;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.1);
  --pop: cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.menu-is-open,
.modal-is-open {
  overflow: hidden;
}

.site-header,
.app-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

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

.brand {
  width: min(58vw, 280px);
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.eyebrow {
  width: fit-content;
  display: inline-block;
  position: relative;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  padding: 8px 13px 8px 30px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.menu-button {
  width: 46px;
  height: 46px;
  min-height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 1.08rem;
  text-decoration: none;
  transition: transform 160ms var(--pop), background 160ms ease;
}

.menu-button:active {
  transform: scale(0.9) rotate(8deg);
}

.mobile-tabbar {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 24;
  width: min(calc(100% - 20px), 520px);
  min-height: 66px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.5)),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.95), transparent 34%),
    radial-gradient(circle at 82% 84%, rgba(242, 13, 27, 0.13), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -18px 34px rgba(255, 255, 255, 0.22),
    0 18px 46px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
}

.mobile-tabbar::before,
.mobile-tabbar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mobile-tabbar::before {
  inset: 1px;
  border-radius: 23px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.86), transparent 28% 72%, rgba(255, 255, 255, 0.46)),
    radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, 0.8), transparent 36%);
  mix-blend-mode: screen;
  opacity: 0.82;
}

.mobile-tabbar::after {
  left: -18%;
  top: -110%;
  width: 58%;
  height: 260%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  opacity: 0.68;
  transform: rotate(24deg);
  animation: liquidGlassSweep 7.5s ease-in-out infinite;
}

.mobile-tabbar a,
.mobile-tabbar button {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 0;
  border-radius: 18px;
  padding: 0 3px;
  background: transparent;
  color: #6f6f6f;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: transform 160ms var(--pop), background 160ms ease, color 160ms ease;
}

.mobile-tabbar i {
  font-size: 1.05rem;
  line-height: 1;
}

.mobile-tabbar span {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-tabbar .is-active {
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(135deg, rgba(242, 13, 27, 0.2), rgba(242, 13, 27, 0.08));
  color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -12px 18px rgba(242, 13, 27, 0.06),
    0 8px 18px rgba(242, 13, 27, 0.12);
}

.mobile-tabbar--legal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-tabbar a:active,
.mobile-tabbar button:active {
  transform: scale(0.9);
}

.mobile-tabbar .journal-tab-catch {
  animation: journalTabCatch 840ms var(--pop);
}

.mobile-tabbar .journal-tab-catch,
.mobile-tabbar .journal-tab-catch i,
.mobile-tabbar .journal-tab-catch span {
  color: var(--accent);
}

.app-shell {
  max-width: 760px;
  padding-bottom: 34px;
}

.app-shell:has(.home-wheel:not([hidden])) {
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 70px);
  padding: 0 0 28px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.95) 0 5%, transparent 6%),
    radial-gradient(circle at 82% 16%, rgba(255, 224, 102, 0.9) 0 10%, transparent 11%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.62)),
    linear-gradient(135deg, #45d6ff 0 38%, #ffd166 39% 68%, #ff6b35 100%);
}

.home-title {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding-top: clamp(10px, 2.4svh, 26px);
  font-size: clamp(2.8rem, 13vw, 6.2rem);
  line-height: 0.78;
  animation: titleIn 520ms var(--pop) both;
}

.home-title span {
  display: block;
  width: max-content;
  margin-bottom: 8px;
  border: 0;
  border-radius: 999px;
  padding: 8px 13px 8px 30px;
  background: #fff;
  font-size: clamp(0.9rem, 3.5vw, 1.25rem);
  line-height: 1;
  text-transform: uppercase;
  position: relative;
  backdrop-filter: blur(10px);
}

.home-title span::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.home-wheel {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(8px, 1.6svh, 16px);
  justify-items: center;
  align-items: center;
  min-height: calc(100svh - 58px - clamp(106px, 18svh, 188px));
  margin-top: 0;
  padding: clamp(8px, 1.3svh, 18px) clamp(10px, 3vw, 28px) 24px;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 86%, rgba(255, 255, 255, 0.5) 0 18%, transparent 19%),
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.32), transparent 15%),
    radial-gradient(circle at 84% 26%, rgba(255, 255, 255, 0.22), transparent 17%);
  box-shadow: none;
}

.home-wheel::before,
.home-wheel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.home-wheel::before {
  left: -12%;
  right: -12%;
  bottom: -18%;
  height: 32%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(255, 236, 179, 0.82), rgba(255, 199, 87, 0.84));
}

.home-wheel::after {
  right: 8%;
  top: 10%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7b0 0 24%, #ffcf33 25% 56%, rgba(255, 207, 51, 0) 57%);
  opacity: 0.65;
  animation: floatSpark 5s ease-in-out infinite;
}

.wheel-stage {
  position: relative;
  width: min(100%, 560px);
  align-self: center;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.clouds span {
  position: absolute;
  right: -34%;
  width: 130px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  filter: blur(0.4px);
  opacity: 0.78;
  animation: cloudDrift 18s linear infinite;
}

.clouds span::before,
.clouds span::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.clouds span::before {
  left: 22px;
  top: -21px;
  width: 54px;
  height: 54px;
}

.clouds span::after {
  right: 20px;
  top: -14px;
  width: 42px;
  height: 42px;
}

.clouds span:nth-child(1) {
  top: 13%;
}

.clouds span:nth-child(2) {
  top: 32%;
  width: 96px;
  height: 36px;
  opacity: 0.5;
  animation-duration: 24s;
  animation-delay: -8s;
}

.clouds span:nth-child(3) {
  top: 5%;
  width: 150px;
  height: 52px;
  opacity: 0.42;
  animation-duration: 30s;
  animation-delay: -15s;
}

.spark {
  position: absolute;
  z-index: -1;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.35;
  filter: blur(0.2px);
  animation: floatSpark 3.6s ease-in-out infinite;
}

.spark--one {
  top: 8%;
  left: 13%;
}

.spark--two {
  right: 10%;
  bottom: 18%;
  width: 18px;
  height: 18px;
  background: #ff8a00;
  animation-delay: -1.2s;
}

.spark--three {
  left: 18%;
  bottom: 14%;
  width: 8px;
  height: 8px;
  background: #ffd166;
  animation-delay: -2.1s;
}

.wheel-pointer {
  position: absolute;
  top: -5px;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-top: 26px solid #fff;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.34));
  animation: pointerBounce 1.4s ease-in-out infinite;
}

.random-wheel {
  position: relative;
  width: min(68svh, 100%, 500px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 50%;
  background: #111;
  box-shadow: var(--shadow);
  color: #fff;
  cursor: pointer;
  touch-action: none;
  transition: transform var(--spin-duration, 3800ms) cubic-bezier(0.08, 0.84, 0.11, 1);
  animation: wheelBreath 2.8s ease-in-out infinite;
}

.random-wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    radial-gradient(circle, transparent 0 30%, rgba(255, 255, 255, 0.28) 30.5% 31%, transparent 31.5%),
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 54%);
  pointer-events: none;
}

.random-wheel::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  pointer-events: none;
}

.random-wheel:active {
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.16);
  transform: scale(0.985);
}

.random-wheel.is-spinning {
  pointer-events: none;
  cursor: wait;
  transform-origin: 50% 50%;
  animation: none;
}

.random-wheel.is-dragging {
  transition: none;
  animation: none;
}

.wheel-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  animation: wheelIdleTurn 3.8s ease-in-out infinite;
}

.random-wheel.is-spinning .wheel-svg,
.random-wheel.is-dragging .wheel-svg {
  animation: none;
}

.wheel-svg text {
  fill: #fff;
  font-size: 4px;
  font-weight: 950;
  letter-spacing: 0;
  stroke: none;
  text-transform: uppercase;
}

.wheel-svg textPath {
  white-space: nowrap;
}

.wheel-svg image {
  filter: saturate(1.18) contrast(1.04);
}

.wheel-center {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 27%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 7px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: clamp(0.82rem, 2.4vw, 1.05rem);
  font-weight: 950;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 26px rgba(242, 13, 27, 0.28);
  animation: centerPulse 1.6s ease-in-out infinite;
}

.edit-wheel-button {
  position: relative;
  z-index: 2;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.14);
  transition: transform 160ms var(--pop), box-shadow 160ms ease;
}

.edit-wheel-button i {
  color: var(--accent);
}

.edit-wheel-button:active {
  transform: scale(0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.idea-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.primary-link,
.route-link {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 950;
  font-size: 0.85rem;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition: transform 160ms var(--pop);
}

.primary-link {
  background: var(--accent);
  color: #fff;
  animation: ctaBreath 3.8s ease-in-out infinite;
}

.route-link {
  background: var(--ink);
  color: #fff;
}

.primary-link::before {
  content: "";
  position: absolute;
  inset: -26%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1.6px, transparent 2px) 0 0 / 30px 30px,
    radial-gradient(circle, rgba(255, 255, 255, 0.58) 0 1.2px, transparent 1.8px) 12px 16px / 26px 26px;
  opacity: 0.42;
  pointer-events: none;
  animation: ctaParticles 7s linear infinite;
}

.primary-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0 32%, rgba(255, 255, 255, 0.28) 45%, transparent 58% 100%);
  transform: translateX(-120%);
  pointer-events: none;
  animation: ctaShine 4.6s ease-in-out infinite;
}

.primary-link,
.route-link {
  isolation: isolate;
}

.primary-link span,
.route-link span,
.route-link i {
  position: relative;
  z-index: 1;
}

.primary-link:active,
.route-link:active {
  transform: scale(0.94);
}

.seo-idea-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.seo-idea-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: none;
}

.seo-idea-actions a:first-child {
  background: var(--accent);
  color: #fff;
}

.seo-idea-actions a:last-child {
  background: var(--ink);
  color: #fff;
}

.burst-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.burst-layer span {
  position: absolute;
  color: var(--accent);
  font-weight: 950;
  opacity: 0;
  transform: translate(0, 0) scale(0.4) rotate(0deg);
  animation: burstPop 800ms ease-out var(--delay) forwards;
}

.reward-confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.reward-confetti span {
  position: absolute;
  top: -12%;
  left: var(--left);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 950;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: rewardFall var(--duration, 4200ms) linear var(--delay) infinite;
}

.is-revealing .site-header,
.is-revealing .home-title,
.is-revealing .home-wheel {
  animation: pageKick 420ms ease-out;
}

.idea-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 14px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.36), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(255, 209, 102, 0.72), transparent 16%),
    linear-gradient(135deg, #f20d1b 0%, #ff8a00 48%, #ffd166 100%);
}

.idea-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: opacity 180ms ease;
}

.idea-modal__backdrop::before {
  content: "";
  position: absolute;
  inset: -40vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.18) 0deg 9deg, transparent 9deg 18deg);
  animation: rewardRaysSpin 34s linear infinite;
}

.idea-card {
  position: relative;
  z-index: 2;
  width: min(calc(100vw - 28px), 560px);
  max-height: calc(100vh - 28px);
  max-height: calc(100svh - 28px);
  overflow-y: auto;
  border: 6px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.32), 0 0 0 12px rgba(255, 255, 255, 0.14);
  transform: translateY(18px) scale(0.82) rotate(-2deg);
  opacity: 0;
  transition: transform 620ms var(--pop), opacity 220ms ease;
}

.idea-modal.is-open .idea-modal__backdrop {
  opacity: 1;
}

.idea-modal.is-open .idea-card {
  transform: translateY(0) scale(1) rotate(0deg);
  opacity: 1;
}

.idea-media {
  position: relative;
  width: 100%;
  height: clamp(210px, 36svh, 330px);
  background: #eee;
}

.idea-card img,
.idea-card iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
  background: #eee;
  pointer-events: none;
}

.idea-card__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.7rem;
  font-weight: 950;
  line-height: 1;
  transition: transform 160ms var(--pop);
}

.idea-card__close:active {
  transform: scale(0.88) rotate(12deg);
}

.journal-float-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 160ms var(--pop), background 160ms ease, color 160ms ease;
}

.site-footer {
  width: min(760px, calc(100% - 28px));
  margin: 18px auto calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  color: rgba(17, 17, 17, 0.48);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Temporaire : ajout journal masqué jusqu'à réactivation. */
.journal-float-button {
  display: none;
}

.journal-float-button:active {
  background: var(--accent);
  color: #fff;
  transform: scale(0.9) rotate(-8deg);
}

.journal-float-button.is-in-journal {
  background: var(--accent);
  color: #fff;
  box-shadow:
    0 0 0 5px rgba(242, 13, 27, 0.14),
    0 14px 30px rgba(242, 13, 27, 0.28);
}

.journal-float-button.is-in-journal i {
  animation: journalSavedTick 620ms var(--pop);
}

.wheel-hide-button,
.seo-wheel-toggle,
.choice-wheel-toggle {
  border: 0;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.wheel-hide-button {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 160ms var(--pop), background 160ms ease, color 160ms ease;
}

.wheel-hide-button:active {
  transform: scale(0.92);
}

.wheel-hide-button.is-hidden-from-wheel,
.seo-ideas details.is-hidden-from-wheel .seo-wheel-toggle,
.choice-line.is-hidden-from-wheel .choice-wheel-toggle {
  background: rgba(242, 13, 27, 0.1);
  color: var(--accent);
}

.wheel-empty {
  position: absolute;
  inset: 26% 16%;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.26);
  pointer-events: none;
}

.choice-line.is-hidden-from-wheel input {
  color: rgba(17, 17, 17, 0.48);
  text-decoration: line-through;
}

.choice-wheel-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.05);
  color: rgba(17, 17, 17, 0.6);
}

.idea-card__body {
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
}

.idea-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.idea-card__body > p:first-child {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.idea-card__body h2 {
  margin: 0;
  font-size: clamp(1.65rem, 6.4vw, 2.8rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.wheel-editor-layer {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  align-items: end;
}

.wheel-editor-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 220ms ease;
}

.wheel-editor {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  height: min(92svh, 820px);
  max-height: min(92svh, 820px);
  overflow: hidden;
  margin: 0 auto;
  border-radius: 28px 28px 0 0;
  padding: 18px 16px 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  background: #fff;
  box-shadow: 0 -28px 80px rgba(0, 0, 0, 0.22);
  transform: translateY(100%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wheel-editor-layer.is-open .wheel-editor-backdrop {
  opacity: 1;
}

.wheel-editor-layer.is-open .wheel-editor {
  transform: translateY(0);
}

.wheel-editor__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.wheel-editor__head p {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.wheel-editor__head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 8vw, 3rem);
  line-height: 0.92;
}

.wheel-editor__head button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.7rem;
  font-weight: 950;
}

.wheel-name-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.wheel-name-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.wheel-name-field input,
.choice-line input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f8f8;
  color: var(--ink);
  outline: none;
}

.wheel-name-field input {
  padding: 0 16px;
  font-weight: 850;
}

.choice-editor-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  gap: 9px;
  margin: 0 -6px;
  padding: 0 6px 10px;
}

.choice-line {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 38px 42px;
  align-items: center;
  gap: 9px;
  border-radius: 16px;
}

.choice-edit-button {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--choice-color);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 0.58rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.choice-edit-button:active {
  transform: scale(0.92);
}

.choice-line input {
  min-width: 0;
  padding: 0 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-line input:focus,
.wheel-name-field input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(242, 13, 27, 0.1);
}

.delete-icon-button,
.wheel-delete {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 50%;
  background: #f4f4f4;
  color: #b8b8b8;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 950;
  transition: background 160ms ease, color 160ms ease, transform 160ms var(--pop);
}

.delete-icon-button:active,
.wheel-delete:active {
  background: #eeeeee;
  color: #8f8f8f;
  transform: scale(0.94);
}

.choice-detail {
  position: absolute;
  inset: auto 10px calc(76px + env(safe-area-inset-bottom)) 10px;
  z-index: 4;
  max-height: min(68svh, 620px);
  overflow-y: auto;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.choice-detail.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.choice-detail header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.choice-detail header p {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.choice-detail h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.choice-detail header button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 950;
}

.choice-detail label {
  display: grid;
  gap: 7px;
}

.choice-detail label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.choice-detail input,
.choice-detail textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 13px;
  background: #f8f8f8;
  color: var(--ink);
  outline: none;
  font: inherit;
}

.choice-detail input[type="color"] {
  width: 72px;
  padding: 4px;
}

.choice-detail textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.choice-detail .confirm-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 950;
  font-size: 0.9rem;
}

.choice-detail input[type="file"] {
  padding: 12px;
  background: #fff;
}

.choice-image-preview {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 14px;
  background: #f2f2f2;
}

.wheel-editor__actions {
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 16px -16px 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), #fff 28%);
  box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.08);
}

.wheel-editor__actions button,
.wheel-library article > button:first-child {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 950;
}

.wheel-editor__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 0.9rem;
}

.secondary-action {
  background: var(--ink);
  color: #fff;
}

.confirm-action {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(242, 13, 27, 0.22);
}

.wheel-library {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.wheel-library summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
  text-transform: uppercase;
}

.wheel-library summary::-webkit-details-marker {
  display: none;
}

.wheel-library summary i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.05);
  color: var(--ink);
  font-size: 0.84rem;
  transition: transform 180ms ease;
}

.wheel-library[open] summary i {
  transform: rotate(180deg);
}

.wheel-library__new {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: #f2f2f2;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 950;
  margin: 6px 0 10px;
}

.wheel-library div {
  display: grid;
  gap: 8px;
}

.wheel-library article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border-radius: 18px;
}

.wheel-library article > button:first-child {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border-radius: 18px;
  background: #f7f7f7;
  color: var(--ink);
  text-align: left;
}

.wheel-library article > button:first-child strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wheel-library article.is-active > button:first-child {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.wheel-delete {
  font-weight: 950;
}

.wheel-library span {
  color: var(--muted);
  font-size: 0.84rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 15px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 13, 27, 0.12);
}

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.menu-layer {
  position: fixed;
  inset: 0;
  z-index: 42;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(33, 23, 15, 0.3);
  opacity: 0;
  cursor: pointer;
  transition: opacity 220ms ease;
}

.app-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: min(92vw, 420px);
  height: 100%;
  overflow: hidden;
  border-radius: 30px 0 0 30px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--surface-strong);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-layer.is-open .menu-backdrop {
  opacity: 1;
}

.menu-layer.is-open .app-menu {
  transform: translateX(0);
}

.menu-layer.has-contact-open .app-menu__head,
.menu-layer.has-contact-open .app-menu__body,
.menu-layer.has-contact-open .app-menu__foot {
  opacity: 0.22;
  filter: blur(1px);
  transition: opacity 180ms ease, filter 180ms ease;
}

.app-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.app-menu__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-menu__avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  display: block;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.app-menu__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.app-menu__head strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.app-menu__head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.app-menu__head button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 900;
}

.app-menu__body {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  -webkit-overflow-scrolling: touch;
}

.app-menu__list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.app-menu__list button {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 150ms var(--pop), border-color 150ms ease, box-shadow 150ms ease;
}

.app-menu__list button:active:not(:disabled) {
  transform: scale(0.98);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.app-menu__list button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.app-menu__list button.is-feature-request {
  border-color: rgba(242, 13, 27, 0.22);
  background: linear-gradient(135deg, #f20d1b, #ff8a00);
  color: #fff;
}

.app-menu__list button.is-feature-request i {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.app-menu__list button.is-feature-request em {
  color: rgba(255, 255, 255, 0.82);
}

.app-menu__list span {
  grid-row: span 2;
  font-size: 1.5rem;
}

.app-menu__list i {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f6f6f6;
  color: var(--accent);
  font-size: 1.15rem;
}

.app-menu__list strong {
  line-height: 1.2;
}

.app-menu__list em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.app-menu__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
}

.app-menu__legal a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.app-menu__legal a:active {
  color: var(--accent);
}

.app-menu__foot {
  display: grid;
  gap: 9px;
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), #fff 42%);
}

.app-menu__foot button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 950;
}

.app-menu__foot button i {
  margin-right: 8px;
}

.app-menu__contact {
  display: grid;
  align-content: start;
  gap: 12px;
}

.app-menu__contact p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}

.app-menu__contact label {
  display: grid;
  gap: 6px;
}

.app-menu__contact label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.app-menu__contact input,
.app-menu__contact textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f7f7f7;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  outline: none;
}

.app-menu__contact input {
  min-height: 46px;
}

.app-menu__contact textarea {
  min-height: 118px;
  resize: vertical;
}

.app-menu__contact input:focus,
.app-menu__contact textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 13, 27, 0.1);
}

.app-menu__contact button {
  justify-self: start;
  min-width: 148px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 950;
}

.app-menu__contact-panel {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 16px;
  max-height: min(76svh, 560px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.22);
  transform: translateY(112%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-overflow-scrolling: touch;
}

.app-menu__contact-panel[hidden] {
  display: none;
}

.app-menu__contact-panel.is-open {
  transform: translateX(0);
}

.app-menu__contact-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.app-menu__contact-panel header p {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.app-menu__contact-panel h2 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
}

.app-menu__contact-panel header button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.7rem;
  font-weight: 950;
}

.journal-modal {
  position: fixed;
  inset: 0;
  z-index: 38;
  display: grid;
  place-items: end center;
  padding: 14px 12px max(14px, env(safe-area-inset-bottom));
}

.journal-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.journal-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(86svh, 720px);
  overflow-y: auto;
  display: grid;
  gap: 16px;
  border-radius: 30px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  transform: translateY(110%) scale(0.98);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-overflow-scrolling: touch;
}

.journal-modal.is-open .journal-modal__backdrop {
  opacity: 1;
}

.journal-modal.is-open .journal-sheet {
  transform: translateY(0) scale(1);
}

.journal-sheet header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.journal-sheet header p {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.journal-sheet h2 {
  margin: 0;
  font-size: clamp(1.55rem, 7vw, 2.3rem);
  line-height: 1;
}

.journal-sheet header button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.7rem;
  font-weight: 950;
}

.journal-sheet form {
  display: grid;
  gap: 14px;
}

.journal-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.journal-status legend,
.journal-field > span {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.journal-status label {
  min-width: 0;
}

.journal-status input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.journal-status span {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 9px 10px;
  background: #f7f7f7;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.journal-status i {
  color: var(--accent);
}

.journal-status input:checked + span {
  border-color: rgba(242, 13, 27, 0.34);
  background: #fff1f2;
}

.journal-vibe {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journal-vibe span {
  min-height: 42px;
  justify-content: center;
  padding-inline: 7px;
  font-size: 0.76rem;
}

.journal-field {
  display: grid;
  gap: 7px;
}

.journal-field textarea {
  width: 100%;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #f7f7f7;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  resize: vertical;
  outline: none;
}

.journal-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 13, 27, 0.1);
}

.journal-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.journal-upload-grid label {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1px dashed rgba(17, 17, 17, 0.18);
  border-radius: 18px;
  padding: 12px;
  background: #fafafa;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 950;
  text-align: center;
}

.journal-upload-grid i {
  color: var(--accent);
  font-size: 1.1rem;
}

.journal-upload-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.journal-save-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.journal-save-button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 950;
}

.journal-transfer-bubble {
  position: fixed;
  z-index: 80;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.46), transparent 28%),
    var(--accent);
  color: #fff;
  box-shadow:
    inset 0 -8px 16px rgba(0, 0, 0, 0.12),
    0 18px 46px rgba(242, 13, 27, 0.34);
  pointer-events: none;
}

.journal-transfer-bubble::before,
.journal-transfer-bubble::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(242, 13, 27, 0.2);
  animation: journalBubblePulse 920ms ease-out infinite;
}

.journal-transfer-bubble::before {
  inset: -8px;
}

.journal-transfer-bubble::after {
  inset: -15px;
  animation-delay: 120ms;
}

.journal-transfer-bubble i {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
}

.journal-main {
  width: min(760px, calc(100% - 18px));
  margin: 0 auto;
  padding: 6px 0 28px;
}

.journal-hero {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
}

.journal-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 11vw, 4.8rem);
  line-height: 0.94;
}

.journal-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.journal-page-list {
  display: grid;
  gap: 12px;
}

.journal-empty {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  padding: 16px;
  background: #fff;
}

.journal-timeline {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journal-timeline::before {
  content: none;
}

.journal-story {
  position: relative;
}

.journal-story article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.journal-story__icon {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(242, 13, 27, 0.24);
}

.journal-story__content {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  padding: 13px;
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 13, 27, 0.08), transparent 32%),
    #fff;
}

.journal-story__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding-left: 42px;
}

.journal-story__head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 7vw, 1.8rem);
  line-height: 1.02;
}

.journal-story__head time {
  width: fit-content;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  justify-items: start;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.journal-story__head time strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.journal-entry-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff1f2;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
}

.journal-story__scene {
  display: grid;
  gap: 12px;
}

.journal-place-trigger {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.journal-place-trigger:active {
  transform: scale(0.985);
}

.journal-place-trigger img,
.journal-story__scene > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  background: #eee;
}

.journal-place-trigger img {
  transition: transform 220ms var(--pop);
}

.journal-place-trigger span {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (hover: hover) {
  .journal-place-trigger:hover img {
    transform: scale(1.035);
  }
}

.journal-story__scene div,
.journal-story__block {
  display: grid;
  gap: 9px;
}

.journal-story__scene p,
.journal-story__block p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.journal-story__scene p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  overflow-wrap: break-word;
}

.journal-story__scene p > i {
  flex: 0 0 20px;
  padding-top: 3px;
  text-align: center;
}

.journal-story__scene p i,
.journal-story__block h3 i {
  color: var(--accent);
}

.journal-story__scene p strong {
  color: var(--ink);
}

.journal-story__block {
  border-radius: 18px;
  padding: 12px;
  background: #f7f7f7;
}

.journal-story__block h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.journal-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.journal-media {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.journal-media img,
.journal-media video {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: #eee;
}

.journal-media figcaption {
  overflow: hidden;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-place-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
}

.journal-place-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.journal-place-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  overflow: hidden;
  display: grid;
  gap: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 240ms var(--pop), opacity 180ms ease;
}

.journal-place-modal.is-open .journal-place-modal__backdrop {
  opacity: 1;
}

.journal-place-modal.is-open .journal-place-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.journal-place-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  background: #eee;
}

.journal-place-card > div {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.journal-place-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 8vw, 2.35rem);
  line-height: 0.98;
}

.journal-place-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.journal-place-card__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.9rem;
  font-weight: 950;
  line-height: 1;
}

.journal-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.journal-entry-meta span {
  border-radius: 999px;
  padding: 6px 9px;
  background: #f3f3f3;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
}

.journal-empty {
  display: grid;
  gap: 10px;
  text-align: center;
}

.journal-empty i {
  color: var(--accent);
  font-size: 2rem;
}

.journal-empty h2,
.journal-empty p {
  margin: 0;
}

.journal-empty p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

@media (min-width: 680px) {
  .journal-main {
    width: min(760px, calc(100% - 24px));
    padding-top: 10px;
  }

  .journal-timeline {
    padding-left: 22px;
  }

  .journal-timeline::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 20px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(242, 13, 27, 0.72), rgba(17, 17, 17, 0.08));
  }

  .journal-story article {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .journal-story__icon {
    position: sticky;
    top: 12px;
    left: auto;
    width: 40px;
    height: 40px;
  }

  .journal-story__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-left: 0;
  }

  .journal-story__head time {
    display: grid;
    justify-items: end;
    gap: 3px;
    text-align: right;
  }
}

.app-menu__foot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.legal-main {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.legal-card {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  padding: clamp(22px, 6vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(242, 13, 27, 0.08), transparent 34%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.legal-card h1 {
  margin: 0;
  font-size: clamp(2rem, 10vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.legal-card h2 {
  margin: 10px 0 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.55;
}

.legal-card p {
  margin: 0;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.legal-card a {
  color: var(--accent);
  font-weight: 950;
}

.section-details {
  position: relative;
  width: min(100% - 18px, 720px);
  overflow: hidden;
  margin: 14px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(242, 13, 27, 0.1), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(255, 209, 102, 0.18), transparent 32%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -24px 42px rgba(255, 255, 255, 0.2),
    0 18px 50px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.section-details::before,
.section-details::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.section-details::before {
  inset: 1px;
  border-radius: 25px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.86), transparent 24% 74%, rgba(255, 255, 255, 0.5)),
    radial-gradient(ellipse at 36% 0%, rgba(255, 255, 255, 0.72), transparent 34%);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.section-details::after {
  left: -24%;
  top: -92%;
  width: 46%;
  height: 245%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  opacity: 0.42;
  transform: rotate(22deg);
  animation: liquidGlassSweep 8.8s ease-in-out infinite;
}

.section-details--why {
  margin-top: 34px;
}

.section-details--why,
.section-details--warm {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.56)),
    radial-gradient(circle at 12% 12%, rgba(255, 209, 102, 0.28), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(242, 13, 27, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.76);
}

.section-details__summary {
  position: relative;
  z-index: 1;
  display: block;
  padding: clamp(20px, 5vw, 30px) 72px clamp(20px, 5vw, 30px) clamp(20px, 5vw, 30px);
  cursor: pointer;
  list-style: none;
}

.section-details__summary::-webkit-details-marker {
  display: none;
}

.section-details__summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.section-details[open] > .section-details__summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.section-details__summary .eyebrow {
  margin: 0 0 10px;
}

.section-details__summary h2 {
  margin: 0;
  font-size: clamp(1.7rem, 7vw, 3.2rem);
  line-height: 0.96;
}

.section-details__summary h2 strong {
  color: var(--accent);
}

.section-details > .seo-content,
.section-details > .seo-ideas {
  position: relative;
  z-index: 1;
  width: auto;
  margin: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.section-details > .seo-content {
  padding-top: 0;
}

.section-details > .seo-ideas {
  padding: 0 clamp(12px, 3vw, 18px) 18px;
}

.seo-ideas {
  width: min(100% - 18px, 720px);
  margin: 42px auto 0;
  padding-bottom: 28px;
}

.seo-ideas h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 8vw, 3.8rem);
  line-height: 0.9;
}

.seo-ideas details {
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
}

.seo-ideas summary {
  position: relative;
  min-height: 68px;
  display: block;
  padding: 18px 68px 18px 64px;
  cursor: pointer;
  list-style: none;
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1.22;
}

.seo-ideas summary::-webkit-details-marker {
  display: none;
}

.seo-ideas summary::after {
  content: "\f078";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.05);
  color: var(--ink);
  font-family: "Font Awesome 6 Free";
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease;
}

.seo-ideas details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.seo-wheel-toggle {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.05);
  color: rgba(17, 17, 17, 0.64);
  font-size: 0.86rem;
  transform: translateY(-50%);
  transition: transform 180ms var(--pop), background 180ms ease, color 180ms ease;
}

.seo-wheel-toggle span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.seo-wheel-toggle:active {
  transform: translateY(-50%) scale(0.9);
}

.seo-ideas details.is-hidden-from-wheel summary {
  color: rgba(17, 17, 17, 0.56);
}

.seo-media-wrap {
  position: relative;
  width: calc(100% - 24px);
  margin: 0 12px;
}

.seo-ideas img {
  width: calc(100% - 24px);
  height: clamp(180px, 44vw, 280px);
  display: block;
  object-fit: cover;
  margin: 0 12px;
  border-radius: 18px;
  background: #eee;
}

.seo-media-wrap img {
  width: 100%;
  margin: 0;
}

.seo-media-wrap .journal-float-button {
  top: 10px;
  right: 10px;
}

.seo-ideas p {
  margin: 14px 18px 0;
  color: var(--muted);
  line-height: 1.55;
}

.seo-ideas h2 strong,
.seo-content h2 strong,
.faq-section summary strong {
  color: var(--accent);
  font-weight: 950;
}

.text-hit {
  color: var(--ink);
  font-weight: 950;
}

.seo-ideas details > a {
  width: calc((100% - 52px) / 2);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 18px 18px;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: none;
}

.seo-ideas details > a + a {
  margin-left: 8px;
  margin-right: 18px;
  background: var(--ink);
  box-shadow: none;
}

.seo-ideas details > a i,
.seo-ideas details > a span {
  pointer-events: none;
}

.seo-content {
  width: min(100% - 18px, 720px);
  margin: 26px auto 0;
  padding: clamp(22px, 5vw, 34px);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.seo-content--warm {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 209, 102, 0.45), transparent 24%),
    linear-gradient(135deg, #fff, #fff7eb);
}

.seo-content--why {
  margin-top: 34px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 209, 102, 0.34), transparent 24%),
    radial-gradient(circle at 92% 0%, rgba(242, 13, 27, 0.08), transparent 30%),
    #fff;
}

.seo-content .eyebrow {
  margin: 0 0 10px;
}

.seo-content h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 0.92;
}

.seo-content p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.58;
}

.seo-content ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.seo-content li {
  position: relative;
  padding: 14px 14px 14px 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  line-height: 1.45;
}

.seo-content li > i {
  position: absolute;
  left: 13px;
  top: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(242, 13, 27, 0.1);
  color: var(--accent);
  font-size: 0.86rem;
  box-shadow: inset 0 0 0 1px rgba(242, 13, 27, 0.08);
}

.seo-content strong {
  color: var(--ink);
}

.faq-section {
  margin-bottom: 18px;
}

.faq-section details {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.faq-section summary {
  position: relative;
  min-height: 58px;
  display: block;
  padding: 16px 62px 16px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.18;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "\f078";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.05);
  color: var(--ink);
  font-family: "Font Awesome 6 Free";
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease;
}

.faq-section details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-section details p {
  margin: 0;
  padding: 0 16px 16px;
}

.app-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.06);
}

.app-panel,
.result-panel {
  padding: clamp(18px, 3vw, 28px);
}

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

.panel-heading > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f3f3f3;
  font-size: 1.55rem;
}

.panel-heading p {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.05;
}

.panel-description {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.dynamic-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span,
.choice legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.input-wrap {
  position: relative;
}

.input-wrap em {
  position: absolute;
  right: 15px;
  top: 50%;
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
  transform: translateY(-50%);
}

.choice {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice label {
  display: inline-flex;
}

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

.choice legend {
  grid-column: 1 / -1;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  width: 100%;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 850;
  text-align: center;
}

.choice input:checked + span {
  border-color: var(--accent);
  background: #fff1f2;
  color: var(--accent-strong);
}

.toggle {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 56px;
  padding: 0 14px;
  border-radius: 14px;
  background: #f5f5f5;
}

.toggle input {
  width: 50px;
  height: 28px;
  accent-color: var(--accent);
}

.stepper > div {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 8px;
}

.stepper button {
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 900;
}

.result-panel {
  min-height: 0;
  background: var(--surface);
}

.empty-result {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
}

.empty-result strong {
  font-size: 2rem;
}

.empty-result p {
  color: var(--muted);
}

.result-hero {
  padding: 22px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}

.result-hero span {
  color: var(--sun);
  font-weight: 950;
  text-transform: uppercase;
}

.result-hero strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 0.95;
}

.result-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.ranking,
.budget-bars,
.checklist {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.rank-card {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.rank-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rank-card strong {
  font-size: 1.1rem;
}

.rank-card span {
  color: var(--teal);
  font-weight: 900;
}

.rank-card.is-low span {
  color: #b74d34;
}

.rank-card p {
  margin: 0;
  color: var(--muted);
}

meter {
  width: 100%;
  height: 12px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-row div {
  display: flex;
  justify-content: space-between;
  font-weight: 850;
}

.bar-row i,
.timeline i {
  display: block;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #ededed;
}

.bar-row i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
}

.timeline div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.timeline span {
  color: var(--muted);
}

.timeline em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

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

.checklist section {
  padding: 15px;
  border-radius: 14px;
  background: #fff;
}

.checklist h3 {
  margin: 0 0 12px;
}

.checklist label {
  display: flex;
  gap: 8px;
  margin: 9px 0;
  color: var(--muted);
}

.checklist input {
  accent-color: var(--accent);
}

@keyframes logoSlash {
  0%, 76%, 100% {
    transform: rotate(-7deg) scaleX(1);
  }

  82% {
    transform: rotate(-7deg) scaleX(1.08);
  }
}

@keyframes liquidGlassSweep {
  0%, 22% {
    transform: translateX(-18%) rotate(24deg);
  }

  58%, 100% {
    transform: translateX(255%) rotate(24deg);
  }
}

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

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

@keyframes wheelBreath {
  0%, 100% {
    box-shadow: var(--shadow);
  }

  50% {
    box-shadow: 0 28px 90px rgba(242, 13, 27, 0.18);
  }
}

@keyframes wheelIdleTurn {
  0%, 100% {
    transform: rotate(-2.5deg);
  }

  50% {
    transform: rotate(2.5deg);
  }
}

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

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

@keyframes centerPulse {
  0%, 100% {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(242, 13, 27, 0);
  }

  50% {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), 0 0 0 10px rgba(242, 13, 27, 0.16);
  }
}

@keyframes iconWiggle {
  0%, 100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.3);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@keyframes floatSpark {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.28;
  }

  50% {
    transform: translateY(-16px) scale(1.25);
    opacity: 0.58;
  }
}

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

  to {
    transform: translateX(-150vw);
  }
}

@keyframes burstPop {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4) rotate(0deg);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(1.25) rotate(140deg);
  }
}

@keyframes rewardFall {
  0% {
    opacity: 1;
    transform: translate3d(0, -20px, 0) rotate(0deg) scale(0.8);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate3d(var(--drift), 118svh, 0) rotate(460deg) scale(1.1);
  }
}

@keyframes ctaBreath {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 24px rgba(242, 13, 27, 0.22);
  }

  50% {
    transform: scale(1.045);
    box-shadow: 0 18px 34px rgba(242, 13, 27, 0.34);
  }
}

@keyframes ctaParticles {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(34px, 34px, 0);
  }
}

@keyframes ctaShine {
  0%, 58%, 100% {
    transform: translateX(-120%);
  }

  76% {
    transform: translateX(120%);
  }
}

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

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

@keyframes journalBubblePulse {
  0% {
    opacity: 0.55;
    transform: scale(0.7);
  }

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

@keyframes journalTabCatch {
  0% {
    transform: translateY(0) scale(1);
  }

  22% {
    transform: translateY(-9px) scale(1.08) rotate(-2deg);
  }

  48% {
    transform: translateY(3px) scale(0.96) rotate(1deg);
  }

  72% {
    transform: translateY(-4px) scale(1.03);
  }

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

@keyframes journalSavedTick {
  0% {
    transform: scale(0.55) rotate(-16deg);
  }

  54% {
    transform: scale(1.18) rotate(8deg);
  }

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

@keyframes rewardCardReveal {
  0% {
    opacity: 0;
    clip-path: inset(50% 42% 50% 42% round 28px);
    transform: translateY(14px);
  }

  12% {
    opacity: 1;
  }

  46% {
    opacity: 1;
    clip-path: inset(0 42% 0 42% round 28px);
    transform: translateY(0);
  }

  58% {
    opacity: 1;
    clip-path: inset(0 42% 0 42% round 28px);
    transform: translateY(0);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 28px);
    transform: translateY(0);
  }
}

@keyframes pageKick {
  0%, 100% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-4px);
  }
}

@media (max-width: 860px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .choice,
  .checklist {
    grid-template-columns: 1fr;
  }
}

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

.features-main {
  width: min(760px, calc(100% - 18px));
  margin: 0 auto;
  padding: 8px 0 30px;
}

.features-hero {
  display: grid;
  gap: 12px;
  margin: 8px 0 18px;
}

.features-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 14vw, 5.4rem);
  line-height: 0.86;
}

.features-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.45;
}

.feature-submit-card,
.feature-request {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.feature-submit-card {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
}

.feature-submit-card h2,
.feature-list-section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 7vw, 2.4rem);
  line-height: 1;
}

.feature-submit-card form {
  display: grid;
  gap: 12px;
}

.feature-submit-card label {
  display: grid;
  gap: 7px;
}

.feature-submit-card label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.feature-submit-card input,
.feature-submit-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8f8f8;
  color: var(--ink);
  outline: none;
  font: inherit;
  font-weight: 850;
}

.feature-submit-card input {
  min-height: 52px;
  padding: 0 14px;
}

.feature-submit-card textarea {
  min-height: 96px;
  padding: 14px;
  resize: vertical;
}

.feature-submit-card button,
.feature-request button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.feature-submit-card button {
  min-height: 52px;
}

.feature-submit-card button i,
.feature-request button i {
  margin-right: 7px;
}

.feature-submit-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.feature-submit-card > p.feature-submit-intro {
  font-size: 0.95rem;
  line-height: 1.35;
}

.feature-submit-card > p.is-error {
  color: var(--accent);
}

.feature-list-section {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

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

.feature-request {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.feature-request > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.feature-request > div span,
.feature-request > div strong {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.feature-request > div span {
  background: rgba(17, 17, 17, 0.06);
  color: var(--ink);
}

.feature-request > div strong {
  background: var(--accent);
  color: #fff;
}

.feature-request h3 {
  margin: 0;
  font-size: clamp(1.3rem, 6vw, 2rem);
  line-height: 1.02;
}

.feature-request p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.feature-request footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feature-request b {
  font-size: 1.15rem;
}

.feature-request button {
  min-height: 42px;
  padding: 0 15px;
}

.feature-request button:disabled {
  background: rgba(17, 17, 17, 0.12);
  color: rgba(17, 17, 17, 0.52);
  cursor: default;
}

.feature-request.is-priority {
  border-color: rgba(242, 13, 27, 0.3);
}

.feature-success-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.36), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(255, 209, 102, 0.72), transparent 16%),
    linear-gradient(135deg, #f20d1b 0%, #ff8a00 48%, #ffd166 100%);
}

.feature-success-modal[hidden] {
  display: none;
}

.feature-success-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: opacity 180ms ease;
}

.feature-success-modal__backdrop::before {
  content: "";
  position: absolute;
  inset: -40vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.18) 0deg 9deg, transparent 9deg 18deg);
  animation: rewardRaysSpin 34s linear infinite;
}

.feature-success-card {
  position: relative;
  z-index: 2;
  width: min(calc(100vw - 28px), 520px);
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 6px solid rgba(255, 255, 255, 0.86);
  border-radius: 30px;
  padding: 34px 22px 22px;
  background: #fff;
  text-align: center;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.32), 0 0 0 12px rgba(255, 255, 255, 0.14);
  transform: translateY(18px) scale(0.82) rotate(-2deg);
  opacity: 0;
  transition: transform 620ms var(--pop), opacity 220ms ease;
}

.feature-success-modal.is-open .feature-success-modal__backdrop {
  opacity: 1;
}

.feature-success-modal.is-open .feature-success-card {
  transform: translateY(0) scale(1) rotate(0deg);
  opacity: 1;
}

.feature-success-card__icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.8rem;
  animation: centerPulse 1.8s ease-in-out infinite;
}

.feature-success-card > p:first-of-type {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.feature-success-card h2 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 3.4rem);
  line-height: 0.94;
}

.feature-success-card > p:last-of-type {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.feature-success-card > button:last-child {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

@media (max-height: 950px) and (min-width: 700px) {
  .brand {
    width: min(62vw, 285px);
  }

  .home-title {
    padding-top: 8px;
    font-size: clamp(2.4rem, 9vw, 5.4rem);
  }

  .wheel-stage {
    width: min(74svh, 520px, 100%);
  }

  .edit-wheel-button {
    min-height: 44px;
    padding: 0 16px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .app-shell {
    width: min(100% - 18px, 1120px);
  }

  .primary-link,
  .route-link {
    min-width: 0;
  }

  .app-panel,
  .result-panel {
    padding: 16px;
  }

  .workspace {
    margin-top: 14px;
  }

  .rank-card div,
  .timeline div {
    display: grid;
  }
}

.score-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(242, 13, 27, 0.12), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(255, 138, 0, 0.2), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f7f7f7 48%, #fff3ed 100%);
}

.score-app {
  width: min(760px, calc(100% - 24px));
  min-height: var(--score-app-min-height, calc(100svh - 116px));
  margin: 0 auto;
  padding-bottom: 22px;
  align-content: start;
}

.score-hero {
  padding: 8px 0 16px;
}

.score-hero h1 {
  margin: 10px 0 8px;
  max-width: 680px;
  font-size: clamp(2.8rem, 14vw, 5.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.score-hero p {
  margin: 0;
  max-width: 540px;
  color: rgba(17, 17, 17, 0.68);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.35;
}

.score-board {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(110px, 0.8fr);
  gap: 10px;
  margin: 0 0 14px;
}

.score-leader,
.score-last {
  min-height: 124px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 16px;
  color: #fff;
}

.score-leader {
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(135deg, #f20d1b 0%, #ff8a00 100%);
}

.score-leader::after {
  content: "";
  position: absolute;
  inset: auto -20% -54% 28%;
  height: 130px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(-12deg);
}

.score-last {
  background: #111;
}

.score-leader span,
.score-last span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.2rem;
}

.score-leader p,
.score-last p {
  margin: 12px 0 3px;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
  opacity: 0.8;
}

.score-leader strong,
.score-last strong {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  line-height: 1.05;
}

.score-leader b,
.score-last b {
  position: absolute;
  right: 16px;
  bottom: 10px;
  z-index: 1;
  font-size: 3.4rem;
  line-height: 0.8;
}

.score-add-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
}

.score-add-player label {
  display: grid;
  gap: 7px;
}

.score-add-player span {
  padding-left: 10px;
  color: rgba(17, 17, 17, 0.58);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.score-add-player input {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  padding: 0 16px;
  background: #f4f4f4;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 950;
  outline: none;
}

.score-add-player input:focus {
  box-shadow: inset 0 0 0 2px var(--accent);
  background: #fff;
}

.score-add-player button,
.score-actions button {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 950;
  transition: transform 160ms var(--pop);
}

.score-add-player button:active,
.score-actions button:active,
.score-validate:active {
  transform: scale(0.94);
}

.score-players {
  display: grid;
  gap: 10px;
}

.score-player {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 28px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
}

.score-player::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--player-color);
}

.score-player.is-positive {
  animation: scorePop 420ms var(--pop);
}

.score-player.is-negative {
  animation: scoreDip 420ms ease;
}

.score-player.is-first {
  border-color: rgba(242, 13, 27, 0.24);
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 210, 63, 0.35), transparent 24%),
    #fff;
}

.score-player.is-last {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}

.score-player__rank {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 20px;
  background: #f4f4f4;
  color: rgba(17, 17, 17, 0.52);
  font-weight: 950;
}

.score-player.is-first .score-player__rank {
  background: var(--accent);
  color: #fff;
}

.score-player.is-last .score-player__rank {
  background: #111;
  color: #fff;
}

.score-player__main {
  min-width: 0;
}

.score-player__main header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
}

.score-player__main strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-player__main header button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: rgba(17, 17, 17, 0.45);
}

.score-player__score {
  margin: 2px 0 8px;
  font-size: clamp(3.4rem, 18vw, 6rem);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: 0;
}

.score-player__controls {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.score-player__controls input[type="number"] {
  width: 100%;
  border: 0;
  min-height: 52px;
  border-radius: 18px;
  padding: 0 8px;
  background: #f4f4f4;
  color: rgba(17, 17, 17, 0.58);
  font-size: 1.3rem;
  font-weight: 950;
  text-align: center;
  outline: none;
}

.score-player__controls input[type="number"]:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.score-player__controls input[type="number"].is-positive {
  background: rgba(242, 13, 27, 0.1);
  color: var(--accent);
}

.score-player__controls input[type="number"].is-negative {
  background: rgba(17, 17, 17, 0.08);
  color: #111;
}

.score-player__controls input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--accent);
}

.score-validate {
  grid-column: 1 / -1;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  transition: transform 160ms var(--pop);
}

.score-empty {
  margin: 14px 0;
  border: 1px dashed rgba(17, 17, 17, 0.18);
  border-radius: 28px;
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.score-empty i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.35rem;
}

.score-empty h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.score-empty p {
  margin: 0 auto;
  max-width: 330px;
  color: rgba(17, 17, 17, 0.62);
  font-weight: 800;
  line-height: 1.35;
}

.score-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 0;
}

.score-actions button {
  background: #111;
}

.score-actions button:last-child {
  background: #f1f1f1;
  color: rgba(17, 17, 17, 0.62);
}

@keyframes scorePop {
  0% { transform: scale(1); }
  42% { transform: scale(1.035) rotate(-0.6deg); }
  100% { transform: scale(1); }
}

@keyframes scoreDip {
  0% { transform: translateX(0); }
  32% { transform: translateX(-5px); }
  64% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

@media (max-width: 520px) {
  .score-app {
    width: min(100% - 18px, 760px);
  }

  .score-board {
    grid-template-columns: 1fr;
  }

  .score-leader,
  .score-last {
    min-height: 108px;
    border-radius: 24px;
  }

  .score-last {
    min-height: 82px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
  }

  .score-last p {
    margin: 0;
  }

  .score-last b {
    position: static;
    font-size: 2.3rem;
  }

  .score-add-player {
    grid-template-columns: 1fr;
  }

  .score-player {
    grid-template-columns: 44px minmax(0, 1fr);
    border-radius: 24px;
    padding: 8px;
  }

  .score-player__controls {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .score-actions {
    grid-template-columns: 1fr;
  }
}

.score-flow {
  display: grid;
  gap: 14px;
}

.score-seo {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto 18px;
  padding-top: 22px;
}

.score-seo h2 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.score-seo details {
  background: rgba(255, 255, 255, 0.86);
}

.score-seo details p {
  color: rgba(17, 17, 17, 0.68);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.45;
}

.score-seo strong {
  color: var(--accent);
  font-weight: 950;
}

.score-stats {
  width: min(760px, calc(100% - 24px));
  margin: 0 auto 22px;
}

.score-stats__hero {
  padding: 8px 0 16px;
}

.score-stats__hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(2.8rem, 14vw, 5.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.score-stats__hero p {
  margin: 0;
  max-width: 560px;
  color: rgba(17, 17, 17, 0.68);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.35;
}

.score-stats__periods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding: 6px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.score-stats__periods button {
  min-height: 46px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: rgba(17, 17, 17, 0.55);
  cursor: pointer;
  font-weight: 950;
}

.score-stats__periods button.is-active {
  background: var(--accent);
  color: #fff;
}

.score-stats__empty,
.score-stats__summary article,
.score-stats__block {
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.score-stats__empty {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  border-radius: 28px;
  padding: 24px;
  text-align: center;
}

.score-stats__empty i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
}

.score-stats__empty h2,
.score-stats__block h2 {
  margin: 0;
  font-size: clamp(1.65rem, 7vw, 3rem);
  line-height: 0.98;
}

.score-stats__empty p {
  margin: 0;
  color: rgba(17, 17, 17, 0.62);
  font-weight: 820;
}

.score-stats__empty a {
  min-height: 52px;
  display: inline-grid;
  place-items: center;
  margin-top: 4px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 950;
  text-decoration: none;
}

.score-stats__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.score-stats__summary article {
  display: grid;
  gap: 5px;
  min-height: 126px;
  align-content: center;
  border-radius: 24px;
  padding: 16px;
}

.score-stats__summary span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.score-stats__summary strong {
  overflow: hidden;
  font-size: clamp(2rem, 10vw, 4rem);
  font-weight: 950;
  line-height: 0.9;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-stats__summary em {
  color: rgba(17, 17, 17, 0.52);
  font-style: normal;
  font-weight: 850;
}

.score-stats__block {
  margin-top: 12px;
  border-radius: 28px;
  padding: 16px;
}

.score-stats__winners,
.score-stats__timeline,
.score-stats__players {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.score-stats__winners > p,
.score-stats__timeline > p,
.score-stats__players > p {
  margin: 0;
  color: rgba(17, 17, 17, 0.6);
  font-weight: 820;
}

.score-stats__winners article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 20px;
  padding: 10px;
  background: #f6f6f6;
}

.score-stats__winners article.is-top {
  background: linear-gradient(135deg, var(--accent), #ff8a00);
  color: #fff;
}

.score-stats__winners article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--player-color);
  color: #fff;
  font-weight: 950;
}

.score-stats__winners article.is-top > span {
  background: #fff;
  color: var(--accent);
}

.score-stats__winners strong,
.score-stats__players strong {
  display: block;
  overflow: hidden;
  font-size: 1.08rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-stats__winners em {
  color: rgba(17, 17, 17, 0.52);
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 820;
}

.score-stats__winners article.is-top em {
  color: rgba(255, 255, 255, 0.78);
}

.score-stats__winners b {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 950;
}

.score-stats__winners article.is-top b {
  color: #fff;
}

.score-stats__timeline article {
  display: grid;
  gap: 10px;
  border-radius: 22px;
  padding: 12px;
  background: #f6f6f6;
}

.score-stats__timeline header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.score-stats__timeline header strong {
  font-size: 1.05rem;
  font-weight: 950;
}

.score-stats__timeline header span {
  color: rgba(17, 17, 17, 0.48);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: right;
}

.score-stats__timeline p {
  display: grid;
  grid-template-columns: minmax(72px, 0.8fr) minmax(0, 1.3fr) auto;
  gap: 8px;
  align-items: center;
  margin: 7px 0 0;
}

.score-stats__timeline p span,
.score-stats__timeline p b {
  font-size: 0.84rem;
  font-weight: 950;
}

.score-stats__timeline p span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-stats__timeline p i {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--player-color) var(--score-width), rgba(17, 17, 17, 0.08) var(--score-width));
}

.score-stats__players article {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  border-radius: 18px;
  padding: 14px;
  background: #f6f6f6;
}

.score-stats__players article > span {
  width: 14px;
  height: 100%;
  min-height: 72px;
  border-radius: 999px;
  background: var(--player-color);
}

.score-stats__players article > div {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.score-stats__players dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.score-stats__players dl div {
  min-width: 0;
  border-radius: 14px;
  padding: 9px 8px;
  background: rgba(255, 255, 255, 0.72);
}

.score-stats__players dt,
.score-stats__players dd {
  margin: 0;
}

.score-stats__players dt {
  color: rgba(17, 17, 17, 0.56);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.score-stats__players dd {
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 950;
  line-height: 1;
}

.score-screen {
  animation: scoreScreenIn 220ms ease both;
}

.score-screen h1 {
  margin: 10px 0 8px;
  max-width: 680px;
  font-size: clamp(2.8rem, 14vw, 5.8rem);
  line-height: 0.88;
}

.score-screen p {
  margin: 0 0 16px;
  max-width: 540px;
  color: rgba(17, 17, 17, 0.68);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.35;
}

.score-rankbar {
  position: sticky;
  top: 0;
  z-index: 140;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: -2px -4px 2px;
  padding: 8px 4px;
  border-radius: 0 0 24px 24px;
  background: rgba(247, 247, 247, 0.78);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.score-flow.has-score-rankbar {
  padding-top: 70px;
}

.score-flow.has-score-rankbar .score-rankbar {
  position: fixed;
  top: var(--score-rankbar-top, max(8px, env(safe-area-inset-top)));
  left: 50%;
  width: min(760px, calc(100% - 18px));
  margin: 0;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.score-rankbar::-webkit-scrollbar {
  display: none;
}

.score-rankbar span {
  min-width: 104px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  padding: 7px 9px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.score-rankbar b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--player-color);
  color: #fff;
  font-size: 0.72rem;
}

.score-rankbar strong {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-rankbar em {
  color: var(--accent);
  font-style: normal;
  font-weight: 950;
}

.score-rankbar .is-first {
  background: var(--accent);
  color: #fff;
}

.score-rankbar .is-first b {
  background: #fff;
  color: var(--accent);
}

.score-rankbar .is-first em {
  color: #fff;
}

.score-participants,
.score-order-list {
  display: grid;
  gap: 10px;
}

.score-participant,
.score-order-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
}

.score-participant::before,
.score-order-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--player-color);
}

.score-participant > span,
.score-order-item > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f4f4f4;
  font-weight: 950;
}

.score-participant strong,
.score-order-item strong {
  overflow: hidden;
  font-size: 1.15rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-participant button,
.score-order-item button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: rgba(17, 17, 17, 0.5);
}

.score-order-item div {
  display: flex;
  gap: 6px;
}

.score-order-item button:disabled {
  opacity: 0.32;
}

.score-main-action,
.score-nav-actions button {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 950;
  transition: transform 160ms var(--pop), opacity 160ms ease;
}

.score-main-action {
  width: 100%;
  margin-top: 14px;
}

.score-main-action:disabled {
  opacity: 0.35;
}

.score-nav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.score-nav-actions button:first-child {
  background: #111;
}

.score-order-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.score-order-actions button {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 950;
}

.score-order-actions button:last-child {
  min-height: 42px;
  background: transparent;
  color: rgba(17, 17, 17, 0.48);
  font-size: 0.86rem;
}

.score-turn-card {
  overflow: hidden;
  border-radius: 30px;
  padding: 16px;
  background: #fff;
}

.score-turn-card__score {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  color: #fff;
  transition: transform 220ms var(--pop), background 220ms ease;
}

.score-turn-card__score.is-positive {
  animation: scorePop 420ms var(--pop);
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a00 100%);
}

.score-turn-card__score.is-negative {
  animation: scoreDip 420ms ease;
}

.score-turn-card__score span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.score-turn-card__score strong {
  font-size: clamp(5rem, 30vw, 9rem);
  font-weight: 950;
  line-height: 0.9;
}

.score-turn-controls {
  margin-top: 14px;
}

.score-turn-controls {
  grid-template-columns: 58px minmax(0, 1fr) 58px;
}

.score-turn-controls button {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  -webkit-tap-highlight-color: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 950;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.score-turn-controls button:first-child {
  background: #111;
}

.score-turn-controls button:last-child {
  background: #111;
}

.score-turn-controls input[type="number"] {
  min-height: 58px;
  font-size: 1.5rem;
}

@keyframes scoreScreenIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .score-nav-actions {
    grid-template-columns: 1fr;
  }

  .score-rankbar {
    margin-inline: -9px;
    padding-inline: 9px;
  }
}

.score-add-player {
  grid-template-columns: minmax(0, 1fr) 76px auto;
}

.score-add-player .score-color-field {
  min-width: 0;
}

.score-add-player input[type="color"],
.score-participant input[type="color"] {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  padding: 5px;
  background: #f4f4f4;
}

.score-participant {
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
}

.score-order-item {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.score-participant input[type="color"] {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 50%;
  padding: 4px;
}

.score-turn-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.score-turn-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  padding: 0 10px;
  background: #f1f1f1;
  color: rgba(17, 17, 17, 0.72);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 950;
  transition: transform 160ms var(--pop);
}

.score-turn-actions button:active,
.score-link-action:active,
.score-finish-card > button:last-child:active {
  transform: scale(0.95);
}

.score-turn-actions__validate {
  grid-column: 1 / -1;
  min-height: 62px !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 1.08rem !important;
}

.score-link-action {
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: rgba(17, 17, 17, 0.48);
  font-weight: 950;
}

.score-turn-card__hero {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.5), transparent 18%),
    linear-gradient(135deg, var(--player-color) 0%, var(--player-color) 100%);
  color: #fff;
}

.score-turn-card__hero::before {
  content: "";
  position: absolute;
  inset: -30% -12% auto auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.score-turn-card__hero > i {
  position: absolute;
  inset: auto auto -24px -24px;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.score-turn-card__hero.is-positive {
  animation: scorePop 420ms var(--pop);
}

.score-turn-card__hero.is-negative {
  animation: scoreDip 420ms ease;
}

.score-turn-card__hero .score-turn-card__score {
  position: relative;
  z-index: 1;
  min-height: 0;
  background: transparent;
}

.score-turn-card__name {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.score-turn-card__name span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--player-color);
}

.score-turn-card__name strong {
  overflow: hidden;
  font-size: 1.2rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-finish-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.36), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(255, 209, 102, 0.72), transparent 16%),
    linear-gradient(135deg, #f20d1b 0%, #ff8a00 48%, #ffd166 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.score-finish-modal[hidden] {
  display: none;
}

.score-finish-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.score-finish-modal.is-open .feature-success-modal__backdrop {
  opacity: 1;
}

.score-finish-card {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  max-height: min(760px, calc(100svh - 34px));
  overflow: auto;
  border-radius: 34px;
  border: 6px solid rgba(255, 255, 255, 0.86);
  padding: 26px;
  background: #fff;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.32), 0 0 0 12px rgba(255, 255, 255, 0.14);
  opacity: 0;
  transform: translateY(18px) scale(0.82) rotate(-2deg);
  transition: transform 620ms var(--pop), opacity 220ms ease;
}

.score-finish-modal.is-open .score-finish-card {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

.score-finish-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.5rem;
}

.score-finish-card > p {
  margin: 16px 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.score-finish-card h2 {
  margin: 0;
  font-size: clamp(2.4rem, 11vw, 4.4rem);
  line-height: 0.92;
}

.score-finish-card > strong {
  display: block;
  margin-top: 8px;
  color: rgba(17, 17, 17, 0.62);
  font-size: 1.3rem;
}

.score-finish-card ol {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.score-finish-card li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  padding: 8px;
  background: #f5f5f5;
}

.score-finish-card li span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--player-color);
  color: #fff;
  font-weight: 950;
}

.score-finish-card li strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-finish-card li em {
  color: var(--accent);
  font-style: normal;
  font-weight: 950;
}

.score-finish-card [data-score-finish-restart] {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 950;
}

.score-leader-card [data-score-leader-close] {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 950;
}

.score-finish-card__secondary {
  width: 100%;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  margin: -4px 0 0;
  border: 0 !important;
  border-radius: 999px;
  padding: 0;
  background: transparent !important;
  color: rgba(17, 17, 17, 0.48) !important;
  min-height: 40px !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

@media (max-width: 520px) {
  .score-add-player {
    grid-template-columns: 1fr 72px;
  }

  .score-add-player button {
    grid-column: 1 / -1;
  }
}
