:root {
  --bg-cream: #ffe9bb;
  --bg-peach: #ffd7c5;
  --bg-gold: #ffd663;
  --ink: #7b4a1f;
  --ink-soft: #9a6d46;
  --line: rgba(150, 95, 43, 0.24);
  --white: #fffdf7;
  --bubble: rgba(255, 255, 255, 0.54);
  --glass: rgba(255, 255, 255, 0.38);
  --green-a: #8fef49;
  --green-b: #52a91b;
  --pink-a: #ff7aa8;
  --pink-b: #ff4f85;
  --blue-a: #7ecbff;
  --blue-b: #2a8ee9;
  --gold-a: #ffd95c;
  --gold-b: #ffb400;
  --shadow-candy: 0 14px 0 rgba(144, 77, 27, 0.18), 0 22px 42px rgba(177, 109, 42, 0.22);
  --shadow-soft: 0 18px 40px rgba(169, 102, 48, 0.16);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Verdana", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.24) 25%, transparent 25%) -28px 0 / 56px 56px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%) -28px 0 / 56px 56px,
    linear-gradient(315deg, rgba(255, 255, 255, 0.16) 25%, transparent 25%) 0 0 / 56px 56px,
    linear-gradient(45deg, rgba(255, 255, 255, 0.16) 25%, transparent 25%) 0 0 / 56px 56px,
    linear-gradient(180deg, #ffd5ca 0%, #ffe8b8 45%, #ffd866 100%);
  min-height: 100vh;
}

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

.shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0 0;
}

.nav-wrap,
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border: 1px solid rgba(167, 112, 53, 0.18);
  border-radius: 999px;
  background: rgba(255, 251, 243, 0.68);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 18px;
  background: url("./unity-app-icon.png") center / cover no-repeat;
  box-shadow: 0 10px 22px rgba(111, 57, 24, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.brand-mark::before,
.brand-mark::after {
  content: none;
}

.brand-mark::before {
  width: 24px;
  height: 24px;
  left: 9px;
  top: 16px;
  background: radial-gradient(circle at 30% 30%, #fff8ff 0%, #ff7ead 35%, #ff4f8a 100%);
}

.brand-mark::after {
  width: 20px;
  height: 20px;
  right: 8px;
  top: 12px;
  background: radial-gradient(circle at 30% 30%, #fff5cc 0%, #ffd95f 38%, #ffa408 100%);
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 1.06rem;
  white-space: nowrap;
}

.brand-copy span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
}

.hero {
  padding: 34px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 26px;
  align-items: stretch;
}

.hero-copy,
.hero-stage,
.card,
.legal-card,
.content-card,
.contact-card,
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 251, 243, 0.58);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #a15a20;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff8eb8, #f04f82);
  box-shadow: 0 0 0 4px rgba(255, 122, 168, 0.18);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.04;
}

h1 {
  margin-top: 16px;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  letter-spacing: -0.04em;
}

.candy-text {
  display: inline-block;
  color: #fffef8;
  text-shadow:
    0 4px 0 rgba(153, 79, 29, 0.2),
    0 10px 18px rgba(176, 86, 28, 0.2);
}

.hero-logo {
  display: block;
  width: min(100%, 560px);
  margin: 16px 0 8px;
  filter: drop-shadow(0 12px 22px rgba(27, 83, 140, 0.18));
}

.candy-text .alt {
  color: #fff3a5;
}

.candy-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #ffecf5);
  color: #49b8d2;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 900;
}

.lead {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(163, 102, 43, 0.14);
  font-weight: 800;
  color: #8d561f;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 900;
  border: 0;
  position: relative;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: saturate(1.06);
}

.button-primary {
  color: #fffef7;
  background: linear-gradient(180deg, var(--green-a), var(--green-b));
  box-shadow: inset 0 -6px 0 rgba(53, 111, 17, 0.34), var(--shadow-candy);
}

.button-secondary {
  color: #7a4f1e;
  background: linear-gradient(180deg, #ffffff, #ffe9c8);
  box-shadow: inset 0 -6px 0 rgba(207, 149, 74, 0.34), var(--shadow-candy);
}

.hero-stage {
  padding: 22px;
}

.screen-stack {
  display: grid;
  gap: 18px;
}

.screen-shot {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 2px solid rgba(167, 112, 53, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 16%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 25%, transparent 25%) -24px 0 / 48px 48px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.16) 25%, transparent 25%) -24px 0 / 48px 48px,
    linear-gradient(315deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%) 0 0 / 48px 48px,
    linear-gradient(45deg, rgba(255, 255, 255, 0.14) 25%, transparent 25%) 0 0 / 48px 48px,
    linear-gradient(180deg, #f9d3c8 0%, #ffe8b5 48%, #f7da58 100%);
  box-shadow: var(--shadow-soft);
}

