@import url('./map-info.css?v=1.0.0&r=3138dcc77398');
@import url('./viewer/map-controls.css?v=1.0.0&r=3138dcc77398');

.cfmv {
    margin: 20px 0
}

.cfmv [hidden] {
    display: none !important
}

.cfmvImage {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #17313a;
    aspect-ratio: 1
}

.cfmvPanel[data-kind="map"] .cfmvImage {
    background: #345964
}

.cfmvOpen {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: zoom-in;
    background: none
}

.cfmvOpen img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.cfmv3d {
    position: absolute;
    right: 10px;
    top: 10px;
    background: #121b1deb;
    border: 1px solid #74898488;
    color: #fff;
    border-radius: 5px;
    padding: 6px 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.cfmvNoImage {
    display: grid;
    place-items: center;
    height: 100%;
    color: #a8bab9
}

.cfmvMetrics {
    margin: 0 0 8px
}

.cfmvMetrics dd {
    margin: 4px 0 0;
    font-weight: 700
}

.cfmv select.cfmvVariant {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 8px 0 0;
    padding: 7px 28px 7px 9px;
    font: inherit;
    text-overflow: ellipsis
}

.cfmvScreen {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    background: #345964;
    color: #eeeee3;
    overflow: hidden
}

.cfmvSurface {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: inherit
}

.cfmvScreen::backdrop {
    background: #345964
}

.cfmvScreen:fullscreen {
    width: 100%;
    height: 100%
}

.cfmvStage {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0
}

.cfmvStage canvas,
.cfmvStage iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    position: absolute;
    inset: 0
}

.cfmvStage canvas {
    touch-action: none;
    cursor: grab
}

.cfmvStage img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.cfmvStage p {
    padding: 24px;
    text-align: center
}

.cfmvScreen .map-tools button {
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px
}

.cfmvScreen .map-tools {
    z-index: 1
}

.cfmvScreen .map-tools svg {
    display: block
}

.cfmvPanel[data-kind="prefab"] .cfmvOpen {
    cursor: pointer
}

.cfmvPanel[data-kind="prefab"] .cfPreviewHighlights {
    display: none
}

.cfmvPanel[data-kind="prefab"] .cfMapInfo__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px
}

.cfmvPanel[data-kind="prefab"] .cfBiomeItem__name {
    overflow-wrap: anywhere
}

.cfmvPanel[data-kind="prefab"] .cfBiomeItem__row {
    gap: 12px
}

@font-face {
    font-family: CFMVCondensed;
    src: url('./viewer/fonts/RobotoCondensed.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap
}

.cfmvScreen.cfmvGame {
    background: #151715
}

.cfmvLaunch {
    position: absolute;
    inset: 0;
    z-index: 1;
    color: #e7e1d4;
    background: radial-gradient(ellipse at 70% 32%, #68745488, transparent 56%), linear-gradient(135deg, #202b25, #384134 48%, #182222);
    font-family: CFMVCondensed, "Arial Narrow", Arial, sans-serif
}

.cfmvLaunch:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #10110ffb, #11151025 58%, #10111085);
    pointer-events: none
}

.cfmvLaunchHeader {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 30px;
    background: #10110ee0;
    min-height: 78px
}

.cfmvLaunchHeader img {
    width: 44px;
    height: 44px;
    object-fit: cover
}

.cfmvLaunchHeader strong {
    display: block;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 750
}

.cfmvLaunchHeader span {
    display: block;
    margin-top: 3px;
    color: #898a7f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px
}

.cfmvLaunchQuit {
    margin-left: auto;
    background: #ffffff0c;
    border: 0;
    color: #d0cec3;
    padding: 10px 18px;
    font: 750 14px CFMVCondensed, Arial, sans-serif;
    cursor: pointer
}

.cfmvLaunchProgress {
    position: absolute;
    right: 6vw;
    bottom: 42px;
    font-size: 34px;
    font-weight: 800
}

.cfmvLaunchProgress:after {
    content: "";
    display: block;
    height: 3px;
    background: #bc4b35;
    margin-top: 10px;
    width: 240px;
    max-width: 60vw
}

.cfmvError {
    max-width: 30rem;
    margin: auto;
    padding: 2rem;
    text-align: center;
    color: #dce2e4;
}

.cfmvError strong {
    font-size: 1.2rem;
}

.cfmvError p {
    line-height: 1.5;
    color: #a8bab9;
}

.cfmvError button {
    margin: .4rem;
    padding: .65rem 1rem;
    border: 1px solid #74898488;
    border-radius: 5px;
    color: inherit;
    background: #263238;
    cursor: pointer;
}

.cfmvError button:focus-visible {
    outline: 2px solid #a8bab9;
    outline-offset: 3px;
}
