/* Riftstone studio theme: dark, warm gold, loaded after main.css */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0d0b09;
  --bg2: #15110d;
  --card: #1a1510;
  --line: rgba(255, 190, 90, .18);
  --gold: #f0b55a;
  --gold2: #c98a2b;
  --text: #e9e1d4;
  --muted: #a89c8a;
}

html { scroll-behavior: smooth; }
body, html { background: var(--bg) !important; color: var(--text); font-family: 'Inter', sans-serif; }
p, li, span { font-family: 'Inter', sans-serif; }
h1, h2, h3, h4, .tit1, .tit2, .tit3, .tit5, .tit6, .tit7, .st-title {
  font-family: 'Cinzel', serif !important; color: var(--text); letter-spacing: .04em;
}
a { color: var(--gold); }
a:hover { color: #ffd68f; text-decoration: none; }

/* header */
.wrap-menu-header, .header-fixed .wrap-menu-header {
  background: linear-gradient(180deg, rgba(8,6,4,.92), rgba(8,6,4,.55)) !important;
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: none !important;
}
.main_menu > li > a { font-family: 'Cinzel', serif !important; color: var(--text) !important; letter-spacing: .12em; font-size: 13px !important; }
.main_menu > li > a:hover, .main_menu > li.sale-noti > a { color: var(--gold) !important; }
.social a { color: var(--text) !important; transition: color .2s, transform .2s; display: inline-block; }
.social a:hover { color: var(--gold) !important; transform: translateY(-2px); }

/* buttons */
.st-btn, .btn1 {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 4px; font-family: 'Cinzel', serif; font-weight: 700;
  letter-spacing: .14em; font-size: 13px; text-transform: uppercase; text-decoration: none !important;
  transition: all .25s; cursor: pointer; height: auto !important; width: auto !important; min-width: 0 !important;
}
.st-btn.primary { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #1a1006 !important; border: 1px solid var(--gold); }
.st-btn.primary:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(240,181,90,.3); }
.st-btn.ghost, .btn1 { background: rgba(0,0,0,.35); color: var(--text) !important; border: 1px solid rgba(255,255,255,.4); }
.st-btn.ghost:hover, .btn1:hover { border-color: var(--gold); color: var(--gold) !important; background: rgba(0,0,0,.55); }
.st-btn.discord { background: #5865f2; color: #fff !important; border: 1px solid #5865f2; }
.st-btn.discord:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(88,101,242,.4); }

/* hero */
.st-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 140px 20px 100px; overflow: hidden; background: #000;
}
.st-hero .bg {
  position: absolute; inset: 0; background: url(../images/kt-shot2.jpg) center/cover no-repeat;
  transform: scale(1.06); animation: stDrift 24s ease-in-out infinite alternate; opacity: .75;
}
.st-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(13,11,9,.15) 0%, rgba(13,11,9,.75) 70%, var(--bg) 100%),
              linear-gradient(180deg, rgba(13,11,9,.5) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
@keyframes stDrift { from { transform: scale(1.06) translate(0,0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.st-hero .inner { position: relative; z-index: 2; max-width: 880px; }
.st-eyebrow { font-family: 'Cinzel', serif; letter-spacing: .5em; font-size: 13px; color: var(--gold); text-transform: uppercase; margin-bottom: 18px; display: block; }
.st-hero h1 { font-size: clamp(38px, 7vw, 84px); font-weight: 900; line-height: 1.05; margin: 0 0 22px; text-shadow: 0 4px 30px rgba(0,0,0,.8); }
.st-hero h1 em { font-style: normal; color: var(--gold); }
.st-hero p.lead { font-size: 19px; color: #d4c9b8; max-width: 640px; margin: 0 auto 38px; line-height: 1.7; text-shadow: 0 2px 12px #000; }
.st-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.st-scroll { position: absolute; bottom: 26px; left: 50%; z-index: 2; color: var(--muted); font-size: 22px; animation: stBob 2s infinite; }
@keyframes stBob { 50% { transform: translate(-50%, 8px); } }

/* sections */
.st-section { padding: 110px 0; position: relative; background: var(--bg); }
.st-section.alt { background: var(--bg2); }
.st-head { text-align: center; margin-bottom: 60px; }
.st-head .st-eyebrow { letter-spacing: .4em; font-size: 12px; }
.st-head h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; margin: 0; }
.st-head h2::after { content: ''; display: block; width: 70px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 22px auto 0; }
.st-head p { color: var(--muted); max-width: 640px; margin: 20px auto 0; line-height: 1.7; }

/* featured game */
.st-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.st-feature .art { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 80px rgba(240,181,90,.08); }
.st-feature .art img, .st-feature .art video { width: 100%; display: block; transition: transform .6s; }
.st-feature .art:hover img { transform: scale(1.03); }
.st-tag { display: inline-block; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); padding: 6px 12px; border-radius: 3px; margin-bottom: 18px; }
.st-feature h3 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; margin: 0 0 18px; }
.st-feature p { color: #cbbfae; line-height: 1.8; margin-bottom: 26px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.st-chips span { font-size: 12px; padding: 6px 12px; border-radius: 20px; background: rgba(255,255,255,.06); color: var(--text); border: 1px solid rgba(255,255,255,.1); }

/* pillars */
.st-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.st-card {
  background: linear-gradient(180deg, var(--card), #120e0b); border: 1px solid var(--line); border-radius: 8px;
  padding: 38px 32px; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.st-card:hover { transform: translateY(-6px); border-color: rgba(240,181,90,.5); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.st-card .ico { width: 54px; height: 54px; border-radius: 50%; background: rgba(240,181,90,.12); border: 1px solid var(--line); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 22px; }
.st-card h4 { font-size: 20px; margin: 0 0 12px; font-weight: 700; }
.st-card p { color: var(--muted); line-height: 1.75; margin: 0; }

/* screenshot gallery */
.st-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.st-gallery a { position: relative; display: block; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); aspect-ratio: 16/9; background: #000; }
.st-gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.st-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; filter: brightness(.9); }
.st-gallery a:hover img { transform: scale(1.07); filter: brightness(1.1); }

/* discord banner */
.st-discord { background: radial-gradient(ellipse at 50% 0%, rgba(88,101,242,.25), transparent 60%), var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; padding: 90px 20px; }
.st-discord i.big { font-size: 52px; color: #7983f5; margin-bottom: 18px; display: block; }
.st-discord h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 14px; }
.st-discord p { color: var(--muted); max-width: 540px; margin: 0 auto 30px; line-height: 1.7; }

/* team */
.st-team { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.st-member { width: 330px; background: linear-gradient(180deg, var(--card), #120e0b); border: 1px solid var(--line); border-radius: 8px; padding: 34px 28px; text-align: center; transition: transform .3s, border-color .3s; }
.st-member:hover { transform: translateY(-6px); border-color: rgba(240,181,90,.5); }
.st-member .pic { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 20px; overflow: hidden; border: 2px solid var(--gold2); box-shadow: 0 0 0 6px rgba(240,181,90,.08); background: #000; }
.st-member .pic img { width: 100%; height: 100%; object-fit: cover; }
.st-member h4 { font-size: 20px; margin: 0 0 6px; }
.st-member h4 a { color: var(--text); }
.st-member h4 a:hover { color: var(--gold); }
.st-member .role { color: var(--gold); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.st-member p { color: var(--muted); line-height: 1.7; margin: 0; font-size: 14.5px; }

/* inner page title + old template sections on dark */
.bg-title-page { position: relative; }
.bg-title-page::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,11,9,.55), rgba(13,11,9,.9)); }
.bg-title-page .tit6 { position: relative; color: var(--text) !important; font-size: clamp(32px, 5vw, 56px); letter-spacing: .12em; }
.bg2-pattern, .section-contact { background: var(--bg) !important; background-image: none !important; }
.tit2 { color: var(--gold) !important; letter-spacing: .3em; }
.tit3, .tit5, .tit7 { color: var(--text) !important; }
.txt5, .txt23, .txt23 a, .size3, p { color: #cbbfae; }
.txt5 { color: var(--gold) !important; font-family: 'Cinzel', serif; }
.rounded-video { border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.st-pageblock { padding: 100px 0 0; background: var(--bg); }

/* footer */
footer.bg1, footer .bg2, .end-footer { background: #080604 !important; border-top: 1px solid var(--line); }
footer a, footer .txt17, footer .txt18 { color: var(--muted) !important; }
footer a:hover { color: var(--gold) !important; }
.btn-back-to-top { background: var(--gold2) !important; }

@media (max-width: 900px) {
  .st-feature { grid-template-columns: 1fr; gap: 34px; }
  .st-grid3 { grid-template-columns: 1fr; }
  .st-gallery { grid-template-columns: 1fr 1fr; }
  .st-section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .st-gallery { grid-template-columns: 1fr; }
  .st-gallery a:first-child { grid-column: auto; grid-row: auto; }
}
.st-member h4 a { font-family: 'Cinzel', serif !important; }
