@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #262626;
  color: #e4e4e7;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* cards */
/* =========================
   TT THEME: tokens + mixins
   Change the palette here to recolor the whole site.
   ========================= */
.tt-row {
  display: flex;
  gap: 5px;
  align-items: center;
}

.tt-input,
.tt-select {
  width: 100%;
  padding: 4px 10px;
  font-size: 14px;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  color: #e4e4e7;
  outline: none;
}
.tt-input:hover,
.tt-select:hover {
  background: rgb(248.07, 248.07, 248.16);
}
.tt-input:focus,
.tt-select:focus {
  border-color: rgba(201, 168, 106, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.18);
}

.tt-number {
  width: 58px;
  padding: 0 6px 0;
  font-size: 14px;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  color: #e4e4e7;
  outline: none;
}
.tt-number:hover {
  background: rgb(248.07, 248.07, 248.16);
}
.tt-number:focus {
  border-color: rgba(201, 168, 106, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.18);
}

.tt-btn,
.tt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 4px 10px 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.1;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
  border: 1px solid #52525b;
  color: #e4e4e7;
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.34), rgba(0, 0, 0, 0.26));
  border-color: rgba(201, 168, 106, 0.6);
  color: rgb(246.9, 241.3, 235.2);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -2px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, filter 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease;
}
.tt-btn:hover,
.tt-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.tt-btn:active,
.tt-button:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.tt-btn:disabled,
.tt-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}

/* primary / add / confirm */
.tt-btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 4px 10px 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.1;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
  border: 1px solid #52525b;
  color: #e4e4e7;
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.34), rgba(0, 0, 0, 0.26));
  border-color: rgba(201, 168, 106, 0.6);
  color: rgb(246.9, 241.3, 235.2);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -2px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, filter 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease;
}
.tt-btn-add:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.tt-btn-add:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.tt-btn-add:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}

.tt-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 4px 10px 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.1;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
  border: 1px solid #52525b;
  color: #e4e4e7;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.4), rgba(0, 0, 0, 0.26));
  border-color: rgba(16, 185, 129, 0.6);
  color: #ecfdf5;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -2px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, filter 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease;
}
.tt-confirm:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.tt-confirm:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.tt-confirm:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}

.tt-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 4px 10px 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.1;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
  border: 1px solid #52525b;
  color: #e4e4e7;
  background: #7f1d1d; /* red-900 */
  border-color: #991b1b; /* red-800 */
  color: #fff1f2;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -2px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, filter 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease;
}
.tt-btn-danger:hover {
  filter: brightness(1.08);
  border-color: #b91c1c; /* red-700-ish for hover pop */
}
.tt-btn-danger:active {
  filter: brightness(0.98);
}
.tt-btn-danger:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.tt-btn-danger:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.tt-btn-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}

/* skills list */
.tt-skills {
  margin-top: 10px;
  flex: 1;
  overflow: auto;
}

.tt-vocation {
  width: 120px;
  flex: 0 0 auto;
}

.tt-skill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  font-size: 13px;
}

.tt-deleted {
  opacity: 0.45;
}

.tt-hidden-label {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
}

.tt-input.tt-invalid {
  border-color: #ef4444;
}

/* modal */
.tt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 100;
}

.tt-modal {
  width: min(450px, 100%);
  /* darker, less “washed” panel background */
  background: radial-gradient(900px 520px at 14% 0%, rgba(139, 90, 43, 0.06), transparent 62%), radial-gradient(820px 560px at 96% 35%, rgba(201, 168, 106, 0.05), transparent 65%), linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)), #27272a;
  border: 1px solid #3f3f46;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(201, 168, 106, 0.08); /* less bright */
  padding: 14px;
}

.tt-modal-title {
  padding: 2px 0 8px 2px;
  font-size: 20px;
}

.tt-modal-body {
  background: radial-gradient(700px 420px at 18% 0%, rgba(201, 168, 106, 0.06), transparent 58%), #18181b;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(201, 168, 106, 0.07);
  padding: 10px;
  overflow: auto;
  font-size: 13px;
}

.tt-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
  justify-content: space-between;
}

.tt-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
}

.tt-created {
  color: #22c55e;
} /* green */
.tt-deleted-name {
  color: #ef4444;
} /* red */
.tt-muted {
  color: #a1a1aa;
}

.tt-skill-value {
  width: 70px;
}

.tt-modal-backdrop {
  z-index: 1000;
}

/* =========================
   INDEX: Tabs + ScrollTop
   ========================= */
.tt-tabs-shell {
  max-width: 72rem; /* ~ max-w-6xl */
  margin: 0 auto;
  padding: 16px 18px 40px;
}

.tt-tabs-bar {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  margin-bottom: 14px;
}

.tt-tab-container {
  background: #27272a; /* zinc-800 */
  border: 1px solid #3f3f46; /* zinc-700 */
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  padding: 16px;
  min-height: 60vh;
}

.tt-tab-panel {
  width: 100%;
  height: 100%;
}

/* Reusable scroll-to-top button */
.tt-scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #27272a;
  border: 1px solid #3f3f46;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  color: #e4e4e7;
  cursor: pointer;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  transition: transform 0.08s ease, filter 0.08s ease;
}
.tt-scroll-top:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.tt-link {
  color: #e4e4e7;
  text-decoration: underline;
  opacity: 0.9;
}
.tt-link:hover {
  opacity: 1;
}

/* status pill */
.tt-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  min-width: 90px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 13px;
  background: #18181b;
  white-space: nowrap;
}

.tt-quest-check {
  gap: 8px;
}
.tt-quest-check input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #a1a1aa; /* subtle zinc */
  cursor: pointer;
}
.tt-quest-check span {
  cursor: pointer;
}

/* nice colors */
.tt-status-0 {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  opacity: 0.9;
}

.tt-status-1 { /* Planning - purple */
  background: #4c1d95;
  border-color: #6d28d9;
  color: #f5f3ff;
}

.tt-status-2 { /* In Progress - yellow */
  background: #92400e;
  border-color: #f59e0b;
  color: #fff7ed;
}

.tt-status-3 { /* Completed - green */
  background: #065f46;
  border-color: #10b981;
  color: #ecfdf5;
}

.tt-status-cell {
  cursor: pointer;
}

/* modal status chooser */
.tt-status-change-line {
  font-size: 14px;
  line-height: 1.35;
}

.tt-status-pick {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tt-status-choice {
  border: 0;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.tt-status-choice.is-selected {
  outline: 2px solid rgba(255, 255, 255, 0.25);
  outline-offset: 2px;
}

.tt-status-choice:disabled {
  opacity: 0.6;
  cursor: default;
}

.tt-btn:disabled,
.tt-btn.tt-btn-disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
}

.tt-btn:disabled:hover,
.tt-btn.tt-btn-disabled:hover {
  filter: none !important;
}

/* ensure pointer on enabled buttons */
.tt-btn:not(:disabled) {
  cursor: pointer;
}

/* =========================
   APP LAYOUT: Sidebar + Content
   ========================= */
.tt-app-shell {
  max-width: 92rem;
  margin: 0 auto;
  padding: 16px 18px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tt-content-box {
  flex: 1 1 auto;
  /* darker, less “washed” panel background */
  background: radial-gradient(900px 520px at 14% 0%, rgba(139, 90, 43, 0.06), transparent 62%), radial-gradient(820px 560px at 96% 35%, rgba(201, 168, 106, 0.05), transparent 65%), linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)), #27272a;
  border: 1px solid #3f3f46;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(201, 168, 106, 0.08); /* less bright */
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  padding: 16px;
  min-height: 60vh;
}

/* ===== Verified / Unverified badge (inline pill) ===== */
.tt-verify-badge,
.tt-hidden-badge {
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #18181b;
  font-weight: 700;
  font-size: 12px;
  pointer-events: none;
}

.tt-verify-badge-yes {
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #22c55e;
}

.tt-verify-badge-no {
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #ef4444;
  display: none;
}

.tt-hidden-badge {
  border: 1px solid #52525b;
  color: #52525b;
}

@keyframes greenButtonGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 0 0 0 rgba(16, 185, 129, 0);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22), 0 0 22px 6px rgba(16, 185, 129, 0.18);
  }
}
/* =========================
     MENU: layout + theme (single source of truth)
     ========================= */
