.tba-ggg,
.tba-ggg-modal,
.tba-ggg-toast {
    --ggg-ink: #332416;
    --ggg-brown: #6f3f20;
    --ggg-deep-brown: #412412;
    --ggg-walnut: #875631;
    --ggg-gold: #d59b2d;
    --ggg-gold-light: #f5d878;
    --ggg-cream: #fffaf0;
    --ggg-parchment: #f2e4c8;
    --ggg-green: #4e7247;
    --ggg-green-dark: #315039;
    --ggg-blue: #61b8ea;
    --ggg-blue-dark: #26688f;
    --ggg-orange: #c96027;
    --ggg-red: #9b3824;
    --ggg-shadow: rgba(48, 29, 14, 0.22);
    box-sizing: border-box;
    color: var(--ggg-ink);
    font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}

.tba-ggg *,
.tba-ggg-modal *,
.tba-ggg-toast * {
    box-sizing: border-box;
}

.tba-ggg {
    width: min(1480px, calc(100% - 24px));
    margin: 24px auto 60px;
}

.tba-ggg img {
    max-width: 100%;
    height: auto;
}

.tba-ggg button,
.tba-ggg a,
.tba-ggg-modal button,
.tba-ggg-modal a {
    font: inherit;
}

.tba-ggg button,
.tba-ggg-modal button {
    cursor: pointer;
}

.tba-ggg-skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100000;
    background: #fff;
    color: #111;
    padding: 10px 14px;
    border-radius: 8px;
}

.tba-ggg-skip-link:focus {
    left: 8px;
}

.tba-ggg-lobby {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    min-height: 690px;
    padding: clamp(28px, 5vw, 72px);
    overflow: hidden;
    border: 7px solid #69411f;
    border-radius: 34px 34px 26px 26px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,.92), transparent 30%),
        linear-gradient(135deg, rgba(255,250,239,.98), rgba(235,215,177,.96)),
        repeating-linear-gradient(90deg, rgba(91,55,27,.04) 0, rgba(91,55,27,.04) 2px, transparent 2px, transparent 16px);
    box-shadow:
        0 18px 45px var(--ggg-shadow),
        inset 0 0 0 3px rgba(244, 206, 117, .74),
        inset 0 -24px 45px rgba(89, 52, 23, .08);
}

.tba-ggg-lobby::before,
.tba-ggg-lobby::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.tba-ggg-lobby::before {
    inset: 18px;
    border: 2px dashed rgba(116, 77, 36, .28);
    border-radius: 24px;
}

.tba-ggg-lobby::after {
    width: 360px;
    height: 360px;
    right: -140px;
    bottom: -180px;
    border-radius: 50%;
    border: 40px solid rgba(76, 111, 66, .10);
}

.tba-ggg-lobby-copy,
.tba-ggg-lobby-guide {
    position: relative;
    z-index: 1;
}

.tba-ggg-location-label,
.tba-ggg-small-label,
.tba-ggg-wing-eyebrow,
.tba-ggg-door-kicker {
    display: inline-block;
    color: var(--ggg-green-dark);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: .12em;
    line-height: 1.25;
    text-transform: uppercase;
}

.tba-ggg-lobby h1 {
    max-width: 800px;
    margin: 10px 0 2px;
    color: var(--ggg-deep-brown);
    font-size: clamp(2.65rem, 6vw, 5.35rem);
    line-height: .93;
    letter-spacing: -.045em;
    text-shadow: 0 4px 0 rgba(255,255,255,.85), 0 7px 0 rgba(117,74,31,.12);
}

.tba-ggg-tagline {
    margin: 12px 0 20px;
    color: var(--ggg-orange);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 900;
}

.tba-ggg-lobby-intro {
    max-width: 65ch;
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.68;
}

.tba-ggg-lobby-actions,
.tba-ggg-portrait-controls,
.tba-ggg-toolbar,
.tba-ggg-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.tba-ggg-lobby-actions {
    margin-top: 28px;
}

.tba-ggg-button,
.tba-ggg-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 18px;
    border: 2px solid transparent;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 900;
    line-height: 1.1;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tba-ggg-button:hover,
.tba-ggg-filter:hover,
.tba-ggg-button:focus-visible,
.tba-ggg-filter:focus-visible {
    transform: translateY(-2px);
}

