﻿@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg:             #0d0b08;
  --surface:        #141109;
  --surface-2:      #1c1710;
  --surface-3:      #231e15;
  --surface-offset: #2a2318;
  --text:           #e8dfc8;
  --muted:          rgba(232, 223, 200, 0.60);
  --faint:          rgba(232, 223, 200, 0.30);

  --gold:           #c9993a;
  --gold-light:     #e8c46a;
  --gold-dark:      #8a6420;
  --gold-border:    rgba(201, 153, 58, 0.30);
  --gold-border-hi: rgba(232, 196, 106, 0.55);

  --success:        #7aad6e;
  --error:          #c96b5a;
  --info:           #7a9ec9;

  --radius:         12px;
  --radius-lg:      18px;
  --max:            1100px;

  --shadow:         0 20px 60px rgba(0, 0, 0, 0.70);
  --shadow-soft:    0 8px 28px rgba(0, 0, 0, 0.45);
  --focus:          0 0 0 3px rgba(201, 153, 58, 0.40);

  --font-display:      'Cinzel', serif;
  --font-display-hero: 'Cinzel Decorative', serif;
  --font-body:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --t:              180ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

#pjax-root {
  transition: opacity 180ms ease;
}
#pjax-root.pjax-loading {
  opacity: 0.35;
  pointer-events: none;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% 0%,   rgba(201, 153, 58, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 700px 400px at 85% 20%,  rgba(138, 100, 32, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 1000px 600px at 50% 100%, rgba(100, 70,  20, 0.10) 0%, transparent 60%);
  min-height: 100dvh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

#pjax-root {
  flex: 1;
}

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

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

h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.15;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

::selection {
  background: rgba(201, 153, 58, 0.25);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 11, 8, 0.85);
  border-bottom: 1px solid var(--gold-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar .container {
  display: flex;
  align-items: center;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(201, 153, 58, 0.45));
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0 0 0 24px;
  padding: 0;
  gap: 2px;
  align-items: center;
  flex: 1;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: background var(--t), color var(--t);
}

.nav-menu a:hover {
  background: rgba(201, 153, 58, 0.10);
  color: var(--gold-light);
}

.nav-menu a.active {
  color: var(--gold-light);
  background: rgba(201, 153, 58, 0.08);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-guest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  background: rgba(201, 153, 58, 0.06);
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-body);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  background: rgba(201, 153, 58, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
  font-family: var(--font-body);
  font-size: 14px;
}

.user-pill:hover {
  background: rgba(201, 153, 58, 0.12);
  border-color: var(--gold-border-hi);
}

.user-pill:focus {
  outline: none;
  box-shadow: var(--focus);
}

.user-pill[aria-expanded="true"] {
  background: rgba(201, 153, 58, 0.15);
  border-color: var(--gold-border-hi);
}

.user-pill[aria-expanded="true"] .pill-chevron {
  transform: rotate(180deg);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  font-family: var(--font-display);
  color: #0d0b08;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.pill-chevron {
  opacity: 0.55;
  transition: transform 200ms ease;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--gold-border);
  background: rgba(201, 153, 58, 0.06);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--t);
}

.nav-toggle:focus {
  outline: none;
  box-shadow: var(--focus);
}

.nav-toggle:hover {
  background: rgba(201, 153, 58, 0.12);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 0;
  border-top: 1px solid var(--gold-border);
  background: rgba(13, 11, 8, 0.97);
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  padding: 12px 20px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 16px;
  border-bottom: 1px solid rgba(201, 153, 58, 0.08);
  transition: color var(--t), background var(--t);
}

.nav-mobile-menu a:hover {
  color: var(--gold-light);
  background: rgba(201, 153, 58, 0.06);
}

.drawer-overlay {
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.drawer-overlay.active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.user-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  height: 100dvh;
  width: min(380px, 100vw);
  background: rgba(20, 17, 9, 0.99);
  border-left: 1px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  visibility: hidden;
}

.user-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-header-wrap {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--gold-border);
  position: sticky;
  top: 0;
  background: rgba(20, 17, 9, 0.98);
  z-index: 1;
}

.drawer-avatar-btn {
  position: relative;
  background: none;
  border: none;
  padding: 16px 10px 16px 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.drawer-avatar-edit {
  position: absolute;
  bottom: 17px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d0b08;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.drawer-avatar-btn:hover .drawer-avatar-edit { opacity: 1; }

.drawer-header-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 16px 48px 16px 4px;
  text-decoration: none;
  transition: background var(--t);
  cursor: pointer;
}

.drawer-header-link:hover {
  background: rgba(201, 153, 58, 0.05);
}

.drawer-header-arrow {
  margin-left: auto;
  opacity: 0.35;
  flex-shrink: 0;
  transition: opacity var(--t), transform var(--t);
}

.drawer-header-link:hover .drawer-header-arrow {
  opacity: 0.7;
  transform: translateX(3px);
}

/* ===== AVATAR CROP MODAL ===== */
.avatar-crop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.avatar-crop-overlay.open {
  opacity: 1;
  visibility: visible;
}

.avatar-crop-box {
  background: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 22px;
  width: min(320px, calc(100vw - 32px));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avatar-crop-header { display: flex; align-items: center; justify-content: space-between; }
.avatar-crop-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.5px; color: var(--gold); }

.avatar-crop-viewport {
  display: flex;
  justify-content: center;
}

#avatar-crop-canvas {
  cursor: grab;
  display: block;
  max-width: 100%;
  border-radius: 8px;
}

.avatar-crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.crop-zoom-track {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(201, 153, 58, 0.18);
  border-radius: 99px;
}

.crop-zoom-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--gold);
  border-radius: 99px;
  pointer-events: none;
}

.crop-zoom-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: transform 80ms ease;
}

.crop-zoom-track:active .crop-zoom-thumb {
  transform: translate(-50%, -50%) scale(1.2);
}

.crop-zoom-track input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  width: 100%;
  height: calc(100% + 20px);
  opacity: 0;
  cursor: pointer;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
}

.avatar-crop-hint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: -8px 0 0;
}

.avatar-crop-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.drawer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  font-family: var(--font-display);
  color: #0d0b08;
  flex-shrink: 0;
  overflow: hidden;
}

.drawer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.drawer-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.drawer-user-info strong {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-user-info span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-role {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(201, 153, 58, 0.15);
  border: 1px solid var(--gold-border);
  color: var(--gold-light) !important;
  font-size: 11px !important;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 2px;
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px;
  border-radius: 9px;
  border: 1px solid var(--gold-border);
  background: rgba(201, 153, 58, 0.05);
  color: var(--muted);
  cursor: pointer;
  z-index: 2;
  transition: background var(--t), color var(--t);
}

.drawer-close:hover {
  background: rgba(201, 153, 58, 0.12);
  color: var(--text);
}

.drawer-close:focus {
  outline: none;
  box-shadow: var(--focus);
}

.drawer-body {
  padding: 14px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-section {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: rgba(201, 153, 58, 0.03);
  overflow: hidden;
}

.drawer-section-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
  transition: background var(--t);
}

.drawer-section-title:hover {
  background: rgba(201, 153, 58, 0.06);
}

.dst-left {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.dst-chevron {
  opacity: 0.45;
  transition: transform 220ms ease;
  flex-shrink: 0;
}

.drawer-section.expanded .dst-chevron {
  transform: rotate(180deg);
}

.drawer-section-body {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--gold-border);
  background: rgba(0, 0, 0, 0.15);
}

.drawer-section.expanded .drawer-section-body {
  display: flex;
}

.drawer-subsection {
  padding: 14px;
}

.drawer-subsection-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  opacity: 0.7;
}

.drawer-divider {
  height: 1px;
  background: var(--gold-border);
  margin: 0 14px;
}

.avatar-upload-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-preview {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  font-family: var(--font-display);
  color: #0d0b08;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--gold-border);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.avatar-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
}

.drawer-danger-zone {
  margin-top: 4px;
}

.drawer-danger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: rgba(201, 107, 90, 0.8);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background var(--t), color var(--t);
}

.drawer-danger-btn:hover {
  background: rgba(201, 107, 90, 0.08);
  color: #e8a090;
}

main.container {
  padding: 28px 0 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition:
    transform 120ms ease,
    background var(--t),
    border-color var(--t),
    box-shadow var(--t);
  user-select: none;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 100%);
  border-color: rgba(201, 153, 58, 0.6);
  color: #0d0b08;
  box-shadow: 0 4px 20px rgba(201, 153, 58, 0.30);
}

.btn-primary:hover {
  background: linear-gradient(160deg, #f5d98a 0%, var(--gold-light) 60%, var(--gold) 100%);
  box-shadow: 0 6px 28px rgba(201, 153, 58, 0.45);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(201, 153, 58, 0.07);
  border-color: var(--gold-border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(201, 153, 58, 0.13);
  border-color: var(--gold-border-hi);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(232, 223, 200, 0.15);
  color: var(--muted);
}

.btn-ghost:hover {
  background: rgba(232, 223, 200, 0.05);
  border-color: rgba(232, 223, 200, 0.25);
  color: var(--text);
  text-decoration: none;
}

.btn-danger {
  background: rgba(201, 107, 90, 0.10);
  border-color: rgba(201, 107, 90, 0.30);
  color: #e8a090;
}

.btn-danger:hover {
  background: rgba(201, 107, 90, 0.18);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}

.alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-border);
  background: rgba(201, 153, 58, 0.05);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

.alert-success {
  border-color: rgba(122, 173, 110, 0.4);
  background: rgba(122, 173, 110, 0.08);
}

.alert-error {
  border-color: rgba(201, 107, 90, 0.4);
  background: rgba(201, 107, 90, 0.08);
}

.alert-warning {
  border-color: rgba(201, 153, 58, 0.4);
  background: rgba(201, 153, 58, 0.08);
}

.alert-info {
  border-color: rgba(122, 158, 201, 0.4);
  background: rgba(122, 158, 201, 0.08);
}

.form-group {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

label {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input,
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--gold-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: var(--focus);
}

input::placeholder {
  color: var(--faint);
}

.pw-wrap {
  position: relative;
}

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  border-radius: 6px;
  padding: 4px 5px;
  cursor: none;
  display: flex;
  align-items: center;
  transition: color var(--t);
}

.pw-toggle:hover {
  color: var(--text);
}

.auth-container {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 140px);
}

.auth-box {
  width: min(520px, 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-box h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  color: var(--gold-light);
}

.auth-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--faint);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-border);
}

.auth-link {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.auth-link a {
  color: var(--gold-light);
}

.auth-link a:hover {
  text-decoration: underline;
}

.site-hero {
  position: relative;
  min-height: clamp(520px, 70vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.site-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(201, 153, 58, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, rgba(13, 11, 8, 0) 30%, rgba(13, 11, 8, 0.92) 80%, var(--bg) 100%),
    linear-gradient(135deg, #1c1710 0%, #0d0b08 100%);
  border: 1px solid var(--gold-border);
  border-radius: inherit;
}

.site-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 3px at 25% 18%, rgba(201, 153, 58, 0.50) 0%, transparent 100%),
    radial-gradient(circle 2px at 75% 12%, rgba(201, 153, 58, 0.40) 0%, transparent 100%),
    radial-gradient(circle 2px at 55% 28%, rgba(201, 153, 58, 0.35) 0%, transparent 100%);
}

.site-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
}

.site-hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 14px;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: rgba(201, 153, 58, 0.08);
  width: fit-content;
}

.site-hero h1 {
  font-family: var(--font-display-hero);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.0;
  background: linear-gradient(160deg, #f5d98a 0%, var(--gold-light) 40%, var(--gold) 70%, #8a6420 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.site-hero p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 56ch;
  line-height: 1.6;
}

.site-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.site-hero-logo {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 1;
}

.site-hero-logo img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 16px rgba(201, 153, 58, 0.50));
  opacity: 0.9;
}

.ornament-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.ornament-divider span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.features {
  margin-top: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: rgba(201, 153, 58, 0.04);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--t), background var(--t), transform 160ms ease;
}

.feature-card:hover {
  border-color: var(--gold-border-hi);
  background: rgba(201, 153, 58, 0.07);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 7px;
  letter-spacing: 0.3px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.feature-card-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 2px 8px;
  margin-bottom: 8px;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: rgba(201, 153, 58, 0.08);
}

.guest-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(201, 153, 58, 0.07), rgba(201, 153, 58, 0.03));
}

.guest-banner-text {
  flex: 1;
}

.guest-banner-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.guest-banner-text span {
  color: var(--muted);
  font-size: 14px;
}

.guest-banner .btn {
  flex-shrink: 0;
}

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

.page-header h1 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  color: var(--gold-light);
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--gold-light);
}

.dashboard h1 {
  margin-top: 0;
  font-family: var(--font-display);
  color: var(--gold-light);
}

.dashboard-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.dashboard-card {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: rgba(201, 153, 58, 0.04);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--t), background var(--t);
}

.dashboard-card:hover {
  border-color: var(--gold-border-hi);
  background: rgba(201, 153, 58, 0.07);
}

.dashboard-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-light);
}

.dashboard-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}

.dashboard-card p:last-child {
  margin-bottom: 0;
}

.profile-page {
  max-width: 700px;
  margin: 0 auto;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  background: rgba(201, 153, 58, 0.04);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.profile-avatar-lg {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 36px;
  font-family: var(--font-display);
  color: #0d0b08;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--gold-border-hi);
}

.profile-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero-info h1 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold-light);
}

.profile-hero-info p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  background: rgba(201, 153, 58, 0.03);
}

.profile-card-label {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  opacity: 0.7;
}