.tt-menu-panel {
  /* desktop size */
  width: 200px;
  flex: 0 0 200px;
  padding: 14px;
  position: relative;
  /* palette (tweak here) */
  --m-bg: #2b1f15; /* dark wood base (slightly lighter) */
  --m-bg2: #463322; /* top highlight (brighter) */
  --m-card: rgba(245, 222, 179, 0.10); /* parchment tint */
  --m-border: rgba(233, 196, 128, 0.45);
  --m-text: #f3e6cf;
  --m-muted: rgba(243, 230, 207, 0.70);
  color: var(--m-text);
  background: radial-gradient(1200px 700px at 20% 0%, rgba(255, 220, 150, 0.1), transparent 60%), radial-gradient(900px 600px at 90% 30%, rgba(0, 0, 0, 0.28), transparent 55%), linear-gradient(180deg, var(--m-bg2), var(--m-bg));
  border: 1px solid var(--m-border);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}

/* Menu inner layout */
.tt-menu-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tt-menu-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-logo-square {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(201, 168, 106, 0.85);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 24px;
}

.tt-logo-text {
  font-size: 24px; /* a bit smaller = cleaner */
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  /* much more readable than VT323, still feels game-y */
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, Arial, sans-serif;
  /* brass/ivory tone instead of red */
  color: #e8d7b3;
  /* engraved + glow */
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 12px rgba(201, 168, 106, 0.25);
  /* tiny “metal edge” hint */
  -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.35);
}

/* Sections */
.tt-menu-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(233, 196, 128, 0.22);
}

.tt-menu-section-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--m-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Nav */
.tt-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 8px; /* tighter */
}

.tt-menu-link {
  display: block;
  text-decoration: none;
  text-align: center;
}

/* Active state (gold, not green) */
.tt-menu-link.is-active {
  border-color: rgba(201, 168, 106, 0.95);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.42), rgba(0, 0, 0, 0.18));
}

/* Footer area */
.tt-menu-online {
  font-size: 14px;
  opacity: 0.9;
  color: var(--m-muted);
}

.tt-menu-external {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.tt-menu-ext {
  text-decoration: none;
  display: block;
  text-align: center;
}

/* Menu-only inputs */
.tt-menu-panel .tt-input,
.tt-menu-panel input[type=text],
.tt-menu-panel input[type=number] {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(233, 196, 128, 0.3);
  color: var(--m-text);
}

.tt-menu-panel .tt-input::-moz-placeholder {
  color: rgba(243, 230, 207, 0.55);
}

.tt-menu-panel .tt-input::placeholder {
  color: rgba(243, 230, 207, 0.55);
}

/* IMPORTANT: undo the old _login.scss fixed centering inside the menu */
.tt-menu-panel .login-box {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  width: auto;
  height: auto;
  background: transparent;
}

/* =========================
     MENU BUTTONS (menu-only, compact)
     Use these instead of .tt-btn inside the menu
     ========================= */
.tt-menu-btn {
  display: block;
  width: 100%;
  text-decoration: none;
  text-align: center;
  /* compact */
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.1;
  color: var(--m-text);
  cursor: pointer;
  border: 1px solid rgba(233, 196, 128, 0.35);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.18), rgba(0, 0, 0, 0.2));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.08s ease, filter 0.08s ease, border-color 0.08s ease;
}

.tt-menu-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  border-color: rgba(201, 168, 106, 0.65);
}

.tt-menu-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.tt-menu-btn--accent {
  border-color: rgba(201, 168, 106, 0.7);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.32), rgba(0, 0, 0, 0.2));
}

.tt-menu-btn--danger {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.22), rgba(0, 0, 0, 0.2));
}

/* =========================
     Mobile hamburger + backdrop + drawer
     ========================= */
.tt-menu-hamburger {
  position: fixed;
  left: 6px;
  top: 6px;
  /* must be below backdrop + panel when open */
  z-index: 998;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  /* keep it neutral so menu theme doesn't leak here */
  background: #27272a;
  border: 1px solid #3f3f46;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  color: #e4e4e7;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  transition: transform 0.08s ease, filter 0.08s ease;
}
.tt-menu-hamburger:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.tt-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.tt-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.tt-menu-open {
  overflow: hidden;
}

.tt-menu-close {
  display: none;
}

/* Off-canvas drawer on mobile (250px) */
@media (max-width: 900px) {
  .tt-menu-hamburger {
    display: flex;
  }
  .tt-menu-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    flex: none;
    height: 100dvh;
    overflow: auto;
    border-radius: 0 16px 16px 0;
    transform: translateX(-110%);
    transition: transform 0.18s ease;
    z-index: 1000;
  }
  .tt-menu-panel.is-open {
    transform: translateX(0);
  }
  .tt-menu-close {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(233, 196, 128, 0.3);
    color: var(--m-text);
    cursor: pointer;
  }
}
/* =========================
     MENU: New Account Modal
     ========================= */
.tt-menu-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.tt-menu-modal {
  width: min(520px, 92vw);
  border-radius: 18px;
  padding: 16px;
  /* reuse menu palette vibe (not scoped) */
  color: #f3e6cf;
  background: radial-gradient(1200px 700px at 20% 0%, rgba(255, 220, 150, 0.08), transparent 60%), radial-gradient(900px 600px at 90% 30%, rgba(0, 0, 0, 0.35), transparent 55%), linear-gradient(180deg, #3a2b1f, #241a12);
  border: 1px solid rgba(233, 196, 128, 0.38);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tt-menu-modal-title {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.tt-menu-modal-sub {
  font-size: 16px;
  opacity: 0.85;
}

.tt-menu-modal-code {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
  word-break: break-word;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(233, 196, 128, 0.3);
  color: #22c55e; /* keep “success” green */
}

.tt-menu-modal-hint {
  margin-top: 12px;
  line-height: 1.25;
  font-size: 15px;
  opacity: 0.95;
}

.tt-menu-modal-warn {
  margin-top: 8px;
  font-weight: 900;
  color: #ef4444;
}

.tt-menu-modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

/* =========================
     NEW ACCOUNT MODAL (match menu look)
     ========================= */
/* Backdrop */
#ttNewAccountModal {
  background: rgba(0, 0, 0, 0.7) !important;
}

/* Inner box (the modal card) */
#ttNewAccountModal > div {
  /* same vibe as .tt-menu-panel theme */
  color: #f3e6cf !important;
  background: radial-gradient(1200px 700px at 20% 0%, rgba(255, 220, 150, 0.08), transparent 60%), radial-gradient(900px 600px at 90% 30%, rgba(0, 0, 0, 0.35), transparent 55%), linear-gradient(180deg, #3a2b1f, #241a12) !important;
  border: 1px solid var(--m-border);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}

/* Disable "Back to Login" until Copy was clicked */
#ttCloseNewAccount:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* Highlight Copy button until clicked */
#ttCopyCode.tt-copy-required {
  border-color: rgba(201, 168, 106, 0.95) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(201, 168, 106, 0.18) !important;
  animation: ttCopyPulse 1.1s ease-in-out infinite;
}

@keyframes ttCopyPulse {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
  100% {
    filter: brightness(1);
  }
}
.toolbar-wrapper {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 899;
  display: flex;
}
.toolbar-wrapper * {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.toolbar-wrapper.under {
  z-index: 899;
  padding-right: 58px;
}
.toolbar-wrapper .toolbar-box {
  display: flex;
  padding: 8px;
  gap: 8px;
}
.toolbar-wrapper .toolbar-box img {
  width: 30px;
}
.toolbar-wrapper .tool-wrapper {
  display: flex;
  align-items: center;
}
.toolbar-wrapper .tool-wrapper .tool-box {
  width: 40px;
  height: 40px;
  border: 1px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 12px;
  color: var(--m-text);
  border: 1px solid rgba(233, 196, 128, 0.35);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.18), rgba(0, 0, 0, 0.2));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.08s ease, filter 0.08s ease, border-color 0.08s ease;
}
.toolbar-wrapper .tool-wrapper .tool-box:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  border-color: rgba(201, 168, 106, 0.65);
}
.toolbar-wrapper .tool-wrapper .tool-box:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
.toolbar-wrapper .tb-alarm-timer {
  pointer-events: none;
  font-size: 34px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 34px;
  text-align: center;
}
.toolbar-wrapper .tb-alarm-timer.active {
  color: #22d162;
}
.toolbar-wrapper .tool-wrapper {
  gap: 8px;
}

