/* NAMZ GAMES — direction artistique roses, os et métal patiné */
:root {
  --ink: #070607;
  --ink-2: #0d090b;
  --panel: #120d10;
  --panel-2: #1b1015;
  --line: #4b2630;
  --blood: #9c2045;
  --blood-hi: #e0557d;
  --blood-lo: #5d0d28;
  --bone: #f3e9db;
  --bone-dim: #c3b5a6;
  --muted: #a19086;
  --teal: #1d5359;
  --teal-hi: #69a8a9;
  --gold: #dfc3a0;
  --radius: 4px;
  --f-display: 'Cormorant Garamond', Georgia, serif;
}

body {
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 55% 28% at 64% 5%, rgba(104, 13, 42, .19), transparent 80%),
    radial-gradient(ellipse 45% 25% at 0% 70%, rgba(21, 64, 68, .11), transparent 80%),
    repeating-linear-gradient(115deg, transparent 0 2px, rgba(255, 255, 255, .005) 2px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .85 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--bone);
  font-size: 15px;
  line-height: 1.65;
}

a { color: var(--blood-hi); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }

.topbar {
  min-height: 80px;
  padding: 13px clamp(20px, 4vw, 72px);
  gap: clamp(22px, 3vw, 52px);
  background: rgba(7, 6, 7, .91);
  border-bottom-color: rgba(158, 79, 93, .3);
  backdrop-filter: blur(18px);
}
.topbar::after { background: linear-gradient(90deg, transparent, rgba(218, 173, 168, .7), var(--blood), rgba(218, 173, 168, .7), transparent); }
.brand { gap: 0; flex-shrink: 0; }
.brand-logo { display: block; width: 216px; height: 64px; object-fit: contain; transition: filter .35s ease, transform .35s ease; }
.brand:hover .brand-logo { filter: drop-shadow(0 0 10px rgba(213, 53, 100, .4)); transform: translateY(-1px); }
.brand-mark { width: 36px; height: 36px; color: var(--bone); filter: drop-shadow(0 0 9px rgba(197, 36, 79, .55)); }
.brand-name { font: 700 17px var(--f-label); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; background: linear-gradient(180deg, #fff7e9 20%, #eed6cc 49%, #bf4565 92%); -webkit-background-clip: text; background-clip: text; }
.nav { justify-content: center; gap: clamp(2px, 1vw, 16px); }
.nav a { padding: 10px 9px; border-radius: 0; font-size: 11px; letter-spacing: .17em; color: #baaca4; }
.nav a:hover { background: transparent; color: var(--bone); }
.nav a.active::after { left: 9px; right: 9px; bottom: 3px; height: 1px; background: linear-gradient(90deg, transparent, var(--blood-hi), transparent); }
.me { border-radius: 2px; background: #140e11; padding: 4px 8px 4px 4px; }
.me img { border-radius: 2px; }
.me .bal { color: var(--bone); }
.burger { border-radius: 2px; }

.btn {
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 2px;
  border-color: #ef7d9a;
  background: linear-gradient(155deg, #c53b63 0%, #8d193b 54%, #5b0d25 100%);
  box-shadow: inset 0 1px 0 rgba(255, 233, 221, .31), 0 13px 25px -16px rgba(214, 54, 101, .8);
  font-size: 11px;
  letter-spacing: .16em;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 233, 221, .37), 0 16px 30px -14px rgba(214, 54, 101, .7); }
.btn.ghost { border-color: rgba(224, 182, 178, .47); background: rgba(8, 6, 8, .45); color: var(--bone); }
.btn.ghost:hover { border-color: var(--bone); background: rgba(115, 31, 56, .18); }
.btn.sm { min-height: 39px; padding: 9px 15px; font-size: 10px; }
.btn.discord { background: linear-gradient(155deg, #4c699f, #343c73); border-color: #7e99c5; box-shadow: 0 12px 25px -16px rgba(110, 124, 218, .8); }
.btn.teal { background: linear-gradient(155deg, #35767b, #184349); border-color: #82b9b8; }

.view { width: 100%; max-width: 1480px; padding: 0 clamp(20px, 4vw, 72px) 100px; animation: none; }
.section { margin-top: clamp(72px, 8vw, 112px); }
.eyebrow { font-size: 10px; letter-spacing: .33em; color: #ee8ca6; }
.section-head { text-align: left; margin-bottom: 32px; }
.section-head h2 { margin-top: 4px; font: 600 clamp(45px, 5vw, 68px)/.98 var(--f-display); letter-spacing: -.025em; }
.divider { justify-content: flex-start; max-width: 240px; margin: 17px 0 0; color: var(--blood-hi); }
.divider::before { max-width: 55px; }
.divider::before, .divider::after { background: linear-gradient(90deg, transparent, #b1546c); }
.page-title { position: relative; padding: 74px 0 38px; margin-bottom: 22px; border-bottom: 1px solid rgba(173, 91, 102, .26); text-align: left; }
.page-title::after { content: '✦'; position: absolute; bottom: -11px; right: 1%; color: var(--blood-hi); font-size: 18px; background: var(--ink); padding: 0 10px; }
.page-title h1 { font: 600 clamp(60px, 9vw, 108px)/.85 var(--f-display); letter-spacing: -.03em; background: linear-gradient(180deg, #fff6e8 20%, #dbc4b7 66%, #ac3b59); -webkit-background-clip: text; background-clip: text; }
.page-title p { max-width: 680px; margin: 22px 0 0; color: var(--bone-dim); font-size: 16px; }

.ornate {
  background: linear-gradient(145deg, rgba(37, 20, 27, .95), rgba(17, 12, 15, .98) 48%, rgba(22, 16, 18, .98));
  border-color: rgba(157, 76, 91, .48);
  border-radius: var(--radius);
  box-shadow: 0 20px 55px -42px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 219, 209, .06);
}
.ornate::before { inset: 5px; border-color: rgba(184, 79, 106, .18); border-radius: 1px; }
.corner { width: 28px; height: 28px; color: #bb4c6b; opacity: .76; }

/* Opening */
.hero {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  min-height: clamp(590px, 52vw, 720px);
  margin: 22px 0 0;
  padding: clamp(32px, 5vw, 70px) clamp(24px, 5.5vw, 82px);
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(150, 65, 82, .35);
  border-radius: 2px;
  background: radial-gradient(ellipse 58% 75% at 78% 49%, #1e0b13 0%, #080608 76%), #050405;
  isolation: isolate;
}
.hero::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(197, 96, 116, .22); pointer-events: none; z-index: 3; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(0deg, rgba(5, 4, 5, .72), transparent); z-index: 0; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; padding: 0 0 14px; }
.hero-overline { display: inline-flex; gap: 13px; align-items: center; margin-bottom: clamp(28px, 4vw, 56px); padding-bottom: 12px; border-bottom: 1px solid rgba(202, 131, 142, .36); color: #bdaaa4; font: 600 10px var(--f-label); letter-spacing: .19em; text-transform: uppercase; }
.hero-overline span { color: var(--blood-hi); font: 16px Georgia, serif; }
.hero-copy h1 { max-width: 680px; margin: 15px 0 0; color: var(--bone); background: none; filter: none; font: 600 clamp(62px, 6.2vw, 102px)/.83 var(--f-display); letter-spacing: -.043em; }
.hero-copy h1 em { display: block; padding-bottom: .12em; font-style: italic; font-weight: 600; color: #df7895; background: linear-gradient(170deg, #f3b2bd, #ae2b54 85%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-rule { width: min(240px, 48%); height: 1px; margin: 24px 0; background: linear-gradient(90deg, #cf8a97, transparent); position: relative; }
.hero-rule svg { position: absolute; left: 0; top: -10px; width: 7px; height: 20px; color: var(--bone); }
.hero .lead { max-width: 510px; margin: 0 0 30px; color: #cbbeb1; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; }
.hero .lead strong { color: var(--bone); font-weight: 700; }
.hero-cta { justify-content: flex-start; gap: 10px; }
.hero-cta .btn { min-width: 196px; }
.hero-cta .btn span[aria-hidden] { font-size: 16px; line-height: 1; }
.hero-note { margin-top: 30px; color: #988a83; font: 500 11px var(--f-body); letter-spacing: .03em; }
.note-spark { color: var(--blood-hi); margin-right: 8px; font-size: 17px; }
.hero-visual { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; min-width: 0; margin: -10% -14% -10% -7%; }
.hero-visual::before { content: ''; position: absolute; width: 82%; aspect-ratio: 1; border: 1px solid rgba(215, 163, 151, .12); border-radius: 50%; box-shadow: 0 0 0 30px rgba(140, 31, 61, .025), 0 0 0 80px rgba(140, 31, 61, .018); }
.hero-visual img { position: relative; width: 100%; max-height: 760px; object-fit: contain; mix-blend-mode: screen; filter: drop-shadow(0 18px 38px rgba(0, 0, 0, .5)); }
.ritual-strip { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 55px); min-height: 76px; border-bottom: 1px solid rgba(178, 97, 108, .27); color: #bdaea5; font: 600 11px var(--f-label); letter-spacing: .22em; text-transform: uppercase; }
.ritual-strip span { white-space: nowrap; }
.ritual-strip b { color: var(--blood-hi); margin-right: 12px; }
.ritual-strip i { width: 1px; height: 20px; background: rgba(200, 115, 132, .3); transform: rotate(24deg); }

.stats { margin: 25px 0 0; padding: 0; gap: 1px; border: 1px solid rgba(163, 80, 97, .39); background: rgba(163, 80, 97, .39); }
.stat { min-height: 124px; display: grid; align-content: center; gap: 7px; padding: 20px 12px; border: 0; border-radius: 0; background: #120d10; }
.stat b { color: var(--bone); font: 600 clamp(34px, 4vw, 50px)/.9 var(--f-display); }
.stat span { color: #a9978e; font-size: 10px; letter-spacing: .19em; }

/* Editorial cards */
.steps { gap: 14px; padding-top: 18px; }
.step { min-height: 260px; display: flex; flex-direction: column; align-items: center; padding: 48px 22px 28px; }
.step::after { top: -17px; width: 35px; height: 35px; border-radius: 0; background: #100a0e; border-color: #bc5472; color: var(--bone); line-height: 35px; }
.step .ico { width: 48px; height: 48px; margin: 8px auto 20px; color: #e7c8bb; filter: drop-shadow(0 5px 13px rgba(185, 35, 78, .35)); }
.step h3 { color: var(--bone); font: 600 27px/1.05 var(--f-display); }
.step p { color: var(--bone-dim); line-height: 1.55; }
.step { min-height: 346px; padding-top: 28px; }
.step .ritual-art { position: relative; flex: 0 0 156px; width: 156px; height: 156px; margin: 0 auto 19px; isolation: isolate; filter: none; }
.ritual-art::before { content: ''; position: absolute; z-index: -1; inset: 20%; border-radius: 50%; background: rgba(174, 39, 81, .19); filter: blur(22px); transition: background .4s ease, transform .4s ease; }
.ritual-art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); animation: ritual-float 7s ease-in-out infinite; }
.step:nth-child(2) .ritual-art img { animation-delay: -1.7s; }
.step:nth-child(3) .ritual-art img { animation-delay: -3.4s; }
.step:nth-child(4) .ritual-art img { animation-delay: -5.1s; }
.step:hover .ritual-art::before { background: rgba(199, 55, 100, .34); transform: scale(1.2); }
@keyframes ritual-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }

.games { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.game { border-radius: 2px; border-color: rgba(162, 78, 96, .46); background: #130d10; box-shadow: 0 15px 30px -28px #000; }
.game:hover { transform: translateY(-5px); border-color: #dc7190; box-shadow: 0 22px 45px -24px var(--glow, var(--blood)); }
.game-art { aspect-ratio: 4 / 4.7; background: radial-gradient(circle at 50% 25%, var(--c1), var(--c2)); }
.game-art img { position: absolute; inset: 0; z-index: 1; object-position: center top; }
.game-art::after { z-index: 2; background: linear-gradient(180deg, rgba(5, 4, 5, .45), transparent 27%, transparent 70%, #130d10 100%); }
.game-art .fallback { z-index: 0; font: 600 40px/.92 var(--f-display); color: var(--bone); }
.game-stamp { position: absolute; z-index: 3; top: 13px; left: 15px; padding: 5px 7px; background: rgba(7, 5, 7, .63); border: 1px solid rgba(232, 182, 174, .45); color: #e7d5c8; font: 600 9px var(--f-label); letter-spacing: .16em; text-transform: uppercase; }
.game-body { flex: 1; display: flex; flex-direction: column; margin-top: 0; padding: 0 18px 18px; }
.game-body h3 { min-height: 50px; font: 600 29px/1 var(--f-display); }
.game-body p { flex: 1; margin: 3px 0 18px; color: #af9e95; }
.game-body .btn { width: 100%; }
.game-actions { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 9px; }
.game-actions .btn { padding-inline: 8px; white-space: nowrap; letter-spacing: .09em; }
.brand-banner { position: relative; margin-top: clamp(72px, 8vw, 112px); padding: 7px; border: 1px solid rgba(184, 90, 106, .45); background: #050405; overflow: hidden; }
.brand-banner::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(237, 196, 184, .23); pointer-events: none; }
.brand-banner img { width: 100%; max-height: 540px; aspect-ratio: 2.25 / 1; object-fit: cover; object-position: center 45%; }

.two { gap: 18px; }
.feed { margin-top: 19px; gap: 0; }
.feed li { min-height: 58px; background: transparent; border-width: 0 0 1px; border-radius: 0; border-color: rgba(137, 69, 82, .32); padding: 9px 3px; }
.feed li:last-child { border-bottom: 0; }
.feed img, .board-row img, .leaders img { border-radius: 2px; }
.feed .who b { font-weight: 600; }
.feed .who span { color: #a18f86; }
.mult { color: var(--gold); font: 600 27px/1 var(--f-display); }
.empty { color: #b3a297; }

.challenges { gap: 17px; }
.ch { display: flex; flex-direction: column; min-height: 320px; }
.ch h3 { font: 600 35px/.98 var(--f-display); }
.ch p { line-height: 1.6; }
.ch-meta { margin-top: auto; }
.chip { border-radius: 2px; border-color: rgba(155, 82, 98, .45); background: rgba(3, 3, 4, .28); }
.badge, .status { border-radius: 2px; }
.badge.live { color: #f5a4b8; }
.timer { color: var(--gold); }

/* Forms, treasury and account */
.form { max-width: 820px; gap: 18px; margin-top: 30px; padding: clamp(24px, 4vw, 40px); }
.field { gap: 8px; }
.field label { color: #d2bdb4; }
input, select, textarea { border-radius: 2px; min-height: 46px; background: #0b080a; border-color: #65414a; }
input::placeholder, textarea::placeholder { color: #877870; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: #e17996; box-shadow: 0 0 0 3px rgba(199, 70, 106, .16); }
.multi-preview, .drop, .notice { border-radius: 2px; }
.drop { min-height: 130px; background: rgba(128, 32, 63, .1); }
.notice { background: rgba(40, 93, 95, .11); }
.table th { color: #b9a69c; border-color: #6a3d49; }
.table td { border-color: rgba(128, 67, 81, .32); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { scrollbar-color: var(--line) var(--panel); }
.boxcard { border-radius: 2px; border-color: rgba(160, 77, 92, .5); background: radial-gradient(circle at 50% 38%, rgba(143, 28, 67, .3), #170d12 72%); }
.boxcard:hover { border-color: #e47c99; }
.modal { background: rgba(3, 2, 4, .88); }
.modal-card { border-radius: 2px; }
.wallet-top { gap: 18px; }
.balance-big { font-family: var(--f-display); font-weight: 600; }
.profile-head img { border-radius: 2px; }
.tabs button { border-radius: 2px; }
.tabs button.active { border-color: #d66481; }
.review .proof { border-radius: 2px; }
.toast { border-radius: 2px; }
.loginbox .skull { filter: drop-shadow(0 0 20px rgba(197, 43, 81, .3)); }

.footer { position: relative; padding: 68px 24px 76px; border-top-color: rgba(176, 88, 103, .4); background: radial-gradient(ellipse 40% 110% at 50% 100%, rgba(101, 20, 45, .25), transparent 80%), #090709; }
.footer::before { content: ''; position: absolute; top: -10px; left: 50%; width: 18px; height: 18px; transform: translateX(-50%) rotate(45deg); background: #090709; border: 1px solid #a24e68; }
.footer-title { font-size: 42px; background: linear-gradient(180deg, var(--bone), #bc4c6a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer p { line-height: 1.7; }
.footer .muted { margin-top: 21px; color: #a18b87; font: 600 10px var(--f-label); letter-spacing: .2em; text-transform: uppercase; }

@media (max-width: 1180px) {
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding-inline: clamp(28px, 4vw, 60px); }
  .hero-copy h1 { font-size: clamp(62px, 7vw, 86px); }
}

@media (max-width: 1020px) {
  .topbar { min-height: 69px; }
  .burger { order: 3; margin-left: 0; }
  .account { margin-left: auto; }
  .nav { top: calc(100% + 1px); padding: 15px 24px 22px; gap: 0; background: rgba(10, 7, 9, .99); box-shadow: 0 28px 45px rgba(0, 0, 0, .5); }
  .nav a { padding: 13px 9px; }
  .nav a.active::after { bottom: 6px; }
  .hero { min-height: 550px; grid-template-columns: 1fr 1fr; }
  .hero-visual { margin-right: -24%; }
  .hero-overline { margin-bottom: 30px; }
  .hero-copy h1 { font-size: clamp(56px, 7vw, 75px); }
  .hero-cta .btn { min-width: 0; }
}

@media (max-width: 760px) {
  .view { padding-inline: 20px; padding-bottom: 76px; }
  .hero { display: flex; flex-direction: column-reverse; min-height: 0; padding: 0 24px 34px; gap: 0; text-align: center; }
  .hero::before { inset: 7px; }
  .hero-visual { display: block; width: min(480px, calc(100vw - 84px)); max-width: 100%; min-width: 0; height: auto; flex: none; margin: -15px auto -16px; }
  .hero-visual img { display: block; width: 100%; max-width: 100%; height: auto; max-height: 470px; }
  .hero-copy { width: min(100%, calc(100vw - 84px)); max-width: 100%; min-width: 0; padding: 0; }
  .hero-overline { display: none; }
  .hero-copy .eyebrow { margin-top: 10px; }
  .hero-copy h1 { max-width: 100%; margin: 12px auto 0; font-size: clamp(47px, 9vw, 72px); overflow-wrap: normal; }
  .hero-rule { margin: 20px auto; background: linear-gradient(90deg, transparent, #cf8a97, transparent); }
  .hero .lead { margin: 0 auto 24px; }
  .hero-cta { justify-content: center; }
  .hero-note { margin-top: 24px; }
  .ritual-strip { gap: 14px; min-height: 65px; font-size: 9px; letter-spacing: .12em; }
  .ritual-strip b { margin-right: 5px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .stat { min-height: 104px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-banner img { max-height: none; aspect-ratio: 1.7 / 1; }
  .page-title { padding-top: 55px; }
  .section-head h2 { font-size: clamp(44px, 8vw, 60px); }
}

@media (max-width: 560px) {
  .topbar { padding-inline: 16px; gap: 8px; }
  .brand-logo { width: clamp(150px, 45vw, 190px); height: 50px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-name { font-size: 13px; letter-spacing: .13em; }
  .burger { width: 37px; height: 37px; }
  .account .btn { min-height: 37px; width: 40px; padding: 7px; }
  .account .btn svg { width: 20px; }
  .hero { margin-top: 14px; padding: 0 18px 30px; }
  .hero-visual { width: min(400px, calc(100vw - 78px)); margin: -12px auto -10px; }
  .hero-copy h1 { font-size: clamp(44px, 10.5vw, 58px); }
  .hero .lead { font-size: 15px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-note { font-size: 10px; line-height: 1.5; }
  .ritual-strip { gap: 8px; font-size: 8px; }
  .ritual-strip i { height: 14px; }
  .section { margin-top: 70px; }
  .steps { gap: 28px; }
  .step { min-height: 300px; padding-top: 25px; }
  .step .ritual-art { width: 145px; height: 145px; flex-basis: 145px; margin-bottom: 12px; }
  .games { grid-template-columns: 1fr; }
  .game-art { aspect-ratio: 1.35 / 1; }
  .game-body h3 { min-height: 0; font-size: 32px; }
  .brand-banner img { aspect-ratio: 1.25 / 1; }
  .page-title h1 { font-size: clamp(57px, 14vw, 78px); }
  .page-title p { font-size: 15px; }
  .ornate { padding: 22px; }
  .form { padding: 24px; }
  .two { gap: 16px; }
  .table-wrap { padding: 18px; }
}

/* Generated artwork and motion */
.hero { background: #060506; }
.hero-backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center; animation: hero-breathe 24s ease-in-out infinite alternate; }
.hero::after { z-index: 1; height: 100%; background: linear-gradient(90deg, rgba(4, 3, 5, .5) 0%, rgba(4, 3, 5, .24) 45%, transparent 77%); }
.hero-copy { z-index: 3; }
.hero-copy h1 { max-width: 620px; font-size: clamp(64px, 6.5vw, 104px); }
.hero-visual { display: none; }
.hero-petals { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-petals i { position: absolute; top: -12%; display: block; width: 11px; height: 17px; border-radius: 80% 12% 80% 12%; background: linear-gradient(135deg, #9e2a50, #3b0a1b); border: 1px solid rgba(244, 151, 173, .45); opacity: 0; transform: rotate(25deg); animation: petal-drift 14s linear infinite; }
.hero-petals i:nth-child(1) { left: 9%; animation-delay: -2s; animation-duration: 16s; }
.hero-petals i:nth-child(2) { left: 31%; width: 8px; height: 14px; animation-delay: -9s; animation-duration: 19s; }
.hero-petals i:nth-child(3) { left: 53%; animation-delay: -5s; animation-duration: 15s; }
.hero-petals i:nth-child(4) { left: 78%; width: 8px; height: 13px; animation-delay: -11s; animation-duration: 18s; }
.hero-petals i:nth-child(5) { left: 93%; animation-delay: -4s; animation-duration: 20s; }
.hero-petals i:nth-child(6) { left: 64%; width: 6px; height: 10px; animation-delay: -14s; animation-duration: 22s; }
.hero .eyebrow { animation: intro-rise .8s .12s both; }
.hero h1 { animation: intro-rise 1s .25s both; }
.hero-rule { animation: intro-line .9s .55s both; }
.hero .lead { animation: intro-rise .9s .65s both; }
.hero-cta { animation: intro-rise .9s .78s both; }
.hero-note { animation: intro-rise .9s .95s both; }

.section-head { position: relative; isolation: isolate; }
.page-title { isolation: isolate; }
.section-rose { position: absolute; z-index: -1; right: min(4vw, 35px); top: -45px; width: 125px; aspect-ratio: 1; background: url('/img/rose-emblem.png') center / contain no-repeat; opacity: .52; filter: drop-shadow(0 0 22px rgba(138, 29, 62, .25)); animation: rose-float 7s ease-in-out infinite; }
.page-title::before { content: ''; position: absolute; z-index: -1; width: min(330px, 32vw); aspect-ratio: 1; right: 5%; top: 6px; background: url('/img/rose-emblem.png') center / contain no-repeat; opacity: .18; filter: grayscale(.1); animation: rose-float 9s ease-in-out infinite; }

.reward-feature { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 500px; margin-top: clamp(72px, 8vw, 112px); border: 1px solid rgba(174, 83, 103, .45); background: radial-gradient(circle at 28% 52%, rgba(125, 23, 55, .25), transparent 42%), #0b080a; overflow: hidden; }
.reward-feature::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(213, 150, 157, .15); pointer-events: none; }
.reward-feature::after { content: ''; position: absolute; width: 1px; height: 62%; top: 19%; left: 50%; background: linear-gradient(transparent, rgba(198, 110, 126, .43), transparent); }
.reward-feature-art { position: relative; min-height: 470px; display: grid; place-items: center; overflow: hidden; }
.reward-feature-art::before { content: ''; position: absolute; width: 64%; aspect-ratio: 1; border-radius: 50%; background: rgba(179, 46, 84, .18); filter: blur(65px); animation: glow-breathe 5s ease-in-out infinite alternate; }
.reward-feature-art img { position: relative; width: min(95%, 520px); mix-blend-mode: screen; animation: chest-float 6s ease-in-out infinite; }
.reward-feature-copy { position: relative; z-index: 1; padding: 48px clamp(32px, 5vw, 80px); }
.reward-feature-copy h2 { margin: 14px 0 22px; max-width: 490px; font: 600 clamp(48px, 5vw, 74px)/.9 var(--f-display); letter-spacing: -.03em; }
.reward-feature-copy h2 em { display: block; font-style: italic; color: #d86e8d; }
.reward-feature-copy p { max-width: 470px; color: var(--bone-dim); line-height: 1.75; margin: 0 0 30px; }
.reward-feature-copy .btn span { font-size: 17px; }
.empty-vault { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 24px 48px; margin-top: 24px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 28%, rgba(117, 25, 57, .15), transparent 60%), #0e090c; overflow: hidden; }
.empty-vault img { width: min(100%, 360px); margin: -34px auto -20px; mix-blend-mode: screen; animation: chest-float 6s ease-in-out infinite; }
.empty-vault h2 { max-width: 560px; margin: 11px 0 24px; font: 600 clamp(39px, 5vw, 60px)/.95 var(--f-display); }
.empty-rose { width: 130px; height: 130px; object-fit: contain; margin: -10px auto 6px; animation: rose-float 7s ease-in-out infinite; }

.btn { position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; inset: -130% auto -130% -50%; width: 38%; background: linear-gradient(90deg, transparent, rgba(255, 237, 227, .24), transparent); transform: translateX(-130%) rotate(24deg); transition: transform .65s ease; pointer-events: none; }
.btn:hover::before { transform: translateX(490%) rotate(24deg); }
.nav a::before { content: ''; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 1px; background: var(--blood-hi); transform: scaleX(0); transform-origin: center; transition: transform .28s ease; }
.nav a:hover::before { transform: scaleX(1); }
.step, .ch, .ornate:not(.form):not(.modal-card) { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.step:hover, .ch:hover { transform: translateY(-5px); border-color: rgba(225, 105, 137, .8); box-shadow: 0 24px 45px -30px rgba(197, 44, 87, .48); }
.step .ico { transition: transform .45s ease, filter .45s ease; }
.step:hover .ico { transform: scale(1.14) rotate(-4deg); filter: drop-shadow(0 5px 18px rgba(216, 64, 108, .58)); }
.game-art::before { content: ''; position: absolute; z-index: 3; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 244, 231, .17) 50%, transparent 65%); transform: translateX(-150%); transition: transform .8s ease; pointer-events: none; }
.game:hover .game-art::before { transform: translateX(150%); }
.game-stamp { transition: color .3s, background .3s, transform .3s; }
.game:hover .game-stamp { color: white; background: #8f2044; transform: translateY(-2px); }
.feed li { transition: background .25s ease, padding .25s ease; }
.feed li:hover { background: rgba(135, 38, 68, .12); padding-left: 8px; }
.stats .stat { position: relative; overflow: hidden; }
.stats .stat::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, #d96c89, transparent); transform: scaleX(.15); opacity: 0; transition: transform .4s ease, opacity .4s ease; }
.stats .stat:hover::after { transform: scaleX(1); opacity: 1; }
.boxcard { overflow: hidden; }
.boxcard:not(.opened)::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(218, 57, 105, .18), transparent 60%); opacity: 0; transition: opacity .35s; }
.boxcard:not(.opened):hover::before { opacity: 1; }
.brand-banner img { transition: transform 1.5s ease, filter 1.5s ease; }
.brand-banner:hover img { transform: scale(1.025); filter: saturate(1.1); }

.js-motion .motion-reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--motion-delay, 0ms); }
.js-motion .motion-reveal.is-visible { opacity: 1; transform: none; }
.js-motion :is(.game, .step, .ch, .boxcard:not(.opened)).motion-reveal.is-visible:hover { transform: translateY(-5px); transition-delay: 0ms; }

.modal-card { position: relative; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.modal-title { padding: 0 30px; }
.modal-close { position: absolute; top: 12px; right: 12px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 2px; background: #190e14; color: var(--bone-dim); font: 500 11px var(--f-body); cursor: pointer; transition: color .2s, border-color .2s; }
.modal-close:hover { color: var(--bone); border-color: var(--blood-hi); }
.chest-trigger { display: block; width: min(100%, 260px); margin: 10px auto 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.chest-trigger .chest { width: 100%; margin: 0; }
.chest-trigger:disabled { cursor: wait; }

@keyframes hero-breathe { from { transform: scale(1); } to { transform: scale(1.065); } }
@keyframes petal-drift { 0% { opacity: 0; transform: translate3d(0, -15px, 0) rotate(0deg); } 8% { opacity: .65; } 78% { opacity: .5; } 100% { opacity: 0; transform: translate3d(80px, 780px, 0) rotate(520deg); } }
@keyframes intro-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes intro-line { from { opacity: 0; transform: scaleX(.1); transform-origin: left; } to { opacity: 1; transform: scaleX(1); transform-origin: left; } }
@keyframes chest-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes rose-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }
@keyframes glow-breathe { from { opacity: .45; transform: scale(.9); } to { opacity: 1; transform: scale(1.16); } }

@media (max-width: 760px) {
  .hero { background: radial-gradient(circle at 50% 15%, #240c17, #080608 67%); }
  .hero-backdrop { display: none; }
  .hero::after { height: 32%; top: auto; background: linear-gradient(0deg, #080608, transparent); }
  .hero-visual { display: block; }
  .hero-petals i { animation-duration: 22s; }
  .hero-copy h1 { max-width: 100%; font-size: clamp(47px, 9vw, 72px); }
  .reward-feature { grid-template-columns: 1fr; }
  .reward-feature::after { display: none; }
  .reward-feature-art { min-height: 0; height: 360px; }
  .reward-feature-art img { width: min(88%, 360px); }
  .reward-feature-copy { padding: 0 30px 42px; text-align: center; }
  .reward-feature-copy h2, .reward-feature-copy p { margin-left: auto; margin-right: auto; }
  .section-rose { width: 90px; right: 0; }
}

@media (max-width: 560px) {
  .hero-copy h1 { font-size: clamp(44px, 10.5vw, 58px); }
  .hero-petals i:nth-child(n+4) { display: none; }
  .reward-feature-art { height: 310px; }
  .reward-feature-copy h2 { font-size: 49px; }
  .section-rose { width: 65px; opacity: .4; top: -18px; }
  .page-title::before { width: 180px; right: 0; top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-backdrop img, .hero-petals i, .hero .eyebrow, .hero h1, .hero-rule, .hero .lead, .hero-cta, .hero-note,
  .section-rose, .page-title::before, .reward-feature-art::before, .reward-feature-art img, .empty-vault img, .empty-rose, .ritual-art img { animation: none !important; }
  .js-motion .motion-reveal { opacity: 1; transform: none; transition: none; }
  .btn::before, .game-art::before { display: none; }
}
