a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
/* :root {
  --color-brown-darkest: #1a0f0a;
  --color-brown-darker: #2d1b13;
  --color-brown-dark: #4a2f1d;
  --color-brown-medium: #63412a;
  --color-brown-light: #8b6f47;
  --color-brown-lighter: #d4b595;
  --color-brown-lightest: #f5f0e8;
} */

:root {
  --color-brown-darkest: #050301;
  --color-brown-darker: #3d2410;
  --color-brown-dark: #7a4f24;
  --color-brown-medium: #a06b35;
  --color-brown-light: #e6b875;
  --color-brown-lighter: #f8e0b8;
  --color-brown-lightest: #fefcf8;

  --color-brown-darkest-base: #050301;
  --color-brown-darker-base: #3d2410;
  --color-brown-dark-base: #7a4f24;
  --color-brown-medium-base: #a06b35;
  --color-brown-light-base: #e6b875;
  --color-brown-lighter-base: #f8e0b8;
  --color-brown-lightest-base: #fefcf8;
}

/* Dark mode variables - inverted brown colors */

[data-theme="dark"] {
  --color-brown-darkest: #fefcf8;
  --color-brown-darker: #f8e0b8;
  --color-brown-dark: #e6b875;
  --color-brown-medium: #a06b35;
  --color-brown-light: #8b5a2a;
  --color-brown-lighter: #3d2410;
  --color-brown-lightest: #050301;
}

/* Semantic color variables */
:root {
  --color-button-bg: var(--color-brown-darker);
  --color-button-text: var(--color-brown-lighter);
  --color-button-hover-bg: var(--color-brown-darker);
  --color-button-hover-text: var(--color-brown-lightest);

  --color-card-bg: var(--color-brown-dark);
  --color-card-text: var(--color-brown-lightest);
  --color-card-button-bg: var(--color-brown-darker);
  --color-card-button-text: var(--color-brown-lighter);
}

/* Dark mode semantic color overrides */
[data-theme="dark"] {
  --color-button-bg: var(--color-brown-dark);
  --color-button-text: var(--color-brown-lighter);
  --color-button-hover-bg: var(--color-brown-darker);
  --color-button-hover-text: var(--color-brown-lightest);
}

/* Brown color utility classes for e.g. JavaScript to use */

.color-brown-darkest { color: var(--color-brown-darkest); }
.color-brown-darker { color: var(--color-brown-darker); }
.color-brown-dark { color: var(--color-brown-dark); }
.color-brown-medium { color: var(--color-brown-medium); }
.color-brown-light { color: var(--color-brown-light); }
.color-brown-lighter { color: var(--color-brown-lighter); }
.color-brown-lightest { color: var(--color-brown-lightest); }

/* Base color utility classes that don't change with theme */
.color-brown-darkest-base { color: var(--color-brown-darkest-base); }
.color-brown-darker-base { color: var(--color-brown-darker-base); }
.color-brown-dark-base { color: var(--color-brown-dark-base); }
.color-brown-medium-base { color: var(--color-brown-medium-base); }
.color-brown-light-base { color: var(--color-brown-light-base); }
.color-brown-lighter-base { color: var(--color-brown-lighter-base); }
.color-brown-lightest-base { color: var(--color-brown-lightest-base); }

body, main {
  background-color: var(--color-brown-lighter);
  color: var(--color-brown-darkest);
}

a {
  color: var(--color-brown-darker);
}

.button {
  background: var(--color-brown-darker-base);
  color: var(--color-brown-lighter-base);
}

.button:hover,
.button:focus {
  background: var(--color-brown-darker);
  color: var(--color-brown-lightest);
}

nav {
  & a {
    background: var(--color-card-bg);
    color: var(--color-brown-lighter);
    border-color: var(--color-brown-medium);

    &:hover {
      background-color: var(--color-brown-darker);
      color: var(--color-brown-lightest);
      border-color: var(--color-brown-dark);
    }

    &:active {
      background: var(--color-card-bg);
      color: var(--color-button-text);
    }
  }
}

.card {
  background-color: var(--color-card-bg);
  color: var(--color-card-text);

  a {
    color: var(--color-card-text);
  }

  h1, h2, h3 {
    color: var(--color-card-text);
  }
}

.card .button,
.card .button {
  background: var(--color-brown-darker-base);
  color: var(--color-brown-lighter-base);
}
.card .button:hover,
.card .button:focus {
  background: var(--color-button-hover-bg);
  color: var(--color-button-hover-text);
}

.table {
  th, td {
    border-bottom: 1px solid var(--color-brown-dark);
  }

  th {
    background-color: var(--color-card-bg);
    color: var(--color-card-text);

    .sort-link {
      &:hover {
        color: var(--color-brown-light);
      }
    }
  }

  tbody tr {
    &:hover {
      background-color: rgba(0, 0, 0, 0.05);
    }
  }
}

/* Stat pills */

.stat-pill {
  background: var(--color-brown-darker);
}

.stat-pill .label {
  color: var(--color-brown-lighter);
  opacity: 0.95;
}

.stat-pill .value {
  background: var(--color-brown-darkest);
  color: var(--color-brown-lighter);
}


/* Marriage arranger page */

.marriages-index {
  .preview-header .clear-selection {
    background: var(--color-button-bg);
  }

  .preview-header .clear-selection:hover {
    background: var(--color-button-hover-bg);
    color: var(--color-button-hover-text);
  }

  .empty-preview {
    background: var(--color-brown-medium);
    color: var(--color-brown-lighter);
  }

  .filter-controls select {
    background: var(--color-button-bg);

    .prestige-comparison .side {
      background: var(--color-button-bg);

      .dowry-section {
        background: var(--color-button-bg);
      }
    }
  }
}