.toolbar-wrapper.alarm-mini .toolbar-box,
.toolbar-wrapper.proper .toolbar-box {
  padding-right: 56px;
  border-radius: 16px 0 0 0;
  background: #262626;
  /* palette (tweak here) */
  --m-bg: #2b1f15; /* dark wood base (slightly lighter) */
  --m-bg2: #463322; /* top highlight (brighter) */
  --m-card: rgba(245, 222, 179, 0.10); /* parchment tint */
  --m-border: rgba(233, 196, 128, 0.45);
  --m-text: #f3e6cf;
  --m-muted: rgba(243, 230, 207, 0.70);
  color: var(--m-text);
  background: radial-gradient(1200px 700px at 20% 0%, rgba(255, 220, 150, 0.1), transparent 60%), radial-gradient(900px 600px at 90% 30%, rgba(0, 0, 0, 0.28), transparent 55%), linear-gradient(180deg, var(--m-bg2), var(--m-bg));
  border-top: 1px solid var(--m-border);
  border-left: 1px solid var(--m-border);
  border-bottom: 1px solid var(--m-border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.toolbar-wrapper.upper {
  z-index: 900;
}
.toolbar-wrapper.upper .toolbar-box {
  border: 1px solid rgba(0, 0, 0, 0);
  background: none;
}

.toolbar-wrapper.alarm-mini {
  z-index: 901;
  bottom: 57px;
}
.toolbar-wrapper.alarm-mini .toolbar-box {
  flex-direction: column;
  padding-right: 8px;
}
.toolbar-wrapper.alarm-mini .alarm-buttons button {
  width: 60px;
}

.toolbar-wrapper:not(.alarm-mini) .toolbar-box {
  border-bottom: none;
}

.active.sound-muted {
  color: #bc1d1d !important;
}

/* =========================
   CHARACTER MANAGER (page-specific)
   ========================= */
.tt-cm-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.tt-cm-title {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 10px;
}

.tt-cm-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}

.tt-cm-btn {
  width: auto;
  min-width: 160px;
  padding: 10px 14px;
}

.tt-cm-btn-revert {
  background: #18181b;
  border-color: #3f3f46;
}

/* container holding cards */
.character-manager-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 6px;
  width: 100%;
  height: 100%;
}

/* small helpers used by CM */
.tt-deleted {
  opacity: 0.45;
}

.tt-input.tt-invalid {
  border-color: #ef4444;
}

/* logged-out panel */
.tt-cm-locked {
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #3f3f46;
  background: rgba(0, 0, 0, 0.2);
}

.tt-cm-locked-title {
  font-size: 18px;
  font-weight: 900;
}

.tt-cm-locked-text {
  margin-top: 6px;
  opacity: 0.85;
  line-height: 1.35;
}

.tt-cm-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}

/* IMPORTANT: override global .tt-btn width:100% */
.tt-cm-actions .tt-btn.tt-cm-btn {
  width: 150px;
  max-width: 150px;
  min-width: 150px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
}

.tt-card {
  width: 220px;
  height: 430px;
  background: #18181b;
  border: 1px solid #3f3f46; /* zinc-700 */
  padding: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}

/* smaller delete button */
.tt-card .delete-btn {
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  min-height: 30px;
  border-radius: 12px;
}

/* skill row layout: name | value | visibility */
.character-manager-box.tt-skill-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-card .tt-skill-name {
  width: 100px;
  text-transform: capitalize;
}

.tt-skill-vis {
  width: 90px;
  display: flex;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

/* hide checkbox, use clickable text instead */
.tt-card .tt-skill-vis input[type=checkbox] {
  display: none;
}

.tt-card .tt-skill-vislabel {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-size: 12px;
  opacity: 0.9;
}

/* input: no bg/border + right aligned value */
.tt-card .tt-skills .tt-number {
  width: 50px;
  text-align: right;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 2px;
}

.character-manager-box .tt-number {
  font-size: 13px;
}

/* hidden skill row grayed out (includes input) */
.tt-card .tt-skill-row.tt-skill-hidden {
  opacity: 0.45;
}

/* Remove number input spinners (Chrome/Edge/Safari) */
.tt-card .tt-skills input[type=number]::-webkit-outer-spin-button,
.tt-card .tt-skills input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove number input spinners (Firefox) */
.tt-card .tt-skills input[type=number] {
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
          appearance: textfield;
}

/* card must allow badge to stick out */
.character-manager-box .tt-card {
  position: relative;
  overflow: visible;
}

/* floating Verified badge on the top border (centered) */
.tt-cm-verified-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -55%); /* pulls it above the border */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #18181b;
  border: 1px solid rgba(34, 197, 94, 0.55);
  font-weight: 700;
  font-size: 12px;
  color: #22c55e;
  pointer-events: none; /* so it doesn't block clicks */
}

.tt-cm-btn-add,
.tt-cm-btn-save {
  background: #059669; /* green */
  border-color: rgba(255, 255, 255, 0.12);
}

.tt-cm-btn-revert {
  background: #18181b; /* dark */
  border-color: #3f3f46;
}

.tt-input.tt-locked-name {
  cursor: not-allowed;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tt-input.tt-locked-name:focus {
  outline: none;
  box-shadow: none;
}

.template-list-toggle[data-active="0"] {
  background: #18181b;
}

.character-manager-box .tt-select {
  width: 120px;
}

/* =========================
   CHARACTERS (page-specific)
   ========================= */
.tt-ch-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.tt-ch-title {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 12px;
}

.tt-ch-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 6px 0 0;
}

.tt-ch-box {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 220px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.tt-ch-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.tt-ch-empty {
  margin-top: 14px;
  opacity: 0.9;
  text-align: center;
}

.tt-ch-link {
  text-decoration: underline;
}

.tt-ch-locked {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 18px;
  max-width: 520px;
  margin: 18px auto 0;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.tt-ch-locked-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

.tt-ch-locked-text {
  opacity: 0.9;
}

.tt-click-row {
  cursor: pointer;
  padding: 6px 2px;
}

.tt-click-row:hover {
  background: #1f2937;
}

.tt-colhdr {
  font-size: 12px;
  color: #a1a1aa;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tt-mark {
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

.tt-mark-ok {
  color: #22c55e;
}

.tt-mark-no {
  color: #ef4444;
}

.tt-mark-mand {
  color: #a1a1aa;
} /* mandatory outfit base ✓ */
.tt-ch-row {
  cursor: pointer;
  padding: 0 8px;
}

.tt-ch-row:hover {
  background: #1f2937;
}

/* skills underline + separator */
.tt-ch-skills {
  border-top: 1px solid #3f3f46;
  margin-top: 10px;
}

.tt-ch-skill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  border-bottom: 1px solid #3f3f46;
}

.tt-ch-skill-row:last-child {
  border-bottom: 0;
}

/* outfits grid */
.tt-outfit-grid {
  display: grid;
  grid-template-columns: 1fr 40px 40px 40px; /* narrower mark cols */
  gap: 6px;
  align-items: center;
}

.tt-outfit-row {
  border-bottom: 1px solid #3f3f46;
  padding: 0 8px;
}

.tt-outfit-row:last-child {
  border-bottom: 0;
}

/* =========================
   Characters: single-sheet 3-column layout
   ========================= */
.tt-ch-sheet {
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 16px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
}

.tt-ch-col {
  padding: 14px;
}

.tt-ch-col-1 {
  flex: 0 0 250px;
}

.tt-ch-col-2 {
  flex: 0 0 240px;
}

.tt-ch-col-3 {
  flex: 0 0 265px;
} /* keep the width you had before */
.tt-ch-sep {
  width: 1px;
  background: #3f3f46;
  opacity: 0.9;
  align-self: stretch;
  margin: 14px 0; /* makes the line NOT touch top/bottom */
}

#ttCharactersOutfits .tt-mark-no,
#ttCharactersRetroOutfits .tt-mark-no {
  color: #a1a1aa !important;
}

.tt-questlog-status-row .tt-status-pill {
  border-radius: 0;
  margin: 0;
  min-width: 117px;
}

.tt-ch-col-1 {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tt-ch-col-1 .tt-outfit-grid {
  grid-template-columns: 1fr 50px;
}

.tt-ch-retro-outfits {
  margin-top: auto;
  padding-top: 10px;
}

.characters-content .tt-quest-row:hover {
  background: #1f2937;
}

.character-level-editable {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.character-level-editable:hover {
  background: #1f2937;
}

@media (min-width: 1051px) {
  .characters-content section,
  .profile-content section {
    width: 810px !important;
    max-width: 810px !important;
    margin: auto;
  }
  #ttCharactersSheet {
    max-height: 650px;
  }
  .mini-questlog-scrollable {
    height: 440px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .mini-questlog-scrollable::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
}
@media (max-width: 1050px) {
  .tt-ch-sheet {
    flex-wrap: wrap;
  }
  .tt-ch-sep {
    display: none;
  }
  .tt-ch-col-1, .tt-ch-col-2, .tt-ch-col-3 {
    flex: 1 1 100%;
  }
}
#ttCharactersNameSpan,
#ttProfileNameSpan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 0 14px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  min-height: 32px;
}
#ttCharactersNameSpan .tt-hidden-baddge,
#ttCharactersNameSpan .tt-verify-badge,
#ttProfileNameSpan .tt-hidden-baddge,
#ttProfileNameSpan .tt-verify-badge {
  margin-left: 5px;
}

.tt-market-tablewrap {
  margin-top: 14px;
}

.tt-market-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: 0;
}

