body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #b5b5b5 0%, #272727 100%);
    min-height: 100vh;
}

.container {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.birthstones-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* center items along cross axis */
    align-content: center; /* center wrapped rows */
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.459);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #fff; /* Added white border */
}

/* Smaller birthstones container */
.birthstones-container-small {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.359);
    border-radius: 15px;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.birthstone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.birthstone-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.birthstone-icon {
    width: 60px; /* 60px * 0.35 */
    height: 60px; /* 60px * 0.35 */
    /* removed border-radius to avoid circular crop */
    object-fit: contain;
    display: block; /* prevent baseline alignment offsets */
    margin: 0; /* remove bottom margin so icons align exactly */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    background: transparent !important;
}

/* Smaller birthstone icons - half the size */
.birthstone-icon-small {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    background: transparent !important;
    cursor: pointer;
}

.birthstone-item:hover .birthstone-icon {
    width: 25px; /* ~70px * 0.35 */
    height: 25px; /* ~70px * 0.35 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hover effect for smaller icons */
.birthstone-icon-small:hover {
    width: 35px;
    height: 35px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.birthstone-name {
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* birthday selection form */
.birthday-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.birthday-form label {
    color: white;
    font-weight: bold;
}
.birthday-form select,
.birthday-form button {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: white;
    outline: none;
}
.birthday-form select { min-width: 190px; }
.birthday-form .buttons { display: flex; gap: 8px; }
.birthday-form button:hover { background: rgba(255,255,255,0.14); }

/* base glow effect applied to the selected icon */
.birthstone-icon.glow {
    /* remove any element-box background and box-shadow so glow follows image alpha */
    background: transparent !important;
    border-radius: 0 !important;
    transform: scale(1.08);
    transform-origin: center center;
    transition: filter 0.35s ease, transform 0.3s ease;
    z-index: 2;
    display: inline-block; /* ensure transform scales from center without affecting layout */
    vertical-align: middle;
}

/* base glow effect for smaller icons */
.birthstone-icon-small.glow {
    background: transparent !important;
    border-radius: 0 !important;
    transform: scale(1.15);
    transform-origin: center center;
    transition: filter 0.35s ease, transform 0.3s ease;
    z-index: 2;
    display: inline-block;
    vertical-align: middle;
}

/* Dim non-selected birthstones when one is selected */
.birthstones-container.has-selection .birthstone-icon:not(.glow) {
    filter: brightness(0.8) saturate(0.6);
    opacity: 0.7;
    transition: filter 0.35s ease, opacity 0.35s ease;
}

/* Dim non-selected small birthstones when one is selected */
.birthstones-container-small.has-selection .birthstone-icon-small:not(.glow) {
    filter: brightness(0.8) saturate(0.6);
    opacity: 0.7;
    transition: filter 0.35s ease, opacity 0.35s ease;
}

/* Individual birthstone glow colors - reduced radius by 35% and increased brightness */
/* January - Garnet (Deep Red) */
.birthstone-icon[data-month="january"].glow {
    filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(220, 20, 60, 1)) drop-shadow(0 0 6px rgba(139, 0, 0, 0.8));
}

/* February - Amethyst (Purple) */
.birthstone-icon[data-month="february"].glow {
    filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(147, 112, 219, 1)) drop-shadow(0 0 6px rgba(138, 43, 226, 0.8));
}

/* March - Aquamarine (Blue-Green) */
.birthstone-icon[data-month="march"].glow {
    filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(127, 255, 212, 1)) drop-shadow(0 0 6px rgba(0, 206, 209, 0.8));
}

/* April - Diamond (Clear/White) */
.birthstone-icon[data-month="april"].glow {
    filter: brightness(1.4) saturate(1.4) drop-shadow(0 0 5px rgba(255, 255, 255, 1)) drop-shadow(0 0 6px rgba(230, 230, 250, 0.9));
}