/* Producer page */

.production-info {
  .progress-bar {
    background-color: var(--color-brown-lightest);

    .progress {
      background-color: var(--color-brown-lighter);
    }
  }

  .production-percentage,
  .production-formula,
  .production-countdown {
    color: var(--color-brown-dark);
  }

  .arrow {
    color: var(--color-brown-dark);
  }
}


/* Theme switcher container - positioned relative to header */
.theme-switcher-container {
  position: fixed;
  top: 90px; /* Just below the header */
  z-index: 999;
  pointer-events: none; /* Allow clicks to pass through to content below */
  max-width: var(--central-column-width);
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 0 var(--content-padding);
}

.theme-switcher-container .theme-switcher {
  pointer-events: auto; /* Re-enable clicks on the actual switcher */
  margin-left: auto;
  width: fit-content;
}

/* Theme switcher widget */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 2rem;
  background: var(--color-card-bg);
  color: var(--color-button-text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.theme-switcher:hover {
  background: var(--color-button-hover-bg);
  color: var(--color-button-hover-text);
}

.theme-switcher .icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.theme-switcher:hover .icon {
  transform: rotate(180deg);
}


/* Dark mode specific adjustments */
[data-theme="dark"] .table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
} 

.login-form-container {
  max-width: 300px;
  margin: 4rem auto;
}

.login-form-container .field label {
  display: block;
  margin-bottom: 0.5em;
}

.login-form-container input {
  width: 100%;
  font-size: 1.2em;
  padding: 8px;
  border-radius: 4px;
}

.login-form-container .field input {
  border: 1px solid #ddd;
  margin-bottom: 1em;
}

.login-form-container .actions input {
  border: none;
  background: #eee;
  color: black;
  cursor: pointer;
  margin-top: 0.5em;
}

.login-form-container .actions input:hover {
  background: #ddd;
}
.event-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  cursor: pointer;
}

.event-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.event-modal .modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  cursor: default;
  position: relative;
}

.event-modal .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 50%;
  color: #666;
  transition: background-color 0.2s, color 0.2s;
  z-index: 1001;
}

.event-modal .close-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #333;
}

.event-modal .event-card {
  margin: 0;
  box-shadow: none;
  border: none;
}

/* Modal-specific button styling */
.event-modal .event-options {
  margin-top: 1.5rem;
  padding: 0.5rem;
}

.event-modal .quest-button {
  min-width: 120px;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
}
/*
 * LAYOUT CSS - Dynasty Quest Game Interface
 * ========================================
 * 
 * DESIGN PHILOSOPHY:
 * This layout implements a clean, app-like interface with:
 * - A central column that constrains all content (header, nav, main)
 * - Full-width backgrounds that extend to the edges
 * - Fixed header and navigation for consistent positioning
 * - Responsive design that adapts to different screen sizes
 * 
 * LAYOUT STRUCTURE:
 * The layout uses a central column approach with the following hierarchy:
 * 
 * body (full viewport)
 * ├── #header (fixed, full-width background, central column content)
 * ├── main (fixed, full-width background, central column content)
 * └── nav (fixed, full-width background, central column content)
 * 
 * KEY FEATURES:
 * - Central column max-width: calc(100vh * 0.75) for 3:4 aspect ratio
 * - Full-width backgrounds with central content constraint
 * - Fixed positioning for header and navigation
 * - Clean separation of layout concerns
 */

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== LAYOUT VARIABLES ===== */
:root {
  --header-height: 80px;
  --nav-height: calc(100vw * 0.06 + 20px); /* nav-spacing * 2 + padding */
  --central-column-width: calc(100vh * 0.75);
  --content-padding: 20px;
  --nav-spacing: calc(100vw * 0.03);
}

/* ===== BODY LAYOUT ===== */
body {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ===== MAIN CONTENT LAYOUT ===== */
turbo-frame#main {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: var(--nav-height);
  overflow: auto;
  display: block;
  max-width: var(--central-column-width);
  margin: 0 auto;
  padding: var(--content-padding);
}

turbo-frame#main > *::-webkit-scrollbar {
  display: none;
}

/* ===== NAVIGATION LAYOUT ===== */
nav {
  position: fixed;
  bottom: var(--nav-spacing);
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 10;
}

/* Navigation content constrained to central column */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--nav-spacing);
  padding: var(--nav-spacing);
  max-width: var(--central-column-width);
  margin: 0 auto;
}

nav a {
  flex: 1;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 10px solid var(--color-brown-medium);
  text-decoration: none;
  transition: color 0.1s ease, background-color 0.1s ease;
}

/* Navigation icons using mask images */
nav a::before {
  content: '';
  width: 70%;
  height: 70%;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background-color: currentColor;
}

nav a:nth-child(1)::before {
  -webkit-mask-image: url(/assets/navigation_01-bcf346c63d7466d0cf19271370c43c49d257f828de485eb262792f8f5dd10c70.svg);
  mask-image: url(/assets/navigation_01-bcf346c63d7466d0cf19271370c43c49d257f828de485eb262792f8f5dd10c70.svg);
}

nav a:nth-child(2)::before {
  -webkit-mask-image: url(/assets/resource_population-1aa76139a12fb1b86aa266fc46caf2ae1e1c6c3dcc7660a11b1cf0773ca7fedf.svg);
  mask-image: url(/assets/resource_population-1aa76139a12fb1b86aa266fc46caf2ae1e1c6c3dcc7660a11b1cf0773ca7fedf.svg);
}