.tt-market-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #3f3f46;
  color: #e4e4e7;
  font-weight: 800;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.tt-market-table td {
  padding: 10px 12px;
  vertical-align: top;
}

.tt-market-msg {
  width: auto;
}

.tt-market-line {
  line-height: 1.2;
  min-height: 2.4em;
}

.tt-market-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.tt-sell-label {
  color: #22c55e;
  font-weight: 900;
}

.tt-buy-label {
  color: #fb923c;
  font-weight: 900;
}

.tt-market-contacts {
  white-space: normal;
}

.tt-market-contact {
  line-height: 1.2;
}

.tt-market-table thead th {
  text-align: left;
  font-weight: 800;
  padding: 10px 10px;
  background: transparent;
}

.tt-market-table tbody td {
  /* kill old row borders so our “card borders” are clean */
  border: 0 !important;
  background: transparent;
  padding: 0; /* padding goes on the inner cell classes below */
  vertical-align: top;
}

/* inner cells */
.tt-market-cell-active,
.tt-market-cell-offer,
.tt-market-cell-chars {
  background: #27272a;
  padding: 12px;
}

.tt-market-cell-active {
  text-align: center;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 900;
  border: 2px solid #52525b;
  border-right: 1px solid #3f3f46;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.tt-market-cell-chars {
  border: 2px solid #52525b;
  border-left: 1px solid #3f3f46;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* labels */
.tt-market-offer-label {
  font-weight: 900;
  margin-right: 8px;
}

.tt-market-entry-table {
  width: 100%;
}

/* outer table: spacing between entries */
/* wrapper cell is the card */
.tt-market-entry-card {
  padding: 0;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 14px;
  overflow: hidden;
}

/* inner layout table */
.tt-market-entry-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.tt-market-entry-table td {
  padding: 12px;
  border: 0;
  background: transparent;
  vertical-align: top;
}

.tt-market-entry-active {
  display: table-cell;
  width: 50px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
  text-align: center;
  position: relative;
}

.tt-market-age {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font-weight: 900;
  white-space: nowrap;
  font-size: 18px;
  text-align: center;
  padding-top: 6px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-market-entry-chars {
  vertical-align: middle;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 250px;
}

.tt-market-entry-table {
  padding-bottom: 12px;
  border-bottom: 1px solid #3f3f46;
}

/* =========================
   MARKET TAB
   ========================= */
.tt-market-card {
  width: 100%;
  height: auto;
}

.tt-market-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tt-market-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tt-market-action-btn {
  width: 120px; /* same width for Change/Ping/Update */
  padding: 10px 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tt-market-contacts {
  font-size: 14px;
  line-height: 1.2;
}

.tt-market-picked {
  font-weight: 700;
  margin-left: 6px;
}

.tt-market-offer-row {
  display: flex;
  align-items: center;
  gap: 6px; /* smaller gap between SELL/BUY and input */
  margin-top: 10px;
}

.tt-market-label {
  width: 52px; /* smaller label column */
  flex: 0 0 auto;
  font-weight: 800;
}

.tt-market-board-table {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.tt-market-charline {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 2px 6px;
  margin: 2px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.tt-market-charline:hover {
  background: rgba(255, 255, 255, 0.06);
  filter: brightness(1.06);
}

.tt-market-charline:active {
  filter: brightness(1.2);
}

.tt-market-charname {
  font-weight: 700;
}

.tt-market-charmeta {
  white-space: nowrap;
}

.tt-market-copy {
  width: 44px;
  flex: 0 0 44px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #18181b;
  color: #e4e4e7;
  font-size: 12px;
  cursor: pointer;
}

.tt-market-copy:hover {
  filter: brightness(1.08);
}

.tt-market-verified {
  color: #22c55e;
  font-weight: 800;
}

.tt-market-unverified {
  color: #bb3333;
  font-weight: 800;
}

.tt-market-age-1h {
  color: #22c55e;
}

.tt-market-age-24h {
  color: #16a34a;
}

.tt-market-age-7d {
  color: #f59e0b;
}

.tt-market-age-old {
  color: #7f1d1d;
}

.tt-market-age-unknown {
  color: #a1a1aa;
}

/* Marketboard container spacing */
.tt-market-board-card {
  margin-top: 12px;
}

.tt-market-board-controls {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.tt-market-entry-row {
  border-top: 1px solid #3f3f46;
}

.tt-market-entry-row td {
  padding: 0;
  background: #27272a;
  border-top: 1px solid #3f3f46;
}

/* Offers cell = two stacked blocks with a divider */
.tt-market-entry-offers {
  vertical-align: top;
}

.tt-market-entry-sell {
  padding: 6px 12px;
}

.tt-market-entry-buy {
  padding: 6px 12px;
}

.tt-market-entry-sell .tt-market-offer-label {
  color: #22c55e;
}

.tt-market-entry-buy .tt-market-offer-label {
  color: #fb923c;
}

.tt-market-label-sell {
  color: #22c55e;
}

.tt-market-label-buy {
  color: #fb923c;
}

.tt-market-entry-sell:hover, .tt-market-entry-buy:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.tt-market-root {
  max-width: 1100px;
  margin: 0 auto;
}

.tt-market-card {
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.tt-market-myrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tt-market-contact-btn {
  width: auto;
  padding: 10px 14px;
}

.tt-market-input {
  width: 260px;
  max-width: 92vw;
}

.tt-market-update {
  width: auto;
  padding: 10px 16px;
  background: #059669;
  border-color: rgba(255, 255, 255, 0.12);
}

.tt-market-searchrow {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tt-market-search {
  width: 300px;
  max-width: 92vw;
}

.tt-market-search-btn,
.tt-market-refresh {
  width: auto;
  padding: 10px 14px;
}

.tt-market-update:not(.tt-btn-disabled):not(:disabled) {
  animation: greenButtonGlow 1.8s ease-in-out infinite;
}

/* let inputs in offer rows stretch nicely */
.tt-market-offer-row .tt-input {
  flex: 1 1 auto;
  min-width: 0;
}

/* trade row label is longer */
.tt-market-label-trade {
  width: 150px; /* adjust if you want */
}

.tt-market-trade-apply {
  flex: 0 0 auto;
  padding: 6px 10px;
}

.tt-market-title-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

/* =========================
   MARKET: compact mode
   ========================= */
.tt-market-compact {
  /* match character-card vibe */
  /* tighter rows */
  /* make SELL/BUY lines single-line (much more rows visible) */
  /* tighter character buttons */
}
.tt-market-compact .tt-market-card {
  background: rgba(24, 24, 27, 0.92); /* darker */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 10px 12px; /* less whitespace */
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.tt-market-compact .tt-market-title {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.tt-market-compact .tt-market-board-controls {
  gap: 8px;
  align-items: center;
}
.tt-market-compact #ttMarketSearch {
  width: 260px !important;
  font-size: 13px;
}
.tt-market-compact #ttMarketRefreshBtn {
  padding: 4px 12px 5px 12px !important;
  border-radius: 10px;
  font-size: 13px;
}
.tt-market-compact .tt-hidden-label {
  font-size: 12px;
}
.tt-market-compact .tt-market-table thead th {
  padding: 6px 8px;
  font-size: 14px;
}
.tt-market-compact .tt-market-entry-active,
.tt-market-compact .tt-market-entry-chars {
  padding: 0;
}
.tt-market-compact .tt-market-entry-sell,
.tt-market-compact .tt-market-entry-buy {
  padding: 4px 10px;
}
.tt-market-compact .tt-market-age {
  font-size: 16px; /* was 18 */
}
.tt-market-compact .tt-market-entry-offer {
  display: flex;
  gap: 4px;
  align-items: baseline;
  flex-wrap: wrap; /* allow wrapping */
  width: 100%;
  max-width: 100%;
  padding: 6px 10px;
}
.tt-market-compact .tt-market-offer-label {
  margin-right: 4px;
  white-space: nowrap;
}
.tt-market-compact .tt-market-offer-text {
  flex: 1 1 100%; /* take full line when needed */
  min-width: 0;
  max-width: 100%;
  white-space: normal; /* WRAP */
  overflow-wrap: anywhere; /* break long tokens */
  word-break: break-word;
  line-height: 1;
}
.tt-market-compact .tt-market-charline {
  padding: 0;
  margin: 1px 0;
  gap: 6px;
}
.tt-market-compact .tt-market-charmeta {
  font-size: 13px;
}

.tt-profile-shell {
  width: 780px;
  max-width: 72rem;
  margin: 0 auto;
}

.tt-profile-panel {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 27, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  padding: 14px 16px;
}

.tt-profile-panel-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.4px;
}

.tt-profile-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-weight: 700;
}

/* ---- TOP BAR: selector left, search right ---- */
.tt-profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.tt-profile-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 320px;
}

.tt-profile-topbar-label {
  font-weight: 900;
  opacity: 0.92;
  white-space: nowrap;
}

/* selector fixed */
.tt-profile-char-select {
  width: 300px;
  max-width: 300px;
}

/* right side: separator + search */
.tt-profile-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* ---- Search popup ---- */
.tt-profile-root {
  position: relative; /* anchor for popup */
}

.tt-profile-search-results {
  position: absolute;
  right: 0;
  top: 54px;
  width: min(520px, 100% - 8px);
  z-index: 50;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 9, 11, 0.95);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.tt-profile-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tt-profile-search-title {
  font-weight: 900;
}

.tt-profile-search-close {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(24, 24, 27, 0.9);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 900;
}

.tt-profile-search-list {
  max-height: 320px;
  overflow: auto;
  padding: 6px 0;
}

.tt-profile-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.tt-profile-search-row:hover {
  background: rgba(24, 24, 27, 0.55);
}
.tt-profile-search-row:last-child {
  border-bottom: 0;
}

.tt-profile-search-row-name {
  font-weight: 900;
}

.tt-profile-search-row-meta {
  opacity: 0.9;
}

.tt-profile-search-row-verified {
  margin-left: auto;
  color: #22c55e;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ---- BIG CHARACTER BOX ---- */
.tt-profile-char-wide {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 27, 0.7);
  padding: 12px;
}

.tt-profile-char-grid {
  display: grid;
  grid-template-columns: 200px 230px 250px;
  grid-template-rows: 80px auto;
  gap: 0;
}

/* header spans col1+col2 (so col2 starts lower) */
.tt-profile-char-head {
  grid-column: 1/3;
  grid-row: 1;
  padding: 8px 12px 10px 12px;
}

/* columns */
.tt-profile-col {
  padding: 12px;
  position: relative;
}

.tt-profile-col-skills {
  grid-column: 1;
  grid-row: 2;
}

.tt-profile-col-coming {
  grid-column: 2;
  grid-row: 2;
}

.tt-profile-col-quests {
  grid-column: 3;
  grid-row: 1/3;
}

/* separators */
.tt-profile-col-coming::before,
.tt-profile-col-quests::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Character name + meta */
.tt-profile-char-name {
  font-size: 28px; /* smaller */
  font-weight: 900;
  line-height: 1.05;
}

.tt-profile-char-subline {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-profile-char-meta {
  font-size: 18px;
  font-weight: 900;
  opacity: 0.95;
}

/* column titles */
.tt-profile-col-title {
  font-size: 16px;
  font-weight: 900;
  opacity: 0.95;
}

/* Skills: compact + no boxes */
.tt-profile-skill-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 10px;
}

.tt-profile-skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 1px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.tt-profile-addon-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 10px;
}

.tt-profile-addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 1px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.tt-profile-addon-row:last-child {
  border-bottom: 0;
}

.tt-profile-skill-name {
  opacity: 0.92;
}

.tt-profile-skill-value {
  font-weight: 900;
}

/* Quests wrappers */
.tt-profile-quest-wrap {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 27, 0.65);
  overflow: hidden;
}

.tt-profile-quest-top {
  padding: 10px 12px 8px 12px;
  font-weight: 900;
  font-size: 18px;
}

.tt-profile-quest-list {
  padding: 8px 12px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 240px;
  overflow: auto;
}

.tt-profile-quest-line {
  padding: 3px 0;
  font-size: 14px;
  line-height: 1.25;
  opacity: 0.96;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.tt-profile-quest-line:last-child {
  border-bottom: 0;
}

.tt-q-green {
  color: #22c55e;
}

.tt-q-yellow {
  color: #facc15;
}

.tt-q-purple {
  color: #a855f7;
}

.tt-profile-search-input {
  width: 170px !important;
  height: 29.6px;
}

.tt-profile-char-select {
  width: 200px !important;
}

.tt-profile-search-btn {
  width: 100px !important;
}

.verify-characters {
  width: 70px !important;
}

/* Responsive */
@media (max-width: 1050px) {
  .tt-profile-char-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
  }
  .tt-profile-char-head {
    grid-column: 1;
  }
  .tt-profile-col-skills {
    grid-column: 1;
    grid-row: 2;
  }
  .tt-profile-col-coming {
    grid-column: 1;
    grid-row: 3;
  }
  .tt-profile-col-quests {
    grid-column: 1;
    grid-row: 4;
  }
  .tt-profile-col-coming::before,
  .tt-profile-col-quests::before {
    display: none;
  }
  .tt-profile-topbar-right {
    width: 520px;
    margin: 0 auto 8px;
    border-left: 0;
    padding-left: 0;
  }
  .tt-profile-search-results {
    left: 0;
    right: 0;
    width: 100%;
  }
  .tt-ch-wrap {
    max-width: 520px;
  }
  .tt-profile-topbar {
    margin: 0 auto;
    max-width: 580px;
  }
}
.tt-profile-market-mini {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 9, 11, 0.4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tt-profile-market-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 16px;
}

.tt-profile-market-key {
  font-weight: 900;
  letter-spacing: 0.4px;
  min-width: 56px;
  opacity: 0.95;
}

.tt-profile-market-val {
  font-weight: 700;
  opacity: 0.95;
  word-break: break-word;
}

.tt-profile-market-empty {
  opacity: 0.75;
}

/* ===== Profile now reuses Characters 3-column layout (read-only) ===== */
.tt-profile-readonly .tt-ch-row {
  cursor: default;
}

.tt-profile-readonly .tt-ch-row:hover {
  background: transparent;
}

/* Disable changing quest status (but keep filter buttons clickable) */
.tt-profile-readonly #ttQuestTable .tt-status-pill {
  pointer-events: none;
  cursor: default;
}

/* Small visual cue for active status filter */
.tt-profile-readonly .tt-quest-status-filter.is-active {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: -1px;
}

#ttProfileOutfits .tt-mark-no,
#ttProfileRetroOutfits .tt-mark-no {
  color: #a1a1aa !important;
}

.uneditable-box .tt-quest-row .tt-status-cell {
  cursor: default;
}

.tt-profile-controlbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 12px;
}