/* May - Emerald (Green) */
.birthstone-icon[data-month="may"].glow {
    filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(50, 205, 50, 1)) drop-shadow(0 0 6px rgba(0, 128, 0, 0.8));
}

/* June - Alexandrite (Color-changing Green-Red) */
.birthstone-icon[data-month="june"].glow {
    filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(106, 90, 205, 1)) drop-shadow(0 0 6px rgba(255, 20, 147, 0.7));
}

/* July - Ruby (Fiery Red) */
.birthstone-icon[data-month="july"].glow {
    filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(255, 0, 0, 1)) drop-shadow(0 0 6px rgba(220, 20, 60, 0.9));
}

/* August - Peridot (Olive Green) */
.birthstone-icon[data-month="august"].glow {
    filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(154, 205, 50, 1)) drop-shadow(0 0 6px rgba(107, 142, 35, 0.8));
}

/* September - Sapphire (Blue) */
.birthstone-icon[data-month="september"].glow {
    filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(65, 105, 225, 1)) drop-shadow(0 0 6px rgba(0, 0, 139, 0.8));
}

/* October - Opal (Multi-colored/Iridescent) */
.birthstone-icon[data-month="october"].glow {
    filter: brightness(1.3) saturate(1.6) drop-shadow(0 0 5px rgba(255, 182, 193, 0.9)) drop-shadow(0 0 6px rgba(255, 215, 0, 0.7)) drop-shadow(0 0 13px rgba(138, 43, 226, 0.6));
}

/* November - Topaz (Golden Yellow) */
.birthstone-icon[data-month="november"].glow {
    filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(255, 215, 0, 1)) drop-shadow(0 0 6px rgba(255, 165, 0, 0.8));
}

/* December - Turquoise (Sky Blue) */
.birthstone-icon[data-month="december"].glow {
    filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(64, 224, 208, 1)) drop-shadow(0 0 6px rgba(0, 206, 209, 0.8));
}

/* Individual glow colors for small birthstone icons - reduced radius and intensity */
/* January - Garnet (Deep Red) */
.birthstone-icon-small[data-month="january"].glow {
    filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(220, 20, 60, 0.8)) drop-shadow(0 0 4px rgba(139, 0, 0, 0.6));
}

/* February - Amethyst (Purple) */
.birthstone-icon-small[data-month="february"].glow {
    filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(147, 112, 219, 0.8)) drop-shadow(0 0 4px rgba(138, 43, 226, 0.6));
}

/* March - Aquamarine (Blue-Green) */
.birthstone-icon-small[data-month="march"].glow {
    filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(127, 255, 212, 0.8)) drop-shadow(0 0 4px rgba(0, 206, 209, 0.6));
}

/* April - Diamond (Clear/White) */
.birthstone-icon-small[data-month="april"].glow {
    filter: brightness(1.3) saturate(1.2) drop-shadow(0 0 3px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 4px rgba(230, 230, 250, 0.7));
}

/* May - Emerald (Green) */
.birthstone-icon-small[data-month="may"].glow {
    filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(50, 205, 50, 0.8)) drop-shadow(0 0 4px rgba(0, 128, 0, 0.6));
}

/* June - Alexandrite (Color-changing Green-Red) */
.birthstone-icon-small[data-month="june"].glow {
    filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(106, 90, 205, 0.8)) drop-shadow(0 0 4px rgba(255, 20, 147, 0.5));
}

/* July - Ruby (Fiery Red) */
.birthstone-icon-small[data-month="july"].glow {
    filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(255, 0, 0, 0.8)) drop-shadow(0 0 4px rgba(220, 20, 60, 0.7));
}

/* August - Peridot (Olive Green) */
.birthstone-icon-small[data-month="august"].glow {
    filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(154, 205, 50, 0.8)) drop-shadow(0 0 4px rgba(107, 142, 35, 0.6));
}

