/* Conan Exiles Clan/Game Page — Dracon Gaming vibe
   Drop-in standalone CSS. If you already have global variables, feel free to delete :root and reuse yours. */

:root{
  --bg:#0b0f14;
  --panel:#0f1620cc;
  --panel2:#0f1620f2;
  --text:#e7ecf3;
  --muted:#a6b2c3;
  --line:#223043;
  --gold:#d6b36a;
  --blood:#7a0f0f;
  --rust:#a24a2a;
  --glow: 0 0 40px rgba(214,179,106,.18);
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --radius:16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 16px 70px;
}

a{ color: inherit; }
code{ color: #d6e6ff; }

.muted{ color: var(--muted); }
.small{ font-size: 12px; line-height: 1.45; }

.page{
  /* Barbarian hero background */
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(140,18,18,.24), transparent 60%),
    radial-gradient(700px 420px at 15% 15%, rgba(214,179,106,.10), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.90), rgba(0,0,0,.95)),
    url("../assets/img/conan-hero.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

/* HERO */
.hero{
  position: relative;
  padding: 56px 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero__veil{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.72));
  pointer-events:none;
}
.hero__content{ position:relative; }

.badge-row{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(214,179,106,.45);
  color: var(--text);
  background: rgba(10,14,20,.55);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  box-shadow: var(--glow);
}
.badge--ghost{
  border-color: rgba(255,255,255,.10);
  box-shadow: none;
}

.hero__title{
  margin: 12px 0 6px;
  font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: .02em;
  text-shadow: 0 2px 18px rgba(0,0,0,.65);
}
.hero__subtitle{
  margin: 0 0 14px;
  max-width: 72ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 16px 0 14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration:none;
  border: 1px solid rgba(214,179,106,.55);
  background: rgba(214,179,106,.13);
  box-shadow: var(--glow);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(214,179,106,.18); border-color: rgba(214,179,106,.75); }
.btn:active{ transform: translateY(0px); }

.btn--ghost{
  border-color: rgba(255,255,255,.14);
  background: rgba(12,16,22,.55);
  box-shadow: none;
}
.btn--ghost:hover{ background: rgba(12,16,22,.70); }

.hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 10px;
}
.pill{
  display:flex;
  gap:8px;
  align-items:center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,20,.55);
  border-radius: 999px;
  padding: 6px 10px;
}
.pill__k{ font-size: 12px; color: var(--muted); }
.pill__v{ font-size: 12px; }

.hero__note{ margin-top: 10px; }

/* PANELS */
.panel{
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  background: rgba(10,14,20,.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.panel__head h2{
  margin: 0;
  font-size: 20px;
  letter-spacing: .01em;
}
.panel__head p{ margin: 6px 0 0; }

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

@media (max-width: 980px){
  .grid--4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .grid--2,.grid--3,.grid--4{ grid-template-columns: 1fr; }
}

.card, .rank, .house{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 14px;
  background: rgba(15,22,32,.55);
}
.card h3, .rank h3{ margin: 0 0 8px; font-size: 16px; }
.house h4{ margin: 10px 0 6px; font-size: 16px; }

.list{ margin: 0; padding-left: 18px; }
.list li{ margin: 6px 0; color: var(--muted); }

.kv{ display:flex; flex-direction:column; gap:8px; margin-top: 10px; }
.kv > div{ display:flex; justify-content:space-between; gap:10px; border-bottom: 1px dashed rgba(255,255,255,.08); padding-bottom: 8px; }
.kv .k{ color: var(--muted); font-size: 13px; }
.kv .v{ font-size: 13px; }

.link{
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(214,179,106,.55);
  text-underline-offset: 3px;
}
.link:hover{ text-decoration-color: rgba(214,179,106,.90); }

/* CAROUSEL */
.carousel{
  position: relative;
  margin-top: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}
.carousel__viewport{
  display:flex;
  width:100%;
  overflow:hidden;
}
.carousel__slide{
  min-width: 100%;
  margin: 0;
  position: relative;
}
.carousel__slide img{
  width: 100%;
  height: 420px;
  object-fit: cover;
  display:block;
  filter: saturate(1.02) contrast(1.02);
}
.carousel__slide figcaption{
  position:absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10,14,20,.62);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.carousel__btn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,14,20,.55);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor:pointer;
  z-index: 2;
  display:grid;
  place-items:center;
  font-size: 26px;
  line-height: 1;
}
.carousel__btn:hover{ background: rgba(10,14,20,.75); }
.carousel__btn--prev{ left: 10px; }
.carousel__btn--next{ right: 10px; }

.carousel__dots{
  position:absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display:flex;
  justify-content:center;
  gap: 8px;
  z-index: 2;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(10,14,20,.55);
  cursor:pointer;
}
.dot[aria-selected="true"]{
  border-color: rgba(214,179,106,.80);
  box-shadow: var(--glow);
  background: rgba(214,179,106,.20);
}
@media (max-width: 640px){
  .carousel__slide img{ height: 280px; }
}

