#content,
#gamePage #game {
    background: #0d192b url('../images/rules_sky.webp') center / cover no-repeat fixed;
}

#gamePage #game {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

#gamePage #board {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: auto;
    overflow: visible;
}

#gamePage #playerData {
    flex: 0 0 clamp(264px, 20%, 288px);
    width: auto;
    margin: 0;
    padding: .4rem .6rem .4rem 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    box-sizing: border-box;
}

#Luna2 {
    --ln-status-scale: 1;
    padding: .4rem 0 .4rem .6rem;
    color: #223444;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#Luna2 h3,
#playerData h3 {
    font-size: .95rem;
    font-weight: 700;
    margin: 0;
}

#Luna2 img,
#playerData img {
    object-fit: contain;
    max-width: 100%;
}

#Luna2 button,
#playerData button {
    cursor: default;
}

/* Stage & Compact Floating View Tabs */
.ln-stage {
    position: relative;
}

.ln-view-tabs {
    position: absolute;
    top: .45rem;
    left: .45rem;
    z-index: 15;
    display: inline-flex;
    gap: .2rem;
    background: rgba(16, 36, 50, .82);
    border: 1px solid rgba(181, 163, 101, .75);
    border-radius: .45rem;
    padding: .15rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}

#Luna2 .ln-tab-btn {
    cursor: pointer;
    padding: .2rem .65rem;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f4ebd0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: .32rem;
}

#Luna2 .ln-tab-btn:hover {
    background: rgba(255, 255, 255, .12);
}

#Luna2 .ln-tab-btn.ln-tab-active {
    color: #223444;
    background: linear-gradient(180deg, #fcf8ec 0%, #efe4c6 100%);
    border-color: #b5a365;
}

#Luna2 .ln-tutorial-link {
    position: absolute;
    top: .45rem;
    right: .45rem;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .62rem;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f4ebd0;
    background: rgba(16, 36, 50, .82);
    border: 1px solid rgba(181, 163, 101, .75);
    border-radius: .45rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
    text-decoration: none;
    cursor: pointer;
}

#Luna2 .ln-tutorial-link:hover,
#Luna2 .ln-tutorial-link:focus-visible {
    background: rgba(28, 58, 80, .94);
    color: #fff;
    border-color: #dfbd40;
}

@media (max-width: 600px) {
    #Luna2 .ln-tutorial-link {
        padding: .24rem .45rem;
    }

    #Luna2 .ln-tutorial-label {
        display: none;
    }
}

.ln-final {
    background: #7b2434;
    color: #fff;
    padding: .1rem .55rem;
    border: 1px solid rgba(255, 232, 158, .55);
    border-radius: .35rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .45);
}

/* Framework Player Info Sidebar (#playerData) */
#game #playerData .playerData.ln-player,
#playerData .ln-player {
    background: linear-gradient(180deg, #fcf8ec 0%, #efe5ca 100%);
    border: 1px solid #b5a365;
    border-top: 5px solid var(--ln-color);
    border-radius: .55rem;
    padding: .45rem .65rem;
    margin: 0;
    box-shadow: 0 3px 10px rgba(6, 18, 28, .25);
    color: #223444;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

#game #playerData .playerDataBasic,
.ln-player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding: 0;
}

#game #playerData .basicDesc,
.ln-player-head h3 {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    font-weight: 700;
    font-size: .95rem;
}

#game #playerData .playerInfoLogin,
.ln-player-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #223444;
}

#game #playerData .symbol {
    display: none;
}

.ln-color-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--ln-color);
    border: 1px solid rgba(0, 0, 0, .25);
    flex: 0 0 auto;
}

.ln-country-flag,
#playerData .basicDesc>.ln-country-flag {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    line-height: 1;
}

.ln-country-flag .fflag {
    padding: 0;
    margin: 0;
    display: block;
}

.ln-start-marker {
    flex: 0 0 auto;
    color: #b7791f;
    font-size: .95rem;
    line-height: 1;
}

#playerData .ln-score-pill,
.ln-score-pill {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: rgba(34, 52, 68, .08);
    border: 1px solid rgba(181, 163, 101, .65);
    border-radius: 999px;
    padding: .1rem .55rem .1rem .25rem;
    font-size: .95rem;
    font-weight: 700;
    color: #223444;
    line-height: 1.2;
    flex: 0 0 auto;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

#playerData .ln-score-pill:hover,
#playerData .ln-score-pill:focus-visible,
.ln-score-pill:hover,
.ln-score-pill:focus-visible {
    background: rgba(181, 163, 101, .26);
    border-color: #8f7a38;
    box-shadow: 0 0 0 2px rgba(181, 163, 101, .28);
}

.ln-coin {
    width: 22px;
    height: 22px;
}

#game #playerData .playerDataDetail {
    padding: 0;
}

.ln-player-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 36px 36px;
    row-gap: 4px;
    align-items: center;
}