/* September - Sapphire (Blue) */
.birthstone-icon-small[data-month="september"].glow {
    filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(65, 105, 225, 0.8)) drop-shadow(0 0 4px rgba(0, 0, 139, 0.6));
}

/* October - Opal (Multi-colored/Iridescent) */
.birthstone-icon-small[data-month="october"].glow {
    filter: brightness(1.2) saturate(1.4) drop-shadow(0 0 3px rgba(255, 182, 193, 0.7)) drop-shadow(0 0 4px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 8px rgba(138, 43, 226, 0.4));
}

/* November - Topaz (Golden Yellow) */
.birthstone-icon-small[data-month="november"].glow {
    filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 4px rgba(255, 165, 0, 0.6));
}

/* December - Turquoise (Sky Blue) */
.birthstone-icon-small[data-month="december"].glow {
    filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(64, 224, 208, 0.8)) drop-shadow(0 0 4px rgba(0, 206, 209, 0.6));
}

/* Pulsing animations — 0%/100% match the static .glow filter to avoid jumps/flicker; animate brightness/alpha only */
@keyframes garnet-pulse {
  0%,100% { filter: brightness(.7) saturate(1.5) drop-shadow(0 0 5px rgba(220,20,60,1)) drop-shadow(0 0 6px rgba(139,0,0,0.8)); }
  50%    { filter: brightness(.9) saturate(1.8) drop-shadow(0 0 5px rgba(220,20,60,1)) drop-shadow(0 0 6px rgba(139,0,0,1)); }
}

@keyframes amethyst-pulse {
  0%,100% { filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(147,112,219,1)) drop-shadow(0 0 6px rgba(138,43,226,0.8)); }
  50%    { filter: brightness(1.6) saturate(1.8) drop-shadow(0 0 5px rgba(147,112,219,1)) drop-shadow(0 0 6px rgba(138,43,226,1)); }
}

@keyframes aquamarine-pulse {
  0%,100% { filter: brightness(.8) saturate(1.5) drop-shadow(0 0 5px rgba(127,255,212,1)) drop-shadow(0 0 6px rgba(0,206,209,0.8)); }
  50%    { filter: brightness(1) saturate(1.8) drop-shadow(0 0 5px rgba(127,255,212,1)) drop-shadow(0 0 6px rgba(0,206,209,1)); }
}

@keyframes diamond-pulse {
  0%,100% { filter: brightness(.9) saturate(1.4) drop-shadow(0 0 5px rgba(255,255,255,1)) drop-shadow(0 0 6px rgba(230,230,250,0.9)); }
  50%    { filter: brightness(1.1) saturate(1.6) drop-shadow(0 0 5px rgba(255,255,255,1)) drop-shadow(0 0 6px rgba(230,230,250,1)); }
}

@keyframes emerald-pulse {
  0%,100% { filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(50,205,50,1)) drop-shadow(0 0 6px rgba(0,128,0,0.8)); }
  50%    { filter: brightness(1.6) saturate(1.8) drop-shadow(0 0 5px rgba(50,205,50,1)) drop-shadow(0 0 6px rgba(0,128,0,1)); }
}

@keyframes alexandrite-pulse {
  0%,100% { filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(106,90,205,1)) drop-shadow(0 0 6px rgba(255,20,147,0.7)); }
  50%    { filter: brightness(1.6) saturate(1.8) drop-shadow(0 0 5px rgba(106,90,205,1)) drop-shadow(0 0 6px rgba(255,20,147,1)); }
}

@keyframes ruby-pulse {
  0%,100% { filter: brightness(.7) saturate(1.5) drop-shadow(0 0 5px rgba(255,0,0,1)) drop-shadow(0 0 6px rgba(220,20,60,0.9)); }
  50%    { filter: brightness(.9) saturate(1.8) drop-shadow(0 0 5px rgba(255,0,0,1)) drop-shadow(0 0 6px rgba(220,20,60,1)); }
}

