/**
 * mobil2.net — Master Stylesheet
 * 2026 Next-Gen Mobile MMORPG Network Theme
 * Inspired by NewDesign (Origins2, Browser2 & AFK Journey)
 * 100% Mobile Responsive · Ultra High Performance · Zero Layout Shifts
 */

:root {
  --bg-primary: #0b0a09;
  --bg-secondary: #120f0c;
  --bg-card: #15130f;
  --bg-card-hover: #1c1813;
  --border-color: #2a2015;
  --border-gold: rgba(229, 182, 107, 0.28);
  --border-gold-strong: #d4b37a;
  --border-cyan: #3d3122;
  --gold-primary: #e5b66b;
  --gold-light: #fbe3a8;
  --gold-dark: #9e7330;
  --cyan-primary: #d3a95e;
  --cyan-dark: #9e7330;
  --text-main: #f0dfb6;
  --text-body: #cbbfa7;
  --text-muted: #8d8170;
  --text-dim: #6e6354;
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 6px;
  --shadow-gold: 0 0 20px rgba(229, 182, 107, 0.15);
  --shadow-cyan: 0 0 20px rgba(229, 182, 107, 0.12);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Cinzel", Georgia, "Times New Roman", serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-base);
  background-color: #0b0a09;
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-color: #0b0a09;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(229, 182, 107, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(138, 98, 48, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 75%, rgba(229, 182, 107, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.m2-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================
   OFFICIAL ROHAN2 GOLDEN CHECK BADGE (.rohan-mirror-check)
   ======================================================== */
.rohan-mirror-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff1c5 0%, #e5b66b 55%, #966723 100%);
  border: 1px solid #ffd580;
  box-shadow: 0 0 10px rgba(229, 182, 107, 0.45);
  color: #3b2003;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}

/* ========================================================
   HEADER & NAVIGATION
   ======================================================== */
.m2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(11, 10, 9, 0.94); border-bottom: 1px solid #2a2015;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background 0.3s ease;
}

.m2-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.m2-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.m2-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a0f00;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(229, 182, 107, 0.4);
}

.m2-logo-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.m2-logo-net {
  color: #d3a95e;
  font-size: 1.1rem;
  font-weight: 700;
}

.m2-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.m2-nav-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.m2-nav-link:hover {
  color: var(--gold-primary);
  text-shadow: 0 0 8px rgba(229, 182, 107, 0.4);
}

.m2-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.m2-header .m2-btn-cta {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: 0.84rem;
  height: 40px;
  width: auto;
}
  gap: 14px;
}

.m2-lang-dropdown {
  position: relative;
}

.m2-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.m2-lang-btn:hover {
  border-color: var(--gold-primary);
}

.m2-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  max-height: 380px;
  overflow-y: auto;
  background: #14120e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  padding: 6px;
  z-index: 1001;
}

.m2-lang-menu.open {
  display: flex;
}

.m2-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.m2-lang-item:hover, .m2-lang-item.active {
  background: rgba(229, 182, 107, 0.15);
  color: var(--gold-primary);
}

.m2-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  color: #1a0f00;
  border: 1px solid #ffd580;
  box-shadow: 0 4px 18px rgba(229, 182, 107, 0.35);
  transition: all 0.25s ease;
}

.m2-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 182, 107, 0.5);
}

.m2-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.m2-hero {
  position: relative;
  min-height: 85vh;
  padding: 140px 0 60px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center top;
}

.m2-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 45% at 35% 50%,
      rgba(8, 9, 14, 0.72) 0%,
      rgba(8, 9, 14, 0.40) 60%,
      transparent 90%),
    linear-gradient(180deg,
      rgba(8, 9, 14, 0.85) 0%,
      rgba(8, 9, 14, 0.35) 30%,
      rgba(8, 9, 14, 0.55) 65%,
      var(--bg-primary) 100%),
    radial-gradient(120% 80% at 50% 50%, transparent 40%, rgba(8, 9, 14, 0.65) 100%);
}

.m2-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.m2-hero-eyebrow,
.m2-hero-badge {
  display: inline-block;
  color: #d3a95e;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  border: none;
  background: none;
  padding: 0;
}