.ln-player-counts {
    grid-row: 1;
    grid-column: 1 / 3;
    justify-self: start;
    z-index: 1;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.ln-player-stats .ln-score,
.ln-player-stats .ln-shrine-reserve,
.ln-player-stats .ln-setup-pairs {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(181, 163, 101, .5);
    border-radius: .35rem;
    padding: 2px .4rem;
    font-size: .92rem;
    height: 36px;
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
}

.ln-player-stats .ln-shrine-reserve .ln-shrine {
    width: 26px;
    height: 26px;
    filter: none;
}

.ln-player-stats .ln-setup-pairs {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
    z-index: 1;
    gap: .22rem;
    background: rgba(255, 248, 224, .85);
    border-color: #b5a365;
    padding: 2px .34rem;
    font-size: .86rem;
}

.ln-pair-icons {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.ln-pair-icons .ln-novice {
    width: 16px;
    height: 22px;
    object-fit: contain;
}

.ln-pair-icons .ln-novice + .ln-novice {
    margin-left: -7px;
}

.ln-favors {
    grid-row: 1 / 3;
    grid-column: 1 / 3;
    justify-self: end;
    width: auto;
    display: grid;
    grid-template-columns: repeat(4, 36px);
    gap: 4px;
    justify-content: end;
    align-items: center;
    pointer-events: none;
}

.ln-favors:empty {
    display: none;
}

.ln-favor-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(181, 163, 101, .55);
    border-radius: .35rem;
    padding: 1px;
    pointer-events: auto;
}

.ln-favor-chip:first-child {
    grid-column-start: 2;
}

.ln-favor-chip.ln-favor-empty {
    background: rgba(34, 52, 68, .12);
    border: 1px dashed rgba(34, 52, 68, .28);
    opacity: .7;
}

.ln-favor {
    width: 22px;
    height: 22px;
}

.ln-favor-chip .ln-favor {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ln-favor-legend {
    background: linear-gradient(180deg, #fcf8ec 0%, #efe5ca 100%);
    border: 1px solid #b5a365;
    border-radius: .55rem;
    padding: .45rem .55rem;
    box-shadow: 0 3px 10px rgba(6, 18, 28, .25);
    color: #223444;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: .78rem;
    line-height: 1.3;
}

.ln-legend-item {
    border-bottom: 1px solid rgba(181, 163, 101, .35);
    padding-bottom: .2rem;
}

.ln-legend-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ln-legend-summary {
    display: flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.ln-legend-summary::-webkit-details-marker {
    display: none;
}

.ln-legend-summary::after {
    content: '▸';
    margin-left: auto;
    color: #6b5d34;
    font-size: .75rem;
    transition: transform .15s ease;
}

.ln-legend-item[open] .ln-legend-summary::after {
    transform: rotate(90deg);
}

.ln-legend-summary .ln-favor {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.ln-legend-summary strong {
    font-size: .82rem;
    color: #1a2d3d;
}

.ln-legend-desc {
    margin: .25rem 0 .1rem 1.75rem;
    color: #465564;
}

.ln-novice {
    width: 22px;
    height: 31px;
    vertical-align: middle;
}

.ln-novice-inactive {
    transform: rotate(-70deg);
    opacity: .82;
}

.ln-shrine {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55));
}

/* Compact Council Track below Moon Round Indicator */
.ln-council {
    display: inline-block;
}

.ln-council-row {
    display: flex;
    align-items: flex-end;
}

.ln-seat {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(16px * var(--ln-status-scale, 1));
}

.ln-seat:last-child {
    width: calc(23px * var(--ln-status-scale, 1));
}

.ln-seat-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1px, calc(2px * var(--ln-status-scale, 1)), 2px);
    margin-bottom: 2px;
}

.ln-seat-bar {
    display: block;
    width: calc(12px * var(--ln-status-scale, 1));
    height: clamp(4.5px, calc(6px * var(--ln-status-scale, 1)), 6px);
    background: var(--ln-color);
    border: 1px solid #1b1b1b;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.ln-seat-pts {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: clamp(13px, calc(17px * var(--ln-status-scale, 1)), 17px);
    font-size: clamp(8.5px, calc(11px * var(--ln-status-scale, 1)), 11px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    color: #181818;
    background: linear-gradient(180deg, #f3efe2 0%, #dcd4bc 100%);
    border: 1px solid #4e4938;
    border-right-width: 0;
    line-height: 1;
    box-sizing: border-box;
}

.ln-seat:last-child .ln-seat-pts {
    border-right-width: 1px;
    padding-right: calc(4px * var(--ln-status-scale, 1));
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 50%, calc(100% - 4px) 100%, 0 100%);
}

/* Action Controls (centered floating dialog over the little temple island) */
.ln-controls {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .42rem;
    min-width: min(220px, 84vw);
    max-width: min(360px, 90vw);
    max-height: 62%;
    overflow-y: auto;
    padding: .75rem .85rem;
    background: linear-gradient(180deg, rgba(252, 248, 236, .97) 0%, rgba(239, 228, 198, .97) 100%);
    border: 2px solid #b5a365;
    border-radius: .75rem;
    box-shadow: 0 12px 32px rgba(6, 18, 28, .55), inset 0 1px 0 rgba(255, 255, 255, .85);
    backdrop-filter: blur(4px);
}

.ln-controls:empty {
    display: none;
}

#Luna2 .ln-controls button.ln-active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 38px;
    padding: .42rem .8rem;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1d3244;
    background: linear-gradient(180deg, #fffdf7 0%, #f4ead0 100%);
    border: 1px solid #bfae72;
    border-radius: .48rem;
    outline: none;
    box-shadow: 0 2px 4px rgba(34, 52, 68, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

#Luna2 .ln-controls button.ln-active:hover {
    background: linear-gradient(180deg, #ffffff 0%, #faefcf 100%);
    border-color: #9b8442;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(34, 52, 68, .22), inset 0 1px 0 #fff;
    filter: none;
}

#Luna2 .ln-controls button.ln-active:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(34, 52, 68, .18);
}

#Luna2 .ln-controls button.ln-opt-btn.ln-active {
    justify-content: flex-start;
    text-align: left;
    gap: .55rem;
    padding: .4rem .75rem;
}

#Luna2 .ln-controls button.ln-cancel.ln-active {
    min-height: 30px;
    padding: .25rem .65rem;
    margin-top: .15rem;
    font-size: .82rem;
    color: #5b4b32;
    background: rgba(34, 52, 68, .07);
    border: 1px solid rgba(181, 163, 101, .65);
    box-shadow: none;
}

#Luna2 .ln-controls button.ln-cancel.ln-active:hover {
    color: #8c2323;
    background: rgba(198, 78, 81, .14);
    border-color: rgba(198, 78, 81, .55);
    box-shadow: 0 2px 6px rgba(140, 35, 35, .15);
}