@keyframes peridot-pulse {
  0%,100% { filter: brightness(.8) saturate(1.5) drop-shadow(0 0 5px rgba(154,205,50,1)) drop-shadow(0 0 6px rgba(107,142,35,0.8)); }
  50%    { filter: brightness(1.1) saturate(1.8) drop-shadow(0 0 5px rgba(154,205,50,1)) drop-shadow(0 0 6px rgba(107,142,35,1)); }
}

@keyframes sapphire-pulse {
  0%,100% { filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 5px rgba(65,105,225,1)) drop-shadow(0 0 6px rgba(0,0,139,0.8)); }
  50%    { filter: brightness(1.6) saturate(1.8) drop-shadow(0 0 5px rgba(65,105,225,1)) drop-shadow(0 0 6px rgba(0,0,139,1)); }
}

@keyframes opal-pulse {
  0%,100% { filter: brightness(.9) saturate(1.6) drop-shadow(0 0 5px rgba(255,182,193,0.9)) drop-shadow(0 0 6px rgba(255,215,0,0.7)) drop-shadow(0 0 13px rgba(138,43,226,0.6)); }
  50%    { filter: brightness(1.2) saturate(1.9) drop-shadow(0 0 5px rgba(255,182,193,1)) drop-shadow(0 0 6px rgba(255,215,0,1)) drop-shadow(0 0 13px rgba(138,43,226,1)); }
}

@keyframes topaz-pulse {
  0%,100% { filter: brightness(1) saturate(1.5) drop-shadow(0 0 5px rgba(255,215,0,1)) drop-shadow(0 0 6px rgba(255,165,0,0.8)); }
  50%    { filter: brightness(1.2) saturate(1.8) drop-shadow(0 0 5px rgba(255,215,0,1)) drop-shadow(0 0 6px rgba(255,165,0,1)); }
}

@keyframes turquoise-pulse {
  0%,100% { filter: brightness(.9) saturate(1.5) drop-shadow(0 0 5px rgba(64,224,208,1)) drop-shadow(0 0 6px rgba(0,206,209,0.8)); }
  50%    { filter: brightness(1.3) saturate(1.8) drop-shadow(0 0 5px rgba(64,224,208,1)) drop-shadow(0 0 6px rgba(0,206,209,1)); }
}

/* Apply specific pulse animations to each birthstone */
.birthstone-icon[data-month="january"].glow.pulse { animation: garnet-pulse 1.6s infinite; }
.birthstone-icon[data-month="february"].glow.pulse { animation: amethyst-pulse 1.6s infinite; }
.birthstone-icon[data-month="march"].glow.pulse { animation: aquamarine-pulse 1.6s infinite; }
.birthstone-icon[data-month="april"].glow.pulse { animation: diamond-pulse 1.6s infinite; }
.birthstone-icon[data-month="may"].glow.pulse { animation: emerald-pulse 1.6s infinite; }
.birthstone-icon[data-month="june"].glow.pulse { animation: alexandrite-pulse 1.6s infinite; }
.birthstone-icon[data-month="july"].glow.pulse { animation: ruby-pulse 1.6s infinite; }
.birthstone-icon[data-month="august"].glow.pulse { animation: peridot-pulse 1.6s infinite; }
.birthstone-icon[data-month="september"].glow.pulse { animation: sapphire-pulse 1.6s infinite; }
.birthstone-icon[data-month="october"].glow.pulse { animation: opal-pulse 1.6s infinite; }
.birthstone-icon[data-month="november"].glow.pulse { animation: topaz-pulse 1.6s infinite; }
.birthstone-icon[data-month="december"].glow.pulse { animation: turquoise-pulse 1.6s infinite; }