.profile-card-value {
  font-size: 15px;
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--gold-border);
  padding: 24px 0;
  text-align: center;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-hero-logo {
    display: none;
  }

  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .guest-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================
   TEMA CLARO completo
===================================================== */
[data-theme="light"] {
  --bg:             #f8f5ef;
  --surface:        #f2ede4;
  --surface-2:      #ece6da;
  --surface-3:      #e5dece;
  --surface-offset: #ddd5c0;
  --text:           #18160f;
  --muted:          rgba(24, 22, 15, 0.58);
  --faint:          rgba(24, 22, 15, 0.28);

  --gold:           #8a5f10;
  --gold-light:     #7a520d;
  --gold-dark:      #b8881e;
  --gold-border:    rgba(138, 95, 16, 0.22);
  --gold-border-hi: rgba(138, 95, 16, 0.45);

  --shadow:         0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-soft:    0 6px 20px rgba(0, 0, 0, 0.08);
  --focus:          0 0 0 3px rgba(138, 95, 16, 0.28);
}

/* Body background claro */
[data-theme="light"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% 0%,   rgba(184,136,30,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 700px 400px at 85% 20%,  rgba(138,100,32,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 1000px 600px at 50% 100%, rgba(100,70,20,0.05) 0%, transparent 60%);
}

/* â”€â”€ Navbar claro â”€â”€ */
[data-theme="light"] .navbar {
  background: rgba(248, 245, 239, 0.92);
  border-bottom-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .nav-menu a {
  color: rgba(24, 22, 15, 0.55);
}

[data-theme="light"] .nav-menu a:hover {
  background: rgba(138, 95, 16, 0.08);
  color: var(--gold-light);
}

[data-theme="light"] .nav-menu a.active {
  background: rgba(138, 95, 16, 0.08);
  color: var(--gold-light);
}

[data-theme="light"] .nav-guest-badge {
  color: rgba(24, 22, 15, 0.55);
  border-color: rgba(138, 95, 16, 0.22);
  background: rgba(138, 95, 16, 0.05);
}

[data-theme="light"] .nav-icon-btn {
  background: rgba(138, 95, 16, 0.05);
  border-color: rgba(138, 95, 16, 0.20);
  color: rgba(24, 22, 15, 0.50);
}

[data-theme="light"] .nav-icon-btn:hover {
  background: rgba(138, 95, 16, 0.10);
  color: var(--gold-light);
}

[data-theme="light"] .user-pill {
  background: rgba(138, 95, 16, 0.06);
  border-color: rgba(138, 95, 16, 0.22);
  color: var(--text);
}

[data-theme="light"] .user-pill:hover {
  background: rgba(138, 95, 16, 0.11);
  border-color: rgba(138, 95, 16, 0.40);
}

[data-theme="light"] .nav-toggle {
  background: rgba(138, 95, 16, 0.06);
  border-color: rgba(138, 95, 16, 0.22);
  color: var(--text);
}

[data-theme="light"] .nav-toggle:hover {
  background: rgba(138, 95, 16, 0.12);
}

[data-theme="light"] .nav-mobile-menu {
  background: rgba(242, 237, 228, 0.99);
  border-top-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .nav-mobile-menu a {
  color: rgba(24, 22, 15, 0.65);
  border-bottom-color: rgba(138, 95, 16, 0.10);
}

[data-theme="light"] .nav-mobile-menu a:hover {
  color: var(--gold-light);
  background: rgba(138, 95, 16, 0.06);
}

[data-theme="light"] .mobile-theme-row .theme-btn {
  background: rgba(138, 95, 16, 0.05);
  border-color: rgba(138, 95, 16, 0.18);
  color: rgba(24, 22, 15, 0.60);
}

[data-theme="light"] .mobile-theme-row .theme-btn:hover,
[data-theme="light"] .mobile-theme-row .theme-btn.active {
  background: rgba(138, 95, 16, 0.12);
  color: var(--gold-light);
  border-color: rgba(138, 95, 16, 0.38);
}

[data-theme="light"] .drawer-overlay {
  background: rgba(24, 22, 15, 0.45);
}

[data-theme="light"] .user-drawer {
  background: rgba(242, 237, 228, 0.99);
  border-left-color: rgba(138, 95, 16, 0.20);
}

[data-theme="light"] .drawer-header-wrap {
  background: rgba(242, 237, 228, 0.99);
  border-bottom-color: rgba(138, 95, 16, 0.15);
}

[data-theme="light"] .drawer-avatar-btn:hover {
  background: rgba(138, 95, 16, 0.05);
}

[data-theme="light"] .drawer-header-link {
  background: transparent;
  border-bottom-color: rgba(138, 95, 16, 0.15);
}

[data-theme="light"] .drawer-header-link:hover {
  background: rgba(138, 95, 16, 0.05);
}

[data-theme="light"] .drawer-close {
  background: rgba(138, 95, 16, 0.05);
  border-color: rgba(138, 95, 16, 0.20);
  color: rgba(24, 22, 15, 0.50);
}

[data-theme="light"] .drawer-close:hover {
  background: rgba(138, 95, 16, 0.10);
  color: var(--text);
}

[data-theme="light"] .drawer-section {
  background: rgba(138, 95, 16, 0.03);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .drawer-section-title {
  color: var(--text);
}

[data-theme="light"] .drawer-section-title:hover {
  background: rgba(138, 95, 16, 0.05);
}

[data-theme="light"] .drawer-section-body {
  background: rgba(0, 0, 0, 0.03);
  border-top-color: rgba(138, 95, 16, 0.15);
}

[data-theme="light"] .drawer-divider {
  background: rgba(138, 95, 16, 0.15);
}

[data-theme="light"] .drawer-nav-link {
  color: rgba(24, 22, 15, 0.55);
}

[data-theme="light"] .drawer-nav-link:hover,
[data-theme="light"] .drawer-nav-link.active {
  background: rgba(138, 95, 16, 0.07);
  color: var(--gold-light);
}

[data-theme="light"] .theme-btn {
  background: rgba(138, 95, 16, 0.05);
  border-color: rgba(138, 95, 16, 0.18);
  color: rgba(24, 22, 15, 0.55);
}

[data-theme="light"] .theme-btn:hover,
[data-theme="light"] .theme-btn.active {
  background: rgba(138, 95, 16, 0.12);
  color: var(--gold-light);
  border-color: rgba(138, 95, 16, 0.40);
}

[data-theme="light"] .drawer-danger-btn {
  color: rgba(160, 70, 55, 0.85);
}

[data-theme="light"] .drawer-danger-btn:hover {
  background: rgba(160, 70, 55, 0.07);
  color: #c0553e;
}

[data-theme="light"] .feature-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .feature-card:hover {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(138, 95, 16, 0.38);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .char-card {
  background: rgba(255, 255, 255, 0.50);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .char-card:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(138, 95, 16, 0.35);
}

[data-theme="light"] .island-card {
  border-color: rgba(138, 95, 16, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .island-card:hover {
  border-color: rgba(138, 95, 16, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .dashboard-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .auth-box {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(138, 95, 16, 0.20);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .site-hero-bg {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(184,136,30,0.10) 0%, transparent 55%),
    linear-gradient(180deg, rgba(248,245,239,0) 30%, rgba(248,245,239,0.92) 80%, var(--bg) 100%),
    linear-gradient(135deg, #ece6da 0%, #f8f5ef 100%);
  border-color: rgba(138, 95, 16, 0.20);
}

[data-theme="light"] .hero-logged-bg {
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(184,136,30,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(138,100,32,0.05) 0%, transparent 60%),
    linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
}

[data-theme="light"] .hero-logged {
  border-color: rgba(138, 95, 16, 0.20);
}

[data-theme="light"] .hero-logged-text h1,
[data-theme="light"] .site-hero h1,
[data-theme="light"] .cta-box h2 {
  background: linear-gradient(160deg, #6b4a0d 0%, #8a5f10 50%, #b8881e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .cta-box {
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(184,136,30,0.07) 0%, transparent 60%),
    linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
  border-color: rgba(138, 95, 16, 0.20);
}

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(138, 95, 16, 0.22);
  color: var(--text);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.90);
}

[data-theme="light"] input::placeholder {
  color: rgba(24, 22, 15, 0.30);
}

[data-theme="light"] .alert {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(138, 95, 16, 0.22);
}

[data-theme="light"] .alert-success {
  background: rgba(100, 160, 80, 0.08);
  border-color: rgba(100, 160, 80, 0.30);
}

[data-theme="light"] .alert-error {
  background: rgba(180, 70, 55, 0.08);
  border-color: rgba(180, 70, 55, 0.30);
}

[data-theme="light"] .site-footer {
  background: rgba(0, 0, 0, 0.04);
  border-top-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .ornament-divider::before,
[data-theme="light"] .ornament-divider::after {
  background: linear-gradient(90deg, transparent, rgba(138, 95, 16, 0.28), transparent);
}

[data-theme="light"] .overline-badge {
  background: rgba(138, 95, 16, 0.07);
  border-color: rgba(138, 95, 16, 0.22);
  color: var(--gold);
}

[data-theme="light"] .profile-hero {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .profile-card {
  background: rgba(255, 255, 255, 0.50);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .btn-ghost {
  border-color: rgba(24, 22, 15, 0.20);
  color: rgba(24, 22, 15, 0.65);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(24, 22, 15, 0.05);
  border-color: rgba(24, 22, 15, 0.35);
  color: var(--text);
}

[data-theme="light"] .btn-secondary {
  background: rgba(138, 95, 16, 0.08);
  border-color: rgba(138, 95, 16, 0.25);
  color: var(--text);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(138, 95, 16, 0.14);
  border-color: rgba(138, 95, 16, 0.40);
}

[data-theme="light"] .clio-orb {
  border-color: rgba(138, 95, 16, 0.25);
  background: radial-gradient(circle, rgba(184,136,30,0.07) 0%, transparent 70%);
}

[data-theme="light"] .drawer-section.expanded {
  border-color: rgba(138, 95, 16, 0.28);
}

[data-theme="light"] .user-avatar,
[data-theme="light"] .drawer-avatar,
[data-theme="light"] .avatar-preview {
  background: linear-gradient(135deg, #b8881e, #8a5f10);
  color: #f8f5ef;
}

[data-theme="light"] .pw-toggle {
  color: rgba(24, 22, 15, 0.45);
}

[data-theme="light"] .pw-toggle:hover {
  color: var(--text);
}

[data-theme="light"] .island-card-bg::after {
  background: linear-gradient(180deg, transparent 10%, rgba(248, 245, 239, 0.62) 100%);
}

[data-theme="light"] .island-thalassos .island-bg-ocean {
  background:
    linear-gradient(180deg, #7babd4 0%, #87abcd 40%, #83b2de 70%, #7fbef9 100%),
    radial-gradient(ellipse at 50% 0%, rgba(100,160,210,0.35) 0%, transparent 60%);
}

[data-theme="light"] .island-helion .island-bg-fire {
  background:
    linear-gradient(180deg, #e54c4c 0%, #e06555 40%, #d7695a 65%, #da7668 100%),
    radial-gradient(ellipse at 50% 70%, rgba(200,100,30,0.40) 0%, transparent 55%);
}

[data-theme="light"] .island-zephyria .island-bg-wind {
  background:
    linear-gradient(180deg, #9cd3d7 0%, #a0cfd3 40%, #9fc4c8 70%, #b8d2df 100%),
    radial-gradient(ellipse at 30% 40%, rgba(100,160,200,0.30) 0%, transparent 50%);
}

[data-theme="light"] .island-tartaro .island-bg-abyss {
  background:
    linear-gradient(180deg, #a18fbc 0%, #b3a2cd 40%, #bdadd5 65%, #cebee5 100%),
    radial-gradient(ellipse at 50% 80%, rgba(120,80,160,0.25) 0%, transparent 50%);
}

[data-theme="light"] .island-olimpo .island-bg-olympus {
  background:
    linear-gradient(180deg, #cdaf5c 0%, #bb9d4c 30%, #c6a448 60%, #cdaf5c 100%),
    radial-gradient(ellipse at 50% 0%, rgba(201,153,58,0.35) 0%, transparent 55%);
}

[data-theme="light"] .island-card h3 {
  color: #18160f;
  text-shadow: 0 1px 4px rgba(248, 245, 239, 0.6);
}

[data-theme="light"] .island-card p {
  color: rgba(24, 22, 15, 0.65);
  text-shadow: 0 1px 3px rgba(248, 245, 239, 0.5);
}

[data-theme="light"] .island-act-badge {
  color: #130a1f;
  text-shadow: none;
}

[data-theme="light"] .level-badge {
  background: rgba(138, 95, 16, 0.12);
  border-color: rgba(138, 95, 16, 0.28);
  color: #3c3c0e;
}

[data-theme="light"] .boss-badge {
  background: rgba(160, 70, 55, 0.10);
  border-color: rgba(160, 70, 55, 0.28);
  color: rgba(101, 35, 23, 0.95);
}

[data-theme="light"] .island-cta {
  color: #f2f2f2;
}

[data-theme="light"] .island-cta-soon {
  background: rgba(24, 22, 15, 0.06);
  border-color: rgba(24, 22, 15, 0.14);
  color: rgba(24, 22, 15, 0.40);
}

/* CTA locked no tema claro */
[data-theme="light"] .island-cta-locked {
  background: rgba(138, 95, 16, 0.10);
  border-color: rgba(138, 95, 16, 0.28);
  color: var(--gold);
}

/* Sigils das ilhas no tema claro */
[data-theme="light"] .island-sigil {
  color: #302c09;
}

[data-theme="light"] .sx-h2-final{
  background:linear-gradient(135deg,#b9781e,#8a5f10);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

/* =====================================================
   ÃCONE TEMA NA NAVBAR
===================================================== */
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--gold-border);
  background: rgba(201, 153, 58, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
  flex-shrink: 0;
}

.nav-icon-btn:hover {
  background: rgba(201, 153, 58, 0.12);
  color: var(--gold-light);
  border-color: var(--gold-border-hi);
}

.nav-icon-btn:focus {
  outline: none;
  box-shadow: var(--focus);
}

/* =====================================================
   DRAWER NAV LINKS
===================================================== */
.drawer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-family: var(--font-body);
  transition: background var(--t), color var(--t);
  text-decoration: none;
}

.drawer-nav-link:hover {
  background: rgba(201, 153, 58, 0.08);
  color: var(--gold-light);
}

.drawer-nav-link.active {
  background: rgba(201, 153, 58, 0.10);
  color: var(--gold-light);
}

/* =====================================================
   THEME TOGGLE ROW
===================================================== */
.theme-toggle-row {
  display: flex;
  gap: 8px;
}

.theme-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--gold-border);
  background: rgba(201, 153, 58, 0.05);
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.theme-btn:hover,
.theme-btn.active {
  background: rgba(201, 153, 58, 0.15);
  color: var(--gold-light);
  border-color: var(--gold-border-hi);
}

.mobile-theme-row {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
}

/* =====================================================
   OVERLINE BADGE
===================================================== */
.overline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 14px;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: rgba(201, 153, 58, 0.08);
  width: fit-content;
}

/* =====================================================
   HERO LOGADO
===================================================== */
.hero-logged {
  position: relative;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
}

.hero-logged-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(201,153,58,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(138,100,32,0.07) 0%, transparent 60%),
    linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
}

.hero-logged-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(32px, 5vw, 60px) 0;
}

.hero-logged-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 580px;
}

.hero-logged-text h1 {
  font-family: var(--font-display-hero);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  background: linear-gradient(160deg, #f5d98a 0%, var(--gold-light) 40%, var(--gold) 70%, #8a6420 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.hero-logged-text p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Clio orb */
.hero-logged-clio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.clio-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(201,153,58,0.08) 0%, transparent 70%);
  animation: orb-pulse 3s ease-in-out infinite;
}

.clio-orb-inner {
  width: 80px;
  height: 80px;
}

.clio-svg {
  width: 100%;
  height: 100%;
  animation: clio-spin 20s linear infinite;
}

.clio-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin: 0;
}

@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201,153,58,0.15); }
  50%       { box-shadow: 0 0 40px rgba(201,153,58,0.30); }
}

@keyframes clio-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =====================================================
   MAPA DE ILHAS
===================================================== */
.island-map-section {
  margin-bottom: 48px;
}

.island-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
}

.island-wide {
  grid-column: span 4;
}

.island-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color var(--t), transform 200ms ease, box-shadow var(--t);
  cursor: default;
}

.island-card:hover {
  border-color: var(--gold-border-hi);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.island-wide {
  min-height: 160px;
}

/* Backgrounds das ilhas */
.island-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.island-bg-ocean {
  height: 100%;
  background:
    linear-gradient(180deg, #0a1a2e 0%, #0d2d4a 40%, #0f3860 70%, #0a1a2e 100%),
    radial-gradient(ellipse at 50% 0%, rgba(30,100,180,0.4) 0%, transparent 60%);
}

.island-bg-fire {
  height: 100%;
  background:
    linear-gradient(180deg, #1a0a00 0%, #3d1200 40%, #6b2200 65%, #2a0a00 100%),
    radial-gradient(ellipse at 50% 70%, rgba(220,80,10,0.6) 0%, transparent 55%);
}

.island-bg-wind {
  height: 100%;
  background:
    linear-gradient(180deg, #0d1520 0%, #1a2840 40%, #243550 70%, #0d1520 100%),
    radial-gradient(ellipse at 30% 40%, rgba(80,140,200,0.3) 0%, transparent 50%);
}

.island-bg-abyss {
  height: 100%;
  background:
    linear-gradient(180deg, #050508 0%, #0a0812 40%, #130a1f 65%, #050508 100%),
    radial-gradient(ellipse at 50% 80%, rgba(80,20,120,0.4) 0%, transparent 50%);
}

.island-bg-olympus {
  height: 100%;
  background:
    linear-gradient(135deg, #1a1200 0%, #2d2000 30%, #3d2e00 60%, #1a1200 100%),
    radial-gradient(ellipse at 50% 0%, rgba(201,153,58,0.35) 0%, transparent 55%);
}

/* Overlay gradiente sobre background */
.island-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.75) 100%);
}

.island-card-content {
  position: relative;
  z-index: 1;
  padding: 16px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.island-act-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.island-sigil {
  width: 36px;
  height: 36px;
  color: var(--gold-light);
  margin: 4px 0;
}

.island-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.island-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.island-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.level-badge,
.boss-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
}

.level-badge {
  background: rgba(201,153,58,0.10);
  color: var(--gold);
}

.boss-badge {
  background: rgba(201,107,90,0.08);
  color: rgba(232, 160, 144, 0.9);
  border-color: rgba(201,107,90,0.25);
}

.island-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 18px 16px;
  padding: 9px 0;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  color: #0d0b08;
  border: none;
  cursor: pointer;
  transition: opacity var(--t), transform 120ms ease;
}

.island-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.island-cta-locked {
  background: rgba(201,153,58,0.10);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
}

.island-cta-soon {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: default;
}

/* Wide island layout */
.island-wide .island-card-content {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.island-wide .island-sigil {
  flex-shrink: 0;
}

.island-wide .island-card-text {
  flex: 1;
}

.island-wide .island-cta {
  margin: 8px 18px 16px;
  width: calc(100% - 36px);
}

/* =====================================================
   HERO PARTICLES
===================================================== */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(201, 153, 58, 0.55);
  animation: particle-float linear infinite;
}

.p1 { width: 3px; height: 3px; left: 20%;  animation-duration: 8s;  animation-delay: 0s;   bottom: -10px; }
.p2 { width: 2px; height: 2px; left: 45%;  animation-duration: 11s; animation-delay: -3s;  bottom: -10px; }
.p3 { width: 4px; height: 4px; left: 70%;  animation-duration: 9s;  animation-delay: -6s;  bottom: -10px; }
.p4 { width: 2px; height: 2px; left: 85%;  animation-duration: 13s; animation-delay: -2s;  bottom: -10px; }
.p5 { width: 3px; height: 3px; left: 30%;  animation-duration: 10s; animation-delay: -8s;  bottom: -10px; }

@keyframes particle-float {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-700px) translateX(40px); opacity: 0; }
}

/* =====================================================
   FEATURE CARDS (redesign)
===================================================== */
.features-section {
  margin-bottom: 48px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  background: rgba(201, 153, 58, 0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t), background var(--t), transform 180ms ease, box-shadow var(--t);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,153,58,0.4), transparent);
  opacity: 0;
  transition: opacity var(--t);
}

.feature-card:hover {
  border-color: var(--gold-border-hi);
  background: rgba(201, 153, 58, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  text-decoration: none;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  opacity: 0.75;
}

.feature-card-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
}

.feature-card-arrow {
  align-self: flex-end;
  color: var(--gold);
  opacity: 0;
  font-size: 16px;
  transition: opacity var(--t), transform var(--t);
}

.feature-card:hover .feature-card-arrow {
  opacity: 0.7;
  transform: translateX(4px);
}

.feature-card-locked {
  opacity: 0.55;
  pointer-events: none;
}

.coming-soon-badge {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: var(--muted);
}

/* =====================================================
   PERSONAGENS
===================================================== */
.chars-section {
  margin-bottom: 48px;
}

.chars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.char-card {
  padding: 24px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  background: rgba(201,153,58,0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t), background var(--t);
}

.char-card:hover {
  border-color: var(--gold-border-hi);
  background: rgba(201,153,58,0.06);
}

.char-icon {
  width: 60px;
  height: 60px;
}

.char-icon svg {
  width: 100%;
  height: 100%;
}

.char-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0;
}

.char-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}

.char-role {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
}

/* =====================================================
   CTA SECTION
===================================================== */
.cta-section {
  margin-bottom: 56px;
}

.cta-box {
  position: relative;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 60px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(201,153,58,0.08) 0%, transparent 60%),
    linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
  text-align: center;
  overflow: hidden;
}

.cta-box-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-box-deco svg {
  width: 100%;
  height: auto;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  background: linear-gradient(160deg, #f5d98a 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px;
  position: relative;
}

.cta-box p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  margin: 0 0 28px;
  position: relative;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  border-top: 1px solid var(--gold-border);
  padding: 28px 0;
  background: rgba(0,0,0,0.2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-brand img {
  height: 48px;
  width: auto;
  opacity: 0.7;
}

.footer-copy {
  color: var(--faint);
  font-size: 13px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-body);
  transition: color var(--t);
}

.footer-links a:hover {
  color: var(--gold-light);
}

/* =====================================================
   RESPONSIVE UPDATES
===================================================== */
@media (max-width: 1024px) {
  .island-map {
    grid-template-columns: repeat(2, 1fr);
  }

  .island-wide {
    grid-column: span 2;
  }

  .chars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-logged-clio {
    display: none;
  }

  .island-map {
    grid-template-columns: 1fr 1fr;
  }

  .island-wide {
    grid-column: span 2;
  }

  .chars-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .island-map {
    grid-template-columns: 1fr;
  }

  .island-wide {
    grid-column: span 1;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* =====================================================
   AUTH SPLIT LAYOUT
===================================================== */
.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  flex: 1;
}

/* â”€â”€ Painel decorativo â”€â”€ */
.auth-deco {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.auth-deco-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 30% 20%, rgba(201,153,58,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 80% 100% at 80% 80%, rgba(138,100,32,0.14) 0%, transparent 50%),
    linear-gradient(160deg, #1c1710 0%, #100d08 50%, #0d0b08 100%);
}

.auth-deco-bg-register {
  background:
    radial-gradient(ellipse 120% 80% at 70% 20%, rgba(201,153,58,0.16) 0%, transparent 55%),
    radial-gradient(ellipse 80% 100% at 20% 80%, rgba(138,100,32,0.12) 0%, transparent 50%),
    linear-gradient(160deg, #0d0b08 0%, #140f08 50%, #1c1710 100%);
}

.auth-deco-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: clamp(32px, 5vw, 56px);
  height: 100%;
}

.auth-deco-logo img {
  filter: drop-shadow(0 0 12px rgba(201,153,58,0.45));
  transition: filter 200ms ease;
}

.auth-deco-logo:hover img {
  filter: drop-shadow(0 0 20px rgba(201,153,58,0.65));
}

.auth-deco-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  max-width: 400px;
}

.auth-deco-overline {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.auth-deco-text h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(160deg, #f5d98a 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.auth-deco-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Stats (register) */
.auth-deco-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: rgba(201,153,58,0.06);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  width: fit-content;
}

.auth-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.auth-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.auth-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.auth-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--gold-border);
}

/* Orbs animadas */
.auth-deco-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,153,58,0.18) 0%, transparent 70%);
}