.ln-opt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 32px;
    flex: 0 0 auto;
}

.ln-opt-icon img {
    height: 26px;
    width: auto;
    max-width: 36px;
    object-fit: contain;
    display: block;
}

.ln-opt-icon .ln-favor {
    width: 26px;
    height: 26px;
}

.ln-opt-icon .ln-tile {
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

.ln-opt-icon .ln-novice {
    height: 24px;
    width: auto;
}

.ln-opt-icon .ln-novice-inactive {
    height: 22px;
    width: auto;
    margin: 0 3px;
}

.ln-opt-icon .ln-council-marker {
    width: 24px;
    height: auto;
}

.ln-opt-icon .ln-shrine {
    width: 24px;
    height: 24px;
}

.ln-opt-plus,
.ln-opt-arrow,
.ln-opt-badge {
    font-size: .82rem;
    font-weight: 800;
    color: #5b4b32;
    line-height: 1;
}

.ln-opt-label {
    flex: 1 1 auto;
}

/* Tab switching */
#Luna2[data-tab="islands"] .ln-temple-panel {
    display: none;
}

#Luna2[data-tab="temple"] .ln-archipelago,
#Luna2[data-tab="temple"] .ln-path {
    display: none;
}

/* Archipelago Tab */
.ln-archipelago {
    position: relative;
    border-radius: .75rem;
    border: 1px solid rgba(181, 163, 101, .5);
    background: radial-gradient(ellipse at center, rgba(44, 93, 124, .18) 0%, rgba(16, 40, 56, .28) 100%), #163042 url('../images/water1.webp') repeat;
    padding: .4rem;
    box-shadow: inset 0 0 36px rgba(8, 22, 34, .35);
}

.ln-islands {
    position: relative;
    width: 100%;
    max-width: min(100%, calc((100vh - 210px) * 1120 / 780));
    margin: 0 auto;
    aspect-ratio: 1120 / 780;
}

.ln-island {
    position: absolute;
    width: 27.5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: .6rem;
    transition: filter .15s ease, transform .15s ease;
}

.ln-island[data-island="0"] {
    left: 2%;
    top: 1%;
}

.ln-island[data-island="1"] {
    left: 36%;
    top: 0%;
}

.ln-island[data-island="2"] {
    left: 70%;
    top: 1%;
}

.ln-island[data-island="3"] {
    left: 71%;
    top: 34%;
}

.ln-island[data-island="4"] {
    left: 50%;
    top: 67%;
}

.ln-island[data-island="5"] {
    left: 20%;
    top: 67%;
}

.ln-island[data-island="6"] {
    left: 1%;
    top: 34%;
}

.ln-island-art {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ln-island-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5));
}

.ln-supply {
    position: absolute;
    width: 15.5%;
    aspect-ratio: 1;
    z-index: 4;
}

.ln-favor-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.ln-favor-stack .ln-favor {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    transform: translate(calc(var(--ln-layer, 0) * -1.5px), calc(var(--ln-layer, 0) * -1.5px));
    box-shadow: 1px 1px 0 #7b6c40, 2px 3px 5px rgba(0, 0, 0, .6);
}

.ln-supply-empty .ln-favor-stack {
    opacity: .16;
}

.ln-figures {
    position: absolute;
    height: 38%;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    z-index: 5;
}

.ln-figure {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .75));
}

.ln-island-shrine {
    position: absolute;
    width: 9.5%;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.ln-island-novice {
    position: absolute;
    width: 10%;
    z-index: 3;
}

.ln-island-novice .ln-novice {
    width: 100%;
    height: auto;
}

.ln-piece-wrap {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
}

.ln-inactive-row .ln-piece-wrap {
    position: relative;
}

.ln-novice-count {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5em;
    height: 1.5em;
    padding: 0 .3em;
    box-sizing: border-box;
    background: #fff;
    color: #162838;
    border: 1.5px solid #223444;
    border-radius: 999px;
    font-size: clamp(.72rem, .98vw, .9rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .65);
    pointer-events: none;
    z-index: 4;
}

.ln-inactive-group .ln-novice-count,
.ln-landing-group .ln-novice-count {
    font-size: clamp(.66rem, .88vw, .82rem);
}

.ln-piece-wrap .ln-novice {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .65));
}

.ln-inactive-row {
    position: absolute;
    z-index: 6;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
}

.ln-inactive-row.ln-inactive-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.ln-inactive-row.ln-inactive-col .ln-piece-wrap {
    height: 20px;
}