/* Apply pulse animations to small birthstone icons */
.birthstone-icon-small[data-month="january"].glow.pulse { animation: garnet-pulse 1.6s infinite; }
.birthstone-icon-small[data-month="february"].glow.pulse { animation: amethyst-pulse 1.6s infinite; }
.birthstone-icon-small[data-month="march"].glow.pulse { animation: aquamarine-pulse 1.6s infinite; }
.birthstone-icon-small[data-month="april"].glow.pulse { animation: diamond-pulse 1.6s infinite; }
.birthstone-icon-small[data-month="may"].glow.pulse { animation: emerald-pulse 1.6s infinite; }
.birthstone-icon-small[data-month="june"].glow.pulse { animation: alexandrite-pulse 1.6s infinite; }
.birthstone-icon-small[data-month="july"].glow.pulse { animation: ruby-pulse 1.6s infinite; }
.birthstone-icon-small[data-month="august"].glow.pulse { animation: peridot-pulse 1.6s infinite; }
.birthstone-icon-small[data-month="september"].glow.pulse { animation: sapphire-pulse 1.6s infinite; }
.birthstone-icon-small[data-month="october"].glow.pulse { animation: opal-pulse 1.6s infinite; }
.birthstone-icon-small[data-month="november"].glow.pulse { animation: topaz-pulse 1.6s infinite; }
.birthstone-icon-small[data-month="december"].glow.pulse { animation: turquoise-pulse 1.6s infinite; }

/* birthstone details panel */
.birthstone-details {
    display: none;
    margin-top: 16px;
    padding: 18px;
    background: rgb(80, 80, 80);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.82);
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    text-align: left;
}
.birthstone-details.show { display: flex; }
/* 2026-09-08: scoped to the header hero only — the per-property images below
   set their own widths (.dossier-prop-full spans the section, .dossier-prop-row
   is a small right schematic, etc.). */
#detailsImage {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0);
}
.birthstone-info { color: white; text-align: left; flex: 1 1 220px; }
.birthstone-info h2 { margin: 0 0 6px; font-size: 1.25em; }
.birthstone-info p { margin: 4px 0; font-size: 0.95em; opacity: 0.95; }
.birthstone-info .meta { font-size: 0.9em; opacity: 0.9; }
.birthstone-details .close-btn {
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
}

