/* global.css */
body {
    background-color: #FAEA8E;
    color: #FF5FD0;
    font-family: 'Fredoka', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    overflow-x: hidden;
}

h1 {
    text-transform: lowercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
}

main {
    z-index: 2;
}

.row-1 { color: #FF5FD0; }
.row-2 { color: #C670AD; }
.row-3 { color: #BF4F9E; }

.nav-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.nav-logo {
    height: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(0);
}

.nav-menu.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
}

.nav-item {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.nav-menu img {
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 5px;
}

.nav-title {
    position: absolute;
    font-family: 'Fredoka', sans-serif;
    color: #ffffff;
    text-transform: lowercase;
    pointer-events: none;
    z-index: 15;
    transition: transform 0.3s ease;
}

.nav-item:hover img,
.nav-item:hover .nav-title {
    transform: scale(1.1);
}

.footer-nav a {
    color: #FF5FD0;
    text-decoration: none;
    font-weight: 300;
    text-transform: lowercase;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #C670AD;
}

.coming-soon {
    color: #ffffff;
    text-transform: lowercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 5;
    margin: 0;
}

.top-right-circle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: red;
    border-radius: 50%;
    z-index: 10;
}

/* ── Configurable Box ── */
.config-box {
    position: fixed;
    width: 131px;
    height: 60px;
    background-color: #1d1b1b;
    border-radius: 0px;
    z-index: 11;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.config-box .box-text {
    font-family: 'Fredoka', sans-serif;
    color: #ffffff;
    text-align: center;
    text-transform: lowercase;
    letter-spacing: 1px;
    word-break: break-word;
    text-decoration: none;
    pointer-events: auto;
    transition: opacity 0.2s;
}

.config-box .box-text:hover {
    opacity: 0.7;
}

/* ── Box Control Panel ── */
.box-panel {
    position: fixed;
    z-index: 1000;
    display: none !important;
    background: rgba(30, 30, 40, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    font-family: 'Fredoka', sans-serif;
    color: #ddd;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    user-select: none;
}

.box-panel .panel-handle {
    cursor: grab;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #FF5FD0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
}

.box-panel .panel-handle:active {
    cursor: grabbing;
}

.ctrl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ctrl-row label {
    font-size: 12px;
    flex-shrink: 0;
    width: 70px;
    color: #bbb;
}

.ctrl-row input[type="range"] {
    flex: 1;
    margin: 0 8px;
    accent-color: #FF5FD0;
}

.ctrl-row .ctrl-val {
    font-size: 11px;
    color: #aaa;
    width: 42px;
    text-align: right;
    font-family: monospace;
}

.ctrl-row input[type="color"] {
    width: 32px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: none;
    padding: 0;
}

.ctrl-row .hex-input {
    width: 70px;
    font-size: 11px;
    font-family: 'Fredoka', monospace;
    color: #ccc;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 3px 6px;
    margin: 0 8px;
    outline: none;
    transition: border-color 0.2s;
}

.ctrl-row .hex-input:focus {
    border-color: #FF5FD0;
    color: #fff;
}

/* Panel toggle button */
.panel-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
    display: none !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30, 30, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FF5FD0;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.panel-toggle:hover {
    transform: scale(1.1);
    background: rgba(50, 50, 60, 0.95);
}
