:root {
  --bg-page: url("assets/bg.png");
  --bg-left: url("assets/left.png");
  --bg-right: url("assets/right.png");
  --bg-character: url("assets/captain.png");
  --bg-trailer: url("assets/trailer.png");
  --bg-news-thumb: url("assets/news.png");
  --bg-frame: url("assets/frame.png");
  --wood-dark: #1c1208;
  --wood: #2a1a0c;
  --panel: #0f0b07;
  --panel-edge: #c9982f;
  --gold: #f5c451;
  --gold-bright: #ffe08a;
  --gold-deep: #a9761a;
  --teal: #16c2c2;
  --red: #c1342b;
  --text: #efe6d6;
  --muted: #b8a98f;
  --line: rgba(201, 152, 47, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--wood-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
select, input, button { font-family: inherit; }

h1, h2, h3, h4, .brand-name, .block-title, .btn-play { font-family: "Cinzel", serif; }
.page-bg {
  position: fixed; inset: 0; z-index: -3;
  background:
    linear-gradient(180deg, transparent 0%, transparent 46%, rgba(4,9,17,0.55) 64%, rgba(3,7,14,0.9) 82%, #02060d 100%),
    var(--bg-page) center / cover no-repeat,
    linear-gradient(180deg, #0a1d30 0%, #06121f 60%, #03070f 100%);
}
.side-art {
  position: fixed; top: 0; bottom: 0; width: 32vw; z-index: -2;
  background-size: cover; background-position: center;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent);
          mask-image: linear-gradient(90deg, #000, transparent);
}
.side-left { left: 0; background-image: var(--bg-left); }
.side-right {
  right: 0;
  background-image: var(--bg-right);
  -webkit-mask-image: linear-gradient(270deg, #000, transparent);
          mask-image: linear-gradient(270deg, #000, transparent);
}
.topbar {
  position: relative; z-index: 10;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 12px 26px;
  background: linear-gradient(180deg, rgba(20,12,5,0.92), rgba(20,12,5,0.4));
  border-bottom: 2px solid var(--gold-deep);
}
.topbar-logo { display: none; }
.topbar-logo img { height: 32px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.forum-tab {
  background: linear-gradient(180deg, #2c2010, #1a1208);
  border: 1px solid var(--gold-deep);
  border-top: none;
  color: var(--gold);
  font-family: "Cinzel", serif; font-weight: 700; letter-spacing: 1px;
  padding: 8px 18px; border-radius: 0 0 8px 8px;
  font-size: 0.82rem;
}
.topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.socials { display: flex; gap: 8px; order: 1; }
.socials a {
  width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); color: var(--gold); border: 1px solid var(--line);
  transition: 0.2s; font-size: 0.85rem;
}
.socials a:hover { background: var(--gold); color: #2a1c02; }
.lang-dd { position: relative; order: 1; }
.socials { order: 2; }
.mobile-login-btn { display: none; }
#loginOverlay { display: none; }
#loginOverlay.open { display: flex; }
.lang-current {
  display: flex; align-items: center; gap: 8px;
  background: #1a1208; color: var(--text); border: 1px solid var(--gold-deep);
  border-radius: 6px; padding: 7px 11px; height: 36px; font-size: 0.82rem;
  cursor: pointer; font-weight: 600; min-width: 130px;
}
.lang-current:hover { border-color: var(--gold); }
.lang-current .fi { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.3); }
.lang-label { flex: 1; text-align: left; }
.lang-caret { font-size: 0.7rem; color: var(--gold); transition: transform 0.2s; }
.lang-dd.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  width: 190px; max-width: calc(100vw - 24px); max-height: 360px; overflow-y: auto;
  background: #15100a; border: 1px solid var(--gold-deep); border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6); padding: 5px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: 0.18s;
}
.lang-dd.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 6px; cursor: pointer;
  font-size: 0.86rem; font-weight: 600; color: var(--text); transition: 0.15s;
}
.lang-menu li:hover { background: rgba(245,196,81,0.12); color: var(--gold); }
.lang-menu li.active { background: rgba(245,196,81,0.18); color: var(--gold); }
.lang-menu .fi { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.3); flex-shrink: 0; }

.topbar-right { justify-content: flex-end; }
html:not(.lang-applied) [data-i18n], html:not(.lang-applied) [data-i18n-html], html:not(.lang-applied) [data-i18n-ph] { opacity: 0; }
html.lang-applied [data-i18n], html.lang-applied [data-i18n-html], html.lang-applied [data-i18n-ph] { opacity: 1; transition: opacity 0.1s; }
.login-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; visibility: hidden; }
#openRegister { visibility: hidden; }
.account-chip { visibility: hidden; }
.login-form input {
  background: #efe6d6; border: 1px solid var(--gold-deep); border-radius: 6px;
  padding: 8px 10px; font-size: 0.82rem; color: #1a1208; width: 140px; height: 36px;
}
.login-form input:focus { outline: none; border-color: var(--gold); }
.login-extra { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.login-error {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: rgba(231, 76, 60, 0.95);
  color: #fff;
  font-size: 0.78rem;
  text-align: left;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  width: auto;
  min-height: 1.2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 100;
}
.login-error.password { left: 170px; }
.login-error.username { left: 20px; }
.login-error::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(231, 76, 60, 0.95);
}
.remember { font-size: 0.7rem; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.remember input {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; margin: 0; flex-shrink: 0;
  background: #efe6d6; border: 1px solid var(--gold-deep); border-radius: 4px;
  background-repeat: no-repeat; background-position: center; background-size: 11px 11px;
  cursor: pointer; transition: 0.15s;
}
.remember input:checked {
  background-color: var(--gold-deep);
  border-color: #5e3f0c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.forgot { font-size: 0.7rem; color: var(--gold); white-space: nowrap; }
.forgot:hover { text-decoration: underline; }

.btn-gold-sm {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: #2a1c02; border: 1px solid #5e3f0c; border-radius: 6px;
  font-weight: 800; padding: 0 18px; height: 36px; cursor: pointer; font-size: 0.82rem;
  box-shadow: inset 0 1px 0 #fff6;
}
.btn-gold-sm:hover { filter: brightness(1.08); }

.btn-register-sm {
  background: linear-gradient(180deg, #2c2010, #161009);
  color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 6px;
  font-weight: 800; padding: 0 16px; height: 36px; cursor: pointer; font-size: 0.82rem;
  letter-spacing: 0.5px; transition: 0.2s; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-register-sm:hover { background: var(--gold); color: #2a1c02; border-color: #5e3f0c; }
.account-chip { display: flex; align-items: center; gap: 8px; }
.account-link {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #2c2010, #161009);
  border: 1px solid var(--gold-deep); border-radius: 8px;
  padding: 5px 12px; height: 36px; color: var(--gold);
  font-weight: 700; font-size: 0.82rem; transition: 0.2s; white-space: nowrap;
}
.account-link:hover { border-color: var(--gold); background: #36280f; }
.account-link i { font-size: 1.1rem; color: var(--gold-bright); }
.account-name { color: var(--text); }
.account-id {
  display: inline-flex; align-items: center; gap: 5px;
  padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--gold-deep);
  color: var(--gold-bright); font-weight: 800;
}
.account-admin, .account-logout {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 8px; cursor: pointer; transition: 0.2s; font-size: 0.95rem;
  border: 1px solid var(--gold-deep); background: linear-gradient(180deg, #2c2010, #161009); color: var(--gold);
}
.account-admin:hover { background: var(--gold); color: #2a1c02; border-color: #5e3f0c; }
.account-logout:hover { background: var(--red); color: #fff; border-color: var(--red); }
.cos-notif { position: relative; }
.cos-notif-btn {
  position: relative; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 8px; cursor: pointer; transition: 0.2s; font-size: 0.95rem;
  border: 1px solid var(--gold-deep); background: linear-gradient(180deg, #2c2010, #161009); color: var(--gold);
}
.cos-notif-btn:hover { background: var(--gold); color: #2a1c02; border-color: #5e3f0c; }
.cos-notif-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; background: var(--red); color: #fff;
  font-size: 0.62rem; font-weight: 800; border-radius: 999px; border: 2px solid #161009;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.6);
}
@keyframes cos-bell-shake {
  0% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } 100% { transform: rotate(0); }
}
.cos-notif-btn.shake i { display: inline-block; animation: cos-bell-shake 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; transform-origin: top center; }
.cos-notif-dd {
  position: absolute; top: 46px; right: 0; width: 330px;
  background: linear-gradient(180deg, #1a1208, #120c06); border: 1px solid var(--gold-deep);
  border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); display: none; z-index: 1200; overflow: hidden;
}
.cos-notif-dd.open { display: block; }
.cos-notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--gold-deep); color: var(--gold); }
.cos-notif-head b { font-size: 0.9rem; }
.cos-notif-head button { background: transparent; border: none; color: var(--gold-bright); font-size: 0.72rem; cursor: pointer; }
.cos-notif-head button:hover { text-decoration: underline; }
.cos-notif-list { max-height: 360px; overflow-y: auto; }
.cos-notif-item { padding: 12px 16px; border-bottom: 1px solid rgba(138, 107, 30, 0.25); transition: 0.15s; }
.cos-notif-item:hover { background: rgba(245, 196, 81, 0.05); }
.cos-notif-item.unread { border-left: 3px solid var(--gold); }
.cos-notif-item.read { opacity: 0.6; }
.cni-title { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.cni-body { font-size: 0.78rem; color: #bcae93; line-height: 1.4; word-break: break-word; }
.cni-time { font-size: 0.68rem; color: #7a6f5a; margin-top: 5px; }
.cos-notif-empty { padding: 26px; text-align: center; color: #7a6f5a; font-size: 0.82rem; }
.register-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(2, 6, 12, 0.78); backdrop-filter: blur(5px);
}
.register-overlay.open { display: flex; }
.register-frame {
  position: relative;
  width: min(440px, 100%);
  background:
    var(--bg-frame) center / 100% 100% no-repeat,
    linear-gradient(180deg, #1a1208 0%, #0c0805 100%);
  border: 3px solid var(--panel-edge);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.7), inset 0 0 30px rgba(0,0,0,0.6);
  animation: regPop 0.3s ease;
}
/* Çerçeve görseli (frame.png) eklenince kenarlığı kaldırmak için body'ye 'has-frame' verebilirsin */
@keyframes regPop { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }
.reg-inner { padding: 30px 34px 34px; }
.reg-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  background: rgba(0,0,0,0.4); border: 1px solid var(--gold-deep); color: var(--gold);
  font-size: 1rem; transition: 0.2s;
}
.reg-close:hover { background: var(--red); color: #fff; border-color: #5e1410; }
.reg-brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.reg-brand .brand-crest { margin-bottom: 8px; }
.reg-brand .brand-name { font-size: 2rem; font-weight: 900; line-height: 0.9; text-align: center; color: var(--gold); text-shadow: 0 2px 0 #5e3f0c, 0 0 18px rgba(245,196,81,0.5); }
.reg-brand .brand-name span { display: block; font-size: 0.8rem; letter-spacing: 6px; color: var(--gold-bright); }
.reg-brand .brand-sub { margin-top: 10px; }
.main-nav {
  position: relative; z-index: 9;
  background: linear-gradient(180deg, rgba(10,6,3,0.95), rgba(10,6,3,0.75));
  border-bottom: 2px solid var(--gold-deep);
}
.main-nav ul {
  display: flex; align-items: center; gap: 6px;
  width: min(1180px, 94%); margin: 0 auto; padding: 8px 0;
}
.main-nav a {
  display: block; padding: 9px 20px; border-radius: 8px;
  color: var(--text); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.5px; transition: 0.2s;
}
.main-nav a:hover { background: rgba(255,255,255,0.06); color: var(--gold); }
.main-nav a.active {
  background: linear-gradient(180deg, #2c2010, #161009);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold-deep), 0 4px 12px rgba(0,0,0,0.5);
}
.stage {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: 1.1fr minmax(340px, 400px);
  align-items: end;
  gap: 30px;
  width: min(1240px, 95%); margin: 0 auto;
  padding: 20px 0 0;
  min-height: 66vh;
}

/* Panel (download card) */
.panel {
  background: linear-gradient(180deg, #15100a 0%, #0c0805 100%);
  border: 2px solid var(--panel-edge);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 0 30px rgba(0,0,0,0.6);
  padding: 0 0 24px;
}
.panel-inner { padding: 0 24px; }
.brand { display: flex; flex-direction: column; align-items: center; position: relative; padding-top: 26px; }
.brand-ribbon {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #2c2010, #1a1208);
  color: var(--gold); font-size: 0.62rem; letter-spacing: 2px; font-weight: 700;
  padding: 3px 16px; border: 1px solid var(--gold-deep); border-top: none; border-radius: 0 0 6px 6px;
}
.brand-crest {
  width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 6px;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 24px rgba(245,196,81,0.5);
}
.brand-crest .brand-logo-img {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.brand-name {
  font-size: 2.1rem; font-weight: 900; line-height: 0.9; text-align: center;
  color: var(--gold);
  text-shadow: 0 2px 0 #5e3f0c, 0 0 18px rgba(245,196,81,0.5);
}
.brand-name span { display: block; font-size: 0.85rem; letter-spacing: 6px; color: var(--gold-bright); }
.brand-sub {
  text-align: center; color: var(--gold-bright); font-size: 0.72rem; letter-spacing: 3px;
  margin: 8px 0 18px; font-weight: 600;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 0;
}

/* Register form */
.register-form { display: flex; flex-direction: column; gap: 12px; }
.rf-field { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 10px; }
.rf-field > span { font-size: 0.78rem; color: var(--muted); }
.rf-field input {
  background: #efe6d6; border: 1px solid var(--gold-deep); border-radius: 5px;
  padding: 9px 10px; font-size: 0.88rem; color: #1a1208;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.25);
}
.rf-field input:focus { outline: none; border-color: var(--gold); }
.rf-check { display: flex; gap: 9px; align-items: flex-start; font-size: 0.72rem; color: var(--muted); line-height: 1.4; }
.rf-check input { margin-top: 3px; accent-color: var(--gold-deep); }
.rf-check a { color: var(--gold); text-decoration: underline; }

.btn-play {
  margin-top: 8px;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  border: 2px solid #5e3f0c; border-radius: 10px;
  color: #3a2606; cursor: pointer; padding: 12px; text-align: center;
  box-shadow: inset 0 2px 0 #fff8, 0 6px 18px rgba(0,0,0,0.5);
  transition: transform 0.15s, filter 0.15s;
}
.btn-play:hover { filter: brightness(1.07); transform: translateY(-2px); }
.btn-play:active { transform: translateY(0); }
.btn-play-top { display: block; font-size: 0.78rem; letter-spacing: 2px; font-weight: 700; }
.btn-play-bottom { display: block; font-size: 1.5rem; font-weight: 900; letter-spacing: 3px; line-height: 1; }
.dl-body { margin-top: 4px; }
.dl-title {
  text-align: center; color: var(--text); font-size: 1.25rem; line-height: 1.25;
  margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.dl-text { color: var(--muted); font-size: 0.9rem; text-align: center; margin-bottom: 16px; }
.dl-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.dl-features li { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--text); }
.dl-features i { color: var(--gold); background: rgba(245,196,81,0.12); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; flex-shrink: 0; }
.dl-meta {
  display: flex; justify-content: space-between; gap: 8px; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 0.72rem; color: var(--muted);
}
.dl-meta span { display: flex; align-items: center; gap: 5px; }
.dl-meta i { color: var(--gold); }
.hero-character {
  align-self: end;
  min-height: 600px;
  background: var(--bg-character) center bottom / contain no-repeat;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.7));
}
.video-section {
  position: relative; z-index: 5;
  width: min(820px, 92%); margin: 30px auto 0;
}
.block-title.centered { text-align: center; border-left: none; padding-left: 0; }
.trailer { width: 100%; }
.trailer-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--gold-deep);
  background: var(--bg-trailer) center / cover no-repeat, linear-gradient(135deg, #102634, #06121b);
  box-shadow: 0 14px 36px rgba(0,0,0,0.6);
}
.trailer-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,0,0,0.5); border: 2px solid var(--gold); color: var(--gold);
  font-size: 1.4rem; cursor: pointer; transition: 0.2s;
  display: grid; place-items: center;
}
.trailer-play:hover { background: var(--gold); color: #1a1208; transform: scale(1.08); }
.trailer-bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between;
  align-items: center; padding: 8px 12px; font-size: 0.72rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
}
.trailer-icons { display: flex; gap: 12px; }
.bottom {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
  width: min(1100px, 94%); margin: 36px auto 0;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.block-title {
  color: var(--gold); font-size: 1rem; letter-spacing: 2px; margin-bottom: 14px;
  border-left: 3px solid var(--gold); padding-left: 10px;
}
.fb-card { background: #fff; color: #1c1e21; border-radius: 10px; overflow: hidden; max-width: 360px; }
.fb-head { display: flex; gap: 10px; align-items: center; padding: 12px; }
.fb-avatar { width: 40px; height: 40px; border-radius: 50%; background: #0f2038; color: var(--gold); display: grid; place-items: center; }
.fb-head strong { font-size: 0.9rem; display: flex; align-items: center; gap: 5px; }
.verified { color: #1877f2; font-size: 0.78rem; }
.fb-head small { color: #65676b; font-size: 0.72rem; display: block; }
.fb-post { padding: 0 12px 12px; }
.fb-post p { font-size: 0.85rem; margin-bottom: 10px; }
.fb-page-mini { background: #fff; border-radius: 8px; max-width: 360px; padding: 10px 12px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.fb-mini-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #1c1e21; }
.fb-mini-link img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fb-mini-text { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.fb-mini-text span { font-size: 0.85rem; font-weight: 600; }
.fb-mini-text small { font-size: 0.7rem; color: #65676b; }
.fb-mini-btn { flex-shrink: 0; background: #1877f2; color: #fff; font-size: 0.75rem; font-weight: 600; padding: 5px 10px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; }
.fb-mini-btn:hover { background: #166fe5; }
.fb-page-mini:hover { box-shadow: 0 0 0 2px #1877f2; }
.fb-thumb {
  height: 280px; border-radius: 8px;
  background: center / cover no-repeat, linear-gradient(135deg, #0a3d62, #16c2c2);
}
.fb-actions { display: flex; gap: 6px; padding: 8px 12px; border-top: 1px solid #e4e6eb; background: #fff; }
.fb-actions span { flex: 1; text-align: center; padding: 6px 0; border-radius: 4px; font-size: 0.78rem; color: #65676b; cursor: pointer; transition: background .15s; }
.fb-actions span:hover { background: #f0f2f5; }
.fb-card:hover { box-shadow: 0 0 0 2px #1877f2; }
.fb-post a { pointer-events: auto; }

.story-lead { color: var(--gold-bright); font-size: 1.05rem; margin-bottom: 12px; line-height: 1.4; }
.story p { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.story-more { color: var(--gold); font-weight: 700; font-size: 0.9rem; display: inline-flex; gap: 7px; align-items: center; }
.story-more:hover { gap: 12px; }
.legal-page {
  position: relative; z-index: 5;
  width: min(960px, 94%); margin: 30px auto 40px;
  padding: 30px 0;
  overflow-x: hidden;
  max-width: 100%;
}
.legal-container {
  background: linear-gradient(180deg, rgba(21,16,10,0.95), rgba(12,8,5,0.95));
  border: 2px solid var(--panel-edge);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 0 30px rgba(0,0,0,0.4);
  padding: 36px 40px;
  overflow-x: hidden;
  max-width: 100%;
}
.legal-title {
  font-family: "Cinzel", serif; font-size: 1.6rem; font-weight: 800;
  color: var(--gold); text-align: center; margin-bottom: 26px;
  text-shadow: 0 2px 0 #5e3f0c, 0 0 12px rgba(245,196,81,0.4);
}
.legal-body h2 {
  font-family: "Cinzel", serif; font-size: 1.05rem; font-weight: 700;
  color: var(--gold-bright); margin: 22px 0 10px; letter-spacing: 0.4px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  font-size: 0.88rem; line-height: 1.7; color: var(--text); margin-bottom: 12px;
}
.legal-body ul { margin: 8px 0 14px 20px; list-style: disc; }
.legal-body li {
  font-size: 0.86rem; line-height: 1.6; color: var(--text); margin-bottom: 6px;
}
.legal-body a { color: var(--gold); text-decoration: underline; }
.legal-body a:hover { color: var(--gold-bright); }
.site-footer {
  position: relative; z-index: 5;
  text-align: center; padding: 24px; margin-top: 36px;
  border-top: 2px solid var(--gold-deep);
  background: rgba(12,8,4,0.7);
}
.site-footer p { color: var(--muted); font-size: 0.8rem; }
.site-footer a { color: var(--gold); }
.site-footer a:hover { text-decoration: underline; }
.footer-socials { display: none; gap: 10px; justify-content: center; margin-bottom: 14px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,255,255,0.08); color: var(--gold); border: 1px solid var(--line);
  transition: 0.2s; font-size: 0.95rem;
}
.footer-socials a:hover { background: var(--gold); color: #2a1c02; }
.shop-page { position: relative; z-index: 5; width: min(1200px, 94%); margin: 24px auto 40px; }
.shop-hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center;
  background: linear-gradient(135deg, rgba(21,16,10,0.95), rgba(12,8,5,0.95));
  border: 2px solid var(--panel-edge); border-radius: 14px; padding: 28px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 0 30px rgba(0,0,0,0.4);
  overflow: hidden;
}
.shop-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  color: var(--gold-bright); border: 1px solid var(--gold-deep); border-radius: 999px;
  padding: 4px 12px; margin-bottom: 10px;
}
.shop-title { font-family: "Cinzel", serif; font-size: 2rem; font-weight: 800; color: var(--gold); text-shadow: 0 2px 0 #5e3f0c, 0 0 14px rgba(245,196,81,0.4); }
.shop-sub { color: var(--text); font-size: 0.9rem; margin-top: 10px; max-width: 460px; line-height: 1.6; }
.shop-spotlight {
  background: rgba(0,0,0,0.4); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-height: 90px;
}
.spot-label { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.spot-title { font-family: "Cinzel", serif; font-size: 1.3rem; color: var(--gold-bright); font-weight: 700; }
.spot-sub { color: var(--text); font-size: 0.85rem; margin: 2px 0 6px; }
.spot-price { color: var(--teal); font-weight: 800; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.shop-toolbar-left { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.shop-input {
  height: 40px; background: #100b07; border: 1px solid var(--gold-deep); border-radius: 8px;
  color: var(--text); padding: 0 12px; font-size: 0.85rem; min-width: 180px;
}
.shop-input:focus { outline: none; border-color: var(--gold); }
.shop-cart-count {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold-bright); font-weight: 700; font-size: 0.85rem;
  border: 1px solid var(--gold-deep); border-radius: 8px; padding: 8px 14px; background: rgba(0,0,0,0.3);
}
.shop-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.shop-cat {
  background: #1a1209; border: 1px solid var(--gold-deep); color: var(--text);
  border-radius: 8px; padding: 8px 18px; font-weight: 700; font-size: 0.82rem; cursor: pointer; transition: 0.2s;
}
.shop-cat:hover { background: #2a1d0d; }
.shop-cat.active { background: var(--gold); color: #2a1c02; border-color: #5e3f0c; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.shop-empty { text-align: center; color: var(--muted); padding: 40px; }

.product-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #15100a, #0c0805);
  border: 2px solid var(--panel-edge); border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5); transition: transform 0.18s, box-shadow 0.18s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,0.6); }
.product-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 0.68rem; font-weight: 800;
  background: var(--red); color: #fff; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.5px;
}
.product-thumb {
  height: 150px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(245,196,81,0.18), transparent 60%), #0a0704;
  color: var(--gold); font-size: 2.6rem; border-bottom: 1px solid var(--line);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-title { font-family: "Cinzel", serif; font-size: 1.05rem; color: var(--gold-bright); font-weight: 700; }
.product-sub { color: var(--muted); font-size: 0.8rem; flex: 1; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.product-price { color: var(--teal); font-weight: 800; font-size: 1.05rem; }
.product-old { color: var(--muted); text-decoration: line-through; font-size: 0.8rem; }
.product-buy {
  margin-top: 8px; background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  border: 1px solid #5e3f0c; border-radius: 8px; color: #2a1c02; font-weight: 800;
  padding: 10px; cursor: pointer; font-size: 0.85rem; transition: filter 0.2s;
}
.product-buy:hover { filter: brightness(1.08); }

/* Floating cart */
.cart-fab-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-fab {
  width: 60px; height: 60px; border-radius: 50%; cursor: pointer; position: relative;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); border: 2px solid #5e3f0c;
  color: #2a1c02; font-size: 1.4rem; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.cart-fab-badge {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px;
}
.cart-panel {
  width: min(94vw, 420px); background: rgba(10,7,4,0.97); border: 2px solid var(--panel-edge);
  border-radius: 12px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.7); backdrop-filter: blur(6px);
}
.cart-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--gold-bright); }
.cart-total { color: var(--teal); font-weight: 800; }
.cart-items { max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.cart-empty { color: var(--muted); text-align: center; padding: 18px; font-size: 0.85rem; }
.cart-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 8px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.cart-row-title { color: var(--text); font-size: 0.85rem; }
.cart-row-unit { color: var(--muted); font-size: 0.72rem; margin-top: 2px; }
.cart-row-qty { display: inline-flex; align-items: center; gap: 6px; }
.cart-row-qty button { width: 24px; height: 24px; border-radius: 5px; border: 1px solid var(--gold-deep); background: #1a1209; color: var(--gold); cursor: pointer; font-weight: 800; }
.cart-row-qty span { min-width: 18px; text-align: center; color: var(--text); font-weight: 700; font-size: 0.85rem; }
.cart-row-sum { color: var(--teal); font-weight: 700; font-size: 0.85rem; }
.cart-row-del { background: none; border: none; color: var(--red); cursor: pointer; font-size: 0.9rem; }
.cart-actions { display: flex; gap: 10px; margin-top: 14px; }
.cart-clear, .cart-checkout { flex: 1; height: 40px; border-radius: 8px; cursor: pointer; font-weight: 800; font-size: 0.85rem; }
.cart-clear { background: #1a1209; border: 1px solid var(--gold-deep); color: var(--text); }
.cart-clear:hover { background: #2a1d0d; }
.cart-checkout { background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); border: 1px solid #5e3f0c; color: #2a1c02; }
.cart-checkout:hover { filter: brightness(1.08); }

.shop-toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 95;
  background: rgba(10,7,4,0.95); border: 1px solid var(--gold-deep); color: var(--text);
  padding: 12px 22px; border-radius: 10px; font-size: 0.85rem; box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}
.lb-page { max-width: 980px; margin: 0 auto; padding: 22px 18px; }
.lb-section { background: rgba(10,7,4,0.95); border: 2px solid rgba(200,157,79,0.35); border-radius: 18px; padding: 24px; box-shadow: 0 14px 50px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(200,157,79,0.08); }
.lb-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; justify-content: center; }
.lb-tab { background: #15100a; border: 1px solid var(--line); color: var(--muted); padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: 700; font-family: 'Cinzel', serif; font-size: 0.82rem; }
.lb-tab.active { border-color: var(--gold); color: var(--gold); background: rgba(200,157,79,0.15); }
.lb-body { margin-top: 8px; }
.lb-table { display: flex; flex-direction: column; gap: 6px; }
.lb-row { display: grid; grid-template-columns: 60px 1fr 140px; align-items: center; gap: 12px; background: rgba(0,0,0,0.45); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.lb-row.lb-header { background: rgba(200,157,79,0.12); border-color: rgba(200,157,79,0.3); border-radius: 10px; }
.lb-cell.lb-h { color: var(--gold); font-weight: 800; font-family: 'Cinzel', serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.lb-row:nth-child(2) { background: rgba(248,183,0,0.08); border-color: rgba(248,183,0,0.25); }
.lb-row:nth-child(3) { background: rgba(192,192,192,0.06); border-color: rgba(192,192,192,0.15); }
.lb-row:nth-child(4) { background: rgba(205,127,50,0.07); border-color: rgba(205,127,50,0.2); }
.lb-cell { font-size: 0.9rem; color: var(--text); }
.lb-r { text-align: center; font-weight: 800; font-family: 'Cinzel', serif; font-size: 1.1rem; }
.lb-n { font-weight: 700; }
.lb-s { color: var(--gold); text-align: right; font-weight: 600; }
.lb-loading { color: var(--muted); text-align: center; padding: 18px; }
.up-card { background: rgba(0,0,0,0.35); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.up-header { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.75rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.up-icon { color: var(--teal); }
.up-title { color: var(--gold); font-family: 'Cinzel', serif; font-size: 1.05rem; margin: 4px 0 8px; }
.up-body { color: #b8b0a0; font-size: 0.88rem; line-height: 1.55; white-space: pre-wrap; }
.tk-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.tk-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 0.82rem; }
.tk-field input, .tk-field textarea, .tk-field select { background: #15100a; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: 0.9rem; }
.tk-row { background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.tk-meta { display: flex; gap: 10px; align-items: center; font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.tk-cat { background: rgba(200,157,79,0.15); color: var(--gold); padding: 2px 8px; border-radius: 99px; font-size: 0.7rem; font-weight: 700; }
.tk-open { color: #16c29a; font-weight: 700; }
.tk-answered { color: var(--gold); font-weight: 700; }
.tk-closed { color: var(--red); font-weight: 700; }
.tk-subj { color: var(--text); font-weight: 600; }
.tk-date { color: #7a7268; font-size: 0.75rem; margin-top: 4px; }
.tkc-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(4,8,14,0.6); backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s ease; }
.tkc-overlay.open { opacity: 1; }
.tkc-modal { width: min(680px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #161009 0%, #0f0b06 100%); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04); overflow: hidden; transform: translateY(14px) scale(0.98); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.tkc-overlay.open .tkc-modal { transform: translateY(0) scale(1); }
.tkc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); background: rgba(245,196,81,0.03); }
.tkc-title { font-family: 'Cinzel', serif; font-size: 0.82rem; letter-spacing: 0.5px; color: var(--gold-deep); font-weight: 700; }
.tkc-subj { font-size: 1.12rem; font-weight: 700; color: var(--text); margin-top: 2px; }
.tkc-close { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); color: var(--muted); cursor: pointer; font-size: 1rem; transition: .15s; }
.tkc-close:hover { background: var(--red); border-color: var(--red); color: #fff; }
.tkc-meta { display: flex; gap: 8px; align-items: center; padding: 12px 22px; flex-wrap: wrap; }
.tkc-badge { font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.tkc-s-open { background: rgba(22,194,154,0.14); color: #2fe0b0; }
.tkc-s-answered { background: rgba(245,196,81,0.14); color: var(--gold); }
.tkc-s-closed { background: rgba(160,160,160,0.12); color: var(--muted); }
.tkc-chip { font-size: 0.72rem; font-weight: 600; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,0.04); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tkc-body { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 180px; }
.tkc-body::-webkit-scrollbar { width: 8px; }
.tkc-body::-webkit-scrollbar-thumb { background: rgba(245,196,81,0.18); border-radius: 99px; }
.tkc-msg { display: flex; max-width: 82%; }
.tkc-msg.tkc-me { align-self: flex-end; }
.tkc-msg.tkc-admin { align-self: flex-start; }
.tkc-bubble { padding: 12px 16px; border-radius: 16px; position: relative; }
.tkc-me .tkc-bubble { background: linear-gradient(160deg, rgba(245,196,81,0.16), rgba(169,118,26,0.12)); border: 1px solid rgba(245,196,81,0.22); border-bottom-right-radius: 5px; }
.tkc-admin .tkc-bubble { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.tkc-who { font-size: 0.7rem; font-weight: 700; color: var(--gold); margin-bottom: 5px; display: flex; align-items: center; gap: 6px; opacity: 0.85; }
.tkc-admin .tkc-who { color: var(--teal); }
.tkc-text { font-size: 0.9rem; line-height: 1.55; color: var(--text); word-break: break-word; }
.tkc-time { font-size: 0.68rem; color: #8a7f6c; margin-top: 6px; text-align: right; }
.tkc-compose { display: flex; align-items: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); background: rgba(0,0,0,0.25); }
.tkc-compose textarea { flex: 1; resize: none; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; color: var(--text); font-size: 0.9rem; line-height: 1.5; max-height: 140px; outline: none; transition: border-color .15s; }
.tkc-compose textarea:focus { border-color: rgba(245,196,81,0.5); }
.tkc-send { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; border: none; cursor: pointer; background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep)); color: #2a1c02; font-size: 1.05rem; transition: .15s; }
.tkc-send:hover { filter: brightness(1.1); transform: translateY(-1px); }
.tkc-send:disabled { opacity: 0.5; cursor: default; transform: none; }
.tkc-closed-note { padding: 16px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.2); }
.tkc-wait { padding: 16px 22px; border-top: 1px solid var(--line); color: var(--gold); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; background: rgba(245,196,81,0.06); }
.tkc-inline-err { padding: 10px 22px 14px; color: #ff6b6b; font-size: 0.82rem; display: flex; align-items: center; gap: 7px; background: rgba(193,52,43,0.08); }
@media(max-width:600px){ .tkc-msg { max-width: 92%; } .tkc-overlay { padding: 0; } .tkc-modal { max-height: 100vh; height: 100%; border-radius: 0; width: 100%; } }
.ac-card { background: rgba(0,0,0,0.35); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.ac-card h3 { color: var(--gold); font-family: 'Cinzel', serif; font-size: 1.05rem; margin-bottom: 12px; }
.ac-card p { color: #b8b0a0; font-size: 0.9rem; margin: 6px 0; }
.ac-card strong { color: var(--text); }
.ac-currency-row { display: flex; gap: 12px; margin-top: 12px; }
.ac-currency { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,0.25); flex: 1; }
.ac-currency i { font-size: 1.2rem; width: 24px; text-align: center; }
.ac-currency.gold i { color: #f5c451; }
.ac-currency.pearl i { color: #6ecbff; }
.ac-currency div { display: flex; flex-direction: column; }
.ac-currency-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.ac-currency-value { font-size: 1rem; font-weight: 700; color: var(--text); font-family: 'Cinzel', serif; }
@media (max-width: 480px) { .ac-currency-row { flex-direction: column; } }

/* Discord connect */
.btn-discord { background: #5865f2 !important; border-color: #5865f2 !important; }
.btn-discord:hover { filter: brightness(1.1); }
.ac-discord-none { color: var(--muted); font-size: 0.85rem; margin: 6px 0; }
.ac-discord-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ac-discord-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #5865f2; }
.ac-discord-info { display: flex; flex-direction: column; }
.ac-discord-name { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.ac-discord-synced { font-size: 0.75rem; color: var(--muted); }

/* Enhanced sessions */
.ac-sessions-empty { color: var(--muted); font-size: 0.85rem; margin: 6px 0; }
.ac-session { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,0.2); margin-bottom: 8px; }
.ac-session-current { border-color: var(--gold); background: rgba(200,157,79,0.08); }
.ac-session-icon { font-size: 1.2rem; color: var(--gold); width: 24px; text-align: center; flex-shrink: 0; }
.ac-session-body { flex: 1; min-width: 0; }
.ac-session-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.ac-session-device { font-weight: 700; color: var(--text); font-size: 0.85rem; }
.ac-session-badge { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; background: var(--gold); color: #000; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.ac-session-meta { font-size: 0.78rem; color: var(--muted); }

.ad-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.ad-tab { background: #15100a; border: 1px solid var(--line); color: var(--muted); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: 700; font-family: 'Cinzel', serif; font-size: 0.78rem; }
.ad-tab.active { border-color: var(--gold); color: var(--gold); background: rgba(200,157,79,0.08); }
.ad-c2 { background: rgba(20,12,5,0.6); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.ad-dm { color: var(--muted); font-size: 0.78rem; margin-top: 4px; }
.ad-ac { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ad-s { background: #1a1208; border: 1px solid var(--gold-deep); color: var(--gold); border-radius: 6px; padding: 5px 10px; font-size: 0.72rem; cursor: pointer; font-weight: 700; }
.ad-s:hover { background: var(--gold); color: #2a1c02; }
.ad-d { border-color: var(--red); color: var(--red); }
.ad-d:hover { background: var(--red); color: #fff; }
.ad-ban { border-color: #c0392b; color: #e74c3c; }
.ad-ban:hover { background: #c0392b; color: #fff; }
.ad-rl { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.68rem; font-weight: 700; margin-left: 6px; }
.ad-rl-player { background: rgba(100,100,100,0.15); color: var(--muted); }
.ad-rl-moderator { background: rgba(200,157,79,0.15); color: var(--gold); }
.ad-rl-owner { background: rgba(231,76,60,0.15); color: #e74c3c; }
.ad-bad-r { color: var(--red); font-size: 0.7rem; font-weight: 700; }
.ad-bad-open { color: #2ecc71; font-size: 0.7rem; font-weight: 700; }
.ad-bad-answered { color: var(--gold); font-size: 0.7rem; font-weight: 700; }
.ad-bad-closed { color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.ad-br { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.ad-br input, .ad-br select { background: #1a1208; border: 1px solid var(--gold-deep); color: var(--text); padding: 7px 10px; border-radius: 6px; font-size: 0.8rem; }
.ad-ls { display: flex; flex-direction: column; gap: 6px; }
.ad-modal-overlay { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(2,6,12,0.85); backdrop-filter: blur(4px); }
.ad-modal { background: #130d05; border: 2px solid var(--gold-deep); border-radius: 12px; padding: 24px; width: min(520px, 100%); max-height: 85vh; overflow-y: auto; position: relative; }
.ad-modal.ad-lg { width: min(720px, 100%); }
.ad-scr { max-height: 300px; overflow-y: auto; margin: 10px 0; padding: 10px; background: rgba(0,0,0,0.25); border-radius: 8px; }
.ad-msg { padding: 10px; border-radius: 8px; margin-bottom: 8px; font-size: 0.84rem; }
.ad-ma { background: rgba(200,157,79,0.1); border-left: 3px solid var(--gold); }
.ad-mu { background: rgba(60,120,200,0.1); border-left: 3px solid #3c78c8; }
.ad-sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.ad-sc { background: rgba(20,12,5,0.6); border: 1px solid var(--line); border-radius: 10px; padding: 18px; text-align: center; }
.ad-sn { font-size: 1.6rem; font-weight: 800; color: var(--gold); font-family: 'Cinzel', serif; }
.ad-ok { color: #2ecc71; }
.ad-err { color: var(--red); }
.ad-lr { padding: 6px 8px; border-radius: 6px; font-size: 0.78rem; margin-bottom: 4px; }
.ad-li { background: rgba(60,120,200,0.08); }
.ad-lw { background: rgba(200,157,79,0.08); }
.ad-le { background: rgba(231,76,60,0.08); color: var(--red); }
.ad-lbox { max-height: 300px; overflow-y: auto; background: rgba(0,0,0,0.2); border-radius: 8px; padding: 8px; }
.ad-tc { cursor: pointer; transition: 0.15s; }
.ad-tc:hover { border-color: var(--gold-deep); }
@media (max-width: 1000px) {
  .shop-hero { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .hero-character { order: 1; width: min(380px, 100%); min-height: 380px; }
  .panel { order: 2; width: min(400px, 100%); }
  .side-art { display: none; }
}
@media (max-width: 720px) {
  /* App-like header */
  .topbar { flex-direction: row; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 14px; min-height: 52px; background: rgba(15, 11, 7, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
  .topbar-logo { display: flex; align-items: center; flex-shrink: 0; }
  .topbar-logo img { height: 32px; }
  .forum-tab { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; font-size: 0.72rem; border-radius: 6px; border-top: 1px solid var(--gold-deep); flex-shrink: 0; }
  .topbar-right { flex-direction: row; justify-content: flex-end; align-items: center; gap: 6px; flex-wrap: wrap; max-width: none; overflow: visible; }
  .account-chip { order: auto; flex-shrink: 0; gap: 4px; align-items: center; }
  .account-link { width: 38px; height: 38px; padding: 0; font-size: 0.85rem; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 0; line-height: 1; aspect-ratio: 1 / 1; }
  .account-name { display: none; }
  .account-id { display: none; }
  .account-admin { width: 38px; height: 38px; padding: 0; font-size: 0.85rem; border-radius: 10px; display: flex; align-items: center; justify-content: center; line-height: 1; aspect-ratio: 1 / 1; }
  .account-logout { width: 38px; height: 38px; padding: 0; font-size: 0.85rem; border-radius: 10px; display: flex; align-items: center; justify-content: center; line-height: 1; aspect-ratio: 1 / 1; }
  .cos-notif { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
  .cos-notif-btn { width: 38px; height: 38px; padding: 0; font-size: 0.85rem; border-radius: 10px; display: flex; align-items: center; justify-content: center; line-height: 1; aspect-ratio: 1 / 1; }
  .cos-notif-badge { width: 16px; height: 16px; font-size: 0.65rem; }
  .login-form { display: none !important; }
  .mobile-login-btn { display: inline-flex; padding: 8px 14px; font-size: 0.78rem; height: 36px; border-radius: 8px; }
  .btn-register-sm { padding: 8px 14px; font-size: 0.78rem; height: 36px; border-radius: 8px; }

  /* Bottom Navigation Bar */
  .main-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 110; background: rgba(15, 11, 7, 0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,0.5); padding: 0; }
  .main-nav ul { flex-wrap: nowrap; justify-content: space-between; gap: 0; padding: 4px 0 8px; overflow-x: auto; margin: 0; width: 100%; box-sizing: border-box; }
  .main-nav li { flex: 1; text-align: center; }
  .main-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; font-size: 0.62rem; letter-spacing: 0.3px; white-space: nowrap; border-radius: 10px; color: var(--muted); border: none; min-height: 48px; justify-content: center; }
  .main-nav a::before { font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands'; font-weight: 900; font-size: 1.1rem; display: block; margin-bottom: 2px; }
  .main-nav a[href="index"]::before { content: '\f015'; } /* home */
  .main-nav a[href="leaderboard"]::before { content: '\f091'; } /* trophy */
  .main-nav a[href="updates"]::before { content: '\f0f3'; } /* bell */
  .main-nav a[href="wiki"]::before { content: '\f02d'; } /* book */
  .main-nav a[href="tickets"]::before { content: '\f0e0'; } /* envelope */
  .main-nav a[href="account"]::before { content: '\f007'; } /* user */
  .main-nav a.active, .main-nav a:hover { color: var(--gold); background: rgba(200,157,79,0.12); }

  .forum-tab { display: none !important; }
  .topbar-right .socials { display: none !important; }
  .lang-current { min-width: auto; padding: 6px 8px; height: 36px; font-size: 0.75rem; border-radius: 8px; }
  .lang-label { display: none; }
  .bottom { grid-template-columns: 1fr; }
  .fb-card { max-width: 100%; }
  .fb-page-mini { max-width: 100%; width: 100%; box-sizing: border-box; }
  .footer-socials { display: flex !important; }
  html, body { overflow-x: hidden; }
  .legal-page { margin: 16px auto 100px; padding: 16px 0; }
  .legal-container { padding: 20px 16px; }

  /* App-like cards */
  .ac-card { border-radius: 16px; padding: 20px; margin-bottom: 16px; background: rgba(0,0,0,0.45); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
  .ac-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
  .ac-card p { font-size: 0.95rem; }
  .btn-play { min-height: 48px; font-size: 1rem; border-radius: 12px; }
  .btn-play-top { padding: 12px 20px; }

  /* Big touch targets */
  input, select, button, .btn-gold-sm, .btn-register-sm { min-height: 44px; }
  .tk-field input { min-height: 44px; font-size: 1rem; border-radius: 10px; }
  .rf-field input { min-height: 44px; font-size: 1rem; border-radius: 10px; }

  /* Stage / hero */
  .stage { gap: 20px; padding: 20px 16px; }
  .hero-character { min-height: 300px; }
  .panel { gap: 16px; }
  .btn-play { min-height: 52px; }

  /* Bottom padding for fixed nav */
  body { padding-bottom: 70px; }
  .site-footer { margin-bottom: 70px; }
}

@media (max-width: 480px) {
  .socials { display: none !important; }
  .main-nav a { padding: 5px 2px; font-size: 0.55rem; }
  .main-nav a::before { font-size: 1rem; }
  .login-form input { min-width: 80px; max-width: 110px; }
  .account-link { padding: 6px 8px; }
  .account-id { display: none; }
  .topbar { padding: 8px 10px; gap: 6px; min-height: 48px; }
  .topbar-right { gap: 5px; }
  .legal-title { font-size: 1.3rem; }
  .stage { padding: 12px; }
  .hero-character { min-height: 240px; }
  .btn-play { min-height: 48px; font-size: 0.92rem; }
  .btn-play-top { padding: 10px 16px; }
  .ac-card { padding: 16px; border-radius: 14px; }
  .ac-session { padding: 8px 10px; }
  .ac-discord-avatar { width: 40px; height: 40px; }
}
.update-slider { position: relative; width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--gold-deep); box-shadow: 0 8px 30px rgba(0,0,0,0.45); margin-bottom: 24px; contain: layout paint; }
.update-slider-track { display: flex; width: 100%; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); background: #120e0b; }
.update-slide { flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #120e0b; display: flex; align-items: center; justify-content: center; }
.update-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.update-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(10, 7, 4, 0.55); border: 1px solid var(--gold-deep); color: var(--gold); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: 0.25s; backdrop-filter: blur(4px); padding: 0; flex-shrink: 0; aspect-ratio: 1 / 1; }
.update-slider-arrow:hover { background: rgba(20, 14, 6, 0.85); color: #fff; border-color: var(--gold); box-shadow: 0 0 12px rgba(245,196,81,0.25); }
.update-slider-arrow.prev { left: 12px; }
.update-slider-arrow.next { right: 12px; }
.update-slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; align-items: center; }
.update-slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(245,196,81,0.35); border: 1px solid var(--gold-deep); cursor: pointer; transition: 0.25s; padding: 0; flex-shrink: 0; aspect-ratio: 1 / 1; }
.update-slider-dot.active { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px rgba(245,196,81,0.45); }
.update-slider-dot:hover { background: rgba(245,196,81,0.65); }
@media (max-width: 720px) {
  .update-slide { aspect-ratio: 4 / 3; }
  .update-slider-arrow { width: 34px; height: 34px; font-size: 0.85rem; padding: 0; flex-shrink: 0; aspect-ratio: 1 / 1; }
  .update-slider-arrow.prev { left: 8px; }
  .update-slider-arrow.next { right: 8px; }
  .update-slider-dot { width: 8px; height: 8px; padding: 0; flex-shrink: 0; aspect-ratio: 1 / 1; }
}

.page-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 6px;
}

.wiki-page {
  display: flex;
  gap: 20px;
  width: min(1200px, 94%);
  margin: 24px auto 40px;
  min-height: 60vh;
}
.wiki-tree {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(20,12,5,0.85), rgba(10,6,3,0.65));
  border: 1px solid var(--gold-deep);
  border-radius: 12px;
  padding: 14px;
  align-self: flex-start;
}
.wiki-tree-header {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold);
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.wiki-tree-list,
.wiki-tree-nested {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wiki-tree-branch { margin-bottom: 2px; }
.wiki-tree-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
  text-align: left;
}
.wiki-tree-toggle:hover { background: rgba(255,255,255,0.05); color: var(--gold); }
.wiki-tree-toggle i { color: var(--gold); font-size: 0.85rem; width: 16px; text-align: center; }
.wiki-caret { transition: 0.2s; }
.wiki-caret.open { transform: rotate(90deg); }
.wiki-tree-nested {
  max-height: 0;
  overflow: hidden;
  padding-left: 18px;
  transition: max-height 0.25s ease;
}
.wiki-tree-nested.open { max-height: 200px; }
.wiki-tree-nested li { margin: 2px 0; }
.wiki-tree-link {
  display: block;
  padding: 5px 10px 5px 28px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.15s;
}
.wiki-tree-link:hover { color: var(--gold); background: rgba(255,255,255,0.04); }
.wiki-tree-link.active { color: var(--gold); background: rgba(245,196,81,0.08); }
.wiki-content {
  flex: 1;
  background: linear-gradient(180deg, rgba(20,12,5,0.85), rgba(10,6,3,0.65));
  border: 1px solid var(--gold-deep);
  border-radius: 12px;
  padding: 24px 28px;
}
.wiki-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  color: var(--muted);
}
.wiki-empty i { font-size: 3rem; color: var(--gold-deep); }
@media (max-width: 720px) {
  .wiki-page { flex-direction: column; }
  .wiki-tree { width: 100%; }
  .wiki-content { padding: 18px 16px; }
}