.ao1 {
  width: 300px; height: 300px;
  top: -80px; left: -80px;
  animation: orb-drift 12s ease-in-out infinite;
}

.ao2 {
  width: 200px; height: 200px;
  bottom: 100px; right: -50px;
  animation: orb-drift 16s ease-in-out infinite reverse;
}

.ao3 {
  width: 150px; height: 150px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-drift 20s ease-in-out infinite 4s;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(20px, -15px); }
  66%       { transform: translate(-15px, 20px); }
}

/* Runas decorativas */
.auth-deco-runes {
  display: flex;
  gap: 16px;
  opacity: 0.18;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 4px;
}

/* â”€â”€ Painel do formulÃ¡rio â”€â”€ */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow-y: auto;
}

.auth-form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--gold-border);
  flex-shrink: 0;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--t);
}

.auth-back-link:hover {
  color: var(--gold-light);
}

.auth-form-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 52px) clamp(24px, 6vw, 60px);
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.auth-form-header {
  margin-bottom: 28px;
}

.auth-form-header h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 7px;
}

.auth-form-header p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.auth-form-header a {
  color: var(--gold-light);
  font-weight: 500;
  transition: color var(--t);
}

.auth-form-header a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Grid 2 colunas para register */
.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Checkbox customizado */
.auth-remember-row,
.auth-terms {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0;
}

.auth-forgot-link {
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  font-family: var(--font-body);
  opacity: 0.75;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.auth-forgot-link:hover {
  color: var(--gold-light);
  opacity: 1;
  text-decoration: none;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
}

.auth-checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--gold-border);
  background: transparent;
  display: grid;
  place-items: center;
  transition: background var(--t), border-color var(--t);
  position: relative;
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom {
  background: var(--gold);
  border-color: var(--gold);
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #0d0b08;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

.auth-checkbox-label a {
  color: var(--gold-light);
}

.auth-checkbox-label a:hover {
  text-decoration: underline;
}

/* BotÃ£o submit */
.auth-submit-btn {
  margin-top: 8px;
  padding: 13px 20px;
  font-size: 15px;
}

/* Strength meter */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 6px;
  min-height: 20px;
}

.pw-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--gold-border);
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 300ms ease, background 300ms ease;
}

.pw-strength-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  min-width: 80px;
  text-align: right;
}

