/* ==========================================================
   MOC ARCANA — "luxe sombre" theme
   Solid night background, discreet gold, fine typography, generous space.
   Colour comes from the cards themselves.
   ========================================================== */
:root {
  /* original MOC ARCANA palette */
  --color-violet: #6f4cb1;
  --color-violet-dark: #593c8d;
  --color-violet-light: #9b7be0;
  --color-white: #fefee2;
  --color-darkblue: #04061b;
  --color-navyblue: #0a0d23;
  --color-lightgrey: #cfcfb8;
  --color-darkgrey: #4e4e47;
  --color-cyan: #9b7be0;
  --color-pink: #b9a2f0;
  /* surfaces */
  --bg: #0a0d23;
  --bg-2: #04061b;
  --surface: #04061b;
  --surface-2: #11143a;
  --line: rgba(111, 76, 177, .22);
  --line-2: rgba(111, 76, 177, .42);
  /* text */
  --text: #fefee2;
  --muted: #cfcfb8;
  /* accents (kept names used across the site) */
  --gold: #6f4cb1;
  --gold-2: #9b7be0;
  --gold-dim: rgba(111, 76, 177, .18);
  --lav: #9b7be0;
  --lav-2: #e2d4ff;
  --lav-deep: #6f4cb1;
  /* rarities (original) */
  --c-common: #f0f0f0;
  --c-rare: #b0b0b0;
  --c-epic: #b87333;
  --c-legendary: #ff8c00;
  --c-mythic: #ffd700;
  /* states */
  --c-green: #28a745;
  --c-red: #ff4d6a;
  /* legacy aliases */
  --c-pink: var(--color-pink);
  --c-violet: var(--color-violet);
  --c-violet-2: var(--color-violet-light);
  --c-blue: var(--color-cyan);
  --c-white: var(--text);
  --c-dark: var(--bg-2);
  --c-navy: var(--bg);
  --c-lightgrey: var(--muted);
  --glass: var(--bg-2);
  --glass-border: var(--line);
  --radius: 15px;
  --serif: "Roboto", sans-serif;
  --sans: "Roboto", sans-serif;
}

