@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,600&display=swap');

:root {
  --maroon: #6a1e1e;
  --maroon-dark: #3d1010;
  --maroon-soft: #f8eded;
  --gold: #c9a84c;
  --gold-soft: #fdf7e8;
  --paper: #fafaf8;
  --white: #fff;
  --text: #292828;
  --muted: #77716e;
  --border: #e8e1dc;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--text); font-family: 'Manrope', sans-serif; overflow-x: hidden; }

.container { margin: 0 auto; max-width: 1120px; }
.back-link {
  align-items: center; backdrop-filter: blur(10px); background: rgba(106, 30, 30, .88);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; color: #fff;
  display: inline-flex; font-size: .65rem; font-weight: 700; gap: .6rem; letter-spacing: .1em;
  padding: .65rem 1.25rem; position: fixed; right: 2rem; text-decoration: none; top: 1.5rem;
  transition: transform .25s ease, background .25s ease; z-index: 10;
}
.back-link:hover { background: var(--maroon); transform: translateY(-3px); }

.hero {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon) 58%, #913b3b);
  color: #fff; isolation: isolate; overflow: hidden; padding: 8.3rem 2rem 6.5rem;
  position: relative; text-align: center;
}
.hero-grid {
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px; inset: 0; mask-image: linear-gradient(to bottom, #000, transparent);
  position: absolute; animation: grid-drift 18s linear infinite;
}
.hero-orb { border: 1px solid rgba(201,168,76,.22); border-radius: 50%; position: absolute; }
.orb-one { height: 22rem; left: -6rem; top: -7rem; width: 22rem; animation: orb-pulse 8s ease-in-out infinite; }
.orb-two { bottom: -10rem; height: 28rem; right: -5rem; width: 28rem; animation: orb-pulse 9s 1s ease-in-out infinite reverse; }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { align-items: center; color: rgba(255,255,255,.67); display: inline-flex; font-size: .64rem; font-weight: 700; gap: .7rem; letter-spacing: .2em; text-transform: uppercase; animation: slide-down .7s ease both; }
.hero-eyebrow span { background: var(--gold); height: 1px; width: 30px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.7rem, 6vw, 4.9rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin: 1.3rem 0 1rem; animation: slide-up .75s .08s ease both; }
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 600; }
.hero-sub { color: rgba(255,255,255,.72); font-size: .92rem; line-height: 1.8; margin: auto; max-width: 620px; animation: slide-up .75s .16s ease both; }
.hero-badge { align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #f4df9c; display: inline-flex; font-size: .66rem; font-weight: 700; gap: .45rem; letter-spacing: .12em; margin-top: 1.65rem; padding: .62rem 1rem; text-transform: uppercase; animation: slide-up .75s .24s ease both; }

.intro-section { padding: 4.5rem 2rem 2rem; }
.intro-layout { align-items: end; display: grid; gap: 2rem; grid-template-columns: 1.05fr .95fr; }
.section-label { color: var(--gold); font-size: .62rem; font-weight: 800; letter-spacing: .18em; margin-bottom: .5rem; text-transform: uppercase; }
.intro-copy h2 { color: var(--maroon); font-size: clamp(1.75rem, 3.5vw, 2.6rem); letter-spacing: -.06em; line-height: 1.15; margin-bottom: .8rem; }
.intro-copy > p:last-child { color: var(--muted); font-size: .86rem; line-height: 1.8; max-width: 640px; }
.quick-nav { display: grid; gap: .55rem; grid-template-columns: 1fr 1fr; }
.quick-nav a { align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: .75rem; color: var(--maroon); display: flex; font-size: .71rem; font-weight: 700; gap: .6rem; overflow: hidden; padding: .72rem; position: relative; text-decoration: none; transition: color .28s ease, transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease; }
.quick-nav a span { color: var(--gold); font-size: .64rem; letter-spacing: .08em; transition: color .28s ease, transform .28s ease; }
.quick-nav a:hover { border-color: rgba(201,168,76,.7); box-shadow: 0 8px 18px rgba(61,16,16,.08); transform: translateY(-3px); }
.quick-nav a.active { background: var(--maroon); border-color: var(--maroon); box-shadow: 0 10px 22px rgba(106,30,30,.2); color: #fff; transform: translateY(-3px); }
.quick-nav a.active span { color: var(--gold); transform: scale(1.12); }
.quick-nav a.active::after { animation: nav-shine .75s ease; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); content: ''; inset: 0 auto 0 -45%; position: absolute; transform: skewX(-18deg); width: 35%; }

.rules-section { padding: 1.5rem 2rem 5rem; }
.rules-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rule-card { background: var(--white); border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 12px 28px rgba(61,16,16,.045); overflow: hidden; padding: 1.45rem; position: relative; scroll-margin-top: 5rem; transition: border-color .38s ease, box-shadow .38s ease, filter .38s ease, opacity .38s ease, transform .38s ease; transition-delay: var(--delay); }
.rule-card:hover { border-color: rgba(201,168,76,.68); box-shadow: 0 18px 35px rgba(61,16,16,.09); transform: translateY(-6px); }
.rules-grid.has-focus .rule-card:not(.focused) { filter: saturate(.62); opacity: .58; transform: scale(.985); }
.rules-grid.has-focus .rule-card:not(.focused):hover { opacity: .82; transform: scale(.992) translateY(-3px); }
.rule-card.focused { border-color: var(--gold); box-shadow: 0 22px 46px rgba(106,30,30,.18), 0 0 0 4px rgba(201,168,76,.16); transform: scale(1.025); z-index: 2; }
.rule-card.focused::before { animation: focus-sweep 1.1s ease; background: linear-gradient(90deg, transparent, rgba(201,168,76,.38), transparent); content: ''; height: 4px; left: -60%; position: absolute; top: 0; width: 55%; }
.rule-card.focus-pop { animation: card-pop .65s cubic-bezier(.2,.82,.3,1); }
.rule-card.focused .card-number { animation: number-pulse .7s ease; color: rgba(106,30,30,.25); }
.card-top { align-items: center; display: flex; justify-content: space-between; margin-bottom: 1.2rem; }
.card-icon { align-items: center; background: var(--maroon-soft); border-radius: .8rem; color: var(--maroon); display: flex; font-size: 1.35rem; height: 3rem; justify-content: center; transition: transform .28s ease, background .28s ease, color .28s ease; width: 3rem; }
.rule-card:hover .card-icon { background: var(--maroon); color: var(--gold); transform: rotate(-7deg) scale(1.08); }
.card-number { color: rgba(106,30,30,.14); font-size: 2.2rem; font-weight: 800; letter-spacing: -.08em; }
.rule-card h2 { color: var(--maroon); font-size: 1.45rem; letter-spacing: -.045em; margin-bottom: .4rem; }
.card-description { color: var(--muted); font-size: .77rem; line-height: 1.65; margin-bottom: 1rem; }
.rule-card ul { border-top: 1px solid var(--border); list-style: none; padding-top: .4rem; }
.rule-card li { align-items: flex-start; color: #554f4c; display: flex; font-size: .76rem; gap: .6rem; line-height: 1.65; padding-top: .65rem; }
.rule-card li i { color: var(--gold); flex: 0 0 auto; font-size: 1rem; margin-top: .1rem; transition: transform .22s ease; }
.rule-card li:hover i { transform: scale(1.25); }

.notice-strip { background: var(--gold-soft); border-top: 1px solid rgba(201,168,76,.26); padding: 3rem 2rem; }
.notice-content { align-items: center; display: flex; gap: 1rem; }
.notice-icon { align-items: center; background: var(--maroon); border-radius: 1rem; color: var(--gold); display: flex; flex: 0 0 auto; font-size: 1.7rem; height: 4rem; justify-content: center; width: 4rem; }
.notice-icon i { animation: notice-float 3s ease-in-out infinite; }
.notice-content h2 { color: var(--maroon); font-size: 1.45rem; letter-spacing: -.04em; margin-bottom: .2rem; }
.notice-content p:last-child { color: var(--muted); font-size: .82rem; line-height: 1.7; }

.page-footer { background: var(--maroon); padding: 2.5rem 2rem; text-align: center; }
.page-footer p { color: rgba(255,255,255,.45); font-size: .75rem; }
.page-footer a { color: var(--gold); text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.rule-card.visible li { animation: item-enter .45s ease both; animation-delay: var(--item-delay); }

@keyframes slide-down { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes grid-drift { to { transform: translate3d(54px, 54px, 0); } }
@keyframes orb-pulse { 50% { opacity: .5; transform: scale(1.18); } }
@keyframes item-enter { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes notice-float { 50% { transform: translateY(-5px) rotate(-6deg); } }
@keyframes nav-shine { from { left: -45%; } to { left: 125%; } }
@keyframes focus-sweep { from { left: -60%; } to { left: 120%; } }
@keyframes card-pop { 0% { transform: scale(.985); } 55% { transform: scale(1.04); } 100% { transform: scale(1.025); } }
@keyframes number-pulse { 50% { transform: scale(1.12); } }

@media (max-width: 760px) {
  .back-link { right: 1rem; top: 1rem; }
  .hero { padding: 7.5rem 1.25rem 5rem; }
  .intro-section { padding: 3.5rem 1rem 1.5rem; }
  .intro-layout, .rules-grid { grid-template-columns: 1fr; }
  .rules-section { padding: 1rem 1rem 3.5rem; }
  .notice-strip { padding: 2.5rem 1rem; }
  .notice-content { align-items: flex-start; }
}

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