:root{
    --bg: #05060d;
    --sphere: #00ffe1;
    --glow: #00c8ff;
    --accent: #ffe07a;
    --text: #e6edf3;
    --disabled: #444;
    --centerGlow: #ffd45f;
}

.pillar-grid {
    position: absolute;
    top: 10%;
    left: 5%;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Share Tech Mono', monospace;
    background: var(--bg);
    color: var(--text);
}

canvas {
    display: block;
}

/* MODIFIED: Repositioned description to top-left corner */
#drawerDescriptionContainer {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 30%;
    max-width: 400px;
    text-align: left;
    pointer-events: none;
    z-index: 10;
}

#drawerDescription {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: 16px;
    line-height: 1.4;
    color: var(--accent);
    text-shadow: 0 0 8px var(--bg);
    opacity: 0; 
}


/* ───────────── HUD ───────────── */
#hud {
    position: fixed;
    left: 1%;
    right: 1%;
    bottom: 1%;
    padding: 14px 20px;
    background: rgba(20, 22, 32, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 11;
}

.label {
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#gridCoords {
    font-size: 24px;
    line-height: 1;
}

#essenceWord {
    font-size: 24px;
    text-transform: uppercase;
    color: var(--centerGlow);
    white-space: nowrap;
}

.controls {
    display: flex;
    gap: 10px;
}

.nav {
    display: grid;
    grid-template-columns: repeat(3, 32px);
    grid-template-rows: repeat(3, 32px);
    gap: 3px;
}

.tools {
    display: grid;
    grid-template-columns: 32px;
    grid-template-rows: 99px;
    gap: 3px;
}

button {
    width: 100%;
    height: 100%;
    font-family: monospace;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
}

button:hover {
    background: rgba(255, 255, 255, 0.2);
}

button.disabled {
    color: var(--disabled);
    cursor: default;
    background: transparent;
}

.selector-container {
    display: flex;
    gap: 5px;
}

select {
    font-family: 'Share Tech Mono', monospace;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-size: 18px;
    padding: 5px 8px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
}

select:focus {
    outline: none;
    border-color: var(--centerGlow);
}


#selector-ui {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  z-index: 10;
}

#selector1, #selector2 {
  margin-left: 5px;
  font-size: 16px;
}