.ln-zero {
    display: none;
}

#Luna2 .ln-little-temple {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22.5%;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5));
    transition: transform .15s ease;
}

#Luna2 .ln-little-temple img {
    width: 100%;
    height: auto;
    display: block;
}

#Luna2 .ln-little-temple:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

.ln-arch-status {
    position: absolute;
    left: 1.1%;
    bottom: 2.2%;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(12px * var(--ln-status-scale, 1));
    z-index: 5;
}

.ln-arch-candle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border-radius: .5rem;
}

.ln-candles-row {
    display: flex;
    align-items: flex-end;
    gap: calc(6px * var(--ln-status-scale, 1));
}

.ln-candles-row img {
    height: calc(64px * var(--ln-status-scale, 1));
    width: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .65));
}

.ln-rounds {
    display: inline-flex;
    align-items: center;
    gap: calc(6px * var(--ln-status-scale, 1));
    background: rgba(16, 36, 50, .82);
    border: 1px solid rgba(181, 163, 101, .75);
    border-radius: calc(7px * var(--ln-status-scale, 1));
    padding: calc(4.5px * var(--ln-status-scale, 1)) calc(8px * var(--ln-status-scale, 1));
    box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}

.ln-round-moon {
    display: inline-flex;
    width: calc(20px * var(--ln-status-scale, 1));
    height: calc(20px * var(--ln-status-scale, 1));
}

.ln-round-moon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ln-round-moon.ln-moon-full svg {
    fill: #f5df98;
    opacity: .72;
}

.ln-round-moon.ln-moon-current svg {
    fill: #ffe89e;
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(255, 232, 158, .75));
}

.ln-round-moon.ln-moon-crescent svg {
    fill: #98b0c4;
    opacity: .55;
}

.ln-landing-stage {
    position: absolute;
    right: 1.5%;
    bottom: 2.5%;
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 5;
}

.ln-landing-art {
    position: relative;
    width: 100%;
}

.ln-landing-pier {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .48));
}

.ln-pier-novices {
    position: absolute;
    left: 5%;
    top: 19%;
    width: 55%;
    height: 48%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transform: rotate(21deg);
}

.ln-pier-novices .ln-piece-wrap {
    transform: rotate(-21deg);
}

.ln-pier-novices .ln-novice-count {
    transform: translate(-50%, -50%) rotate(-21deg);
}

.ln-pier-novices .ln-novice {
    width: clamp(22px, 2.3vw, 28px);
    height: auto;
}

/* Temple Island Tab */
.ln-temple-panel {
    background: linear-gradient(180deg, #faf5e6 0%, #efe4c6 100%);
    border: 1px solid #b5a365;
    border-radius: .65rem;
    padding: .4rem;
    box-shadow: 0 4px 14px rgba(6, 18, 28, .28);
}

.ln-temple {
    position: relative;
    width: 100%;
    max-width: min(100%, calc((100vh - 155px) * 1128 / 800));
    margin: 0 auto;
    aspect-ratio: 1128 / 800;
    border-radius: .45rem;
    overflow: hidden;
    background: #1a374b;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

.ln-temple-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ln-temple-pier-novices {
    position: absolute;
    left: 89%;
    top: 73.5%;
    width: 8.6%;
    height: 15.5%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    z-index: 4;
}

.ln-temple-pier-novices .ln-novice {
    width: clamp(12px, 2.3vw, 29px);
    height: auto;
}

.ln-telescope {
    position: absolute;
    left: 92.8191%;
    top: 9%;
    width: 8.3333%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: url('../images/templeisland.webp') 96.7118% 3.5411% / 1200% 851.0638% no-repeat;
    pointer-events: none;
}

#Luna2.ln-animated[data-tab="temple"] .ln-telescope {
    animation: ln-telescope-turn 90s steps(9, end) infinite;
}

@keyframes ln-telescope-turn {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #Luna2.ln-animated[data-tab="temple"] .ln-telescope {
        animation: none;
    }
}

.ln-temple-board {
    position: absolute;
    width: 14.7163%;
    height: 41.375%;
    display: block;
    pointer-events: none;
    z-index: 1;
}

#Luna2 .ln-cell {
    position: absolute;
    width: 7.0035%;
    height: 9.875%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    z-index: 2;
}

#Luna2 .ln-cell.ln-active,
#Luna2 .ln-cell.ln-selected {
    z-index: 5;
}

.ln-cell .ln-tile {
    width: 100%;
    height: 100%;
    display: block;
}

.ln-cell .ln-novice {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    width: 34%;
    height: 68%;
    z-index: 2;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .65));
}

.ln-cell .ln-book {
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    width: 68%;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .65));
}

.ln-temple-seat {
    position: absolute;
    transform: translate(-50%, -80%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1px;
    z-index: 3;
}

.ln-council-marker {
    width: clamp(20px, 2.2vw, 28px);
    height: auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .65));
}

#Luna2 .ln-temple-path-tile {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 6.4%;
    aspect-ratio: 1;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    z-index: 3;
}

.ln-temple-path-tile .ln-tile {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55));
}

.ln-temple-path-tile .ln-novice {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    width: 36%;
    height: 70%;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .75));
}

.ln-temple-guard-slot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 7.0%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 4;
}

.ln-temple-guard-slot .ln-guard-tile {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55));
}

