:root {
  --tf-bg: #17120d;
  --tf-panel: rgba(24, 17, 10, 0.92);
  --tf-border: rgba(219, 169, 79, 0.45);
  --tf-gold: #d6a84f;
  --tf-text: #f7d58b;
  --tf-muted: #c9b27e;
  --tf-danger: #ff9d73;
  --tf-ok: #9fe0a3;
}

.tartarian-frontdoor-menu {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 99999;
  font-family: Georgia, 'Times New Roman', serif;
}

.tartarian-frontdoor-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--tf-border);
  background: radial-gradient(circle at 35% 25%, rgba(255,235,168,0.35), rgba(61,38,14,0.96));
  color: var(--tf-text);
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,0,0,0.45), inset 0 0 16px rgba(255,211,124,0.08);
}

.tartarian-frontdoor-dropdown {
  display: none;
  margin-top: 8px;
  min-width: 180px;
  background: var(--tf-panel);
  border: 1px solid var(--tf-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
}

.tartarian-frontdoor-menu[data-open="true"] .tartarian-frontdoor-dropdown { display: block; }

.tartarian-frontdoor-dropdown a {
  display: block;
  color: var(--tf-text);
  text-decoration: none;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(219,169,79,0.16);
  letter-spacing: 0.04em;
}

.tartarian-frontdoor-dropdown a:hover,
.tartarian-frontdoor-dropdown a[data-active="true"] {
  background: rgba(214,168,79,0.14);
}

.tf-shell {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(108,76,31,0.35), transparent 46%),
    linear-gradient(180deg, #24190d 0%, #110d09 100%);
  color: var(--tf-text);
  font-family: Georgia, 'Times New Roman', serif;
}

.tf-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(214,168,79,0.22);
  background: rgba(12, 9, 6, 0.55);
}

.tf-top a { color: var(--tf-text); text-decoration: none; margin-left: 16px; }
.tf-brand { margin-left: 0 !important; font-weight: 700; letter-spacing: 0.06em; }
.tf-brand span, .tf-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--tf-border);
  margin-right: 10px;
  background: rgba(214,168,79,0.12);
}

.tf-card {
  max-width: 720px;
  margin: 8vh auto;
  padding: 28px;
  background: var(--tf-panel);
  border: 1px solid var(--tf-border);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.36);
}

.tf-login { max-width: 520px; }
.tf-card h1 { margin-top: 0; font-size: 32px; }
.tf-card p { color: var(--tf-muted); line-height: 1.55; }
.tf-ok { color: var(--tf-ok) !important; }
.tf-error { color: var(--tf-danger) !important; }
.tf-debug { word-break: break-all; font-size: 13px; }
.tf-small { font-size: 13px; }
.tf-small a, .tf-card a { color: var(--tf-text); }

.tf-form { display: grid; gap: 10px; margin-top: 18px; }
.tf-form label { color: var(--tf-text); font-weight: 700; }
.tf-form label span { color: var(--tf-muted); font-weight: 400; }
.tf-form input {
  background: rgba(0,0,0,0.32);
  color: var(--tf-text);
  border: 1px solid rgba(214,168,79,0.36);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}

.tf-form button, .tf-button, .tf-secondary {
  display: inline-block;
  border: 1px solid rgba(214,168,79,0.6);
  background: #d6a84f;
  color: #160f08 !important;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-family: Georgia, 'Times New Roman', serif;
}

.tf-secondary {
  background: transparent;
  color: var(--tf-text) !important;
}

.tf-dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 14px;
  padding: 14px;
  border: 1px solid rgba(214,168,79,0.18);
  border-radius: 12px;
}
.tf-dl dt { color: var(--tf-muted); }
.tf-dl dd { margin: 0; }