* { scrollbar-color: #2a2d36 var(--bg); scrollbar-width: thin; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { background: radial-gradient(ellipse 80% 45% at 50% -5%, rgba(111,76,177,.28), transparent 70%), var(--bg); background-attachment: fixed; color: var(--text); font-family: "Roboto", sans-serif; font-weight: 300; font-size: 17px; line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4, h5, .display-font { font-family: "Roboto", sans-serif; font-weight: 900; letter-spacing: -.01em; }
::selection { background: var(--color-violet); color: #fff; }
.text-lightgrey { color: var(--muted) !important; }
.text-violet { color: var(--gold) !important; }
.text-green { color: var(--c-green) !important; }
.text-red { color: var(--c-red) !important; }
.arcana-main { padding-top: 72px; min-height: calc(100vh - 140px); }
.gradient-text { color: var(--color-violet-light); }

/* ---------- Navbar ---------- */
.arcana-nav { background: rgba(4, 6, 27, .95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(111,76,177,.18); }
.arcana-nav .navbar-brand img { height: 40px; }
.arcana-nav .nav-link { font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: .95rem; color: var(--color-white); margin: 0 .35rem; position: relative; }
.arcana-nav .nav-link:hover, .arcana-nav .nav-link.active { color: var(--color-violet-light); }
.arcana-nav .nav-link.active::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 2px; height: 2px; border-radius: 2px; background: var(--color-violet); }
.pack-pill { display: inline-flex; gap: .4rem; align-items: center; padding: .28rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: .85rem; }
.pack-pill i { color: var(--gold); }
.pack-pill:hover { color: var(--text); border-color: var(--gold); }
.dropdown-menu-dark { background: var(--surface); border: 1px solid var(--line-2); }
.dropdown-menu-dark .dropdown-item:hover { background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn-arcana, .btn-arcana-outline, .btn-arcana-gold { font-family: "Roboto", sans-serif; font-weight: 500; font-size: 1rem; letter-spacing: .01em; text-transform: none; border-radius: 8px; padding: .65rem 1.3rem; transition: background .3s, box-shadow .3s, transform .2s, color .3s; }
.btn-sm.btn-arcana, .btn-sm.btn-arcana-outline, .btn-sm.btn-arcana-gold { padding: .38rem .85rem; font-size: .85rem; }
.btn-lg.btn-arcana, .btn-lg.btn-arcana-gold, .btn-lg.btn-arcana-outline { padding: .85rem 1.7rem; font-size: 1.1rem; }
.btn-arcana-gold { position: relative; overflow: hidden; background: var(--color-violet); color: var(--color-white); border: 0; box-shadow: 0 8px 26px rgba(111,76,177,.35); }
.btn-arcana-gold::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-20deg); animation: sweep 5s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0%, 75% { left: -60%; } 100% { left: 130%; } }
.btn-arcana-gold:hover, .btn-arcana-gold:focus { background: var(--color-violet-dark); color: var(--color-white); box-shadow: 0 10px 32px rgba(111,76,177,.5); transform: translateY(-1px); }
.btn-arcana { background: var(--color-cyan); color: var(--color-white); border: 0; box-shadow: 0 8px 26px rgba(111,76,177,.28); }
.btn-arcana:hover, .btn-arcana:focus { background: #5a3c94; color: var(--color-white); box-shadow: 0 10px 32px rgba(111,76,177,.45); transform: translateY(-1px); }
.btn-arcana-outline { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-arcana-outline:hover, .btn-arcana-outline:focus { color: var(--color-white); border-color: var(--color-violet); background: rgba(111,76,177,.18); }
.btn:disabled, .btn.disabled { opacity: .35; }

/* ---------- Panels ---------- */
.glass { background: var(--color-darkblue); border: 1px solid rgba(111,76,177,.16); border-radius: 15px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.section { padding: 110px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-title { font-size: clamp(2.2rem, 4.4vw, 3.2rem); text-align: center; margin-bottom: .8rem; font-weight: 900; line-height: 1.15; }
.section-sub { text-align: center; color: var(--color-lightgrey); max-width: 760px; margin: 0 auto 3rem; font-size: 1.2rem; font-weight: 400; line-height: 1.4; }
.eyebrow { text-transform: uppercase; letter-spacing: .02em; font-size: 1.15rem; color: var(--color-violet-light); font-weight: 700; margin-bottom: .8rem; }
.eyebrow::before { content: none; }
.text-center .eyebrow::after, .eyebrow.text-center::after { content: none; }

/* ---------- Forms ---------- */
.form-control, .form-select { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; }
.form-control:focus, .form-select:focus { background: var(--bg-2); color: var(--text); border-color: var(--gold); box-shadow: 0 0 0 .2rem var(--gold-dim); }
.form-control::placeholder { color: #5f5d58; }
.form-label { font-weight: 500; color: var(--muted); font-size: .85rem; }
.form-check-input { background-color: var(--bg-2); border-color: var(--line-2); }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.input-group-text { background: var(--bg-2); border-color: var(--line-2); color: var(--muted); }
.alert-danger { background: rgba(217, 119, 107, .1); border-color: rgba(217, 119, 107, .35); color: #f0b2a8; }

/* ---------- TCG card ---------- */
.tcg-card { display: block; position: relative; border-radius: 4.6% / 3.3%; aspect-ratio: 400 / 556; overflow: hidden; background: #0b0c10;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; box-shadow: 0 8px 24px rgba(0,0,0,.45);
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); }
.tcg-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcg-card:hover { box-shadow: 0 22px 48px rgba(0,0,0,.6); z-index: 2; }
.tcg-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.22), transparent 45%); }
.tcg-card:hover .tcg-shine { opacity: 1; }
.rarity-rare .tcg-shine, .rarity-epic .tcg-shine { mix-blend-mode: color-dodge; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.35), transparent 45%), linear-gradient(115deg, transparent 30%, rgba(201,214,234,.25) 45%, transparent 60%); }
.rarity-legendary .tcg-shine { mix-blend-mode: color-dodge; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,240,190,.45), transparent 45%), linear-gradient(115deg, transparent 25%, rgba(245,210,122,.35) 45%, transparent 65%); }
.rarity-mythic .tcg-shine { mix-blend-mode: color-dodge; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.5), transparent 40%), linear-gradient(115deg, transparent 20%, rgba(255,106,213,.4) 35%, rgba(255,211,106,.4) 45%, rgba(106,255,176,.35) 55%, rgba(106,216,255,.4) 65%, transparent 80%); background-size: 100% 100%, 220% 220%; background-position: center, var(--mx) var(--my); }
.tcg-card:hover { box-shadow: 0 24px 54px rgba(2,4,20,.7), 0 0 30px var(--glow, transparent); }
.rarity-legendary { --glow: rgba(245,210,122,.3); } .rarity-mythic { --glow: rgba(190,160,255,.32); } .rarity-epic { --glow: rgba(229,161,114,.22); }