.splash-shot {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 24px;
}

.game-logo {
  display: block;
  width: min(100%, 680px);
  filter: drop-shadow(0 18px 28px rgba(20, 80, 140, 0.24));
}

.loading-dots {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 112px;
  height: 72px;
  transform: translateX(-50%);
}

.loading-dots span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.loading-dots span:nth-child(1) { left: 6px; top: 28px; background: #f4d4e9; }
.loading-dots span:nth-child(2) { left: 18px; top: 6px; background: #ff7aa8; width: 22px; height: 22px; }
.loading-dots span:nth-child(3) { left: 48px; top: 0; background: #ff5f90; width: 24px; height: 24px; }
.loading-dots span:nth-child(4) { right: 8px; top: 18px; background: #ef2d6f; width: 28px; height: 28px; }
.loading-dots span:nth-child(5) { left: 14px; bottom: 14px; background: #f0d8ef; }
.loading-dots span:nth-child(6) { left: 44px; bottom: 0; background: #ffffff; }
.loading-dots span:nth-child(7) { right: 26px; bottom: 10px; background: #fff9ec; width: 10px; height: 10px; }

.play-shot {
  padding: 0;
}

.phone {
  position: relative;
  height: 100%;
  min-height: 760px;
  padding: 16px;
  border-radius: 34px;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26) 25%, transparent 25%) -26px 0 / 52px 52px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.16) 25%, transparent 25%) -26px 0 / 52px 52px,
    linear-gradient(315deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%) 0 0 / 52px 52px,
    linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%) 0 0 / 52px 52px;
  pointer-events: none;
}

.phone-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
}

.hud-row {
  display: grid;
  grid-template-columns: 1.15fr auto auto;
  gap: 10px;
  align-items: center;
}

.hud-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(104, 72, 50, 0.56);
  color: #fff7e4;
  box-shadow: inset 0 -5px 0 rgba(75, 48, 29, 0.18);
}

.hud-pill strong {
  font-size: 1.2rem;
}

.mini-icon,
.coin-icon,
.gear-icon,
.dessert,
.prop-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini-icon {
  width: 44px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #77d63c, #2eaa14);
  box-shadow: inset 0 -4px 0 rgba(23, 105, 7, 0.25);
}

.mini-icon::before {
  content: "";
  width: 22px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 248, 203, 0.8);
}

.cash-button {
  min-width: 140px;
  min-height: 84px;
  padding: 0;
  border-radius: 0;
  background: url("./unity-cash.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  box-shadow: none;
}

.coin-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff8eb;
  font-weight: 900;
  font-size: 1.15rem;
}

.coin-icon {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: url("./unity-coin.png") center / contain no-repeat;
  box-shadow: none;
}

.coin-icon::before {
  content: none;
}

.subhud-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.task-book,
.gear-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f0e1d0);
  box-shadow: inset 0 -6px 0 rgba(168, 111, 54, 0.22), var(--shadow-soft);
}

.task-book::before {
  content: "";
  width: 30px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(180deg, #b3e8ff, #7bc9ff);
  box-shadow: inset -4px 0 0 rgba(255, 255, 255, 0.7);
}

.gear-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 5px solid #888587;
}

.level-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.level-wrap strong {
  font-size: 1.2rem;
}

.progress-track {
  width: min(100%, 318px);
  height: 18px;
  border-radius: 999px;
  background: rgba(121, 92, 67, 0.48);
  border: 1px solid rgba(104, 64, 28, 0.26);
  overflow: hidden;
}

.progress-fill {
  width: 24%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #ffe15f, #f8b200);
  box-shadow: inset 0 -4px 0 rgba(169, 112, 12, 0.24);
}

.tray {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.tray-slot {
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(231, 220, 211, 0.98));
  box-shadow: inset 0 -6px 0 rgba(134, 93, 58, 0.18), 0 8px 18px rgba(142, 90, 47, 0.16);
}

.board {
  position: relative;
  flex: 1;
  min-height: 520px;
  border-top: 6px dashed rgba(255, 255, 255, 0.78);
  padding: 24px 6px 180px;
  overflow: hidden;
}

.bubble {
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.88) 0 7%, transparent 8%),
    radial-gradient(circle at 40% 36%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 55%, rgba(255, 183, 225, 0.04) 100%);
  border: 2px solid rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.3), 0 12px 28px rgba(243, 145, 184, 0.16);
}