nav a:nth-child(3)::before {
  -webkit-mask-image: url(/assets/navigation_02-403b9d0ea2595acd25c2f416803ab88fee39c341291c362d6d2218100726fed7.svg);
  mask-image: url(/assets/navigation_02-403b9d0ea2595acd25c2f416803ab88fee39c341291c362d6d2218100726fed7.svg);
}

nav a:nth-child(4)::before {
  -webkit-mask-image: url(/assets/navigation_03-2ede8a09162fde11e37d67e5d026d648021c9276aeac0fe395edf4db145d37f6.svg);
  mask-image: url(/assets/navigation_03-2ede8a09162fde11e37d67e5d026d648021c9276aeac0fe395edf4db145d37f6.svg);
}

nav a:nth-child(5)::before {
  -webkit-mask-image: url(/assets/conqueror-e66ae96ccf210c6ac2f9c3e6a4eca14c6ab62f4064d3bb418bd2511c409c87a2.svg);
  mask-image: url(/assets/conqueror-e66ae96ccf210c6ac2f9c3e6a4eca14c6ab62f4064d3bb418bd2511c409c87a2.svg);
}

nav a:nth-child(6)::before {
  -webkit-mask-image: url(/assets/ring-3b6f623dc2ee55be7cec772d84a33af4ce1ad70d4d2375581b1ce9c11c2e752c.svg);
  mask-image: url(/assets/ring-3b6f623dc2ee55be7cec772d84a33af4ce1ad70d4d2375581b1ce9c11c2e752c.svg);
}

nav a:nth-child(7)::before {
  -webkit-mask-image: url(/assets/dynasty-3d88e1ab0e0a742fa61f1326b7951722d391c83e183d4cd83c5aa5bb1427ba73.svg);
  mask-image: url(/assets/dynasty-3d88e1ab0e0a742fa61f1326b7951722d391c83e183d4cd83c5aa5bb1427ba73.svg);
}

/* ===== UTILITY CLASSES ===== */
/* For any elements that need to break out of the central column */
.full-width {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* For modals and overlays that need to be full viewport */
.full-viewport {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
}

html, button {
  font-family: 'Cormorant Garamond', monospace;
  /* font-family: 'Grenze Gotisch', monospace; */
  font-weight: 400;
  /* font-size: 1.25rem; */
  font-size: calc(100vh / 60);
  /* line-height: 1.2; */
}

/* Header font size kept constant since header height is fixed */

.header-item.player-name a {
  font-weight: 700;
  font-size: 24px;
}

.header-item .time-info {
  font-size: 18px;
}


h1, h2, h3 {
  font-family: 'Cormorant Garamond', monospace;
  font-weight: 300;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.button {
  font-weight: 600;
}

.page-intro {
  p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
  }
}
.alerts {
    position: fixed;
    bottom: calc((100vh * 0.75) / 5 + var(--nav-spacing));
    left: 0;
    right: 0;
    width: 100%;
    max-width: calc(100vh * 0.75);
    margin: 0 auto;
    padding: 0 var(--nav-spacing);
    z-index: 10;
    text-align: center;

    .notice {
        color: #0f9d58;
    }

    .alert {
        color: #dc3545;
    }
}
.button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  display: inline-block;
}

.card {
  padding: 1rem;
  border-radius: 10px;
  width: 100%;
  max-width: calc(100vh * 0.75 - 100vw * 0.06);
  /* margin: calc(100vw * 0.03); */
  margin-bottom: calc(100vw * 0.03);

  header {
    display: flex;
    justify-content: space-between;
    align-items: top;
    height: fit-content;

    .header-left {
      display: flex;
      align-items: top;
      gap: 0.5rem;

      .card-icon {
        width: 3rem;
        height: 3rem;
      }

      .h1-group {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
      }
    }
  }
}
/* Character Card System */

/* Base character card styles */
.character-card {
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  /* height: 100%; */
}

.character-card header {
  margin-bottom: 1rem;
}

.character-card .header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.character-card .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.character-card .header-item h1 {
  margin: 0;
}

.character-card .header-actions {
  display: flex;
  gap: 0.5rem;
}

.character-card .clear-selection {
  padding: 0.5rem;
  font-size: 1rem;
  line-height: 1;
  min-width: 2rem;
  text-align: center;
}

/* Character preview styles (used by multiple card types) */
.character-preview {
  display: flex;
  flex-direction: column;
}

.character-preview header {
  margin-bottom: 1rem;
}

.character-preview .header-main {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.character-preview .header-face {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}

.character-preview .header-face svg {
  width: 100%;
  height: 100%;
}

.character-preview .header-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  align-items: flex-start;
}

.character-preview .header-item.player-name {
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.character-preview .player-stats {
  display: flex;
  gap: 1rem;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}

.character-preview .player-stats .resource {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.character-preview .player-stats .resource .icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Empty preview state */
.empty-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.empty-preview .button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

/* Marriage status (for child cards) */
.marriage-status {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-brown-medium);
}

.marriage-status p {
  font-size: 1.1rem;
  margin: 0;
}

/* Full profile card - THREE LINE LAYOUT */
.character-card.full-profile .header-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem;
}

.character-card.full-profile .header-face.main-face {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
}

