/* ============================================================
   Luna Online — Modern Bright Theme
   Classic Celestia Luna look, refreshed for 2026
   ============================================================ */

:root {
  --sky-1:   #6fb7f0;
  --sky-2:   #a8dcff;
  --sky-3:   #d8f0ff;
  --ink:     #34405e;
  --ink-dim: #7b88a8;
  --line:    #e4ecf7;

  --blue:    #2f95ff;
  --blue-d:  #1f6fd6;
  --pink:    #ff5fa0;
  --pink-d:  #e23d82;
  --green:   #41c95a;
  --green-d: #2ba745;
  --orange:  #ff9d2e;
  --orange-d:#f07c0c;
  --gold:    #ffc24b;

  --card:    #ffffff;
  --radius:  20px;
  --shadow:  0 14px 34px -16px rgba(35, 80, 150, 0.45);
  --shadow-sm: 0 6px 18px -8px rgba(35, 80, 150, 0.4);

  --grad-blue: linear-gradient(135deg, #3aa6ff, #2f7fe6);
  --grad-pink: linear-gradient(135deg, #ff7bb6, #ff4f93);
  --grad-head: linear-gradient(135deg, #4db5ff, #6f8bff);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  background:
    radial-gradient(closest-side at 12% 22%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(closest-side at 82% 16%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(closest-side at 65% 40%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 30%, var(--sky-3) 60%, #eaf7ff 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, .logo { font-family: 'Fredoka', 'Nunito', sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.center { text-align: center; }
.mt { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; border-radius: 999px;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: .95rem;
  color: #fff; border: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn-blue   { background: linear-gradient(135deg, var(--blue),   var(--blue-d)); }
.btn-pink   { background: linear-gradient(135deg, var(--pink),   var(--pink-d)); }
.btn-green  { background: linear-gradient(135deg, var(--green),  var(--green-d)); }
.btn-orange { background: linear-gradient(135deg, var(--orange), var(--orange-d)); }
.btn-lg     { padding: 14px 32px; font-size: 1.08rem; }
.btn-sm     { padding: 8px 16px; font-size: .85rem; }
.btn-block  { display: flex; width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-top: 3px solid #6d3a3a;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .8rem; font-weight: 600;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; flex-wrap: wrap; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tb-item { display: inline-flex; align-items: center; }
.tb-item b { color: var(--ink); font-weight: 800; }
#server-clock { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--blue-d); }
.tb-sep { width: 1px; height: 16px; background: var(--line); }
.topbar a { color: var(--blue-d); font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 2px; }

.tb-status { display: inline-flex; align-items: center; gap: 10px; }
.srv { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-dim); font-weight: 700; }
.sdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sdot.online { background: var(--green); box-shadow: 0 0 7px var(--green); }
.sdot.busy { background: #ff9d2e; box-shadow: 0 0 7px #ff9d2e; }
.sdot.offline { background: #ff5f6d; box-shadow: 0 0 7px #ff5f6d; }

/* ---------- Banner ---------- */
.banner {
  position: relative;
  text-align: center;
  padding: 34px 18px 30px;
  overflow: hidden;
}
/* ---------- Background decorations ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url('../img/bg-clouds.png') repeat-x top center / 1200px auto;
  opacity: .35;
}
.banner-chars {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;
  max-width: 1400px; margin: 0 auto;
}

.logo { position: relative; display: inline-block; z-index: 2; }
.logo .sub {
  font-size: .95rem; font-weight: 600; letter-spacing: 5px;
  color: #2c63a8; text-transform: uppercase;
}
.logo .main {
  font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 700; line-height: 1;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #fff 0%, #cfeaff 45%, #ffd56b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #2f6fb8;
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(47,111,184,.25);
}
.download-wrap { margin-top: 16px; position: relative; z-index: 2; }

/* ---------- Main nav ---------- */
.mainnav {
  position: relative; z-index: 100;
  margin-top: 10px;
  padding: 10px 0;
}
.mainnav .container {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 52px;
  background: linear-gradient(180deg, #e8f4fc 0%, #dff0fb 50%, #d5ebf9 100%);
  border: 2px solid #a8cee8;
  border-radius: 26px;
  box-shadow: 
    inset 0 1px 3px rgba(255,255,255,.95),
    inset 0 -2px 4px rgba(168,206,232,.12),
    0 6px 20px -8px rgba(100,150,200,.25);
}
/* Gem ornaments at the container edges */
.gem { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  width: 32px; 
  height: 32px; 
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9b3ff, #9d5ae0 55%, #7038b8);
  box-shadow: 
    0 0 0 3px #dff0fb,
    0 0 0 5px #a8cee8,
    inset 0 -2px 6px rgba(80,30,120,.35),
    0 3px 8px rgba(100,50,150,.35);
  z-index: 2;
}
.gem::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.65), transparent 68%);
}
.gem::after { 
  content: ''; 
  position: absolute; 
  top: 7px; 
  left: 9px; 
  width: 10px; 
  height: 8px; 
  border-radius: 50%; 
  background: rgba(255,255,255,.9);
  box-shadow: 0 1px 2px rgba(255,255,255,.6);
}
.gem-left { left: 10px; }
.gem-right { right: 10px; }

.nav-links { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; 
  align-items: center; 
  justify-content: center;
  gap: 5px; 
  padding: 12px 20px;
  font-family: 'Fredoka', sans-serif; 
  font-weight: 600; 
  font-size: .94rem;
  color: #3d4a5d; 
  transition: all .25s ease; 
  text-shadow: 0 1px 1px rgba(255,255,255,.7);
  position: relative;
  border-radius: 12px;
  margin: 4px 0;
}
.nav-links > li > a:hover { 
  color: #2a5a8a;
  background: rgba(255,255,255,.5);
}
.nav-links > li > a.active { 
  color: #fff; 
  background: linear-gradient(180deg, #5eb3f6 0%, #3a9ae8 100%);
  text-shadow: 0 1px 2px rgba(30,80,130,.5);
  box-shadow: 
    inset 0 1px 2px rgba(180,220,255,.7),
    inset 0 -1px 2px rgba(40,110,180,.25),
    0 2px 8px rgba(80,160,230,.35);
  padding: 12px 28px;
}
.nav-links .caret { 
  font-style: normal; 
  font-size: .7rem; 
  opacity: .6; 
  margin-left: 2px;
}

/* Dropdown submenu */
.submenu {
  position: absolute; 
  top: calc(100% + 8px); 
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: linear-gradient(180deg, #f0f8fd 0%, #e8f4fc 100%); 
  border: 2px solid #a8cee8; 
  border-radius: 12px; 
  box-shadow: 
    inset 0 1px 3px rgba(255,255,255,.95),
    0 8px 24px -6px rgba(100,150,200,.3); 
  padding: 8px;
  opacity: 0; 
  visibility: hidden; 
  transition: all .25s ease; 
  z-index: 50;
}
.has-sub:hover .submenu { 
  opacity: 1; 
  visibility: visible; 
  transform: translateX(-50%) translateY(0); 
}
.submenu li a { 
  display: block; 
  padding: 11px 16px; 
  border-radius: 9px; 
  font-weight: 600; 
  font-size: .88rem; 
  color: #3d4a5d;
  transition: all .2s ease;
  text-shadow: 0 1px 1px rgba(255,255,255,.6);
}
.submenu li a:hover { 
  background: linear-gradient(135deg, #dff0fb, #d0e8f7); 
  color: #2a5a8a;
  box-shadow: inset 0 1px 3px rgba(168,206,232,.2);
  transform: translateX(2px);
}

.nav-toggle { display: none; position: absolute; right: 12px; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 3; }
.nav-toggle span { width: 26px; height: 3px; background: #8a6a30; border-radius: 3px; transition: .3s; }

@media (max-width: 1024px) {
  .mainnav .container { padding: 0 48px; }
  .nav-links > li > a { padding: 11px 16px; font-size: .88rem; }
  .nav-links > li > a.active { padding: 11px 24px; }
}

@media (max-width: 768px) {
  .gem { width: 28px; height: 28px; }
  .gem-left { left: 8px; }
  .gem-right { right: 8px; }
  .nav-links { flex-direction: column; width: 100%; gap: 3px; padding: 6px 0; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { width: 100%; justify-content: flex-start; }
}

/* ---------- Layout ---------- */
.layout {
  display: grid; grid-template-columns: 268px 1fr; gap: 22px;
  padding: 28px 0 40px; align-items: start;
}

/* ---------- Sidebar widgets ---------- */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.widget {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
}
.widget-head {
  background: var(--grad-head); color: #fff;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1rem;
  padding: 12px 18px;
}
.widget-body { padding: 16px 18px 18px; }

.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-form input {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #f7fafe;
  font-family: inherit; font-size: .9rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.login-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,149,255,.15); background: #fff; }
.login-links { display: flex; justify-content: space-between; font-size: .82rem; margin-top: 2px; }
.login-links a { color: var(--blue-d); font-weight: 700; }

.char-box { text-align: center; }
.char-avatar {
  width: 86px; height: 86px; margin: 0 auto 12px;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 2.6rem;
  background: radial-gradient(circle at 50% 30%, #eaf4ff, #cfe6ff);
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.char-box b { display: block; font-size: 1.05rem; }
.char-box small { color: var(--ink-dim); }

.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 10px; transition: background .2s;
}
.rank-row:hover { background: #f3f8ff; }
.rank-row b { flex: 1; font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: .92rem; }
.rank-row .lv { color: var(--orange-d); font-weight: 800; font-size: .9rem; }
.rank-badge {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px;
  display: grid; place-items: center; font-weight: 800; font-size: .82rem;
  background: #eaf0fa; color: var(--ink-dim);
}
.rank-badge.g1 { background: linear-gradient(135deg,#ffd86b,#ff9f1c); color: #5a3b00; }
.rank-badge.g2 { background: linear-gradient(135deg,#e3ecf7,#aebdd4); color: #3a455e; }
.rank-badge.g3 { background: linear-gradient(135deg,#f0a868,#c5703a); color: #4a2400; }

.server-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.server-row:last-child { border-bottom: none; }
.server-row span { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.server-row small { color: var(--ink-dim); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.online { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.maint  { background: var(--orange); box-shadow: 0 0 8px var(--orange); }

/* ---------- Content cards ---------- */
.content { display: flex; flex-direction: column; gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 26px;
  border: 1px solid rgba(255,255,255,.8);
}

.help-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, #fff4dc, #ffe9c2);
  border: 1px solid #ffe0a8; flex-wrap: wrap;
}
.help-banner h3 { color: var(--orange-d); font-size: 1.2rem; }
.help-banner p { color: #9a6a1c; font-size: .92rem; }

.post-title { font-size: 1.55rem; color: var(--ink); }
.post-date { color: var(--ink-dim); font-size: .82rem; font-weight: 700; margin: 4px 0 18px; }

.post-hero {
  position: relative; border-radius: 16px; overflow: hidden;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.post-hero img { width: 100%; height: 300px; object-fit: cover; }
.ribbon {
  position: absolute; left: 0; bottom: 16px;
  background: var(--grad-pink); color: #fff;
  font-family: 'Fredoka', sans-serif; font-weight: 600; letter-spacing: 1px;
  padding: 8px 22px 8px 18px; border-radius: 0 999px 999px 0;
  box-shadow: var(--shadow-sm);
}

.post-body h4 { font-size: 1.3rem; color: var(--blue-d); margin-bottom: 10px; }
.post-body p { color: var(--ink); margin-bottom: 16px; }

.feature-list { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .fi {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: #eaf4ff;
}
.feature-list div { font-size: .94rem; color: var(--ink); }
.feature-list b { color: var(--ink); }

.section-title { font-size: 1.35rem; color: var(--ink); margin-bottom: 16px; }

.pvp-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: center; }
.pvp-grid img { border-radius: 14px; height: 100%; object-fit: cover; box-shadow: var(--shadow-sm); }

.promo {
  text-align: center;
  background: linear-gradient(135deg, #7b6bff, #b06bff 50%, #ff6bbd);
  border: none; color: #fff;
}
.promo h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; text-shadow: 0 3px 8px rgba(0,0,0,.2); }

/* ---------- Item grid ---------- */
.items-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.item {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #cfe2ff; }
.item-thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: #f3f8ff; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-tag {
  position: absolute; top: 8px; left: 8px;
  background: var(--grad-blue); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase;
}
.item-tag.sale { background: linear-gradient(135deg,#ff5f6d,#ff2d55); }
.item-tag.ret  { background: linear-gradient(135deg,#41c95a,#2ba745); }
.item-info { padding: 12px 14px 14px; }
.item-info h5 { font-size: .95rem; margin-bottom: 10px; }
.item-buy { display: flex; align-items: center; justify-content: space-between; }
.coin { font-weight: 800; color: var(--orange-d); font-size: .92rem; }

/* ---------- Events ---------- */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.event {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--shadow-sm); display: block;
  transition: transform .2s;
}
.event:hover { transform: translateY(-4px); }
.event img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event:hover img { transform: scale(1.08); }
.event .ev-body {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,30,55,.85) 8%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
}
.event h4 { color: #fff; font-size: 1.05rem; }
.event small { color: var(--gold); font-weight: 700; }

/* ---------- Sub pages ---------- */
.page-head { padding: 30px 0 22px; }
.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff; text-shadow: 0 3px 10px rgba(35,80,150,.4);
}
.crumb { font-size: .85rem; margin-bottom: 8px; color: #2c5184; font-weight: 700; }
.crumb a { color: var(--blue-d); }

.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th, .rank-table td { text-align: left; padding: 13px 16px; font-size: .92rem; }
.rank-table th { color: var(--ink-dim); font-size: .76rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--line); }
.rank-table tbody tr { border-bottom: 1px solid var(--line); transition: background .2s; }
.rank-table tbody tr:hover { background: #f3f8ff; }

.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.step { text-align: center; padding: 22px 16px; border: 1px solid var(--line); border-radius: 16px; background: #f9fcff; }
.step .n { width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-family: 'Fredoka'; font-weight: 700; color: #fff; background: var(--grad-blue); }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.specs-grid table { width: 100%; }
.specs-grid td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.specs-grid td:first-child { color: var(--ink-dim); width: 38%; font-weight: 700; }

/* ---------- Footer ---------- */
.footer-scene {
  position: relative; height: 120px; margin-top: 30px;
  overflow: hidden;
}
.footer-scene .hill {
  position: absolute; bottom: 0; left: -5%; right: -5%; height: 90px;
  background: linear-gradient(180deg, #7ed957, #5cb83f);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.footer-scene span { position: absolute; bottom: 10px; font-size: 2.4rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,.15)); }
.footer-scene .windmill { left: 8%; font-size: 2.8rem; }

.site-footer {
  background: linear-gradient(180deg, #2a3f6b, #1c2b4d);
  color: #cdd9f0; padding: 30px 0 26px; text-align: center;
}
.socials { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.1); font-size: 1.2rem; transition: .2s;
}
.socials a:hover { background: var(--grad-blue); transform: translateY(-3px); }
.foot-links { display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.foot-links a { color: #cdd9f0; font-weight: 700; font-size: .9rem; }
.foot-links a:hover { color: #fff; }
.site-footer small { color: #8d9bc0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; order: 2; }
  .content { order: 1; }
  .items-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
    padding: 12px; gap: 4px; border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-160%); transition: transform .35s ease;
    max-height: calc(100vh - 90px); overflow-y: auto; z-index: 50;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 16px; }
  .nav-toggle { display: flex; }
  .mainnav .container { justify-content: flex-start; }
  .banner-chars .char { font-size: 2.2rem; }
  .banner-chars .c2, .banner-chars .c3 { display: none; }
}

@media (max-width: 700px) {
  .tb-hide-sm { display: none !important; }
  .topbar .container { justify-content: center; }
  .items-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: 1fr; }
  .pvp-grid { grid-template-columns: 1fr; }
  .pvp-grid img { height: 200px; }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .specs-grid, .guide-cols { grid-template-columns: 1fr !important; }
  .post-hero img { height: 200px; }
  .help-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 440px) {
  .items-grid { grid-template-columns: 1fr; }
  .card { padding: 18px; }
}

/* ============================================================
   Reference-style panels (Member Panel / Featured Items)
   ============================================================ */
.panel-card {
  background: #fff; border: 1px solid #e6ddc8; border-radius: 12px;
  box-shadow: 0 6px 18px -10px rgba(120,90,30,.35); overflow: hidden;
}
.panel-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 12px; font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem; font-weight: 600; color: #5a6b8c;
  border-bottom: 1px solid #f0ecdf;
}
.panel-card-head .pc-ic {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #eaf2ff, #cfe0ff); font-size: 1rem;
}
.panel-card-body { padding: 16px 18px 18px; }

/* Login fields with icons */
.login-field { position: relative; margin-bottom: 12px; }
.login-field .lf-ic {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: .9rem; opacity: .6;
}
.login-field input {
  width: 100%; padding: 11px 14px 11px 38px; border-radius: 8px;
  border: 1px solid #dfe3ec; background: #f7f8fb; font-family: inherit;
  font-size: .92rem; color: var(--ink);
}
.login-field input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(47,149,255,.14); }

.login-buttons { display: flex; gap: 10px; margin-top: 2px; }
.btn-login, .btn-register {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 12px; border-radius: 8px; font-family: 'Fredoka', sans-serif;
  font-weight: 600; font-size: .9rem; letter-spacing: .5px; color: #fff;
  border: none; cursor: pointer; box-shadow: var(--shadow-sm); transition: .15s;
}
.btn-login { background: linear-gradient(180deg, #6b8cff, #4a63e0); }
.btn-register { background: linear-gradient(180deg, #5fd06a, #36b04a); }
.btn-login:hover, .btn-register:hover { filter: brightness(1.06); transform: translateY(-1px); }
.login-trouble { display: block; text-align: center; margin-top: 12px; font-size: .82rem; color: var(--blue-d); font-weight: 600; }
.login-trouble:hover { text-decoration: underline; }

/* Featured Items carousel */
.featured-carousel { display: flex; align-items: center; gap: 6px; }
.fc-arrow {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #e0d9c5;
  background: #faf7ef; color: #9a8a64; font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: .15s;
}
.fc-arrow:hover { background: #f0a93e; color: #fff; border-color: #e08a1a; }
.fc-track {
  flex: 1;
  height: 260px;
  overflow: hidden;
  position: relative;
}
.fc-slide {
  position: absolute;
  inset: 0;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
}
.fc-slide.active { display: flex; animation: fcfade .35s ease; }
@keyframes fcfade { from { opacity: 0; } to { opacity: 1; } }
.fc-img { width: 110px; height: 110px; margin: 4px auto 10px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #f3f6fb, #e4ebf6); display: grid; place-items: center; }
.fc-img img { width: 100%; height: 100%; object-fit: cover; }
.fc-name {
  width: 100%;
  min-height: 52px;
  margin-bottom: 8px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  line-height: 1.35;
  color: #5a6b8c;
}
.fc-price {
  display: inline-flex; align-items: center; gap: 6px; min-width: 90px; justify-content: center;
  padding: 5px 16px; border-radius: 6px; font-family: 'Fredoka', sans-serif; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, #5aa9ff, #2f7fe0); box-shadow: 0 3px 8px -3px rgba(47,127,224,.7);
}
.fc-coin { width: 16px; height: 16px; border-radius: 50%; background: #ffd36b; color: #8a5a00; font-size: .68rem; display: grid; place-items: center; font-weight: 800; }
.fc-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.fc-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d8d2c0; cursor: pointer; transition: .2s; display: inline-block; }
.fc-dots i.active { background: #2f7fe0; transform: scale(1.2); }

/* ============================================================
   Classic Luna portal theme — reference-aligned 2026 refresh
   ============================================================ */
body {
  background: #72cdf7 url('../img/luna-fantasy-world.png') center top / cover fixed no-repeat;
  font-family: Arial, Helvetica, sans-serif;
  color: #706c68;
}
body::before {
  opacity: 0;
  background: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0 58%, rgba(83,188,238,.12) 78%, rgba(255,255,255,.22));
}
.container { max-width: 980px; padding-inline: 12px; }
.topbar {
  border: 0;
  min-height: 30px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 1px 4px rgba(83,111,125,.2);
  font-size: .72rem;
}
.topbar .container { min-height: 30px; }
.topbar .tb-sep { display: none; }
.topbar .srv { color: #64b849; }
.banner { min-height: 270px; padding: 64px 18px 20px; overflow: visible; }
.logo { filter: drop-shadow(0 4px 2px rgba(57,72,90,.3)); }
.logo .sub {
  color: #f7bd48;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 7px;
  text-shadow: -1px -1px #7f4e24, 1px 1px #fff;
}
.logo .main {
  font-family: Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.45rem);
  letter-spacing: -1px;
  background: linear-gradient(#fff9b7 5%, #f4c552 40%, #bc682c 80%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 1.5px #7d4a25;
  text-shadow: 0 2px #fff3ad, 0 5px 3px rgba(71,47,29,.25);
}
.logo-ribbon {
  width: max-content;
  margin: -1px auto 0;
  padding: 1px 20px;
  border-radius: 2px;
  background: linear-gradient(#7558b0, #3c256e);
  border: 1px solid #d6b166;
  color: #fff5cd;
  font: 700 .68rem Georgia, serif;
  letter-spacing: 4px;
}
.download-wrap { margin-top: 14px; }
.download-wrap .btn {
  position: relative;
  isolation: isolate;
  width: 250px;
  height: 82px;
  min-width: 250px;
  padding: 0 38px 7px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: url('../img/download-crystal-button.png') center / contain no-repeat;
  box-shadow: none;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 2.5px;
  text-shadow: 0 2px 2px #112963,0 0 8px #63eaff;
  filter: drop-shadow(0 6px 7px rgba(21,45,98,.38));
  transition: transform .25s ease,filter .3s ease;
}
.download-wrap .btn span { position: relative; z-index: 3; color: #fff; }
.download-wrap .btn::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 12%;
  right: 12%;
  bottom: 22%;
  height: 41%;
  border-radius: 48% 52% 18% 22% / 36% 42% 58% 64%;
  background:
    radial-gradient(ellipse at 14% 68%,rgba(255,255,255,.95) 0 3%,transparent 4%),
    radial-gradient(ellipse at 54% 30%,rgba(144,246,255,.9) 0 4%,transparent 5%),
    radial-gradient(ellipse at 82% 70%,rgba(255,255,255,.8) 0 3%,transparent 4%),
    linear-gradient(180deg,rgba(73,230,255,.18),rgba(18,178,255,.78));
  background-size: 70px 34px,85px 40px,64px 30px,100% 100%;
  opacity: 0;
  transform: translateY(16px) scaleY(.3);
  transform-origin: bottom;
  transition: opacity .25s ease,transform .35s cubic-bezier(.2,.8,.2,1);
  mix-blend-mode: screen;
}
.download-wrap .btn::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 12px;
  bottom: 17px;
  width: 36px;
  left: -45px;
  transform: skewX(-22deg);
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);
  opacity: 0;
}
.download-wrap .btn:hover {
  transform: translateY(-3px) scale(1.035);
  filter: drop-shadow(0 9px 11px rgba(25,93,177,.5)) drop-shadow(0 0 12px rgba(69,227,255,.55));
}
.download-wrap .btn:hover::before {
  opacity: .86;
  transform: translateY(0) scaleY(1);
  animation: downloadLiquid 1.4s ease-in-out infinite alternate;
}
.download-wrap .btn:hover::after { opacity: 1; animation: downloadShine 1.25s ease-in-out infinite; }
.download-wrap .btn:active { transform: translateY(0) scale(.98); }
@keyframes downloadLiquid {
  0% { border-radius: 45% 55% 20% 18% / 42% 34% 66% 58%; background-position: 0 0,20px 4px,8px 3px,0 0; }
  100% { border-radius: 56% 44% 16% 24% / 30% 48% 52% 70%; background-position: 22px -3px,0 7px,24px -2px,0 0; }
}
@keyframes downloadShine { 0% { left: -45px; } 70%,100% { left: calc(100% + 20px); } }
@media (prefers-reduced-motion: reduce) {
  .download-wrap .btn:hover::before,.download-wrap .btn:hover::after { animation: none; }
}

/* Refined contained glow for the crystal download button */
.download-wrap .btn {
  overflow: hidden;
  clip-path: polygon(9% 18%,18% 7%,82% 7%,91% 18%,100% 50%,91% 82%,62% 86%,50% 98%,38% 86%,9% 82%,0 50%);
  filter: drop-shadow(0 5px 5px rgba(20,48,104,.28));
}
.download-wrap .btn::before {
  left: 9%;
  right: 9%;
  top: 17%;
  bottom: 22%;
  height: auto;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 65%,rgba(105,241,255,.78) 0%,rgba(25,159,255,.35) 42%,transparent 72%),
    radial-gradient(circle at 18% 52%,rgba(229,176,255,.75) 0 3%,transparent 13%),
    radial-gradient(circle at 82% 52%,rgba(229,176,255,.75) 0 3%,transparent 13%);
  opacity: 0;
  transform: scale(.72);
  mix-blend-mode: screen;
  filter: blur(3px);
  transition: opacity .25s ease,transform .32s ease;
}
.download-wrap .btn::after {
  top: 18%;
  bottom: 26%;
  left: 15%;
  width: 70%;
  border-radius: 50%;
  transform: none;
  background: radial-gradient(ellipse at center,rgba(255,255,255,.48),rgba(76,220,255,.18) 34%,transparent 68%);
  opacity: 0;
  filter: blur(5px);
}
.download-wrap .btn:hover {
  transform: translateY(-2px) scale(1.025);
  filter: brightness(1.14) saturate(1.18) drop-shadow(0 6px 7px rgba(26,83,163,.34));
}
.download-wrap .btn:hover::before {
  opacity: 1;
  transform: scale(1);
  animation: crystalInnerGlow 1.35s ease-in-out infinite alternate;
}
.download-wrap .btn:hover::after {
  opacity: .9;
  animation: crystalCoreGlow 1.35s ease-in-out infinite alternate;
}
.download-wrap .btn:hover span { animation: crystalTextGlow 1.35s ease-in-out infinite alternate; }
@keyframes crystalInnerGlow {
  from { opacity: .58; transform: scale(.84); filter: blur(4px); }
  to { opacity: 1; transform: scale(1.04); filter: blur(2px); }
}
@keyframes crystalCoreGlow {
  from { opacity: .25; transform: scaleX(.8); }
  to { opacity: .8; transform: scaleX(1); }
}
@keyframes crystalTextGlow {
  from { color: #fff; text-shadow: 0 2px 2px #112963,0 0 7px #43cfff; }
  to { color: #fffbd5; text-shadow: 0 2px 2px #112963,0 0 5px #fff,0 0 14px #62eaff,0 0 22px #567cff; }
}
@media (prefers-reduced-motion: reduce) {
  .download-wrap .btn:hover::before,.download-wrap .btn:hover::after,.download-wrap .btn:hover span { animation: none; }
}

/* Download page portal layout */
.download-page { max-width: 980px; margin-top: 10px; }
.download-page .download-shell {
  display: block !important;
  grid-template-columns: none !important;
  width: 100%;
  padding: 22px 24px 30px !important;
  border: 1px solid rgba(129,111,96,.6);
  border-radius: 0 !important;
  background: rgba(240,244,244,.95) !important;
  box-shadow: 0 8px 22px rgba(35,58,68,.28) !important;
}
.download-page .page-head {
  padding: 4px 0 18px !important;
  margin-bottom: 18px;
  border-bottom: 1px solid #d9d3cc;
}
.download-page .page-head h1 {
  margin-top: 7px;
  font-size: clamp(1.9rem,4vw,2.7rem) !important;
  line-height: 1.15;
  color: #865f43 !important;
}
.download-page .promo {
  position: relative;
  min-height: 230px;
  margin-bottom: 18px;
  padding: 42px 38px;
  overflow: hidden;
  border: 1px solid #aebfd8 !important;
  border-radius: 4px !important;
  background:
    radial-gradient(circle at 78% 35%,rgba(111,224,255,.42),transparent 26%),
    radial-gradient(circle at 22% 80%,rgba(153,118,255,.24),transparent 34%),
    linear-gradient(135deg,#102c62,#185e9e 55%,#143b78) !important;
  box-shadow: inset 0 0 35px rgba(52,206,255,.15),0 5px 13px rgba(38,70,106,.2);
}
.download-page .promo::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle,rgba(255,255,255,.78) 0 1px,transparent 1.5px);
  background-size: 54px 46px;
  opacity: .25;
}
.download-page .promo h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: #fff6bb !important;
  font: 700 clamp(1.7rem,4vw,2.65rem) Georgia,serif;
  text-shadow: 0 2px #274477,0 0 14px rgba(77,221,255,.65) !important;
}
.download-page .promo > div { position: relative; z-index: 1; align-items: center; }
.download-page .promo .btn-green {
  width: 300px;
  min-height: 92px;
  padding: 0 50px 8px;
  border: 0;
  border-radius: 0;
  background: url('../img/download-crystal-button.png') center / contain no-repeat;
  color: #fff;
  font-family: Georgia,serif;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: .4px;
  text-shadow: 0 2px 2px #10275e,0 0 8px #5ae8ff;
  box-shadow: none;
  filter: drop-shadow(0 6px 7px rgba(2,20,58,.36));
}
.download-page .promo .btn-green:hover { transform: translateY(-3px) scale(1.035); filter: brightness(1.16) drop-shadow(0 8px 10px rgba(43,181,244,.4)); }
.download-page .promo .btn-orange {
  padding: 10px 24px;
  border: 1px solid #e7b757;
  border-radius: 3px;
  background: linear-gradient(#ffca5d,#df8b24);
  box-shadow: inset 0 1px rgba(255,255,255,.45),0 4px 8px rgba(24,34,65,.25);
}
.download-page > .download-shell .card:not(.promo) {
  padding: 26px 28px;
  border: 1px solid #cfc4ba !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 11px rgba(67,55,46,.12);
}
.download-page .section-title {
  padding-bottom: 10px;
  border-bottom: 2px solid #dbcbbb;
  color: #76543d;
  font-family: Georgia,serif;
}
.download-page .steps-grid { gap: 12px; }
.download-page .step {
  position: relative;
  min-height: 150px;
  padding: 24px 14px 18px;
  border-radius: 4px;
  transition: transform .2s ease,box-shadow .2s ease;
}
.download-page .step:hover { transform: translateY(-4px); box-shadow: 0 8px 15px rgba(84,62,39,.13); }
.download-page .step .n {
  margin-top: -6px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #dfb77d,0 4px 8px rgba(142,77,23,.2);
}
.download-page .step b { display: block; margin-bottom: 7px; font-size: .9rem; }
.download-page .specs-grid > div {
  padding: 18px 20px;
  border: 1px solid #e5ddd5;
  background: #fbfaf7;
}
.download-page .specs-grid td { padding: 10px 5px; }
@media (max-width: 700px) {
  .download-page .download-shell { padding: 15px !important; }
  .download-page .promo { min-height: 0; padding: 30px 15px; }
  .download-page .promo .btn-green { width: min(290px,100%); }
  .download-page .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .download-page .steps-grid { grid-template-columns: 1fr; }
}
.mainnav { margin: -6px 0 0; padding: 0; }
.mainnav .container {
  min-height: 42px;
  padding: 0 34px;
  border: 2px solid #9b7435;
  border-radius: 3px;
  background: linear-gradient(#fff, #eee9df 52%, #d7d2c9);
  box-shadow: inset 0 1px #fff, 0 3px 6px rgba(52,69,75,.35);
}
.nav-links { gap: 0; width: 100%; }
.nav-links > li > a,
.nav-links > li > a.active {
  padding: 10px 15px;
  margin: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #756f68;
  font: 400 .82rem Arial, sans-serif;
  text-shadow: 0 1px #fff;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: #7f55a3; background: rgba(255,255,255,.7); }
.gem { width: 28px; height: 28px; border-radius: 35% 65% 45% 55%; background: radial-gradient(circle at 35% 30%, #ef9dff, #832ba9 55%, #48206d); }
.gem-left { left: -13px; }.gem-right { right: -13px; }
main { position: relative; }
.portal-shell { margin-top: 10px; }
.home-layout {
  grid-template-columns: 238px minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 12px !important;
  border: 1px solid rgba(129,111,96,.6);
  border-radius: 0 !important;
  background: rgba(231,235,235,.9) !important;
  box-shadow: 0 8px 22px rgba(35,58,68,.28) !important;
}
.sidebar { gap: 12px; }
.panel-card {
  border: 1px solid #b8aaa0 !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 5px rgba(83,63,49,.18) !important;
}
.panel-card-head { min-height: 50px; padding: 10px 14px !important; font-size: 1rem !important; }
.panel-card-head .pc-ic { width: 30px; height: 30px; }
.panel-card-body { padding: 12px 14px !important; }
.login-buttons { flex-direction: column; gap: 5px !important; }
.btn-login,.btn-register { border-radius: 1px !important; padding: 7px !important; font-size: .7rem !important; }
.login-trouble { margin-top: 10px !important; font-size: .72rem; }
.featured-carousel { gap: 2px !important; }
.fc-track { height: 225px; }
.fc-slide .fc-img { width: 120px !important; height: 120px !important; margin-bottom: 5px; }
.fc-name { min-height: 40px; font-size: .82rem !important; margin-bottom: 5px !important; }
.fc-price { padding: 4px 15px !important; font-size: .78rem !important; border-radius: 0 !important; }
.fc-arrow { width: 24px; height: 24px; }
.fc-dots { margin-top: 8px !important; }
.prank-table th,.prank-table td { font-size: .68rem !important; padding: 7px 8px !important; }
.content { gap: 12px; }
.hero-slider { height: 170px !important; min-height: 0; border-radius: 0 !important; }
.card { border-radius: 0 !important; }
.post-head { padding-top: 11px !important; }
.post-title-2 { font-size: 1.25rem !important; }
.post-hero { padding: 0 !important; }
.post-hero > div { height: 260px !important; border-radius: 0 !important; }
.post-body { padding: 0 25px 25px !important; }
.post-body h4 { font-size: 1.4rem !important; color: #3d8de3 !important; }
.feature-list { gap: 13px !important; }
.feature-list li > div { font-size: .82rem !important; line-height: 1.45 !important; }
.home-store-strip {
  border: 1px solid #b8aaa0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(83,63,49,.18);
}
.home-store-strip > h3 {
  padding: 6px;
  background: linear-gradient(90deg,#26104d,#603388,#26104d);
  color: #ffd45e;
  text-align: center;
  font: 700 1rem Georgia, serif;
}
.home-store-grid { display: grid; grid-template-columns: repeat(4,1fr); padding: 13px; }
.home-store-item { position: relative; padding: 7px; text-align: center; border-right: 1px dotted #d3ccc5; transition: .22s ease; }
.home-store-item:last-child { border-right: 0; }
.home-store-item:hover { background: #fffbea; transform: translateY(-3px); }
.home-store-item img { width: 76px; height: 76px; margin: auto; object-fit: cover; }
.home-store-item span { display: block; min-height: 34px; margin-top: 4px; font-size: .7rem; color: #5779a2; }
.home-store-item b { display: block; padding: 3px; background: #37b5ed; color: #fff; font-size: .68rem; }
.home-event-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.home-event-card { padding: 12px; border: 1px solid #b8aaa0; background: rgba(255,255,255,.96); text-align: center; box-shadow: 0 2px 5px rgba(83,63,49,.18); transition: .22s ease; }
.home-event-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(58,76,84,.22); }
.home-event-card img { width: 82px; height: 82px; margin: auto; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 1px #d0c1b5; }
.home-event-card h3 { margin: 8px 0 3px; color: #d4773e; font: 700 1rem Georgia, serif; line-height: 1.1; }
.home-event-card small { color: #999; font-size: .65rem; }
.footer-scene { height: 70px; margin: 0; opacity: .75; }
.site-footer { padding: 16px 0; background: rgba(255,255,255,.94); color: #6d7c8a; }
.site-footer .socials a { border-radius: 2px; background: #4b98da; color: white; }
.site-footer .foot-links,.site-footer small { display: none; }
.reveal { transform: translateY(14px); transition-duration: .45s; }
@media (max-width: 980px) {
  .container { max-width: 920px; }
  .nav-links > li > a,.nav-links > li > a.active { padding-inline: 10px; }
}
@media (max-width: 820px) {
  body { background-size: auto 1000px; }
  .banner { min-height: 225px; padding-top: 45px; }
  .home-layout { grid-template-columns: 1fr !important; }
  .sidebar { order: 2; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sidebar .panel-card:last-child { grid-column: 1/-1; }
  .mainnav .container { min-height: 44px; }
  .nav-links > li > a,.nav-links > li > a.active { padding: 11px 14px; }
}
@media (max-width: 600px) {
  .banner { min-height: 205px; }
  .logo .main { font-size: 2.25rem; }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar .panel-card:last-child { grid-column: auto; }
  .home-store-grid { grid-template-columns: repeat(2,1fr); }
  .home-event-grid { grid-template-columns: 1fr; }
  .post-body { padding-inline: 16px !important; }
  .post-body [style*="display: flex; gap: 30px"] { flex-direction: column; }
}

/* Astral Luna footer */
.footer-scene {
  display: none;
}
.footer-scene::before,
.footer-scene::after {
  content: '';
  position: absolute;
  bottom: -68px;
  width: 65%;
  height: 130px;
  border-radius: 50% 50% 0 0;
}
.footer-scene::before {
  left: -8%;
  background: linear-gradient(160deg, #b9e994, #73c86b);
  box-shadow: inset 0 8px 15px rgba(255,255,255,.25);
}
.footer-scene::after {
  right: -10%;
  bottom: -82px;
  background: linear-gradient(200deg, #99dc87, #55b36a);
}
.footer-cloud {
  position: absolute;
  width: 115px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  filter: blur(.2px);
  animation: footerCloud 20s linear infinite;
}
.footer-cloud::before,.footer-cloud::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.footer-cloud::before { width: 48px; height: 48px; left: 20px; bottom: 5px; }
.footer-cloud::after { width: 62px; height: 62px; right: 10px; bottom: 1px; }
.cloud-one { left: 8%; top: 48px; }
.cloud-two { right: 7%; top: 16px; transform: scale(.72); animation-delay: -9s; }
@keyframes footerCloud { 50% { transform: translateX(24px); } }
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 38px 0 18px;
  color: #dfeaff;
  background:
    radial-gradient(circle at 50% -30%, rgba(126,193,255,.3), transparent 45%),
    linear-gradient(180deg, #263f72 0%, #17294f 58%, #111f3f 100%);
  border-top: 3px solid rgba(255,214,111,.8);
  box-shadow: inset 0 1px rgba(255,255,255,.2), 0 -8px 24px rgba(33,84,126,.15);
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.75) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,216,112,.6) 0 1px, transparent 1.5px);
  background-size: 90px 70px, 130px 100px;
  background-position: 12px 9px, 58px 38px;
  opacity: .3;
}
.footer-glow {
  position: absolute;
  top: -70px;
  left: 50%;
  width: 500px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(87,184,255,.22);
  filter: blur(35px);
}
.footer-inner { position: relative; z-index: 1; text-align: center; }
.footer-brand { margin-bottom: 19px; }
.footer-logo { display: inline-flex; flex-direction: column; filter: drop-shadow(0 3px 2px rgba(0,0,0,.25)); }
.footer-logo span {
  color: #f8d46e;
  font: 800 .65rem Georgia, serif;
  letter-spacing: 5px;
}
.footer-logo strong {
  color: #fff1ad;
  font: 700 1.7rem Georgia, serif;
  letter-spacing: .5px;
  text-shadow: 0 2px #815326;
}
.footer-brand p { margin-top: 4px; color: #aebfdf; font-size: .78rem; letter-spacing: .35px; }
.site-footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 8px 0;
  margin: 0 auto 20px;
}
.site-footer .foot-links a {
  position: relative;
  padding: 0 15px;
  color: #d7e3f8;
  font-size: .76rem;
  font-weight: 600;
  transition: color .2s ease;
}
.site-footer .foot-links a + a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 1px;
  height: 11px;
  background: rgba(255,255,255,.2);
}
.site-footer .foot-links a:hover { color: #ffd96e; }
.site-footer .socials { margin: 0 0 24px; gap: 10px; }
.site-footer .socials a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  background: #4e9bd8;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: .9rem;
  font-weight: 800;
  box-shadow: inset 0 1px rgba(255,255,255,.35), 0 4px 10px rgba(4,17,46,.3);
}
.site-footer .socials svg { width: 20px; height: 20px; overflow: visible; }
.site-footer .socials svg path { fill: currentColor; stroke: none; }
.site-footer .socials svg rect,.site-footer .socials svg circle { fill: none; stroke: currentColor; stroke-width: 1.9; }
.site-footer .socials svg .social-dot { fill: currentColor; stroke: none; }
.site-footer .socials .social-instagram { background: linear-gradient(135deg,#ffcf55,#ef476f 48%,#8b5cf6); }
.site-footer .socials .social-facebook { background: #1877f2; }
.site-footer .socials .social-discord { background: #5865f2; }
.site-footer .socials a:hover {
  transform: translateY(-4px) rotate(3deg);
  filter: brightness(1.12);
  box-shadow: inset 0 1px rgba(255,255,255,.4), 0 8px 16px rgba(4,17,46,.36);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.site-footer .footer-bottom small { display: block; color: #8398bf; font-size: .68rem; }
.footer-bottom > a { color: #8398bf; font-size: .68rem; }
.footer-bottom > a:hover { color: #ffd96e; }
@media (max-width: 600px) {
  .footer-scene { height: 90px; margin-top: 24px; }
  .site-footer { padding-top: 30px; }
  .site-footer .foot-links a { padding-inline: 9px; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}

/* Ornate classic navigation — final overlay */
.floating-socials {
  position: fixed;
  top: 46%;
  right: 12px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 6px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 7px 18px rgba(30,68,96,.22);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}
.floating-socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.35),0 3px 8px rgba(29,49,73,.2);
  transition: transform .2s ease,filter .2s ease,box-shadow .2s ease;
}
.floating-socials a:hover {
  transform: translateX(-5px) scale(1.08);
  filter: brightness(1.1);
  box-shadow: inset 0 1px rgba(255,255,255,.4),0 6px 13px rgba(29,49,73,.3);
}
.floating-socials svg { width: 19px; height: 19px; }
.floating-socials path { fill: currentColor; }
.floating-socials rect,.floating-socials circle { fill: none; stroke: currentColor; stroke-width: 1.9; }
.floating-socials .float-dot { fill: currentColor; stroke: none; }
.floating-socials .float-facebook { background: #1877f2; }
.floating-socials .float-discord { background: #5865f2; }
.floating-socials .float-instagram { background: linear-gradient(135deg,#ffcf55,#ef476f 48%,#8b5cf6); }
.floating-socials .float-tiktok { background: #111; }
@media (max-width: 1100px) {
  .floating-socials { right: 5px; }
}
@media (max-width: 700px) {
  .floating-socials { top: auto; right: 10px; bottom: 12px; flex-direction: row; transform: none; }
  .floating-socials a { width: 34px; height: 34px; border-radius: 10px; }
  .floating-socials a:hover { transform: translateY(-4px) scale(1.05); }
}

/* Fantasy social banner overlay */
@media (min-width: 701px) {
  .floating-socials {
    top: 54%;
    right: 0;
    width: 174px;
    height: 348px;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 48px 0 30px;
    border: 0;
    border-radius: 0;
    background: url('../img/social-banner-alpha-v2.png') center / 100% 100% no-repeat;
    box-shadow: none;
    backdrop-filter: none;
    filter: drop-shadow(-5px 8px 10px rgba(18,58,91,.28));
  }
  .floating-socials a,
  .floating-socials .float-facebook,
  .floating-socials .float-instagram,
  .floating-socials .float-tiktok,
  .floating-socials .float-discord {
    width: 43px;
    height: 43px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    box-shadow: none;
    filter: drop-shadow(0 3px 3px rgba(6,43,105,.4));
  }
  .floating-socials svg { width: 29px; height: 29px; }
  .floating-socials a:hover {
    transform: translateX(-5px) scale(1.16);
    color: #fff5a9;
    filter: drop-shadow(0 0 8px rgba(255,246,157,.85));
    box-shadow: none;
  }
}
.mainnav {
  margin-top: -5px;
  padding: 0;
  filter: drop-shadow(0 4px 4px rgba(62,46,30,.25));
}
.mainnav .container {
  max-width: 980px;
  min-height: 50px;
  padding: 0 52px;
  overflow: visible;
  border: 2px solid #aa7b24;
  border-left-width: 3px;
  border-right-width: 3px;
  border-radius: 3px;
  background:
    linear-gradient(180deg,#fff 0%,#fbfaf7 26%,#eeeae2 73%,#d8d2c8 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.95),
    inset 0 -2px 0 rgba(151,113,46,.25),
    0 1px 0 #fff4c5,
    0 5px 8px rgba(54,45,35,.25);
}
.mainnav .container::before,.mainnav .container::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,transparent,#d3ad59 12%,#e7ca83 50%,#d3ad59 88%,transparent);
}
.mainnav .container::before { top: 4px; }
.mainnav .container::after { bottom: 4px; }
.mainnav .gem {
  display: block;
  top: 50%;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 0;
  background: url('../img/nav-gem-ornament.png') center / contain no-repeat;
  box-shadow: none;
  z-index: 6;
  filter: drop-shadow(0 3px 2px rgba(75,45,20,.28));
}
.mainnav .gem::before,.mainnav .gem::after { display: none; }
.mainnav .gem-left { left: -36px; transform: translateY(-50%); }
.mainnav .gem-right { right: -36px; transform: translateY(-50%) scaleX(-1); }
.mainnav .nav-links { position: relative; z-index: 4; gap: 0; flex-wrap: nowrap; }
.mainnav .nav-links > li { flex: 0 1 auto; }
.mainnav .nav-links > li > a,
.mainnav .nav-links > li > a.active {
  min-height: 46px;
  padding: 0 17px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #6f6963;
  font: 400 .9rem Arial,Helvetica,sans-serif;
  text-shadow: 0 1px #fff;
  white-space: nowrap;
}
.mainnav .nav-links > li > a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,transparent,#9a58ba,transparent);
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .2s ease,transform .2s ease;
}
.mainnav .nav-links > li > a:hover,
.mainnav .nav-links > li > a.active { color: #8854a8; background: rgba(255,255,255,.48); }
.mainnav .nav-links > li > a:hover::after,
.mainnav .nav-links > li > a.active::after { opacity: 1; transform: scaleX(1); }
.mainnav .caret { margin-left: 2px; color: #8b8279; }
@media (max-width: 1020px) {
  .mainnav { padding-inline: 30px; }
  .mainnav .nav-links > li > a,.mainnav .nav-links > li > a.active { padding-inline: 11px; font-size: .83rem; }
}
@media (max-width: 820px) {
  .mainnav { padding-inline: 18px; }
  .mainnav .container { padding-inline: 18px 58px; }
  .mainnav .gem { display: none; }
  .mainnav .nav-links { position: absolute; flex-wrap: initial; }
  .mainnav .nav-links > li > a,.mainnav .nav-links > li > a.active { padding: 12px 14px; }
}

/* ============================================================
   Weekly Sale hero slider
   ============================================================ */
.hero-slider {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid #d7e6f5; box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 5; min-height: 150px;
}
.hs-track { position: relative; width: 100%; height: 100%; }
.hs-slide {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 36px;
  opacity: 0; transition: opacity .6s ease; pointer-events: none;
}
.hs-slide.active { opacity: 1; pointer-events: auto; }
.hs-1 { background: linear-gradient(135deg, #bfe3ff 0%, #e7f4ff 55%, #d6c9ff 100%); }
.hs-2 { background: linear-gradient(135deg, #ffe1c2 0%, #fff3e0 55%, #ffd0e6 100%); }
.hs-3 { background: linear-gradient(135deg, #d8c9ff 0%, #efe7ff 55%, #ffd6f0 100%); }
.hs-4 { background: linear-gradient(135deg, #c2f0d8 0%, #e6fff1 55%, #c6e6ff 100%); }
.hs-title {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1; color: #2f95ff; -webkit-text-stroke: 1.5px #fff; paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(47,149,255,.25); margin-bottom: 8px;
}
.hs-sub {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.5rem);
  color: #f08a1a; -webkit-text-stroke: 1px #fff; paint-order: stroke fill; max-width: 60%;
  text-shadow: 0 2px 0 rgba(240,138,26,.2);
}
.hs-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 3; }
.hs-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.1); cursor: pointer; transition: .2s; }
.hs-dots i.active { background: #2f7fe0; }

/* News post header (avatar + dotted title) */
.post-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 18px; }
.post-avatar {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.6rem; background: radial-gradient(circle at 50% 35%, #ffe6f0, #ffc9e0); border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.post-title-2 {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.5rem; color: #e0894a;
  border-bottom: 2px dashed #e6ddc8; padding-bottom: 6px; display: inline-block;
}
.post-date-2 { color: var(--ink-dim); font-size: .82rem; margin-top: 6px; }

@media (max-width: 700px) {
  .hs-sub { max-width: 100%; }
  .hs-slide { padding: 0 22px; }
}

@media (max-width: 820px) {
  .gem { display: none; }
  .nav-links > li + li { border-left: none; }
  .nav-links > li > a { padding: 13px 16px; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0; padding: 0 0 6px 18px;
    background: transparent; min-width: 0;
  }
  .submenu li a { padding: 8px 10px; font-size: .88rem; color: var(--ink-dim); }
  .has-sub > a .caret { margin-left: auto; }
}

/* ============================================================
   News & Media page
   ============================================================ */
.news-page { padding-bottom: 40px; margin-top: 10px; }
.news-page .news-shell {
  display: block !important;
  grid-template-columns: none !important;
  width: 100%;
  padding: 22px 24px 28px !important;
  border: 1px solid rgba(129,111,96,.6);
  border-radius: 0 !important;
  background: rgba(240,244,244,.94) !important;
  box-shadow: 0 8px 22px rgba(35,58,68,.28) !important;
}
.news-page .page-head {
  padding: 4px 0 18px !important;
  margin-bottom: 18px;
  border-bottom: 1px solid #d9d3cc;
}
.news-page .page-head h1 { margin: 5px 0 !important; font-size: 2rem !important; }
.news-lead {
  color: rgba(255,255,255,.92); font-size: 1rem; max-width: 620px;
  margin-top: 8px; line-height: 1.55; text-shadow: 0 2px 6px rgba(35,80,150,.25);
}

.news-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.news-stat {
  min-width: 0;
  background: rgba(255,255,255,.96); border-radius: 4px;
  padding: 12px 16px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,.9);
}
.news-stat-num {
  display: block; font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem; font-weight: 700; color: var(--blue-d);
}
.news-stat-lbl {
  display: block; font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .6px; color: var(--ink-dim); margin-top: 2px;
}

.news-toolbar {
  display: grid; grid-template-columns: minmax(260px,1fr) auto; gap: 10px; align-items: center;
  margin-bottom: 14px;
}
.news-search-wrap {
  flex: 1; min-width: 220px; position: relative;
}
.news-search-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: .95rem; pointer-events: none; opacity: .55;
}
.news-search {
  width: 100%; padding: 12px 40px 12px 42px;
  border: 2px solid rgba(255,255,255,.85); border-radius: 999px;
  background: rgba(255,255,255,.95); font-family: inherit; font-size: .92rem;
  color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.news-search:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,149,255,.2);
}
.news-search,.news-sort { border-radius: 4px; border-color: #d8dfe7; }
.news-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: none; border-radius: 50%;
  background: #eef4ff; color: var(--ink-dim); cursor: pointer; font-size: .75rem;
}
.news-search-clear:hover { background: #dce8ff; color: var(--ink); }
.news-sort {
  padding: 12px 36px 12px 16px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.85); background: rgba(255,255,255,.95);
  font-family: inherit; font-size: .9rem; font-weight: 700; color: var(--ink);
  cursor: pointer; outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237b88a8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

.news-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}
.news-filter {
  padding: 7px 14px; border-radius: 4px; border: 1px solid #d8dfe7;
  background: rgba(255,255,255,.75); font-family: 'Fredoka', sans-serif;
  font-size: .88rem; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s, color .2s;
}
.news-filter:hover { background: #fff; transform: translateY(-1px); }
.news-filter.active {
  background: var(--grad-blue); color: #fff; border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.filter-count {
  display: inline-block; margin-left: 4px; opacity: .75; font-size: .78rem;
}

.news-page .news-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 250px !important;
  gap: 18px !important;
  align-items: start;
}
.news-page .news-featured,.news-page .news-card,.news-page .news-widget { border-radius: 4px; }
.news-page .news-featured-link { grid-template-columns: 46% 54%; }
@media (max-width: 820px) {
  .news-page .news-shell { padding: 16px !important; }
  .news-page .news-layout { grid-template-columns: 1fr !important; }
  .news-page .news-sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .news-page .news-sidebar .news-widget:last-child { grid-column: 1/-1; }
}
@media (max-width: 560px) {
  .news-stats { grid-template-columns: 1fr; }
  .news-toolbar { grid-template-columns: 1fr; }
  .news-toolbar-actions,.news-sort { width: 100%; }
  .news-page .news-sidebar { grid-template-columns: 1fr; }
  .news-page .news-sidebar .news-widget:last-child { grid-column: auto; }
}

.news-featured {
  margin-bottom: 24px; border-radius: var(--radius); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.85);
  transition: transform .25s, box-shadow .25s;
}
.news-featured:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(35,80,150,.5); }
.news-featured-link {
  display: grid; grid-template-columns: 1.1fr 1fr; text-decoration: none; color: inherit;
}
.news-featured-media { position: relative; overflow: hidden; min-height: 240px; }
.news-featured-media img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .45s;
}
.news-featured:hover .news-featured-media img { transform: scale(1.05); }
.news-featured-badge {
  position: absolute; top: 16px; left: 16px;
  background: linear-gradient(135deg, #ffc24b, #ff9d2e); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .5px;
  padding: 6px 14px; border-radius: 999px; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.news-featured-body { padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; }
.news-featured-body .item-tag,
.news-article-head .item-tag {
  position: static;
  top: auto;
  left: auto;
  align-self: flex-start;
  display: inline-flex;
  width: max-content;
}
.news-featured-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem); color: var(--ink); margin: 10px 0 12px;
}
.news-featured-body p { color: var(--ink-dim); font-size: .94rem; line-height: 1.55; margin-bottom: 14px; }

.news-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: .8rem; font-weight: 700; color: var(--ink-dim); margin-bottom: 12px;
}
.news-meta-lg { font-size: .88rem; margin-bottom: 0; }

.news-results-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: .88rem; font-weight: 700; color: rgba(255,255,255,.9);
}
.news-empty-msg { color: #ffd56b; }

.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px;
}
.news-grid-compact { margin-bottom: 30px; }

.news-card {
  background: var(--card); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,.85);
  transition: transform .25s, box-shadow .25s, opacity .3s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card[hidden] { display: none !important; }
.news-card.is-hidden { opacity: 0; transform: scale(.96); pointer-events: none; height: 0; overflow: hidden; margin: 0; padding: 0; border: none; }

.news-card-link { text-decoration: none; color: inherit; flex: 1; display: flex; flex-direction: column; }
.news-card-media { position: relative; overflow: hidden; aspect-ratio: 16/10; background: #eef4ff; }
.news-card-media img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.news-card:hover .news-card-media img { transform: scale(1.07); }
.news-card-media .item-tag { top: 10px; left: 10px; }

.news-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-card-body h3 {
  font-size: 1.08rem; color: var(--ink); margin-bottom: 6px;
  transition: color .2s;
}
.news-card:hover .news-card-body h3 { color: var(--blue-d); }
.news-card-body p {
  font-size: .88rem; color: var(--ink-dim); line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-more {
  display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 800;
  color: var(--blue); transition: transform .2s;
}
.news-card:hover .news-card-more { transform: translateX(4px); }

.news-card-share {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-top: 1px solid var(--line);
  font-size: .78rem; font-weight: 700; color: var(--ink-dim);
}
.share-btn {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px;
  padding: 0 8px; border-radius: 8px; border: 1px solid var(--line);
  background: #f7faff; color: var(--ink); font-size: .82rem;
  cursor: pointer; text-decoration: none; transition: background .2s, transform .2s;
}
.share-btn:hover { background: #eaf2ff; transform: translateY(-2px); }
.share-btn.is-copied { background: #e8f8ec; border-color: #b8e6c4; color: var(--green-d); }

/* Category tag colors */
.item-tag.cat-update { background: var(--grad-blue); }
.item-tag.cat-event  { background: linear-gradient(135deg, #ff9d2e, #f07c0c); }
.item-tag.cat-pvp    { background: linear-gradient(135deg, #ff5f6d, #e23d82); }
.item-tag.cat-patch  { background: linear-gradient(135deg, #41c95a, #2ba745); }
.item-tag.cat-community { background: linear-gradient(135deg, #7b6bff, #5a4fd6); }

.news-load-wrap { text-align: center; margin-top: 28px; }

/* Sidebar widgets */
.news-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 20px; }
.news-widget {
  background: var(--card); border-radius: 16px; padding: 20px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,.85);
}
.news-widget h4 {
  font-family: 'Fredoka', sans-serif; font-size: 1.05rem;
  color: var(--ink); margin-bottom: 14px;
}
.news-widget p { font-size: .88rem; color: var(--ink-dim); line-height: 1.5; margin-bottom: 14px; }
.news-widget-actions { display: flex; flex-direction: column; gap: 8px; }
.news-widget-promo {
  background: linear-gradient(135deg, #f3f8ff, #e8f0ff);
  border-color: #cfe2ff;
}

.news-cat-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.news-cat-btn {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 10px 12px; border: none; border-radius: 10px; background: transparent;
  font-family: inherit; font-size: .9rem; font-weight: 700; color: var(--ink);
  cursor: pointer; transition: background .2s;
}
.news-cat-btn:hover { background: #f3f8ff; }
.news-cat-count {
  background: #eef4ff; color: var(--blue-d); font-size: .75rem;
  padding: 2px 9px; border-radius: 999px;
}

.news-quick-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.news-quick-links a {
  display: block; padding: 9px 12px; border-radius: 10px;
  font-weight: 700; font-size: .9rem; color: var(--ink); transition: background .2s;
}
.news-quick-links a:hover { background: #f3f8ff; color: var(--blue-d); }

/* Article detail */
.news-detail-page { max-width: 980px; margin-top: 10px; }
.news-detail-page .news-detail-shell {
  display: block !important;
  grid-template-columns: none !important;
  width: 100%;
  padding: 22px 24px 30px !important;
  border: 1px solid rgba(129,111,96,.6);
  border-radius: 0 !important;
  background: rgba(240,244,244,.95) !important;
  box-shadow: 0 8px 22px rgba(35,58,68,.28) !important;
}
.news-detail-page .page-head {
  padding: 4px 0 18px !important;
  margin-bottom: 18px;
  border-bottom: 1px solid #d9d3cc;
}
.news-detail-page .page-head h1 {
  max-width: 760px;
  margin-top: 8px;
  font-size: clamp(1.8rem,4vw,2.7rem) !important;
  line-height: 1.15;
  color: #865f43 !important;
}
.news-detail-page .crumb { font-size: .78rem; }
.news-article {
  max-width: 860px;
  margin: 0 auto 30px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cfc4ba !important;
  border-radius: 4px !important;
  box-shadow: 0 5px 15px rgba(67,55,46,.15);
}
.news-article-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0; padding: 16px 22px;
  border-bottom: 1px solid #eee9e3;
  background: linear-gradient(180deg,#fff,#faf8f4);
}
.news-article .post-hero { margin: 0; border-radius: 0; box-shadow: none; }
.news-article .post-hero img {
  width: 100%;
  height: clamp(280px,42vw,470px);
  object-fit: cover;
  transition: transform .7s ease;
}
.news-article .post-hero:hover img { transform: scale(1.025); }
.news-article .post-body { padding: 30px 42px 12px !important; }
.news-article .post-body > br { display: block; content: ''; margin-bottom: 12px; }
.news-article .post-body { color: #625d58; font-family: Georgia,serif; font-size: 1rem; line-height: 1.85; }
.news-article-lead {
  position: relative;
  padding: 0 0 22px 20px;
  border-left: 4px solid #e3a244;
  border-bottom: 1px dashed #d9d0c6;
  font-family: Arial,sans-serif;
  font-size: 1.08rem; font-weight: 600; color: #486f9c;
  margin-bottom: 24px; line-height: 1.65;
}
.news-article-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin: 22px 42px 0; padding: 20px 0 24px; border-top: 1px solid var(--line);
}
.news-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--ink-dim); }
.news-related { max-width: 860px; margin: 0 auto 30px; }
.news-related .section-title {
  padding-bottom: 10px;
  border-bottom: 2px solid #d5c6b9;
  color: #865f43;
  font-family: Georgia,serif;
}
.news-related .news-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media (max-width: 760px) {
  .news-detail-page .news-detail-shell { padding: 15px !important; }
  .news-article .post-body { padding: 24px 20px 8px !important; }
  .news-article-footer { margin-inline: 20px; }
  .news-related .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
}

@media (max-width: 760px) {
  .news-featured-link { grid-template-columns: 1fr; }
  .news-featured-media { min-height: 200px; max-height: 220px; }
  .news-featured-body { padding: 20px; }
  .news-toolbar { flex-direction: column; align-items: stretch; }
  .news-sort { width: 100%; }
  .news-stats { gap: 10px; }
  .news-stat { min-width: calc(33% - 8px); padding: 12px 10px; }
  .news-stat-num { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-stat { min-width: 100%; }
  .news-filters { gap: 6px; }
  .news-filter { padding: 7px 12px; font-size: .82rem; }
  .news-sidebar { grid-template-columns: 1fr; }
}

/* ============================================================
   Terms of Service page (classic Celestia Luna document style)
   ============================================================ */
.tos-layout { padding-top: 8px; }

.tos-document {
  background: linear-gradient(180deg, #fdfbf5 0%, #f8f4ea 100%);
  border: 1px solid #e6ddc8;
  border-radius: 12px;
  padding: 38px 44px 34px;
  box-shadow: 0 8px 24px -12px rgba(120, 90, 30, .28);
  color: #3d3d3d;
}

.tos-title {
  text-align: center;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(1.7rem, 3.5vw, 2.15rem);
  font-weight: 700;
  color: #5a4030;
  letter-spacing: .3px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8dcc8;
}

.tos-intro {
  font-size: .92rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin-bottom: 10px;
  text-align: justify;
}

.tos-updated {
  font-size: .78rem;
  font-weight: 700;
  color: #9a8a72;
  text-align: center;
  margin-bottom: 22px;
}

.tos-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 14px 16px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid #ebe3d2;
  border-radius: 10px;
}
.tos-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e0d5c0;
  font-size: .78rem;
  font-weight: 700;
  color: #6b5538;
  transition: background .2s, color .2s, border-color .2s;
}
.tos-nav a:hover {
  background: #f0a93e;
  border-color: #e08a1a;
  color: #fff;
}

.tos-section { margin-bottom: 26px; scroll-margin-top: 20px; }
.tos-section h2 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #6b4e3d;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e0d5c0;
}
.tos-section p {
  font-size: .88rem;
  line-height: 1.68;
  color: #444;
  margin-bottom: 10px;
  text-align: justify;
}
.tos-section ol {
  padding-left: 22px;
  margin: 0;
}
.tos-section li {
  font-size: .88rem;
  line-height: 1.65;
  color: #444;
  margin-bottom: 10px;
  text-align: justify;
}
.tos-section li b { color: #5a4030; }
.tos-section a { color: var(--blue-d); font-weight: 700; }
.tos-section a:hover { text-decoration: underline; }

.tos-footer-note {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #e8dcc8;
  font-size: .82rem;
  font-style: italic;
  color: #7a6a58;
  text-align: center;
  line-height: 1.55;
}

/* Player ranking panel (sidebar) */
.panel-rank-body { padding: 0 !important; }
.prank-table { width: 100%; border-collapse: collapse; }
.prank-table th,
.prank-table td {
  padding: 9px 14px;
  font-size: .82rem;
  text-align: left;
  border-bottom: 1px solid #f0ecdf;
}
.prank-table th {
  background: #faf7ef;
  color: #8a7a5a;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.prank-table tbody tr:hover { background: #fdfbf5; }
.prank-table td:last-child { text-align: right; color: var(--orange-d); }
.prank-job { font-size: 1rem; }
.prank-more {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue-d);
  border-top: 1px solid #f0ecdf;
}
.prank-more:hover { background: #faf7ef; text-decoration: underline; }

@media (max-width: 760px) {
  .tos-document { padding: 24px 20px; }
  .tos-nav { gap: 6px; }
  .tos-nav a { font-size: .72rem; padding: 5px 10px; }
}

@media (max-width: 480px) {
  .tos-section ol { padding-left: 18px; }
}
