/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
    margin: 0px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(61, 143, 255, 0.35) 0%, rgba(61, 143, 255, 0.00) 55%),
        radial-gradient(circle at 80% 20%, rgba(255, 170, 55, 0.25) 0%, rgba(255, 170, 55, 0.00) 55%),
        radial-gradient(circle at 60% 85%, rgba(80, 220, 160, 0.22) 0%, rgba(80, 220, 160, 0.00) 60%),
        linear-gradient(180deg, #0f1a2c 0%, #101b30 45%, #0b1424 100%);
}

noscript {
    display: block;
    text-align: center;
    padding-top: 100px;
    font-size: 20px;
}

.v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

#v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 15%, rgba(61, 143, 255, 0.30) 0%, rgba(61, 143, 255, 0.00) 55%),
        radial-gradient(circle at 80% 20%, rgba(255, 170, 55, 0.22) 0%, rgba(255, 170, 55, 0.00) 55%),
        radial-gradient(circle at 60% 85%, rgba(80, 220, 160, 0.20) 0%, rgba(80, 220, 160, 0.00) 60%),
        linear-gradient(180deg, #0f1a2c 0%, #101b30 45%, #0b1424 100%);
}

#v3d-container canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    touch-action: none;
}

.fullscreen-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: 100% 100%;
    display: none;
    z-index: 3;
}

.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}

/* removes tap blinking on ios devices */
* { -webkit-tap-highlight-color:rgba(0,0,0,0); }


.v3d-simple-preloader-logo {
    background-image: url('media/logo180.png');
}

.edu-ui {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    z-index: 2;
}

.edu-panel-fab {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    pointer-events: auto;
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.90);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.edu-ui:not(.is-collapsed) .edu-panel-fab {
    display: none;
}

.edu-ui-right {
    width: var(--edu-panel-width, 220px);
    transition: transform 180ms ease, opacity 180ms ease;
    position: relative;
}

.edu-ui.is-collapsed .edu-ui-right {
    transform: translateX(calc(100% + 12px));
    opacity: 0.0;
    pointer-events: none;
}

.edu-ui-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.edu-ui-icon-btn {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
}

.edu-ui-size {
    display: flex;
    gap: 6px;
}

.edu-ui-chip {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
}

.edu-ui-chip.is-active {
    background: #4ea9ff;
    color: #ffffff;
    border-color: rgba(0, 0, 0, 0.0);
}

.edu-ui-resizer {
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 14px;
    cursor: ew-resize;
    pointer-events: auto;
}

@media (hover: none) {
    .edu-ui-resizer {
        display: none;
    }
}

.edu-ui,
.edu-recenter-fab {
    visibility: hidden;
    opacity: 0;
}

body.edu-ready .edu-ui,
body.edu-ready .edu-recenter-fab {
    visibility: visible;
    opacity: 1;
}

.edu-ui[data-mode="test"] .edu-ui-view-svg {
    pointer-events: auto;
    cursor: pointer;
}

.edu-recenter-fab {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: auto;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.edu-recenter-fab:active {
    transform: translateX(-50%) scale(0.98);
}

.edu-ui-right {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(6px);
}

.edu-ui-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.edu-ui-mode-btn {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.edu-ui-mode-btn.is-active {
    background: #4ea9ff;
    color: #ffffff;
    border-color: rgba(0, 0, 0, 0.0);
}

.edu-ui-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.edu-ui-action-btn {
    flex: 1 1 62px;
    min-width: 62px;
}

.edu-ui-config {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.edu-ui-config-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 6px 8px;
}

.edu-ui-config-label {
    font-size: 12px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.70);
    user-select: none;
}

.edu-ui-select {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.90);
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 800;
}

.edu-ui-view-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.edu-ui-badge {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    color: rgba(0, 0, 0, 0.75);
    background: rgba(0, 0, 0, 0.06);
}

.edu-ui-badge.is-ok {
    color: #0b4f1f;
    background: rgba(51, 199, 89, 0.30);
}

.edu-ui-badge.is-bad {
    color: #7a0f0a;
    background: rgba(255, 59, 48, 0.25);
}

.edu-guide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.edu-guide.is-open {
    display: flex;
}

.edu-guide-card {
    width: min(420px, calc(100vw - 40px));
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 18px;
    padding: 14px 14px 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

.edu-guide-title {
    font-size: 18px;
    font-weight: 1000;
    color: rgba(0, 0, 0, 0.85);
    margin-bottom: 8px;
}

.edu-guide-text {
    font-size: 14px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.72);
    margin-bottom: 8px;
}

.edu-guide-btn {
    width: 100%;
    appearance: none;
    border: 0;
    background: #4ea9ff;
    color: #ffffff;
    border-radius: 14px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 1000;
    cursor: pointer;
}

.edu-ui-action-btn {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.edu-ui-action-btn:disabled {
    cursor: default;
    opacity: 0.55;
}

.edu-ui-views {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    overflow: auto;
    overscroll-behavior: contain;
}

.edu-ui-view {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 8px;
    align-items: stretch;
}

.edu-ui-view-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 12px;
    background: rgba(78, 169, 255, 0.15);
    border: 1px solid rgba(78, 169, 255, 0.25);
    font-size: 20px;
    font-weight: 900;
    color: #1a5ea6;
    user-select: none;
    padding: 6px 4px;
}

.edu-ui-view-label > span {
    line-height: 1;
}

.edu-ui-view-label > span:first-child {
    font-size: 22px;
}

.edu-ui-badge {
    min-width: 0;
    width: 34px;
    text-align: center;
    padding: 3px 0;
}

.edu-ui-view-svg {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: default;
    pointer-events: none;
}

.edu-ui-toast {
    min-height: 18px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.75);
    background: rgba(0, 0, 0, 0.04);
}

.edu-cell {
    shape-rendering: crispEdges;
}

.edu-cell.grid-line {
    fill: none;
    stroke: rgba(0, 0, 0, 0.18);
    stroke-width: 1;
}

.edu-cell.hit {
    fill: rgba(78, 169, 255, 0.06);
}

.edu-cell.hit:hover {
    fill: rgba(78, 169, 255, 0.14);
}

.edu-cell.filled-current {
    fill: rgba(78, 169, 255, 0.75);
}

.edu-cell.filled-target {
    fill: rgba(255, 89, 94, 0.75);
}

.edu-cell.filled-both {
    fill: rgba(80, 200, 120, 0.80);
}