.badge-rarity { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: .35em .9em; font-size: .7rem; background: transparent; border: 1px solid currentColor; }
.badge-common { color: var(--c-common); } .badge-rare { color: var(--c-rare); } .badge-epic { color: var(--c-epic); }
.badge-legendary { color: var(--c-legendary); } .badge-mythic { color: var(--c-mythic); box-shadow: 0 0 14px rgba(190,160,255,.25); }
.text-common { color: var(--c-common) !important; } .text-rare { color: var(--c-rare) !important; } .text-epic { color: var(--c-epic) !important; }
.text-legendary { color: var(--c-legendary) !important; } .text-mythic { color: var(--c-mythic) !important; }
.badge-sim { border: 1px solid var(--line-2); color: var(--muted); background: transparent; font-weight: 500; }
.badge.text-bg-dark.border { border-color: var(--line-2) !important; background: transparent !important; color: var(--muted) !important; font-weight: 500; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100vh - 72px); display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::after { content: none; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.7rem); line-height: 1; font-weight: 900; letter-spacing: -.02em; }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 520px; line-height: 1.75; }
.hero-fan { position: relative; height: 540px; z-index: 1; }
.hero-rays, .hero-booster, .hero-orb { display: none; }
@keyframes fan-in { from { opacity: 0; transform: translateY(24px); } }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 1.1rem; }

/* ---------- Stats & features ---------- */
.stat-box { text-align: center; padding: 2rem 1rem; }
.stat-box + .stat-box { border-left: 1px solid var(--line); }
.stat-box .num { font-size: 3rem; font-weight: 700; line-height: 1.1; color: var(--color-violet-light); font-variant-numeric: tabular-nums; }
.stat-box .lbl { letter-spacing: .15rem; font-size: .85rem; font-weight: 700; color: #8e8a7a; text-transform: uppercase; margin-top: .3rem; }
.feature { padding: 2.2rem; height: 100%; transition: border-color .3s; }
.feature:hover { border-color: rgba(111,76,177,.35); }
.feature .ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; margin-bottom: 1.3rem; color: var(--gold); border: 1px solid rgba(111,76,177,.35); background: rgba(111,76,177,.06); box-shadow: 0 0 24px rgba(111,76,177,.12); }
.feature h3 { font-size: 1.4rem; }
.faction-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); margin: .3rem; }
.rarity-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--bg-2); }
.rarity-bar span { display: block; height: 100%; }

/* ---------- Spotlight ---------- */
.spot-stage { position: relative; padding: 1rem 0 3rem; }
.spot-card { width: min(320px, 80%); margin: 0 auto; aspect-ratio: 400 / 556; position: relative; border-radius: 16px; }
.spot-card img { width: 100%; height: 100%; border-radius: 16px; box-shadow: 0 40px 80px rgba(0,0,0,.7), 0 0 0 1px var(--line-2); }
.spot-holo { display: none; }
.spot-floor { position: absolute; left: 50%; bottom: .5rem; width: 55%; height: 26px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(111,76,177,.25), transparent 70%); filter: blur(6px); }

/* ---------- Roadmap ---------- */
.timeline { position: relative; margin: 0 auto; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.tl-item { position: relative; padding-left: 56px; margin-bottom: 1.4rem; }
.tl-dot { position: absolute; left: 9px; top: 26px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); }
.tl-item.done .tl-dot { background: var(--gold); }
.tl-item.current .tl-dot { background: var(--gold); box-shadow: 0 0 0 5px var(--gold-dim); }
.tl-item .glass { padding: 1.4rem 1.6rem !important; }
.tl-item h3 { font-size: 1.35rem; }