.m2-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #10b981; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.m2-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #ffffff;
}

.m2-hero-title span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.m2-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 34px;
}

.m2-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.m2-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.m2-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* Telemetry Bar */
.m2-telemetry-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.m2-telemetry-item {
  display: flex;
  flex-direction: column;
}

.m2-telemetry-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.m2-telemetry-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-top: 2px;
}

.m2-telemetry-val.cyan {
  color: #e5b66b;
}

/* ========================================================
   SECTIONS COMMON
   ======================================================== */
.m2-section {
  padding: 90px 0;
  position: relative;
}

.m2-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.m2-section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 10px;
}

.m2-section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.m2-section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ========================================================
   1. REALM CLUSTER (CANLI SUNUCULAR)
   ======================================================== */
.m2-realms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.m2-realm-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

.m2-realm-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.m2-realm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.m2-realm-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.m2-realm-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  min-height: 48px;
}

.m2-realm-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
}

.m2-realm-stat-item {
  display: flex;
  flex-direction: column;
}

.m2-realm-stat-k {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.m2-realm-stat-v {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* ========================================================
   2. DRAGON SOUL ALCHEMY MATRIX (SİMYA SİSTEMİ)
   ======================================================== */
.m2-alchemy-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.m2-alchemy-gems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.m2-gem-slot {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.m2-gem-slot:hover, .m2-gem-slot.active {
  background: rgba(229, 182, 107, 0.15);
  border-color: var(--gold-primary);
  box-shadow: 0 0 18px rgba(229, 182, 107, 0.35);
  transform: scale(1.04);
}

.m2-gem-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.m2-gem-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.m2-alchemy-inspect {
  background: rgba(8, 9, 14, 0.65);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 28px;
}

.m2-clarity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.m2-clarity-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.m2-clarity-pill:hover, .m2-clarity-pill.active {
  background: var(--gold-primary);
  border-color: #ffd580;
  color: #1a0f00;
  box-shadow: 0 0 12px rgba(229, 182, 107, 0.4);
}

.m2-alchemy-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m2-alchemy-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* ========================================================
   3. SWITCHBOT SIMULATOR (EFSUN BOTU)
   ======================================================== */
.m2-switchbot-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.m2-switchbot-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.m2-weapon-select {
  padding: 10px 16px;
  background: rgba(8, 9, 14, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.95rem;
  outline: none;
}

.m2-switchbot-slots {
  background: rgba(8, 9, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.m2-bonus-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s;
}

.m2-bonus-slot.spin {
  animation: spinFlash 0.35s ease;
}

@keyframes spinFlash {
  0% { background: rgba(56, 189, 248, 0.3); color: #fff; }
  100% { background: rgba(255, 255, 255, 0.03); }
}

.m2-bonus-slot .name {
  color: #e2e8f0;
}

.m2-bonus-slot .val {
  color: #10b981;
}

.m2-switchbot-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.m2-rolls-tracker {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.m2-rolls-tracker span {
  color: var(--gold-light);
  font-weight: 700;
}

/* ========================================================
   4. AUTO-HUNT (OTOMATİK AV)
   ======================================================== */
.m2-autohunt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.m2-autohunt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.25s, border-color 0.25s;
}

.m2-autohunt-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-primary);
  box-shadow: var(--shadow-cyan);
}

.m2-autohunt-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.m2-autohunt-card h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.m2-autohunt-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================
   5. CLASSES
   ======================================================== */
.m2-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.m2-class-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.m2-class-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.m2-class-img {
  width: 130px;
  height: 190px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s;
}

.m2-class-card:hover .m2-class-img {
  transform: scale(1.08);
}

.m2-class-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.m2-class-role {
  font-size: 0.82rem;
  color: var(--gold-primary);
  font-weight: 600;
  text-transform: uppercase;
}

/* ========================================================
   6. BOSS DUNGEONS
   ======================================================== */
.m2-bosses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.m2-boss-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s;
}

.m2-boss-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
}

.m2-boss-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 12px rgba(229, 182, 107, 0.3));
}

.m2-boss-name {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 800;
}

.m2-boss-level {
  font-size: 0.82rem;
  color: var(--cyan-primary);
  font-weight: 700;
  margin-top: 4px;
}

