/* Reset CSS to ensure consistent layout */
body, h1, h3, div {
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%; /* Full height for the body and HTML */
    margin: 0;
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    position: relative;
}

/* Title styling */
h1 {
    margin-bottom: 1rem;
}

p {
    font-size: 2rem; 
}

span {
    color: #FF0000;
    font-size: 2rem; 
}

mark {
    background-color: #FFFF00; /* Or any other color, e.g., #FFFF00 for yellow */
    color: black; /* Optional: change text color */
}

.element-bar {
    border-radius: 10px;
    margin-right: 10px;
    vertical-align:text-bottom;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
}

/* Header styling */
.myheader {
    background-color: #FFFFFF;
    padding: 3px;
}

/* General container styling */
.container {
    flex: 1; /* Allows the container to grow and push the footer down */
    padding: 0.2rem;
}

/* Four Pillars of Destiny the main screen */
.main-div {
    /*background-blend-mode: darken; /* Blend mode for lighter effect */
    background-color: #FFFFFF;
    /*background-color: rgb(232, 230, 231);*/
}

.div-with-top-border {
    border:10px solid rgb(33, 42, 55);
    border-top-width: thick;
    border-left-width: thick;
    border-right-width: thick;
    border-bottom-width: 0;
    /*border-radius: 0.5rem;*/
    margin: 0.5rem;
    box-sizing: border-box;
}

.div-with-bottom-border {
    border: 3px solid rgb(33, 42, 55);
    border-top-width: 0;
    border-left-width: thick;
    border-right-width: thick;
    border-bottom-width: thick;
    /*border-radius: 0.5rem;*/
    margin: 0.5rem;
    box-sizing: border-box;
}

/* Pillar box styling */
.pillar {
    flex: 1 1 23%; /* Flex-grow, flex-shrink, and flex-basis */
    min-width: 130px; /* Minimum width for each pillar */
    max-width: 23%; /* Ensure each pillar doesn’t exceed this width */
    /*padding: 0.5rem;*/
    margin: 0.5rem;
    /*border: 1px solid #ddd;*/
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: #c8c8c8;
    text-align: center;
    background-color: rgb(33, 42, 55);
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

/* Pillar box styling */
.pillar_label {
    /*flex: 1 1 22%; /* Flex-grow, flex-shrink, and flex-basis */
    /*min-width: 130px; /* Minimum width for each pillar */
    /*max-width: 22%; /* Ensure each pillar doesn’t exceed this width */
    /*padding: 0.5rem;*/
    margin: 0.5rem;
    /*border: 1px solid #ddd;*/
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: #c8c8c8;
    text-align: center;
    background-color: rgb(33, 42, 55);
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}


/* Pillar box styling */
.pillar_sm {
    flex: 1 1 12%; /* Flex-grow, flex-shrink, and flex-basis */
    min-width: 45px; /* Minimum width for each pillar */
    max-width: 10%; /* Ensure each pillar doesn’t exceed this width */
    text-align: center;
    margin: 0.3rem;
    padding: 0.1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: #c8c8c8;
    background-color:#657382
    /*border: 1px solid #ddd;
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

/* Pillar box styling */
.pillar-nobackground {
    flex: 1 1 22%; /* Flex-grow, flex-shrink, and flex-basis */
    min-width: 130px; /* Minimum width for each pillar */
    max-width: 22%; /* Ensure each pillar doesn’t exceed this width */
    /*padding: 0.5rem;*/
    margin: 0.5rem;
    /*border: 1px solid #ddd;*/
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: #c8c8c8;
    text-align: center;
    background-color: none;
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

/* Pillar box styling */
.jamidusu_pillar {
    flex: 1 1 23%; /* Flex-grow, flex-shrink, and flex-basis */
    min-width: 130px; /* Minimum width for each pillar */
    max-width: 23%; /* Ensure each pillar doesn’t exceed this width */
    min-height: 130px;
    /*padding: 0.5rem;*/
    margin: 0.5rem;
    /*border: 1px solid #ddd;*/
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: #c8c8c8;
    text-align: center;
    background-color: #f3e9ff; /*dae8f1
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    position: relative;
}

.pillar_info {
    color: #62529A;
    text-align: left;
    font-size:1.5rem;
    background-color: none;
    width: 100%; /* Ensures it spans the width if needed */
    margin: 0;   /* Removes default browser paragraph margins */
}

.pillar_info_div {
    position: absolute;
    bottom: 0;
    /*right: 0;*/
}

.circled-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0px solid #333;
  border-radius: 50%;
  font-family: sans-serif;
  font-weight: bold;
  background-color: #9674CC;
  color: white;
}

.circled-letter-tenyear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0px solid #333;
  border-radius: 50%;
  font-family: sans-serif;
  font-weight: bold;
  background-color: #62529A;
  color: white;
}

.circled-letter-oneyear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0px solid #333;
  border-radius: 50%;
  font-family: sans-serif;
  font-weight: bold;
  background-color: #34214F;
  color: white;
}