/* â”€â”€ Tema claro: painel decorativo â”€â”€ */
[data-theme="light"] .auth-deco-bg {
  background:
    radial-gradient(ellipse 120% 80% at 30% 20%, rgba(184,136,30,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 80% 100% at 80% 80%, rgba(138,100,32,0.10) 0%, transparent 50%),
    linear-gradient(160deg, #e5dece 0%, #ddd5c0 50%, #d4c8aa 100%);
}

[data-theme="light"] .auth-deco-bg-register {
  background:
    radial-gradient(ellipse 120% 80% at 70% 20%, rgba(184,136,30,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 80% 100% at 20% 80%, rgba(138,100,32,0.10) 0%, transparent 50%),
    linear-gradient(160deg, #ddd5c0 0%, #e5dece 50%, #d4c8aa 100%);
}

[data-theme="light"] .auth-deco-text h2 {
  background: linear-gradient(160deg, #5a3e0a 0%, #7a520d 50%, #9a6e1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .auth-deco-stats {
  background: rgba(138, 95, 16, 0.07);
  border-color: rgba(138, 95, 16, 0.22);
}

[data-theme="light"] .auth-orb {
  background: radial-gradient(circle, rgba(138,95,16,0.12) 0%, transparent 70%);
}

[data-theme="light"] .auth-deco-runes {
  color: var(--gold);
  opacity: 0.22;
}

[data-theme="light"] .auth-form-panel {
  background: var(--bg);
}

[data-theme="light"] .auth-form-top {
  border-bottom-color: rgba(138, 95, 16, 0.15);
}

[data-theme="light"] .auth-form-header h1 {
  color: var(--text);
}

[data-theme="light"] .auth-checkbox-custom {
  border-color: rgba(138, 95, 16, 0.30);
  background: rgba(255,255,255,0.60);
}

[data-theme="light"] .auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom {
  background: var(--gold);
  border-color: var(--gold);
}

[data-theme="light"] .auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom::after {
  border-color: #f8f5ef;
}

[data-theme="light"] .pw-strength-bar {
  background: rgba(138, 95, 16, 0.15);
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 768px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-deco {
    min-height: 220px;
    max-height: 260px;
  }

  .auth-deco-text h2 {
    font-size: 20px;
  }

  .auth-deco-runes,
  .auth-deco-stats {
    display: none;
  }

  .auth-form-inner {
    padding: 28px 20px;
  }

  .form-row-two {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   PROFILE PAGE
===================================================== */
.profile-main {
  min-height: calc(100dvh - 64px);
  padding: clamp(24px, 4vw, 48px) var(--space-4);
}

.profile-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-flash {
  margin: 0;
}

/* â”€â”€ Hero card â”€â”€ */
.profile-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  padding: 0;
}

.profile-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 0% 50%, rgba(201,153,58,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 60% 100% at 100% 50%, rgba(138,100,32,0.08) 0%, transparent 55%),
    var(--surface);
  pointer-events: none;
}

.ph-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,153,58,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.ph-orb1 { width: 280px; height: 280px; top: -100px; left: -60px; animation: orb-drift 14s ease-in-out infinite; }
.ph-orb2 { width: 200px; height: 200px; bottom: -80px; right: -40px; animation: orb-drift 18s ease-in-out infinite reverse; }

.profile-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 40px);
}

/* Avatar */
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 20px rgba(201,153,58,0.30);
}

.profile-avatar-img,
.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
}

.profile-avatar-placeholder {
  background: linear-gradient(135deg, #2a1f0a, #3d2d0e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-light);
}

.profile-avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #0d0b08;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--surface);
  transition: background var(--t), transform var(--t);
}
.profile-avatar-edit-btn:hover {
  background: var(--gold-light);
  transform: scale(1.1);
}

/* Info */
.profile-hero-info {
  min-width: 0;
}

.profile-hero-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.profile-hero-name-row h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.1;
}

.profile-role-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.role-user {
  background: rgba(201,153,58,0.14);
  border: 1px solid rgba(201,153,58,0.30);
  color: var(--gold-light);
}

.role-admin {
  background: rgba(160,70,55,0.14);
  border: 1px solid rgba(160,70,55,0.35);
  color: #d4856e;
}

.profile-hero-email {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Quick stats */
.profile-quick-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(201,153,58,0.05);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  flex-shrink: 0;
}

.pqs-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pqs-icon {
  font-size: 18px;
  line-height: 1;
}

.pqs-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 3px;
}

.pqs-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.pqs-divider {
  width: 1px;
  height: 32px;
  background: var(--gold-border);
}

/* â”€â”€ Tabs â”€â”€ */
.profile-tabs-wrap {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--gold-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }

.profile-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t), border-color var(--t), background var(--t);
}

.profile-tab:hover {
  color: var(--text);
  background: rgba(201,153,58,0.04);
}

.profile-tab.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
  background: rgba(201,153,58,0.05);
}

.profile-tab-danger {
  margin-left: auto;
}

.profile-tab-danger:hover,
.profile-tab-danger.active {
  color: #d4856e;
  border-bottom-color: #c96b5a;
  background: rgba(160,70,55,0.05);
}

.profile-tab-panel {
  display: none;
}
.profile-tab-panel.active {
  display: block;
}

.profile-panel-inner {
  padding: clamp(20px, 4vw, 36px) clamp(20px, 4vw, 40px);
  max-width: 560px;
}

.profile-panel-inner h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.profile-panel-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

/* Danger zone */
.danger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(160,70,55,0.25);
  border-radius: var(--radius);
  background: rgba(160,70,55,0.04);
}

.danger-card-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.danger-card-text p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.btn-danger-outline {
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(160,70,55,0.40);
  background: transparent;
  color: #d4856e;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t), border-color var(--t), color var(--t);
}

.btn-danger-outline:hover {
  background: rgba(160,70,55,0.10);
  border-color: rgba(160,70,55,0.60);
  color: #e09080;
}

/* â”€â”€ Tema claro: profile â”€â”€ */
[data-theme="light"] .profile-hero-bg {
  background:
    radial-gradient(ellipse 80% 120% at 0% 50%, rgba(138,95,16,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 100% at 100% 50%, rgba(138,100,32,0.05) 0%, transparent 55%),
    rgba(255,255,255,0.55);
}

[data-theme="light"] .profile-avatar-placeholder {
  background: linear-gradient(135deg, #ddd5c0, #c9b890);
  color: #6b4a0d;
}

[data-theme="light"] .profile-quick-stats {
  background: rgba(138,95,16,0.05);
  border-color: rgba(138,95,16,0.18);
}

[data-theme="light"] .profile-tabs-wrap {
  background: rgba(255,255,255,0.60);
  border-color: rgba(138,95,16,0.18);
}

[data-theme="light"] .profile-tabs {
  border-bottom-color: rgba(138,95,16,0.15);
}

[data-theme="light"] .profile-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(138,95,16,0.05);
}

[data-theme="light"] .danger-card {
  border-color: rgba(160,70,55,0.20);
  background: rgba(160,70,55,0.03);
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 768px) {
  .profile-hero-inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .profile-quick-stats {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .pqs-divider { height: 24px; }
}

@media (max-width: 480px) {
  .profile-quick-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .pqs-divider { display: none; }

  .danger-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* â”€â”€ Avatar no pill e drawer â”€â”€ */
.user-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #1a1200;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.user-pill-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
}

.drawer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #1a1200;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.drawer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
}
.drawer-avatar-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-pill svg:last-child {
  transition: transform 200ms ease;
}

/* â”€â”€ VariÃ¡veis de accent dourado â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  --gold:        #c9953a;
  --gold-dim:    rgba(201,149,58,0.22);
  --gold-border: rgba(201,149,58,0.35);
  --gold-glow:   rgba(201,149,58,0.15);
  --gold-text:   #e8b86d;   /* gold mais claro p/ texto no dark */
}

/* â”€â”€ Light mode â€” fundo pergaminho â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-theme="light"] {
  --bg:     #f5f0e8;
  --text:   #1c1410;
  --muted:  rgba(28,20,16,0.62);
  --border: rgba(139,100,50,0.28);
  --panel:  rgba(139,100,50,0.06);
  --panel-2: rgba(139,100,50,0.1);
  --shadow: 0 8px 28px rgba(100,70,20,0.18);
  --shadow-soft: 0 4px 16px rgba(100,70,20,0.12);
}

[data-theme="light"] body {
  background:
    radial-gradient(800px 400px at 20% 10%, rgba(201,149,58,0.08), transparent 60%),
    radial-gradient(600px 400px at 80% 80%, rgba(180,120,50,0.06), transparent 60%),
    #f5f0e8;
}

[data-theme="light"] .navbar {
  background: rgba(245,240,232,0.88);
  border-bottom-color: rgba(139,100,50,0.2);
}

[data-theme="light"] .user-drawer {
  background: rgba(245,240,232,0.98);
}

[data-theme="light"] .drawer-header-link {
  background: rgba(245,240,232,0.98);
}

[data-theme="light"] .nav-menu a {
  color: rgba(28,20,16,0.65);
}

[data-theme="light"] .nav-menu a:hover,
[data-theme="light"] .nav-menu a.active {
  background: rgba(139,100,50,0.1);
  color: #1c1410;
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(160deg, #c9953a, #a0722a);
  border-color: rgba(180,120,40,0.5);
  box-shadow: 0 6px 20px rgba(180,120,40,0.3);
  color: #fff;
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(160deg, #d9a84a, #c9953a);
}

[data-theme="light"] .user-pill:hover {
  border-color: rgba(201,149,58,0.5);
}

[data-theme="light"] .story-section,
[data-theme="light"] .story-act-card {
  background: rgba(255,255,255,0.6);
  border-color: rgba(139,100,50,0.2);
}

[data-theme="light"] .story-section:hover,
[data-theme="light"] .story-act-card:hover {
  border-color: rgba(201,149,58,0.45);
  box-shadow: 0 8px 24px rgba(100,70,20,0.15);
}

[data-theme="light"] .story-section-header,
[data-theme="light"] .story-act-header {
  background: rgba(201,149,58,0.06);
  border-bottom-color: rgba(139,100,50,0.18);
}

[data-theme="light"] .story-callout {
  background: rgba(56,150,200,0.07);
  border-color: rgba(56,150,200,0.22);
}

[data-theme="light"] .story-boss {
  background: rgba(200,60,60,0.06);
  border-color: rgba(200,60,60,0.22);
}

[data-theme="light"] .story-ending {
  background: rgba(34,160,80,0.07);
  border-color: rgba(34,160,80,0.22);
}

[data-theme="light"] .story-act-lore {
  border-left-color: rgba(201,149,58,0.45);
  background: rgba(201,149,58,0.05);
}

[data-theme="light"] .story-timeline::before {
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(201,149,58,0.4) 8%,
    rgba(201,149,58,0.4) 92%,
    transparent 100%);
}

[data-theme="light"] .story-act::before {
  background: rgba(201,149,58,0.35);
  border-color: rgba(139,100,50,0.3);
}

[data-theme="light"] .story-act:hover::before,
[data-theme="light"] .story-act.visible::before {
  background: #c9953a;
  border-color: rgba(201,149,58,0.7);
}

[data-theme="light"] .story-acts-title {
  color: rgba(28,20,16,0.45);
}

[data-theme="light"] .story-acts-title::before,
[data-theme="light"] .story-acts-title::after {
  background: rgba(139,100,50,0.25);
}

/* â”€â”€ SubstituiÃ§Ã£o global do roxo â†’ dourado â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* badges e labels de acento */
.story-badge,
.story-act-label,
.story-act-roman {
  color: var(--gold-text);
}

.story-badge {
  background: var(--gold-dim);
  border-color: var(--gold-border);
}

[data-theme="light"] .story-badge {
  color: #8a5e1a;
  background: rgba(201,149,58,0.12);
  border-color: rgba(201,149,58,0.35);
}