/* =========================
   QUESTLOG TAB
   ========================= */
.tt-questlog-top {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tt-quest-char-select {
  width: 220px;
  max-width: 100%;
}

.tt-quest-search {
  width: 220px; /* requested ~300px */
  max-width: 100%;
}

.tt-table-scroll {
  margin-top: 15px;
  width: 100%;
}

.quest-table-wrapper {
  border: 1px solid #3f3f46;
  border-radius: 12px;
  background: #18181b;
}

.tt-quest-row {
  border-top: 1px solid #3f3f46;
}

.tt-quest-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 630px; /* forces horizontal scroll on small screens */
}

.tt-quest-table thead th {
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.tt-quest-table tbody td {
  font-size: 13px;
  padding: 4px 4px;
}
.tt-quest-table tbody td:first-child {
  padding-left: 8px;
}

.tt-quest-table tbody tr:hover {
  filter: brightness(1.06);
}

.tt-questlog-top-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.tt-questlog-top-row-filters {
  margin-top: 10px;
}

.tt-quest-table td,
.tt-quest-table th {
  vertical-align: middle; /* use 'top' if you prefer */
}

.tt-quest-table tbody td.tt-quest-name {
  line-height: 1.1;
  padding-top: 2px;
  padding-bottom: 2px;
  vertical-align: middle;
}

.tt-quest-table tbody td.tt-quest-rewards {
  vertical-align: middle;
}

/* =========================
   CREATURES VIEW
   concise table + loot bricks
   ========================= */
.tt-creatures-top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tt-creatures-search {
  width: 260px;
  max-width: 100%;
}

.tt-creatures-min-value {
  width: 80px;
}

.tt-creatures-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.tt-creatures-table thead th {
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.tt-creatures-table thead th.tt-sortable {
  cursor: pointer;
}

.tt-creatures-table thead th.tt-sortable:hover {
  filter: brightness(1.06);
}

.tt-th-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tt-sort-arrow {
  font-size: 11px;
  opacity: 0.9;
}

.tt-creatures-table tbody td {
  font-size: 13px;
  padding: 3px 4px; /* tight */
  vertical-align: middle;
}

.tt-creature-name-cell {
  gap: 8px;
  line-height: 1.05;
  padding-top: 2px;
  padding-bottom: 2px;
}

.tt-creature-icon {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  flex: 0 0 auto;
}

.tt-creature-icon--empty {
  width: 40px;
  height: 40px;
  display: inline-block;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  background: #18181b;
}

.tt-creature-name {
  font-size: 15px;
  letter-spacing: 0.2px;
}

.tt-creature-num {
  font-variant-numeric: tabular-nums;
}

.tt-loot-cell {
  padding-top: 2px;
  padding-bottom: 2px;
}

.tt-loot-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3px; /* very tight */
  align-items: center;
}

.tt-loot-brick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 7px;
  padding: 1px 6px; /* almost zero */
  margin: 0;
  line-height: 1.05;
  white-space: nowrap;
}