/* ---------- Reveal on scroll (gentle) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Catalogue ---------- */
.filter-panel { position: sticky; top: 92px; padding: 1.5rem; }
.filter-title { font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 .6rem; font-family: var(--sans); }
.chip-check { display: inline-block; margin: 0 .3rem .45rem 0; }
.chip-check input { display: none; }
.chip-check span { display: inline-block; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-size: .8rem; transition: .2s; user-select: none; color: var(--text); }
.chip-check span:hover { border-color: var(--gold); }
.chip-check input:checked + span { background: var(--color-violet); border-color: var(--color-violet); color: var(--color-white); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.6rem 1.3rem; }
.card-grid .tcg-card { animation: card-pop .5s both; }
@keyframes card-pop { from { opacity: 0; transform: translateY(10px); } }
.owned-badge { position: absolute; top: 8px; right: 8px; background: rgba(7,8,12,.85); color: var(--text); font-weight: 600; padding: .05rem .5rem; border-radius: 999px; font-size: .72rem; z-index: 3; border: 1px solid var(--line-2); }
.spinner-arcana { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--gold); animation: spin .9s linear infinite; margin: 2rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Mystery cards ---------- */
.tcg-card.mystery { cursor: default; box-shadow: 0 8px 24px rgba(2,4,20,.5), 0 0 0 1px var(--rc, var(--line-2)); }
.tcg-card.mystery img { filter: brightness(.55) saturate(.8); }
.tcg-card.mystery .mystery-mark { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 3.2rem; font-weight: 700; color: var(--rc, var(--lav)); text-shadow: 0 0 24px var(--rc, var(--lav)); opacity: .9; }
.tcg-card.mystery .mystery-rarity { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: .6rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--rc, var(--muted)); }
.tcg-card.mystery.rarity-common { --rc: var(--c-common); } .tcg-card.mystery.rarity-rare { --rc: var(--c-rare); } .tcg-card.mystery.rarity-epic { --rc: var(--c-epic); }
.tcg-card.mystery.rarity-legendary { --rc: var(--c-legendary); } .tcg-card.mystery.rarity-mythic { --rc: var(--c-mythic); animation: mystery-pulse 3s ease-in-out infinite; }
@keyframes mystery-pulse { 50% { box-shadow: 0 8px 24px rgba(2,4,20,.5), 0 0 0 1px var(--c-mythic), 0 0 26px rgba(190,160,255,.35); } }
.discovery-bar { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 1.4rem; }
.discovery-bar .big { font-family: var(--serif); font-size: 2rem; font-weight: 700; white-space: nowrap; }
.discovery-bar .big small { font-size: 1rem; color: var(--muted); }
.discovery-track { flex: 1; height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.discovery-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--lav-deep), var(--lav), var(--gold)); border-radius: 999px; }