.bubble::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 206, 242, 0.14), rgba(141, 231, 255, 0.06));
}

.dessert {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: drop-shadow(0 8px 12px rgba(111, 57, 24, 0.14));
}

.dessert.donut {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #694328 18%, transparent 19%), radial-gradient(circle at 35% 35%, #d8d1ff 0%, #7d5bf4 40%, #4d208d 100%);
}

.dessert.roll {
  width: 46px;
  height: 34px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, #fff4f6 0 22%, #ff8fb0 23% 54%, #f36d97 55% 100%);
}

.dessert.cake {
  width: 48px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(180deg, #b389c8 0 35%, #f6d7fc 35% 65%, #9d79bd 65% 100%);
}

.dessert.cash {
  width: 48px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #8be455, #43b924);
  transform: translate(-50%, -50%) rotate(-12deg);
}

.dessert.cash::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 244, 201, 0.58);
}

.dessert.cone {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 40px solid #d99c39;
}

.dessert.cone::before {
  content: "";
  position: absolute;
  left: -18px;
  top: -32px;
  width: 36px;
  height: 22px;
  border-radius: 50% 50% 40% 40%;
  background: linear-gradient(180deg, #ffe487, #ffc61c);
}

.props-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 28px 18px 24px;
  background: linear-gradient(180deg, rgba(228, 244, 208, 0.56), rgba(199, 219, 181, 0.72));
  border-top: 1px solid rgba(117, 96, 53, 0.16);
  backdrop-filter: blur(6px);
}

.prop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.prop-bubble {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7fd0ff, #2f87ea);
  box-shadow: inset 0 -8px 0 rgba(28, 99, 176, 0.32), 0 16px 28px rgba(49, 128, 216, 0.24);
  color: #fffef7;
  font-size: 2rem;
  font-weight: 900;
}

.prop-bubble::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 16px;
  width: 20px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.prop-bubble[data-prop="undo"]::after {
  content: "\21B6";
}

.prop-bubble[data-prop="magnet"]::after {
  content: "U";
}

.prop-bubble[data-prop="shuffle"]::after {
  content: "\2731";
}

.count {
  position: absolute;
  top: -4px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff5f69, #d92649);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(205, 43, 77, 0.26);
}

.section {
  padding: 18px 0 26px;
}

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

.section-head h2,
.legal-card h1,
.content-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-head p,
.card p,
.card li,
.legal-card p,
.legal-card li,
.content-card p,
.content-card li,
.contact-card p,
.contact-card li,
.feature-card p,
.feature-card li {
  color: var(--ink-soft);
  line-height: 1.72;
}

.grid,
.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

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

.card,
.legal-card,
.content-card,
.contact-card,
.feature-card {
  padding: 28px;
}

.card h3,
.feature-card h3,
.contact-card h2,
.content-card h2 {
  font-size: 1.3rem;
}

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

.card li + li,
.legal-card li + li,
.content-card li + li,
.contact-card li + li {
  margin-top: 8px;
}

.mini-stage {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.54);
}

.mini-stage .tray-slot {
  width: 56px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #90571f;
  font-weight: 800;
}

.legal-main {
  padding: 32px 0 30px;
}

.legal-grid {
  display: grid;
  gap: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.info-grid div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.info-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.alert {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 246, 224, 0.92), rgba(255, 226, 219, 0.88));
  border: 1px solid rgba(183, 111, 55, 0.18);
}

.content-card + .content-card {
  margin-top: 18px;
}

.site-footer {
  padding: 10px 0 34px;
}

.footer-card {
  padding: 20px 24px;
  border-radius: 28px;
  background: rgba(255, 251, 243, 0.62);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-soft);
  font-weight: 700;
}

.legal-note {
  color: var(--ink-soft);
  text-align: right;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid,
  .grid-3,
  .grid-2,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    min-height: 680px;
  }
}

@media (max-width: 720px) {
  .nav-wrap,
  .nav-row,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-stage,
  .card,
  .legal-card,
  .content-card,
  .contact-card,
  .feature-card,
  .footer-card {
    padding: 22px;
  }

  .hud-row {
    grid-template-columns: 1fr;
  }

  .subhud-row {
    grid-template-columns: auto 1fr auto;
  }

  .tray {
    grid-template-columns: repeat(4, 1fr);
  }

  .bubble {
    width: 92px;
    height: 92px;
  }

  .props-bar {
    gap: 14px;
  }

  .prop-bubble {
    width: 72px;
    height: 72px;
  }

  .splash-shot {
    min-height: 240px;
  }

  .logo-cloud {
    padding: 24px 24px 20px;
  }
}