.tba-ggg-button-primary {
    border-color: #472714;
    background: linear-gradient(#8f552c, #653619);
    color: #fff !important;
    box-shadow: 0 5px 0 #40220f, 0 9px 17px rgba(67,37,16,.18);
}

.tba-ggg-button-ghost {
    border-color: #487b9a;
    background: linear-gradient(#eafdff, #c8edf9);
    color: #245b7c !important;
    box-shadow: 0 5px 0 #6da9c5;
}

.tba-ggg-button-gold {
    border-color: #795116;
    background: linear-gradient(#ffe98a, #e8b63e);
    color: #4d3210 !important;
    box-shadow: 0 5px 0 #9c6c1e;
}

.tba-ggg-button-realm {
    border-color: #29472f;
    background: linear-gradient(#719a69, #496e45);
    color: #fff !important;
    box-shadow: 0 5px 0 #304d31;
}

.tba-ggg-progress-card {
    max-width: 650px;
    margin-top: 28px;
    padding: 15px 17px;
    border: 2px solid rgba(84, 73, 50, .28);
    border-radius: 16px;
    background: rgba(255,255,255,.68);
    box-shadow: inset 0 0 18px rgba(107,67,27,.06);
}

.tba-ggg-progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: .88rem;
}

.tba-ggg-progress-copy span {
    color: #675843;
}

.tba-ggg-progress-track {
    height: 13px;
    margin-top: 10px;
    overflow: hidden;
    border: 2px solid #6f4a27;
    border-radius: 999px;
    background: #e7d6b6;
}

.tba-ggg-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4f824b, #91bd67, #d6ad38);
    transition: width .45s ease;
}

.tba-ggg-lobby-guide {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.tba-ggg-club-logo {
    width: clamp(120px, 22vw, 215px);
    margin-bottom: -20px;
    filter: drop-shadow(0 7px 6px rgba(57,29,13,.18));
}

.tba-ggg-grizzwald {
    width: min(570px, 100%);
    max-height: 485px;
    object-fit: contain;
    filter: drop-shadow(0 20px 22px rgba(48, 149, 205, .26));
}

.tba-ggg-float {
    animation: tba-ggg-float 4.8s ease-in-out infinite;
}

@keyframes tba-ggg-float {
    0%, 100% { transform: translateY(0) rotate(-.4deg); }
    50% { transform: translateY(-13px) rotate(.4deg); }
}

.tba-ggg-speech {
    position: relative;
    max-width: 560px;
    margin: -18px 0 0;
    padding: 17px 20px;
    border: 3px solid #5faad5;
    border-radius: 22px;
    background: rgba(255,255,255,.95);
    color: #28546e;
    box-shadow: 0 12px 25px rgba(44,97,130,.13);
    font-size: .98rem;
    font-style: italic;
    line-height: 1.55;
}

.tba-ggg-speech::before {
    content: "";
    position: absolute;
    top: -19px;
    left: 46%;
    width: 28px;
    height: 28px;
    border-top: 3px solid #5faad5;
    border-left: 3px solid #5faad5;
    background: #fff;
    transform: rotate(45deg);
}

.tba-ggg-wing-doors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.tba-ggg-wing-door {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    padding: 35px;
    border-radius: 26px;
    text-align: left;
    box-shadow: 0 13px 28px var(--ggg-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.tba-ggg-wing-door:hover,
.tba-ggg-wing-door:focus-visible {
    transform: translateY(-5px) rotate(-.2deg);
    box-shadow: 0 18px 35px rgba(48,29,14,.28);
}

.tba-ggg-wing-door strong {
    display: block;
    margin: 8px 0 12px;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1;
}

.tba-ggg-wing-door > span:last-child {
    display: block;
    max-width: 58ch;
    font-size: 1.02rem;
    line-height: 1.6;
}

.tba-ggg-door-relics,
.tba-ggg-door-motifs {
    position: absolute;
    right: 22px;
    top: 18px;
    opacity: .35;
    font-size: 2.2rem;
    letter-spacing: .3em;
}

.tba-ggg-wing-door-legends {
    border: 7px ridge #6d4a2c;
    background:
        radial-gradient(circle at 14% 18%, rgba(255,239,190,.45), transparent 23%),
        repeating-linear-gradient(92deg, rgba(69,38,18,.06) 0, rgba(69,38,18,.06) 2px, transparent 2px, transparent 17px),
        linear-gradient(145deg, #d1b481, #8e6844 70%, #6d4b32);
    color: #fff8e7;
    text-shadow: 0 2px 2px rgba(33,18,9,.6);
}

.tba-ggg-wing-door-legends::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 2px solid rgba(245,217,158,.38);
    border-radius: 17px;
    pointer-events: none;
}

.tba-ggg-wing-door-legends .tba-ggg-door-kicker {
    color: #ffebb5;
}

.tba-ggg-wing-door-present {
    border: 7px solid #6d4825;
    background:
        radial-gradient(circle at 86% 20%, rgba(255,255,255,.85), transparent 25%),
        linear-gradient(135deg, #fff9e9, #dce8c8 58%, #c3d39a),
        repeating-linear-gradient(0deg, rgba(100,68,31,.05) 0, rgba(100,68,31,.05) 3px, transparent 3px, transparent 16px);
    color: #3f2a18;
    box-shadow: 0 13px 28px var(--ggg-shadow), inset 0 0 0 3px #e0b85c;
}

.tba-ggg-featured {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
    gap: 28px;
    align-items: center;
    margin: 0 0 30px;
    padding: clamp(24px, 4vw, 48px);
    border: 5px solid #8a5d30;
    border-radius: 28px;
    background:
        linear-gradient(110deg, rgba(255,252,243,.98), rgba(239,222,190,.93)),
        repeating-linear-gradient(90deg, transparent 0, transparent 26px, rgba(87,53,24,.03) 26px, rgba(87,53,24,.03) 29px);
    box-shadow: 0 14px 30px rgba(60,37,17,.16), inset 0 0 0 3px #ecd089;
}

.tba-ggg-featured h2,
.tba-ggg-collection h2,
.tba-ggg-wing h3 {
    margin: 8px 0 9px;
    color: var(--ggg-deep-brown);
    line-height: 1.06;
}

.tba-ggg-featured h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.tba-ggg-featured-art {
    display: block;
    width: 100%;
    min-height: 390px;
    padding: 0;
    border: 0;
    background: transparent;
}

.tba-ggg-featured-art img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    filter: drop-shadow(0 17px 15px rgba(47,29,15,.22));
    transition: transform .25s ease;
}

.tba-ggg-featured-art:hover img,
.tba-ggg-featured-art:focus-visible img {
    transform: scale(1.025) rotate(.25deg);
}

.tba-ggg-collection {
    scroll-margin-top: 30px;
}

.tba-ggg-collection-heading {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: end;
    margin: 34px 0 20px;
}

.tba-ggg-collection h2 {
    max-width: 850px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.tba-ggg-search-wrap {
    width: min(390px, 100%);
}

.tba-ggg-search-wrap label {
    display: block;
    margin-bottom: 7px;
    color: #57442e;
    font-size: .84rem;
    font-weight: 900;
}

.tba-ggg-search-wrap input {
    width: 100%;
    min-height: 50px;
    padding: 10px 16px;
    border: 3px solid #8b6238;
    border-radius: 999px;
    background: #fffdf7;
    color: #2e2116;
    font: inherit;
    box-shadow: inset 0 2px 7px rgba(61,38,17,.08);
}

.tba-ggg-toolbar {
    position: sticky;
    top: 8px;
    z-index: 10;
    margin-bottom: 23px;
    padding: 12px;
    border: 2px solid rgba(92,64,34,.25);
    border-radius: 20px;
    background: rgba(255,250,238,.93);
    box-shadow: 0 9px 20px rgba(49,31,16,.11);
    backdrop-filter: blur(8px);
}

.tba-ggg-filter {
    min-height: 41px;
    border-color: #8a6843;
    background: #fff;
    color: #4a3622;
    box-shadow: 0 3px 0 #b99a70;
}

.tba-ggg-filter.is-active {
    border-color: #29442d;
    background: var(--ggg-green);
    color: #fff;
    box-shadow: 0 3px 0 #2f4d31;
}

.tba-ggg-wing {
    position: relative;
    margin: 0 0 34px;
    padding: clamp(18px, 3vw, 34px);
    overflow: hidden;
    border-radius: 28px;
    scroll-margin-top: 110px;
}

.tba-ggg-wing[hidden],
.tba-ggg-portrait-card[hidden] {
    display: none !important;
}

.tba-ggg-wing-legends {
    border: 7px ridge #6f4d31;
    background:
        radial-gradient(circle at 18% 14%, rgba(255,233,172,.28), transparent 20%),
        radial-gradient(circle at 79% 42%, rgba(53,35,22,.12), transparent 28%),
        linear-gradient(130deg, #b69a71, #8b6b4d 45%, #6d513b),
        repeating-linear-gradient(90deg, rgba(35,20,10,.045) 0, rgba(35,20,10,.045) 2px, transparent 2px, transparent 14px);
    box-shadow: inset 0 0 70px rgba(39,23,11,.35), 0 15px 32px rgba(48,29,14,.23);
}

.tba-ggg-wing-legends::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .36;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.22) 0 1px, transparent 2px),
        radial-gradient(circle at 70% 56%, rgba(255,255,255,.16) 0 1px, transparent 2px),
        radial-gradient(circle at 42% 76%, rgba(255,255,255,.18) 0 1px, transparent 2px);
    background-size: 90px 90px, 130px 130px, 110px 110px;
}

.tba-ggg-wing-present {
    border: 6px solid #714824;
    background:
        radial-gradient(circle at 85% 5%, rgba(255,255,255,.78), transparent 22%),
        linear-gradient(135deg, #fff9eb, #e9efd4 52%, #d7e4bd),
        repeating-linear-gradient(0deg, rgba(87,58,27,.035) 0, rgba(87,58,27,.035) 3px, transparent 3px, transparent 22px);
    box-shadow: inset 0 0 0 3px #e5bd62, 0 15px 32px rgba(48,29,14,.17);
}

.tba-ggg-wing-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 25px;
    margin-bottom: 19px;
    padding: 18px 20px;
    border-radius: 18px;
}

.tba-ggg-wing-legends .tba-ggg-wing-header {
    border: 2px solid rgba(244,220,169,.38);
    background: rgba(56,35,20,.65);
    color: #fff4d7;
}

.tba-ggg-wing-legends .tba-ggg-wing-header h3,
.tba-ggg-wing-legends .tba-ggg-wing-eyebrow {
    color: #fff0bc;
}

.tba-ggg-wing-present .tba-ggg-wing-header {
    border: 2px dashed rgba(92,68,34,.32);
    background: rgba(255,255,255,.65);
}

.tba-ggg-wing h3 {
    font-size: clamp(1.85rem, 3.3vw, 3rem);
}

.tba-ggg-wing-header p {
    max-width: 78ch;
    margin: 0;
    line-height: 1.55;
}

.tba-ggg-wing-count {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    color: #51371f;
    font-size: .82rem;
    font-weight: 900;
}

.tba-ggg-relic-shelf,
.tba-ggg-modern-details {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.tba-ggg-relic-shelf span,
.tba-ggg-modern-details span {
    padding: 7px 11px;
    border-radius: 7px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.tba-ggg-relic-shelf span {
    border: 1px solid rgba(244,220,169,.45);
    background: rgba(51,30,16,.55);
    color: #ffeabc;
}

.tba-ggg-modern-details span {
    border: 2px solid #a6814b;
    background: #fff8e9;
    color: #5a4125;
    transform: rotate(-.4deg);
}

.tba-ggg-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.tba-ggg-portrait-card {
    position: relative;
    min-width: 0;
}

.tba-ggg-portrait-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.tba-ggg-frame-stage {
    position: relative;
    display: block;
    min-height: 310px;
    overflow: hidden;
    border-radius: 15px 15px 8px 8px;
    background: rgba(255,255,255,.78);
    transition: transform .2s ease, box-shadow .2s ease;
}

.tba-ggg-wing-legends .tba-ggg-frame-stage {
    border: 5px solid #3d2819;
    box-shadow: 0 7px 0 #8c643a, 0 13px 17px rgba(29,17,9,.31), inset 0 0 0 2px #b68a4f;
}

.tba-ggg-wing-present .tba-ggg-frame-stage {
    border: 5px solid #77502b;
    box-shadow: 0 7px 0 #d1a452, 0 13px 17px rgba(45,29,13,.19), inset 0 0 0 2px #f0d88b;
}

.tba-ggg-portrait-button:hover .tba-ggg-frame-stage,
.tba-ggg-portrait-button:focus-visible .tba-ggg-frame-stage {
    transform: translateY(-6px) rotate(.25deg);
    box-shadow: 0 11px 0 #b8873f, 0 20px 28px rgba(33,20,10,.31);
}

.tba-ggg-frame-stage img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 310px;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    padding: 7px;
}

.tba-ggg-discovered-mark {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--ggg-green);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    box-shadow: 0 4px 8px rgba(0,0,0,.22);
    pointer-events: none;
}

/* v2.0.1: the portrait-card star is a real one-click Favorite control. */
.tba-ggg-thumbnail-favorite {
    position: absolute;
    z-index: 8;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 2px solid #d7b35d;
    border-radius: 50%;
    background: #fff9e7;
    color: #8a6117;
    font: 900 1.45rem/1 Arial, sans-serif;
    box-shadow: 0 4px 9px rgba(0,0,0,.24);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.tba-ggg-thumbnail-favorite.is-favorite,
.tba-ggg-thumbnail-favorite[aria-pressed="true"] {
    border-color: #fff;
    background: var(--ggg-gold);
    color: #4b3210;
}
.tba-ggg-thumbnail-favorite:hover,
.tba-ggg-thumbnail-favorite:focus-visible {
    transform: scale(1.1);
    box-shadow: 0 6px 13px rgba(0,0,0,.3);
}
.tba-ggg-thumbnail-favorite:focus-visible {
    outline: 4px solid #65bce7;
    outline-offset: 3px;
}
@media (max-width: 782px) {
    .tba-ggg-thumbnail-favorite {
        width: 46px;
        height: 46px;
        font-size: 1.55rem;
    }
}

.tba-ggg-plaque {
    display: block;
    min-height: 105px;
    margin: 10px 7px 0;
    padding: 12px 11px;
    border-radius: 5px 5px 13px 13px;
    text-align: center;
}

.tba-ggg-wing-legends .tba-ggg-plaque {
    border: 2px solid #b98c50;
    background: linear-gradient(#4e3422, #2f2016);
    color: #fff0ce;
    box-shadow: 0 5px 9px rgba(25,15,8,.25);
}

.tba-ggg-wing-present .tba-ggg-plaque {
    border: 2px solid #7f5a31;
    background: linear-gradient(#fffdf4, #eadbbd);
    color: #3d2a19;
    box-shadow: 0 5px 9px rgba(58,38,18,.12);
}

.tba-ggg-plaque strong,
.tba-ggg-plaque span {
    display: block;
}

.tba-ggg-plaque strong {
    margin: 4px 0;
    font-size: 1.02rem;
    line-height: 1.15;
}

.tba-ggg-card-number {
    opacity: .82;
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tba-ggg-plaque > span:last-child {
    font-size: .82rem;
}

.tba-ggg-no-results,
.tba-ggg-empty {
    padding: 28px;
    border: 3px dashed #967044;
    border-radius: 20px;
    background: #fffaf0;
    text-align: center;
}

.tba-ggg-no-results {
    margin: 20px 0;
}

.tba-ggg-modal[hidden],
.tba-ggg-toast[hidden] {
    display: none !important;
}

.tba-ggg-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    overflow-y: auto;
    padding: clamp(10px, 2vw, 28px);
    background: rgba(22, 14, 8, .84);
    backdrop-filter: blur(5px);
}

.tba-ggg-modal-shell,
.tba-ggg-guide-modal-shell {
    width: min(1380px, 100%);
    min-height: min(860px, calc(100vh - 40px));
    margin: 0 auto;
    overflow: hidden;
    border: 7px solid #6c4323;
    border-radius: 29px;
    background:
        linear-gradient(135deg, #fffdf7, #eee0c6),
        repeating-linear-gradient(90deg, transparent 0, transparent 20px, rgba(85,52,23,.03) 20px, rgba(85,52,23,.03) 23px);
    box-shadow: 0 30px 80px rgba(0,0,0,.48), inset 0 0 0 3px #dfb861;
}

.tba-ggg-guide-modal-shell {
    position: relative;
    min-height: auto;
    margin-top: max(20px, 6vh);
    padding: clamp(20px, 4vw, 50px);
    background-image:
        linear-gradient(135deg, rgba(255,250,240,.90), rgba(245,234,210,.82)),
        url('../images/defaults/dialogue-desktop.webp');
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
}


.tba-ggg-modal-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 17px 19px;
    border-bottom: 3px solid #9b7346;
    background: rgba(255,248,232,.94);
}

.tba-ggg-modal-title-wrap {
    min-width: 0;
    text-align: center;
}

.tba-ggg-modal-title-wrap span {
    color: #76583b;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tba-ggg-modal-title-wrap h2 {
    margin: 2px 0;
    color: #3c2413;
    font-size: clamp(1.55rem, 3vw, 2.55rem);
    line-height: 1;
}

.tba-ggg-modal-title-wrap p {
    margin: 0;
    color: #705d46;
    font-size: .9rem;
}

.tba-ggg-modal-tools {
    display: flex;
    gap: 7px;
}

.tba-ggg-icon-button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 2px solid #5d371d;
    border-radius: 50%;
    background: #fff9ed;
    color: #4b2b16;
    box-shadow: 0 4px 0 #b58755;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.tba-ggg-icon-button:hover,
.tba-ggg-icon-button:focus-visible {
    background: #fff0bd;
    transform: translateY(-1px);
}

.tba-ggg-close,
.tba-ggg-guide-close {
    background: #8d3d29;
    color: #fff;
    box-shadow: 0 4px 0 #512013;
}

.tba-ggg-guide-close {
    position: absolute;
    z-index: 5;
    right: 18px;
    top: 18px;
}

.tba-ggg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 2px solid #d3b88d;
    background: #f5ead6;
}

.tba-ggg-tabs button {
    min-height: 42px;
    padding: 8px 14px;
    border: 2px solid #98734c;
    border-radius: 999px;
    background: #fff;
    color: #51351f;
    font-weight: 900;
}

.tba-ggg-tabs button.is-active {
    border-color: #2f5036;
    background: var(--ggg-green);
    color: #fff;
}

.tba-ggg-tab-panel {
    display: none;
    min-height: 650px;
    padding: clamp(16px, 3vw, 34px);
}

.tba-ggg-tab-panel.is-active {
    display: block;
}

.tba-ggg-portrait-encounter {
    display: flex;
    min-height: 620px;
    flex-direction: column;
}

.tba-ggg-portrait-viewport {
    position: relative;
    flex: 1;
    min-height: 540px;
    overflow: auto;
    border: 4px solid #78502d;
    border-radius: 18px;
    background:
        radial-gradient(circle at center, #fff 0, #f4ead7 65%, #dfc9a7 100%);
    text-align: center;
    touch-action: pan-x pan-y;
}

.tba-ggg-portrait-viewport img {
    display: block;
    width: min(100%, 1020px);
    max-width: none;
    height: auto;
    margin: 0 auto;
    padding: 15px;
    transform-origin: center top;
    transition: width .18s ease;
    filter: drop-shadow(0 18px 18px rgba(37,23,12,.22));
}

.tba-ggg-portrait-controls {
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.tba-ggg-portrait-controls input[type="range"] {
    width: min(300px, 100%);
    accent-color: var(--ggg-green);
}

.tba-ggg-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
    gap: 25px;
    align-items: start;
}

.tba-ggg-profile-reveal {
    position: relative;
    overflow: hidden;
    padding: 12px;
    border: 4px solid #7f542c;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 25px rgba(55,33,15,.15);
}

.tba-ggg-profile-reveal::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.65) 50%, transparent 80%);
    transform: translateX(-120%);
}

.tba-ggg-tab-panel.is-active .tba-ggg-profile-reveal::before {
    animation: tba-ggg-reveal 1.1s ease forwards;
}

@keyframes tba-ggg-reveal {
    to { transform: translateX(120%); }
}

.tba-ggg-profile-reveal img {
    display: block;
    width: min(100%, 920px);
    margin: 0 auto;
}

.tba-ggg-profile-actions {
    position: sticky;
    top: 15px;
    flex-direction: column;
    padding: 21px;
    border: 3px solid #80603c;
    border-radius: 20px;
    background: #fffaf0;
    box-shadow: 0 10px 20px rgba(58,36,16,.12);
}

.tba-ggg-profile-actions h3 {
    margin: 0;
    color: #442712;
    font-size: 1.4rem;
}

.tba-ggg-profile-actions p {
    margin: 0 0 5px;
    line-height: 1.55;
}

.tba-ggg-realm-note {
    color: #705b43;
    font-size: .85rem;
    text-align: center;
}

.tba-ggg-dialogue-layout {
    display: grid;
    grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 52px);
    align-items: center;
    min-height: 570px;
}

.tba-ggg-dialogue-layout-global {
    min-height: 620px;
}

.tba-ggg-dialogue-guide {
    text-align: center;
}

.tba-ggg-dialogue-guide img {
    width: min(100%, 460px);
    max-height: 570px;
    object-fit: contain;
    filter: drop-shadow(0 20px 22px rgba(50,151,208,.24));
}

.tba-ggg-dialogue-box {
    position: relative;
    padding: clamp(20px, 4vw, 38px);
    border: 3px solid #7b4e26;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,253,246,.96), rgba(239,229,205,.96));
    box-shadow: 0 18px 36px rgba(44,28,14,.22), inset 0 0 0 2px rgba(116,192,232,.38);
}

.tba-ggg-dialogue-box::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 35%;
    width: 39px;
    height: 39px;
    border-left: 3px solid #7b4e26;
    border-bottom: 3px solid #7b4e26;
    background: #fdf7ea;
    transform: rotate(45deg);
}

.tba-ggg-dialogue-box h2 {
    margin: 8px 0 14px;
    color: #254f68;
}

.tba-ggg-dialogue-box > p {
    min-height: 94px;
    margin: 0;
    color: #294f65;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.68;
}

.tba-ggg-dialogue-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.tba-ggg-dialogue-choices button {
    min-height: 52px;
    padding: 11px 14px;
    border: 2px solid #7b4e26;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff8eb, #eed9b0);
    color: #4d2f16;
    font-weight: 900;
    text-align: left;
    box-shadow: 0 4px 0 #b88745;
}

.tba-ggg-dialogue-choices button:hover,
.tba-ggg-dialogue-choices button:focus-visible {
    background: linear-gradient(180deg, #fff2cf, #e6c274);
    transform: translateY(-1px);
}

.tba-ggg-museum-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.tba-ggg-museum-detail-grid > div,
.tba-ggg-curator-note {
    padding: 20px;
    border: 3px solid #a37b4a;
    border-radius: 17px;
    background: #fffaf0;
    box-shadow: 0 7px 16px rgba(51,30,13,.09);
}

.tba-ggg-museum-detail-grid span {
    display: block;
    margin-bottom: 5px;
    color: #775d40;
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tba-ggg-museum-detail-grid strong {
    font-size: 1.15rem;
}

.tba-ggg-curator-note {
    margin-top: 16px;
}

.tba-ggg-curator-note h3 {
    margin-top: 0;
}

.tba-ggg-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1000000;
    transform: translateX(-50%);
    padding: 12px 18px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #355b39;
    color: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
    font-weight: 900;
}

@media (max-width: 1180px) {
    .tba-ggg-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .tba-ggg-lobby {
        grid-template-columns: 1fr 430px;
    }
}

@media (max-width: 920px) {
    .tba-ggg-lobby,
    .tba-ggg-featured,
    .tba-ggg-profile-layout,
    .tba-ggg-dialogue-layout {
        grid-template-columns: 1fr;
    }
    .tba-ggg-lobby-guide {
        max-width: 620px;
        margin: 0 auto;
    }
    .tba-ggg-wing-doors {
        grid-template-columns: 1fr;
    }
    .tba-ggg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tba-ggg-featured-copy {
        order: 2;
    }
    .tba-ggg-profile-actions {
        position: static;
    }
    .tba-ggg-dialogue-box::before {
        left: 50%;
        top: -22px;
        transform: translateX(-50%) rotate(135deg);
    }
    .tba-ggg-dialogue-guide img {
        max-height: 380px;
    }
}

@media (max-width: 680px) {
    .tba-ggg-guide-modal-shell {
        background-image:
            linear-gradient(180deg, rgba(255,250,240,.92), rgba(245,234,210,.82)),
            url('../images/defaults/dialogue-mobile.webp');
        background-size: cover, cover;
        background-position: center center, center center;
        background-repeat: no-repeat, no-repeat;
    }
    .tba-ggg {
        width: min(100% - 12px, 1480px);
        margin-top: 8px;
    }
    .tba-ggg-lobby {
        min-height: 0;
        padding: 23px 18px 30px;
        border-width: 5px;
        border-radius: 22px;
    }
    .tba-ggg-lobby h1 {
        font-size: 2.65rem;
    }
    .tba-ggg-progress-copy,
    .tba-ggg-collection-heading,
    .tba-ggg-wing-header {
        align-items: stretch;
        flex-direction: column;
    }
    .tba-ggg-progress-copy {
        display: block;
    }
    .tba-ggg-progress-copy span {
        display: block;
        margin-top: 3px;
    }
    .tba-ggg-search-wrap {
        width: 100%;
    }
    .tba-ggg-toolbar {
        position: static;
    }
    .tba-ggg-filter {
        flex: 1 1 calc(50% - 8px);
        padding-inline: 10px;
        font-size: .84rem;
    }
    .tba-ggg-grid {
        grid-template-columns: 1fr;
    }
    .tba-ggg-frame-stage,
    .tba-ggg-frame-stage img {
        min-height: 360px;
    }
    .tba-ggg-modal {
        padding: 4px;
    }
    .tba-ggg-modal-shell,
    .tba-ggg-guide-modal-shell {
        min-height: 100vh;
        border-width: 4px;
        border-radius: 16px;
    }
    .tba-ggg-modal-topbar {
        grid-template-columns: auto 1fr;
        padding: 10px;
    }
    .tba-ggg-modal-tools {
        grid-column: 1 / -1;
        justify-content: center;
    }
    .tba-ggg-tabs {
        gap: 5px;
        padding: 8px;
    }
    .tba-ggg-tabs button {
        flex: 1 1 calc(50% - 6px);
        padding-inline: 8px;
        font-size: .8rem;
    }
    .tba-ggg-tab-panel {
        min-height: 0;
        padding: 12px;
    }
    .tba-ggg-portrait-viewport {
        min-height: 420px;
    }
    .tba-ggg-portrait-controls .tba-ggg-button {
        flex: 1 1 calc(50% - 8px);
        font-size: .8rem;
    }
    .tba-ggg-portrait-controls input[type="range"] {
        order: -1;
        flex-basis: 100%;
    }
    .tba-ggg-dialogue-choices,
    .tba-ggg-museum-detail-grid {
        grid-template-columns: 1fr;
    }
    .tba-ggg-dialogue-layout-global {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tba-ggg *,
    .tba-ggg-modal * {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* =========================================================
   Version 1.1: true room-based gallery experience
   ========================================================= */
.tba-ggg-v110 {
    width: min(1600px, calc(100vw - 28px));
    max-width: none;
    margin-left: 50%;
    margin-right: 0;
    transform: translateX(-50%);
}

.tba-ggg-view[hidden] {
    display: none !important;
}

.tba-ggg-view.is-active {
    animation: tbaGggRoomEnter .42s ease both;
}

@keyframes tbaGggRoomEnter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.tba-ggg-lobby-building {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(63, 38, 17, .28);
    border-radius: 36px;
    background:
        linear-gradient(90deg, rgba(106,70,34,.08), transparent 10%, transparent 90%, rgba(106,70,34,.08)),
        #efe2c7;
    box-shadow: 0 24px 70px rgba(45, 28, 15, .18);
}

.tba-ggg-lobby-beam {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin: -4px 24px 14px;
    padding: 12px 20px;
    border: 3px solid #3d2412;
    border-radius: 12px;
    background:
        linear-gradient(rgba(255,255,255,.08), rgba(0,0,0,.08)),
        repeating-linear-gradient(90deg, #6d401f 0, #6d401f 22px, #704625 22px, #704625 44px);
    color: #ffe6a4;
    box-shadow: inset 0 0 0 2px rgba(235,187,81,.35), 0 7px 0 #2f1a0c;
    font-size: clamp(.82rem, 1.5vw, 1.25rem);
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}

.tba-ggg-v110 .tba-ggg-lobby {
    min-height: 600px;
    border-radius: 28px;
}

.tba-ggg-room-entrances {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 24px 0;
}

.tba-ggg-room-entrance {
    position: relative;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    grid-template-areas:
        "sign sign"
        "door title"
        "door copy"
        "door enter";
    gap: 8px 24px;
    min-height: 360px;
    padding: 24px;
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    text-align: left;
    transition: transform .24s ease, box-shadow .24s ease;
}

.tba-ggg-room-entrance:hover,
.tba-ggg-room-entrance:focus-visible {
    transform: translateY(-6px) rotate(-.2deg);
}

.tba-ggg-room-entrance-legends {
    border: 7px solid #3a2112;
    background:
        radial-gradient(circle at 78% 24%, rgba(255,201,104,.16), transparent 28%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 18px),
        linear-gradient(145deg, #49301f, #21170f 72%);
    color: #f5e4c3;
    box-shadow: 0 15px 0 #26160d, 0 28px 48px rgba(36,22,13,.3), inset 0 0 0 2px #a77842;
}

.tba-ggg-room-entrance-present {
    border: 7px solid #69411f;
    background:
        radial-gradient(circle at 78% 22%, rgba(255,255,255,.75), transparent 26%),
        linear-gradient(135deg, #fff9e9, #dce9b8 68%, #c7d99f);
    color: #3b2b19;
    box-shadow: 0 15px 0 #4b2b15, 0 28px 48px rgba(63,42,21,.2), inset 0 0 0 3px rgba(221,161,48,.48);
}

.tba-ggg-entrance-sign {
    grid-area: sign;
    justify-self: start;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.tba-ggg-room-entrance-present .tba-ggg-entrance-sign {
    background: #5d7d4e;
    color: #fff;
}

.tba-ggg-entrance-door {
    grid-area: door;
    align-self: stretch;
    display: grid;
    place-items: center;
    min-height: 250px;
    border-radius: 80px 80px 12px 12px;
}

.tba-ggg-room-entrance-legends .tba-ggg-entrance-door {
    border: 6px solid #9a6b34;
    background:
        linear-gradient(90deg, transparent 47%, rgba(213,155,45,.35) 48% 52%, transparent 53%),
        repeating-linear-gradient(90deg, #4e2e19 0 18px, #422714 18px 36px);
    box-shadow: inset 0 0 28px #130d08, 0 0 0 4px #2b180e;
}

.tba-ggg-room-entrance-present .tba-ggg-entrance-door {
    border: 6px solid #7b4d26;
    background:
        linear-gradient(90deg, transparent 47%, rgba(255,225,121,.72) 48% 52%, transparent 53%),
        repeating-linear-gradient(90deg, #ad7541 0 18px, #9a6537 18px 36px);
    box-shadow: inset 0 0 22px rgba(67,38,17,.35), 0 0 0 4px #ead27e;
}

.tba-ggg-old-door-panel,
.tba-ggg-new-door-panel {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    font-size: 2.3rem;
}

.tba-ggg-old-door-panel {
    border: 5px solid #6b4927;
    background: #1e150f;
    color: #d8aa52;
}

.tba-ggg-new-door-panel {
    border: 5px solid #4f6f45;
    background: #f4e8b5;
    color: #4d7248;
}

.tba-ggg-room-entrance strong {
    grid-area: title;
    align-self: end;
    font-size: clamp(1.55rem, 2.5vw, 2.55rem);
    line-height: 1.02;
}

.tba-ggg-room-entrance > span:nth-of-type(3) {
    grid-area: copy;
    align-self: start;
    font-size: 1rem;
    line-height: 1.55;
}

.tba-ggg-enter-label {
    grid-area: enter;
    align-self: end;
    justify-self: start;
    margin-top: 12px;
    padding: 10px 15px;
    border-radius: 999px;
    background: #d79f39;
    color: #2f1e0d;
    font-weight: 900;
}

.tba-ggg-room {
    position: relative;
    min-height: 900px;
    padding: 24px;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 28px 75px rgba(40, 25, 13, .25);
}

.tba-ggg-room-legends {
    border: 10px solid #2f1c10;
    background:
        radial-gradient(circle at 50% 5%, rgba(255,189,81,.14), transparent 26%),
        linear-gradient(rgba(20,13,9,.25), rgba(20,13,9,.25)),
        repeating-linear-gradient(90deg, #493426 0 78px, #3f2e22 78px 156px);
    color: #f6e8cb;
}

.tba-ggg-room-present {
    border: 10px solid #65401f;
    background:
        radial-gradient(circle at 70% 7%, rgba(255,255,255,.82), transparent 22%),
        linear-gradient(90deg, rgba(114,74,34,.07) 1px, transparent 1px),
        linear-gradient(#f9f1dc, #dce9bd);
    background-size: auto, 42px 42px, auto;
    color: #332416;
}

.tba-ggg-room-ceiling {
    position: absolute;
    inset: 0 0 auto;
    height: 82px;
    pointer-events: none;
}

.tba-ggg-room-legends .tba-ggg-room-ceiling {
    background: repeating-linear-gradient(90deg, #25170d 0 110px, #57351c 110px 134px);
    border-bottom: 6px solid #8f6232;
    box-shadow: 0 18px 38px rgba(0,0,0,.28);
}

.tba-ggg-room-present .tba-ggg-room-ceiling {
    background: repeating-linear-gradient(90deg, #a76e38 0 130px, #6e421f 130px 154px);
    border-bottom: 6px solid #e2ba5d;
    box-shadow: 0 14px 30px rgba(70,44,21,.18);
}

.tba-ggg-room-nav {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 80px 0 18px;
}

.tba-ggg-index-shell > .tba-ggg-room-nav {
    margin-top: 0;
}

.tba-ggg-room-masthead {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
    gap: 30px;
    align-items: center;
    padding: clamp(26px, 4vw, 52px);
    border-radius: 24px;
}

.tba-ggg-room-legends .tba-ggg-room-masthead {
    border: 2px solid #9e7040;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,191,94,.15), transparent 28%),
        rgba(36,24,16,.88);
    box-shadow: inset 0 0 35px rgba(0,0,0,.35), 0 15px 30px rgba(0,0,0,.2);
}

.tba-ggg-room-present .tba-ggg-room-masthead {
    border: 4px solid #8a5b2e;
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(246,231,187,.92));
    box-shadow: inset 0 0 0 2px #e3c36c, 0 15px 30px rgba(69,43,20,.13);
}

.tba-ggg-room-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #d7a848;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tba-ggg-room-present .tba-ggg-room-kicker {
    color: #4d7045;
}

.tba-ggg-room-title-block h2 {
    margin: 0 0 12px;
    font-size: clamp(2.4rem, 5vw, 5.2rem);
    line-height: .95;
    letter-spacing: -.04em;
}

.tba-ggg-room-legends .tba-ggg-room-title-block h2 {
    color: #f4d494;
    text-shadow: 0 5px 14px rgba(0,0,0,.45);
}

.tba-ggg-room-present .tba-ggg-room-title-block h2 {
    color: #4b2e17;
    text-shadow: 0 3px 0 #fff;
}

.tba-ggg-room-title-block > p {
    max-width: 74ch;
    font-size: 1.08rem;
    line-height: 1.65;
}

.tba-ggg-room-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    align-items: end;
    margin-top: 24px;
}

.tba-ggg-room-search {
    display: grid;
    gap: 5px;
    min-width: min(100%, 310px);
}

.tba-ggg-room-search span {
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tba-ggg-room-search input,
.tba-ggg-search-wrap input {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border: 2px solid #93683a;
    border-radius: 999px;
    background: #fffdf8;
    color: #2d2116;
    font: inherit;
}

.tba-ggg-room-guide-card {
    text-align: center;
}

.tba-ggg-room-guide-card img {
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 16px 20px rgba(28,118,174,.25));
}

.tba-ggg-room-guide-card p {
    margin: -18px 0 0;
    padding: 13px 16px;
    border: 2px solid #7ec5e8;
    border-radius: 18px;
    background: #f8fdff;
    color: #20475e;
    font-weight: 700;
    line-height: 1.45;
}

.tba-ggg-legends-relic-gallery,
.tba-ggg-present-details {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.tba-ggg-legends-relic-gallery > div,
.tba-ggg-present-details > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 12px;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
}

.tba-ggg-legends-relic-gallery > div {
    border: 2px solid #8d6033;
    background: rgba(27,18,13,.82);
    box-shadow: inset 0 0 20px rgba(0,0,0,.35);
}

.tba-ggg-present-details > div {
    border: 3px solid #87582c;
    background: rgba(255,250,232,.94);
    box-shadow: inset 0 0 0 2px #e8cd79;
}

.tba-ggg-relic-icon,
.tba-ggg-present-details > div > span {
    grid-row: 1 / span 2;
    font-size: 2rem;
}

.tba-ggg-legends-relic-gallery small,
.tba-ggg-present-details small {
    line-height: 1.4;
    opacity: .82;
}

.tba-ggg-room-wall {
    position: relative;
    z-index: 2;
    padding: clamp(22px, 3vw, 38px);
    border-radius: 24px;
}

.tba-ggg-room-legends .tba-ggg-room-wall {
    border: 7px solid #1f140d;
    background:
        radial-gradient(circle at 50% 0, rgba(255,181,68,.12), transparent 28%),
        linear-gradient(rgba(66,43,28,.82), rgba(43,29,20,.92));
    box-shadow: inset 0 0 0 3px #8c6034, inset 0 -30px 50px rgba(0,0,0,.3);
}

.tba-ggg-room-present .tba-ggg-room-wall {
    border: 7px solid #704723;
    background:
        linear-gradient(90deg, transparent 49%, rgba(115,75,34,.05) 50%, transparent 51%),
        #f9f2dd;
    background-size: 80px 80px, auto;
    box-shadow: inset 0 0 0 3px #dfbd62, inset 0 -25px 45px rgba(89,59,27,.08);
}

.tba-ggg-room-wall-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid currentColor;
}

.tba-ggg-room-wall-label span {
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tba-ggg-room-wall-label strong {
    font-size: 1.35rem;
}

.tba-ggg-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: clamp(18px, 2.1vw, 34px);
    align-items: start;
}

.tba-ggg-room-grid .tba-ggg-portrait-card {
    max-width: 300px;
    justify-self: center;
}

.tba-ggg-room-grid .tba-ggg-frame-stage {
    min-height: 270px;
}

.tba-ggg-room-legends .tba-ggg-portrait-card {
    transform: rotate(var(--ggg-tilt, 0deg));
}

.tba-ggg-room-legends .tba-ggg-portrait-card:nth-child(4n+1) { --ggg-tilt: -.45deg; }
.tba-ggg-room-legends .tba-ggg-portrait-card:nth-child(4n+3) { --ggg-tilt: .4deg; }
.tba-ggg-room-present .tba-ggg-portrait-card:nth-child(5n+2) { transform: translateY(8px); }

.tba-ggg-room-legends .tba-ggg-plaque {
    border-color: #a77842;
    background: linear-gradient(#4a2e1b, #2f1e13);
    color: #f1ddba;
}

.tba-ggg-room-present .tba-ggg-plaque {
    border-color: #7d5229;
    background: linear-gradient(#fffdf4, #f1dfb6);
    color: #3c2918;
}

.tba-ggg-room-no-results {
    padding: 24px;
    text-align: center;
    font-weight: 800;
}

.tba-ggg-index-shell {
    padding: clamp(22px, 4vw, 48px);
    border: 6px solid #69411f;
    border-radius: 30px;
    background: linear-gradient(#fffdf7, #efe2c8);
    box-shadow: 0 24px 65px rgba(54,34,17,.18), inset 0 0 0 3px #e0bd65;
}

.tba-ggg-index-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: end;
    margin-bottom: 20px;
}

.tba-ggg-index-header h2 {
    margin: 5px 0 8px;
    color: #4a2c16;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
}

.tba-ggg-search-wrap {
    display: grid;
    gap: 6px;
}

.tba-ggg-search-wrap span {
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tba-ggg-index-group {
    margin-top: 28px;
    padding: 22px;
    border-radius: 20px;
}

.tba-ggg-index-group[data-index-group="Legends of Long Ago"] {
    background: #49301f;
    color: #f5e4c3;
}

.tba-ggg-index-group[data-index-group="Present-Day Pals and Adventurers"] {
    border: 3px solid #7a532e;
    background: #e4edc9;
}

.tba-ggg-index-group h3 {
    margin: 0 0 16px;
    font-size: 1.7rem;
}

.tba-ggg-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
}

@media (max-width: 1050px) {
    .tba-ggg-room-entrance {
        grid-template-columns: 120px minmax(0, 1fr);
    }
    .tba-ggg-room-masthead,
    .tba-ggg-index-header {
        grid-template-columns: 1fr;
    }
    .tba-ggg-legends-relic-gallery,
    .tba-ggg-present-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .tba-ggg-v110 {
        width: calc(100vw - 12px);
    }
    .tba-ggg-lobby-building,
    .tba-ggg-room,
    .tba-ggg-index-shell {
        padding: 10px;
        border-radius: 20px;
    }
    .tba-ggg-lobby-beam {
        margin: 0 6px 10px;
        grid-template-columns: 1fr;
    }
    .tba-ggg-lobby-beam span:first-child,
    .tba-ggg-lobby-beam span:last-child {
        display: none;
    }
    .tba-ggg-room-entrances {
        grid-template-columns: 1fr;
    }
    .tba-ggg-room-entrance {
        grid-template-columns: 95px minmax(0, 1fr);
        min-height: 300px;
        padding: 18px;
    }
    .tba-ggg-entrance-door {
        min-height: 205px;
    }
    .tba-ggg-room {
        border-width: 5px;
    }
    .tba-ggg-room-nav {
        margin-top: 72px;
    }
    .tba-ggg-room-masthead {
        padding: 22px;
    }
    .tba-ggg-legends-relic-gallery,
    .tba-ggg-present-details {
        grid-template-columns: 1fr;
    }
    .tba-ggg-room-grid,
    .tba-ggg-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }
    .tba-ggg-room-grid .tba-ggg-frame-stage {
        min-height: 180px;
    }
}

@media (max-width: 470px) {
    .tba-ggg-room-entrance {
        grid-template-columns: 1fr;
        grid-template-areas:
            "sign"
            "title"
            "door"
            "copy"
            "enter";
    }
    .tba-ggg-entrance-door {
        min-height: 150px;
    }
    .tba-ggg-room-grid,
    .tba-ggg-index-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tba-ggg-room-tools,
    .tba-ggg-room-nav {
        align-items: stretch;
        flex-direction: column;
    }
    .tba-ggg-room-tools .tba-ggg-button,
    .tba-ggg-room-nav .tba-ggg-button {
        width: 100%;
    }
}

/* Allow the gallery artwork to be the page hero instead of repeating the theme page title. */
.tba-ggg-page .entry-hero.page-hero-section,
.tba-ggg-page .entry-header.page-title,
.tba-ggg-page .page-header.entry-header,
.tba-ggg-page main > .entry-header {
    display: none !important;
}

.tba-ggg-page .content-area,
.tba-ggg-page .site-main,
.tba-ggg-page .entry-content-wrap,
.tba-ggg-page .entry-content {
    max-width: none;
}


/* ===== Version 1.2.2 surgical layout, illustrated rooms, and ghost presentation ===== */
body.tba-ggg-page {
    overflow-x: clip;
    background: #eee7da;
}

/* Remove only the theme chrome on the plugin-owned gallery page. */
body.tba-ggg-page header#masthead,
body.tba-ggg-page .site-header,
body.tba-ggg-page .entry-hero,
body.tba-ggg-page .entry-header,
body.tba-ggg-page .page-header,
body.tba-ggg-page #secondary,
body.tba-ggg-page .sidebar,
body.tba-ggg-page footer#colophon,
body.tba-ggg-page .site-footer,
body.tba-ggg-page .site-info,
body.tba-ggg-page .comments-area,
body.tba-ggg-page .post-navigation,
body.tba-ggg-page .widget-area {
    display: none !important;
}

body.tba-ggg-page .site,
body.tba-ggg-page .site-container,
body.tba-ggg-page .site-content,
body.tba-ggg-page .content-wrap,
body.tba-ggg-page .content-area,
body.tba-ggg-page #primary,
body.tba-ggg-page .site-main,
body.tba-ggg-page .entry-content-wrap,
body.tba-ggg-page .entry-content,
body.tba-ggg-page article.page,
body.tba-ggg-page .inside-article,
body.tba-ggg-page .content-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Full-bleed viewport shell that remains centered even inside a narrow theme container. */
.tba-ggg {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 calc(50% - 50vw) 60px !important;
    padding: 12px max(12px, calc((100vw - 1540px) / 2)) 0 !important;
}

.tba-ggg-return-home {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin: 0 0 12px;
    padding: 9px 15px;
    border: 2px solid rgba(99,62,30,.25);
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #4a2b17 !important;
    box-shadow: 0 5px 16px rgba(65,38,18,.12);
    text-decoration: none !important;
    font-weight: 900;
}

.tba-ggg-lobby-building {
    background-image: none;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.tba-ggg-room {
    position: relative;
    overflow: hidden;
    padding: clamp(18px, 2.5vw, 34px);
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(46,27,13,.26);
}

.tba-ggg-room-nav {
    margin: 0 0 16px !important;
}

.tba-ggg-room-scene {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: clamp(20px, 3vw, 46px);
    align-items: center;
    min-height: 520px;
    overflow: hidden;
    padding: clamp(28px, 5vw, 72px);
    border-radius: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.16), 0 18px 36px rgba(0,0,0,.18);
}

.tba-ggg-room-scene-legends {
    background-image: none;
    border: 5px solid #1e130d;
    color: #f9ebcf;
}

.tba-ggg-room-scene-present {
    background-image: none;
    border: 5px solid #6f4422;
    color: #382517;
}

.tba-ggg-room-scene-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.tba-ggg-room-scene-legends .tba-ggg-room-scene-shade {
    background: linear-gradient(90deg, rgba(20,12,8,.88) 0%, rgba(28,17,11,.70) 48%, rgba(25,15,10,.34) 100%);
}

.tba-ggg-room-scene-present .tba-ggg-room-scene-shade {
    background: linear-gradient(90deg, rgba(255,250,237,.94) 0%, rgba(255,250,237,.78) 52%, rgba(255,250,237,.34) 100%);
}

.tba-ggg-room-scene-copy,
.tba-ggg-room-scene-guide {
    position: relative;
    z-index: 1;
}

.tba-ggg-room-scene-copy h2 {
    margin: 8px 0 14px;
    font-size: clamp(2.7rem, 5.5vw, 5.9rem);
    line-height: .94;
    letter-spacing: -.045em;
}

.tba-ggg-room-scene-legends .tba-ggg-room-kicker {
    color: #f2c66c;
}

.tba-ggg-room-scene-present .tba-ggg-room-kicker {
    color: #466d45;
}

.tba-ggg-room-scene-copy > p {
    max-width: 72ch;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.65;
}

.tba-ggg-room-scene-guide {
    align-self: end;
    text-align: center;
}

.tba-ggg-room-scene-guide img,
.tba-ggg-grizzwald,
.tba-ggg-room-guide-card img,
#tba-ggg-character-guide,
#tba-ggg-global-guide,
.tba-ggg-dialogue-guide img {
    opacity: .64;
    filter: drop-shadow(0 18px 18px rgba(58,160,216,.30)) drop-shadow(0 0 28px rgba(137,226,255,.52)) brightness(1.10) saturate(1.10);
}

.tba-ggg-room-scene-guide img {
    max-height: 340px;
    object-fit: contain;
    animation: tba-ggg-float 4.8s ease-in-out infinite, tbaGggGhostPulse122 5.8s ease-in-out infinite;
}

@keyframes tbaGggGhostPulse122 {
    0%, 100% { opacity: .60; }
    50% { opacity: .72; }
}

.tba-ggg-room-scene-guide p {
    margin: -10px 0 0;
    padding: 14px 17px;
    border: 3px solid #69bde8;
    border-radius: 18px;
    background: rgba(250,254,255,.94);
    color: #23506b;
    box-shadow: 0 12px 24px rgba(28,91,127,.18);
    font-weight: 800;
    line-height: 1.45;
}

.tba-ggg-room-tools {
    align-items: end;
}

.tba-ggg-room-scene-legends .tba-ggg-room-search span {
    color: #f5dfb0;
}

.tba-ggg-room-wall {
    margin-top: 18px;
}

@media (max-width: 900px) {
    .tba-ggg {
        padding-inline: 8px !important;
    }
    .tba-ggg-room-scene {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 26px;
        background-position: center top;
    }
    .tba-ggg-room-scene-guide img {
        max-height: 260px;
    }
}

@media (max-width: 600px) {
    .tba-ggg-room {
        padding: 9px;
        border-radius: 18px;
    }
    .tba-ggg-room-scene {
        padding: 20px;
        border-radius: 16px;
    }
    .tba-ggg-room-scene-copy h2 {
        font-size: clamp(2.25rem, 13vw, 3.4rem);
    }
}

/* Neutralize the Version 1.1 centering transform before applying viewport full-bleed positioning. */
.tba-ggg.tba-ggg-v110 {
    transform: none !important;
}

.tba-ggg-room-scene-copy {
    padding: clamp(20px, 2.6vw, 36px);
    border-radius: 22px;
    backdrop-filter: blur(3px);
}

.tba-ggg-room-scene-legends .tba-ggg-room-scene-copy {
    border: 2px solid rgba(226,180,101,.38);
    background: rgba(23,14,9,.76);
    box-shadow: inset 0 0 28px rgba(0,0,0,.22), 0 14px 28px rgba(0,0,0,.18);
}

.tba-ggg-room-scene-present .tba-ggg-room-scene-copy {
    border: 3px solid rgba(126,79,35,.30);
    background: rgba(255,250,237,.86);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 14px 28px rgba(89,55,25,.13);
}

@media (max-width: 600px) {
    .tba-ggg-room-scene-copy {
        padding: 18px;
        border-radius: 16px;
    }
}


/* ===== Version 1.3.0: clean live stabilization and approved-art framework ===== */
.tba-ggg-lobby-building,
.tba-ggg-room-scene,
.tba-ggg-index-shell {
    background-image: none !important;
}

.tba-ggg-lobby-building {
    position: relative;
    overflow: hidden;
    padding: clamp(18px, 2.2vw, 34px);
    border: 5px solid #68401f;
    border-radius: 34px;
    background:
        radial-gradient(circle at 15% 10%, rgba(255,255,255,.88), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(223,190,118,.22), transparent 24%),
        repeating-linear-gradient(90deg, rgba(110,70,30,.035) 0 1px, transparent 1px 72px),
        linear-gradient(145deg, #fbf5e8, #e9dcc4) !important;
    box-shadow: 0 24px 60px rgba(53,31,14,.20), inset 0 0 0 2px rgba(255,255,255,.54);
}

.tba-ggg-lobby-building::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(112,72,33,.16);
    border-radius: 24px;
    pointer-events: none;
}

.tba-ggg-room-legends {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 92px),
        linear-gradient(180deg, #382416, #21150e) !important;
}

.tba-ggg-room-present {
    background:
        repeating-linear-gradient(90deg, rgba(100,75,40,.04) 0 1px, transparent 1px 80px),
        linear-gradient(180deg, #fff9ea, #dce9bd) !important;
}

.tba-ggg-room-scene-legends {
    border: 5px solid #1e130d;
    background:
        radial-gradient(circle at 78% 28%, rgba(220,151,62,.14), transparent 25%),
        linear-gradient(90deg, rgba(18,11,7,.96), rgba(48,30,19,.88)) !important;
    color: #f9ebcf;
}

.tba-ggg-room-scene-present {
    border: 5px solid #6f4422;
    background:
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.9), transparent 25%),
        linear-gradient(90deg, #fffaf0, #e9efcf) !important;
    color: #382517;
}

.tba-ggg-room-scene-legends::before,
.tba-ggg-room-scene-present::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.tba-ggg-room-scene-legends::before {
    background:
        linear-gradient(90deg, transparent 0 8%, rgba(151,100,49,.12) 8% 8.7%, transparent 8.7% 31%, rgba(151,100,49,.10) 31% 31.7%, transparent 31.7% 66%, rgba(151,100,49,.10) 66% 66.7%, transparent 66.7%),
        linear-gradient(rgba(255,255,255,.02), rgba(0,0,0,.12));
}

.tba-ggg-room-scene-present::before {
    background:
        radial-gradient(circle at 20% 20%, rgba(75,115,68,.08) 0 5px, transparent 6px),
        radial-gradient(circle at 78% 26%, rgba(203,157,57,.09) 0 4px, transparent 5px);
    background-size: 180px 180px, 220px 220px;
}

.tba-ggg-index-shell {
    padding: clamp(22px, 3vw, 44px);
    border: 5px solid #68401f;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.72), transparent 28%),
        linear-gradient(180deg, #fbf7ed, #e7dac2) !important;
    box-shadow: 0 20px 50px rgba(53,31,14,.18);
}

/* Approved custom art. Each location falls back to the neutral treatment if no image is selected. */
.tba-ggg-custom-environments .tba-ggg-lobby-building,
.tba-ggg-default-environments .tba-ggg-lobby-building {
    background-image:
        linear-gradient(90deg, rgba(255,250,239,.90) 0%, rgba(255,250,239,.64) 46%, rgba(255,250,239,.18) 100%),
        var(--ggg-lobby-art-desktop) !important;
    background-position: center center, var(--ggg-lobby-position-desktop) !important;
    background-size: cover, cover !important;
    background-repeat: no-repeat !important;
}

.tba-ggg-custom-environments .tba-ggg-room-scene-legends,
.tba-ggg-default-environments .tba-ggg-room-scene-legends {
    background-image:
        linear-gradient(90deg, rgba(17,10,6,.93) 0%, rgba(24,15,9,.70) 50%, rgba(24,15,9,.22) 100%),
        var(--ggg-legends-art-desktop) !important;
    background-position: center center, var(--ggg-legends-position-desktop) !important;
    background-size: cover, cover !important;
    background-repeat: no-repeat !important;
}

.tba-ggg-custom-environments .tba-ggg-room-scene-present,
.tba-ggg-default-environments .tba-ggg-room-scene-present {
    background-image:
        linear-gradient(90deg, rgba(255,250,237,.94) 0%, rgba(255,250,237,.76) 52%, rgba(255,250,237,.24) 100%),
        var(--ggg-present-art-desktop) !important;
    background-position: center center, var(--ggg-present-position-desktop) !important;
    background-size: cover, cover !important;
    background-repeat: no-repeat !important;
}

.tba-ggg-custom-environments .tba-ggg-index-shell,
.tba-ggg-default-environments .tba-ggg-index-shell {
    background-image:
        linear-gradient(rgba(250,246,236,.93), rgba(239,229,208,.93)),
        var(--ggg-collection-art-desktop) !important;
    background-position: center center, var(--ggg-collection-position-desktop) !important;
    background-size: cover, cover !important;
    background-repeat: no-repeat !important;
}

.tba-ggg-room-scene-guide img,
.tba-ggg-grizzwald,
.tba-ggg-room-guide-card img,
#tba-ggg-character-guide,
#tba-ggg-global-guide,
.tba-ggg-dialogue-guide img {
    opacity: .64;
    filter: drop-shadow(0 18px 18px rgba(58,160,216,.30)) drop-shadow(0 0 28px rgba(137,226,255,.52)) brightness(1.10) saturate(1.10);
}

@media (max-width: 700px) {
    .tba-ggg-lobby-building,
    .tba-ggg-index-shell {
        padding: 10px;
        border-radius: 20px;
    }
    .tba-ggg-custom-environments .tba-ggg-lobby-building,
.tba-ggg-default-environments .tba-ggg-lobby-building {
        background-image:
            linear-gradient(180deg, rgba(255,250,239,.88) 0%, rgba(255,250,239,.58) 48%, rgba(255,250,239,.20) 100%),
            var(--ggg-lobby-art-mobile) !important;
        background-position: center center, var(--ggg-lobby-position-mobile) !important;
    }
    .tba-ggg-custom-environments .tba-ggg-room-scene-legends,
.tba-ggg-default-environments .tba-ggg-room-scene-legends {
        background-image:
            linear-gradient(180deg, rgba(17,10,6,.90) 0%, rgba(24,15,9,.64) 52%, rgba(24,15,9,.24) 100%),
            var(--ggg-legends-art-mobile) !important;
        background-position: center center, var(--ggg-legends-position-mobile) !important;
    }
    .tba-ggg-custom-environments .tba-ggg-room-scene-present,
.tba-ggg-default-environments .tba-ggg-room-scene-present {
        background-image:
            linear-gradient(180deg, rgba(255,250,237,.92) 0%, rgba(255,250,237,.68) 52%, rgba(255,250,237,.24) 100%),
            var(--ggg-present-art-mobile) !important;
        background-position: center center, var(--ggg-present-position-mobile) !important;
    }
    .tba-ggg-custom-environments .tba-ggg-index-shell,
.tba-ggg-default-environments .tba-ggg-index-shell {
        background-image:
            linear-gradient(rgba(250,246,236,.90), rgba(239,229,208,.90)),
            var(--ggg-collection-art-mobile) !important;
        background-position: center center, var(--ggg-collection-position-mobile) !important;
    }
}


/* ===== Version 1.4.0 permanent commercial design system ===== */
.tba-ggg {
    --ggg-radius-xl: 30px;
    --ggg-radius-lg: 22px;
    --ggg-radius-md: 15px;
    --ggg-border-gold: #b98232;
    --ggg-border-bright: #efd184;
    --ggg-panel-cream: rgba(255, 249, 234, .94);
    --ggg-panel-dark: rgba(38, 25, 17, .92);
    --ggg-commercial-shadow: 0 18px 42px rgba(43, 27, 15, .24);
}

.tba-ggg-lobby-building,
.tba-ggg-room,
.tba-ggg-index-shell {
    border-radius: var(--ggg-radius-xl);
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(47, 29, 14, .24), inset 0 0 0 1px rgba(255,255,255,.25);
}

.tba-ggg-lobby-building {
    padding: 22px;
    border: 8px solid #65401f;
    background:
        linear-gradient(180deg, rgba(248,238,217,.46), rgba(118,76,39,.18)),
        var(--ggg-lobby-art-desktop) var(--ggg-lobby-position-desktop) / cover no-repeat;
}

.tba-ggg-lobby {
    min-height: 650px;
    border: 4px solid rgba(102,62,29,.78);
    background: linear-gradient(90deg, rgba(255,250,239,.93) 0%, rgba(255,250,239,.86) 53%, rgba(255,250,239,.30) 75%, rgba(255,250,239,.12) 100%);
    backdrop-filter: blur(1.5px);
}

.tba-ggg-room-legends {
    padding: 22px;
    background: linear-gradient(rgba(25,15,10,.28), rgba(25,15,10,.58)), var(--ggg-legends-art-desktop) var(--ggg-legends-position-desktop) / cover fixed no-repeat;
}

.tba-ggg-room-present {
    padding: 22px;
    background: linear-gradient(rgba(255,248,227,.15), rgba(235,225,193,.55)), var(--ggg-present-art-desktop) var(--ggg-present-position-desktop) / cover fixed no-repeat;
}

.tba-ggg-index-shell {
    padding: 22px;
    border: 8px solid #6c4827;
    background: linear-gradient(rgba(244,236,216,.88), rgba(229,219,194,.92)), var(--ggg-collection-art-desktop) var(--ggg-collection-position-desktop) / cover fixed no-repeat;
}

.tba-ggg-room-scene,
.tba-ggg-index-header,
.tba-ggg-featured,
.tba-ggg-room-wall,
.tba-ggg-index-group,
.tba-ggg-progress-card,
.tba-ggg-legends-relic-gallery > div,
.tba-ggg-present-details > div {
    border: 2px solid rgba(185,130,50,.74);
    box-shadow: var(--ggg-commercial-shadow), inset 0 0 0 1px rgba(255,255,255,.48);
}

.tba-ggg-room-scene-legends {
    background: linear-gradient(90deg, rgba(26,17,12,.95), rgba(26,17,12,.80) 55%, rgba(26,17,12,.28)), var(--ggg-legends-art-desktop) var(--ggg-legends-position-desktop) / cover no-repeat;
}

.tba-ggg-room-scene-present {
    background: linear-gradient(90deg, rgba(255,251,239,.94), rgba(255,251,239,.84) 58%, rgba(255,251,239,.22)), var(--ggg-present-art-desktop) var(--ggg-present-position-desktop) / cover no-repeat;
}

.tba-ggg-room-legends .tba-ggg-room-wall,
.tba-ggg-room-legends .tba-ggg-legends-relic-gallery > div {
    background: linear-gradient(180deg, rgba(64,40,26,.96), rgba(36,24,17,.96));
    color: #f6e7c7;
    border-color: #a56d32;
}

.tba-ggg-room-present .tba-ggg-room-wall,
.tba-ggg-room-present .tba-ggg-present-details > div,
.tba-ggg-index-group {
    background: linear-gradient(180deg, rgba(255,253,244,.96), rgba(240,229,195,.96));
    color: #332416;
    border-color: #a66d2d;
}

.tba-ggg-button,
.tba-ggg-filter,
.tba-ggg-tabs button,
.tba-ggg-icon-button {
    border-radius: 999px;
    letter-spacing: .01em;
    box-shadow: 0 5px 0 rgba(58,34,16,.42), 0 10px 20px rgba(45,27,13,.16);
}

.tba-ggg-button-primary {
    background: linear-gradient(180deg, #99603a, #5a2e17);
    border-color: #3a1e0f;
}
.tba-ggg-button-gold {
    background: linear-gradient(180deg, #ffe59a, #d99d2e);
    border-color: #765014;
}
.tba-ggg-button-ghost {
    background: linear-gradient(180deg, #effbff, #bfe8fa);
    border-color: #4e8eb4;
}
.tba-ggg-button-realm {
    background: linear-gradient(180deg, #79a56f, #3f653d);
}

.tba-ggg-frame-stage {
    border-radius: 12px;
    background: radial-gradient(circle at 50% 15%, #fffdf7, #e8dcc7);
    box-shadow: 0 12px 26px rgba(35,22,12,.24), inset 0 0 0 1px rgba(255,255,255,.7);
}
.tba-ggg-portrait-card:hover .tba-ggg-frame-stage,
.tba-ggg-portrait-card:focus-within .tba-ggg-frame-stage {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 20px 34px rgba(35,22,12,.30), 0 0 0 4px rgba(236,185,72,.28);
}
.tba-ggg-plaque {
    border-radius: 0 0 12px 12px;
    border-top: 2px solid rgba(184,126,46,.75);
}

.tba-ggg-dialogue-box,
.tba-ggg-profile-actions,
.tba-ggg-curator-note,
.tba-ggg-museum-detail-grid > div {
    border: 2px solid #b87d35;
    border-radius: var(--ggg-radius-lg);
    background: linear-gradient(180deg, rgba(255,253,246,.98), rgba(238,229,204,.98));
    box-shadow: 0 18px 34px rgba(38,23,12,.18);
}

.tba-ggg-promo-zone {
    position: relative;
    z-index: 7;
    width: 100%;
    margin: 18px 0;
    overflow: hidden;
    border: 3px solid #7a4c25;
    border-radius: 22px;
    background: #f7ecd3;
    box-shadow: 0 16px 34px rgba(49,29,13,.22), inset 0 0 0 2px rgba(238,196,99,.65);
}
.tba-ggg-promo-zone picture,
.tba-ggg-promo-zone img,
.tba-ggg-promo-zone a { display:block; width:100%; }
.tba-ggg-promo-zone img { height:auto; max-height:430px; object-fit:cover; }
.tba-ggg-promo-secondary { max-width: 980px; margin-left:auto; margin-right:auto; }
.tba-ggg-promo-secondary img { max-height:300px; }
.tba-ggg-promo-overlay {
    position:absolute;
    inset:0;
    z-index:5;
    pointer-events:none;
    border:0;
    margin:0;
    background:transparent;
    box-shadow:none;
    overflow:hidden;
}
.tba-ggg-promo-overlay img { width:100%; height:100%; object-fit:cover; opacity:.7; }
.tba-ggg-seasonal-particles { position:absolute; inset:0; display:block; }
.tba-ggg-promo-preset-winter .tba-ggg-seasonal-particles { background-image: radial-gradient(circle, rgba(255,255,255,.95) 0 2px, transparent 3px); background-size: 62px 62px; animation:tba-ggg-seasonal-drift 16s linear infinite; opacity:.65; }
.tba-ggg-promo-preset-spring .tba-ggg-seasonal-particles { background-image: radial-gradient(circle at 30% 30%, rgba(117,170,82,.55) 0 5px, transparent 6px), radial-gradient(circle at 70% 60%, rgba(244,190,92,.45) 0 4px, transparent 5px); background-size:140px 140px, 180px 180px; }
.tba-ggg-promo-preset-autumn .tba-ggg-seasonal-particles { background-image: radial-gradient(ellipse at 35% 35%, rgba(193,93,36,.45) 0 7px, transparent 8px), radial-gradient(ellipse at 70% 65%, rgba(223,150,54,.42) 0 8px, transparent 9px); background-size:150px 150px, 210px 210px; }
.tba-ggg-promo-preset-celebration .tba-ggg-seasonal-particles { background-image: linear-gradient(35deg, transparent 47%, rgba(233,171,44,.55) 48% 52%, transparent 53%), linear-gradient(-35deg, transparent 47%, rgba(83,137,78,.45) 48% 52%, transparent 53%); background-size:90px 90px, 120px 120px; }
@keyframes tba-ggg-seasonal-drift { from { background-position:0 0; } to { background-position:0 240px; } }

@media (max-width: 700px) {
    .tba-ggg-lobby-building {
        padding: 10px;
        background-image: linear-gradient(180deg, rgba(248,238,217,.40), rgba(118,76,39,.16)), var(--ggg-lobby-art-mobile);
        background-position: center, var(--ggg-lobby-position-mobile);
        background-size: cover;
    }
    .tba-ggg-lobby {
        min-height: 760px;
        background: linear-gradient(180deg, rgba(255,250,239,.92), rgba(255,250,239,.72) 62%, rgba(255,250,239,.20));
    }
    .tba-ggg-room-legends { background-image: linear-gradient(rgba(25,15,10,.28), rgba(25,15,10,.58)), var(--ggg-legends-art-mobile); background-position:center, var(--ggg-legends-position-mobile); background-size:cover; background-attachment:scroll; }
    .tba-ggg-room-present { background-image: linear-gradient(rgba(255,248,227,.15), rgba(235,225,193,.55)), var(--ggg-present-art-mobile); background-position:center, var(--ggg-present-position-mobile); background-size:cover; background-attachment:scroll; }
    .tba-ggg-index-shell { background-image: linear-gradient(rgba(244,236,216,.88), rgba(229,219,194,.92)), var(--ggg-collection-art-mobile); background-position:center, var(--ggg-collection-position-mobile); background-size:cover; background-attachment:scroll; }
    .tba-ggg-room-scene-legends { background-image: linear-gradient(180deg, rgba(26,17,12,.88), rgba(26,17,12,.62)), var(--ggg-legends-art-mobile); background-position:center, var(--ggg-legends-position-mobile); }
    .tba-ggg-room-scene-present { background-image: linear-gradient(180deg, rgba(255,251,239,.90), rgba(255,251,239,.62)), var(--ggg-present-art-mobile); background-position:center, var(--ggg-present-position-mobile); }
    .tba-ggg-promo-zone { border-radius:16px; }
    .tba-ggg-promo-zone img { max-height:none; }
}


/* Version 1.5.0: built-in default art must render in Approved Permanent Default Design mode. */
.tba-ggg-default-environments .tba-ggg-lobby-building,
.tba-ggg-default-environments .tba-ggg-room-scene-legends,
.tba-ggg-default-environments .tba-ggg-room-scene-present,
.tba-ggg-default-environments .tba-ggg-index-shell {
    background-attachment: scroll;
}


/* ========================================================================== 
   Version 1.6.2 - Complete approved professional visual skin
   ========================================================================== */
.tba-ggg {
    --ggg-skin-wood: url('../images/skin/lobby-wood-strip.webp');
    --ggg-skin-parchment: url('../images/skin/lobby-parchment.webp');
    --ggg-skin-gold-trim: url('../images/skin/gold-trim.png');
    --ggg-skin-modal: url('../images/skin/modal-parchment.webp');
    --ggg-cream-strong: #fff7e8;
    --ggg-cream-soft: #efe0be;
    --ggg-walnut-deep: #3a2112;
    --ggg-walnut-mid: #70401f;
    --ggg-antique-gold: #d6a344;
    --ggg-antique-gold-dark: #8c5a1f;
    --ggg-forest: #365b3d;
    --ggg-forest-light: #6f9663;
}

.tba-ggg-lobby-building,
.tba-ggg-room,
.tba-ggg-index-shell {
    border: 8px solid var(--ggg-walnut-deep) !important;
    box-shadow: 0 26px 70px rgba(34,20,10,.32), inset 0 0 0 3px rgba(219,166,67,.74) !important;
}

.tba-ggg-lobby-beam,
.tba-ggg-room-nav,
.tba-ggg-index-shell > .tba-ggg-room-nav {
    background-image: linear-gradient(rgba(55,28,12,.35),rgba(55,28,12,.35)), var(--ggg-skin-wood) !important;
    background-size: cover !important;
    background-position: center !important;
    border: 3px solid var(--ggg-antique-gold-dark) !important;
    box-shadow: inset 0 0 0 2px rgba(244,203,112,.32), 0 7px 16px rgba(37,21,10,.23) !important;
}

.tba-ggg-lobby-beam {
    min-height: 58px;
    border-radius: 16px !important;
    color: #fff1c4 !important;
    letter-spacing: .08em;
    text-shadow: 0 2px 2px #2a160c;
}

.tba-ggg-lobby {
    border: 3px solid rgba(125,79,35,.7) !important;
    background-image:
        linear-gradient(110deg, rgba(255,250,238,.96) 0%, rgba(255,248,230,.90) 56%, rgba(255,245,218,.62) 100%),
        var(--ggg-lobby-art-desktop) !important;
    background-size: cover, cover !important;
    background-position: center, var(--ggg-lobby-position-desktop) !important;
}

.tba-ggg-lobby-copy,
.tba-ggg-featured-copy,
.tba-ggg-room-title-block,
.tba-ggg-index-header > div:first-child {
    padding: clamp(20px,3vw,38px);
    border: 2px solid rgba(132,86,39,.52);
    border-radius: 22px;
    background-image: linear-gradient(rgba(255,253,246,.94),rgba(241,227,198,.92)), var(--ggg-skin-parchment);
    background-size: cover;
    box-shadow: 0 16px 32px rgba(54,32,15,.15), inset 0 0 0 2px rgba(255,255,255,.55);
}

.tba-ggg-room-entrance,
.tba-ggg-featured,
.tba-ggg-progress-card,
.tba-ggg-legends-relic-gallery > div,
.tba-ggg-present-details > div,
.tba-ggg-index-group,
.tba-ggg-toolbar {
    border-color: var(--ggg-antique-gold-dark) !important;
    box-shadow: 0 15px 30px rgba(45,27,12,.17), inset 0 0 0 2px rgba(228,184,88,.38) !important;
}

.tba-ggg-room-entrance-legends {
    background-image: linear-gradient(rgba(45,25,14,.88),rgba(30,18,11,.92)), url('../images/skin/legends-panel.webp') !important;
    background-size: cover !important;
    color: #f7e4bd !important;
}
.tba-ggg-room-entrance-present {
    background-image: linear-gradient(rgba(248,245,221,.90),rgba(220,236,183,.90)), url('../images/skin/present-panel.webp') !important;
    background-size: cover !important;
}

.tba-ggg-featured {
    background-image: linear-gradient(rgba(255,252,242,.94),rgba(241,226,194,.92)), var(--ggg-skin-parchment) !important;
    background-size: cover !important;
}

.tba-ggg-button,
.tba-ggg-filter,
.tba-ggg-tabs button,
.tba-ggg-dialogue-choices button {
    border-radius: 999px !important;
    letter-spacing: .01em;
    box-shadow: 0 5px 0 rgba(72,39,14,.72), 0 9px 20px rgba(45,25,11,.18) !important;
}
.tba-ggg-button-primary,
.tba-ggg-dialogue-choices button {
    border-color: #3f2412 !important;
    background-image: linear-gradient(#9b6030,#5c3218), var(--ggg-skin-wood) !important;
    background-size: cover !important;
    color: #fff8df !important;
}
.tba-ggg-button-primary:hover,
.tba-ggg-dialogue-choices button:hover,
.tba-ggg-dialogue-choices button:focus-visible {
    background-image: linear-gradient(#b87537,#71401f), var(--ggg-skin-wood) !important;
}
.tba-ggg-button-ghost {
    border-color: #337598 !important;
    background: linear-gradient(#f1fcff,#bde7f7) !important;
    color: #225a79 !important;
    box-shadow: 0 5px 0 #5ca3c5, 0 9px 20px rgba(43,110,145,.16) !important;
}
.tba-ggg-button-gold,
.tba-ggg-filter.is-active {
    border-color: #704812 !important;
    background: linear-gradient(#ffe99c,#d59b28) !important;
    color: #4a2e0c !important;
    box-shadow: 0 5px 0 #8b5b17, 0 9px 20px rgba(79,50,12,.18) !important;
}

.tba-ggg-room-legends {
    --ggg-skin-wood: url('../images/skin/legends-wood-strip.webp');
    --ggg-skin-parchment: url('../images/skin/legends-panel.webp');
}
.tba-ggg-room-present {
    --ggg-skin-wood: url('../images/skin/present-wood-strip.webp');
    --ggg-skin-parchment: url('../images/skin/present-panel.webp');
}

.tba-ggg-room-legends .tba-ggg-room-masthead,
.tba-ggg-room-legends .tba-ggg-room-wall,
.tba-ggg-room-legends .tba-ggg-legends-relic-gallery > div {
    background-image: linear-gradient(rgba(36,22,14,.88),rgba(31,19,12,.90)), url('../images/skin/legends-wall.webp') !important;
    background-size: cover !important;
    color: #f6e5c2 !important;
}
.tba-ggg-room-present .tba-ggg-room-masthead,
.tba-ggg-room-present .tba-ggg-room-wall,
.tba-ggg-room-present .tba-ggg-present-details > div {
    background-image: linear-gradient(rgba(255,252,239,.91),rgba(238,239,208,.91)), url('../images/skin/present-wall.webp') !important;
    background-size: cover !important;
}

.tba-ggg-room-wall,
.tba-ggg-index-group {
    border-width: 5px !important;
    border-style: solid !important;
    border-color: var(--ggg-antique-gold-dark) !important;
    border-radius: 24px !important;
}

.tba-ggg-index-shell {
    background-image: linear-gradient(rgba(251,247,238,.91),rgba(238,229,207,.93)), var(--ggg-collection-art-desktop) !important;
    background-size: cover,cover !important;
    background-position: center,var(--ggg-collection-position-desktop) !important;
}
.tba-ggg-index-group[data-index-group="Legends of Long Ago"] {
    background-image: linear-gradient(rgba(47,28,17,.91),rgba(41,24,15,.93)), url('../images/skin/legends-wall.webp') !important;
    color:#f8e9ca !important;
}
.tba-ggg-index-group[data-index-group="Present-Day Pals and Adventurers"] {
    background-image: linear-gradient(rgba(240,247,216,.92),rgba(229,239,196,.94)), url('../images/skin/present-wall.webp') !important;
}

.tba-ggg-portrait-card {
    border-radius: 16px !important;
    filter: drop-shadow(0 10px 11px rgba(44,26,11,.18));
    transition: transform .18s ease, filter .18s ease;
}
.tba-ggg-portrait-card:hover,
.tba-ggg-portrait-card:focus-within {
    transform: translateY(-5px) scale(1.012);
    filter: drop-shadow(0 16px 16px rgba(44,26,11,.26));
}
.tba-ggg-frame-stage {
    border: 3px solid #8d5d27 !important;
    border-radius: 14px 14px 4px 4px !important;
    background: linear-gradient(#fffdf7,#ead9b5) !important;
    box-shadow: inset 0 0 0 2px #dcb45e;
}
.tba-ggg-plaque {
    border: 2px solid #8d5d27 !important;
    border-top: 0 !important;
    background-image: linear-gradient(rgba(255,249,231,.96),rgba(233,211,168,.96)), var(--ggg-skin-parchment) !important;
    background-size: cover !important;
}

.tba-ggg-search-wrap input,
.tba-ggg-room-search input,
.tba-ggg-toolbar,
.tba-ggg-progress-card {
    background-image: linear-gradient(rgba(255,253,246,.96),rgba(240,229,203,.94)), var(--ggg-skin-parchment) !important;
    background-size: cover !important;
}

.tba-ggg-modal-shell,
.tba-ggg-guide-modal-shell {
    border: 8px solid var(--ggg-walnut-deep) !important;
    background-image: linear-gradient(rgba(255,251,241,.92),rgba(238,226,200,.91)), var(--ggg-skin-modal) !important;
    background-size: cover !important;
    box-shadow: 0 34px 95px rgba(0,0,0,.52), inset 0 0 0 3px var(--ggg-antique-gold) !important;
}

.tba-ggg-modal-topbar,
.tba-ggg-tabs {
    background-image: linear-gradient(rgba(80,43,18,.90),rgba(55,29,14,.94)), var(--ggg-skin-wood) !important;
    background-size: cover !important;
    color:#fff1cc !important;
}
.tba-ggg-modal-title-wrap h2,
.tba-ggg-modal-title-wrap span,
.tba-ggg-modal-title-wrap p {
    color:#fff1cc !important;
}
.tba-ggg-tabs button {
    border-color:#d8a64c !important;
    background:rgba(255,248,228,.94) !important;
}
.tba-ggg-tabs button.is-active {
    background:linear-gradient(#6f9663,#365b3d) !important;
    color:#fff !important;
}

.tba-ggg-guide-modal-shell {
    position:relative;
    overflow:hidden;
}
.tba-ggg-guide-modal-shell::before {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:radial-gradient(circle at 23% 32%,rgba(93,205,255,.25),transparent 34%);
}
.tba-ggg-dialogue-layout-global,
.tba-ggg-tab-panel[data-panel="grizzwald"] .tba-ggg-dialogue-layout {
    position:relative;
    z-index:1;
}
.tba-ggg-dialogue-box {
    border:3px solid #8a5a28 !important;
    background-image:linear-gradient(rgba(255,253,246,.96),rgba(239,227,199,.96)),var(--ggg-skin-parchment) !important;
    background-size:cover !important;
    box-shadow:0 22px 44px rgba(37,22,11,.25),inset 0 0 0 2px rgba(106,201,244,.34) !important;
}
.tba-ggg-dialogue-box::before {
    border-color:#8a5a28 !important;
    background:#f8edd6 !important;
}
.tba-ggg-dialogue-box h2,
.tba-ggg-dialogue-box > p {
    color:#422a17 !important;
}

/* Ghost Grizzwald must be visibly translucent everywhere. */
.tba-ggg-grizzwald,
.tba-ggg-room-scene-guide img,
.tba-ggg-room-guide-card img,
#tba-ggg-character-guide,
#tba-ggg-global-guide,
.tba-ggg-dialogue-guide img {
    opacity:.56 !important;
    filter:drop-shadow(0 18px 18px rgba(46,155,216,.30)) drop-shadow(0 0 32px rgba(111,220,255,.58)) brightness(1.12) saturate(1.10) !important;
    mix-blend-mode:screen;
}
@keyframes tbaGggGhostPulse160 {
    0%,100%{opacity:.50}
    50%{opacity:.64}
}
.tba-ggg-grizzwald,
.tba-ggg-room-scene-guide img,
.tba-ggg-room-guide-card img,
#tba-ggg-character-guide,
#tba-ggg-global-guide,
.tba-ggg-dialogue-guide img {
    animation:tba-ggg-float 4.8s ease-in-out infinite,tbaGggGhostPulse160 5.8s ease-in-out infinite !important;
}

@media(max-width:700px){
    .tba-ggg-lobby {
        background-image:linear-gradient(180deg,rgba(255,250,238,.95),rgba(255,248,230,.73)),var(--ggg-lobby-art-mobile) !important;
        background-position:center,var(--ggg-lobby-position-mobile) !important;
    }
    .tba-ggg-index-shell {
        background-image:linear-gradient(rgba(251,247,238,.92),rgba(238,229,207,.94)),var(--ggg-collection-art-mobile) !important;
        background-position:center,var(--ggg-collection-position-mobile) !important;
    }
    .tba-ggg-dialogue-guide img,
    #tba-ggg-global-guide,
    #tba-ggg-character-guide {
        max-height:300px !important;
    }
    .tba-ggg-guide-modal-shell {
        border-radius:18px !important;
    }
    .tba-ggg-dialogue-box {
        border-radius:20px !important;
    }
}


/* ===== Version 1.6.2: full contrast, opacity, hover and focus audit ===== */

/* Room artwork must remain fully opaque. Only Ghost Grizzwald is translucent. */
.tba-ggg-room-scene,
.tba-ggg-room-scene-shade,
.tba-ggg-room-scene-copy,
.tba-ggg-room-wall,
.tba-ggg-room-masthead,
.tba-ggg-legends-relic-gallery > div,
.tba-ggg-present-details > div,
.tba-ggg-index-shell,
.tba-ggg-index-group,
.tba-ggg-plaque,
.tba-ggg-dialogue-box,
.tba-ggg-modal-topbar,
.tba-ggg-tabs {
    opacity: 1 !important;
}

.tba-ggg-room-scene-legends .tba-ggg-room-scene-shade {
    background: linear-gradient(90deg, rgba(21,12,7,.60) 0%, rgba(24,14,8,.34) 52%, rgba(24,14,8,.08) 100%) !important;
}
.tba-ggg-room-scene-present .tba-ggg-room-scene-shade {
    background: linear-gradient(90deg, rgba(255,249,235,.28) 0%, rgba(255,249,235,.12) 52%, rgba(255,249,235,.02) 100%) !important;
}
.tba-ggg-room-scene-legends .tba-ggg-room-scene-copy {
    background: #21140d !important;
    border-color: #c8943f !important;
    color: #fff2d0 !important;
    backdrop-filter: none !important;
}
.tba-ggg-room-scene-present .tba-ggg-room-scene-copy {
    background: #fff9e9 !important;
    border-color: #a66a2c !important;
    color: #2f2418 !important;
    backdrop-filter: none !important;
}

/* Room titles and explanatory copy. */
.tba-ggg-room-scene-legends .tba-ggg-room-scene-copy h2,
.tba-ggg-room-legends .tba-ggg-room-title-block h2 {
    color: #ffe5a8 !important;
    text-shadow: 0 4px 12px rgba(0,0,0,.72) !important;
}
.tba-ggg-room-scene-legends .tba-ggg-room-scene-copy > p,
.tba-ggg-room-scene-legends .tba-ggg-room-kicker,
.tba-ggg-room-scene-legends .tba-ggg-room-search span {
    color: #fff1cf !important;
}
.tba-ggg-room-scene-present .tba-ggg-room-scene-copy h2,
.tba-ggg-room-present .tba-ggg-room-title-block h2 {
    color: #242b37 !important;
    text-shadow: none !important;
}
.tba-ggg-room-scene-present .tba-ggg-room-scene-copy > p,
.tba-ggg-room-scene-present .tba-ggg-room-kicker,
.tba-ggg-room-scene-present .tba-ggg-room-search span {
    color: #352719 !important;
}

/* Solid information strips with dependable text contrast. */
.tba-ggg-room-legends .tba-ggg-legends-relic-gallery > div {
    background: #2b1a10 !important;
    color: #fff0ce !important;
    border-color: #b98238 !important;
}
.tba-ggg-room-legends .tba-ggg-legends-relic-gallery strong,
.tba-ggg-room-legends .tba-ggg-legends-relic-gallery small {
    color: #fff0ce !important;
    opacity: 1 !important;
}
.tba-ggg-room-present .tba-ggg-present-details > div {
    background: #fff8e7 !important;
    color: #342617 !important;
    border-color: #a96e2d !important;
}
.tba-ggg-room-present .tba-ggg-present-details strong,
.tba-ggg-room-present .tba-ggg-present-details small {
    color: #342617 !important;
    opacity: 1 !important;
}

/* Portrait plaques: explicit room-specific colors prevent inherited text loss. */
.tba-ggg-room-legends .tba-ggg-plaque,
.tba-ggg-index-group[data-index-group="Legends of Long Ago"] .tba-ggg-plaque {
    background: linear-gradient(180deg,#4b2d19,#2c190e) !important;
    border-color: #c18a3b !important;
    color: #fff3d2 !important;
}
.tba-ggg-room-legends .tba-ggg-plaque *,
.tba-ggg-index-group[data-index-group="Legends of Long Ago"] .tba-ggg-plaque * {
    color: #fff3d2 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.35) !important;
}
.tba-ggg-room-present .tba-ggg-plaque,
.tba-ggg-index-group[data-index-group="Present-Day Pals and Adventurers"] .tba-ggg-plaque,
.tba-ggg-index-view .tba-ggg-plaque {
    background: linear-gradient(180deg,#fffaf0,#ead6a9) !important;
    border-color: #9a6128 !important;
    color: #302116 !important;
}
.tba-ggg-room-present .tba-ggg-plaque *,
.tba-ggg-index-group[data-index-group="Present-Day Pals and Adventurers"] .tba-ggg-plaque *,
.tba-ggg-index-view .tba-ggg-plaque * {
    color: #302116 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
/* Reassert dark Legends plaques after the general index rule above. */
.tba-ggg-index-group[data-index-group="Legends of Long Ago"] .tba-ggg-plaque,
.tba-ggg-index-group[data-index-group="Legends of Long Ago"] .tba-ggg-plaque * {
    color: #fff3d2 !important;
}
.tba-ggg-index-group[data-index-group="Legends of Long Ago"] .tba-ggg-plaque {
    background: linear-gradient(180deg,#4b2d19,#2c190e) !important;
}

/* Keep portrait hover/focus readable and stable. */
.tba-ggg-portrait-card:hover .tba-ggg-plaque,
.tba-ggg-portrait-card:focus-within .tba-ggg-plaque,
.tba-ggg-portrait-card:hover .tba-ggg-plaque *,
.tba-ggg-portrait-card:focus-within .tba-ggg-plaque * {
    opacity: 1 !important;
}
.tba-ggg-portrait-button:focus-visible {
    outline: 4px solid #65bce7 !important;
    outline-offset: 5px !important;
    border-radius: 14px !important;
}

/* Portrait encounter title bar: fixed dark wood and high-contrast copy. */
.tba-ggg-modal-topbar {
    background: linear-gradient(180deg,#5b351d,#382012) !important;
    border-bottom-color: #d5a64d !important;
    color: #fff4d4 !important;
}
.tba-ggg-modal-title-wrap span {
    color: #f3cc72 !important;
    opacity: 1 !important;
}
.tba-ggg-modal-title-wrap h2 {
    color: #fff7df !important;
    text-shadow: 0 2px 4px rgba(0,0,0,.55) !important;
}
.tba-ggg-modal-title-wrap p {
    color: #f6dfad !important;
    opacity: 1 !important;
}

/* Modal tabs and their mouse-over/focus states. */
.tba-ggg-tabs {
    background: #efe0bd !important;
    border-bottom-color: #9f682d !important;
}
.tba-ggg-tabs button {
    border: 2px solid #9e672d !important;
    background: #fff9e9 !important;
    color: #3b2818 !important;
}
.tba-ggg-tabs button:hover,
.tba-ggg-tabs button:focus-visible {
    border-color: #375f3b !important;
    background: #e4efd5 !important;
    color: #213d27 !important;
}
.tba-ggg-tabs button.is-active,
.tba-ggg-tabs button.is-active:hover,
.tba-ggg-tabs button.is-active:focus-visible {
    border-color: #29472f !important;
    background: linear-gradient(#739b68,#3f643e) !important;
    color: #fff !important;
}

/* Talk to Ghost Grizzwald: solid parchment panel and readable hierarchy. */
.tba-ggg-guide-modal-shell .tba-ggg-dialogue-box,
.tba-ggg-tab-panel[data-panel="grizzwald"] .tba-ggg-dialogue-box {
    background: #fff6df !important;
    border: 4px solid #a96e2d !important;
    color: #332114 !important;
    box-shadow: 0 22px 46px rgba(28,17,9,.35), inset 0 0 0 2px #e6bd67 !important;
}
.tba-ggg-guide-modal-shell .tba-ggg-dialogue-box::before,
.tba-ggg-tab-panel[data-panel="grizzwald"] .tba-ggg-dialogue-box::before {
    background: #fff6df !important;
    border-color: #a96e2d !important;
}
.tba-ggg-dialogue-box .tba-ggg-small-label {
    color: #3f7148 !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}
.tba-ggg-dialogue-box h2,
#tba-ggg-guide-title {
    color: #512d17 !important;
    text-shadow: none !important;
}
.tba-ggg-dialogue-box > p,
#tba-ggg-global-answer,
#tba-ggg-character-answer {
    color: #3c2919 !important;
    opacity: 1 !important;
}
.tba-ggg-dialogue-choices button {
    border: 3px solid #d39a3e !important;
    background: linear-gradient(180deg,#68401f,#3c2111) !important;
    color: #fff7dc !important;
    box-shadow: 0 4px 0 #7d4a1d, 0 9px 18px rgba(45,25,11,.24) !important;
}
.tba-ggg-dialogue-choices button:hover,
.tba-ggg-dialogue-choices button:focus-visible {
    border-color: #ffe39a !important;
    background: linear-gradient(180deg,#8c5928,#543019) !important;
    color: #fff !important;
    outline: 3px solid #63bde8 !important;
    outline-offset: 2px !important;
}

/* Button, filter and icon contrast audit. */
.tba-ggg-button-primary,
.tba-ggg-button-primary:hover,
.tba-ggg-button-primary:focus-visible {
    color: #fff8df !important;
}
.tba-ggg-button-ghost,
.tba-ggg-button-ghost:hover,
.tba-ggg-button-ghost:focus-visible {
    color: #174c6a !important;
}
.tba-ggg-button-gold,
.tba-ggg-button-gold:hover,
.tba-ggg-button-gold:focus-visible,
.tba-ggg-filter.is-active {
    color: #3e270b !important;
}
.tba-ggg-filter:not(.is-active) {
    border-color: #94602a !important;
    background: #fff9e9 !important;
    color: #3a2818 !important;
}
.tba-ggg-filter:not(.is-active):hover,
.tba-ggg-filter:not(.is-active):focus-visible {
    background: #f1dfb7 !important;
    color: #2c1d11 !important;
}
.tba-ggg-button:focus-visible,
.tba-ggg-filter:focus-visible,
.tba-ggg-icon-button:focus-visible,
.tba-ggg-room-search input:focus-visible,
.tba-ggg-search-wrap input:focus-visible {
    outline: 4px solid #62bce8 !important;
    outline-offset: 3px !important;
}

/* Collection group headings. */
.tba-ggg-index-group[data-index-group="Legends of Long Ago"] h3,
.tba-ggg-index-group[data-index-group="Legends of Long Ago"] .tba-ggg-room-wall-label,
.tba-ggg-index-group[data-index-group="Legends of Long Ago"] .tba-ggg-room-wall-label * {
    color: #fff1cd !important;
}
.tba-ggg-index-group[data-index-group="Present-Day Pals and Adventurers"] h3,
.tba-ggg-index-group[data-index-group="Present-Day Pals and Adventurers"] .tba-ggg-room-wall-label,
.tba-ggg-index-group[data-index-group="Present-Day Pals and Adventurers"] .tba-ggg-room-wall-label * {
    color: #302116 !important;
}

/* Ghost Grizzwald remains the only translucent element. Avoid blend-mode washout. */
.tba-ggg-grizzwald,
.tba-ggg-room-scene-guide img,
.tba-ggg-room-guide-card img,
#tba-ggg-character-guide,
#tba-ggg-global-guide,
.tba-ggg-dialogue-guide img {
    opacity: .66 !important;
    mix-blend-mode: normal !important;
    filter: drop-shadow(0 18px 18px rgba(46,155,216,.34)) drop-shadow(0 0 30px rgba(111,220,255,.55)) brightness(1.10) saturate(1.08) !important;
}
@keyframes tbaGggGhostPulse161 {
    0%,100% { opacity:.60; }
    50% { opacity:.72; }
}
.tba-ggg-grizzwald,
.tba-ggg-room-scene-guide img,
.tba-ggg-room-guide-card img,
#tba-ggg-character-guide,
#tba-ggg-global-guide,
.tba-ggg-dialogue-guide img {
    animation: tba-ggg-float 4.8s ease-in-out infinite, tbaGggGhostPulse161 5.8s ease-in-out infinite !important;
}

@media (max-width: 700px) {
    .tba-ggg-room-scene-legends .tba-ggg-room-scene-copy,
    .tba-ggg-room-scene-present .tba-ggg-room-scene-copy {
        background: #fff8e7 !important;
        color: #302116 !important;
    }
    .tba-ggg-room-scene-legends .tba-ggg-room-scene-copy h2,
    .tba-ggg-room-scene-present .tba-ggg-room-scene-copy h2,
    .tba-ggg-room-scene-legends .tba-ggg-room-scene-copy > p,
    .tba-ggg-room-scene-present .tba-ggg-room-scene-copy > p,
    .tba-ggg-room-scene-legends .tba-ggg-room-kicker,
    .tba-ggg-room-scene-present .tba-ggg-room-kicker,
    .tba-ggg-room-scene-legends .tba-ggg-room-search span,
    .tba-ggg-room-scene-present .tba-ggg-room-search span {
        color: #302116 !important;
        text-shadow: none !important;
    }
    .tba-ggg-modal-title-wrap h2 {
        font-size: clamp(1.45rem, 7vw, 2.1rem) !important;
    }
    .tba-ggg-dialogue-choices button {
        width: 100% !important;
    }
}


/* ===== Version 1.6.2: enlarged, high-visibility navigation arrows ===== */
.tba-ggg-nav-arrow {
    display: inline-block;
    flex: 0 0 auto;
    margin-right: .28em;
    color: currentColor;
    font-size: 1.55em;
    font-weight: 1000;
    line-height: .7;
    text-shadow: 0 1px 0 rgba(255,255,255,.55);
    transform: translateY(-.02em);
}

.tba-ggg-return-home,
.tba-ggg-room-nav .tba-ggg-button[data-ggg-view-target="lobby"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 56px !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
}

#tba-ggg-previous,
#tba-ggg-next {
    width: 64px !important;
    min-width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    border-width: 3px !important;
    background: linear-gradient(180deg, #fffdf4, #e9d2a7) !important;
    color: #3d230f !important;
    box-shadow: 0 6px 0 #9a6737, 0 12px 22px rgba(42,24,10,.24) !important;
    font-family: Arial, sans-serif !important;
    font-size: 2.55rem !important;
    font-weight: 1000 !important;
    line-height: 1 !important;
    text-shadow: 0 1px 0 #fff !important;
}

#tba-ggg-previous:hover,
#tba-ggg-next:hover,
#tba-ggg-previous:focus-visible,
#tba-ggg-next:focus-visible {
    background: linear-gradient(180deg, #fff1bb, #e3b95d) !important;
    color: #241205 !important;
    border-color: #43230f !important;
    transform: translateY(-2px) scale(1.04) !important;
}

@media (max-width: 680px) {
    .tba-ggg-return-home,
    .tba-ggg-room-nav .tba-ggg-button[data-ggg-view-target="lobby"] {
        min-height: 60px !important;
        padding: 13px 18px !important;
        font-size: 1rem !important;
    }

    .tba-ggg-nav-arrow {
        margin-right: .34em;
        font-size: 1.75em;
    }

    .tba-ggg-modal-tools {
        gap: 12px !important;
    }

    #tba-ggg-previous,
    #tba-ggg-next {
        width: 70px !important;
        min-width: 70px !important;
        height: 70px !important;
        min-height: 70px !important;
        font-size: 2.9rem !important;
    }
}

/* ===== Version 1.7.0: premium surround, custom doors, four-leaf clovers, icons, and navigation polish ===== */
.tba-ggg {
    position: relative;
    isolation: isolate;
}

.tba-ggg::before,
.tba-ggg::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.tba-ggg::before {
    z-index: -2;
    background-image: url('../images/defaults/page-surround-desktop.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.tba-ggg::after {
    z-index: -1;
    background: linear-gradient(rgba(244,238,224,.72), rgba(231,220,196,.78));
}

.tba-ggg-room-nav {
    position: sticky !important;
    top: 10px;
    z-index: 45;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    border: 4px solid #6f4522;
    border-radius: 18px;
    background:
        linear-gradient(rgba(92,55,25,.12), rgba(92,55,25,.12)),
        linear-gradient(180deg, #fbf5e7, #e7d2a8);
    box-shadow: 0 12px 24px rgba(44,26,11,.16), inset 0 0 0 2px rgba(241,208,124,.85);
}

.tba-ggg-room-nav .tba-ggg-button,
.tba-ggg-return-home {
    border: 3px solid #77b6db !important;
    background: linear-gradient(180deg, #f7fcff, #cde8f7) !important;
    color: #2a5e84 !important;
    box-shadow: 0 6px 0 rgba(94,60,28,.28), 0 10px 18px rgba(37,22,10,.16);
    text-shadow: none !important;
}

.tba-ggg-room-nav .tba-ggg-button:hover,
.tba-ggg-room-nav .tba-ggg-button:focus-visible,
.tba-ggg-return-home:hover,
.tba-ggg-return-home:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 rgba(94,60,28,.26), 0 14px 22px rgba(37,22,10,.18);
}

.tba-ggg-back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    padding: 12px 16px;
    border: 3px solid #6f4522;
    border-radius: 999px;
    background: linear-gradient(180deg, #f7f0dc, #e3c57d);
    color: #3a2616;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(37,22,10,.24);
}

.tba-ggg-lobby-beam .tba-ggg-beam-emblem {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    filter: drop-shadow(0 2px 4px rgba(31,18,9,.35));
}

.tba-ggg-icon-svg {
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.tba-ggg-icon-clover4 { background-image: url('../images/icons/clover4.svg'); }
.tba-ggg-icon-bell { background-image: url('../images/icons/bell.svg'); }
.tba-ggg-icon-map { background-image: url('../images/icons/map.svg'); }
.tba-ggg-icon-scroll { background-image: url('../images/icons/scroll.svg'); }
.tba-ggg-icon-tools { background-image: url('../images/icons/tools.svg'); }
.tba-ggg-icon-medallion { background-image: url('../images/icons/medallion.svg'); }
.tba-ggg-icon-directory { background-image: url('../images/icons/directory.svg'); }
.tba-ggg-icon-cabinet { background-image: url('../images/icons/cabinet.svg'); }
.tba-ggg-icon-repair { background-image: url('../images/icons/repair.svg'); }

.tba-ggg-relic-icon,
.tba-ggg-detail-icon,
.tba-ggg-present-details > div > span {
    width: 40px;
    height: 40px;
    font-size: 0 !important;
}

.tba-ggg-entrance-door,
.tba-ggg-room-entrance-legends .tba-ggg-entrance-door,
.tba-ggg-room-entrance-present .tba-ggg-entrance-door {
    min-height: 276px;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.tba-ggg-entrance-door-legends-art::before,
.tba-ggg-entrance-door-present-art::before {
    content: "";
    display: block;
    width: min(100%, 156px);
    height: 260px;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 12px 18px rgba(37,22,10,.28));
}

.tba-ggg-entrance-door-legends-art::before {
    background-image: url('../images/skin/legends-door.webp');
}

.tba-ggg-entrance-door-present-art::before {
    background-image: url('../images/skin/present-door.webp');
}

.tba-ggg-old-door-panel,
.tba-ggg-new-door-panel {
    display: none !important;
}

.tba-ggg-room-entrance {
    align-items: center;
}

.tba-ggg-room-entrance:hover .tba-ggg-entrance-door::before,
.tba-ggg-room-entrance:focus-visible .tba-ggg-entrance-door::before {
    transform: translateY(-3px) scale(1.015);
}

.tba-ggg-room-scene-copy {
    backdrop-filter: none !important;
}

.tba-ggg-room-legends .tba-ggg-room-scene-copy {
    background: linear-gradient(rgba(21,12,7,.90), rgba(35,20,12,.84)) !important;
    box-shadow: 0 16px 32px rgba(0,0,0,.25), inset 0 0 0 2px rgba(222,176,89,.42);
}

.tba-ggg-room-present .tba-ggg-room-scene-copy {
    background: linear-gradient(rgba(255,249,237,.92), rgba(245,234,205,.92)) !important;
    box-shadow: 0 16px 32px rgba(0,0,0,.14), inset 0 0 0 2px rgba(192,146,67,.28);
}

.tba-ggg-room-legends .tba-ggg-room-scene-copy {
    color: #f6e8c9 !important;
    text-shadow: none !important;
}

.tba-ggg-room-legends .tba-ggg-room-scene-copy > .tba-ggg-room-kicker,
.tba-ggg-room-legends .tba-ggg-room-scene-copy > h2,
.tba-ggg-room-legends .tba-ggg-room-scene-copy > p,
.tba-ggg-room-legends .tba-ggg-room-search > span {
    color: #f6e8c9 !important;
    text-shadow: none !important;
}

.tba-ggg-room-present .tba-ggg-room-scene-copy {
    color: #302116 !important;
    text-shadow: none !important;
}

.tba-ggg-room-present .tba-ggg-room-scene-copy > .tba-ggg-room-kicker,
.tba-ggg-room-present .tba-ggg-room-scene-copy > h2,
.tba-ggg-room-present .tba-ggg-room-scene-copy > p,
.tba-ggg-room-present .tba-ggg-room-search > span {
    color: #302116 !important;
    text-shadow: none !important;
}

.tba-ggg-room-legends .tba-ggg-room-scene-copy input,
.tba-ggg-room-present .tba-ggg-room-scene-copy input {
    background: #fff9ed !important;
    color: #302116 !important;
}

.tba-ggg-portrait-card .tba-ggg-plaque,
.tba-ggg-portrait-card .tba-ggg-plaque * {
    background: #fbf3df !important;
    color: #2f2116 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.tba-ggg-portrait-card:hover .tba-ggg-plaque,
.tba-ggg-portrait-card:hover .tba-ggg-plaque *,
.tba-ggg-portrait-card:focus-within .tba-ggg-plaque,
.tba-ggg-portrait-card:focus-within .tba-ggg-plaque * {
    color: #2f2116 !important;
    opacity: 1 !important;
}

.tba-ggg-guide-modal-shell {
    background: linear-gradient(135deg, rgba(255,249,236,.98), rgba(241,228,191,.96)) !important;
    color: #342416 !important;
    box-shadow: 0 24px 56px rgba(24,14,7,.35), inset 0 0 0 2px rgba(223,174,88,.58);
}

.tba-ggg-guide-modal-copy,
.tba-ggg-guide-modal-copy * {
    color: #342416 !important;
    text-shadow: none !important;
}

.tba-ggg-guide-questions button {
    border: 2px solid #8a5427 !important;
    background: rgba(255,248,234,.96) !important;
    color: #342416 !important;
}

.tba-ggg-guide-questions button:hover,
.tba-ggg-guide-questions button:focus-visible {
    background: #f3e0a5 !important;
    color: #2c1d11 !important;
}

.tba-ggg-modal-topbar,
.tba-ggg-modal-header {
    background: linear-gradient(180deg, #f8f1de, #eee1bf) !important;
}

.tba-ggg-modal-topbar *,
.tba-ggg-modal-header * {
    color: #322316 !important;
    text-shadow: none !important;
}

.tba-ggg-modal-topbar .tba-ggg-card-number,
.tba-ggg-modal-topbar .tba-ggg-small-meta {
    color: #6b4825 !important;
}

@media (max-width: 782px) {
    .tba-ggg::before {
        background-image: url('../images/defaults/page-surround-mobile.webp');
        background-position: center top;
    }

    .tba-ggg-room-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .tba-ggg-room-nav .tba-ggg-button,
    .tba-ggg-return-home {
        white-space: nowrap;
    }

    .tba-ggg-back-to-top {
        right: 14px;
        bottom: 14px;
        padding: 11px 14px;
    }

    .tba-ggg-entrance-door,
    .tba-ggg-room-entrance-legends .tba-ggg-entrance-door,
    .tba-ggg-room-entrance-present .tba-ggg-entrance-door {
        min-height: 220px;
    }

    .tba-ggg-entrance-door-legends-art::before,
    .tba-ggg-entrance-door-present-art::before {
        width: min(100%, 138px);
        height: 220px;
    }
}


/* ===== Version 1.7.1: portrait plaque readability and layout fix ===== */
.tba-ggg-portrait-card .tba-ggg-plaque {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 126px !important;
    margin: 12px 9px 0 !important;
    padding: 12px 12px 11px !important;
    border-width: 2px !important;
    border-style: solid !important;
    border-radius: 6px 6px 16px 16px !important;
    box-shadow: 0 6px 14px rgba(36,22,11,.18) !important;
    overflow: visible !important;
}

.tba-ggg-portrait-card .tba-ggg-plaque *,
.tba-ggg-portrait-card .tba-ggg-plaque strong,
.tba-ggg-portrait-card .tba-ggg-plaque span {
    background: transparent !important;
    display: block !important;
    opacity: 1 !important;
}

.tba-ggg-portrait-card .tba-ggg-card-number {
    font-size: .76rem !important;
    line-height: 1.15 !important;
    letter-spacing: .04em !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.tba-ggg-portrait-card .tba-ggg-plaque strong {
    font-size: 1.06rem !important;
    line-height: 1.12 !important;
    font-weight: 900 !important;
    margin: 1px 0 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.tba-ggg-portrait-card .tba-ggg-plaque > span:last-child {
    font-size: .9rem !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
}

.tba-ggg-portrait-card[data-wing="legends"] .tba-ggg-plaque,
.tba-ggg-index-group[data-index-group="Legends of Long Ago"] .tba-ggg-portrait-card .tba-ggg-plaque {
    background: linear-gradient(180deg, #5b381d 0%, #362113 100%) !important;
    border-color: #d5a34d !important;
    color: #fff2cb !important;
}

.tba-ggg-portrait-card[data-wing="legends"] .tba-ggg-plaque *,
.tba-ggg-index-group[data-index-group="Legends of Long Ago"] .tba-ggg-portrait-card .tba-ggg-plaque * {
    color: #fff2cb !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.34) !important;
}

.tba-ggg-portrait-card[data-wing="present"] .tba-ggg-plaque,
.tba-ggg-index-group[data-index-group="Present-Day Pals and Adventurers"] .tba-ggg-portrait-card .tba-ggg-plaque,
.tba-ggg-index-view .tba-ggg-portrait-card[data-wing="present"] .tba-ggg-plaque {
    background: linear-gradient(180deg, #fff9ed 0%, #eeddb7 100%) !important;
    border-color: #9f6a2b !important;
    color: #2f2116 !important;
}

.tba-ggg-portrait-card[data-wing="present"] .tba-ggg-plaque *,
.tba-ggg-index-group[data-index-group="Present-Day Pals and Adventurers"] .tba-ggg-portrait-card .tba-ggg-plaque *,
.tba-ggg-index-view .tba-ggg-portrait-card[data-wing="present"] .tba-ggg-plaque * {
    color: #2f2116 !important;
    text-shadow: none !important;
}

.tba-ggg-portrait-card:hover .tba-ggg-plaque,
.tba-ggg-portrait-card:focus-within .tba-ggg-plaque {
    transform: none !important;
    filter: none !important;
}

.tba-ggg-portrait-card:hover .tba-ggg-plaque *,
.tba-ggg-portrait-card:focus-within .tba-ggg-plaque * {
    opacity: 1 !important;
}

@media (max-width: 782px) {
    .tba-ggg-portrait-card .tba-ggg-plaque {
        min-height: 134px !important;
        padding: 12px 10px !important;
    }

    .tba-ggg-portrait-card .tba-ggg-card-number {
        font-size: .74rem !important;
    }

    .tba-ggg-portrait-card .tba-ggg-plaque strong {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }

    .tba-ggg-portrait-card .tba-ggg-plaque > span:last-child {
        font-size: .88rem !important;
    }
}

/* ===== Version 1.7.2: portrait encounter header contrast correction ===== */
#tba-ggg-character-modal .tba-ggg-modal-topbar {
    background: linear-gradient(180deg, #f8f0da 0%, #e7d2a3 100%) !important;
    border-bottom: 4px solid #865524 !important;
    color: #2f2116 !important;
    box-shadow: inset 0 -2px 0 rgba(255,255,255,.55) !important;
}

#tba-ggg-character-modal #tba-ggg-modal-number {
    color: #70461f !important;
    background: transparent !important;
    opacity: 1 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

#tba-ggg-character-modal #tba-ggg-modal-title {
    color: #2b1c12 !important;
    background: transparent !important;
    opacity: 1 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

#tba-ggg-character-modal #tba-ggg-modal-meta {
    color: #56381f !important;
    background: transparent !important;
    opacity: 1 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

#tba-ggg-character-modal .tba-ggg-modal-title-wrap,
#tba-ggg-character-modal .tba-ggg-modal-title-wrap * {
    background-color: transparent !important;
}

#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-icon-button {
    border: 3px solid #6f4522 !important;
    background: linear-gradient(180deg, #fffaf0, #e6c982) !important;
    color: #342116 !important;
    text-shadow: none !important;
    box-shadow: 0 4px 0 rgba(89,52,22,.34), 0 7px 12px rgba(45,26,11,.18) !important;
}

#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-icon-button:hover,
#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-icon-button:focus-visible {
    background: linear-gradient(180deg, #f5df9d, #d8ae54) !important;
    color: #24170e !important;
    border-color: #4f3017 !important;
    outline: 3px solid #67bcea !important;
    outline-offset: 2px !important;
}

#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-close {
    background: linear-gradient(180deg, #bd5b45, #8f3527) !important;
    border-color: #642117 !important;
    color: #fff8ed !important;
}

#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-close:hover,
#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-close:focus-visible {
    background: linear-gradient(180deg, #cf6c53, #9c3b2b) !important;
    color: #ffffff !important;
}

@media (max-width: 782px) {
    #tba-ggg-character-modal .tba-ggg-modal-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        gap: 9px !important;
        padding: 12px 10px !important;
    }

    #tba-ggg-character-modal #tba-ggg-modal-number {
        font-size: .7rem !important;
        line-height: 1.15 !important;
    }

    #tba-ggg-character-modal #tba-ggg-modal-title {
        font-size: clamp(1.25rem, 6vw, 1.85rem) !important;
        line-height: 1.05 !important;
    }

    #tba-ggg-character-modal #tba-ggg-modal-meta {
        font-size: .78rem !important;
        line-height: 1.2 !important;
    }
}


/* ===== Version 1.7.5: streamlined three-tab portrait encounter ===== */
.tba-ggg-tabs {
    justify-content: center;
    gap: 14px;
}

.tba-ggg-tabs button {
    flex: 1 1 0;
    max-width: 360px;
    min-width: 170px;
    text-align: center;
}

@media (max-width: 782px) {
    .tba-ggg-tabs {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tba-ggg-tabs button {
        width: 100%;
        max-width: none;
        min-width: 0;
        font-size: .9rem;
    }
}


/* ===== Version 1.7.6: button text contrast and visibility fix ===== */
.tba-ggg-button,
.tba-ggg-button:visited,
.tba-ggg-filter,
.tba-ggg-filter:visited,
.tba-ggg-tabs button,
.tba-ggg-tabs button:visited {
    text-shadow: none !important;
    opacity: 1 !important;
}

.tba-ggg-button-primary,
.tba-ggg-button-primary:visited,
.tba-ggg-button-primary:hover,
.tba-ggg-button-primary:focus-visible,
#tba-ggg-download-pdf,
#tba-ggg-download-pdf:visited {
    background: linear-gradient(180deg, #8f552c, #653619) !important;
    border-color: #472714 !important;
    color: #fff8ef !important;
}

.tba-ggg-button-ghost,
.tba-ggg-button-ghost:visited,
.tba-ggg-button-ghost:hover,
.tba-ggg-button-ghost:focus-visible,
.tba-ggg-room-nav .tba-ggg-button,
.tba-ggg-room-nav .tba-ggg-button:visited,
.tba-ggg-return-home,
.tba-ggg-return-home:visited,
#tba-ggg-print-pdf,
#tba-ggg-print-pdf:visited {
    color: #174d6e !important;
}

.tba-ggg-button-gold,
.tba-ggg-button-gold:visited,
.tba-ggg-button-gold:hover,
.tba-ggg-button-gold:focus-visible,
#tba-ggg-share,
#tba-ggg-share:visited {
    background: linear-gradient(180deg, #ffe98a, #e8b63e) !important;
    border-color: #795116 !important;
    color: #4a2b08 !important;
}

.tba-ggg-button-realm,
.tba-ggg-button-realm:visited,
.tba-ggg-button-realm:hover,
.tba-ggg-button-realm:focus-visible,
#tba-ggg-realm-link,
#tba-ggg-realm-link:visited {
    background: linear-gradient(180deg, #719a69, #496e45) !important;
    border-color: #29472f !important;
    color: #ffffff !important;
}

.tba-ggg-button-primary span,
.tba-ggg-button-primary strong,
.tba-ggg-button-ghost span,
.tba-ggg-button-ghost strong,
.tba-ggg-button-gold span,
.tba-ggg-button-gold strong,
.tba-ggg-button-realm span,
.tba-ggg-button-realm strong,
.tba-ggg-room-nav .tba-ggg-button span,
.tba-ggg-return-home span {
    color: inherit !important;
}

.tba-ggg-tabs button,
.tba-ggg-tabs button:visited {
    background: linear-gradient(180deg, #fffaf0, #f0dcc0) !important;
    border-color: #8b5d2f !important;
    color: #4a2d18 !important;
}

.tba-ggg-tabs button:hover,
.tba-ggg-tabs button:focus-visible {
    background: linear-gradient(180deg, #fff3cf, #ebcb83) !important;
    border-color: #70461f !important;
    color: #2f1d11 !important;
}

.tba-ggg-tabs button.is-active,
.tba-ggg-tabs button.is-active:hover,
.tba-ggg-tabs button.is-active:focus-visible {
    background: linear-gradient(180deg, #7ead74, #4a7b4b) !important;
    border-color: #305235 !important;
    color: #ffffff !important;
}

#tba-ggg-download-pdf[aria-disabled="true"],
#tba-ggg-download-pdf.is-disabled,
#tba-ggg-realm-link[aria-disabled="true"],
#tba-ggg-realm-link.is-disabled {
    opacity: 1 !important;
}

#tba-ggg-download-pdf[aria-disabled="true"],
#tba-ggg-download-pdf.is-disabled {
    background: linear-gradient(180deg, #f4ead4, #e8dcc2) !important;
    border-color: #8f7756 !important;
    color: #5e4632 !important;
}

#tba-ggg-realm-link[aria-disabled="true"],
#tba-ggg-realm-link.is-disabled {
    background: linear-gradient(180deg, #90ab8e, #688264) !important;
    border-color: #365038 !important;
    color: #f8fff6 !important;
}

.tba-ggg-room-tools .tba-ggg-button,
.tba-ggg-room-tools .tba-ggg-button:visited,
.tba-ggg-room-tools .tba-ggg-button:hover,
.tba-ggg-room-tools .tba-ggg-button:focus-visible {
    font-weight: 900 !important;
    letter-spacing: .01em !important;
}


/* ===== Version 1.7.7: complete hover/focus/active contrast hardening ===== */
/*
 * Explicitly own foreground colors for every interactive gallery state so
 * WordPress/theme button:hover rules cannot substitute low-contrast text.
 */

/* Lobby hall entrance cards */
.tba-ggg-room-entrance-legends,
.tba-ggg-room-entrance-legends:hover,
.tba-ggg-room-entrance-legends:focus-visible,
.tba-ggg-room-entrance-legends:active {
    color: #f8e8c6 !important;
}

.tba-ggg-room-entrance-legends > strong,
.tba-ggg-room-entrance-legends > span,
.tba-ggg-room-entrance-legends:hover > strong,
.tba-ggg-room-entrance-legends:hover > span,
.tba-ggg-room-entrance-legends:focus-visible > strong,
.tba-ggg-room-entrance-legends:focus-visible > span,
.tba-ggg-room-entrance-legends:active > strong,
.tba-ggg-room-entrance-legends:active > span {
    color: #f8e8c6 !important;
    text-shadow: none !important;
}

.tba-ggg-room-entrance-present,
.tba-ggg-room-entrance-present:hover,
.tba-ggg-room-entrance-present:focus-visible,
.tba-ggg-room-entrance-present:active {
    color: #2f2618 !important;
}

.tba-ggg-room-entrance-present > strong,
.tba-ggg-room-entrance-present > span,
.tba-ggg-room-entrance-present:hover > strong,
.tba-ggg-room-entrance-present:hover > span,
.tba-ggg-room-entrance-present:focus-visible > strong,
.tba-ggg-room-entrance-present:focus-visible > span,
.tba-ggg-room-entrance-present:active > strong,
.tba-ggg-room-entrance-present:active > span {
    color: #2f2618 !important;
    text-shadow: none !important;
}

/* Keep the green entrance badge intentionally white. */
.tba-ggg-room-entrance-present .tba-ggg-entrance-sign,
.tba-ggg-room-entrance-present:hover .tba-ggg-entrance-sign,
.tba-ggg-room-entrance-present:focus-visible .tba-ggg-entrance-sign,
.tba-ggg-room-entrance-present:active .tba-ggg-entrance-sign {
    color: #ffffff !important;
}

/* Standard gallery buttons: normal, visited, hover, focus and active. */
.tba-ggg-button-primary,
.tba-ggg-button-primary:visited,
.tba-ggg-button-primary:hover,
.tba-ggg-button-primary:focus-visible,
.tba-ggg-button-primary:active {
    color: #fffaf0 !important;
}

.tba-ggg-button-ghost,
.tba-ggg-button-ghost:visited,
.tba-ggg-button-ghost:hover,
.tba-ggg-button-ghost:focus-visible,
.tba-ggg-button-ghost:active,
.tba-ggg-room-nav .tba-ggg-button,
.tba-ggg-room-nav .tba-ggg-button:visited,
.tba-ggg-room-nav .tba-ggg-button:hover,
.tba-ggg-room-nav .tba-ggg-button:focus-visible,
.tba-ggg-room-nav .tba-ggg-button:active,
.tba-ggg-return-home,
.tba-ggg-return-home:visited,
.tba-ggg-return-home:hover,
.tba-ggg-return-home:focus-visible,
.tba-ggg-return-home:active {
    color: #174d6e !important;
}

.tba-ggg-button-gold,
.tba-ggg-button-gold:visited,
.tba-ggg-button-gold:hover,
.tba-ggg-button-gold:focus-visible,
.tba-ggg-button-gold:active {
    color: #402606 !important;
}

.tba-ggg-button-realm,
.tba-ggg-button-realm:visited,
.tba-ggg-button-realm:hover,
.tba-ggg-button-realm:focus-visible,
.tba-ggg-button-realm:active {
    color: #ffffff !important;
}

/* Force nested button text/icons to inherit the deliberate state color. */
.tba-ggg-button > span,
.tba-ggg-button > strong,
.tba-ggg-return-home > span,
.tba-ggg-room-nav .tba-ggg-button > span,
.tba-ggg-room-nav .tba-ggg-button > strong {
    color: inherit !important;
}

/* Collection filters */
.tba-ggg-filter:not(.is-active),
.tba-ggg-filter:not(.is-active):hover,
.tba-ggg-filter:not(.is-active):focus-visible,
.tba-ggg-filter:not(.is-active):active {
    color: #352416 !important;
}

.tba-ggg-filter.is-active,
.tba-ggg-filter.is-active:hover,
.tba-ggg-filter.is-active:focus-visible,
.tba-ggg-filter.is-active:active {
    color: #3d2406 !important;
}

/* Portrait encounter tabs */
.tba-ggg-tabs button,
.tba-ggg-tabs button:hover,
.tba-ggg-tabs button:focus-visible,
.tba-ggg-tabs button:active {
    color: #3c2718 !important;
}

.tba-ggg-tabs button.is-active,
.tba-ggg-tabs button.is-active:hover,
.tba-ggg-tabs button.is-active:focus-visible,
.tba-ggg-tabs button.is-active:active {
    color: #ffffff !important;
}

/* Portrait and Ghost modal icon controls */
.tba-ggg-icon-button,
.tba-ggg-icon-button:hover,
.tba-ggg-icon-button:focus-visible,
.tba-ggg-icon-button:active {
    color: #382315 !important;
}

.tba-ggg-close,
.tba-ggg-close:hover,
.tba-ggg-close:focus-visible,
.tba-ggg-close:active,
.tba-ggg-guide-close,
.tba-ggg-guide-close:hover,
.tba-ggg-guide-close:focus-visible,
.tba-ggg-guide-close:active {
    background: linear-gradient(180deg, #bd5b45, #8f3527) !important;
    border-color: #642117 !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

/* Ghost Grizzwald conversation choices */
.tba-ggg-dialogue-choices button,
.tba-ggg-dialogue-choices button:hover,
.tba-ggg-dialogue-choices button:focus-visible,
.tba-ggg-dialogue-choices button:active,
.tba-ggg-guide-questions button,
.tba-ggg-guide-questions button:hover,
.tba-ggg-guide-questions button:focus-visible,
.tba-ggg-guide-questions button:active {
    color: #ffffff !important;
}

/* Guide question buttons that use the light parchment treatment remain dark. */
.tba-ggg-guide-questions button {
    background: rgba(255,248,234,.98) !important;
    color: #342416 !important;
}
.tba-ggg-guide-questions button:hover,
.tba-ggg-guide-questions button:focus-visible,
.tba-ggg-guide-questions button:active {
    background: #f3e0a5 !important;
    color: #2c1d11 !important;
}

/* Back-to-top control */
.tba-ggg-back-to-top,
.tba-ggg-back-to-top:hover,
.tba-ggg-back-to-top:focus-visible,
.tba-ggg-back-to-top:active {
    background: linear-gradient(180deg, #f7f0dc, #e3c57d) !important;
    border-color: #6f4522 !important;
    color: #342116 !important;
    text-shadow: none !important;
}

/* Profile action links/buttons, including disabled destinations. */
#tba-ggg-download-pdf,
#tba-ggg-download-pdf:visited,
#tba-ggg-download-pdf:hover,
#tba-ggg-download-pdf:focus-visible,
#tba-ggg-download-pdf:active {
    color: #fffaf0 !important;
}

#tba-ggg-print-pdf,
#tba-ggg-print-pdf:visited,
#tba-ggg-print-pdf:hover,
#tba-ggg-print-pdf:focus-visible,
#tba-ggg-print-pdf:active {
    color: #174d6e !important;
}

#tba-ggg-share,
#tba-ggg-share:hover,
#tba-ggg-share:focus-visible,
#tba-ggg-share:active {
    color: #402606 !important;
}

#tba-ggg-realm-link,
#tba-ggg-realm-link:visited,
#tba-ggg-realm-link:hover,
#tba-ggg-realm-link:focus-visible,
#tba-ggg-realm-link:active {
    color: #ffffff !important;
}

#tba-ggg-realm-link[aria-disabled="true"],
#tba-ggg-realm-link[aria-disabled="true"]:hover,
#tba-ggg-realm-link[aria-disabled="true"]:focus-visible,
#tba-ggg-realm-link[aria-disabled="true"]:active,
#tba-ggg-realm-link.is-disabled,
#tba-ggg-realm-link.is-disabled:hover,
#tba-ggg-realm-link.is-disabled:focus-visible,
#tba-ggg-realm-link.is-disabled:active {
    color: #f8fff6 !important;
}

/* Visible keyboard focus without sacrificing contrast. */
.tba-ggg-room-entrance:focus-visible,
.tba-ggg-button:focus-visible,
.tba-ggg-filter:focus-visible,
.tba-ggg-tabs button:focus-visible,
.tba-ggg-icon-button:focus-visible,
.tba-ggg-dialogue-choices button:focus-visible,
.tba-ggg-guide-questions button:focus-visible,
.tba-ggg-back-to-top:focus-visible {
    outline: 3px solid #62b9e8 !important;
    outline-offset: 3px !important;
}

/* ===== Version 1.8.0: Ghost Grizzwald's Daily Hall Hunt ===== */
.tba-ggg-hall-hunt {
    position: relative;
    z-index: 2;
    margin: 22px 0 26px;
    padding: 18px;
    border: 4px solid #8a5a29;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,250,238,.98), rgba(239,222,181,.98));
    box-shadow: 0 12px 28px rgba(44,27,13,.18), inset 0 0 0 2px rgba(243,207,122,.72);
}

.tba-ggg-hall-hunt-legends {
    border-color: #9f6d2f;
    background: linear-gradient(180deg, #2f1d12, #1e130d);
    box-shadow: 0 12px 28px rgba(0,0,0,.28), inset 0 0 0 2px rgba(206,153,66,.44);
}

.tba-ggg-hunt-header {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.tba-ggg-hunt-clover {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 6px rgba(42,26,13,.22));
}

.tba-ggg-hunt-title-wrap h3 {
    margin: 2px 0 4px;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.05;
    color: #3c2717;
}

.tba-ggg-hunt-title-wrap p {
    margin: 0;
    color: #5a4633;
    line-height: 1.45;
}

.tba-ggg-hall-hunt-legends .tba-ggg-hunt-title-wrap h3,
.tba-ggg-hall-hunt-legends .tba-ggg-hunt-title-wrap p,
.tba-ggg-hall-hunt-legends .tba-ggg-small-label,
.tba-ggg-hall-hunt-legends .tba-ggg-hunt-progress strong {
    color: #fff0c8 !important;
}

.tba-ggg-hunt-progress {
    display: grid;
    gap: 7px;
    justify-items: end;
    text-align: right;
}

.tba-ggg-hunt-progress strong {
    color: #4a311d;
    font-size: .92rem;
}

.tba-ggg-hunt-reset {
    min-height: 36px;
    padding: 7px 13px;
    border: 2px solid #7a5328;
    border-radius: 999px;
    background: #fff8e9;
    color: #4a2d17;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.tba-ggg-hunt-reset:hover,
.tba-ggg-hunt-reset:focus-visible {
    background: #f3d991;
    color: #2e1c10;
    outline: 3px solid #61b9e7;
    outline-offset: 2px;
}

.tba-ggg-hall-hunt-legends .tba-ggg-hunt-reset {
    border-color: #c08d42;
    background: #4a2c18;
    color: #fff1cf;
}

.tba-ggg-hall-hunt-legends .tba-ggg-hunt-reset:hover,
.tba-ggg-hall-hunt-legends .tba-ggg-hunt-reset:focus-visible {
    background: #6b4021;
    color: #ffffff;
}

.tba-ggg-hunt-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tba-ggg-hunt-clue {
    position: relative;
    min-height: 142px;
    padding: 15px 14px 42px;
    overflow: hidden;
    border: 2px solid #a46f32;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf0, #f2e2be);
    color: #3c291a;
    box-shadow: 0 5px 12px rgba(45,28,13,.12);
}

.tba-ggg-hall-hunt-legends .tba-ggg-hunt-clue {
    border-color: #a97631;
    background: linear-gradient(180deg, #4b2d19, #332014);
    color: #fff0cb;
}

.tba-ggg-hunt-number {
    display: inline-block;
    margin-bottom: 7px;
    color: #6a4a29;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tba-ggg-hall-hunt-legends .tba-ggg-hunt-number {
    color: #e8bd72;
}

.tba-ggg-hunt-clue strong,
.tba-ggg-hunt-clue small {
    display: block;
    color: inherit !important;
}

.tba-ggg-hunt-clue strong {
    font-size: .96rem;
    line-height: 1.28;
}

.tba-ggg-hunt-clue small {
    margin-top: 8px;
    opacity: .82;
    line-height: 1.3;
}

.tba-ggg-hunt-found {
    position: absolute;
    right: 10px;
    bottom: 9px;
    padding: 5px 9px;
    border: 2px solid #2f6036;
    border-radius: 999px;
    background: #6e9d61;
    color: #fff !important;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .06em;
    opacity: 0;
    transform: rotate(-4deg) scale(.8);
    transition: opacity .2s ease, transform .2s ease;
}

.tba-ggg-hunt-clue.is-found {
    border-color: #4f7f48;
    box-shadow: 0 0 0 3px rgba(105,153,91,.18), 0 7px 16px rgba(45,28,13,.14);
}

.tba-ggg-hunt-clue.is-found .tba-ggg-hunt-found {
    opacity: 1;
    transform: rotate(-4deg) scale(1);
}

.tba-ggg-hall-hunt.is-complete {
    box-shadow: 0 0 0 4px rgba(99,151,82,.22), 0 16px 34px rgba(44,27,13,.22), inset 0 0 0 2px rgba(243,207,122,.72);
}

@media (max-width: 980px) {
    .tba-ggg-hunt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tba-ggg-hunt-header {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .tba-ggg-hunt-clover {
        width: 40px;
        height: 40px;
    }

    .tba-ggg-hunt-progress {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        justify-items: stretch;
        align-items: center;
        text-align: left;
    }

    .tba-ggg-hunt-grid {
        grid-template-columns: 1fr;
    }

    .tba-ggg-hunt-clue {
        min-height: 0;
    }
}


/* ===== Version 1.8.1: design-system contrast lock for buttons and Hall Hunt ===== */
.tba-ggg-button-primary,
.tba-ggg-button-primary:visited,
.tba-ggg-button-primary:hover,
.tba-ggg-button-primary:focus-visible,
.tba-ggg-button-primary:active,
#tba-ggg-download-pdf,
#tba-ggg-download-pdf:visited,
#tba-ggg-download-pdf:hover,
#tba-ggg-download-pdf:focus-visible,
#tba-ggg-download-pdf:active {
    background: linear-gradient(180deg, #7b431f 0%, #5a2f15 100%) !important;
    border-color: #3f1f0d !important;
    color: #fff8ef !important;
}

.tba-ggg-button-primary:hover,
.tba-ggg-button-primary:focus-visible,
.tba-ggg-button-primary:active,
#tba-ggg-download-pdf:hover,
#tba-ggg-download-pdf:focus-visible,
#tba-ggg-download-pdf:active {
    background: linear-gradient(180deg, #8a4d24 0%, #643419 100%) !important;
    color: #ffffff !important;
}

.tba-ggg-button-realm,
.tba-ggg-button-realm:visited,
.tba-ggg-button-realm:hover,
.tba-ggg-button-realm:focus-visible,
.tba-ggg-button-realm:active,
#tba-ggg-realm-link,
#tba-ggg-realm-link:visited,
#tba-ggg-realm-link:hover,
#tba-ggg-realm-link:focus-visible,
#tba-ggg-realm-link:active {
    background: linear-gradient(180deg, #4f7748 0%, #355730 100%) !important;
    border-color: #234125 !important;
    color: #ffffff !important;
}

.tba-ggg-button-realm:hover,
.tba-ggg-button-realm:focus-visible,
.tba-ggg-button-realm:active,
#tba-ggg-realm-link:hover,
#tba-ggg-realm-link:focus-visible,
#tba-ggg-realm-link:active {
    background: linear-gradient(180deg, #5e8956 0%, #3d6538 100%) !important;
}

#tba-ggg-realm-link[aria-disabled="true"],
#tba-ggg-realm-link.is-disabled,
#tba-ggg-realm-link[aria-disabled="true"]:hover,
#tba-ggg-realm-link.is-disabled:hover,
#tba-ggg-realm-link[aria-disabled="true"]:focus-visible,
#tba-ggg-realm-link.is-disabled:focus-visible,
#tba-ggg-realm-link[aria-disabled="true"]:active,
#tba-ggg-realm-link.is-disabled:active {
    background: linear-gradient(180deg, #6c8669 0%, #4d664b 100%) !important;
    border-color: #334735 !important;
    color: #f4fff2 !important;
}

.tba-ggg-tabs button.is-active,
.tba-ggg-tabs button.is-active:hover,
.tba-ggg-tabs button.is-active:focus-visible,
.tba-ggg-tabs button.is-active:active {
    background: linear-gradient(180deg, #4e7948 0%, #355932 100%) !important;
    border-color: #274228 !important;
    color: #ffffff !important;
}

.tba-ggg-close,
.tba-ggg-close:hover,
.tba-ggg-close:focus-visible,
.tba-ggg-close:active,
.tba-ggg-guide-close,
.tba-ggg-guide-close:hover,
.tba-ggg-guide-close:focus-visible,
.tba-ggg-guide-close:active {
    background: linear-gradient(180deg, #a94736 0%, #832b20 100%) !important;
    border-color: #5f1b12 !important;
    color: #ffffff !important;
}

.tba-ggg-hunt-found {
    border-color: #234d2a !important;
    background: #47723f !important;
    color: #ffffff !important;
}

.tba-ggg-hunt-reset,
.tba-ggg-hunt-reset:visited,
.tba-ggg-hunt-reset:hover,
.tba-ggg-hunt-reset:focus-visible,
.tba-ggg-hunt-reset:active {
    color: #332012 !important;
}

.tba-ggg-hunt-reset {
    background: linear-gradient(180deg, #fff6df 0%, #ecd39d 100%) !important;
    border-color: #6f4a22 !important;
}

.tba-ggg-hunt-reset:hover,
.tba-ggg-hunt-reset:focus-visible,
.tba-ggg-hunt-reset:active {
    background: linear-gradient(180deg, #ffe9b0 0%, #e0b75c 100%) !important;
    border-color: #5a3919 !important;
    color: #2d1b10 !important;
}

.tba-ggg-hall-hunt-legends .tba-ggg-hunt-reset,
.tba-ggg-hall-hunt-legends .tba-ggg-hunt-reset:visited {
    background: linear-gradient(180deg, #5e381f 0%, #432615 100%) !important;
    border-color: #bf8b3c !important;
    color: #fff1cf !important;
}

.tba-ggg-hall-hunt-legends .tba-ggg-hunt-reset:hover,
.tba-ggg-hall-hunt-legends .tba-ggg-hunt-reset:focus-visible,
.tba-ggg-hall-hunt-legends .tba-ggg-hunt-reset:active {
    background: linear-gradient(180deg, #734424 0%, #4f2d18 100%) !important;
    border-color: #d8a14d !important;
    color: #ffffff !important;
}

.tba-ggg-hunt-clue.is-found {
    border-color: #3f6d3f !important;
    box-shadow: 0 0 0 3px rgba(71,114,63,.18), 0 7px 16px rgba(45,28,13,.14) !important;
}


/* ===== Version 1.8.2: room-scene descendant contrast conflict fix ===== */
/*
 * v1.8.1 still allowed an older room-scene universal color rule to win
 * against button classes. These room-specific rules deliberately outrank
 * theme and legacy selectors in every interaction state.
 */
.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-button-primary,
.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-button-primary:visited,
.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-button-primary:hover,
.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-button-primary:focus-visible,
.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-button-primary:active {
    background: linear-gradient(180deg, #7b431f 0%, #542a12 100%) !important;
    border-color: #3c1d0b !important;
    color: #fff9ef !important;
    text-shadow: none !important;
}

.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-button-primary:hover,
.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-button-primary:focus-visible,
.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-button-primary:active {
    background: linear-gradient(180deg, #8b4a21 0%, #603015 100%) !important;
    color: #ffffff !important;
}

.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-button-gold,
.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-button-gold:visited,
.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-button-gold:hover,
.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-button-gold:focus-visible,
.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-button-gold:active {
    background: linear-gradient(180deg, #ffe587 0%, #dfa927 100%) !important;
    border-color: #76500f !important;
    color: #3b2406 !important;
    text-shadow: none !important;
}

.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-button-gold:hover,
.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-button-gold:focus-visible,
.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-button-gold:active {
    background: linear-gradient(180deg, #ffed9e 0%, #e6b638 100%) !important;
    color: #2f1b03 !important;
}

.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-button-primary,
.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-button-primary:visited,
.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-button-primary:hover,
.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-button-primary:focus-visible,
.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-button-primary:active {
    color: #fff9ef !important;
    text-shadow: none !important;
}

.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-button-gold,
.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-button-gold:visited,
.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-button-gold:hover,
.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-button-gold:focus-visible,
.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-button-gold:active {
    color: #3b2406 !important;
    text-shadow: none !important;
}

/* Keep the room search label and field intentionally readable without recoloring controls. */
.tba-ggg .tba-ggg-room-legends .tba-ggg-room-scene-copy .tba-ggg-room-search input,
.tba-ggg .tba-ggg-room-present .tba-ggg-room-scene-copy .tba-ggg-room-search input {
    background: #fff9ed !important;
    color: #302116 !important;
    -webkit-text-fill-color: #302116 !important;
}

/* ===== Version 1.8.3: premium centered navigation icon graphics ===== */
/* Replace text-symbol navigation with purpose-designed centered icon art.
   This keeps the existing button sizes while making the icons larger,
   more legible on mobile, and visually consistent with the museum UI. */
#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-icon-button,
#tba-ggg-guide-modal .tba-ggg-guide-close {
    position: relative !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    text-shadow: none !important;
}

#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-icon-button::before,
#tba-ggg-guide-modal .tba-ggg-guide-close::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Previous / left arrow */
#tba-ggg-previous::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M19 6 9 16l10 10' fill='none' stroke='%23402a18' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11 16h12' fill='none' stroke='%23402a18' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Next / right arrow */
#tba-ggg-next::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m13 6 10 10-10 10' fill='none' stroke='%23402a18' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9 16h12' fill='none' stroke='%23402a18' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Favorite star, outline by default */
#tba-ggg-favorite::before {
    width: 26px;
    height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m16 5.2 3.18 6.45 7.12 1.03-5.15 5.01 1.22 7.09L16 21.46 9.63 24.8l1.22-7.09-5.15-5.01 7.12-1.03L16 5.2Z' fill='none' stroke='%23402a18' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#tba-ggg-favorite[aria-pressed='true']::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m16 5.2 3.18 6.45 7.12 1.03-5.15 5.01 1.22 7.09L16 21.46 9.63 24.8l1.22-7.09-5.15-5.01 7.12-1.03L16 5.2Z' fill='%23d3a11d' stroke='%23402a18' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Close X */
#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-close::before,
#tba-ggg-guide-modal .tba-ggg-guide-close::before {
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M10 10 22 22M22 10 10 22' fill='none' stroke='%23fffaf0' stroke-width='3.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Slightly boost visual weight of the static cream buttons so the icons feel centered and premium. */
#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-icon-button:not(.tba-ggg-close) {
    justify-items: center !important;
    align-items: center !important;
}

/* Mobile: keep the same button footprint, but scale the internal icon art up for visibility. */
@media (max-width: 782px) {
    #tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-icon-button::before,
    #tba-ggg-guide-modal .tba-ggg-guide-close::before {
        width: 32px;
        height: 32px;
    }

    #tba-ggg-favorite::before {
        width: 28px;
        height: 28px;
    }

    #tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-close::before,
    #tba-ggg-guide-modal .tba-ggg-guide-close::before {
        width: 24px;
        height: 24px;
    }
}


/* ===== Version 1.8.4: hard-center premium navigation icons ===== */
#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-icon-button,
#tba-ggg-guide-modal .tba-ggg-guide-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 0 !important;
    text-indent: -9999px !important;
    white-space: nowrap !important;
}

#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-icon-button::before,
#tba-ggg-guide-modal .tba-ggg-guide-close::before {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    display: block !important;
}

#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-icon-button:not(.tba-ggg-close),
#tba-ggg-guide-modal .tba-ggg-guide-close {
    line-height: 0 !important;
}

/* Slightly tighten the visual sizes so the centered icon sits comfortably within the existing circles. */
#tba-ggg-previous::before,
#tba-ggg-next::before {
    width: 28px !important;
    height: 28px !important;
}

#tba-ggg-favorite::before {
    width: 24px !important;
    height: 24px !important;
}

#tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-close::before,
#tba-ggg-guide-modal .tba-ggg-guide-close::before {
    width: 20px !important;
    height: 20px !important;
}

@media (max-width: 782px) {
    #tba-ggg-previous::before,
    #tba-ggg-next::before {
        width: 30px !important;
        height: 30px !important;
    }

    #tba-ggg-favorite::before {
        width: 25px !important;
        height: 25px !important;
    }

    #tba-ggg-character-modal .tba-ggg-modal-topbar .tba-ggg-close::before,
    #tba-ggg-guide-modal .tba-ggg-guide-close::before {
        width: 22px !important;
        height: 22px !important;
    }
}


/* ===== Version 1.8.5: centered zoom and mobile pinch-to-zoom ===== */
.tba-ggg-portrait-viewport {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.tba-ggg-portrait-viewport.is-zoomed {
    cursor: grab;
}

.tba-ggg-portrait-viewport img {
    transform-origin: center center;
}


/* ===== Version 1.8.6: true mouse/touch portrait pan and zoom ===== */
.tba-ggg-portrait-viewport {
    touch-action: none !important;
    cursor: default;
}

.tba-ggg-portrait-viewport.is-zoomed {
    cursor: grab !important;
}

.tba-ggg-portrait-viewport.is-dragging,
.tba-ggg-portrait-viewport.is-dragging * {
    cursor: grabbing !important;
}

.tba-ggg-portrait-viewport img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}


/* ===== Version 1.8.8: deterministic center-anchored desktop zoom ===== */
.tba-ggg-portrait-viewport img {
    box-sizing: border-box !important;
    transition: none !important;
}


/* ===== Version 1.8.9: mobile portrait-card proportion and spacing refinement ===== */
@media (max-width: 782px) {
    .tba-ggg-room,
    .tba-ggg-index-shell {
        padding-top: calc(14px + env(safe-area-inset-top, 0px));
    }

    .tba-ggg-room-grid,
    .tba-ggg-index-grid {
        gap: 10px !important;
        align-items: start;
    }

    .tba-ggg-room-grid .tba-ggg-portrait-card,
    .tba-ggg-index-grid .tba-ggg-portrait-card {
        align-self: start;
    }

    .tba-ggg-room-grid .tba-ggg-frame-stage,
    .tba-ggg-index-grid .tba-ggg-frame-stage,
    .tba-ggg-room-grid .tba-ggg-portrait-button .tba-ggg-frame-stage,
    .tba-ggg-index-grid .tba-ggg-portrait-button .tba-ggg-frame-stage {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 10px 8px 8px !important;
        overflow: visible !important;
    }

    .tba-ggg-room-grid .tba-ggg-frame-stage img,
    .tba-ggg-index-grid .tba-ggg-frame-stage img,
    .tba-ggg-room-grid .tba-ggg-portrait-button .tba-ggg-frame-stage img,
    .tba-ggg-index-grid .tba-ggg-portrait-button .tba-ggg-frame-stage img {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        padding: 0 !important;
    }

    .tba-ggg-room-grid .tba-ggg-portrait-card .tba-ggg-plaque,
    .tba-ggg-index-grid .tba-ggg-portrait-card .tba-ggg-plaque {
        min-height: 104px !important;
        margin: 8px 5px 0 !important;
        padding: 10px 8px 9px !important;
        gap: 3px !important;
    }

    .tba-ggg-room-grid .tba-ggg-portrait-card .tba-ggg-card-number,
    .tba-ggg-index-grid .tba-ggg-portrait-card .tba-ggg-card-number {
        font-size: .68rem !important;
        line-height: 1.1 !important;
    }

    .tba-ggg-room-grid .tba-ggg-portrait-card .tba-ggg-plaque strong,
    .tba-ggg-index-grid .tba-ggg-portrait-card .tba-ggg-plaque strong {
        font-size: .92rem !important;
        line-height: 1.06 !important;
    }

    .tba-ggg-room-grid .tba-ggg-portrait-card .tba-ggg-plaque > span:last-child,
    .tba-ggg-index-grid .tba-ggg-portrait-card .tba-ggg-plaque > span:last-child {
        font-size: .84rem !important;
        line-height: 1.08 !important;
    }
}

@media (max-width: 520px) {
    .tba-ggg-room-grid,
    .tba-ggg-index-grid {
        gap: 8px !important;
    }

    .tba-ggg-room-grid .tba-ggg-frame-stage,
    .tba-ggg-index-grid .tba-ggg-frame-stage {
        padding: 8px 6px 6px !important;
    }

    .tba-ggg-room-grid .tba-ggg-portrait-card .tba-ggg-plaque,
    .tba-ggg-index-grid .tba-ggg-portrait-card .tba-ggg-plaque {
        min-height: 96px !important;
        margin: 7px 4px 0 !important;
        padding: 9px 7px 8px !important;
    }

    .tba-ggg-room-grid .tba-ggg-portrait-card .tba-ggg-plaque strong,
    .tba-ggg-index-grid .tba-ggg-portrait-card .tba-ggg-plaque strong {
        font-size: .88rem !important;
    }

    .tba-ggg-room-grid .tba-ggg-portrait-card .tba-ggg-plaque > span:last-child,
    .tba-ggg-index-grid .tba-ggg-portrait-card .tba-ggg-plaque > span:last-child {
        font-size: .8rem !important;
    }
}

/* ===== Version 1.8.10: desktop portrait proportion refinement and index search-box spacing ===== */
@media (min-width: 783px) {
    /* Add breathing room under the Find a Character field inside the collection header card. */
    .tba-ggg-collection-heading .tba-ggg-search-wrap {
        align-self: end;
        padding-bottom: 14px;
    }

    /* Desktop portrait grids: remove unnecessary forced portrait-stage height so cards feel denser and more natural. */
    .tba-ggg-room-grid .tba-ggg-portrait-card,
    .tba-ggg-index-grid .tba-ggg-portrait-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .tba-ggg-room-grid .tba-ggg-frame-stage,
    .tba-ggg-index-grid .tba-ggg-frame-stage,
    .tba-ggg-room-grid .tba-ggg-portrait-button .tba-ggg-frame-stage,
    .tba-ggg-index-grid .tba-ggg-portrait-button .tba-ggg-frame-stage {
        min-height: 0 !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px !important;
    }

    .tba-ggg-room-grid .tba-ggg-frame-stage img,
    .tba-ggg-index-grid .tba-ggg-frame-stage img,
    .tba-ggg-room-grid .tba-ggg-portrait-button .tba-ggg-frame-stage img,
    .tba-ggg-index-grid .tba-ggg-portrait-button .tba-ggg-frame-stage img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        padding: 0 !important;
    }

    .tba-ggg-room-grid .tba-ggg-portrait-card .tba-ggg-plaque,
    .tba-ggg-index-grid .tba-ggg-portrait-card .tba-ggg-plaque {
        min-height: 110px !important;
        margin: 12px 10px 0 !important;
        padding: 11px 12px 10px !important;
    }

    .tba-ggg-room-grid .tba-ggg-portrait-card .tba-ggg-card-number,
    .tba-ggg-index-grid .tba-ggg-portrait-card .tba-ggg-card-number {
        font-size: .74rem !important;
    }

    .tba-ggg-room-grid .tba-ggg-portrait-card .tba-ggg-plaque strong,
    .tba-ggg-index-grid .tba-ggg-portrait-card .tba-ggg-plaque strong {
        font-size: 1rem !important;
        line-height: 1.12 !important;
    }

    .tba-ggg-room-grid .tba-ggg-portrait-card .tba-ggg-plaque > span:last-child,
    .tba-ggg-index-grid .tba-ggg-portrait-card .tba-ggg-plaque > span:last-child {
        font-size: .88rem !important;
        line-height: 1.12 !important;
    }
}


/* ===== Version 1.8.11: Complete Collection search-field spacing correction ===== */
/* The Complete Collection markup uses .tba-ggg-index-header, not the older
   .tba-ggg-collection-heading wrapper. Keep the input comfortably above the
   bottom edge of the header panel without changing its visual styling. */
@media (min-width: 783px) {
    .tba-ggg-index-header > .tba-ggg-search-wrap {
        align-self: end !important;
        box-sizing: border-box !important;
        padding-bottom: 22px !important;
        padding-right: 18px !important;
    }
}

@media (min-width: 783px) and (max-width: 1050px) {
    .tba-ggg-index-header > .tba-ggg-search-wrap {
        width: 100% !important;
        padding: 0 18px 20px !important;
    }
}


/* ===== Version 1.8.12: mobile Complete Collection search-field breathing room ===== */
@media (max-width: 782px) {
    .tba-ggg-index-header > .tba-ggg-search-wrap {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 16px 22px !important;
        margin: 0 !important;
    }
}

@media (max-width: 520px) {
    .tba-ggg-index-header > .tba-ggg-search-wrap {
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-bottom: 20px !important;
    }
}