/* boss star & label */
.story-boss-star { color: #e8b86d; }
.story-boss-label { color: #e8a060; }

[data-theme="light"] .story-boss-star { color: #c07020; }
[data-theme="light"] .story-boss-label { color: #b05a18; }

/* ending label */
.story-ending-label { color: #7ecf8e; }
[data-theme="light"] .story-ending-label { color: #1a7a3a; }

/* bullet list */
.story-list li::before { color: var(--gold-text); }
[data-theme="light"] .story-list li::before { color: #c9953a; }

/* act final dot */
.story-act-final::before {
  background: linear-gradient(135deg, #c9953a, #e8b86d) !important;
  border-color: rgba(201,149,58,0.7) !important;
  box-shadow: 0 0 12px rgba(201,149,58,0.45);
}

/* act final card */
.story-act-final .story-act-card {
  border-color: var(--gold-border);
  background: var(--gold-glow);
}

/* hero gradient */
.story-hero {
  background: linear-gradient(145deg,
    rgba(201,149,58,0.1) 0%,
    rgba(153,122,86,0.07) 60%,
    rgba(26,20,18,0) 100%);
}

.story-hero::before {
  background: radial-gradient(ellipse 60% 50% at 50% 0%,
    rgba(201,149,58,0.16), transparent 70%);
}

.story-hero h1 {
  background: linear-gradient(135deg, var(--text), var(--gold-text) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .story-hero h1 {
  background: linear-gradient(135deg, #1c1410, #8a5e1a 70%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* â”€â”€ Tamanhos de fonte maiores â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.story-page {
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.story-lead {
  font-size: 17px;
  line-height: 1.75;
}

.story-content p,
.story-act-body p {
  font-size: 15.5px;
  line-height: 1.75;
}

.story-callout {
  font-size: 15px;
  line-height: 1.65;
}

.story-list li {
  font-size: 15px;
  line-height: 1.65;
}

.story-section-header h2,
.story-act-title-wrap h3 {
  font-size: 19px;
}

.story-boss {
  font-size: 15px;
  line-height: 1.65;
}

.story-ending p {
  font-size: 15px;
  line-height: 1.7;
}

.story-act-lore {
  font-size: 14px !important;
  line-height: 1.65;
}

.story-act-roman {
  font-size: 24px;
}

/* â”€â”€ Timeline (reutiliza resto do CSS anterior) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.story-page { padding-bottom: 60px; }

.story-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 40px;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(201,149,58,0.35) 8%,
    rgba(201,149,58,0.35) 92%,
    transparent 100%);
}

.story-act {
  position: relative;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.story-act.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-act::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(201,149,58,0.35);
  border: 2px solid var(--border);
  transition: background 300ms ease, border-color 300ms ease;
}

.story-act:hover::before,
.story-act.visible::before {
  background: var(--gold);
  border-color: var(--gold-border);
}

.story-act-final::before {
  width: 14px !important;
  height: 14px !important;
  left: -36px !important;
  top: 20px !important;
}

.story-act-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.story-act-card:hover {
  border-color: var(--gold-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.story-act-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}

.story-act-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.story-act-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.story-act-divider-v {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

.story-act-title-wrap { flex: 1; min-width: 0; }

.story-act-title-wrap h3 {
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-act-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

[data-theme="light"] .story-act-level-badge {
  background: rgba(0,0,0,0.04);
}

.story-act-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-act-lore {
  font-style: italic;
  opacity: 0.65;
  padding: 10px 16px;
  border-left: 2px solid var(--gold-border);
  background: var(--gold-glow);
  border-radius: 0 8px 8px 0;
}

.story-boss {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.22);
  color: var(--muted);
}

.story-boss strong { color: var(--text); }

.story-boss-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.story-ending {
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.22);
}

.story-ending-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-ending-label::before { content: '◈'; font-size: 10px; }

/* Hero */
.story-hero {
  position: relative;
  padding: 56px 44px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  margin-bottom: 48px;
  overflow: hidden;
  text-align: center;
}

.story-hero-runes {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  font-size: 18px;
  opacity: 0.3;
  letter-spacing: 6px;
}

.story-overline {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-text);
}

[data-theme="light"] .story-overline { color: #8a5e1a; }

.story-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 0 0 18px;
}

/* SecÃ§Ãµes estÃ¡ticas */
.story-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.story-section:hover {
  border-color: var(--gold-border);
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}

.story-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.story-section-header h2 { margin: 0; }

.story-content {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-content p { margin: 0; color: var(--muted); }
.story-content strong { color: var(--text); }

.story-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(56,189,248,0.07);
  border: 1px solid rgba(56,189,248,0.18);
  color: var(--muted);
}

.story-callout svg { flex-shrink: 0; color: #38bdf8; margin-top: 2px; }

.story-list {
  margin: 0; padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-list li {
  color: var(--muted);
  padding-left: 22px;
  position: relative;
}

.story-list li::before {
  content: '◈';
  position: absolute;
  left: 0;
  color: var(--gold, #c9953a);
  font-size: .85rem;
  top: .15rem;
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Symbola', sans-serif;
}

/* TÃ­tulo dos atos */
.story-acts { margin-top: 40px; }

.story-acts-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--muted);
  opacity: 0.55;
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.story-acts-title::before,
.story-acts-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .story-act {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .story-hero { padding: 36px 20px; text-align: left; }
  .story-hero-runes { justify-content: flex-start; }
  .story-timeline { padding-left: 28px; }
  .story-timeline::before { left: 8px; }
  .story-act::before { left: -24px; width: 8px; height: 8px; top: 20px; }
  .story-act-final::before { left: -26px !important; width: 10px !important; height: 10px !important; }
  .story-act-header { padding: 14px 16px 12px; gap: 10px; }
  .story-act-body { padding: 16px 18px; }
  .story-act-title-wrap h3 { white-space: normal; font-size: 16px; }
  .story-content, .story-act-body { padding-left: 18px; padding-right: 18px; }
}

/* Grid da equipa */
.about-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

/* Card de membro */
.about-member-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.about-member-card:hover {
  border-color: rgba(201,149,58,0.35);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

/* Avatar com iniciais */
.about-member-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,149,58,0.7), rgba(153,122,86,0.5));
  border: 2px solid rgba(201,149,58,0.3);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  color: #f0d9a8;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.about-member-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-member-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.about-member-role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #c9953a;
  opacity: 0.9;
}

.about-member-tasks {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 2px;
}

/* Grid de ferramentas */
.about-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.about-tool-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  transition: border-color 200ms ease;
}

.about-tool-item:hover {
  border-color: rgba(201,149,58,0.28);
}

.about-tool-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.about-tool-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Light mode overrides */
[data-theme="light"] .about-member-card {
  background: rgba(0,0,0,0.02);
}
[data-theme="light"] .about-tool-item {
  background: rgba(0,0,0,0.02);
}

/* Mobile */
@media (max-width: 600px) {
  .about-team-grid,
  .about-tools-grid {
    grid-template-columns: 1fr;
}
}  

/* ============================================================
   CURSOR CIRCULAR COM INVERSÃƒO DE CORES
   ============================================================ */
* { cursor: none !important; }

#custom-cursor {
  position: fixed;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 150ms ease;
  will-change: left, top;
  top: 0;
  left: 0;
}

#custom-cursor.clicking {
  transform: translate(-50%, -50%) scale(0.67);
}

#custom-cursor.hovering {
  transform: translate(-50%, -50%) scale(1.33);
}

/* Desativa em mobile (sem rato) */
@media (hover: none) {
  * { cursor: auto !important; }
  #custom-cursor { display: none; }
}
/* ═══════════════════════════════════════════════════════════
   JOGAR.PHP: game saves page
═══════════════════════════════════════════════════════════ */

.game-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 72px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 48px;
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    background: linear-gradient(135deg, #f5d98a 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin: 0 0 6px;
}
.page-subtitle {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(201,153,58,0.10);
    border: 1px solid var(--gold-border);
    display: grid;
    place-items: center;
    color: var(--gold);
    flex-shrink: 0;
}

.saves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 20px;
}

.save-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--gold-border);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    overflow: hidden;
}
.save-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(201,153,58,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.save-card-active {
    border-color: rgba(201,153,58,0.55);
    box-shadow: 0 0 0 1px rgba(201,153,58,0.22), var(--shadow-soft);
}
.save-card-active:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(201,153,58,0.40), var(--shadow);
}

.save-card-empty {
    align-items: center;
    justify-content: center;
    text-align: center;
    border-style: dashed;
    background: transparent;
    min-height: 220px;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.save-card-empty:hover {
    border-color: var(--gold);
    background: rgba(201,153,58,0.04);
    transform: translateY(-2px);
}

.save-slot-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.save-slot-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(201,153,58,0.10);
    border: 1px solid var(--gold-border);
    font-size: 11px;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-display);
}

.save-chapter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-light, #e8c46a);
    background: rgba(201,153,58,0.10);
    border: 1px solid var(--gold-border);
    padding: 5px 10px;
    border-radius: 999px;
    width: fit-content;
}
.save-chapter-tag span { font-size: 14px; }

.save-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.save-stat {
    background: var(--surface-2);
    border: 1px solid var(--gold-border);
    border-radius: 10px;
    padding: 10px 12px;
}
.save-stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.save-stat-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.save-stat-value small {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    margin-left: 2px;
}

.save-bar-wrap { display: flex; flex-direction: column; gap: 6px; }
.save-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
}
.save-bar {
    height: 6px;
    background: var(--surface-3);
    border-radius: 999px;
    overflow: hidden;
}
.save-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.save-bar-fill-hp { background: linear-gradient(90deg, #7aad6e, #a8d49c); }
.save-bar-fill-xp { background: linear-gradient(90deg, var(--gold-dark, #8a6420), var(--gold-light, #e8c46a)); }

.save-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}
.save-meta svg { flex-shrink: 0; opacity: 0.7; }

.save-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.save-empty-icon {
    color: var(--faint);
    margin-bottom: 4px;
}
.save-empty-label {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 16px;
}

.saves-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(201,153,58,0.06);
    border: 1px solid var(--gold-border);
    border-radius: 10px;
    font-size: 13px;
    color: var(--muted);
}
.saves-notice svg { flex-shrink: 0; color: var(--gold); }

/* Botão de download destacado */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.3px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 60%, #e8c05a 100%);
    color: #0d0b08;
    box-shadow: 0 2px 12px rgba(201,153,58,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201,153,58,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
    filter: brightness(1.08);
}
.btn-download:active { transform: translateY(0); }
.btn-download-icon { transition: transform 200ms ease; }
.btn-download:hover .btn-download-icon { transform: translateY(2px); }

/* Aviso mobile no jogar.php */
.game-mobile-notice {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(201,153,58,0.08);
    border: 1px solid var(--gold-border);
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--text);
    margin-bottom: 4px;
}
.game-mobile-notice svg { flex-shrink: 0; color: var(--gold); }

@media (max-width: 768px) {
    .game-mobile-notice { display: flex; }
}

.btn-loading { position: relative; pointer-events: none; }
.btn-loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: rgba(0,0,0,0.8);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .page-header { flex-direction: column; align-items: flex-start; }
    .saves-grid  { grid-template-columns: 1fr; }
    .save-stats  { grid-template-columns: 1fr 1fr; }
}

/* =========================
   BUTTONS
========================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.35px;
  line-height: 1;
  user-select: none;
  text-decoration: none;
  transition:
    transform 140ms ease,
    background var(--t),
    border-color var(--t),
    box-shadow var(--t),
    color var(--t),
    opacity var(--t);
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t);
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn-primary {
  color: #0d0b08;
  border-color: rgba(232, 196, 106, 0.55);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.00) 38%),
    linear-gradient(160deg, #f4d98a 0%, var(--gold-light) 32%, var(--gold) 68%, var(--gold-dark) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(60,35,5,0.18),
    0 10px 30px rgba(201,153,58,0.30),
    0 2px 10px rgba(0,0,0,0.28);
}

.btn-primary::before {
  opacity: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent 46%);
}

.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.34),
    inset 0 -1px 0 rgba(60,35,5,0.24),
    0 14px 34px rgba(201,153,58,0.42),
    0 4px 14px rgba(0,0,0,0.32);
}

.btn-secondary,
.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(232, 223, 200, 0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.015) 100%),
    rgba(15, 12, 9, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(255,255,255,0.02),
    0 10px 26px rgba(0,0,0,0.30);
}

.btn-secondary::before,
.btn-ghost::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 42%);
  opacity: 1;
}

.btn-secondary:hover,
.btn-ghost:hover {
  color: var(--gold-light);
  border-color: rgba(201, 153, 58, 0.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%),
    rgba(20, 16, 11, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -1px 0 rgba(255,255,255,0.03),
    0 14px 32px rgba(0,0,0,0.36),
    0 0 0 1px rgba(201,153,58,0.05);
}

.btn-ghost {
  color: rgba(232, 223, 200, 0.84);
}

.btn-ghost-story {
  padding-inline: 20px 22px;
  border-color: rgba(201, 153, 58, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.015) 100%),
    linear-gradient(180deg, rgba(201,153,58,0.03), rgba(201,153,58,0.01)),
    rgba(15, 12, 9, 0.78);
  color: rgba(232, 223, 200, 0.88);
}

.btn-ghost-story svg {
  opacity: 0.78;
  transform: translateX(0);
  transition: opacity var(--t), transform var(--t);
}

.btn-ghost-story:hover {
  border-color: rgba(232, 196, 106, 0.40);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.02) 100%),
    linear-gradient(180deg, rgba(201,153,58,0.06), rgba(201,153,58,0.02)),
    rgba(20, 16, 11, 0.84);
}

.btn-ghost-story:hover svg {
  opacity: 1;
  transform: translateX(2px);
}

.btn-lg {
  min-height: 56px;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 16px;
}

.site-hero-actions .btn {
  min-width: 190px;
}

[data-theme="light"] .btn-secondary,
[data-theme="light"] .btn-ghost {
  color: rgba(24, 22, 15, 0.82);
  border-color: rgba(24, 22, 15, 0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.56) 100%),
    rgba(255,255,255,0.58);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 10px 24px rgba(0,0,0,0.06);
}

[data-theme="light"] .btn-secondary:hover,
[data-theme="light"] .btn-ghost:hover {
  color: var(--gold);
  border-color: rgba(138, 95, 16, 0.26);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(255,255,255,0.74) 100%),
    rgba(255,255,255,0.74);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 14px 28px rgba(0,0,0,0.08);
}

[data-theme="light"] .btn-ghost-story {
  border-color: rgba(138, 95, 16, 0.16);
}

/* =========================================================
   HISTORIA.PHP: LIGHT MODE
   Cola no fim do style.css
========================================================= */

[data-theme="light"] .story-page {
  --story-bg: #f7f1e7;
  --story-surface: rgba(255, 251, 245, 0.78);
  --story-surface-strong: rgba(255, 248, 240, 0.92);
  --story-border: rgba(138, 95, 16, 0.20);
  --story-border-strong: rgba(138, 95, 16, 0.34);
  --story-text: #1f1812;
  --story-muted: rgba(31, 24, 18, 0.70);
  --story-faint: rgba(31, 24, 18, 0.46);
  --story-gold: #8a5f10;
  --story-gold-2: #b8881e;
  --story-gold-soft: rgba(184, 136, 30, 0.14);
  --story-blue-soft: rgba(86, 145, 190, 0.12);
  --story-red-soft: rgba(176, 76, 52, 0.10);
  --story-green-soft: rgba(56, 140, 82, 0.11);
  color: var(--story-text);
}

/* Base */
[data-theme="light"] .story-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 149, 58, 0.10), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(160, 110, 45, 0.08), transparent 30%),
    linear-gradient(180deg, #fbf7f1 0%, #f5eee3 100%);
}