#ttCreaturesTable .tt-loot-brick {
  padding: 4px 8px;
  border-radius: 0;
}

.tt-loot-icon {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  flex: 0 0 auto;
}

.tt-loot-icon--empty {
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 1px solid #3f3f46;
  border-radius: 4px;
  background: #0f0f12;
}

.tt-loot-name {
  font-size: 13px;
}

.tt-creatures-table tbody tr {
  border-top: 1px solid #3f3f46;
}
.tt-creatures-table tbody tr td {
  padding: 8px 8px;
}

#ttCreaturesTable thead th {
  padding: 8px;
}

.tt-hunt-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tt-hunt-modal {
  width: min(980px, 100%);
}

.tt-hunt-leftbox {
  border: 1px solid #3f3f46;
  background: #18181b;
  border-radius: 12px;
  padding: 10px;
}

.tt-hunt-templates-toprow {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.tt-hunt-searchrow {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.tt-hunt-tpl-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  padding-right: 6px;
}

.tt-hunt-tpl-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.tt-hunt-tpl-btn {
  width: 100%;
  text-align: left;
  padding: 6px 10px;
}

.tt-hunt-tpl-del {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #7f1d1d;
  background: rgba(127, 29, 29, 0.25);
}

.tt-hunt-tpl-del:hover {
  background: rgba(127, 29, 29, 0.35);
}

.tt-hunt-creatures {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border: 1px solid #3f3f46;
  background: #18181b;
  border-radius: 12px;
  max-height: 220px;
  overflow: auto;
}

.tt-hunt-creature-brick {
  padding: 6px 8px;
  border-radius: 0;
  border: 1px solid rgb(63, 63, 70);
  background: rgb(24, 24, 27);
  cursor: pointer;
}

.tt-hunt-creature-brick:hover {
  filter: brightness(1.1);
}

.tt-hunt-creature-brick.tt-muted {
  opacity: 0.45;
}

.tt-hunt-creature-brick.is-selected {
  opacity: 1;
  border-color: rgb(34, 197, 94);
  background: rgb(14, 38, 23);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.28) inset;
}
.tt-hunt-creature-brick.is-selected .tt-muted {
  color: white;
}

.tt-hunt-creature-brick.is-hit {
  opacity: 0.6;
}

.tt-hunt-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px;
  border: 1px solid #3f3f46;
  background: #18181b;
  border-radius: 12px;
  max-height: 360px;
  overflow: auto;
}

.tt-hunt-item-brick {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 1px solid rgb(63, 63, 70);
  background: rgb(24, 24, 27);
  border-radius: 0;
  min-width: 150px;
}

.tt-hunt-item-img {
  width: 22px;
  height: 22px;
  -o-object-fit: contain;
     object-fit: contain;
  image-rendering: pixelated;
}

.tt-hunt-item-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-hunt-item-value {
  width: 110px;
}

.tt-hunt-item-include {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
}

.tt-hunt-item-brick.is-on {
  border-color: rgb(34, 197, 94);
  background: rgb(14, 38, 23);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.28) inset;
}
.tt-hunt-item-brick.is-on .tt-muted {
  color: white;
}

.tt-hunt-supply-brick:not(.is-on) {
  border-color: rgba(63, 63, 70, 0.85);
  background: rgb(18, 18, 21);
}

.tt-hunt-supply-brick.is-on {
  border-color: rgb(34, 197, 94);
  background: rgb(14, 38, 23);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.28) inset;
}
.tt-hunt-supply-brick.is-on .tt-muted {
  color: white;
}

.tt-hunt-toggle {
  cursor: pointer;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 8px 8px;
  border: 1px solid transparent;
  border-radius: 0;
  line-height: 1.1;
  opacity: 0.9;
}

.tt-hunt-toggle:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(161, 161, 170, 0.35);
  opacity: 1;
}

.tt-hunt-supplies {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px;
  border: 1px solid #3f3f46;
  background: #18181b;
  border-radius: 12px;
  margin-bottom: 12px;
}

.tt-hunt-supply-brick {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgb(63, 63, 70);
  background: rgb(24, 24, 27);
  border-radius: 0;
}

.tt-hsp-col {
  border: 1px solid rgb(63, 63, 70);
  background: rgb(24, 24, 27);
  overflow: hidden;
}

.tt-hsp-colhdr {
  padding: 6px 8px;
  border-bottom: 1px solid #3f3f46;
  font-size: 18px;
  line-height: 1;
}

.tt-hsp-subhdr td {
  padding: 4px 6px;
  font-size: 14px;
  opacity: 0.85;
  border-bottom: 1px solid #3f3f46;
}

.tt-hsp-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, 250px);
  gap: 10px;
  justify-content: center;
  align-items: start;
}

.tt-hsp-scroll {
  max-height: 520px;
  overflow: auto;
}

.tt-hsp-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tt-hsp-table td {
  padding: 1px 6px;
  border-bottom: 1px solid rgba(63, 63, 70, 0.35);
  vertical-align: middle;
}

.tt-hsp-name {
  font-size: 16px;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tt-hsp-pricecell {
  width: 56px;
}

.tt-hsp-unit {
  width: 26px;
  text-align: right;
  opacity: 0.7;
  font-size: 14px;
}

.tt-hsp-price {
  width: 50px;
  padding: 1px 4px !important;
  height: 22px;
}

/* hide number arrows only inside this modal */
#ttHuntSuppliesPricesBackdrop input[type=number]::-webkit-outer-spin-button,
#ttHuntSuppliesPricesBackdrop input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tt-modal-scroll {
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

.tt-modal-scroll > .tt-modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-top: 12px;
  padding-right: 6px; /* leave room for scrollbar */
  padding-bottom: 12px;
}

#ttHuntSheetHost {
  padding: 14px;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  background: rgb(24, 24, 27);
}
#ttHuntSheetHost .tt-hunt-name, #ttHuntSheetHost span {
  font-size: 14px;
}

.tt-hunt-sheet {
  font-size: 13px;
  display: grid;
  grid-template-columns: 230px 15px 1fr;
  align-items: start;
  gap: 0;
  min-height: 180px;
}

.tt-hunt-col {
  min-width: 0;
}

.tt-hunt-col-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 14px;
}

.tt-hunt-col-sep {
  display: flex;
  justify-content: center;
  align-self: stretch;
}

.tt-hunt-col-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tt-hunt-sep {
  width: 2px;
  border-radius: 2px;
  background: #3f3f46;
  height: 100%;
  min-height: 180px;
}

.tt-hunt-char {
  width: 220px;
}

.tt-hunt-total {
  margin: 0;
  font-size: 18px !important;
  font-weight: 900;
  white-space: nowrap;
}

.tt-hunt-table-head {
  display: grid;
  grid-template-columns: 1fr 86px;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid #3f3f46;
  background: rgb(18, 18, 20);
}

.tt-hunt-th-name {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.tt-hunt-th-amt {
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  letter-spacing: 0.2px;
}

.tt-hunt-table-body {
  display: flex;
  flex-direction: column;
}

.tt-hunt-row {
  display: grid;
  grid-template-columns: 70px 26px 120px;
  align-items: center;
  gap: 1px;
  padding: 2px 0;
  border-top: 1px solid #3f3f46;
}

.tt-hunt-table-body .tt-hunt-row:first-child {
  border-top: 0;
}

.tt-hunt-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tt-hunt-amt {
  width: 70px;
  height: 26px;
  padding: 1px 4px;
  text-align: right;
}

.tt-hunt-loot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tt-hunt-loot-brick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgb(63, 63, 70);
  background: rgb(24, 24, 27);
  min-width: 220px;
  flex: 0 0 auto;
}