.character-card.full-profile .header-face.main-face svg {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.character-card.full-profile .header-content {
  display: block;
  height: 96px; /* Exact same height as face */
  flex: 1;
  min-width: 0;
}

/* The three lines - all start at same horizontal position */
.character-card.full-profile .name-line {
  height: 32px; /* 96px / 3 = 32px per line */
  margin: 0;
  padding: 0;
}

.character-card.full-profile .name-line h1 {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: inherit;
}

.character-card.full-profile .info-line {
  height: 32px;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--color-card-text);
  margin: 0;
  padding: 0;
}

.character-card.full-profile .stats-line {
  height: 32px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.character-card.full-profile .stats-line .resource {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Spouse card specific styles */
.character-card.spouse {
  /* Spouse cards are simpler, using the preview partial */
}

/* Child card specific styles */
.character-card.child {
  /* Child cards include marriage status */
}

/* Marriage candidate card specific styles */
.character-card.marriage-candidate {
  /* Marriage candidates have action buttons */
}

/* Character cards grid layout */
.character-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .character-cards {
    grid-template-columns: 1fr;
  }
} 
select.form-select {
  background: var(--color-button-bg);
  color: var(--color-button-text);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  transition: background 0.15s, color 0.15s;
  outline: none;
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23f5e6d3" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M5.516 7.548a.75.75 0 0 1 1.06 0L10 10.97l3.424-3.423a.75.75 0 1 1 1.06 1.06l-3.954 3.954a.75.75 0 0 1-1.06 0L5.516 8.608a.75.75 0 0 1 0-1.06z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1em;
}

select.form-select:focus {
  background: var(--color-button-bg);
  color: var(--color-button-text);
}

select.form-select option {
  background: var(--color-button-bg);
  color: var(--color-button-text);
}

/* For Firefox: style the dropdown list background */
select.form-select:-moz-focusring {
  color: var(--color-button-text);
  background: var(--color-button-bg);
}

/* For IE/Edge (legacy): */
select.form-select::-ms-expand {
  display: none;
} 
/*
 * HEADER CSS - Dynasty Quest Game Interface
 * ========================================
 * 
 * DESIGN PHILOSOPHY:
 * This header implements a clean, game-focused interface that prioritizes:
 * - Visual hierarchy with the character face as the primary focal point
 * - Immersive sky background that changes with day/night cycles
 * - Fixed layout patterns that don't break with content overflow
 * - Responsive design that adapts to different screen sizes
 * 
 * LAYOUT STRUCTURE:
 * The header uses a fixed positioning system with the following hierarchy:
 * 
 * #header (fixed container, 80px height)
 * ├── .sky-container (background with day/night gradients)
 * │   ├── .sun (positioned sun element for visual effect)
 * │   └── ::before (stars overlay for night mode)
 * └── .header-container (content wrapper with max-width)
 *     └── .header-main (flex container for main layout)
 *         ├── .header-face (character portrait, percentage-based sizing)
 *         ├── .header-content (two-row content area)
 *         │   ├── .header-item.player-name (character name row)
 *         │   └── .header-item.time-container (time display row)
 *         └── .sun (duplicate sun element for Stimulus controller)
 * 
 * CSS CLASSES USED:
 * 
 * Layout Classes:
 * - #header: Fixed header container, full width, 80px height
 * - .sky-container: Background container with day/night gradients
 * - .header-container: Content wrapper with responsive max-width
 * - .header-main: Flex container for character face and content
 * - .header-content: Two-row flex column for name and time
 * 
 * Character Display:
 * - .header-face: Container for character portrait (50px width, 25% height)
 * - .header-face svg: Styled character face with border and shadow
 * 
 * Content Elements:
 * - .header-item: Base styling for header content items
 * - .player-name: Character name row with enhanced typography
 * - .time-container: Container for time-related displays
 * - .time-info: Time text display with overflow protection
 * 
 * Time Display Components:
 * - .moon-phase-display: Container for moon phase icon
 * - .moon-phase: Moon phase emoji/icon styling
 * - .rune: Styling for runic characters in time display
 * - .day-night-cycle: Container for sun/moon cycle indicator
 * - .day-night-cycle .sun: Day cycle sun icon
 * - .day-night-cycle .moon: Night cycle moon icon
 * 
 * Authentication States:
 * - .site-name: Game title for non-authenticated users
 * - .sign-in: Sign-in link styling for non-authenticated users
 * 
 * Background Elements:
 * - .sky-container .sun: Large sun element positioned in background
 * - .sky-container.night: Night mode background gradient
 * - .sky-container.night::before: Stars overlay for night mode
 * 
 * 
 * Z-INDEX LAYERING:
 * - #header: z-index 1000 (highest)
 * - .header-container: z-index 2 (above sky background)
 * - .sky-container .sun: z-index 1 (background element)
 * 
 * KEY FEATURES:
 * - Overflow protection with text-overflow: ellipsis
 * - Smooth transitions for day/night changes
 * - Flex-based layout that maintains proportions
 * - Mobile-first responsive design
 * - Immersive sky background with parallax-like effects
 * - Percentage-based character face sizing for consistent proportions
 */

/* Header Layout */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  overflow: hidden;
}

/* Sky Background */
.sky-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #87CEEB, #E0F6FF);
  transition: background 0.5s ease;
}

.sky-container.night {
  background: linear-gradient(to bottom, #1a1a2e, #16213e);
}

.sky-container.night::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 160px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, #fff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.3;
}

/* Sun Element */
.sky-container .sun {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at center, #FFD700, #FFA500);
  border-radius: 50%;
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.5),
    0 0 40px rgba(255, 215, 0, 0.3),
    0 0 60px rgba(255, 215, 0, 0.2);
  filter: blur(1px);
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: -1;
}