.ln-temple-guard-slot .ln-guard {
    position: absolute;
    left: 26%;
    top: 38%;
    transform: translate(-50%, -50%);
    width: 46%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .8));
    z-index: 4;
}

.ln-temple-candle,
.ln-temple-candle-burnt {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 3.9%;
    z-index: 4;
    border-radius: .35rem;
}

.ln-temple-candle img,
.ln-temple-candle-burnt img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .75));
}

.ln-candle-glow {
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 2%, 69% 12%, 83% 27%, 91% 45%, 96% 68%, 99% 100%, 1% 100%, 4% 68%, 9% 45%, 17% 27%, 31% 12%);
    pointer-events: none;
    opacity: 0;
}

.ln-candle-glow::before,
.ln-candle-glow::after {
    content: '';
    position: absolute;
    pointer-events: none;
    mix-blend-mode: screen;
}

.ln-candle-glow::before {
    left: 50%;
    top: calc(var(--ln-flame-y, 34.5%) - var(--ln-flame-h, 19%) * .5);
    width: 92%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 246, 195, .82) 0%, rgba(255, 198, 80, .46) 40%, rgba(255, 145, 35, .14) 68%, rgba(255, 120, 20, 0) 84%);
}

.ln-candle-glow::after {
    left: 50.5%;
    top: var(--ln-flame-y, 34.5%);
    width: 18%;
    height: var(--ln-flame-h, 19%);
    transform-origin: 50% 92%;
    transform: translate(-50%, -92%);
    border-radius: 50% 50% 45% 45% / 78% 78% 22% 22%;
    background: radial-gradient(ellipse 50% 58% at 50% 58%, rgba(255, 255, 245, .95) 0%, rgba(255, 232, 145, .58) 50%, rgba(255, 185, 60, 0) 100%);
}

#Luna2.ln-animated[data-tab="temple"] .ln-candle-glow {
    opacity: 1;
}

#Luna2.ln-animated[data-tab="temple"] .ln-candle-glow::before {
    animation: ln-candle-halo 3.2s ease-in-out infinite;
}

#Luna2.ln-animated[data-tab="temple"] .ln-candle-glow::after {
    animation: ln-candle-flame 2.4s ease-in-out infinite;
}

@keyframes ln-candle-halo {

    0%,
    100% {
        opacity: .20;
        transform: translate(-50%, -50%) scale(.90);
    }

    28% {
        opacity: .68;
        transform: translate(-50%, -51%) scale(1.06);
    }

    52% {
        opacity: .34;
        transform: translate(-50%, -50%) scale(.95);
    }

    78% {
        opacity: .78;
        transform: translate(-50%, -51%) scale(1.09);
    }
}

@keyframes ln-candle-flame {

    0%,
    100% {
        opacity: .25;
        transform: translate(-50%, -92%) rotate(-1deg) scale(.94, .95);
    }

    30% {
        opacity: .88;
        transform: translate(-50%, -92%) rotate(2deg) scale(1.04, 1.13);
    }

    58% {
        opacity: .38;
        transform: translate(-50%, -92%) rotate(-2deg) scale(.96, .98);
    }

    82% {
        opacity: .95;
        transform: translate(-50%, -92%) rotate(1.5deg) scale(1.06, 1.16);
    }
}

@media (prefers-reduced-motion: reduce) {
    #Luna2.ln-animated[data-tab="temple"] .ln-candle-glow {
        opacity: 0;
    }

    #Luna2.ln-animated[data-tab="temple"] .ln-candle-glow::before,
    #Luna2.ln-animated[data-tab="temple"] .ln-candle-glow::after {
        animation: none;
    }
}

/* Temple Path (Bottom Strip) */
.ln-path {
    margin-top: .35rem;
    border: 1px solid #968452;
    border-radius: .45rem;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(6, 18, 28, .28);
}

.ln-path-track {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow-x: auto;
    gap: .2rem;
    align-items: center;
    background: #d8cfa8 url('../images/templepath_bg.webp') repeat-x center / auto 100%;
    padding: .2rem .35rem;
}

.ln-guard-band {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    gap: 2px;
    background: rgba(250, 245, 230, .86);
    border: 1px solid #a89763;
    border-radius: .35rem;
    padding: 2px 3px;
}

.ln-guard-slot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ln-guard-slot .ln-guard-tile {
    width: clamp(21px, calc(31px * var(--ln-status-scale, 1)), 34px);
    height: auto;
    display: block;
}

.ln-guard-slot .ln-guard {
    position: absolute;
    left: 26%;
    top: 42%;
    transform: translate(-50%, -50%);
    width: 45%;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .75));
    z-index: 2;
}

.ln-guard-band button {
    position: relative;
    padding: 1px;
    min-height: clamp(24px, calc(36px * var(--ln-status-scale, 1)), 40px);
    background: rgba(255, 255, 255, .65);
    border: 1px solid #b5a365;
}

.ln-guard-band .ln-novice {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(12px, calc(18px * var(--ln-status-scale, 1)), 20px);
    height: clamp(17px, calc(25px * var(--ln-status-scale, 1)), 28px);
}

.ln-guard-band .ln-tile {
    width: clamp(22px, calc(34px * var(--ln-status-scale, 1)), 38px);
    height: clamp(22px, calc(34px * var(--ln-status-scale, 1)), 38px);
}

.ln-guard-band.ln-approved {
    border-left: 5px solid #487d52;
}