/* ========================================================
   7. DOWNLOAD SECTION
   ======================================================== */
.m2-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.m2-dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.m2-dl-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.m2-dl-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(229, 182, 107, 0.15);
  border: 1px solid var(--border-color);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.m2-dl-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.m2-dl-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.m2-dl-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #cbd5e1;
}

/* ========================================================
   8. FAQ ACCORDION
   ======================================================== */
.m2-faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.m2-faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.m2-faq-item:hover, .m2-faq-item.open {
  border-color: var(--border-color);
}

.m2-faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: none;
}

.m2-faq-arrow {
  color: var(--gold-primary);
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.m2-faq-item.open .m2-faq-arrow {
  transform: rotate(180deg);
}

.m2-faq-answer {
  display: none;
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 14px;
}

.m2-faq-item.open .m2-faq-answer {
  display: block;
}

/* ========================================================
   FOOTER
   ======================================================== */
.m2-footer {
  border-top: 1px solid var(--border-color);
  background: #050608;
  padding: 60px 0 30px;
}

.m2-footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.m2-footer-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
}

.m2-flag-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.m2-flag-link:hover, .m2-flag-link.active {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(229, 182, 107, 0.1);
}

.m2-flag-img {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
}

.m2-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: #64748b;
}

/* ========================================================
   RESPONSIVE (MOBILE & TABLET)
   ======================================================== */

/* ========================================================
   9. BIOLOGIST RESEARCH LAB (BİYOLOG ARAŞTIRMALARI)
   ======================================================== */
.m2-biologist-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.m2-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.m2-biologist-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.m2-biologist-table th {
  background: rgba(8, 9, 14, 0.95);
  color: var(--gold-light);
  padding: 16px 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--border-color);
}

.m2-biologist-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  vertical-align: middle;
}

.m2-biologist-table tr:hover td {
  background: rgba(229, 182, 107, 0.04);
}

.m2-bio-lvl-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-cyan);
  color: var(--cyan-primary);
  font-weight: 800;
  font-size: 0.82rem;
}

.m2-bio-item-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.m2-bio-item-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.m2-bio-bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #10b981;
  font-weight: 700;
}

/* ========================================================
   10. ENHANCED CLASS SKILL & STAT BUILDS
   ======================================================== */
.m2-class-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.m2-class-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

.m2-class-profile-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.m2-class-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.m2-class-face-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 12px rgba(229, 182, 107, 0.4);
}

.m2-class-profile-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.m2-stat-priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(229, 182, 107, 0.12);
  border: 1px solid var(--border-color);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
}

.m2-class-skill-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

/* ========================================================
   11. EXPANDED DUNGEON & BOSS ENCYCLOPEDIA
   ======================================================== */
.m2-dungeon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 26px;
}

.m2-dungeon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.m2-dungeon-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.m2-dungeon-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.m2-dungeon-boss-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));
}

.m2-dungeon-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.m2-dungeon-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.m2-pill-lvl {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.m2-pill-element {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 700;
}

.m2-dungeon-drops-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  margin-top: 14px;
}

.m2-dungeon-drops-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.m2-drops-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m2-drop-tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #e2e8f0;
}

/* ========================================================
   12. EQUIPMENT EVOLUTION / CRAFTING TREE
   ======================================================== */
.m2-crafting-tree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.m2-craft-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  transition: all 0.25s;
}

.m2-craft-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.m2-craft-step-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(229, 182, 107, 0.15);
  border: 1px solid var(--border-color);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.m2-craft-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.m2-craft-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================
   13. TECHNICAL ENGINE ARCHITECTURE (VULKAN & NETCODE)
   ======================================================== */
.m2-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.m2-tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.m2-tech-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-cyan);
}

.m2-tech-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.m2-tech-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.m2-tech-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ========================================================
   14. THREE KINGDOMS (ÜÇ KRALLIK: SHINSOO, CHUNJO, JINNO)
   ======================================================== */