/* ---------- the mineral dossier ---------- */
.birthstone-dossier {
    flex: 1 1 100%;
    color: white;
}
.chaos-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.chaos-title {
    font-size: 0.78em;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 8px;
}
.chaos-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}
.chaos-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #64e0d0, #ffd76a, #ff7a5c);
    box-shadow: 0 0 12px rgba(255, 215, 106, 0.6);
}
.chaos-line { font-size: 0.85em; opacity: 0.9; }
.chaos-line b { color: #ffd76a; }

.dossier-spotlight {
    background: rgba(255, 215, 106, 0.1);
    border: 1px solid rgba(255, 215, 106, 0.45);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.dossier-spotlight-label {
    font-size: 0.75em;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffd76a;
    margin-bottom: 8px;
}
.dossier-line { font-size: 0.92em; line-height: 1.55; margin-bottom: 6px; opacity: 0.95; }
.dossier-label { font-weight: bold; color: #ffd76a; }
/* 2026-09-08 per-property images (mirror of jsmodules/ChaosBirthstone.css) */
.dossier-props-row { display: flex; align-items: flex-start; gap: 12px; }
.dossier-props-row .dossier-lines { flex: 1 1 auto; min-width: 0; }
.dossier-lines .dossier-line:last-child { margin-bottom: 0; }
.dossier-prop-img {
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.5);
}
.dossier-prop-row { flex: 0 0 auto; width: 168px; max-width: 42%; height: auto; }
.dossier-prop-center { width: 92%; max-width: 340px; margin: 10px auto 4px auto; }
/* 2026-09-08 — the "Physical Numbers" chart, capped to the centered-image width */
.dossier-prop-full { width: 100%; max-width: 340px; margin: 10px auto 4px auto; object-fit: contain; }
/* 2026-09-08 — the locator map ("Where It Is Found") reads bigger */
.dossier-prop-sec-origin.dossier-prop-center { width: 100%; max-width: 440px; }
@media (max-width: 480px) {
    .dossier-prop-row { width: 128px; }
    .dossier-prop-center { width: 100%; }
}

.dossier-details {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
}
.dossier-details summary {
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffe9b0;
}
.dossier-details[open] summary { margin-bottom: 8px; }

.dossier-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.dossier-chip {
    border: 1px solid rgba(255, 215, 106, 0.5);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.78em;
    color: #ffd76a;
}
.dossier-note {
    font-size: 0.78em;
    font-style: italic;
    opacity: 0.65;
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 10px;
}

/* responsive tweaks for the form */
@media (max-width: 480px) {
    .birthday-form select { min-width: 150px; }
    .birthstone-details { flex-direction: column; align-items: center; }
    .birthstone-info { text-align: center; }
    .birthstone-details .close-btn { margin-left: 0; }
}

@media (max-width: 768px) {
    .birthstones-container {
        gap: 10px;
        padding: 15px;
    }

    .birthstones-container-small {
        gap: 8px;
        padding: 12px;
    }

    .birthstone-icon {
        width: 25px; /* 50px * 0.35 */
        height: 25px; /* 50px * 0.35 */
    }

    .birthstone-icon-small {
        width: 20px;
        height: 20px;
    }

    .birthstone-item:hover .birthstone-icon {
        width: 19px; /* 55px * 0.35 */
        height: 19px; /* 55px * 0.35 */
    }

    .birthstone-icon-small:hover {
        width: 24px;
        height: 24px;
    }

    h1 {
        font-size: 2em;
    }
}

/* Stone scanning animations - each stone glows with its individual color */
@keyframes stone-scan-forward {
    0%, 90%, 100% { 
        filter: none;
        transform: scale(1);
    }
    5%, 15% { 
        filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px currentColor) drop-shadow(0 0 4px currentColor);
        transform: scale(1.1);
    }
}

@keyframes stone-scan-reverse {
    0%, 90%, 100% { 
        filter: none;
        transform: scale(1);
    }
    5%, 15% { 
        filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px currentColor) drop-shadow(0 0 4px currentColor);
        transform: scale(1.1);
    }
}

/* Individual birthstone scanning animations with their specific colors */
@keyframes garnet-scan {
    0%, 90%, 100% { filter: none; transform: scale(1); }
    5%, 15% { filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(220, 20, 60, 0.8)) drop-shadow(0 0 4px rgba(139, 0, 0, 0.6)); transform: scale(1.1); }
}

@keyframes amethyst-scan {
    0%, 90%, 100% { filter: none; transform: scale(1); }
    5%, 15% { filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(147, 112, 219, 0.8)) drop-shadow(0 0 4px rgba(138, 43, 226, 0.6)); transform: scale(1.1); }
}

@keyframes aquamarine-scan {
    0%, 90%, 100% { filter: none; transform: scale(1); }
    5%, 15% { filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(127, 255, 212, 0.8)) drop-shadow(0 0 4px rgba(0, 206, 209, 0.6)); transform: scale(1.1); }
}

@keyframes diamond-scan {
    0%, 90%, 100% { filter: none; transform: scale(1); }
    5%, 15% { filter: brightness(1.3) saturate(1.2) drop-shadow(0 0 3px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 4px rgba(230, 230, 250, 0.7)); transform: scale(1.1); }
}

@keyframes emerald-scan {
    0%, 90%, 100% { filter: none; transform: scale(1); }
    5%, 15% { filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(50, 205, 50, 0.8)) drop-shadow(0 0 4px rgba(0, 128, 0, 0.6)); transform: scale(1.1); }
}

@keyframes alexandrite-scan {
    0%, 90%, 100% { filter: none; transform: scale(1); }
    5%, 15% { filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(106, 90, 205, 0.8)) drop-shadow(0 0 4px rgba(255, 20, 147, 0.5)); transform: scale(1.1); }
}