.ln-used {
    opacity: .32;
}

/* Interactive states & Popovers */
#Luna2 .ln-active,
#playerData .ln-active {
    cursor: pointer;
    outline: 3px solid #ffd54f;
    box-shadow: 0 0 10px 2px rgba(255, 213, 79, .85), 0 0 0 4px rgba(16, 36, 50, .55);
}

#Luna2 .ln-active:hover,
#playerData .ln-active:hover {
    filter: brightness(1.1);
}

#Luna2 .ln-temple-path-tile.ln-active:hover,
#Luna2 .ln-temple-candle.ln-active:hover {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 6;
}

#Luna2 .ln-hover-match,
#Luna2 .ln-active.ln-hover-match {
    outline: 3px solid #38bdf8;
    box-shadow: 0 0 14px 4px rgba(56, 189, 248, .95), 0 0 0 5px rgba(16, 36, 50, .75);
    z-index: 7;
}

#Luna2 .ln-cell.ln-hover-match {
    transform: scale(1.1);
}

#Luna2 .ln-temple-path-tile.ln-hover-match {
    transform: translate(-50%, -50%) scale(1.1);
}

.ln-island-novices {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.ln-island-novices .ln-island-novice {
    pointer-events: auto;
}

.ln-inactive-group,
.ln-landing-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ln-landing-group {
    gap: 0;
}

.ln-landing-group .ln-piece-wrap + .ln-piece-wrap {
    margin-left: -10px;
}

.ln-pier-novices .ln-landing-group .ln-piece-wrap + .ln-piece-wrap {
    margin-left: -15px;
}

.ln-temple-pier-novices .ln-landing-group .ln-piece-wrap + .ln-piece-wrap {
    margin-left: -12px;
}

#Luna2 .ln-island.ln-active {
    outline: none;
    box-shadow: none;
    background: transparent;
    cursor: pointer;
}

#Luna2 .ln-island.ln-active .ln-island-img {
    filter:
        drop-shadow(0 0 2px #ffd54f) drop-shadow(0 0 4px #ffd54f) drop-shadow(0 0 6px rgba(255, 213, 79, .85));
}

#Luna2 .ln-island.ln-active:hover {
    transform: translateY(-2px);
}

#Luna2 .ln-island.ln-active:hover .ln-island-img {
    filter:
        brightness(1.06) drop-shadow(0 0 2px #ffd54f) drop-shadow(0 0 5px #ffd54f) drop-shadow(0 0 8px rgba(255, 213, 79, .95));
}

#Luna2 .ln-novice-group.ln-active,
#Luna2 .ln-piece-wrap.ln-active,
#Luna2 .ln-figure.ln-active,
#Luna2 .ln-supply.ln-active {
    outline: none;
    box-shadow: none;
    background: transparent;
    cursor: pointer;
    filter:
        drop-shadow(1.5px 0 0 #ffd54f) drop-shadow(-1.5px 0 0 #ffd54f) drop-shadow(0 1.5px 0 #ffd54f) drop-shadow(0 -1.5px 0 #ffd54f) drop-shadow(0 0 6px rgba(255, 213, 79, .85));
}

#Luna2 .ln-novice-group.ln-active:hover,
#Luna2 .ln-piece-wrap.ln-active:hover,
#Luna2 .ln-figure.ln-active:hover,
#Luna2 .ln-supply.ln-active:hover {
    filter:
        brightness(1.12) drop-shadow(2px 0 0 #ffd54f) drop-shadow(-2px 0 0 #ffd54f) drop-shadow(0 2px 0 #ffd54f) drop-shadow(0 -2px 0 #ffd54f) drop-shadow(0 0 8px rgba(255, 213, 79, .95));
}

#Luna2 .ln-inactive-group.ln-active:hover,
#Luna2 .ln-landing-group.ln-active:hover,
#Luna2 .ln-figure.ln-active:hover,
#Luna2 .ln-supply.ln-active:hover {
    transform: scale(1.08);
}

#Luna2 .ln-selected,
#playerData .ln-selected {
    outline: 2.5px solid #0284c7;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .92), 0 0 10px rgba(2, 132, 199, .75);
}

#Luna2 .ln-island.ln-selected {
    outline: none;
    box-shadow: none;
}

#Luna2 .ln-island.ln-selected .ln-island-img {
    filter:
        drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #0284c7) drop-shadow(0 0 8px rgba(2, 132, 199, .85));
}

#Luna2 .ln-novice-group.ln-selected,
#Luna2 .ln-piece-wrap.ln-selected,
#Luna2 .ln-figure.ln-selected,
#Luna2 .ln-supply.ln-selected {
    outline: none;
    box-shadow: none;
    filter:
        drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 0 6px rgba(2, 132, 199, .9));
}

#gamePage .animated.clone,
#gamePage .animated.clone img {
    object-fit: contain;
}