[data-theme="light"] .story-page,
[data-theme="light"] .story-page p,
[data-theme="light"] .story-page li {
  color: var(--story-muted);
}

[data-theme="light"] .story-page strong,
[data-theme="light"] .story-page h1,
[data-theme="light"] .story-page h2,
[data-theme="light"] .story-page h3 {
  color: var(--story-text);
}

/* Hero */
[data-theme="light"] .story-hero {
  background:
    radial-gradient(ellipse at top, rgba(201, 149, 58, 0.12), transparent 58%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.98), rgba(243, 232, 214, 0.88));
  border-color: var(--story-border);
  box-shadow: 0 18px 48px rgba(120, 84, 28, 0.10);
}

[data-theme="light"] .story-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.36), transparent 28%),
    radial-gradient(circle at 50% 0%, rgba(201,149,58,0.12), transparent 50%);
}

[data-theme="light"] .story-hero-runes {
  color: rgba(138, 95, 16, 0.26);
}

[data-theme="light"] .story-overline {
  color: var(--story-gold);
}

[data-theme="light"] .story-hero h1 {
  background: linear-gradient(135deg, #2a1d14 0%, #8a5f10 72%, #b8881e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .story-lead {
  color: var(--story-muted);
}

/* Static sections */
[data-theme="light"] .story-section {
  background: var(--story-surface);
  border-color: var(--story-border);
  box-shadow: 0 10px 30px rgba(100, 70, 20, 0.06);
}

[data-theme="light"] .story-section:hover {
  border-color: var(--story-border-strong);
  box-shadow: 0 16px 34px rgba(100, 70, 20, 0.10);
}

[data-theme="light"] .story-section-header {
  background: rgba(138, 95, 16, 0.05);
  border-bottom-color: rgba(138, 95, 16, 0.14);
}

[data-theme="light"] .story-badge {
  color: var(--story-gold);
  background: rgba(201, 149, 58, 0.11);
  border-color: rgba(201, 149, 58, 0.28);
}

[data-theme="light"] .story-content p {
  color: var(--story-muted);
}

[data-theme="light"] .story-content strong {
  color: var(--story-text);
}

/* Callout */
[data-theme="light"] .story-callout {
  background: var(--story-blue-soft);
  border-color: rgba(86, 145, 190, 0.22);
  color: var(--story-muted);
}

[data-theme="light"] .story-callout svg {
  color: #3d7fb0;
}

/* Lists */
[data-theme="light"] .story-list li {
  color: var(--story-muted);
}

[data-theme="light"] .story-list li::before {
  color: var(--story-gold);
}

/* Acts title */
[data-theme="light"] .story-acts-title {
  color: var(--story-faint);
}

[data-theme="light"] .story-acts-title::before,
[data-theme="light"] .story-acts-title::after {
  background: rgba(138, 95, 16, 0.22);
}

/* Timeline */
[data-theme="light"] .story-timeline::before {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(201, 149, 58, 0.38) 8%,
    rgba(201, 149, 58, 0.38) 92%,
    transparent 100%
  );
}

[data-theme="light"] .story-act::before {
  background: rgba(201, 149, 58, 0.30);
  border-color: rgba(138, 95, 16, 0.28);
}

[data-theme="light"] .story-act:hover::before,
[data-theme="light"] .story-act.visible::before {
  background: #c9953a;
  border-color: rgba(201, 149, 58, 0.72);
}

[data-theme="light"] .story-act-final::before {
  background: linear-gradient(135deg, #c9953a, #e7bc68) !important;
  border-color: rgba(201, 149, 58, 0.72) !important;
  box-shadow: 0 0 16px rgba(201, 149, 58, 0.28);
}

/* Act cards */
[data-theme="light"] .story-act-card {
  background: var(--story-surface-strong);
  border-color: var(--story-border);
  box-shadow: 0 10px 26px rgba(100, 70, 20, 0.07);
}

[data-theme="light"] .story-act-card:hover {
  border-color: var(--story-border-strong);
  box-shadow: 0 18px 38px rgba(100, 70, 20, 0.12);
}

[data-theme="light"] .story-act-header {
  background: rgba(201, 149, 58, 0.06);
  border-bottom-color: rgba(138, 95, 16, 0.14);
}

[data-theme="light"] .story-act-label,
[data-theme="light"] .story-act-roman {
  color: var(--story-gold);
}

[data-theme="light"] .story-act-divider-v {
  background: rgba(138, 95, 16, 0.16);
}

[data-theme="light"] .story-act-level-badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(138, 95, 16, 0.16);
  color: var(--story-muted);
}

[data-theme="light"] .story-act-body p {
  color: var(--story-muted);
}

[data-theme="light"] .story-act-lore {
  color: rgba(70, 50, 30, 0.78) !important;
  background: rgba(201, 149, 58, 0.07);
  border-left-color: rgba(201, 149, 58, 0.44);
}

/* Boss */
[data-theme="light"] .story-boss {
  background: var(--story-red-soft);
  border-color: rgba(176, 76, 52, 0.22);
  color: var(--story-muted);
}

[data-theme="light"] .story-boss strong {
  color: var(--story-text);
}

[data-theme="light"] .story-boss-star {
  color: #c06d21;
}

[data-theme="light"] .story-boss-label {
  color: #a5551a;
}

/* Ending */
[data-theme="light"] .story-ending {
  background: var(--story-green-soft);
  border-color: rgba(56, 140, 82, 0.22);
}

[data-theme="light"] .story-ending-label {
  color: #1d7b40;
}

[data-theme="light"] .story-ending p {
  color: var(--story-muted);
}

/* Final card */
[data-theme="light"] .story-act-final .story-act-card {
  background:
    radial-gradient(circle at top, rgba(201, 149, 58, 0.10), transparent 48%),
    rgba(255, 249, 240, 0.94);
  border-color: rgba(201, 149, 58, 0.32);
}

/* Mobile */
@media (max-width: 600px) {
  [data-theme="light"] .story-hero {
    box-shadow: 0 12px 28px rgba(120, 84, 28, 0.08);
  }

  [data-theme="light"] .story-section,
  [data-theme="light"] .story-act-card {
    background: rgba(255, 250, 244, 0.94);
  }
}

/* ════════════════════════════════════════════
   SEARCH PAGE
════════════════════════════════════════════ */
.search-main {
  padding: 60px 0 80px;
  min-height: 80vh;
}

.search-form {
  max-width: 640px;
  margin-bottom: 40px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 6px 10px 6px 16px;
  transition: border-color var(--t);
}

.search-input-wrap:focus-within {
  border-color: var(--gold-border-hi);
  box-shadow: var(--focus);
}

.search-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  padding: 6px 0;
}

.search-input::placeholder { color: var(--muted); }

.search-count {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color var(--t), background var(--t), transform var(--t);
  text-decoration: none;
}

.search-card:hover {
  border-color: var(--gold-border-hi);
  background: var(--surface-3);
  transform: translateX(3px);
}

.search-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-offset);
  border: 2px solid var(--gold-border);
  flex-shrink: 0;
}

.search-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
}

.search-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.search-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-username {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
}

.search-role {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-stats {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gold);
  margin-top: 2px;
}

.search-arrow { color: var(--muted); flex-shrink: 0; }

.search-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.search-hint, .search-more {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}

/* ════════════════════════════════════════════
   USER PUBLIC PROFILE (u.php)
════════════════════════════════════════════ */
.user-profile-main {
  padding: 60px 0 80px;
}

.up-hero-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
}

.up-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.up-hero-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.up-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.up-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-border-hi);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
}

.up-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--surface-offset);
  border: 3px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
}

.up-level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0d0b08;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 20px;
  border: 2px solid var(--bg);
}

.up-info {
  flex: 1;
  min-width: 200px;
}

.up-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.up-name-row h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--gold-light);
  margin: 0;
}

.up-since {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

.up-bio {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  max-width: 500px;
  margin: 0;
}

.up-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  margin-left: auto;
}

.friend-pending-actions {
  display: flex;
  gap: 8px;
}

/* Grid */
.up-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  .up-grid { grid-template-columns: 1fr; }
}

/* Cards genéricos */
.up-card {
  background: var(--surface-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.up-card-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.up-card-title {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.up-comment-count {
  margin-left: auto;
  background: var(--surface-offset);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0;
  text-transform: none;
}

/* Game stats */
.up-stat-level {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}

.up-stat-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.up-stat-sub {
  font-size: 13px;
  color: var(--muted);
}

.up-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}

.up-stat-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

.up-stat-val {
  color: var(--text);
  font-weight: 500;
}

.up-bar {
  height: 5px;
  background: var(--surface-offset);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.up-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.up-bar-hp  { background: linear-gradient(90deg, #c96b5a, #e8826e); }
.up-bar-xp  { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }

.up-stat-divider {
  height: 1px;
  background: var(--gold-border);
  margin: 12px 0;
}

/* Amigos em comum */
.up-mutual-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.up-mutual-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color var(--t);
}

.up-mutual-item:hover { color: var(--gold-light); }

.up-mutual-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-offset);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Comments */
.up-comment-form {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gold-border);
}

.up-comment-textarea {
  width: 100%;
  background: var(--surface-3);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  resize: vertical;
  transition: border-color var(--t);
  outline: none;
  min-height: 80px;
}

.up-comment-textarea:focus {
  border-color: var(--gold-border-hi);
  box-shadow: var(--focus);
}

.up-comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.up-comment-hint {
  font-size: 12px;
  color: var(--faint);
}

.up-comment-error {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(201, 107, 90, 0.10);
  border: 1px solid rgba(201, 107, 90, 0.30);
  border-radius: 8px;
  font-size: 13px;
  color: var(--error);
}

.up-comment-login-hint {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-border);
}

.up-comment-login-hint a { color: var(--gold-light); }

.up-comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.up-comment {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 153, 58, 0.10);
}

.up-comment:last-child { border-bottom: none; padding-bottom: 0; }

.up-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.up-comment-author {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
}

.up-comment-author:hover { text-decoration: underline; }

.up-comment-date {
  font-size: 11px;
  color: var(--faint);
}

.up-comment-delete {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--t);
  display: flex;
  align-items: center;
}

.up-comment-delete:hover { color: var(--error); }

.up-comment-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.up-no-comments {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  padding: 20px 0;
}

.up-load-more {
  display: block;
  width: 100%;
  margin-top: 16px;
  text-align: center;
}

/* Light theme overrides */
[data-theme="light"] .up-hero-card,
[data-theme="light"] .up-card {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .search-card {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(138, 95, 16, 0.18);
}

[data-theme="light"] .search-card:hover {
  background: rgba(255, 248, 235, 0.98);
}

[data-theme="light"] .up-comment-textarea {
  background: rgba(255, 250, 240, 0.9);
}

[data-theme="light"] .search-input-wrap {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(138, 95, 16, 0.18);
}
/* =====================================================
   MUSIC VOLUME WIDGET
===================================================== */
.music-ctrl { position: relative; }
.music-vol-popup {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(16, 13, 7, 0.98); border: 1px solid var(--gold-border);
  border-radius: var(--radius); padding: 14px 16px; min-width: 200px;
  opacity: 0; visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  pointer-events: none; z-index: 200; box-shadow: var(--shadow-soft);
}
.music-ctrl:hover .music-vol-popup,
.music-ctrl .music-vol-popup.music-vol-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.music-vol-popup::before { content: ''; position: absolute; bottom: 100%; left: 0; right: 0; height: 8px; }
.music-vol-label { font-family: var(--font-display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 10px; }
.music-vol-row { display: flex; align-items: center; gap: 8px; }
.music-vol-icon { color: var(--muted); flex-shrink: 0; }
.music-vol-slider { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: var(--surface-offset); outline: none; cursor: pointer; padding: 0; border: none; }
.music-vol-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-light); cursor: pointer; border: 2px solid var(--bg); box-shadow: 0 0 4px rgba(201, 153, 58, 0.4); transition: transform 120ms ease, box-shadow 120ms ease; }
.music-vol-slider::-webkit-slider-thumb:hover { transform: scale(1.25); box-shadow: 0 0 8px rgba(201, 153, 58, 0.6); }
.music-vol-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--gold-light); cursor: pointer; border: 2px solid var(--bg); }
.music-vol-pct { font-family: var(--font-display); font-size: 14px; color: var(--muted); min-width: 28px; text-align: right; }
[data-theme="light"] .music-vol-popup { background: rgba(242, 237, 228, 0.98); border-color: rgba(138, 95, 16, 0.22); }