/* Header Container */
.header-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: calc(100vh * 0.75);
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
}

/* Main Header Layout */
.header-main {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

/* Character Face */
.header-face {
  flex-shrink: 0;
  width: 50px;
  height: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-face svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Header Content - Two Row Layout */
.header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0; /* Allow flex item to shrink below content size */
  justify-content: center; /* Center the content vertically in the available space */
  height: 100%; /* Take full height to ensure stable positioning */
}

/* Header Items */
.header-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.2em; /* Ensure minimum height for consistent spacing */
}

.header-item a {
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-item a:hover {
  opacity: 0.8;
}

/* Player Name Row */
.player-name {
  font-weight: 500;
  flex-shrink: 0; /* Prevent shrinking to maintain position */
}

/* Time Container */
.time-container {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 1.2em; /* Match the minimum height of other header items */
  flex-shrink: 0; /* Prevent shrinking to maintain position */
}

.time-info {
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Moon Phase Display */
.moon-phase-display {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
  flex-shrink: 0;
}

.moon-phase-display .moon-phase {
  font-size: 16px;
  line-height: 1;
}

/* Runes */
.rune {
  font-size: 1.2em;
  font-weight: bold;
  padding-left: 0.2em;
  padding-right: 0.2em;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Day/Night Cycle Indicator */
.day-night-cycle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  flex-shrink: 0;
}

.day-night-cycle .sun {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: inline-block;
  color: #ffff00;
  filter: brightness(2);
  font-weight: bold;
}

.day-night-cycle .moon {
  font-size: 16px;
  line-height: 1;
  transition: opacity 0.3s ease;
}

/* Site Name and Sign In (for non-authenticated users) */
.site-name {
  font-weight: bold;
  font-size: 1.2em;
}

.sign-in a {
  padding: 0.5rem 1rem;
  border: 1px solid #f4e9e1;
  border-radius: 4px;
}

.sign-in a:hover {
  border-color: #ffffff;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-main {
    gap: 0.5rem;
  }
}

@media (max-width: 500px) {
  .header-container {
    padding: 0 10px;
  }
}
.subheader_display {
  display: flex;
  justify-content: center;
  width: 100%;

  .content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
  }
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-icon {
  width: 20px;
  height: 20px;
}

.resource-amount {
  font-size: 1rem;
}

.food .resource-icon {
  filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(1043%) hue-rotate(115deg) brightness(92%) contrast(101%);
}

.gold .resource-icon {
  filter: brightness(0) saturate(100%) invert(56%) sepia(95%) saturate(1691%) hue-rotate(23deg) brightness(93%) contrast(94%);
}

.stone .resource-icon {
  filter: brightness(0) saturate(100%) invert(55%) sepia(13%) saturate(1068%) hue-rotate(165deg) brightness(88%) contrast(84%);
}

.population .resource-icon {
  filter: brightness(0) saturate(100%) invert(45%) sepia(85%) saturate(845%) hue-rotate(199deg) brightness(95%) contrast(91%);
}

.age .resource-icon {
  filter: brightness(0) saturate(100%) invert(35%) sepia(68%) saturate(425%) hue-rotate(346deg) brightness(89%) contrast(88%);
}

.children .resource-icon {
  filter: brightness(0) saturate(100%) invert(83%) sepia(42%) saturate(845%) hue-rotate(12deg) brightness(96%) contrast(92%);
}

.old .resource-icon {
  filter: brightness(0) saturate(100%) invert(67%) sepia(9%) saturate(238%) hue-rotate(169deg) brightness(94%) contrast(87%);
}

.events .resource-icon {
  filter: brightness(0) saturate(100%) invert(73%) sepia(51%) saturate(845%) hue-rotate(295deg) brightness(98%) contrast(96%);
}

.quests .resource-icon {
  filter: brightness(0) saturate(100%) invert(62%) sepia(75%) saturate(845%) hue-rotate(335deg) brightness(91%) contrast(89%);
}

.body .resource-icon {
  filter: brightness(0) saturate(100%) invert(75%) sepia(12%) saturate(1033%) hue-rotate(335deg) brightness(101%) contrast(89%);
}

.mind .resource-icon {
  filter: brightness(0) saturate(100%) invert(50%) sepia(9%) saturate(396%) hue-rotate(182deg) brightness(94%) contrast(87%);
}

.will .resource-icon {
  filter: brightness(0) saturate(100%) invert(65%) sepia(75%) saturate(1161%) hue-rotate(339deg) brightness(101%) contrast(101%);
}

.sway .resource-icon {
  filter: brightness(0) saturate(100%) invert(48%) sepia(57%) saturate(2733%) hue-rotate(187deg) brightness(97%) contrast(101%);
}
.stats-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.stat-pill {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  border: none;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.stat-pill .label {
  opacity: 0.95;
  margin-right: 0.5em;
  padding-left: 0;
  font-size: 1em;
}

.stat-pill .value {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0;
  padding-bottom: 0.2rem;
  margin-left: 0.25em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10);
}
.profile-image-container {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-image-container.large {
  width: 128px;
  height: 128px;
}

.profile-image {
  object-fit: cover;
  width: 120%;
  height: 120%;
  margin: -10%;
}

.profile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 0 20px 10px rgba(0, 0, 0, 0.2),  /* Inner blur */
    0 0 10px 5px rgba(0, 0, 0, 0.1);         /* Outer blur */
}

.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  cursor: pointer;
}