.badge-rect {
  background-color:#9674CC ; /*#3498db Blue background */
  color: white;              /* White text color */
  padding: 4px 8px;          /* Space inside the rectangle */
  border-radius: 4px;        /* Optional: slightly rounded corners */
}

.badge-rect-tenyear {
  background-color:#62529A ; /*#3498db Blue background */
  color: white;              /* White text color */
  padding: 4px 8px;          /* Space inside the rectangle */
  border-radius: 4px;        /* Optional: slightly rounded corners */
}

.row {
  display: flex;
}

.column {
  flex: 50%;
  flex-direction: column;
}

/* Pillar box styling */
.hiddenzhipillar {
    flex: 1 1 22%; /* Flex-grow, flex-shrink, and flex-basis */
    flex-direction: column;
    flex-wrap: nowrap;
    min-width: 130px; /* Minimum width for each pillar */
    max-width: 22%; /* Ensure each pillar doesn’t exceed this width */
    /*padding: 0.5rem;*/
    margin: 0.5rem;
    /*border: 1px solid #ddd;*/
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: #c8c8c8;
    text-align: center;
    background-color: rgb(33, 42, 55);
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

/* Pillar box styling */
.luckpillar {
    flex: 1 1 22%; /* Flex-grow, flex-shrink, and flex-basis */
    min-width: 130px; /* Minimum width for each pillar */
    max-width: 22%; /* Ensure each pillar doesn’t exceed this width */
    /*padding: 0.5rem;*/
    /*margin: 0.5rem;*/
    border: 2px solid #000000;
    /*border-radius: 0.5rem;*/
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    color: #c8c8c8;
    text-align: center;
    background-color: rgb(33, 42, 55);
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

/* Pillar box styling */
.starbox {
    flex: 1 1 88%; /* Flex-grow, flex-shrink, and flex-basis */
    /*min-width: 130px; /* Minimum width for each pillar */
    max-width: 88%; /* Ensure each pillar doesn’t exceed this width */
    text-align: left;
    padding: 2.5rem;
    margin: 2.5rem;
    /*font-family: "Times New Roman", Times, serif;
    /*border: 2px solid #000000;
    /*border-radius: 0.5rem;*/
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    /*color: #c8c8c8;
    /*background-color: rgb(33, 42, 55);
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

.majorstar {
    font-size: 2rem;
    text-align: left;
    color:black;
}

.minorstar {
    font-size: 1.5rem;
    text-align: left;
    writing-mode: vertical-lr;
    line-height: 1.1;
    color:black;
}

.tenyearstar {
    font-size: 2rem;
    text-align: center;
    color:#62529A;
}

.oneyearstar {
    font-size: 2rem;
    text-align: center;
    color:#34214F;
}



/* ========================================================================
   DESTINY SAJU — SAFE SHELL
   The original Jamidusu chart typography and internal styling above
   are intentionally untouched.
   ======================================================================== */

html,
body {
    background: #ffffff !important;
    background-image: none !important;
}

.jamidusu-result-page {
    width: calc(100% - 32px);
    max-width: 1120px;
    margin: 32px auto 34px !important;
    padding: 18px 0 12px !important;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.jamidusu-title-star {
    text-align: center;
    color: #b38a48;
    font-size: 1.15rem;
    line-height: 1;
    margin-bottom: 9px;
}

.jamidusu-result-page #mainHeading {
    color: #251d31;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 24px !important;
}

/* Top year controls only. */
.jamidusu-result-page form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.jamidusu-result-page form .form-select {
    width: 190px;
    max-width: 190px;
    height: 42px;
    padding: 5px 34px 5px 12px;
    border: 1px solid #dcd5e2;
    border-radius: 7px;
    font-size: 1rem !important;
    line-height: 1.2;
    box-shadow: none;
}

.jamidusu-result-page form .form-select:focus {
    border-color: #9d7bbd;
    box-shadow: 0 0 0 3px rgba(157, 123, 189, 0.14);
}

.jamidusu-result-page .calculate-btn {
    width: auto;
    min-width: 118px;
    height: 42px;
    padding: 5px 17px;
    border: 1px solid #261a3d;
    border-radius: 7px;
    background: #261a3d;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 600;
}

.jamidusu-result-page .calculate-btn:hover,
.jamidusu-result-page .calculate-btn:focus {
    background: #3a2858;
    border-color: #3a2858;
}

/* Desktop: constrain the ORIGINAL chart; do not resize its internals. */
@media (min-width: 1100px) {
    .jamidusu-result-page {
        max-width: 1120px;
    }
}

/* Mobile: retain original chart geometry; only simplify the outer shell. */
@media (max-width: 700px) {
    .jamidusu-result-page {
        width: 100%;
        margin: 18px auto 22px !important;
        padding: 14px 6px 18px !important;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .jamidusu-result-page #mainHeading {
        font-size: 1.72rem !important;
        line-height: 1.2;
        margin-bottom: 18px !important;
    }

    .jamidusu-result-page form {
        gap: 6px;
        margin-bottom: 14px;
    }

    .jamidusu-result-page form .form-select {
        width: 178px;
        max-width: calc(100% - 112px);
        height: 40px;
        font-size: 1rem !important;
    }

    .jamidusu-result-page .calculate-btn {
        min-width: 104px;
        height: 40px;
        padding: 5px 13px;
        font-size: 0.92rem;
    }
}


/* Protect shared DESTINY SAJU chrome from legacy Jamidusu global typography. */
.site-header p,
.site-header span,
.site-footer p,
.site-footer span {
    font-size: inherit;
}

.site-header img,
.site-footer img {
    max-width: none;
}

/* ========================================================================
   VERSION B TEST — preserve the legacy no-viewport chart geometry.
   Only compensate the shared site chrome on phones.
   The 12-palace chart rules above are intentionally untouched.
   ======================================================================== */
@media screen and (max-device-width: 700px) {
    .site-header {
        padding: 34px 20px 38px !important;
    }

    .site-header .header-logo {
        width: 130px !important;
        height: 130px !important;
        margin-bottom: 16px !important;
    }

    .site-header .brand {
        font-size: 60px !important;
        letter-spacing: 9px !important;
        line-height: 1.1 !important;
    }

    .site-header .header-nav {
        margin-top: 20px !important;
        font-size: 36px !important;
        letter-spacing: 1px !important;
    }

    .site-header .header-nav span {
        font-size: 36px !important;
        margin: 0 10px !important;
    }

    .site-footer {
        padding: 34px 20px 40px !important;
        font-size: 28px !important;
        line-height: 1.6 !important;
    }

    .site-footer p {
        margin: 6px 0 !important;
        font-size: 28px !important;
    }
}


/* ========================================================================
   DESTINY SAJU — ORIGINAL 3-LAYER COLORS + CLEAN LEGEND
   Keeps the current layout/geometry and restores the chart's original
   high-contrast visual language.
   ======================================================================== */

/* Original layer colors */
.cycle-heading-tenyear {
    font-size: 2rem;
    padding: 0;
    color: #fff;
    background-color: #62529A;
}

.cycle-heading-oneyear {
    font-size: 2rem;
    padding: 0;
    color: #fff;
    background-color: #34214F;
}

.badge-rect {
    background-color: #9674CC !important;
    color: #fff;
}

.badge-rect-tenyear {
    background-color: #62529A !important;
    color: #fff;
}

.circled-letter {
    background-color: #9674CC !important;
    color: #fff;
}

.circled-letter-tenyear {
    background-color: #62529A !important;
    color: #fff;
}

.circled-letter-oneyear {
    background-color: #34214F !important;
    color: #fff;
}

.tenyearstar,
.star-tenyear {
    color: #62529A !important;
}

.oneyearstar,
.star-oneyear {
    color: #34214F !important;
}

/* Compact visual key. The container makes it read as one legend,
   while only the swatches carry layer color. */
.chart-legend {
    width: fit-content;
    max-width: calc(100% - 24px);
    margin: 9px auto 13px;
    padding: 7px 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    white-space: nowrap;
    background: #faf9fb;
    border: 1px solid #e6e1e9;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(35, 27, 46, 0.06);
}

.chart-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #332d39 !important;
    font-size: 0.9rem !important;
    font-weight: 600;
    line-height: 1;
}

.chart-legend .legend-item span {
    color: #332d39 !important;
    font-size: inherit !important;
}

.chart-legend .legend-swatch {
    display: inline-block;
    width: 11px;
    height: 11px;
    min-width: 11px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.chart-legend .legend-natal { background: #9674CC; }
.chart-legend .legend-tenyear { background: #62529A; }
.chart-legend .legend-oneyear { background: #34214F; }

@media (max-width: 600px) {
    .cycle-heading-tenyear,
    .cycle-heading-oneyear {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .chart-legend {
        gap: 11px;
        margin: 9px auto 12px;
        padding: 8px 11px;
    }

    .chart-legend .legend-item {
        gap: 4px;
        font-size: 0.88rem !important;
    }

    .chart-legend .legend-swatch {
        width: 12px;
        height: 12px;
        min-width: 12px;
    }
}

/* FINAL PHONE READABILITY FIX — legacy no-viewport phone coordinate system. */
.jamidusu-result-page form .form-select { font-size: 16px !important; }

@media screen and (max-device-width: 700px) {
    .jamidusu-result-page #mainHeading {
        font-size: 38px !important;
        line-height: 1.2 !important;
        margin-bottom: 22px !important;
    }
    .jamidusu-title-star {
        font-size: 30px !important;
        line-height: 1 !important;
        margin-bottom: 12px !important;
    }
    .jamidusu-result-page form .form-select {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
    .chart-legend {
        gap: 16px !important;
        padding: 10px 16px !important;
        margin: 12px auto 16px !important;
    }
    .chart-legend .legend-item {
        gap: 7px !important;
        font-size: 20px !important;
        line-height: 1 !important;
    }
    .chart-legend .legend-item span { font-size: inherit !important; }
    .chart-legend .legend-swatch {
        width: 15px !important;
        height: 15px !important;
        min-width: 15px !important;
    }
}


/* ========================================================================
   MOBILE V1 — DESKTOP VISUAL LOGIC, MOBILE TYPOGRAPHY PRESERVED
   Only: natal full-width heading bar, Ganzhi color, tighter star spacing,
   and a semantic blank major-star line when no major star is present.
   ======================================================================== */

/* Natal palace name becomes the same full-width architectural bar used by
   the later chart layers. Keep the existing mobile font. */
.jamidusu-result-page .natal-palace-heading {
    width: 100%;
    margin: 0 0 0.35rem 0;
    padding: 0;
    line-height: 1.2;
}

.jamidusu-result-page .natal-palace-heading .badge-rect {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    background-color: #9674CC !important;
    text-align: center;
}

/* Age remains blue navigation. Ganzhi becomes restrained chart metadata. */
.jamidusu-result-page .pillar_info .tenyear-ganzhi {
    color: #596273 !important;
}

/* Keep mobile major stars one-per-line. Reserve one major-star line even
   when empty, and reduce only the excessive gap before minor stars. */
.jamidusu-result-page .majorstar {
    min-height: 2rem;
    margin-top: 0;
    margin-bottom: 0.22rem;
    line-height: 1.15;
}

.jamidusu-result-page .minorstar {
    margin-top: 0;
}

/* ========================================================================
   MOBILE V2 — 4PX BREATHING ROOM TEST
   Typography and geometry stay unchanged. Only vertical rhythm changes.
   ======================================================================== */

/* Age/Ganzhi row -> major stars: +4px breathing room. */
.jamidusu-result-page .majorstar {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}

/* ========================================================================
   MOBILE V3 — 10-YEAR LAYER HIERARCHY TEST
   Keep the lavender palace background and mobile font untouched.
   1) Carried-over natal palace name becomes a quieter secondary label.
   2) Every 10-year carried-over/flying star gets a compact layer pill.
   ======================================================================== */

/* Secondary palace name carried from the natal chart: centered and clearly
   subordinate to the full-width 10-year palace heading above it. */
.jamidusu-result-page .mobile-origin-palace-subheading {
    margin: 5px 0 3px 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.jamidusu-result-page .mobile-origin-palace-subheading .badge-rect {
    display: inline-block !important;
    width: auto !important;
    padding: 2px 5px !important;
    border-radius: 2px !important;
    font-size: 0.82em !important;
    line-height: 1.05 !important;
    font-weight: 400 !important;
    background-color: #9674CC !important;
    color: #ffffff !important;
}

/* 10-year flying/carried-over stars: pill the star itself regardless of
   whether it is classified as a major or minor star. Existing 록권과기
   circles remain attached and keep their own layer semantics. */
.jamidusu-result-page .tenyearstar .star-tenyear {
    display: inline-block !important;
    padding: 2px 6px !important;
    border-radius: 999px !important;
    background-color: #62529A !important;
    color: #ffffff !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
}


/* ========================================================================
   MOBILE V6 — SELECTED-YEAR FLYING STAR FLOW
   V5 is preserved. On the third chart only, 10-year and selected-year
   flying stars share one horizontal flow while keeping their layer colors.
   ======================================================================== */
.jamidusu-result-page .flyingstar-flow {
    font-size: 2rem;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
}

.jamidusu-result-page .flyingstar-flow .star-tenyear,
.jamidusu-result-page .flyingstar-flow .star-oneyear {
    display: inline-block !important;
    padding: 2px 6px !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
}

.jamidusu-result-page .flyingstar-flow .star-tenyear {
    background-color: #62529A !important;
}

.jamidusu-result-page .flyingstar-flow .star-oneyear {
    background-color: #34214F !important;
}


/* ========================================================================
   MOBILE V8 — SELECTED-YEAR NATAL PALACE CORNER LABEL
   On the third chart only, show the original/natal palace name as a tiny
   #9674CC label at the bottom-right of each palace card.
   ======================================================================== */
.jamidusu-result-page .mobile-natal-palace-corner {
    position: absolute;
    right: 5px;
    bottom: 5px;
    display: inline-block;
    padding: 1px 4px;
    border-radius: 2px;
    background-color: #9674CC !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    line-height: 1.1 !important;
    padding: 2px 5px !important;
    white-space: nowrap;
    z-index: 2;
}


/* MOBILE V9 — one row per flying-star layer */
.jamidusu-result-page .flyingstar-layer {
    display: block;
    width: 100%;
    text-align: center;
}

.jamidusu-result-page .flyingstar-layer + .flyingstar-layer {
    margin-top: 4px;
}



/* ========================================================================
   MOBILE V10 — YEAR SELECTOR FINAL FIT
   Legacy no-viewport mobile geometry is preserved. Only the year selector
   receives enough physical width for the full Korean placeholder.
   ======================================================================== */
@media screen and (max-device-width: 700px) {
    .jamidusu-result-page form .form-select {
        width: 250px !important;
        max-width: 250px !important;
        min-width: 250px !important;
        height: 42px !important;
        padding: 5px 34px 5px 12px !important;
        font-size: 22px !important;
        line-height: 1.2 !important;
    }
}

/* ========================================================================
   MOBILE V11 — SELECTED-YEAR FLYING-STAR PILLS, SOFTER BACKGROUNDS
   Third chart only. Keep the layer colors recognizable, but soften the
   filled star pills so the selected-year chart is less visually heavy.
   Transformation circles remain at full strength for quick identification.
   ======================================================================== */
.jamidusu-result-page .flyingstar-flow .star-tenyear {
    background-color: #8A79B0 !important;
}

.jamidusu-result-page .flyingstar-flow .star-oneyear {
    background-color: #665477 !important;
}

/* ========================================================================
   MOBILE V12 — FINAL 3RD-CHART LAYER HIERARCHY
   Keep the softer 10-year flying-star pills from V11.
   On the selected-year chart:
   - the 10-year palace subheading uses that same softer 10-year color;
   - selected-year flying-star pills return to the full selected-year color.
   Everything else is unchanged.
   ======================================================================== */
.jamidusu-result-page .cycle-heading-oneyear + p .badge-rect-tenyear {
    background-color: #8A79B0 !important;
    color: #ffffff !important;
}

.jamidusu-result-page .flyingstar-flow .star-oneyear {
    background-color: #34214F !important;
    color: #ffffff !important;
}

/* ========================================================================
   MOBILE V13 — 10-YEAR TRANSFORMATION CIRCLES
   Use the same pale second-layer color for all 10-year 록·권·과·기 circles,
   on both the 10-year chart and the selected-year chart.
   ======================================================================== */
.jamidusu-result-page .circled-letter-tenyear {
    background-color: #8A79B0 !important;
    color: #ffffff !important;
}

/* ========================================================================
   MOBILE V14 — FINAL 10-YEAR PILL COLOR
   Use the same pale second-layer color for 10-year star pills everywhere,
   including the standalone 10-year chart and the selected-year chart.
   ======================================================================== */
.jamidusu-result-page .tenyearstar .star-tenyear,
.jamidusu-result-page .flyingstar-flow .star-tenyear {
    background-color: #8A79B0 !important;
    color: #ffffff !important;
}

/* Phone-only shared header correction for legacy no-viewport Jamidusu.
   More specific than the shared common.css typography lock loaded by header.php.
   Do not change the chart or desktop layout. */
@media screen and (max-device-width: 700px) {
    body .site-header .brand {
        font-size: 60px !important;
        letter-spacing: 9px !important;
        line-height: 1.1 !important;
    }
    body .site-header .header-nav,
    body .site-header .header-nav a,
    body .site-header .header-nav span {
        font-size: 36px !important;
        letter-spacing: 1px !important;
    }
}