@keyframes ruby-scan {
    0%, 90%, 100% { filter: none; transform: scale(1); }
    5%, 15% { filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(255, 0, 0, 0.8)) drop-shadow(0 0 4px rgba(220, 20, 60, 0.7)); transform: scale(1.1); }
}

@keyframes peridot-scan {
    0%, 90%, 100% { filter: none; transform: scale(1); }
    5%, 15% { filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(154, 205, 50, 0.8)) drop-shadow(0 0 4px rgba(107, 142, 35, 0.6)); transform: scale(1.1); }
}

@keyframes sapphire-scan {
    0%, 90%, 100% { filter: none; transform: scale(1); }
    5%, 15% { filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(65, 105, 225, 0.8)) drop-shadow(0 0 4px rgba(0, 0, 139, 0.6)); transform: scale(1.1); }
}

@keyframes opal-scan {
    0%, 90%, 100% { filter: none; transform: scale(1); }
    5%, 15% { filter: brightness(1.2) saturate(1.4) drop-shadow(0 0 3px rgba(255, 182, 193, 0.7)) drop-shadow(0 0 4px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 8px rgba(138, 43, 226, 0.4)); transform: scale(1.1); }
}

@keyframes topaz-scan {
    0%, 90%, 100% { filter: none; transform: scale(1); }
    5%, 15% { filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 4px rgba(255, 165, 0, 0.6)); transform: scale(1.1); }
}

@keyframes turquoise-scan {
    0%, 90%, 100% { filter: none; transform: scale(1); }
    5%, 15% { filter: brightness(1.2) saturate(1.3) drop-shadow(0 0 3px rgba(64, 224, 208, 0.8)) drop-shadow(0 0 4px rgba(0, 206, 209, 0.6)); transform: scale(1.1); }
}

/* Knight Rider scanning effect class */
.knight-rider-scan {
    position: relative;
}

/* Individual birthstone scanning animations with their specific colors */
.knight-rider-scan .birthstone-icon-small[data-month="january"] { animation: garnet-scan 6s ease-in-out infinite; animation-delay: 0s; }
.knight-rider-scan .birthstone-icon-small[data-month="february"] { animation: amethyst-scan 6s ease-in-out infinite; animation-delay: 0.25s; }
.knight-rider-scan .birthstone-icon-small[data-month="march"] { animation: aquamarine-scan 6s ease-in-out infinite; animation-delay: 0.5s; }
.knight-rider-scan .birthstone-icon-small[data-month="april"] { animation: diamond-scan 6s ease-in-out infinite; animation-delay: 0.75s; }
.knight-rider-scan .birthstone-icon-small[data-month="may"] { animation: emerald-scan 6s ease-in-out infinite; animation-delay: 1s; }
.knight-rider-scan .birthstone-icon-small[data-month="june"] { animation: alexandrite-scan 6s ease-in-out infinite; animation-delay: 1.25s; }
.knight-rider-scan .birthstone-icon-small[data-month="july"] { animation: ruby-scan 6s ease-in-out infinite; animation-delay: 1.5s; }
.knight-rider-scan .birthstone-icon-small[data-month="august"] { animation: peridot-scan 6s ease-in-out infinite; animation-delay: 1.75s; }
.knight-rider-scan .birthstone-icon-small[data-month="september"] { animation: sapphire-scan 6s ease-in-out infinite; animation-delay: 2s; }
.knight-rider-scan .birthstone-icon-small[data-month="october"] { animation: opal-scan 6s ease-in-out infinite; animation-delay: 2.25s; }
.knight-rider-scan .birthstone-icon-small[data-month="november"] { animation: topaz-scan 6s ease-in-out infinite; animation-delay: 2.5s; }
.knight-rider-scan .birthstone-icon-small[data-month="december"] { animation: turquoise-scan 6s ease-in-out infinite; animation-delay: 2.75s; }

/* Paused state - stops the scanning animation */
.knight-rider-scan.paused .birthstone-icon-small {
    animation-play-state: paused !important;
}