/* ---------- Card detail ---------- */
.detail-card { max-width: 400px; margin: 0 auto; }
.stat-tile { padding: 1rem 1.2rem; text-align: center; }
.stat-tile .k { font-size: .62rem; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); }
.stat-tile .v { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.effect-item { padding: .9rem 1.1rem; border-left: 1px solid var(--gold); background: var(--surface); border-radius: 0 10px 10px 0; margin-bottom: .6rem; color: var(--text); line-height: 1.6; }
.stars i { color: var(--gold); }

/* ---------- Auth ---------- */
.auth-box { max-width: 440px; margin: 5rem auto; padding: 2.8rem; }

/* ---------- Toasts ---------- */
.toast-zone { position: fixed; right: 20px; bottom: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.arcana-toast { padding: .85rem 1.15rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: toast-in .3s ease-out; max-width: 340px; font-size: .9rem; }
.arcana-toast.error { border-color: rgba(217,119,107,.6); }
.arcana-toast.success { border-color: rgba(127,191,143,.6); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Footer ---------- */
.arcana-footer { border-top: 1px solid var(--line); padding: 2.6rem 0; margin-top: 3rem; font-size: .85rem; }
.arcana-footer a { color: var(--muted); } .arcana-footer a:hover { color: var(--text); }
.social { font-size: 1.1rem; }

.modal-content.glass { background: var(--surface); }
.btn-close-white { filter: invert(1); }
.table-dark { --bs-table-bg: transparent; --bs-table-border-color: var(--line); }
kbd { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
code { color: var(--gold-2); }
.progress { background: var(--bg-2) !important; }

@media (max-width: 991px) {
  .hero-fan { height: 400px; margin-top: 2rem; }
  .filter-panel { position: static; }
  .stat-box + .stat-box { border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ==========================================================
   Original MOC ARCANA landing components (improved)
   ========================================================== */
.welcome-area { position: relative; padding: 110px 0 90px; overflow: hidden; isolation: isolate; }
.welcome-area::before { content: ""; position: absolute; inset: -40px; z-index: -2; background: url("../img/welcome-wall.webp") center / cover; transform: rotate(-4deg) scale(1.12); animation: wall-drift 60s linear infinite alternate; }
.welcome-area::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 70% at 78% 50%, rgba(111,76,177,.55), transparent 70%),
  linear-gradient(90deg, rgba(10,13,35,.97) 0%, rgba(10,13,35,.88) 45%, rgba(10,13,35,.55) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 25%); }
@keyframes wall-drift { to { transform: rotate(-4deg) scale(1.12) translateY(-60px); } }
.welcome-area h1 { font-size: clamp(2.8rem, 6.2vw, 4.7rem); font-weight: 900; line-height: 1; margin-bottom: 1rem; }
.welcome-area h2 { font-size: 1.4rem; font-weight: 300; line-height: 1.45; margin-bottom: 2.2rem; color: var(--color-white); max-width: 640px; }
.welcome-pack { position: relative; width: min(370px, 80%); margin-left: auto; animation: pack-pulse 4s ease-in-out infinite; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)) drop-shadow(0 0 40px rgba(111,76,177,.35)); }
.welcome-pack:hover { animation-play-state: paused; }
@keyframes pack-pulse { 50% { transform: translateY(-14px) scale(1.02); } }
.pack-halo { position: absolute; inset: 10% -10%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(111,76,177,.6), transparent 65%); filter: blur(30px); }

.counter-box { display: block; background: var(--color-darkblue); padding: 22px 16px; text-align: center; border-radius: 15px; border: 1px solid rgba(111,76,177,.16); transition: transform .3s, border-color .3s; height: 100%; }
.counter-box:hover { transform: translateY(-4px); border-color: rgba(111,76,177,.5); }
.counter-box .counter { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--color-violet-light); line-height: 1.15; font-variant-numeric: tabular-nums; }
.counter-box p { letter-spacing: .15rem; font-size: .82rem; font-weight: 700; color: #8e8a7a; margin: 0; text-transform: uppercase; }

.chart { display: table; table-layout: fixed; width: 100%; max-width: 900px; height: 260px; margin: 60px auto 40px; padding: 0; }
.chart li { position: relative; display: table-cell; vertical-align: bottom; height: 260px; list-style: none; }
.chart span { margin: 0 8%; display: block; position: relative; border-radius: 15px 15px 0 0; transform-origin: bottom; animation: draw 1.4s cubic-bezier(.2,.8,.2,1) both; box-shadow: 0 0 30px -6px currentColor; }
.chart span::before { position: absolute; left: 0; right: 0; top: -44px; text-align: center; content: attr(title) "%"; font-size: 1.6rem; font-weight: 900; color: inherit; }
.chart span::after { position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px; text-align: center; content: attr(data-name); color: inherit; font-weight: 500; }
@keyframes draw { from { transform: scaleY(0); } }
.bg-common { background: var(--c-common); } .bg-rare { background: var(--c-rare); } .bg-epic { background: var(--c-epic); } .bg-legendary { background: var(--c-legendary); } .bg-mythic { background: var(--c-mythic); }

.preview-area { background: var(--color-darkblue) url("../img/preview-bg.png") center / cover; border-top: 1px solid rgba(111,76,177,.15); border-bottom: 1px solid rgba(111,76,177,.15); }

.main-timeline { position: relative; max-width: 1100px; margin: 0 auto; }
.main-timeline::after { content: ""; position: absolute; width: 4px; background: linear-gradient(var(--color-violet), rgba(111,76,177,.15)); top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 4px; z-index: -1; }
.timeline { position: relative; width: 50%; }
.timeline .card { background: var(--color-darkblue); border: 1px solid rgba(111,76,177,.16); border-radius: 15px; color: var(--color-white); transition: transform .3s, border-color .3s; }
.timeline .card:hover { transform: translateY(-4px); border-color: rgba(111,76,177,.5); }
.timeline .card h3 { font-size: 1.35rem; font-weight: 900; color: var(--color-darkgrey); }
.timeline.active .card h3 { color: var(--color-violet-light); }
.timeline::after { content: ""; position: absolute; width: 22px; height: 22px; right: -11px; top: 22px; border-radius: 50%; background: var(--color-darkblue); border: 4px solid var(--color-darkblue); box-shadow: 0 0 0 2px rgba(111,76,177,.3); }
.timeline.active::after { background: var(--color-violet); box-shadow: 0 0 0 2px rgba(111,76,177,.4), 0 0 18px rgba(111,76,177,.8); }
.timeline.left { padding: 0 40px 24px 0; left: 0; }
.timeline.right { padding: 0 0 24px 40px; left: 50%; }
.timeline.right::after { left: -11px; }
.timeline .list-group-item { position: relative; padding: .1rem 0 .1rem 1.7rem; background: transparent; border: 0; color: #8e8a7a; font-size: 1rem; }
.timeline .list-group-item[data-status="finalized"] { text-decoration: line-through; color: var(--color-lightgrey); }
.timeline .list-group-item[data-status="finalized"]::before { content: "\F26C"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--c-green); }
.timeline .list-group-item[data-status="ongoing"] { color: var(--color-white); font-weight: 500; }
.timeline .list-group-item[data-status="ongoing"]::before { content: "\F2C7"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--color-violet-light); }
.timeline .list-group-item[data-status="pending"]::before { content: "\F584"; font-family: "bootstrap-icons"; position: absolute; left: 0; }
@media (max-width: 767px) {
  .main-timeline::after { left: 11px; }
  .timeline, .timeline.right { width: 100%; left: 0; padding: 0 0 20px 40px; }
  .timeline::after, .timeline.right::after { left: 0; right: auto; }
  .welcome-area { text-align: center; padding: 60px 0; }
  .welcome-area h2 { margin-left: auto; margin-right: auto; }
  .welcome-pack { margin: 2rem auto 0; }
}