.m2-kingdoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.m2-kingdom-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.m2-kingdom-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.m2-kingdom-shinsoo {
  border-color: rgba(239, 68, 68, 0.3);
}
.m2-kingdom-shinsoo::before {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}
.m2-kingdom-shinsoo:hover {
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

.m2-kingdom-chunjo {
  border-color: rgba(234, 179, 8, 0.3);
}
.m2-kingdom-chunjo::before {
  background: linear-gradient(90deg, #eab308, #ca8a04);
}
.m2-kingdom-chunjo:hover {
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.25);
  border-color: #eab308;
}

.m2-kingdom-jinno {
  border-color: rgba(56, 189, 248, 0.3);
}
.m2-kingdom-jinno::before {
  background: linear-gradient(90deg, #d3a95e, #9e7330);
}
.m2-kingdom-jinno:hover {
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
  border-color: #d3a95e;
}

.m2-kingdom-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.m2-kingdom-shinsoo .m2-kingdom-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.m2-kingdom-chunjo .m2-kingdom-badge {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
}
.m2-kingdom-jinno .m2-kingdom-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #d3a95e;
}

.m2-kingdom-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.m2-kingdom-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========================================================
   15. GAYA SYSTEM & ROTATING MERCHANT (ERYON ESİNTİLİ)
   ======================================================== */
.m2-gaya-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.m2-gaya-statue-img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(229, 182, 107, 0.35));
}

.m2-gaya-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.m2-gaya-feat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.m2-gaya-feat-item h3 {
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.m2-gaya-feat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================
   16. STARTER KIT & MULTI-FARM PROTECT
   ======================================================== */
.m2-starter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.m2-starter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
}

.m2-starter-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.m2-starter-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(229, 182, 107, 0.12);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.m2-starter-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.m2-starter-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================
   17. MAXIMUM BONUS TABLE (OLDERAMT2 ESİNTİLİ)
   ======================================================== */
.m2-bonustable-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.m2-bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.m2-bonus-item-box {
  background: #0d1018;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.m2-bonus-item-box:hover {
  background: rgba(229, 182, 107, 0.05);
}

.m2-bonus-name-k {
  font-size: 0.92rem;
  font-weight: 600;
  color: #cbd5e1;
}

.m2-bonus-max-v {
  font-size: 1.05rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}

/* ========================================================
   18. GLOBAL MARKET & AUCTION (OLDERAMT2 ESİNTİLİ)
   ======================================================== */
.m2-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.m2-market-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.m2-market-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-cyan);
}