/* =====================================================
   EDIT PANEL (u.php own profile)
===================================================== */
.up-edit-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms cubic-bezier(0.16, 1, 0.3, 1), margin-bottom 320ms ease; margin-bottom: 0; }
.up-edit-panel.open { grid-template-rows: 1fr; margin-bottom: 20px; }
.up-edit-panel-inner { overflow: hidden; }
.up-edit-panel-box { background: var(--surface-2); border: 1px solid var(--gold-border-hi); border-radius: var(--radius-lg); margin-top: 12px; overflow: hidden; }
.up-edit-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--gold-border); overflow-x: auto; scrollbar-width: none; }
.up-edit-tabs::-webkit-scrollbar { display: none; }
.up-edit-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px 8px 0 0; border: none; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.3px; cursor: pointer; white-space: nowrap; transition: background var(--t), color var(--t), border-color var(--t); }
.up-edit-tab:hover { background: rgba(201, 153, 58, 0.06); color: var(--text); }
.up-edit-tab.active { background: rgba(201, 153, 58, 0.10); color: var(--gold-light); border-bottom-color: var(--gold); }
.up-edit-tab-danger { color: rgba(201, 107, 90, 0.7); }
.up-edit-tab-danger:hover { background: rgba(201, 107, 90, 0.08); color: #e8a090; }
.up-edit-tab-danger.active { background: rgba(201, 107, 90, 0.10); color: #e8a090; border-bottom-color: var(--error); }
.up-edit-panels { padding: 24px; }
.up-edit-panel-content { display: none; }
.up-edit-panel-content.active { display: block; }
.up-edit-panel-content > h3 { margin: 0 0 6px; font-size: clamp(16px, 2vw, 20px); color: var(--gold-light); }
.up-edit-panel-content > p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.up-edit-close { display: block; width: 100%; text-align: center; color: var(--muted); font-size: 13px; font-family: var(--font-body); background: none; border: none; cursor: pointer; padding: 14px 10px 10px; border-radius: 8px; margin-top: 20px; border-top: 1px solid var(--gold-border); transition: background var(--t), color var(--t); }
.up-edit-close:hover { background: rgba(201, 153, 58, 0.06); color: var(--text); }
.up-avatar-edit-btn { position: absolute; bottom: -2px; right: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #0d0b08; transition: background var(--t), transform 120ms ease; }
.up-avatar-edit-btn:hover { background: var(--gold-light); transform: scale(1.08); }

/* =====================================================
   CONTENT TABS
===================================================== */
.up-content-tabs { display: flex; border-bottom: 1px solid var(--gold-border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.up-content-tabs::-webkit-scrollbar { display: none; }
.up-content-tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.3px; cursor: pointer; white-space: nowrap; transition: color var(--t), border-color var(--t); }
.up-content-tab:hover { color: var(--text); }
.up-content-tab.active { color: var(--gold-light); border-bottom-color: var(--gold); }
.up-tab-badge { background: var(--error); color: #fff; font-family: var(--font-body); font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 999px; line-height: 1.4; }
.up-tab-badge-neutral { background: var(--surface-offset); color: var(--muted); }
.up-content-panel { display: none; }
.up-content-panel.active { display: block; }

/* =====================================================
   FRIENDS TAB
===================================================== */
.up-section { margin-bottom: 28px; }
.up-section-title { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold); margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.up-friends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.up-friend-card { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--surface-3); border: 1px solid var(--gold-border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: background var(--t), border-color var(--t); }
.up-friend-card:hover { background: var(--surface-offset); border-color: var(--gold-border-hi); }
.up-friend-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-offset); border: 1px solid var(--gold-border); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 13px; color: var(--gold); flex-shrink: 0; overflow: hidden; }
.up-friend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.up-friend-info { flex: 1; min-width: 0; }
.up-friend-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-friend-level { font-size: 11px; color: var(--muted); margin-top: 1px; }
.up-friend-search { margin-bottom: 8px; }
.up-friend-search-wrap { position: relative; }
.up-friend-search-input { padding-left: 40px !important; }
.up-friend-search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.up-search-results { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.up-search-result-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface-3); border: 1px solid var(--gold-border); border-radius: var(--radius); transition: background var(--t); }
.up-search-result-item:hover { background: var(--surface-offset); }
.up-search-result-info { display: flex; align-items: center; gap: 8px; }
.up-pending-list { display: flex; flex-direction: column; gap: 8px; }
.up-pending-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: rgba(201, 153, 58, 0.05); border: 1px solid var(--gold-border); border-radius: var(--radius); }
.up-pending-actions { display: flex; gap: 6px; flex-shrink: 0; }
.up-empty-state { text-align: center; padding: 32px 20px; color: var(--muted); font-size: 14px; }
.up-bio-placeholder { font-size: 14px; color: var(--faint); font-style: italic; }
.up-add-bio-btn { background: none; border: none; color: var(--gold-light); font-size: inherit; cursor: pointer; padding: 0; text-decoration: underline; font-family: inherit; }
[data-theme="light"] .up-edit-panel-box { background: rgba(255, 252, 245, 0.95); border-color: rgba(138, 95, 16, 0.28); }
[data-theme="light"] .up-friend-card { background: rgba(255, 250, 240, 0.8); border-color: rgba(138, 95, 16, 0.18); }
[data-theme="light"] .up-friend-card:hover { background: rgba(255, 248, 230, 1.0); border-color: rgba(138, 95, 16, 0.35); }
[data-theme="light"] .up-search-result-item, [data-theme="light"] .up-pending-item { background: rgba(255, 250, 240, 0.8); border-color: rgba(138, 95, 16, 0.18); }
[data-theme="light"] .up-search-result-item:hover { background: rgba(255, 248, 230, 1.0); }

/* ============================================================
   TOAST GLOBAL
   ============================================================ */
#sylora-toast {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 100000;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  transform: translateY(16px);
  opacity: 0;
  transition: opacity 240ms ease, transform 240ms ease;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}
#sylora-toast.sylora-toast-show { opacity: 1; transform: translateY(0); }
#sylora-toast.sylora-toast-info    { background: rgba(201,153,58,0.18); border: 1px solid rgba(201,153,58,0.5); color: var(--gold-light); }
#sylora-toast.sylora-toast-success { background: rgba(106,180,106,0.15); border: 1px solid rgba(106,180,106,0.4); color: #8adb8a; }
#sylora-toast.sylora-toast-error   { background: rgba(201,90,80,0.15); border: 1px solid rgba(201,90,80,0.4); color: #e07060; }

/* ============================================================
   CONFIRM MODAL GLOBAL
   ============================================================ */
