body {
    background-color: #121212;
    color: #f0e4d7;
}

.hero-header {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #f0e4d7;
}

.header-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: brightness(0.45);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 900px;
    padding: clamp(1rem, 3vw, 2rem);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1rem;
}

.hero-logo {
    display: block;
    width: clamp(180px, 24vw, 300px);
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin: 0 auto;
}

.account-brand {
    display: block;
    width: fit-content;
    margin: 0 auto 1.5rem;
}

.account-logo {
    display: block;
    width: min(240px, 65vw);
    height: auto;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

footer.footer-social {
    background: #111;
    color: #ddd;
}

footer.footer-social .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

footer.footer-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

footer.footer-social .social-icon img {
    width: 22px;
    height: 22px;
    filter: invert(1) brightness(2);
}

footer.footer-social .social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(44, 38, 33, 0.6), rgba(82, 53, 29, 0.55));
    background-size: cover;
}

.world-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.world-summary h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 1rem;
}

.world-summary .lead {
    color: #d8d0bc;
    margin-bottom: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: #ccc;
}

.flip-card {
    perspective: 1200px;
    cursor: pointer;
    border-radius: 3rem;
    overflow: hidden;
    -webkit-transform-style: preserve-3d;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    min-height: 420px;
    text-align: center;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    border-radius: 3rem;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-front {
    background: #1f1f1f;
    color: #f0e4d7;
    transform: rotateY(0deg);
    z-index: 2;
}

.flip-card-back {
    background: linear-gradient(180deg, rgba(21,21,21,1) 0%, rgba(44,38,33,0.95) 100%);
    color: #f0e4d7;
    transform: rotateY(180deg);
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
}

.flip-card-back h4 {
    margin-bottom: 1rem;
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.lore-button {
    color: #121212;
    background: #f0e4d7;
    border: 1px solid #f0e4d7;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.map-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.map-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    border: 1px solid #667575;
    border-radius: 6px;
    overflow: hidden;
    background: #8b9e9c;
}

.world-map {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 0;
}

.map-region-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.map-region-controls button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: linear-gradient(145deg, #263b37, #192725);
    border: 1px solid #52675b;
    border-radius: 8px;
    color: #eee3cc;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 #ffffff08, 0 4px 12px #00000026;
    transition: background .18s, border-color .18s, transform .18s;
    cursor: pointer;
}

.map-region-controls button[hidden] { display: none; }


.zone-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #9b885d;
    border-radius: 50%;
    color: #ddc58e;
    font: .75rem Georgia, serif;
}

.zone-arrow { margin-left: 10px; color: #a8bfb1; }

.map-region-controls #map-reset { background: transparent; box-shadow: none; border-style: dashed; color: #c1b79f; }

.map-region-controls button:hover:not(:disabled),
.map-region-controls button[aria-pressed="true"] {
    background: linear-gradient(145deg, #4c4932, #2d382c);
    border-color: #e4c578;
}

.map-region-controls button:active:not(:disabled) { transform: translateY(1px); }

.map-region-controls button:focus-visible {
    outline: 2px solid #e4c578;
    outline-offset: 3px;
}

.map-region-controls button:disabled {
    opacity: .45;
    cursor: default;
}

.map-selection {
    margin: 12px 0 0;
    color: #d8d0bc;
    font-size: .9rem;
}

.footer-studio-logo {
    display: block;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.lore-button:hover {
    background: #fff;
    color: #111;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .flip-card-inner {
        min-height: 360px;
    }
}

.map-view-controls { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.map-view-controls[hidden] { display: none; }