.image-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image {
  max-width: 90%;
  max-height: 90vh;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-image svg {
  width: 100%;
  height: 100%;
  max-width: 600px;
  max-height: 600px;
  display: block;
}
.table-container {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;

  th, td {
    padding: 0.75rem;
    text-align: left;
    vertical-align: middle;
  }

  th {
    font-weight: bold;
    white-space: nowrap;

    .sort-link {
      text-decoration: none;
      color: inherit;
      display: flex;
      align-items: center;
      gap: 0.5rem;

      &.sorted-asc::after {
        content: "↑";
      }

      &.sorted-desc::after {
        content: "↓";
      }
    }
  }

  tbody tr {
    &:hover {
      background-color: rgba(0, 0, 0, 0.05);
    }
  }
  
  /* Ensure content in cells maintains aspect ratio */
  td img, td svg {
    max-width: none;
    max-height: none;
  }
} 


/* From older version ? */


/* Sorting styles */
.table th a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.table th a:after {
  content: '↕';
  margin-left: 5px;
}

.table th a[data-direction='asc']:after {
  content: '↑';
}

.table th a[data-direction='desc']:after {
  content: '↓';
}

/* Hover effects */
.table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.tool-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
} 
/* Character link styles - global */
.character-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.character-link .mini-face {
  width: 1.2em;
  height: 1.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  border-radius: 50%;
  border: 1px solid #ccc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.character-link .mini-face .face {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-link .mini-face svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  transform: scale(1.1);
}

/* Style for character links in events and other places */
.character-link {
  text-decoration: none;
  color: inherit;
  
  &:hover {
    color: #007bff;
  }
}

/* Characters index table specific styles */
.characters-index .table {
  .character-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .character-link .mini-face {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  
  .character-link .mini-face svg {
    transform: scale(1.0);
  }
  
  /* Ensure name column has enough space */
  td:first-child {
    min-width: 200px;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .children-grid,
  .former-spouses {
    grid-template-columns: 1fr;
  }
}

.characters-show {
  .parents, .siblings, .children {
    margin-bottom: 1rem;

    ul {
      list-style: none;
      margin: 0;
      margin-left: 1em;
      padding: 0;
    }

    li {
      display: inline-block;
      margin-right: 0.5em;
    }
  }

  .parent, .children {
    margin: 1rem 0;
    
    h3 {
      margin-bottom: 0.5rem;
      font-size: 1.1em;
      color: #666;
    }

    a {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      text-decoration: none;
      color: inherit;
      
      &:hover {
        color: #007bff;
      }
    }
  }

  .mini-face {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }

  .card {
    margin-top: 1.5em;

    /* Header styles moved to components/character_cards.css */

  }

  .character-face {
    margin: 1em 0;
    text-align: center;
    width: 300px;
    height: 300px;

    svg {
      width: 100%;
      height: 100%;
    }
  }

  h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-brown-light);
  }

  .section-header {
    font-size: 1.5rem;
    color: var(--color-brown-dark);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-brown-medium);
  }

  .stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 0.5rem 0;
  }

  .stats-section {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .stats-section.genome {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }

  .stat-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--color-brown-medium);
    border-radius: 4px;
  }

  .stat-label {
    opacity: 0.8;
    font-size: 0.9rem;
  }

  .stat-value {
    font-weight: bold;
  }

  .traits, .skills {
    margin: 1rem 0;
  }

  .traits-list, .skills-list {
    /* color: var(--color-brown-light); */
    line-height: 1.4;
  }

  .stats-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
  }

  .family-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-brown-dark);
    border-radius: 8px;

    h3 {
      font-size: 1.2rem;
      /* color: var(--color-brown-light); */
      margin: 0 0 1rem 0;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--color-brown-medium);
    }
  }

  .children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }

  .former-spouses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }

  /* Character card styles moved to components/character_cards.css */
}

html.dev-pages {
  --primary: var(--color-brown-dark);
  --accent: var(--color-brown-light);
  --text: var(--color-brown-dark);
  --text-light: var(--color-brown-light);
  --divider: var(--color-brown-light);
}

html.dev-pages,
html.dev-pages body {
  margin: 0;
  padding: 0;
}

html.dev-pages body {
  background-color: white;
  padding-top: 52px;
  overflow-y: auto;
}