.luna-popover {
    z-index: 1200;
    max-width: min(360px, 95vw);
    background: linear-gradient(180deg, #fcf8ec 0%, #efe4c6 100%);
    border: 1.5px solid #b5a365;
    border-radius: .65rem;
    box-shadow: 0 10px 26px rgba(6, 18, 28, .48);
    color: #223444;
    --bs-popover-bg: #f6eed6;
    --bs-popover-border-color: #b5a365;
    --bs-popover-header-bg: #162c3d;
    --bs-popover-header-color: #f7ecc9;
    --bs-popover-body-color: #223444;
}

.luna-popover .popover-header {
    background: #162c3d;
    color: #f7ecc9;
    border-bottom: 1px solid #b5a365;
    font-weight: 700;
    font-size: .92rem;
}

.luna-popover .popover-body {
    color: #223444;
    font-size: .86rem;
    line-height: 1.45;
    overflow: hidden;
}

.luna-popover .ln-favor {
    width: 64px;
    height: 64px;
    float: left;
    margin: .2rem .65rem .25rem 0;
}

.ln-tile-detail .ln-tile {
    width: 180px;
    height: 180px;
    display: block;
    margin: auto;
}

.ln-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
}

.ln-popover-close {
    font-size: .68rem;
    opacity: .85;
}

.ln-popover-close:hover {
    opacity: 1;
}

.ln-popover-score {
    max-width: min(350px, 94vw);
}

.ln-score-breakdown {
    display: flex;
    flex-direction: column;
    gap: .28rem;
    min-width: min(252px, 80vw);
    max-height: min(460px, 70vh);
    overflow-y: auto;
    font-variant-numeric: tabular-nums;
}

.ln-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    font-size: .81rem;
    line-height: 1.28;
    color: #223444;
}

.ln-score-row-main {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
}

.ln-score-row-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ln-score-row-icon img,
.ln-popover-score .ln-score-row-icon .ln-favor {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    float: none;
    margin: 0;
    object-fit: contain;
    display: block;
}

.ln-score-favor-empty {
    opacity: .28;
    filter: grayscale(.5);
}

.ln-score-row-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 .35rem;
    min-width: 0;
}

.ln-score-row-label {
    font-weight: 700;
}

.ln-score-row-meta {
    font-size: .74rem;
    color: #516373;
}

.ln-score-row-minis {
    display: inline-flex;
    flex-wrap: wrap;
    flex-basis: 100%;
    gap: 3px;
    margin-top: 2px;
}

.ln-popover-score .ln-score-row-minis .ln-favor {
    width: 17px;
    height: 17px;
    float: none;
    margin: 0;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

.ln-score-row-val {
    font-weight: 800;
    flex: 0 0 auto;
    text-align: right;
}

.ln-score-row-val.is-bonus {
    color: #1f6f3d;
}

.ln-score-row-val.is-minus {
    color: #b42318;
}

.ln-score-row-val.is-zero {
    color: #6b7c8b;
    font-weight: 600;
}

.ln-score-row-total {
    margin-top: .2rem;
    padding-top: .4rem;
    border-top: 1.5px solid rgba(181, 163, 101, .8);
    font-size: .92rem;
    font-weight: 800;
}

.ln-score-row-total .ln-score-row-label,
.ln-score-row-total .ln-score-row-val {
    font-weight: 800;
}

.ln-path-preview-popover {
    pointer-events: none;
}

.ln-path-preview-popover .popover-body {
    padding: .6rem .7rem;
    overflow: visible;
}

.ln-temple-preview {
    position: relative;
    margin: 0 auto;
}

.ln-preview-cell {
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 1;
}

.ln-preview-cell .ln-tile {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55));
}

.ln-preview-cell.ln-preview-empty {
    border: 1.5px dashed rgba(34, 52, 68, .42);
    background: rgba(22, 44, 61, .08);
}

.ln-preview-cell.ln-preview-empty .ln-tile {
    opacity: .34;
    filter: saturate(.55);
}

.ln-preview-cell.ln-preview-target {
    outline: 3px solid #38bdf8;
    box-shadow: 0 0 12px 2px rgba(56, 189, 248, .85);
    z-index: 3;
}

.ln-preview-cell.ln-preview-target.ln-preview-empty {
    border: 0;
    background: rgba(56, 189, 248, .12);
}

.ln-preview-cell.ln-preview-target.ln-preview-empty .ln-tile {
    opacity: .62;
    filter: none;
}

.ln-preview-cell .ln-book {
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    width: 68%;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .65));
}

.ln-preview-cell .ln-novice {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    width: 34%;
    height: 68%;
    z-index: 2;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .65));
}

#log .move.color0 {
    background-color: #277db6;
    color: #fff;
}

#log .move.color1 {
    background-color: #dfbd40;
    color: #1d2b38;
}

#log .move.color2 {
    background-color: #c64e51;
    color: #fff;
}

#log .move.color3 {
    background-color: #7a7f88;
    color: #fff;
}

#log .ln-log img,
.ln-log img {
    width: auto;
    max-width: 56px;
    height: 36px;
    vertical-align: middle;
}

#log .ln-log img.ln-favor,
.ln-log img.ln-favor {
    width: 36px;
    height: 36px;
}

#log .ln-log img.ln-novice,
.ln-log img.ln-novice {
    width: auto;
    height: 29px;
}

.ln-log button {
    background: transparent;
    border: 0;
    padding: 0 .2rem;
    cursor: pointer;
}

#log .ln-log img.ln-log-candle,
.ln-log img.ln-log-candle {
    width: auto;
    height: 28px;
    margin-right: 4px;
}

.ln-log button.ln-loc-btn,
.ln-round-summary button.ln-loc-btn {
    background: rgba(39, 125, 182, .1);
    border: 1px solid rgba(39, 125, 182, .32);
    border-radius: 4px;
    padding: 0 5px;
    color: #1a496b;
    font-weight: 600;
    font-size: .92em;
    line-height: 1.35;
    white-space: nowrap;
    cursor: pointer;
}