.m2-market-card h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.m2-market-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .m2-alchemy-wrap {
    grid-template-columns: 1fr;
  }
  .m2-hero-title {
    font-size: 2.5rem;
  }
  .m2-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #0b0a09;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }
  .m2-nav.open {
    display: flex;
  }
  .m2-nav.open .m2-nav-mobile-cta {
    display: inline-flex !important;
  }
  .m2-menu-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .m2-header .m2-btn-cta {
    display: none;
  }
  .m2-hero-title {
    font-size: 2rem;
  }
  .m2-hero-subtitle {
    font-size: 1rem;
  }
  .m2-telemetry-bar {
    grid-template-columns: 1fr 1fr;
  }
  .m2-hero-actions .m2-btn-cta, 
  .m2-hero-actions .m2-btn-secondary,
  .m2-section .m2-btn-cta,
  .m2-section .m2-btn-secondary {
    width: 100%;
  }
  .m2-switchbot-box {
    padding: 20px;
  }
  .m2-alchemy-wrap {
    padding: 20px;
  }
  .m2-alchemy-gems {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================================
   OLDERA MEDIEVAL CHAPTERS & INTERACTIVE HIGHLIGHTS SHOWCASE
   ======================================================== */
:root {
  --tb: url('../images/ui/thinboard.png');
}

.era-chapter-title {
  isolation: isolate;
  color: #e7cf9d;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: linear-gradient(180deg, #352b20 0%, #181511 100%);
  border: 2px ridge #987347;
  align-items: center;
  gap: 16px;
  height: 60px;
  margin: 0 0 24px 0;
  font: 700 17px/1.3 Georgia, "Times New Roman", serif;
  display: flex;
  position: relative;
  box-shadow: inset 0 0 0 5px #130f0a, inset 0 0 0 6px rgba(113,84,51,0.4), 0 5px 15px rgba(0,0,0,0.5);
  border-radius: 2px;
}

.era-chapter-title:after {
  content: "";
  background: linear-gradient(135deg, #b39663, #473222);
  border: 1px solid #d0ae74;
  width: 11px;
  height: 11px;
  position: absolute;
  top: 22px;
  right: -6px;
  transform: rotate(45deg);
}

.era-chapter-title > i {
  background: linear-gradient(90deg, rgba(164,123,66,0.35), transparent);
  flex: 1;
  height: 1px;
  margin-right: 24px;
}

.era-chapter-seal {
  clip-path: polygon(0 0, 100% 0, 92% 82%, 50% 100%, 8% 82%);
  color: #d7b982;
  text-shadow: 0 2px #000;
  background: linear-gradient(135deg, #9f804f, #3a2b1a 12%, #241b13 80%, #86653e);
  border-top: 2px solid #c6a774;
  flex-shrink: 0;
  align-self: center;
  place-items: center;
  width: 54px;
  height: 66px;
  margin-left: 8px;
  font: 24px Georgia, serif;
  display: grid;
  box-shadow: inset 0 0 0 5px rgba(139,104,53,0.25);
}

.era-panel {
  background: radial-gradient(at 50% 0, rgba(90,67,36,0.14), transparent 70%), #141311;
  border: 1px solid rgba(118,96,69,0.45);
  padding: 30px;
  position: relative;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,0.25), 0 12px 28px rgba(0,0,0,0.4);
  border-radius: 4px;
  margin-bottom: 30px;
}

.era-panel:before, .era-panel:after {
  content: "";
  pointer-events: none;
  border-style: solid;
  border-color: #a58755;
  width: 14px;
  height: 14px;
  position: absolute;
}

.era-panel:before {
  border-width: 2px 0 0 2px;
  top: 5px;
  left: 5px;
}

.era-panel:after {
  border-width: 0 2px 2px 0;
  bottom: 5px;
  right: 5px;
}

.era-section-intro h2 {
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(24px, 2.3vw, 32px);
  color: #f0dfb6;
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.era-section-intro p {
  color: #bdb5a9;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.era-tabs {
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
  display: flex;
}

.era-tabs button, .era-tab {
  color: #b5ab98;
  background: linear-gradient(#302c23, #1c1915);
  border: 1px solid #78603d;
  flex: 1;
  min-width: 140px;
  min-height: 42px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
}

.era-tabs button.is-active, .era-tabs button[aria-selected="true"], .era-tab.is-active {
  color: #f0dcb5;
  background: linear-gradient(#673527, #321d16);
  border-color: #b79257;
  box-shadow: inset 0 0 0 3px rgba(21,11,5,0.35), 0 2px 8px rgba(0,0,0,0.3);
}

.era-tabs button:hover, .era-tab:hover {
  filter: brightness(1.2);
}

.dss {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dss-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.dss-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.era-refs-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c5a46c;
  font-weight: 700;
}

.dss-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dss-w {
  cursor: pointer;
  background: radial-gradient(at 50% 40%, #2b2419, #161310 75%);
  border: 1px solid #4a3b26;
  justify-content: center;
  align-items: flex-start;
  width: 44px;
  min-height: 76px;
  padding: 4px;
  display: flex;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.dss-w img {
  image-rendering: pixelated;
  max-width: none;
  max-height: 96px;
}

.dss-w:hover {
  border-color: #8a6c3f;
  transform: translateY(-2px);
}

.dss-w.is-active {
  border-color: #ffc700;
  box-shadow: 0 0 14px rgba(255, 199, 0, 0.45);
}

.dss-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin-top: 12px;
}

.dss-tip {
  flex: none;
  min-width: 250px;
  display: flex;
  justify-content: flex-start;
}

.era-tip {
  border: 0 solid transparent;
  border-image: var(--tb) 16 fill / 16px repeat;
  width: 250px;
  padding: 12px 14px;
  text-align: center;
  font: 12px/17px Tahoma, Verdana, sans-serif;
  color: #c1c1c1;
  background: transparent;
  box-sizing: border-box;
}

.era-tip-title {
  color: #f1e6c0;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.era-tip-plain {
  color: #c1c1c1;
}

.era-tip-green {
  color: #89b88d;
  font-weight: 600;
}

.era-tip-red {
  color: #e57875;
  font-weight: 600;
}

.dss-side {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gw-pick {
  display: inline-flex;
  gap: 6px;
}

.gw-pick button {
  padding: 6px 16px;
  background: #1c1915;
  border: 1px solid #4a3b26;
  color: #b5ab98;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.gw-pick button.is-active {
  background: #411e17;
  border-color: #b39059;
  color: #f5e7c7;
}

.era-button.dss-roll {
  background: linear-gradient(180deg, #823a27 0%, #411e17 100%);
  border: 1px solid #b39059;
  color: #f5e7c7;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 0 0 2px rgba(20,11,6,0.4), 0 3px 8px rgba(0,0,0,0.5);
  align-self: flex-start;
  transition: all 0.16s ease;
  font-family: inherit;
}

.era-button.dss-roll:hover {
  filter: brightness(1.2);
}

.era-button.dss-roll.is-spin {
  transform: scale(0.96);
  filter: brightness(1.4);
}

.dss-ex {
  color: #8d8170;
  font-size: 12px;
  margin: 0;
}

.dss-odds {
  background: #14120e;
  border: 1px solid #2a2219;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  padding: 10px 14px;
  margin: 0;
}

.dss-odds dt {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c5a46c;
  font-weight: 700;
  margin-bottom: 2px;
}

.dss-odds div {
  display: flex;
  justify-content: space-between;
  color: #cbbfa7;
  font-size: 13px;
}

.dss-odds b {
  color: #f0dfb6;
  font-variant-numeric: tabular-nums;
}

.dss-src {
  margin-top: 4px;
}

.dss-src ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.dss-src li {
  color: #cbbfa7;
  font-size: 13px;
}

.dss-src b {
  color: #89b88d;
  font-weight: 400;
}

.era-caption {
  color: #8d8170;
  font-size: 12px;
  font-style: italic;
  margin-top: 14px;
}

/* Evolution Rows for 65-80, Endgame, Azrail & Armors tabs */
.hl-rows {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hl-row {
  background: #14120e;
  border: 1px solid #2a2219;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 10px 16px;
  border-radius: 3px;
}

.hl-row .dss-w {
  min-height: 56px;
  height: 56px;
}

.hl-arrow {
  color: #d3a95e;
  font-size: 22px;
  font-weight: 700;
}

.hl-meta {
  color: #a89b85;
  font-size: 12px;
  flex: 1 0 100%;
}

.hl-mats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hl-mat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #cbbfa7;
  font-size: 12px;
}

.hl-mat b {
  color: #e7cf98;
}

/* Helper styles for OldEra Item Boxes and Chests */
.hl-item-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1a1612;
  border: 1px solid #3d3122;
  padding: 6px 12px;
  border-radius: 3px;
}
.hl-item-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.hl-item-box span {
  color: #f0dfb6;
  font-size: 13px;
  font-weight: 500;
}
.hl-chest-wrap {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}
.hl-chest-header {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #14120e;
  border: 1px solid #3d3122;
  padding: 16px;
  border-radius: 4px;
}
.hl-chest-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.hl-chest-drops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.hl-drop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #14120e;
  border: 1px solid #2a2219;
  padding: 10px 14px;
  border-radius: 3px;
  transition: border-color 0.2s;
}
.hl-drop-card:hover {
  border-color: #d3a95e;
}
.hl-drop-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.hl-drop-card div {
  display: flex;
  flex-direction: column;
}
.hl-drop-card b {
  color: #f0dfb6;
  font-size: 13px;
}
.hl-drop-card span {
  color: #8d8170;
  font-size: 11px;
}

@media (max-width: 768px) {
  .era-chapter-title {
    font-size: 14px;
    height: 54px;
    gap: 12px;
  }
  .era-chapter-seal {
    width: 44px;
    height: 56px;
    font-size: 18px;
  }
  .era-panel {
    padding: 20px 14px;
  }
  .dss-main {
    flex-direction: column;
  }
  .dss-tip {
    width: 100%;
    justify-content: center;
  }
  .dss-side {
    width: 100%;
  }
  .dss-odds {
    grid-template-columns: 1fr;
  }
}