.dev-pages {
  height: 100%;

  .page-title {
    text-align: center;
    margin: 20px auto 40px auto;
    width: 100%;
    max-width: 800px;
  }

  .page-title .back-link {
    margin-top: 16px;
  }

  .page-title a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .page-title a:hover {
    color: var(--accent);
  }

  /* Dev index page */
  .dev-links {
    max-width: 800px;
    margin: 0 auto;
  }

  .dev-link {
    display: block;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
    transition: all 0.2s ease;
  }

  .dev-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }
  /* Compare grid page */
  .comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 80px;
    width: 100%;
    max-width: 1400px;
    margin: 0;
  }

  .comparison-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    min-width: 520px;
  }

  .comparison-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }

  .eye-code {
    color: var(--text);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
  }

  .eyes-container {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .generated-eye {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .reference-eye {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
  }

  .generated-eye svg {
    width: 280px;
    height: 280px;
    display: block;
  }

  .reference-eye img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
  }

  .section-divider {
    grid-column: 1 / -1;
    height: 2px;
    background-color: var(--color-brown-light);
    margin: 20px 0;
    opacity: 0.5;
  }

  /* Single comparison page */
  .comparison-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
  }

  .comparison-container .comparison-item {
    min-width: 800px;
  }

  .comparison-container .generated-eye svg {
    width: 420px;
    height: 420px;
  }

  .comparison-container .reference-eye img {
    width: 290px;
    height: 290px;
  }

  .color-info {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .color-swatch {
    display: flex;
    gap: 20px;
    margin-top: 16px;
  }

  .swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .swatch-color {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
  }

  .swatch-label {
    font-size: 14px;
    color: var(--text-light);
  }

  .swatch-value {
    font-family: Helvetica;
    font-size: 14px;
    color: var(--text);
  }

  /* Colors page */
  .decorative-header {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(to bottom, #fff 0%, rgba(248,249,250,0) 100%);
    padding: 20px 0;
    margin-bottom: 40px;
  }

  .eye-strips {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding: 20px 0;
  }

  .eye-strip {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    justify-content: center;
    flex-wrap: nowrap;
    min-height: 80px;
  }

  .eye-strip .eye-sample {
    width: 60px;
    padding: 5px;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
  }

  .eye-strip .eye-sample:hover {
    transform: translateY(-2px);
  }

  .eye-strip .eye-sample svg {
    width: 60px;
    height: 60px;
  }

  .eye-strip .eye-code {
    font-size: 10px;
    margin-top: 4px;
  }

  .sketches {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin: 60px 0;
    padding: 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 16px;
  }

  .sketch {
    width: 200px;
    height: 200px;
    object-fit: contain;
    opacity: 0.8;
  }

  .vision-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
    font-weight: 300;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-style: italic;
  }

  .color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .eye-sample {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
  }

  .eye-sample:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }

  .color-grid .eye-sample svg {
    width: 240px;
    height: 240px;
  }

  .color-grid .eye-code {
    margin-top: 16px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
  }

  .description {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }

  .description p {
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5em;
  }

  code {
    /* font-family: 'Cormorant Garamond', Helvetica; */
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
  }

  .subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 4px;
    font-weight: 400;
  }

  /* Layout styles */
  .breadcrumbs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 10;
  }

  .breadcrumbs-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
    color: var(--text-light);
  }

  .breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .breadcrumbs a:hover {
    color: var(--accent);
  }

  .breadcrumbs .separator {
    margin: 0 8px;
    color: var(--text-light);
  }

  .breadcrumbs .current {
    color: var(--text);
    font-weight: 500;
  }

  .content-wrapper {
    margin-top: 32px;
    padding: 0 40px;
    min-height: calc(100vh - 84px);
    display: block;
  }

  /* Documentation layout */
  .docs-layout {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .docs-sidebar {
    flex: 0 0 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 20px;
  }

  .docs-sidebar h3 {
    margin: 0 0 20px 0;
    color: var(--text);
    border-bottom: 2px solid var(--divider);
    padding-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
  }

  .docs-content {
    flex: 1;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 40px;
  }

  /* Documentation navigation tree */
  .docs-structure {
    font-size: 14px;
    line-height: 1.4;
  }

  .docs-files {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
  }

  .docs-file {
    margin-bottom: 2px;
  }

  .docs-file-link {
    display: block;
    padding: 8px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.3;
  }

  .docs-file-link:hover {
    background-color: rgba(139, 69, 19, 0.08);
    color: var(--primary);
    text-decoration: none;
  }

  .docs-file-link.active {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
  }

  .docs-directory {
    margin-bottom: 20px;
  }

  .docs-directory-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
  }

  .docs-directory-content {
    margin-left: 12px;
    border-left: 1px solid rgba(139, 69, 19, 0.15);
    padding-left: 12px;
  }

  .docs-directory-content .docs-directory-title {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    border-bottom: none;
    padding: 6px 0;
  }

  .docs-directory-content .docs-directory-content {
    margin-left: 8px;
    padding-left: 8px;
  }

  /* Markdown content styling */
  .markdown-content {
    line-height: 1.7;
    color: var(--text);
  }

  .markdown-content h1,
  .markdown-content h2,
  .markdown-content h3,
  .markdown-content h4,
  .markdown-content h5,
  .markdown-content h6 {
    color: var(--text);
    margin-top: 1.8em;
    margin-bottom: 0.8em;
  }

  .markdown-content h1 {
    border-bottom: 2px solid var(--divider);
    padding-bottom: 12px;
    font-size: 28px;
  }

  .markdown-content h2 {
    border-bottom: 1px solid var(--divider);
    padding-bottom: 8px;
    font-size: 24px;
  }

  .markdown-content h3 {
    font-size: 20px;
  }

  .markdown-content p {
    margin-bottom: 1.2em;
  }

  .markdown-content code {
    background-color: #f8f9fa;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
  }

  .markdown-content pre {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--divider);
    margin: 20px 0;
  }

  .markdown-content pre code {
    background: none;
    padding: 0;
    color: var(--text);
  }

  .markdown-content ul, .markdown-content ol {
    margin-bottom: 1.2em;
    padding-left: 20px;
  }

  .markdown-content li {
    margin-bottom: 0.5em;
  }

  .markdown-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
  }

  .markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
  }

  .markdown-content th,
  .markdown-content td {
    border: 1px solid var(--divider);
    padding: 12px;
    text-align: left;
  }

  .markdown-content th {
    background-color: rgba(139, 69, 19, 0.05);
    font-weight: 600;
  }

  .markdown-content a {
    color: var(--primary);
    text-decoration: none;
  }

  .markdown-content a:hover {
    text-decoration: underline;
  }

  .markdown-content strong {
    font-weight: 600;
  }

  .markdown-content em {
    font-style: italic;
  }

  .markdown-content hr {
    border: none;
    border-top: 1px solid var(--divider);
    margin: 30px 0;
  }

  .docs-error {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-light);
  }

  .docs-error h2 {
    margin-bottom: 20px;
    color: var(--text);
  }

  /* Print styles */
  @media print {
    .page-break {
      break-before: page;
    }

    body {
      padding: 0;
      margin: 0;
    }

    .color-grid {
      padding: 40px;
    }

    .comparison-grid {
      padding: 20px;
    }

    .comparison-item {
      break-inside: avoid;
    }
  }
} 