.ln-log button.ln-loc-btn:hover,
.ln-round-summary button.ln-loc-btn:hover {
    background: rgba(39, 125, 182, .2);
    border-color: #277db6;
}

#log .action.actionfinishTurn {
    padding: 3px var(--log-margin) 5px;
}

#log .action.actionfinishTurn>.coreAction {
    display: block;
}

#log .action.actionfinishTurn>.effect,
#log .action.actionfinishTurn>.automatic {
    display: none;
}

.ln-round-summary {
    margin: 2px 0;
    background: linear-gradient(180deg, #fcf8ec 0%, #f1e6c8 100%);
    border: 1px solid #b5a365;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(16, 36, 50, .16);
    color: #223444;
    font-size: 12.5px;
}

.ln-rs-head {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: #162c3d;
    color: #f7ecc9;
    font-weight: 700;
    font-size: 12.5px;
    border-bottom: 1px solid #b5a365;
}

.ln-rs-moon {
    display: inline-flex;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.ln-rs-moon svg {
    width: 100%;
    height: 100%;
    fill: #ffe89e;
    display: block;
}

.ln-rs-scores {
    display: flex;
    flex-direction: column;
}

.ln-rs-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 7px;
    border-bottom: 1px solid rgba(181, 163, 101, .3);
}

.ln-rs-row:last-child {
    border-bottom: 0;
}

.ln-rs-icon-col {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#log .ln-round-summary img.ln-rs-icon,
.ln-round-summary img.ln-rs-icon {
    width: auto;
    max-width: 36px;
    height: 33px;
    object-fit: contain;
    display: block;
}

.ln-rs-items {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 5px;
}

.ln-rs-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(181, 163, 101, .6);
    border-radius: 999px;
    padding: 1px 6px 1px 5px;
    font-size: 12px;
    line-height: 1.3;
    max-width: 100%;
}

.ln-rs-pill.ln-rs-loss {
    background: rgba(254, 242, 242, .9);
    border-color: rgba(185, 28, 28, .4);
}

.ln-rs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .28);
    flex: 0 0 10px;
}

.ln-rs-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
}

.ln-rs-pts {
    color: #1f6f3d;
    font-weight: 800;
    margin-left: 1px;
}

.ln-rs-pill.ln-rs-loss .ln-rs-pts {
    color: #b42318;
}

#log .ln-round-summary img.ln-rs-coin,
.ln-round-summary img.ln-rs-coin {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
}

.ln-rs-figures {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 5px 7px;
    background: rgba(34, 52, 68, .06);
    border-top: 1px solid rgba(181, 163, 101, .4);
}

.ln-rs-fig-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

#log .ln-round-summary img.ln-rs-icon-fig,
.ln-round-summary img.ln-rs-icon-fig {
    width: auto;
    max-width: 30px;
    height: 30px;
    object-fit: contain;
}

.ln-rs-arrow {
    color: #5b4b32;
    font-weight: 700;
    font-size: 12px;
}

.ln-rs-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(22, 44, 61, .92);
    color: #ffe89e;
    font-weight: 700;
    font-size: 12px;
    border-top: 1px solid #b5a365;
}

.ln-rs-next-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ln-rs-final {
    background: #7b2434;
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.ln-log-location {
    outline: 4px solid #d79430;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    #Luna2 {
        --ln-status-scale: .82;
    }
}

@media (max-width: 960px) {
    #gamePage #game {
        flex-direction: column;
    }

    #gamePage #board,
    #gamePage #playerData {
        flex: none;
        width: 100%;
        padding: .5rem;
    }

    #Luna2 {
        padding: 0;
    }
}

#gamePage #game[data-ln-narrow="1"] {
    flex-direction: column;
}

#gamePage #game[data-ln-narrow="1"] #board,
#gamePage #game[data-ln-narrow="1"] #playerData {
    flex: none;
    width: 100%;
    padding: .5rem;
}

#gamePage #game[data-ln-narrow="1"] #Luna2 {
    padding: 0;
}

@media (max-width: 760px) {
    .ln-islands {
        aspect-ratio: auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
        gap: .45rem;
    }

    .ln-island {
        position: static;
        width: auto;
        background: transparent;
        border: 0;
    }

    #Luna2 .ln-little-temple {
        display: none;
    }

    .ln-arch-status,
    .ln-landing-stage {
        position: static;
        margin-top: .45rem;
    }

    .ln-landing-stage {
        position: relative;
        width: min(240px, 65%);
    }

    .ln-archipelago {
        display: flex;
        flex-direction: column;
    }
}

#Luna2[data-ln-compact="1"] .ln-islands {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: .45rem;
}

#Luna2[data-ln-compact="1"] .ln-island {
    position: static;
    width: auto;
    background: transparent;
    border: 0;
}

#Luna2[data-ln-compact="1"] .ln-little-temple {
    display: none;
}

#Luna2[data-ln-compact="1"] .ln-arch-status,
#Luna2[data-ln-compact="1"] .ln-landing-stage {
    position: static;
    margin-top: .45rem;
}

#Luna2[data-ln-compact="1"] .ln-landing-stage {
    position: relative;
    width: min(240px, 65%);
}

#Luna2[data-ln-compact="1"] .ln-archipelago {
    display: flex;
    flex-direction: column;
}