.sylora-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.sylora-confirm-overlay.active { opacity: 1; pointer-events: all; }
.sylora-confirm-box {
  background: var(--surface);
  border: 1px solid rgba(201,153,58,0.35);
  border-radius: 18px;
  padding: 32px 28px 24px;
  max-width: 380px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  transform: scale(0.96);
  transition: transform 200ms ease;
}
.sylora-confirm-overlay.active .sylora-confirm-box { transform: scale(1); }
.sylora-confirm-icon { color: #e0a040; }
.sylora-confirm-msg { font-size: 15px; font-weight: 500; color: var(--text); text-align: center; margin: 0; line-height: 1.5; }
.sylora-confirm-actions { display: flex; gap: 10px; margin-top: 4px; }
.sylora-confirm-box .btn { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(15,12,9,0.92); }

/* Volume slider cursor */
#music-vol-slider,
#music-vol-slider::-webkit-slider-thumb,
#music-vol-slider::-moz-range-thumb { cursor: none !important; }

/* Drag & drop: slots vazios */
.save-card-empty.drag-over {
  border-color: var(--gold) !important;
  background: rgba(201,153,58,0.08) !important;
  transform: translateY(-3px);
}

/* ── Navbar invisível no hero guest (position: fixed sai do fluxo) ── */
.navbar.navbar-hero {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transition: opacity 400ms ease, background 400ms ease, box-shadow 400ms ease;
}
.navbar.navbar-hero.navbar-scrolled {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow-soft) !important;
  border-bottom-color: var(--gold-border) !important;
  animation: navSlideDown 650ms cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.save-drag-hint { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 5px; }

/* ═══════════════════════════════════════════════════════════
   HISTORIA.PHP: logged-in experience (.sx-* classes)
═══════════════════════════════════════════════════════════ */
/* ── Reserva espaço para o header fixo ── */
.sx-outer{position:relative;width:100%;}

/* ── TEMA DARK/LIGHT ── */
[data-theme="dark"] .sx-wrap{background:#0f0e0c;}
[data-theme="dark"] .sx-hero-lead{color:rgba(232,220,190,.75);}
[data-theme="dark"] .sx-scroll-cta{color:rgba(201,153,58,.75);}
[data-theme="dark"] .sx-scroll-arrow{border-color:#c9953a;}
[data-theme="dark"] .sx-left h2{color:#e8dfc8;}
[data-theme="dark"] .sx-left p{color:rgba(232,220,190,.72);}
[data-theme="dark"] .sx-lore{color:rgba(220,200,160,.85)!important;}
[data-theme="dark"] .sx-tag{background:rgba(201,153,58,.12);border-color:rgba(201,153,58,.30);color:#c9993a;}
[data-theme="dark"] .sx-lvl{color:#c9993a;border-color:rgba(201,153,58,.30);}
[data-theme="dark"] .sx-boss{background:rgba(201,153,58,.08);border-color:rgba(201,153,58,.22);}
[data-theme="dark"] .sx-boss div:last-child{color:rgba(232,220,190,.80);}
[data-theme="dark"] .sx-boss-purple{background:rgba(122,86,176,.12);border-color:rgba(122,86,176,.30);}
[data-theme="dark"] .sx-callout{background:rgba(44,111,143,.12);border-color:rgba(44,111,143,.28);}
[data-theme="dark"] .sx-ending{background:linear-gradient(135deg,rgba(201,153,58,.14),rgba(138,95,16,.08));border-color:rgba(201,153,58,.32);}
[data-theme="dark"] .sx-ending p{color:rgba(220,200,160,.80);}
[data-theme="dark"] .sx-dot{background:rgba(232,220,190,.20);}
[data-theme="dark"] .sx-dot-label{background:rgba(30,25,18,.96);color:#e8dfc8;border-color:rgba(201,153,58,.25);}
[data-theme="dark"] .sx-counter{color:rgba(232,220,190,.50);}
[data-theme="dark"] .sx-list li{color:rgba(220,200,160,.80);}
[data-theme="dark"] .sx-art p{color:rgba(201,153,58,.60);}
[data-theme="dark"] .sx-boss-ico{color:#c9993a;}
[data-theme="dark"] .sx-panel-glow{opacity:.7;}

/* ── WRAPPER da experiência ── */
.sx-wrap{
  position:relative;
  width:100%;
  height:calc(100vh - var(--header-h, 64px));
  overflow:hidden;
  background:#f5f0e8;
  font-family:inherit;
}

/* ── FUNDO SUAVE ── */
.sx-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
}

.sx-orb{
  position:absolute;
  border-radius:50%;
  filter:blur(70px);
  animation:sxOrb 22s ease-in-out infinite alternate;
}

.sx-orb-1{
  width:560px;
  height:560px;
  top:-120px;
  left:-60px;
  background:radial-gradient(circle,rgba(201,153,58,.18),transparent);
  animation-delay:0s;
}

.sx-orb-2{
  width:460px;
  height:460px;
  top:40%;
  right:-80px;
  background:radial-gradient(circle,rgba(184,136,30,.14),transparent);
  animation-delay:-8s;
}

.sx-orb-3{
  width:380px;
  height:380px;
  bottom:-60px;
  left:40%;
  background:radial-gradient(circle,rgba(138,100,32,.10),transparent);
  animation-delay:-16s;
}

@keyframes sxOrb{
  0%{transform:translate(0,0) scale(1)}
  100%{transform:translate(45px,30px) scale(1.12)}
}

.sx-particles{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:.28;
  pointer-events:none;
}

/* ── BARRA PROGRESSO ── */
.sx-prog{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:2px;
  z-index:20;
  background:rgba(138,95,16,.10);
}

.sx-prog-fill{
  height:100%;
  width:0;
  background:linear-gradient(90deg,#b8881e,#c9953a);
  transition:width .4s cubic-bezier(.16,1,.3,1);
}

.sx-counter{
  position:absolute;
  top:14px;
  right:20px;
  z-index:20;
  font-size:.68rem;
  letter-spacing:.2em;
  color:rgba(28,20,16,.58);
  font-weight:700;
  text-transform:uppercase;
}

/* ── DOTS ── */
.sx-dots{
  position:absolute;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:9px;
  z-index:20;
  align-items:center;
}

.sx-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background:rgba(28,20,16,.16);
  border:none;
  cursor:pointer;
  padding:0;
  position:relative;
  transition:width .3s ease,background .3s ease;
}

.sx-dot.sx-dot-active{
  width:24px;
  background:#c9953a;
}

.sx-dot:hover .sx-dot-label{
  opacity:1;
  transform:translateX(-50%) translateY(-6px);
}

.sx-dot-label{
  position:absolute;
  bottom:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%) translateY(0);
  background:rgba(245,240,232,.96);
  color:#1c1410;
  border:1px solid rgba(138,95,16,.18);
  font-size:.65rem;
  padding:.28rem .55rem;
  border-radius:7px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s,transform .18s;
  font-weight:600;
}

/* ── TRACK ── */
.sx-track{
  position:absolute;
  inset:0;
  display:flex;
  width:900%;
  transition:transform .75s cubic-bezier(.77,0,.18,1);
  z-index:10;
  will-change:transform;
}

/* ── PANEL BASE ── */
.sx-panel{
  flex:0 0 calc(100% / 9);
  height:100%;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
}

.sx-panel-glow{
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse at 65% 30%,rgba(201,153,58,.16),transparent 50%),
    radial-gradient(ellipse at 10% 75%,rgba(138,95,16,.08),transparent 40%);
  z-index:0;
}

.sx-panel-final .sx-panel-glow{
  background:
    radial-gradient(ellipse at 55% 28%,rgba(201,153,58,.22),transparent 46%),
    radial-gradient(ellipse at 6% 78%,rgba(138,95,16,.10),transparent 40%);
}

/* ── PAINEL INTRO ── */
.sx-panel-intro{
  background:radial-gradient(ellipse at 50% 40%,rgba(201,153,58,.12),transparent 56%);
}

.sx-intro-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:clamp(12px,1.8vw,20px);
  padding:clamp(20px,4vw,60px);
  position:relative;
  z-index:2;
  width:100%;
}

.sx-hero-runes{
  letter-spacing:.42em;
  color:rgba(138,95,16,.55);
  font-size:.85rem;
  animation:sxRunes 5s ease-in-out infinite alternate;
}

@keyframes sxRunes{
  0%{opacity:.4;letter-spacing:.42em}
  100%{opacity:.85;letter-spacing:.58em}
}

.sx-overline{
  font-size:.72rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:#a86f1a;
  font-weight:800;
}

.sx-hero-title{
  font-size:clamp(3.8rem,11vw,9.5rem);
  line-height:.88;
  letter-spacing:-.1em;
  font-weight:900;
  background:linear-gradient(135deg,#f7e7bc 0%,#e0b85e 50%,#b9781e 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  animation:sxTitleIn 1s cubic-bezier(.16,1,.3,1) both;
  padding-inline-end: 0.15em;
}

@keyframes sxTitleIn{
  0%{opacity:0;transform:translateY(24px)}
  100%{opacity:1;transform:translateY(0)}
}

.sx-hero-lead{
  max-width:54ch;
  color:rgba(28,20,16,.70);
  font-size:clamp(.92rem,1.3vw,1.14rem);
  line-height:1.7;
}

.sx-scroll-cta{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  color:rgba(138,95,16,.65);
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  margin-top:.4rem;
}

.sx-scroll-arrow{
  display:block;
  width:20px;
  height:20px;
  border-right:2px solid #a86f1a;
  border-bottom:2px solid #a86f1a;
  transform:rotate(-45deg);
  animation:sxArrow 1.6s ease-in-out infinite;
}

@keyframes sxArrow{
  0%,100%{transform:rotate(-45deg) translate(0,0);opacity:.4}
  50%{transform:rotate(-45deg) translate(4px,4px);opacity:.9}
}

/* ── CONTENT ── */
.sx-content{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(20px,3.5vw,64px);
  align-items:center;
  padding:clamp(24px,4vw,72px) clamp(28px,5.5vw,90px);
  width:100%;
  max-width:1560px;
  margin:0 auto;
}

.sx-left{
  display:grid;
  gap:14px;
}

.sx-tag{
  display:inline-flex;
  padding:.4rem .9rem;
  border-radius:999px;
  border:1px solid rgba(138,95,16,.22);
  background:rgba(138,95,16,.08);
  color:#8a5f10;
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.22em;
  text-transform:uppercase;
  width:fit-content;
}

.sx-act-num{
  display:flex;
  align-items:baseline;
  gap:12px;
  padding-inline-end: 0.15em;
}

.sx-act-num>span:first-child{
  font-size:clamp(2.8rem,5.5vw,5rem);
  font-weight:900;
  line-height:1;
  letter-spacing:-.08em;
  background:linear-gradient(135deg,#f3d79a,#b77a1d);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  padding-inline-end: 0.15em;
}

.sx-act-num-final>span:first-child{
  background:linear-gradient(135deg,#fde9b5,#d89a34);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  padding-inline-end: 0.15em;
}

.sx-lvl{
  font-size:.68rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#8a5f10;
  padding:.32rem .75rem;
  border:1px solid rgba(138,95,16,.22);
  border-radius:999px;
}

.sx-left h2{
  font-size:clamp(1.9rem,3.8vw,3.8rem);
  line-height:.95;
  letter-spacing:-.07em;
  font-weight:900;
  color:#1c1410;
}

.sx-h2-final{
  background:linear-gradient(135deg,#f7e7bc 0%,#e0b85e 50%,#b9781e 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  padding-bottom: 20px;
}

.sx-rule{
  width:300px;
  height:2px;
  background:linear-gradient(90deg,#c9953a,transparent);
}

.sx-rule-gold{
  background:linear-gradient(90deg,#e0b85e,transparent);
}

.sx-left p{
  color:rgba(28,20,16,.74);
  font-size:clamp(.86rem,1.1vw,1.04rem);
  line-height:1.74;
  max-width:52ch;
}

.sx-lore{
  border-left:2px solid rgba(138,95,16,.25);
  padding-left:14px;
  color:rgba(82,57,20,.86)!important;
  font-style:italic;
}

.sx-callout{
  display:flex;
  gap:11px;
  align-items:flex-start;
  padding:13px 16px;
  border-radius:14px;
  border:1px solid rgba(38,92,122,.18);
  background:rgba(38,92,122,.08);
}

.sx-callout-ico{
  color:#2c6f8f;
  font-size:.95rem;
  flex-shrink:0;
  margin-top:.1rem;
}

.sx-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:7px;
}

.sx-list li{
  padding-left:20px;
  position:relative;
  color:rgba(58,45,28,.82);
  font-size:clamp(.84rem,1.05vw,.98rem);
}

.sx-list li::before{
  content:"◈";
  position:absolute;
  left:0;
  color:#c9953a;
  font-size:.68rem;
  top:.22rem;
}

.sx-boss{
  display:flex;
  gap:11px;
  align-items:flex-start;
  padding:12px 15px;
  border-radius:14px;
  border:1px solid rgba(138,95,16,.20);
  background:rgba(138,95,16,.08);
}

.sx-boss-purple{
  border-color:rgba(122,86,176,.22);
  background:rgba(122,86,176,.08);
}

.sx-boss-final{
  border-color:rgba(201,153,58,.28);
  background:linear-gradient(135deg,rgba(201,153,58,.12),rgba(138,95,16,.05));
}

.sx-boss-ico{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  min-width:55px;
  font-size:.58rem;
  letter-spacing:.13em;
  text-transform:uppercase;
  font-weight:900;
  color:#8a5f10;
  white-space:nowrap;
}

.sx-boss-ico svg{
  color:#c9953a;
  margin-bottom:2px;
}

.sx-boss-phases{
  display:block;
  font-size:.52rem;
  letter-spacing:.08em;
  font-weight:700;
  opacity:.72;
}

.sx-boss div:last-child{
  color:rgba(55,39,22,.82);
  font-size:.86rem;
  line-height:1.55;
}

.sx-ending{
  padding:14px 18px;
  border-radius:16px;
  background:linear-gradient(135deg,rgba(201,153,58,.10),rgba(184,136,30,.06));
  border:1px solid rgba(201,153,58,.22);
}

.sx-ending-label{
  display:block;
  font-size:.68rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:900;
  color:#a86f1a;
  margin-bottom:.5rem;
}

.sx-ending p{
  color:rgba(55,39,22,.78);
  line-height:1.6;
  font-size:.88rem;
}

.sx-right{
  display:flex;
  justify-content:center;
  align-items:center;
}

.sx-art{
  width:clamp(200px,24vw,400px);
  height:clamp(200px,24vw,400px);
  border-radius:32px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  position:relative;
  border:1px solid rgba(138,95,16,.14);
  overflow:hidden;
  background:radial-gradient(circle at 50% 38%,var(--art-a),var(--art-b));
}

.sx-art-glow{
  position:absolute;
  width:160px;
  height:160px;
  border-radius:50%;
  filter:blur(28px);
  background:inherit;
  animation:sxGlow 3.8s ease-in-out infinite alternate;
  opacity:.42;
}

@keyframes sxGlow{
  0%{transform:scale(.8);opacity:.28}
  100%{transform:scale(1.18);opacity:.60}
}

.sx-symbol{
  font-size:clamp(3.2rem,5.2vw,5rem);
  line-height:1;
  position:relative;
  z-index:1;
  animation:sxSymbol 4.2s ease-in-out infinite alternate;
  filter:drop-shadow(0 0 22px rgba(201,153,58,.35));
}

@keyframes sxSymbol{
  0%{transform:scale(1) rotate(-4deg)}
  100%{transform:scale(1.1) rotate(4deg)}
}

.sx-symbol-final{
  animation:sxFinalSym 3s ease-in-out infinite alternate;
}

@keyframes sxFinalSym{
  0%{transform:scale(1) rotate(0deg);}
  100%{transform:scale(1.16) rotate(14deg);}
}

.sx-art p{
  position:relative;
  z-index:1;
  font-size:.74rem;
  color:rgba(82,57,20,.68);
  text-align:center;
  max-width:22ch;
  margin-top:.9rem;
  font-style:italic;
}

/* ── MOBILE ── */
@media(max-width:820px){
  .sx-content{
    grid-template-columns:1fr;
    overflow-y:auto;
    max-height:100%;
    padding-top:48px;
  }
  .sx-right{display:none}
}

@media(prefers-reduced-motion:reduce){
  .sx-orb,.sx-art-glow,.sx-symbol,.sx-symbol-final,.sx-scroll-arrow,.sx-hero-runes{animation:none!important}
  .sx-track{transition:none!important}
}

/* ═══════════════════════════════════════════════════════════
   INDEX.PHP: hero fullscreen (guest)
═══════════════════════════════════════════════════════════ */
  .site-hero-full {
    position: relative;
    height: 100svh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 40%, rgba(30,18,4,0.98) 0%, #050302 70%);
    margin-bottom: 80px;
  }
  [data-theme="light"] .site-hero-full {
    background: radial-gradient(
      ellipse at 50% 40%,
      rgba(50, 30, 5, 0.98) 0%,
      #050302 70%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 93%,
      rgba(0, 0, 0, 0.82) 96%,
      rgba(0, 0, 0, 0.42) 98.5%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 93%,
      rgba(0, 0, 0, 0.82) 96%,
      rgba(0, 0, 0, 0.42) 98.5%,
      transparent 100%
    );
  }

  [data-theme="light"] .site-hero-full::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 72px;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(5, 3, 2, 0.05) 72%,
      rgba(5, 3, 2, 0.10) 100%
    );
  }

  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
  }
  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(8,5,2,0.65);
    pointer-events: none;
  }
  [data-theme="light"] .hero-overlay {
    background: rgba(6,3,1,0.58);
  }
  .hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
  }
  .site-hero-full-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 0 24px;
    animation: heroFadeIn 1.2s ease both;
  }
  @keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero-logo-wrap { animation: heroFloat 5s ease-in-out infinite; }
  @keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
  }
  .hero-logo-img { width: clamp(320px, 32vw, 900px); height: auto; filter: drop-shadow(0 0 40px rgba(201,153,58,0.45)); }
  .hero-overline { font-family: var(--font-display); font-size: 13px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; opacity: 0.85; animation: heroFadeIn 1.4s 0.3s ease both; }
  .hero-tagline  { font-size: clamp(15px, 2.2vw, 18px); color: rgba(255,255,255,0.7); max-width: 52ch; line-height: 1.65; margin: 0; animation: heroFadeIn 1.4s 0.5s ease both; }
  .hero-actions-row {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: heroFadeIn 1.4s 0.7s ease both;
  }
  .hero-explore-btn {
    background: none;
    border: 1px solid rgba(201,153,58,0.4);
    color: rgba(255,255,255,0.7);
    padding: 9px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-family: var(--font-display);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: none;
    transition: border-color 200ms, color 200ms, background 200ms;
    animation: heroFadeIn 1.4s 1s ease both;
  }
  .hero-explore-btn:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(201,153,58,0.08); }
  .hero-download-btn {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: #0d0b08;
    padding: 9px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-family: var(--font-display);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: none;
    font-weight: 600;
    transition: background 200ms, border-color 200ms, transform 200ms, box-shadow 200ms;
    animation: heroFadeIn 1.4s 1s ease both;
  }
  .hero-download-btn:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,153,58,0.35);
  }
  .hero-download-btn svg { stroke: #0d0b08; }
  .hero-swipe-svg { display: none; }
  .hero-scroll-indicator {
    position: absolute;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: heroScrollBounce 2.2s ease-in-out infinite;
  }
  @keyframes heroScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50%       { transform: translateX(-50%) translateY(6px); opacity: 1; }
  }
  .hero-scroll-wheel {
    animation: heroWheelMove 2.2s ease-in-out infinite;
    transform-origin: center;
  }
  @keyframes heroWheelMove {
    0%, 100% { transform: translateY(0); opacity: 1; }
    60%       { transform: translateY(5px); opacity: 0.6; }
  }

/* ═══════════════════════════════════════════════════════════
   MOBILE FIXES (max-width: 768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Esconder botões "Log in" / "Sign in" da navbar — estão no menu mobile */
  .nav-guest-btn { display: none; }

  /* Esconder botão Download no hero */
  .hero-download-btn { display: none !important; }

  /* Scroll indicator: trocar rato por seta de swipe */
  .hero-mouse-svg { display: none; }
  .hero-swipe-svg { display: block !important; }

  /* .saves-notice: empilhar verticalmente em mobile */
  .saves-notice {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .saves-notice code {
    word-break: break-all;
  }

  /* Auth pages: padding inferior para não ficar atrás da barra do browser */
  .auth-form-panel {
    padding-bottom: 80px;
  }

  /* Scroll indicator clicável em mobile */
  .hero-scroll-indicator { cursor: pointer; }
}

/* Centralizar botões CTA também em 560px + ocultar painel deco nas páginas auth */
@media (max-width: 560px) {
  .hero-actions,
  .cta-actions {
    align-items: center;
  }

  .auth-split { flex-direction: column; }
  .auth-deco  { display: none; }
  .auth-form-panel { width: 100%; }
}