.tt-hunt-loot-brick .tt-hunt-amt {
  width: 76px;
}

@media (max-width: 1050px) {
  .tt-hunt-sheet {
    grid-template-columns: 1fr;
  }
  .tt-hunt-col-sep {
    display: none;
  }
  .tt-hunt-col-left,
  .tt-hunt-col-right {
    padding: 0;
  }
}
.tt-hunt-sheet .tt-hunt-loot-brick {
  min-width: 100px;
  padding: 2px 3px 2px 4px;
}

.hunt-content input[type=number] {
  text-align: center;
}

.hunt-header {
  width: 100%;
  display: flex;
  gap: 10px;
  padding-bottom: 6px;
}

.hunt-title {
  width: 400px;
}

.hunt-top-section {
  font-size: 13px;
  display: grid;
  grid-template-columns: 230px 460px;
  align-items: start;
  gap: 0;
  padding-bottom: 14px;
}
.hunt-top-section .start-exp, .hunt-top-section .end-exp, .hunt-top-section .gained-exp {
  width: 100px;
}
.hunt-top-section .gained-exp {
  color: #22c55e;
}
.hunt-top-section .hunt-info, .hunt-top-section .hunt-exp-time {
  width: 100%;
}
.hunt-top-section .hunt-info {
  padding-right: 14px;
}
.hunt-top-section .hunt-exp-time {
  display: grid;
  grid-template-columns: 210px 250px;
}
.hunt-top-section .hunt-exp-time .left-col {
  padding-left: 14px;
  border-left: 1px solid #3f3f46;
}
.hunt-top-section .row {
  width: 100%;
  padding-bottom: 6px;
  height: 36;
  vertical-align: middle;
}
.hunt-top-section span {
  display: inline-block;
  line-height: 30px;
}
.hunt-top-section .tt-input {
  padding: 3px 8px;
}

.hunt-date {
  width: 120px;
  padding: 2px 10px;
}

.tt-hunt-time {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tt-hunt-time-label {
  opacity: 0.85;
}

.tt-hunt-time-btn {
  background: transparent;
  color: inherit;
  border-radius: 30px;
  padding: 2px 10px 4px;
  line-height: 25px;
  font-size: 20px;
  width: 33px;
  border: 1px solid rgb(63, 63, 70);
}
.tt-hunt-time-btn:hover {
  background: #1f2937;
}

.tt-hunt-time-btn.is-plus {
  color: rgba(34, 197, 94, 0.85);
  border-color: rgba(34, 197, 94, 0.85);
}

.tt-hunt-time-btn.is-minus {
  color: rgba(239, 68, 68, 0.85);
  border-color: rgba(239, 68, 68, 0.85);
}

.tt-hunt-time-pill {
  border: 1px solid rgb(63, 63, 70);
  border-radius: 12px;
  padding: 2px 10px;
  background: rgb(24, 24, 27);
}

.waste-head, .loot-head {
  font-weight: 800;
  text-align: center;
  font-size: 16px !important;
  padding-bottom: 6px;
  border-bottom: 1px solid #3f3f46;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hunt-summary {
  gap: 14px;
  width: 100%;
  display: flex;
  align-items: center;
}
.hunt-summary button {
  margin-left: auto;
}

@media (max-width: 1050px) {
  .hunt-top-section {
    display: flex;
    flex-direction: column;
  }
  .hunt-top-section .left-col {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
}
.template-list-wrapper,
.template-info-box {
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

.template-info-box {
  padding-left: 10px;
  border-left: 1px solid rgb(63, 63, 70);
}

.template-list-toggle {
  width: 120px;
}

.hunt-template-name-input {
  width: 300px;
}

.tt-hunt-item-value {
  width: 80px;
  padding: 2px 4px;
  height: 24px;
  margin-right: 4px;
}

.hunt-header {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
}

.real-time-timer {
  width: 100%;
  text-align: center;
  font-size: 38px !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white; /* red when paused */
}

.real-time-timer.is-running {
  color: #22c55e; /* green when running */
}

.toggle-timer.active {
  border-color: #22c55e;
}

.hunts-wrapper {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  background: rgb(24, 24, 27);
}
.hunts-wrapper table {
  margin-top: 14px;
}
.hunts-wrapper table thead td {
  text-align: center;
  padding: 4px 6px;
}
.hunts-wrapper table tbody tr {
  border-top: 1px solid #3f3f46;
}
.hunts-wrapper table tbody tr td {
  padding: 4px 6px;
}
.hunts-wrapper table td:not(:first-child) {
  border-left: 1px solid #3f3f46;
}
.hunts-wrapper table .hunt-name {
  max-width: 450px;
  text-wrap: wrap;
}
.hunts-wrapper table button {
  padding: 2px 10px;
}

.template-info-details {
  max-height: 50vh;
  overflow-y: auto;
}

.tt-hunt-leftbox {
  background: radial-gradient(700px 420px at 18% 0%, rgba(201, 168, 106, 0.06), transparent 58%), #18181b;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(201, 168, 106, 0.07);
  padding: 10px;
}

.tt-hunt-creatures {
  background: radial-gradient(700px 420px at 18% 0%, rgba(201, 168, 106, 0.06), transparent 58%), #18181b;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(201, 168, 106, 0.07);
}

.tt-hunt-items {
  background: radial-gradient(700px 420px at 18% 0%, rgba(201, 168, 106, 0.06), transparent 58%), #18181b;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(201, 168, 106, 0.07);
}

.tt-hunt-supplies {
  background: radial-gradient(700px 420px at 18% 0%, rgba(201, 168, 106, 0.06), transparent 58%), #18181b;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(201, 168, 106, 0.07);
}

.tt-hsp-col {
  background: radial-gradient(700px 420px at 18% 0%, rgba(201, 168, 106, 0.06), transparent 58%), #18181b;
  border: 1px solid #3f3f46;
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(201, 168, 106, 0.07);
  overflow: hidden;
}

.tt-timecode-edit {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 14px 10px;
  text-align: center;
  /* make it feel like a retro readout */
  background: radial-gradient(700px 420px at 18% 0%, rgba(201, 168, 106, 0.06), transparent 58%), #18181b;
  border: 1px solid #3f3f46;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(201, 168, 106, 0.07);
}

.tt-timecode-input {
  /* remove normal input styling and make it look like digits */
  width: 2.2ch; /* fits 2 digits nicely */
  padding: 0;
  text-align: center;
  font-size: 54px; /* BIG */
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: #e8d7b3;
  background: transparent;
  border: none;
  outline: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.75), 0 0 16px rgba(201, 168, 106, 0.18);
  /* keep the field “focus” feel without showing a border */
  /* hide spinners */
  -moz-appearance: textfield;
}
.tt-timecode-input:focus {
  box-shadow: 0 0 0 4px rgba(201, 168, 106, 0.16);
  border-radius: 10px;
}
.tt-timecode-input::-webkit-outer-spin-button, .tt-timecode-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tt-timecode-sep,
.tt-timecode-fixed {
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: #e8d7b3;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.75), 0 0 16px rgba(201, 168, 106, 0.18);
}

.tt-timecode-sep {
  opacity: 0.85;
}

.tt-timecode-fixed {
  opacity: 0.65; /* “seconds” dimmed a bit since it's locked to 00 */
}

.tt-timecode-hint {
  margin-top: 10px;
  text-align: center;
}

#ttHuntLootBricks input,
.tt-hunt-supply-row input {
  border-radius: 0;
}

.tt-tools-grid {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 16px;
  padding: 14px 14px;
}

.tt-tool-tile {
  width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* typography specific to tiles */
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #e8d7b3;
  /* skin: warm content accent */
  background: radial-gradient(700px 420px at 18% 0%, rgba(201, 168, 106, 0.14), transparent 55%), radial-gradient(650px 380px at 95% 60%, rgba(139, 90, 43, 0.12), transparent 60%), #27272a;
  border: 1px solid #3f3f46;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(201, 168, 106, 0.1);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.tt-tool-tile:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  border-color: rgba(201, 168, 106, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(201, 168, 106, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(201, 168, 106, 0.16);
}
.tt-tool-tile:active {
  transform: translateY(0);
  filter: brightness(0.99);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -2px 0 rgba(0, 0, 0, 0.45);
}

.tt-runemaking-grid {
  display: grid;
  grid-template-columns: 30px 150px 70px 70px 70px 65px;
  gap: 6px;
  align-items: center;
}

.tt-runemaking-row {
  padding: 6px 8px;
  border-bottom: 1px solid #3f3f46;
}

.tt-runemaking-row input.tt-number {
  width: 110px;
}

#ttSkillCalcModal input.tt-input, #ttRunemakingModal input.tt-input {
  text-align: center;
  width: 60px;
}
#ttSkillCalcModal input[type=number], #ttRunemakingModal input[type=number] {
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
          appearance: textfield;
}
#ttSkillCalcModal input[type=number]::-webkit-outer-spin-button,
#ttSkillCalcModal input[type=number]::-webkit-inner-spin-button, #ttRunemakingModal input[type=number]::-webkit-outer-spin-button,
#ttRunemakingModal input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#ttSkillCalcModal #ttSkillCalcResults, #ttRunemakingModal #ttSkillCalcResults {
  font-size: 14px;
}

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.help-link::after {
  content: "↗";
  font-size: 12px;
  opacity: 0.9;
}

