/* Ancient Conquer — visual theme, loaded after site.css.
   Brand comes from the logo: cracked jade, beaten gold, dragon ornament; every surface is softly curved.
   site.css holds structure, admin.css the admin tools, this file the look of the site. */

:root {
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-full: 999px;
  --glass: linear-gradient(180deg, rgba(26, 56, 47, 0.72), rgba(10, 24, 20, 0.82));
  --edge: linear-gradient(160deg, rgba(246, 220, 152, 0.55), rgba(227, 185, 100, 0.1) 32%, rgba(79, 181, 142, 0.12) 66%, rgba(227, 185, 100, 0.38));
  --lift: 0 18px 44px rgba(0, 0, 0, 0.38);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===== Base ===== */
html { scrollbar-color: #57482a var(--bg); }
body { font-family: var(--font-body); background: var(--bg); line-height: 1.6; overflow-x: clip; }
html[dir="rtl"] body { font-family: var(--font-body); }
html[dir="rtl"] { --font-display: 'El Messiri', 'Cairo', 'Segoe UI', Tahoma, serif; }
::selection { background: rgba(227, 185, 100, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::placeholder { color: #7b8980; opacity: 1; }

.skip-link { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 300; padding: 12px 20px; border-radius: var(--r-sm); background: var(--gold); color: #211503; font-weight: 700; transition: top 0.2s; }
.skip-link:focus { top: 12px; color: #211503; }

.atmosphere {
  background:
    radial-gradient(1100px 620px at 10% -6%, rgba(47, 138, 104, 0.24), transparent 60%),
    radial-gradient(900px 620px at 98% 34%, rgba(176, 108, 30, 0.14), transparent 60%),
    radial-gradient(800px 560px at 20% 104%, rgba(47, 138, 104, 0.16), transparent 60%),
    linear-gradient(180deg, #0b1915 0%, #081310 45%, #060e0c 100%);
}

h1, h2, h3,
.hero h1, .page-hero h1, .panel-head h2, .panel-body h2, .stat-value, .switch-row h2,
.guide-prose h1, .guide-prose h2, .guide-prose h3, .download-card h2, .blog-card h2,
.next-event-hero h3, .shop-claim-title, .footer-brand strong, .admin-menu-title { font-family: var(--font-display); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.35; }

.gold-text {
  color: #f4dca2;
  background: linear-gradient(180deg, #fff6d8 8%, #efcb7c 48%, #b98436 94%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Header: floating curved bar ===== */
.site-header {
  top: 12px;
  height: var(--header-h);
  margin: 12px auto 0;
  width: min(calc(100% - 2 * var(--gutter) + 24px), calc(var(--shell) + 24px));
  border: 0;
  border-radius: var(--r-lg);
  background: rgba(8, 20, 17, 0.78);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
}
.site-header::before, .panel::before, .shop-card::before, .download-card::before, .stats-row::before, .guide-card::before, .blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.header-inner { gap: 22px; padding: 0 20px; }
.brand-logo { height: calc(var(--header-h) + 10px); margin-block: -5px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)); transition: transform 0.4s var(--ease), filter 0.4s; }
.brand:hover .brand-logo { transform: scale(1.05) rotate(-1deg); filter: drop-shadow(0 0 18px rgba(227, 185, 100, 0.45)); }

.site-nav { flex: 1; justify-content: space-between; gap: 14px; }
.nav-main, .nav-account { display: flex; align-items: center; gap: 2px; }
.nav-account { gap: 8px; }
.site-nav a { color: #ccd4c9; font-size: 0.92rem; font-weight: 600; padding: 9px 13px; border: 0; border-radius: var(--r-full); transition: color 0.2s, background 0.2s; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.site-nav a.active { color: var(--gold); background: rgba(227, 185, 100, 0.13); }
.nav-user { color: var(--ink); font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; padding-inline: 4px; }
.site-nav a.nav-credits { padding: 7px 14px; border: 0; background: rgba(227, 185, 100, 0.12); }
.nav-credits-label { text-transform: none; letter-spacing: 0; }
.btn-nav.ghost-btn { border-radius: var(--r-full); font-weight: 600; padding: 9px 16px; }
.lang-switch { margin: 0; border-radius: var(--r-full); border: 0; background: rgba(0, 0, 0, 0.32); padding: 3px; }
.site-nav .lang-btn { padding: 5px 10px; font-size: 0.76rem; border-radius: var(--r-full); }
.site-nav .lang-btn.is-active { color: #211503; background: var(--gold-fill); }

/* ===== Buttons ===== */
.btn, .btn-nav.primary {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, filter 0.25s;
}
.btn { padding: 13px 26px; font-size: 0.97rem; color: var(--ink); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); }
.btn:hover { color: #fff; background: rgba(255, 255, 255, 0.13); transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.7), 0 12px 26px rgba(0, 0, 0, 0.35); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.primary, .btn-nav.primary { color: #211503 !important; background: var(--gold-fill) !important; box-shadow: inset 0 1px 0 rgba(255, 250, 225, 0.75), inset 0 -2px 0 rgba(110, 66, 8, 0.35), 0 8px 24px rgba(227, 170, 60, 0.28); }
.btn.primary:hover, .btn-nav.primary:hover { filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255, 250, 225, 0.75), inset 0 -2px 0 rgba(110, 66, 8, 0.35), 0 14px 34px rgba(227, 170, 60, 0.42); }
.btn.primary::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 38%; left: -60%; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); }
.btn.primary:hover::after { left: 130%; transition: left 0.7s var(--ease); }
.btn.ghost { background: rgba(8, 24, 19, 0.5); }
.btn.small { padding: 9px 17px; font-size: 0.85rem; border-radius: 12px; }
.btn-nav.primary { border-radius: var(--r-full) !important; padding: 10px 20px !important; }
.btn:disabled { filter: grayscale(0.6); transform: none; }

/* ===== Hero ===== */
.hero {
  height: min(52vw, 100svh, 860px);
  min-height: 560px;
  margin-top: calc(-1 * var(--header-h) - 12px);
  margin-bottom: 0;
  border: 0;
  border-radius: 0 0 50% 50% / 0 0 46px 46px;
  background: #050b0a;
}
.hero-slide { transition: opacity 1.4s ease; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 28%; }
.hero-slide.active img { animation: hero-drift 16s ease-out both; }
@keyframes hero-drift { from { transform: scale(1.07); } to { transform: none; } }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 13, 11, 0.95) 0%, rgba(5, 13, 11, 0.74) 30%, rgba(5, 13, 11, 0.12) 60%, transparent 100%),
    linear-gradient(0deg, rgba(7, 17, 14, 0.96) 0%, rgba(7, 17, 14, 0.45) 22%, transparent 46%),
    linear-gradient(180deg, rgba(5, 12, 10, 0.75), transparent 26%);
}
html[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(5, 13, 11, 0.92) 0%, rgba(5, 13, 11, 0.66) 34%, rgba(5, 13, 11, 0.12) 64%, transparent 100%),
    linear-gradient(0deg, rgba(7, 17, 14, 0.96) 0%, rgba(7, 17, 14, 0.45) 22%, transparent 46%),
    linear-gradient(180deg, rgba(5, 12, 10, 0.75), transparent 26%);
}
.hero-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero-content { padding-top: calc(var(--header-h) + 50px); padding-bottom: 120px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 18px; margin-bottom: 20px; border-radius: var(--r-full); background: rgba(8, 24, 19, 0.6); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.3); letter-spacing: 0; text-transform: none; font-size: 0.92rem; font-weight: 600; backdrop-filter: blur(8px); }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #58d39c; box-shadow: 0 0 0 0 rgba(88, 211, 156, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(88, 211, 156, 0); } 100% { box-shadow: 0 0 0 0 rgba(88, 211, 156, 0); } }
.hero h1 {
  font-weight: 700;
  font-size: clamp(2.4rem, 4.7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.7));
  padding-bottom: 0.1em;
}
.hero-content > h1 { max-width: 820px; }
.hero-content > .hero-lead { max-width: 560px; }
.hero-lead { color: #e2e7dc; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85); }
.hero-actions .btn { padding: 17px 34px; font-size: 1.08rem; border-radius: 18px; }
.hero-dots { margin-top: 28px; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border: 0; border-radius: var(--r-full); background: rgba(255, 255, 255, 0.35); position: relative; transition: width 0.35s var(--ease), background 0.35s; }
.hero-dot.active { width: 34px; background: var(--gold-fill); }
.hero-dot::after { content: ""; position: absolute; inset: -14px; }

/* Server bar */
.stats-row { position: relative; gap: 0; margin-bottom: 64px; border-radius: var(--r-lg); background: var(--glass); backdrop-filter: blur(16px); box-shadow: var(--lift); }
.hero + .stats-row { z-index: 3; margin-top: -64px; }
.stat-card { min-height: 0; padding: 24px 28px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.stat-card + .stat-card { border-inline-start: 1px solid rgba(246, 220, 152, 0.12); }
.stat-card::after { display: none; }
.stat-label { letter-spacing: 0; text-transform: none; font-size: 0.88rem; color: var(--muted); }
.stat-value { margin-top: 2px; font-size: clamp(1.4rem, 1.9vw, 1.95rem); font-weight: 700; color: var(--gold); overflow-wrap: anywhere; }
.stat-sub { font-size: 0.84rem; }
.stat-value.is-online { display: flex; align-items: center; gap: 12px; color: #86e8bd; }
.stat-value.is-online::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%; background: #58d39c; animation: pulse 2.4s infinite; }
.admin-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 34px; }
.admin-stats .stat-value { font-family: var(--font-body); }

/* ===== Surfaces ===== */
.panel, .guide-card, .blog-card, .shop-card, .download-card, .download-patches-panel, .admin-menu-group, .gmlog-summary-card {
  position: relative;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: var(--lift);
}
.panel { padding: 26px; }
.admin-menu-group, .gmlog-summary-card, .download-patches-panel { border-radius: var(--r); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.13); }
/* Pointer glow (position set by site.js) */
.glow { isolation: isolate; }
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(246, 210, 130, 0.17), transparent 65%);
  pointer-events: none;
}
.glow:hover::after { opacity: 1; }
.panel-head { padding-bottom: 16px; border-bottom: 1px solid rgba(246, 220, 152, 0.13); }
.panel-head h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: #f2d28a; }
.panel-head h2::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff3cc, #e0ad4a 55%, #8a5c17); box-shadow: 0 0 12px rgba(227, 185, 100, 0.6); }
.panel-pad { padding-inline: 0; }
.panel-switch { padding: 0; }
.panel-switch .panel-body { padding: 24px 30px; }
.panel-switch .panel-body p { margin: 0; }
.badge { border-radius: var(--r-full); letter-spacing: 0; text-transform: none; font-size: 0.8rem; font-weight: 600; padding: 5px 13px; }
.section { margin-bottom: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 700; line-height: 1.2; text-wrap: balance; }
.section-head a { font-weight: 600; }