/* TIMELINE */
.timeline{
  margin-top: 14px;
  border-left: 2px solid rgba(214,179,106,.28);
  padding-left: 14px;
}
.tick{
  position: relative;
  padding: 10px 0 12px;
}
.tick__dot{
  position:absolute;
  left: -22px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(214,179,106,.35);
  border: 1px solid rgba(214,179,106,.70);
  box-shadow: var(--glow);
}
.tick__body h3{
  margin: 0 0 6px;
  font-size: 16px;
}
.tick__body p{ margin: 0; }

/* HOUSES */
.houses{ margin-top: 16px; }
.houses__head{ margin-top: 10px; }
.house__crest{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(214,179,106,.30);
  background: rgba(214,179,106,.10);
  box-shadow: var(--glow);
  font-size: 22px;
}
.tagrow{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px; }
.tag{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(10,14,20,.35);
}

/* CALENDAR */
.events{ display:flex; flex-direction:column; gap: 10px; margin-top: 10px; }
.event{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px;
  background: rgba(15,22,32,.45);
}
.event__top{ display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
.event__title{ margin: 0; font-size: 14px; }
.event__when{ font-size: 12px; color: var(--muted); white-space: nowrap; }
.event__detail{ margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.mini-cal{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px;
  background: rgba(15,22,32,.45);
}
.mini-cal__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.icon{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,14,20,.45);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor:pointer;
}
.icon:hover{ background: rgba(10,14,20,.70); }

.mini-cal__title{ font-weight: 700; letter-spacing: .01em; }

.mini-cal__grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.cal-cell{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 8px 0;
  text-align:center;
  font-size: 12px;
  color: var(--muted);
  background: rgba(10,14,20,.25);
}
.cal-cell--dow{
  border-color: transparent;
  background: transparent;
  color: rgba(214,179,106,.85);
  font-weight: 700;
  padding: 4px 0;
}
.cal-cell--blank{
  border-color: transparent;
  background: transparent;
}
.cal-cell--event{
  color: var(--text);
  border-color: rgba(214,179,106,.35);
  background: rgba(214,179,106,.10);
  box-shadow: var(--glow);
}

/* FOOTER */
.footer{
  margin-top: 18px;
  padding-top: 10px;
}
.footer__row{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  align-items:center;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 14px;
}
.footer__actions{ display:flex; gap: 14px; flex-wrap:wrap; }

/* TOAST */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,20,.78);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  max-width: min(620px, calc(100% - 24px));
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* EMBERS CANVAS */
.embers{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:.55;
  mix-blend-mode:screen;
}

/* CHAIN DIVIDER */
.divider{
  height: 44px;
  margin: 18px 0;
  opacity: .95;
}
.divider--chain{
  position: relative;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.55));
}
.divider--chain::before{
  content:"";
  position:absolute;
  left:0; right:0; top:50%;
  transform: translateY(-50%);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(214,179,106,.18), transparent);
}
.divider--chain::after{
  content:"";
  position:absolute;
  inset:0;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 240px 44px;
  /* Inline SVG chain links */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='44' viewBox='0 0 240 44'%3E%3Cg fill='none' stroke='%23c7b07a' stroke-opacity='.55' stroke-width='3'%3E%3Cpath d='M20 22c0-7 5-12 12-12h18c7 0 12 5 12 12s-5 12-12 12H32c-7 0-12-5-12-12z'/%3E%3Cpath d='M62 22c0-7 5-12 12-12h18c7 0 12 5 12 12s-5 12-12 12H74c-7 0-12-5-12-12z'/%3E%3Cpath d='M104 22c0-7 5-12 12-12h18c7 0 12 5 12 12s-5 12-12 12h-18c-7 0-12-5-12-12z'/%3E%3Cpath d='M146 22c0-7 5-12 12-12h18c7 0 12 5 12 12s-5 12-12 12h-18c-7 0-12-5-12-12z'/%3E%3Cpath d='M188 22c0-7 5-12 12-12h18c7 0 12 5 12 12s-5 12-12 12h-18c-7 0-12-5-12-12z'/%3E%3C/g%3E%3C/svg%3E");
}



/* BLOOD-STAINED ACCENTS */
.panel, .card, .rank, .house{
  position: relative;
  overflow: hidden;
}
.panel::after, .card::after, .rank::after, .house::after{
  content:"";
  position:absolute;
  inset:-60px -40px auto -40px;
  height: 160px;
  pointer-events:none;
  opacity: .22;
  transform: rotate(-6deg);
  background:
    radial-gradient(18px 12px at 18% 40%, rgba(122,15,15,.85), transparent 60%),
    radial-gradient(22px 14px at 30% 55%, rgba(162,74,42,.70), transparent 62%),
    radial-gradient(16px 12px at 58% 38%, rgba(122,15,15,.70), transparent 60%),
    radial-gradient(26px 18px at 78% 52%, rgba(122,15,15,.60), transparent 65%),
    radial-gradient(10px 8px at 90% 36%, rgba(162,74,42,.55), transparent 60%);
  mix-blend-mode: multiply;
}
.notice{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(214,179,106,.20);
  background: rgba(122,15,15,.10);
}
.law strong{ color: rgba(214,179,106,.92); }