/* Font Showcase Styles */


.font-showcase h1 {
  text-align: center;
}

.font-sample {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 10px;
}



.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
 
.events-show {

  .close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
  }
  
  .event-card {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .navigation-controls {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    gap: var(--nav-spacing);
    margin-bottom: 2rem;
  }
  

  /* Event options styling */
  .event-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.5rem;
  }

  .quest-button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f8f8;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .quest-button:hover {
    background: #eee;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .quest-button:active {
    transform: translateY(0);
    box-shadow: none;
  }

}
.family-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.tree-level {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.person {
    /* min-width: 150px; */
    text-align: center;
}

.current-person {
    background-color: var(--color-brown-medium);
}

.deceased {
    text-decoration: line-through;
    color: gray;
}

.grandparents {
    justify-content: space-between;
}

.parents {
    justify-content: space-between;
    width: 100%;
}

.grandparents .person {
    width: 25%;
}
.parents .person {
    width: 25%;
    margin: auto;
}

.current {
    justify-content: center;
    width: 100%;
}

.current .person {
    width: 50%;
}

/* Tree connection lines */
.with-lines .person {
    position: relative;
}

.with-lines .person::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 2rem;
    background-color: #999;
}
.marriages-index {

  .marriage-arranger {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .character-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: stretch;
  }

  .marriage-details-card {
    border-radius: 8px;
    padding: 1.5rem;
    display: block;
  }

  .marriage-selector {
    display: none;
  }

  .marriage-selector.visible {
    display: block;
  }

  .marriage-selector header h1 {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
  }

  .selector-section {
    padding: 1rem;
  }

  .stats-summary {
    margin-bottom: 1rem;
    font-style: italic;
  }

  .candidates-list {
    margin-bottom: 1.5rem;
  }

  .filter-controls {
    margin: 1rem 0;
  }

  .filter-controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .filter-controls select {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--color-brown-light);
  }

  .marriage-details-card.hidden {
    display: none !important;
  }

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

  .prestige-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .prestige-comparison .side {
    border-radius: 8px;
    padding: 1.5rem;
  }

  .prestige-comparison h3 {
    margin: 0 0 1rem 0;
  }

  .prestige-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .prestige-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .prestige-row .label {
    /* font-style: italic; */
  }

  .prestige-row .value {
    font-weight: bold;
  }

  .prestige-row.total {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-brown-lighter);
    font-weight: bold;
  }

  .dowry-section {
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .dowry-summary .payer {
    font-weight: 600;
  }

  .action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
  }
}
.production-info {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 1rem;

  .progress-bar {
    height: 40px;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    position: relative;

    .progress {
      height: 100%;
      transition: width 0.3s ease;
    }
  }

  .production-percentage {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
  }

  .production-formula {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;

    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;

    .resource-group {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
  }

  .production-countdown {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
  }
}


.quest-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quest-detail {
  background: var(--color-brown-medium);
  padding: 1rem;
  border-radius: 6px;
}

.quest-detail .label {
  font-size: 0.9rem;
  /* color: var(--color-brown-light); */
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.quest-detail .value {
  /* color: var(--color-brown-light); */
  font-weight: 500;
}

.quest-events {
  margin-top: 1.5rem;
}

.quest-events h2 {
  font-size: 1.1rem;
  /* color: var(--color-brown-light); */
  margin-bottom: 1rem;
}

.event-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  background: var(--color-brown-medium);
  border-radius: 6px;
  padding: 1rem;
  position: relative;
}

.event-item.active {
  border-left: 4px solid var(--color-brown-light);
}

.event-item.completed {
  opacity: 0.7;
}

.event-item .event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.event-item .event-title {
  /* color: var(--color-brown-light); */
  font-weight: 500;
}

.event-item .event-status {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--color-brown-dark);
  /* color: var(--color-brown-light); */
}

.event-item .event-description {
  /* color: var(--color-brown-light); */
  opacity: 0.8;
  font-size: 0.95rem;
}

.event-item .event-meta {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  /* color: var(--color-brown-light); */
  opacity: 0.6;
}

.quest-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}


.quest-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quest-filters select {
  padding: 0.5rem;
  border-radius: 4px;
  background: var(--color-brown-medium);
  /* color: var(--color-brown-light); */ 
  border: 1px solid var(--color-brown-light);
}

.quest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .quest-grid {
    grid-template-columns: 1fr;
  }
  
  .quest-details {
    grid-template-columns: 1fr;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

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

 /* @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;700&display=swap'); */
 /* @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap'); */
 /* @import url('https://fonts.googleapis.com/css2?family=EB+Garamond'); */

 /* @import url('https://fonts.googleapis.com/css2?family=Grenze'); */
 /* @import url('https://fonts.googleapis.com/css2?family=Grenze+Gotisch'); */
 /* @import url('https://fonts.googleapis.com/css2?family=Modern+Antiqua'); */