.help-link:hover {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25) inset;
}

.help-link:active {
  transform: translateY(1px);
}

.help-link:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
}

.tt-alarm-tool {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tt-alarm-tool label, .tt-alarm-tool button {
  font-size: 20px;
}
.tt-alarm-tool .tt-input {
  width: 60px;
  font-size: 20px;
}
.tt-alarm-tool .tt-alarm-row {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tt-alarm-tool button {
  padding: 10px 35px;
  width: 140px;
}
.tt-alarm-tool.ticking .hide-when-ticking {
  display: none;
}

.alarm-timer-text {
  font-size: 100px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  color: #ef4444; /* red when stopped */
}

.alarm-timer-text.active {
  color: #22c55e; /* green when running */
}

.tt-alarm-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.tt-alarm-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-alarm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* hide number arrows */
.tt-alarm-tool input[type=number]::-webkit-outer-spin-button,
.tt-alarm-tool input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tt-alarm-tool input[type=number] {
  -webkit-appearance: textfield;
          appearance: textfield;
  -moz-appearance: textfield;
}

.copy-spellwords {
  cursor: pointer;
  padding: 1px 4px;
}
.copy-spellwords:hover {
  background: #1f2937;
  color: white;
}

.tt-outfit-item[data-tt-drops] {
  position: relative;
}

.tt-outfit-item:hover {
  background: #1f2937;
}

#ttDropsTooltip {
  position: fixed;
  left: 20px;
  top: 0;
  display: none;
  pointer-events: none;
  z-index: 1000;
  max-width: 420px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.25;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* intro.scss */
.tt-intro-hero {
  margin-bottom: 14px;
  padding: 8px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tt-intro-title {
  font-size: 34px;
  letter-spacing: 0.4px;
  line-height: 1.05;
  margin-bottom: 6px;
}
.tt-intro-title .tretracker {
  font-size: 34px; /* a bit smaller = cleaner */
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  /* much more readable than VT323, still feels game-y */
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, Arial, sans-serif;
  /* brass/ivory tone instead of red */
  color: #e8d7b3;
  /* engraved + glow */
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 12px rgba(201, 168, 106, 0.25);
  /* tiny “metal edge” hint */
  -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.35);
}

.tt-intro-sub {
  color: #cbd5e1;
  opacity: 0.95;
  font-size: 14px;
  line-height: 1.45;
  max-width: 90ch;
}

.tt-intro-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tt-intro-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.tt-intro-block.is-reverse {
  grid-template-columns: 0.85fr 1.15fr;
}
.tt-intro-block.is-reverse .tt-intro-text {
  order: 2;
}
.tt-intro-block.is-reverse .tt-intro-shot {
  order: 1;
}

.tt-intro-text {
  min-width: 0;
}
.tt-intro-text p {
  font-size: 14px;
  line-height: 1.5;
  color: #e4e4e7;
  opacity: 0.95;
  margin-bottom: 10px;
}

.tt-intro-h {
  font-size: 16px;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 27, 0.85);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 16px; /* a bit smaller = cleaner */
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  /* much more readable than VT323, still feels game-y */
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, Arial, sans-serif;
  /* brass/ivory tone instead of red */
  color: #e8d7b3;
  /* engraved + glow */
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 12px rgba(201, 168, 106, 0.25);
  /* tiny “metal edge” hint */
  -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.35);
}

.tt-intro-list {
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.tt-intro-list li {
  font-size: 14px;
  line-height: 1.45;
  color: #e4e4e7;
  opacity: 0.92;
}

.tt-intro-shot {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(233, 196, 128, 0.25);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.07), rgba(0, 0, 0, 0.28));
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease, filter 0.1s ease, border-color 0.1s ease;
}
.tt-intro-shot img {
  width: 100%;
  height: auto;
  display: block;
}
.tt-intro-shot:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  border-color: rgba(233, 196, 128, 0.45);
}

.tt-intro-shot-hint {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  opacity: 0.85;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

/* Lightbox */
.tt-intro-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.tt-intro-lightbox.is-open {
  display: flex;
}

.tt-intro-lightbox-inner {
  width: min(1100px, 96vw);
  max-height: 92vh;
  border: 1px solid rgba(233, 196, 128, 0.25);
  background: rgba(24, 24, 27, 0.95);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
}

.tt-intro-lightbox-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92vh;
  -o-object-fit: contain;
     object-fit: contain;
  background: #0b0b0d;
}

.tt-intro-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.45);
  color: #e4e4e7;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}
.tt-intro-lightbox-close:hover {
  filter: brightness(1.08);
}

/* Mobile */
@media (max-width: 860px) {
  .tt-intro-block,
  .tt-intro-block.is-reverse {
    grid-template-columns: 1fr;
  }
  .tt-intro-block.is-reverse .tt-intro-text {
    order: 1;
  }
  .tt-intro-block.is-reverse .tt-intro-shot {
    order: 2;
  }
}
.tt-intro-outro {
  margin-top: 16px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid rgba(233, 196, 128, 0.25);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  font-size: 34px; /* a bit smaller = cleaner */
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  /* much more readable than VT323, still feels game-y */
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, Arial, sans-serif;
  /* brass/ivory tone instead of red */
  color: #e8d7b3;
  /* engraved + glow */
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 12px rgba(201, 168, 106, 0.25);
  /* tiny “metal edge” hint */
  -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.35);
}

.tt-intro-list {
  list-style: disc;
  padding-left: 22px;
}
.tt-intro-list li::marker {
  color: rgba(233, 196, 128, 0.95);
}

.unverified {
  color: #ef4444;
  border: 1px solid #bb3333;
  display: none;
}

/* helpers */
.d-none {
  display: none !important;
}

.pt0 {
  padding-top: 0 !important;
}

.pb0 {
  padding-bottom: 0 !important;
}

.tt-confirm {
  background-color: #059669;
}

.text-center {
  text-align: center !important;
}

.text-middle {
  vertical-align: middle !important;
}

.language-pl .lng-eng,
.language-eng .lng-pl {
  display: none !important;
}

.tt-inner-link {
  cursor: pointer;
  line-height: 20px;
  align-items: center;
  padding: 3px 10px;
  font-weight: 900;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 4px 10px 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.1;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
  border: 1px solid #52525b;
  color: #e4e4e7;
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.34), rgba(0, 0, 0, 0.26));
  border-color: rgba(201, 168, 106, 0.6);
  color: rgb(246.9, 241.3, 235.2);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -2px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, filter 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease;
}
.tt-inner-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.tt-inner-link:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.tt-inner-link:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}

.tt-column-header {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 0 12px 6px;
}
.modal-head .close-btn {
  margin-left: auto;
}

.modal-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 0 0 0;
}
.modal-bottom .tt-btn {
  margin-left: auto;
}

.shift-right {
  margin-left: auto;
}

.tt-input:hover,
.tt-select:hover {
  background: #1f2937;
}

.login-required-error {
  font-size: 14px;
  line-height: 1.35;
  color: red;
}

.tt-intro-box {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  gap: 10px;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 16px;
  padding: 14px 14px;
}

.tt-btn:hover {
  filter: brightness(1.08);
}

.tt-btn-danger:hover {
  filter: brightness(1.12);
}

.btn-delete:hover {
  filter: brightness(1.12);
}

.outfit-view-cell {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1050px) {
  .outfit-view-cell {
    flex-direction: column;
  }
}/*# sourceMappingURL=main.css.map */