/* ===== Inner page banner ===== */
.page-hero {
  position: relative;
  width: 100vw;
  margin: calc(-1 * var(--header-h) - 12px) calc(50% - 50vw) 44px;
  padding: calc(var(--header-h) + 74px) var(--gutter) 64px;
  border-radius: 0 0 50% 50% / 0 0 34px 34px;
  background:
    linear-gradient(0deg, rgba(7, 17, 14, 0.97) 0%, rgba(8, 20, 17, 0.66) 60%, rgba(6, 14, 12, 0.88)),
    url("../img/page-banner.webp") center 38% / cover;
}
.page-hero.compact h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 700; letter-spacing: 0; text-wrap: balance; color: #f4dca2; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8); }
.page-hero p { color: #d7ded3; max-width: 640px; }
.download-page-hero .download-page-eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.95rem; color: var(--gold); }

/* ===== Home ===== */
.home-split { grid-template-columns: 1fr 1.25fr; align-items: stretch; gap: 24px; }
.home-split > .panel { min-height: 0; overflow: hidden; }
.home-col { display: grid; gap: 24px; align-content: start; min-width: 0; }
.news-list li { display: grid; grid-template-columns: 92px 1fr; gap: 2px 18px; padding: 18px 0; border-bottom-color: rgba(246, 220, 152, 0.1); }
.news-list time { grid-row: span 2; color: var(--gold); font-size: 0.86rem; font-weight: 600; padding-top: 3px; }
.news-list strong { margin: 0; font-size: 1.07rem; }
.news-list p { white-space: pre-line; overflow-wrap: anywhere; }
.next-event-hero { margin: 0; padding: 22px 24px; border: 0; border-radius: var(--r); background: linear-gradient(150deg, rgba(227, 185, 100, 0.2), rgba(227, 185, 100, 0.04)); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.16); }
.next-event-hero.is-live { background: linear-gradient(150deg, rgba(79, 181, 142, 0.34), rgba(79, 181, 142, 0.06)); }
.next-event-hero h3 { font-size: 1.75rem; font-weight: 700; }
.next-countdown strong { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: 2.3rem; line-height: 1.2; letter-spacing: 0; color: #f6d88f; }
.next-pill { border-radius: var(--r-full); letter-spacing: 0; text-transform: none; font-size: 0.78rem; padding: 4px 12px; }
.next-event-list { margin: 10px 0 0; }
.next-event-list li { padding: 15px 12px; border-top-color: rgba(246, 220, 152, 0.1); }
.next-list-time { text-align: end; }
.next-list-time strong { font-variant-numeric: tabular-nums; font-size: 1.02rem; color: var(--gold); }

.quick-card { position: relative; min-height: 92px; justify-content: center; padding: 18px 20px; border: 0; border-radius: var(--r); background: rgba(0, 0, 0, 0.24); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.1); transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s; }
.quick-card:hover { transform: translateY(-4px); background: rgba(227, 185, 100, 0.12); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.5), 0 14px 28px rgba(0, 0, 0, 0.3); }
.quick-card strong { font-size: 1.05rem; }
.home-quick { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }


/* Class rail */
.class-rail { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; }
.class-rail li { display: grid; justify-items: center; align-content: start; gap: 12px; padding: 22px 8px 18px; border-radius: var(--r); text-align: center; font-weight: 600; font-size: 0.92rem; line-height: 1.25; background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.1); transition: transform 0.35s var(--ease), background 0.35s; }
.class-rail li:hover { transform: translateY(-8px); background: linear-gradient(180deg, rgba(227, 185, 100, 0.22), rgba(0, 0, 0, 0.2)); }
.class-rail svg { width: 46px; height: 46px; color: #efcb7c; transition: transform 0.5s var(--ease), filter 0.5s; }
.class-rail li:hover svg { transform: rotate(-8deg) scale(1.18); filter: drop-shadow(0 0 10px rgba(246, 205, 110, 0.7)); }

.journey { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.journey img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 78% 40%; -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
html[dir="rtl"] .journey img { -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent); mask-image: linear-gradient(270deg, #000 55%, transparent); }
.journey .panel-body { padding: 40px; align-self: center; }
.panel-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; color: #f2d28a; letter-spacing: 0; line-height: 1.2; }
.panel-body p { font-size: 1.03rem; color: #c3cdc3; }

/* ===== Tables and ranking ===== */
.data-table { font-size: 0.96rem; font-variant-numeric: tabular-nums; border-collapse: separate; border-spacing: 0; }
.data-table th { letter-spacing: 0; text-transform: none; font-size: 0.85rem; color: #efcb7c; background: rgba(0, 0, 0, 0.28); border: 0; }
.data-table th:first-child { border-start-start-radius: 14px; border-end-start-radius: 14px; }
.data-table th:last-child { border-start-end-radius: 14px; border-end-end-radius: 14px; }
.data-table th, .data-table td { text-align: start; border-bottom-color: rgba(246, 220, 152, 0.08); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.lg-table .num { text-align: end; }
.data-table tbody tr:hover td { background: rgba(79, 181, 142, 0.08); }
.rank-tabs { display: inline-flex; gap: 4px; padding: 5px; margin: 0 14px 16px 0; border-radius: var(--r-full); background: rgba(0, 0, 0, 0.3); }
html[dir="rtl"] .rank-tabs { margin: 0 0 16px 14px; }
.rank-tab, .blog-cat, .page-btn { border: 0; border-radius: var(--r-full); letter-spacing: 0; text-transform: none; font-size: 0.93rem; padding: 9px 18px; }
.rank-tab:hover, .blog-cat:hover { background: rgba(255, 255, 255, 0.07); }
.blog-cat, .page-btn { background: rgba(0, 0, 0, 0.3); }
.rank-tab.active, .blog-cat.active { color: #211503; background: var(--gold-fill); }
tr[class*="rank-top-"] td { padding-block: 18px; }
tr[class*="rank-top-"] td:nth-child(2) { font-size: 1.14rem; font-weight: 700; color: #fff; }
tr[class*="rank-top-"] td:first-child { color: #1c1204 !important; font-weight: 800; padding-inline-start: 23px; background: radial-gradient(circle at 27px 50%, var(--m1) 0 13px, var(--m2) 13.5px 17px, transparent 17.5px) !important; }
html[dir="rtl"] tr[class*="rank-top-"] td:first-child { background: radial-gradient(circle at calc(100% - 27px) 50%, var(--m1) 0 13px, var(--m2) 13.5px 17px, transparent 17.5px) !important; }
.rank-top-1 { --m1: #f6d273; --m2: #a97521; background: linear-gradient(90deg, rgba(227, 185, 100, 0.22), transparent 65%); }
.rank-top-2 { --m1: #d9e1e0; --m2: #7f8d8d; background: linear-gradient(90deg, rgba(200, 215, 214, 0.14), transparent 65%); }
.rank-top-3 { --m1: #e0a06b; --m2: #8c5327; background: linear-gradient(90deg, rgba(224, 150, 95, 0.14), transparent 65%); }

.rank-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.rank-search input[type="search"] { flex: 1 1 200px; max-width: 360px; min-height: 46px; padding: 0 18px; border: 0; border-radius: var(--r-full); font: inherit; font-size: 1rem; color: #fff; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px rgba(227, 185, 100, 0.35); color-scheme: dark; }
.rank-search input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.rank-search input[type="search"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.player-cell { display: inline-flex; align-items: center; gap: 12px; border-radius: 10px; }
.player-face { width: 40px; height: 40px; flex: none; object-fit: cover; border-radius: 9px; background: #0a1814; box-shadow: 0 0 0 1px rgba(227, 185, 100, 0.55); }
tr[data-player] { cursor: default; }
tr[class*="rank-top-"] .player-face { width: 46px; height: 46px; }
/* Online: green dot on the portrait's top right corner, in both directions */
.player-cell { --face: 40px; position: relative; }
tr[class*="rank-top-"] .player-cell { --face: 46px; }
tr[data-online="1"] .player-cell::after, .player-card:has(dd.is-online)::before { content: ""; position: absolute; top: -4px; left: calc(var(--face) - 8px); width: 12px; height: 12px; border-radius: 50%; pointer-events: none; background: #35e07a; box-shadow: 0 0 0 2px #0a1814, 0 0 8px rgba(53, 224, 122, 0.8); }
html[dir="rtl"] tr[data-online="1"] .player-cell::after { left: auto; right: -4px; }
.player-card { position: fixed; z-index: 60; top: 0; left: 0; width: 250px; padding: 18px 16px 12px; border-radius: 14px; pointer-events: none; background: linear-gradient(180deg, #14302a, #091713); box-shadow: 0 0 0 1px rgba(227, 185, 100, 0.6), 0 22px 50px rgba(0, 0, 0, 0.6); }
.player-card:has(dd.is-online)::before { top: 13px; left: calc(50% + 27px); width: 14px; height: 14px; }
.player-card[hidden] { display: none; }
.player-card-face { display: block; width: 72px; height: 72px; margin: 0 auto 10px; object-fit: cover; border-radius: 12px; background: #0a1814; box-shadow: 0 0 0 1px rgba(227, 185, 100, 0.6); }
.player-card-name { display: block; margin-bottom: 8px; text-align: center; font-size: 1.12rem; line-height: 1.3; color: #f2d28a; overflow-wrap: anywhere; }
.player-card dl { margin: 0; }
.player-card dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: 0.9rem; }
.player-card dt { font-weight: 400; color: var(--muted); }
.player-card dd { margin: 0; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; text-align: end; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.player-card dd img { width: 24px; height: 24px; margin: -3px 6px -3px 0; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }
.player-card dd.is-online { color: var(--sage); }
.player-card dd.is-offline { font-weight: 400; color: var(--faint); }

/* ===== Shop ===== */
.shop-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 340px)); justify-content: center; gap: 24px; }
.shop-card { display: flex; flex-direction: column; align-items: center; padding: 34px 26px 28px; transition: transform 0.35s var(--ease); }
.shop-card:hover, .download-card:hover { transform: translateY(-6px); }
.shop-card > .btn, .shop-card > .qty-form { margin-top: auto; align-self: stretch; }
.shop-card.featured { background: linear-gradient(180deg, rgba(46, 92, 76, 0.8), rgba(11, 27, 22, 0.92)); box-shadow: var(--lift), 0 0 44px rgba(227, 185, 100, 0.13); }
.shop-card .shop-desc { color: #cbd3c8; margin-bottom: 12px; }
.shop-icon { width: 96px; height: 96px; color: #f2d28a; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(227, 185, 100, 0.28), transparent 70%); box-shadow: none; transition: transform 0.4s var(--ease); }
.shop-card:hover .shop-icon { transform: scale(1.12) rotate(-5deg); }
.shop-icon svg { width: 52px; height: 52px; }
.shop-type { letter-spacing: 0; text-transform: none; font-size: 0.88rem; font-weight: 600; color: #86dcb8; }
.shop-card h3 { font-size: 1.35rem; }
.shop-card .price strong { font-size: 1.65rem; color: #f6d88f; }
.qty-btn, .qty-input { border-radius: var(--r-sm); }
.shop-claim-photo { border-radius: var(--r-lg); }

/* ===== Download ===== */
.download-card { padding: 34px 32px 32px; transition: transform 0.35s var(--ease); }
.download-card--primary { background: linear-gradient(180deg, rgba(46, 92, 76, 0.8), rgba(11, 27, 22, 0.92)); }
.download-card--utility { background: var(--glass); }
.download-card-glow { display: none; }
.download-card h2 { font-size: 1.75rem; font-weight: 700; }
.download-card-cta { padding: 17px 34px; font-size: 1.08rem; align-self: stretch; border-radius: 18px; }
.download-badge { border-radius: var(--r-full); letter-spacing: 0; text-transform: none; font-size: 0.82rem; padding: 5px 13px; }
.download-card-icon { border-radius: var(--r-sm); }
.download-steps li { font-size: 1.02rem; color: var(--ink); }
.download-step-num { width: 32px; height: 32px; border: 0; color: #211503; font-size: 0.95rem; font-weight: 700; background: var(--gold-fill); }
.download-lang-picker, .download-patches-group, .patch-row, .download-hub-notes { border: 0; border-radius: var(--r); background: rgba(0, 0, 0, 0.26); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.09); }

/* ===== Forms ===== */
.section.narrow .form-panel { padding: 38px 36px; }
.auth-form label span { letter-spacing: 0; text-transform: none; font-size: 0.92rem; font-weight: 600; color: #ccd4c9; }
.auth-form input:not([type="checkbox"]), .auth-form select, .admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .admin-form select, .admin-form textarea,
.download-lang-picker select, .referral-link-input, .qty-input, .gmlog-field input, .gmlog-field select, .lg-form input:not([type="checkbox"]):not([type="file"]), .lg-form select {
  border-radius: 14px;
  border-color: rgba(246, 220, 152, 0.2);
  background-color: rgba(3, 10, 8, 0.58);
  color-scheme: dark;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-form input:focus, .auth-form select:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .qty-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(227, 185, 100, 0.18);
  outline: none;
}
.alert { border-radius: var(--r-sm); border-inline-start-width: 4px; }
.status-pill { border-radius: var(--r-full); text-transform: none; letter-spacing: 0; font-size: 0.8rem; }

/* ===== Guides and blog ===== */
.guide-grid, .blog-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.guide-card, .blog-card { padding: 28px 26px; transition: transform 0.35s var(--ease); }
.guide-card-link:hover, .blog-card:hover { transform: translateY(-6px); }
.guide-num { position: absolute; inset-block-start: 14px; inset-inline-end: 22px; font-size: 2.6rem; font-weight: 700; opacity: 0.25; }
.guide-card h3, .blog-card h2 { font-size: 1.28rem; font-weight: 700; color: #fff; }
.blog-card .badge { align-self: flex-start; }
.blog-cats { gap: 8px; }
.guide-article { padding-top: 48px; }
.guide-prose { font-size: 1.07rem; }
.guide-prose p, .guide-prose ul, .guide-prose ol { color: #cdd5ca; }
.guide-prose blockquote { border-left: 0; border-inline-start: 4px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: rgba(227, 185, 100, 0.09); }
.guide-prose img { border-radius: var(--r); }
.guide-article-hero h1 { font-weight: 700; line-height: 1.2; text-wrap: balance; color: #f4dca2; }
.guide-article-lead { max-width: 62ch; }

/* ===== Admin ===== */
.admin-menu-title { letter-spacing: 0; text-transform: none; font-size: 1.02rem; color: #f2d28a; }
.admin-menu-links { gap: 2px; }
.admin-menu-link { border: 0; border-radius: 11px; padding: 7px 12px; }

/* ===== Discord ===== */
.discord-embed { border-radius: var(--r); margin-top: 18px; padding: 0; }

/* ===== Footer ===== */
.site-footer { margin-top: 90px; border: 0; border-radius: 50% 50% 0 0 / 40px 40px 0 0; background: linear-gradient(180deg, #0f251f, #050b0a 60%); }
.footer-inner { padding-top: 64px; }
.footer-brand { max-width: 360px; }
.footer-brand img { display: block; width: 210px; height: auto; margin-bottom: 12px; }
.footer-brand strong { font-size: 1.3rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 48px; }
.footer-links a { font-size: 0.98rem; color: #c5cdc2; }
.partners-label { letter-spacing: 0; text-transform: none; font-size: 0.9rem; color: var(--muted); }
.partner-badge, .social-icon { border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.12); }
.social-icon { width: 46px; height: 46px; }
.footer-disclaimer, .footer-copy { color: #92a097; }

/* Back to top: the dragon's pearl, filling as you scroll */
.pearl { position: fixed; inset-inline-start: 22px; bottom: 22px; z-index: 90; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #231603; background: conic-gradient(#f6d88f var(--p, 0%), rgba(10, 28, 23, 0.9) 0); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s; }
.pearl::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff6d4, #e7b446 58%, #8f6015); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.pearl svg { position: relative; width: 22px; height: 22px; }
.pearl.show { opacity: 1; visibility: visible; transform: none; }
.pearl:hover { transform: translateY(-4px) scale(1.06); }

.human-gate-body { background: radial-gradient(900px 500px at 50% -10%, rgba(47, 138, 104, 0.28), transparent 60%), #081210; }

/* ===== Scroll reveal: CSS only, skipped where unsupported ===== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(46px) scale(0.98); } to { opacity: 1; transform: none; } }
  }
}

/* ===== Responsive ===== */
@media (max-width: 1420px) {
  .site-nav a { padding: 9px 9px; font-size: 0.87rem; }
  .site-nav { gap: 6px; }
  .header-inner { gap: 12px; padding: 0 14px; }
}
@media (min-width: 1181px) and (max-width: 1260px) {
  .site-nav a { padding: 9px 6px; }
  .nav-account { gap: 5px; }
}
@media (max-width: 1180px) {
  .nav-toggle { display: flex; z-index: 120; width: 48px; height: 48px; padding: 0; align-items: center; justify-content: center; border: 0; border-radius: 15px; background: rgba(227, 185, 100, 0.14); margin-inline-start: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 0;
    border-radius: var(--r-lg);
    background: #0b1c18;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(246, 220, 152, 0.16);
    max-height: calc(100dvh - var(--header-h) - 40px);
    overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .nav-main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .site-nav .nav-main a { padding: 14px 16px; font-size: 1rem; text-align: start; border-radius: 15px; background: rgba(0, 0, 0, 0.26); }
  .site-nav .nav-main a.active { background: rgba(227, 185, 100, 0.18); }
  .nav-account { flex-wrap: wrap; padding-top: 14px; border-top: 1px solid rgba(246, 220, 152, 0.13); }
  .nav-account > a, .nav-account .nav-logout-form { flex: 1 1 130px; width: auto; text-align: center; font-size: 0.98rem; }
  .nav-account .ghost-btn { width: 100%; padding: 12px; }
  .nav-user { flex: 1 1 100%; max-width: none; text-align: start; }
  .lang-switch { flex: 1 1 100%; justify-content: stretch; margin: 4px 0 0; }
  .site-nav .lang-btn { flex: 1; padding: 11px; font-size: 0.95rem; text-align: center; }
  .class-rail { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(124px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 14px; margin-top: -10px; }
  .class-rail li { scroll-snap-align: start; }
}
@media (max-width: 960px) {
  .home-split { grid-template-columns: 1fr; }
  .hero + .stats-row { margin-top: -40px; }
  .stat-card:nth-child(odd) { border-inline-start: 0; }
  .stat-card:nth-child(n+3) { border-top: 1px solid rgba(246, 220, 152, 0.12); }
  .footer-top { flex-direction: column; }
}
@media (max-width: 900px) {
  .site-header { top: 8px; margin-top: 8px; width: calc(100% - 20px); border-radius: 22px; }
  .hero { height: auto; min-height: 640px; margin-top: calc(-1 * var(--header-h) - 8px); border-radius: 0 0 50% 50% / 0 0 26px 26px; }
  .hero-slide img { height: 72%; object-position: 70% top; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
  .hero-overlay, html[dir="rtl"] .hero-overlay { background: linear-gradient(0deg, #07110e 12%, rgba(7, 17, 14, 0.93) 46%, rgba(7, 17, 14, 0.55) 66%, rgba(7, 17, 14, 0.05) 86%, rgba(7, 17, 14, 0.5)); }
  .hero-content { min-height: 640px; padding-bottom: 76px; justify-content: flex-end; }
  .hero .eyebrow { font-size: 0.82rem; padding: 7px 14px; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; flex: 1 1 150px; padding: 16px 16px; }
  .stats-row { gap: 0; margin-bottom: 40px; }
  .page-hero { padding: calc(var(--header-h) + 50px) var(--gutter) 46px; margin-top: calc(-1 * var(--header-h) - 8px); }
  .panel { padding: 20px; }
  .panel-head { padding: 0 0 14px; }
  .news-list li { grid-template-columns: 1fr; padding: 16px 0; }
  .news-list time { grid-row: auto; }
  .next-event-list li { flex-direction: row; align-items: center; padding-inline: 4px; }
  .home-quick { grid-template-columns: 1fr 1fr !important; }
  .footer-links { grid-template-columns: repeat(2, auto); }
  .journey { grid-template-columns: 1fr; }
  .journey img, html[dir="rtl"] .journey img { min-height: 220px; height: 220px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .journey .panel-body { padding: 8px 24px 28px; }
  .rank-tabs { display: flex; border-radius: var(--r); margin-inline: 0 !important; }
}
@media (max-width: 460px) {
  .hero { min-height: 640px; height: auto; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 18px 16px; }
  .stat-sub { font-size: 0.8rem; }
  .section.narrow .form-panel { padding: 28px 20px; }
  .quick-card { padding: 16px 14px; }
  .footer-partners { align-items: stretch; }
  .pearl { width: 48px; height: 48px; inset-inline-start: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.ref-totals { display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--muted); }
.ref-totals b { color: var(--gold); font-size: 1.1rem; margin-inline-start: 6px; font-variant-numeric: tabular-nums; }

/* ===== News: home excerpt and patch-notes page ===== */
#news { scroll-margin-top: calc(var(--header-h) + 28px); }
.news-list p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.news-list strong a { color: inherit; }
.news-list strong a:hover { color: var(--gold); }
.news-list li > time { grid-row: 1 / span 3; }
.news-more { grid-column: 2; justify-self: start; margin-top: 8px; color: var(--gold); font-weight: 700; }
.news-more:hover { color: #f6dc98; }
html[dir="rtl"] .news-list [dir="auto"] { text-align: right; }

.pn { width: min(100%, 1240px); margin: 28px auto 72px; }
.pn-hero {
  padding: clamp(40px, 7vw, 84px) clamp(22px, 5vw, 64px);
  border-radius: var(--r-lg);
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 45%, rgba(6, 14, 12, 0.55), rgba(6, 14, 12, 0.88)),
    url("../img/page-banner.webp") center 38% / cover;
  box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.2), var(--lift);
}
.pn-kicker { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin-bottom: 18px; color: #d7ded3; }
.pn-kicker span { padding: 3px 14px; border-radius: var(--r-full); background: var(--gold-fill); color: #211503; font-weight: 700; font-size: 0.86rem; }
.pn-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.2; text-wrap: balance; color: #f4dca2; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8); }
.pn-lead { max-width: 68ch; margin: 18px auto 0; font-size: 1.08rem; color: #e2e6dc; text-wrap: pretty; }

.pn-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.pn-single { grid-template-columns: minmax(0, 900px); justify-content: center; }
.pn-toc { position: sticky; top: calc(var(--header-h) + 28px); max-height: calc(100vh - var(--header-h) - 56px); overflow: auto; padding: 18px 14px; border-radius: var(--r); background: var(--glass); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.14); }
.pn-toc summary { padding: 0 10px 10px; font-weight: 700; color: var(--gold); cursor: pointer; }
.pn-toc ol { list-style: none; }
.pn-toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
.pn-toc a span { flex: none; min-width: 1.5em; color: var(--gold2); font-weight: 700; font-variant-numeric: tabular-nums; }
.pn-toc a:hover { color: var(--ink); background: rgba(246, 220, 152, 0.06); }
.pn-toc a[aria-current] { color: #f6dc98; background: rgba(227, 185, 100, 0.14); }

.pn-body { display: grid; gap: 24px; min-width: 0; }
.pn-sec { min-width: 0; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--glass); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.14), var(--lift); scroll-margin-top: calc(var(--header-h) + 28px); }
.pn-sec > header { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(246, 220, 152, 0.16); }
.pn-num { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--gold-fill); color: #211503; font: 700 1.4rem/1 var(--font-display); }
.pn-sec h2 { font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.25; color: #f4dca2; text-wrap: balance; }
.pn-tag { color: var(--sage); font-weight: 700; font-size: 0.95rem; }
.pn-sec h3 { margin: 28px 0 12px; font-size: 1.12rem; color: #f0eadb; }
.pn-sec > p { max-width: 74ch; margin: 0 0 14px; color: #c9d2c7; }
.pn-sec strong, .pn-strong { color: #f6dc98; font-weight: 700; }
.pn-sec em { color: var(--muted); }
.pn-sec ul { display: grid; gap: 7px; margin: 0 0 14px; list-style: none; }
.pn-sec li { position: relative; padding-inline-start: 20px; color: #dde2d8; }
.pn-sec li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold2); transform: rotate(45deg); }
.pn-old { color: var(--faint); }
.pn-arrow { color: var(--gold); padding: 0 4px; }
.pn-new { color: #f0eadb; font-weight: 600; }

.pn-table { margin: 0 0 16px; overflow-x: auto; border-radius: var(--r-sm); background: rgba(4, 11, 9, 0.5); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.12); }
.pn-table table { width: 100%; border-collapse: collapse; }
.pn-table th { padding: 11px 16px; text-align: start; font-size: 0.86rem; font-weight: 700; color: var(--gold); background: rgba(227, 185, 100, 0.1); }
.pn-table td { padding: 11px 16px; border-top: 1px solid rgba(246, 220, 152, 0.09); color: #dde2d8; }
.pn-table td:first-child { font-weight: 600; color: var(--ink); }
.pn-table .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn-table tbody tr:hover td { background: rgba(246, 220, 152, 0.04); }

.pn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 0 0 18px; }
.pn-card, .pn-note { min-width: 0; padding: 18px 20px; border-radius: var(--r); margin: 0 0 18px; }
.pn-grid > .pn-card { margin: 0; }
.pn-card { background: rgba(4, 11, 9, 0.42); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.14); }
.pn-card h4, .pn-note h4 { margin: 0 0 10px; font-size: 1rem; color: #f6dc98; }
.pn-card > :last-child, .pn-note > :last-child { margin-bottom: 0; }
.pn-card .pn-table th, .pn-card .pn-table td { padding: 9px 12px; }
.pn-note { background: rgba(79, 181, 142, 0.1); box-shadow: inset 0 0 0 1px rgba(95, 196, 155, 0.3); }
.pn-note h4 { color: var(--sage); }
.pn-note li::before { background: var(--sage); }
.pn-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.pn-meta > div { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 9px 16px; border-radius: var(--r-sm); background: rgba(227, 185, 100, 0.1); }
.pn-meta dt { color: var(--gold); font-weight: 700; }
.pn-meta dd { margin: 0; color: var(--ink); }
.pn-sec > :last-child { margin-bottom: 0; }
.pn-plain:last-of-type { text-align: center; padding-block: clamp(32px, 5vw, 56px); background: linear-gradient(160deg, rgba(227, 185, 100, 0.2), rgba(47, 138, 104, 0.16)); }
.pn-plain:last-of-type > header { justify-content: center; border-bottom: 0; margin-bottom: 4px; padding-bottom: 8px; }
.pn-plain:last-of-type > p { margin-inline: auto; }
.pn-strong { font-size: 1.12rem; }
.pn-back { text-align: center; }

@media (max-width: 1020px) {
  .pn-layout { grid-template-columns: minmax(0, 1fr); }
  .pn-toc { position: static; max-height: none; }
  .pn-toc details:not([open]) summary { padding-bottom: 0; }
}
@media (min-width: 560px) and (max-width: 1020px) {
  .pn-toc ol { columns: 2; }
}
@media (max-width: 720px) {
  .news-list li > time { grid-row: auto; }
  .news-more { grid-column: auto; }
  .pn-num { width: 42px; height: 42px; border-radius: 13px; font-size: 1.1rem; }
  .pn-sec > header { gap: 14px; }
  .pn-table th, .pn-table td { padding: 9px 8px; font-size: 0.92rem; }
  .pn-table th.num { white-space: normal; }
}

/* ===== Notice index ===== */
.news-all { display: inline-block; margin-top: 14px; color: var(--gold); font-weight: 700; }
.news-all:hover { color: #f6dc98; }
.notice-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.notice-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 28px 26px; border-radius: var(--r-lg); background: var(--glass); box-shadow: inset 0 0 0 1px rgba(246, 220, 152, 0.14), var(--lift); color: var(--muted); transition: transform 0.35s var(--ease); }
.notice-card:hover { transform: translateY(-6px); color: var(--muted); }
.notice-card h2 { font-size: 1.28rem; line-height: 1.3; color: #fff; overflow-wrap: anywhere; text-wrap: balance; }
.notice-card p { color: #c9d2c7; overflow-wrap: anywhere; }
html[dir="rtl"] .notice-card [dir="auto"] { text-align: right; }
.notice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 0.9rem; color: #d7ded3; }
.notice-badge { padding: 2px 13px; border-radius: var(--r-full); background: var(--gold-fill); color: #211503; font-weight: 700; font-size: 0.82rem; }
.notice-go { margin-top: auto; padding-top: 6px; color: var(--gold); font-weight: 700; }
.notice-card:hover .notice-go { color: #f6dc98; }
.notice-card.is-latest { grid-column: 1 / -1; gap: 16px; padding: clamp(30px, 5vw, 60px); background: linear-gradient(90deg, rgba(6, 14, 12, 0.92), rgba(6, 14, 12, 0.6)), url("../img/page-banner.webp") center 38% / cover; }
html[dir="rtl"] .notice-card.is-latest { background: linear-gradient(270deg, rgba(6, 14, 12, 0.92), rgba(6, 14, 12, 0.6)), url("../img/page-banner.webp") center 38% / cover; }
.notice-card.is-latest h2 { max-width: 26ch; font-size: clamp(1.6rem, 3.2vw, 2.5rem); color: #f4dca2; }
.notice-card.is-latest p { max-width: 64ch; font-size: 1.05rem; color: #e2e6dc; }