.arcana-footer { background: var(--color-darkblue); border-top: 1px solid rgba(111,76,177,.18); padding: 60px 0 24px; font-size: 1rem; }
.single-footer h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; color: var(--color-white); }
.single-footer ul { list-style: none; margin: 0; padding: 0; }
.single-footer ul li { margin-bottom: .45rem; }
.single-footer ul li a { color: var(--color-lightgrey); }
.single-footer ul li a:hover { color: var(--color-violet-light); }
.footer-pera { color: var(--color-lightgrey); font-size: .98rem; line-height: 1.6; max-width: 420px; }
.footer-line { height: 1px; background: rgba(111,76,177,.22); margin: 1.6rem 0 1.2rem; }
.copyright, .project-by { color: #8e8a7a; font-size: .9rem; }

/* Codex: a sealed card seen in the Campaign, in black and white until the player pulls it */
.tcg-card.seen { position: relative; }
.tcg-card.seen img { filter: grayscale(1) contrast(1.05) brightness(.9); opacity: .42; transition: opacity .3s, filter .3s; }
.tcg-card.seen:hover img { opacity: .62; }
.tcg-card.seen .seen-tag { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; padding: 5px 11px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; color: #e6e3f2; background: rgba(10, 12, 32, .85); border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.tcg-card.seen .seen-tag i { color: #b9a6ff; margin-right: 3px; }

/* Card page: contract address of the meme token behind the card */
.token-contract { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.token-contract .tc-label { color: var(--text-muted, #9aa); font-size: .9rem; }
.token-contract .tc-addr { background: var(--surface); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: .25rem .6rem; color: var(--text); font-size: .9rem; }
.token-contract .tc-btn { display: inline-flex; align-items: center; gap: .3rem; background: transparent; border: 1px solid rgba(217,179,90,.45); color: var(--gold); border-radius: 8px; padding: .2rem .6rem; font-size: .85rem; text-decoration: none; cursor: pointer; }
.token-contract .tc-btn:hover { background: rgba(217,179,90,.12); }
