/**
 * clayable v3 — studio shell
 * canvas · vignette · left tools · right palette · bottom dock
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --void: #000000;
    --font: "JetBrains Mono", monospace;
    --size: 16px;
    --track: -0.01em;
    --muted: rgba(255, 255, 255, 0.5);
    --full: rgba(255, 255, 255, 1);
    --dock-bg: rgba(12, 12, 12, 0.55);
    --dock-blur: blur(36px);
    --dock-border: 0.5px solid rgba(255, 255, 255, 0.1);
    --ui-z: 100;
    --chrome-z: 120;
}

html {
    background: #000000;
    height: 100%;
    transition: background-color 0.8s ease;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #000000;
    color: var(--full);
    font-family: "JetBrains Mono", monospace;
    font-size: var(--size);
    font-weight: 400;
    letter-spacing: var(--track);
    text-transform: lowercase;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.8s ease, color 0.8s ease;
}

body[data-theme="light"] {
    --muted: rgba(255, 255, 255, 0.5);
    --full: rgba(255, 255, 255, 1);
    --dock-bg: rgba(12, 12, 12, 0.55);
    --dock-border: 0.5px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .studio-canvas-host,
body[data-theme="light"] #canvas-container {
    background: #000000;
}

body[data-theme="light"] .studio-vignette {
    background: radial-gradient(
        ellipse 78% 72% at 50% 48%,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.18) 48%,
        rgba(0, 0, 0, 0.72) 100%
    );
}

body[data-theme="light"] .studio-toolbar {
    display: flex !important;
    visibility: visible !important;
    width: auto !important;
    background: rgba(40, 40, 40, 0.95) !important;
    padding: 12px 8px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    min-width: 120px !important;
    pointer-events: auto !important;
}

body[data-theme="light"] .studio-tools {
    pointer-events: auto !important;
}

body[data-theme="light"] .studio-tool {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body[data-theme="light"] .studio-tool::before {
    background: #ffffff;
}

body[data-theme="light"] .studio-swatch {
    border-color: rgba(0, 0, 0, 0.2);
}

body[data-theme="light"] .studio-dock-cap {
    color: rgba(255, 255, 255, 0.7);
}

body[data-theme="light"] .studio-dock .studio-control-group:hover .studio-dock-cap {
    color: rgba(255, 255, 255, 1);
}

body[data-theme="light"] .studio-toast {
    background: rgba(255, 255, 255, 0.88);
    color: rgba(0, 0, 0, 0.75);
    border: var(--dock-border);
}

body[data-theme="light"] .chrome-cluster .chrome-anchor--help,
body[data-theme="light"] .chrome-cluster .chrome-anchor--community,
body[data-theme="light"] .chrome-cluster .chrome-anchor--theme {
    color: #000000;
    opacity: 0.4;
}

body[data-theme="light"] .chrome-cluster .chrome-anchor--help:hover,
body[data-theme="light"] .chrome-cluster .chrome-anchor--community:hover,
body[data-theme="light"] .chrome-cluster .chrome-anchor--theme:hover {
    opacity: 1;
}

body[data-theme="light"] .studio-signature {
    color: #000000;
    opacity: 0.4;
}

body[data-theme="light"] .about-glass {
    background: var(--dock-bg);
    border: var(--dock-border);
}

body[data-theme="light"] .about-glass__text {
    color: rgba(0, 0, 0, 0.72);
}

body[data-theme="light"] .about-glass__dismiss {
    color: rgba(0, 0, 0, 0.45);
}

body[data-theme="light"] .studio-dock .studio-btn {
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.7;
}

body[data-theme="light"] .studio-dock .studio-btn:hover {
    opacity: 1;
}

body[data-theme="light"] .studio-dock .studio-btn:disabled {
    opacity: 0.3;
}

body[data-theme="light"] .info-overlay--dim {
    background: rgba(240, 240, 240, 0.94);
}

body[data-theme="light"] .info-heading {
    color: rgba(0, 0, 0, 0.45);
}

body[data-theme="light"] .help-list {
    color: rgba(0, 0, 0, 0.72);
}

body[data-theme="light"] .info-dismiss {
    color: rgba(0, 0, 0, 0.55);
}

.studio-canvas-host,
#canvas-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #000000;
}

canvas {
    display: block;
    cursor: grab;
}

canvas:active {
    cursor: grabbing;
}

/* vignette: above canvas, below UI — no pointer capture */
.studio-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        ellipse 78% 72% at 50% 48%,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.18) 48%,
        rgba(0, 0, 0, 0.72) 100%
    );
}

/* top menubar — file, scene, history, etc */
.studio-menubar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    z-index: 100;
    background: rgba(12, 12, 12, 0.8);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 24px;
    font-size: 12px;
    backdrop-filter: blur(12px);
}

.studio-menubar-item {
    color: var(--full);
    opacity: 0.7;
    cursor: pointer;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: opacity 0.15s ease;
    position: relative;
}

.studio-menubar-item:hover {
    opacity: 1;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.studio-menubar-stats {
    margin-left: auto;
    display: flex;
    gap: 16px;
    opacity: 0.6;
    font-size: 11px;
}

body[data-theme="light"] .studio-menubar {
    background: rgba(12, 12, 12, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .studio-menubar-item {
    color: rgba(255, 255, 255, 0.7);
}

body[data-theme="light"] .studio-menubar-item:hover {
    color: rgba(255, 255, 255, 1);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

body[data-theme="light"] .studio-menubar-stats {
    color: rgba(255, 255, 255, 0.6);
}
}

.studio-menubar-dropdown {
    position: fixed;
    top: 28px;
    background: rgba(12, 12, 12, 0.95);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    min-width: 160px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.studio-menubar-dropdown-item {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--full);
    opacity: 0.7;
    cursor: pointer;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
    transition: opacity 0.15s ease, background 0.15s ease;
}

.studio-menubar-dropdown-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

.studio-menubar-dropdown-item:last-child {
    border-bottom: none;
}

body[data-theme="light"] .studio-menubar-dropdown {
    background: rgba(12, 12, 12, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] .studio-menubar-dropdown-item {
    color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body[data-theme="light"] .studio-menubar-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 1);
}

/* corner chrome — clear of side toolbars */
.chrome-anchor {
    position: fixed;
    z-index: var(--chrome-z);
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font);
    font-size: var(--size);
    font-weight: 400;
    letter-spacing: var(--track);
    text-transform: lowercase;
    color: var(--full);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.chrome-anchor:hover {
    opacity: 1;
}

.chrome-cluster {
    position: fixed;
    bottom: 30px;
    left: 120px;
    right: auto;
    z-index: var(--chrome-z);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.chrome-cluster .chrome-anchor--help {
    position: fixed !important;
    top: 32px !important;
    right: 20px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: calc(var(--chrome-z) + 10) !important;
    padding: 12px 16px;
    margin: 0 !important;
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.chrome-cluster .chrome-anchor--help:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* community / discord link in menubar */
.menubar-community {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: var(--track);
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menubar-community:hover {
    color: rgba(255, 255, 255, 1);
}

.menubar-community__label {
    display: inline;
}

.menubar-community__icon {
    display: inline-block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

body[data-theme="light"] .menubar-community {
    color: rgba(255, 255, 255, 0.6);
}

body[data-theme="light"] .menubar-community:hover {
    color: rgba(255, 255, 255, 1);
}

/* feed link in menubar */
.menubar-feed {
    display: inline;
    color: rgba(255, 255, 255, 0.7);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: var(--track);
    text-transform: lowercase;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.menubar-feed:hover {
    color: rgba(255, 255, 255, 1);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

body[data-theme="light"] .menubar-feed {
    color: rgba(255, 255, 255, 0.7);
}

body[data-theme="light"] .menubar-feed:hover {
    color: rgba(255, 255, 255, 1);
}

.chrome-anchor--theme {
    position: fixed !important;
    top: 32px !important;
    right: 60px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: calc(var(--chrome-z) + 10) !important;
    padding: 12px 10px;
    margin: 0 !important;
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.4;
    transition: opacity 0.25s ease;
}

.chrome-anchor--theme:hover {
    opacity: 1;
}

/* corner signature — below dock (z-index); wrap receives hover, text has no padding */
.studio-signature-wrap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 55;
    max-width: min(220px, calc(100vw - 120px));
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    pointer-events: auto;
}

.studio-signature {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: var(--track);
    text-transform: lowercase;
    text-align: right;
    color: #ffffff;
    opacity: 0.3;
    white-space: normal;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.studio-signature-wrap:hover .studio-signature {
    opacity: 0.8;
}

/* ——— left: sculpt modes ——— */
.studio-toolbar {
    position: fixed;
    top: 28px;
    bottom: 0;
    left: 20px;
    z-index: var(--ui-z);
    display: flex;
    align-items: center;
    padding: 72px 10px 72px 18px;
    pointer-events: none;
}

.studio-toolbar .studio-tools {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.studio-tool {
    position: relative;
    margin: 0;
    padding: 4px 0 4px 12px;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: var(--size);
    font-weight: 400;
    letter-spacing: var(--track);
    text-transform: lowercase;
    text-align: left;
    color: var(--full);
    opacity: 0.6;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
    transition: opacity 200ms ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.studio-tool::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0;
    transition: opacity 200ms ease;
}

.studio-tool:hover {
    opacity: 1;
}

.studio-tool.is-active {
    opacity: 1;
}

.studio-tool.is-active::before {
    opacity: 1;
}

/* ——— right: material swatches ——— */
.studio-palette {
    position: fixed;
    top: 28px;
    bottom: 0;
    right: 20px;
    z-index: var(--ui-z);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 72px 18px 72px 10px;
    pointer-events: none;
}

.studio-palette .studio-swatches {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.studio-swatch {
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 50%;
    border: 0.5px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    opacity: 0.85;
}

.studio-swatch:hover {
    opacity: 1;
    transform: scale(1.06);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.studio-swatch.is-active {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}

body[data-theme="light"] .studio-swatch {
    border-color: rgba(255, 255, 255, 0.22);
}

body[data-theme="light"] .studio-swatch:hover {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

body[data-theme="light"] .studio-swatch.is-active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}

/* ——— bottom: settings dock only ——— */
.controls.studio-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--ui-z);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: min(calc(100vw - 100px), 720px);
    padding: 7px 20px 8px;
    background: var(--dock-bg);
    -webkit-backdrop-filter: var(--dock-blur);
    backdrop-filter: var(--dock-blur);
    border: var(--dock-border);
    border-radius: 100px;
    font-family: var(--font);
    font-size: var(--size);
    font-weight: 400;
    letter-spacing: var(--track);
    color: var(--full);
    white-space: nowrap;
}

.studio-dock__segment {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 0;
}

.slider-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.studio-dock-cap {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: var(--track);
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.2;
    margin-bottom: 2px;
}

.studio-dock-cap--save {
    margin-bottom: 0;
    min-width: 68px;
    text-align: center;
    opacity: 0.75;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.studio-dock-cap--save.is-pending {
    opacity: 0.95;
}

.studio-dock-cap--save.is-ok {
    color: rgba(180, 255, 200, 0.72);
    opacity: 0.95;
}

.studio-dock-cap--save.is-error {
    color: rgba(255, 140, 140, 0.9);
    opacity: 1;
}

body[data-theme="light"] .studio-dock-cap--save.is-ok {
    color: rgba(22, 120, 52, 0.72);
}

body[data-theme="light"] .studio-dock-cap--save.is-error {
    color: rgba(164, 38, 38, 0.82);
}

.studio-control-group {
    min-width: 0;
}

.studio-label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: var(--track);
    text-transform: lowercase;
    color: var(--muted);
    line-height: 1;
    white-space: nowrap;
}

.studio-dock .studio-control-group:hover .studio-dock-cap {
    color: rgba(255, 255, 255, 0.72);
}

/* 1. THE BASE INPUT */
.studio-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    max-width: 100px;
    height: 14px;
    background: transparent;
    cursor: pointer;
    border: none;
    display: block;
    outline: none;
}

/* 2. THE TRACK (Must be separate rules) */
.studio-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1px;
    border: none;
}

body[data-theme="light"] .studio-slider::-webkit-slider-runnable-track {
    background: rgba(0, 0, 0, 0.1);
}

.studio-slider::-moz-range-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1px;
    border: none;
}

body[data-theme="light"] .studio-slider::-moz-range-track {
    background: rgba(0, 0, 0, 0.1);
}

/* 3. THE THUMB (The Dot) */
.studio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #ffffff;
    margin-top: -5px;
    border: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

body[data-theme="light"] .studio-slider::-webkit-slider-thumb {
    background: #4a4a4a;
}

.studio-slider::-moz-range-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

body[data-theme="light"] .studio-slider::-moz-range-thumb {
    background: #4a4a4a;
}

/* 4. HOVER FEEDBACK */
.studio-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

.studio-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
}

body[data-theme="light"] .studio-slider:hover::-webkit-slider-thumb {
    background: #3a3a3a;
}

body[data-theme="light"] .studio-slider:hover::-moz-range-thumb {
    background: #3a3a3a;
}

.studio-dock .studio-btn {
    margin: 0;
    padding: 0 10px;
    border: none;
    background: none;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: var(--track);
    text-transform: lowercase;
    color: var(--full);
    opacity: 0.6;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s ease;
    flex: 0 0 auto;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.studio-dock .studio-btn:hover {
    opacity: 1;
}

.studio-dock .studio-btn:disabled {
    opacity: 0.3;
    cursor: wait;
}

/* transient status line */
.studio-toast {
    position: fixed;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    z-index: 150;
    max-width: min(90vw, 420px);
    padding: 8px 14px;
    font-family: var(--font);
    font-size: var(--size);
    letter-spacing: var(--track);
    text-transform: lowercase;
    text-align: center;
    color: var(--full);
    background: rgba(15, 15, 15, 0.65);
    -webkit-backdrop-filter: var(--dock-blur);
    backdrop-filter: var(--dock-blur);
    border: var(--dock-border);
    border-radius: 100px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.studio-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* help / about overlay */
.info-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    animation: fadeIn 0.18s ease-out;
}

.info-overlay--dim {
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.info-stack {
    max-width: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-heading {
    margin: 0;
    font-size: var(--size);
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: lowercase;
    color: var(--muted);
}

.help-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: var(--size);
    line-height: 1.5;
    letter-spacing: var(--track);
    color: var(--full);
    opacity: 0.9;
}

/* about — minimal glass panel */
.about-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.18s ease-out;
}

.about-glass {
    max-width: 320px;
    width: 100%;
    padding: 20px 22px 18px;
    background: var(--dock-bg);
    -webkit-backdrop-filter: var(--dock-blur);
    backdrop-filter: var(--dock-blur);
    border: var(--dock-border);
    border-radius: 14px;
    text-align: center;
}

.about-glass__text {
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: var(--track);
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.92);
}

.about-glass__dismiss {
    margin-top: 14px;
    padding: 0;
    border: none;
    background: none;
    font-family: "JetBrains Mono", monospace;
    font-size: 15px;
    letter-spacing: var(--track);
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.about-glass__dismiss:hover {
    opacity: 1;
}

.info-dismiss {
    align-self: flex-start;
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font);
    font-size: var(--size);
    letter-spacing: var(--track);
    text-transform: lowercase;
    color: var(--full);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.info-dismiss:hover {
    opacity: 1;
}

/* export modal (non-sticker paths) */
.export-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.18s ease-out;
}

.export-modal {
    width: 100%;
    max-width: 380px;
    background: var(--dock-bg);
    -webkit-backdrop-filter: var(--dock-blur);
    backdrop-filter: var(--dock-blur);
    border: var(--dock-border);
    border-radius: 14px;
    overflow: hidden;
    font-family: var(--font);
    font-size: var(--size);
    letter-spacing: var(--track);
}

.export-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: var(--dock-border);
}

.export-modal-header h2 {
    margin: 0;
    font-size: var(--size);
    font-weight: 500;
    text-transform: lowercase;
    color: var(--full);
}

.modal-close-btn {
    padding: 2px 6px;
    border: none;
    background: none;
    font-family: var(--font);
    font-size: 14px;
    color: var(--full);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.modal-close-btn:hover {
    opacity: 1;
}

.export-modal-body {
    padding: 14px;
    text-align: center;
}

.export-preview {
    max-width: 100%;
    max-height: 240px;
    border-radius: 6px;
    margin-bottom: 8px;
    object-fit: contain;
}

.export-modal-body p {
    margin: 6px 0 0 0;
    font-size: var(--size);
    text-transform: lowercase;
    color: var(--muted);
}

.export-modal-footer {
    padding: 12px 14px 14px;
    border-top: var(--dock-border);
}

.btn-action,
.btn-download-now {
    width: 100%;
    padding: 8px;
    border: none;
    background: none;
    font-family: var(--font);
    font-size: var(--size);
    text-transform: lowercase;
    color: var(--full);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn-download-now:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.mobile-tab-bar {
    display: none;
}

@media (max-width: 640px) {
    .mobile-tab-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(12, 12, 12, 0.85);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 200;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    body[data-theme="light"] .mobile-tab-bar {
        background: rgba(245, 245, 245, 0.85);
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    .mobile-tab-bar .tab-btn {
        background: none;
        border: none;
        color: rgba(255,255,255,0.5);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-family: var(--font);
        font-size: 10px;
        cursor: pointer;
        transition: color 0.2s;
    }
    
    body[data-theme="light"] .mobile-tab-bar .tab-btn {
        color: rgba(0,0,0,0.5);
    }

    .mobile-tab-bar .tab-btn.active {
        color: #e2725b;
    }
    
    .mobile-tab-bar .tab-icon {
        font-size: 20px;
    }

    /* Common Bottom Sheet Styles */
    .studio-toolbar, .studio-palette, .controls.studio-dock, .studio-menubar {
        position: fixed;
        bottom: -500px; /* Hidden initially */
        left: 0;
        right: 0;
        transform: none !important; /* Reset desktop centering */
        width: 100vw;
        max-width: 100vw;
        height: auto;
        max-height: 70vh;
        border-radius: 24px 24px 0 0;
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 24px 16px 84px; /* Pad bottom for tab bar */
        transition: bottom 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 150;
        display: flex;
        justify-content: center;
        align-content: flex-start;
        flex-wrap: wrap !important;
        overflow-y: auto;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
        border: 1px solid rgba(255,255,255,0.1);
        border-bottom: none;
        top: auto !important; /* Override desktop */
        flex-direction: row !important;
        gap: 16px;
        pointer-events: auto;
    }
    
    body[data-theme="light"] .studio-toolbar,
    body[data-theme="light"] .studio-palette,
    body[data-theme="light"] .controls.studio-dock,
    body[data-theme="light"] .studio-menubar {
        background: rgba(245, 245, 245, 0.95);
        box-shadow: 0 -8px 32px rgba(0,0,0,0.1);
        border-color: rgba(0,0,0,0.1);
    }

    .studio-toolbar.sheet-active, 
    .studio-palette.sheet-active, 
    .controls.studio-dock.sheet-active,
    .studio-menubar.sheet-active {
        bottom: 0 !important;
    }

    /* Reset some overrides specifically for these bottom sheets */
    .controls.studio-dock {
        row-gap: 16px;
        column-gap: 20px;
    }

    .studio-slider {
        width: 120px;
        max-width: 120px;
    }

    /* Format menubar items vertically for bottom sheet */
    .studio-menubar {
        flex-direction: column !important;
        align-items: center;
        padding: 0 !important;
        gap: 12px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        pointer-events: auto;
    }
    .studio-menubar::-webkit-scrollbar {
        display: none;
    }
    .studio-menubar-item,
    .menubar-community,
    .menubar-feed {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 16px;
        padding: 12px 24px;
        background: rgba(255,255,255,0.05);
        border-radius: 100px;
        width: 80%;
        text-align: center;
        text-decoration: none;
        color: var(--full);
    }
    
    body[data-theme="light"] .studio-menubar-item,
    body[data-theme="light"] .menubar-community,
    body[data-theme="light"] .menubar-feed {
        background: rgba(0,0,0,0.05);
    }
    
    .studio-menubar-stats {
        display: none !important;
    }

    .studio-toolbar .studio-tools {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        width: 100%;
    }

    .studio-tool {
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 100px;
        transition: all 0.25s ease;
        font-size: 12px;
    }
    
    .studio-tool::before {
        display: none; /* Hide the dot on mobile pills */
    }
    
    .studio-tool.is-active {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    body[data-theme="light"] .studio-tool {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.08);
        color: rgba(0, 0, 0, 0.6) !important;
    }

    body[data-theme="light"] .studio-tool.is-active {
        background: rgba(0, 0, 0, 0.08);
        color: #000 !important;
        border-color: rgba(0, 0, 0, 0.2);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .studio-palette .studio-swatches {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
        width: 100%;
    }

    .studio-swatch {
        width: 32px;
        height: 32px;
    }

    .chrome-cluster {
        bottom: 80px;
        left: 10px;
        right: auto;
        gap: 4px;
    }

    .chrome-community__label {
        display: none;
    }

    .chrome-community__icon {
        display: block;
    }

    .chrome-cluster .chrome-anchor--community {
        opacity: 0.3;
        padding: 14px 8px;
        margin: -14px -4px -14px 0;
    }

    .chrome-cluster .chrome-anchor--community:hover {
        opacity: 1;
    }

    body[data-theme="light"] .chrome-cluster .chrome-anchor--community {
        opacity: 0.3;
    }

    .chrome-cluster #updash-link {
        display: none;
    }

    .studio-signature-wrap {
        display: none;
    }
}

/* updash page */
body.updash-page {
    overflow: auto;
    min-height: 100vh;
    background: #000000;
}

body[data-theme="light"].updash-page {
    background: #f5f5f5;
}

/* updash dashboard */
.updash-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100vw - 42px));
    margin: 24px auto 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.updash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 2px;
}

.updash-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--full);
}

.updash-back {
    color: var(--full);
    opacity: 0.55;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.updash-back:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.updash-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 12px;
}

.updash-stat-bubble {
    border-radius: 999px;
    border: var(--dock-border);
    background: var(--dock-bg);
    -webkit-backdrop-filter: var(--dock-blur);
    backdrop-filter: var(--dock-blur);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.2);
}

.updash-stat-label {
    opacity: 0.55;
    font-size: 9px;
}

.updash-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--full);
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

.updash-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 18px;
    align-items: start;
}

.updash-grid-wrap {
    position: relative;
}

.updash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.updash-card {
    border-radius: 8px;
    border: var(--dock-border);
    background: var(--dock-bg);
    -webkit-backdrop-filter: var(--dock-blur);
    backdrop-filter: var(--dock-blur);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.updash-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.updash-card.is-fired {
    opacity: 0.6;
}

.updash-card.is-deleted {
    opacity: 0.4;
    pointer-events: none;
}

.updash-card-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.updash-blob {
    width: 60%;
    aspect-ratio: 1;
    border-radius: 45% 55% 52% 48% / 48% 45% 55% 52%;
    background: var(--blob-color, #e2725b);
    transform: scale(var(--blob-scale, 1));
    opacity: 0.85;
    animation: blob-morph 6s ease-in-out infinite;
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 45% 55% 52% 48% / 48% 45% 55% 52%;
    }
    33% {
        border-radius: 48% 52% 45% 55% / 55% 48% 52% 45%;
    }
    66% {
        border-radius: 52% 48% 55% 45% / 45% 55% 48% 52%;
    }
}

.updash-card-meta {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.updash-card-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--full);
    line-height: 1.2;
    word-break: break-word;
}

.updash-card-sub {
    font-size: 9px;
    color: var(--muted);
    line-height: 1.2;
}

.updash-card-actions {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.updash-btn {
    flex: 1;
    min-width: 45px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--full);
    font-size: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
}

.updash-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.updash-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.updash-btn--danger {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.2);
}

.updash-btn--danger:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.updash-btn[data-action="share"] {
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.8;
}

.updash-btn[data-action="share"]:hover {
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
}

.updash-btn[data-action="follow"] {
    color: rgba(180, 255, 200, 0.7);
    border-color: rgba(180, 255, 200, 0.15);
}

.updash-btn[data-action="follow"]:hover {
    background: rgba(180, 255, 200, 0.1);
    border-color: rgba(180, 255, 200, 0.3);
    color: rgba(180, 255, 200, 0.95);
}

.updash-feed-wrap {
    position: sticky;
    top: 0;
}

.updash-feed-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--full);
    margin-bottom: 8px;
    padding: 0 2px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1.2;
}

.updash-feed {
    border: var(--dock-border);
    border-radius: 8px;
    background: var(--dock-bg);
    -webkit-backdrop-filter: var(--dock-blur);
    backdrop-filter: var(--dock-blur);
    overflow: hidden;
    max-height: 400px;
}

.updash-feed-list {
    list-style: none;
}

.updash-feed-item {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 10px;
    line-height: 1.4;
    color: var(--muted);
}

.updash-feed-item:last-child {
    border-bottom: none;
}

.updash-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 980px) {
    .updash-layout {
        grid-template-columns: 1fr;
    }

    .updash-feed-wrap {
        position: static;
    }
}

@media (max-width: 640px) {
    .updash-shell {
        width: calc(100vw - 20px);
        margin: 12px auto 20px;
        gap: 12px;
    }

    .updash-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .updash-stats {
        grid-template-columns: 1fr;
    }
}

/* creator profile page */
.profile-section {
    margin-bottom: 12px;
}

.profile-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 8px;
    border: var(--dock-border);
    background: var(--dock-bg);
    -webkit-backdrop-filter: var(--dock-blur);
    backdrop-filter: var(--dock-blur);
}

.profile-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-avatar-blob {
    width: 55%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--avatar-color, #8d7f77);
    opacity: 0.8;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-name-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.profile-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--full);
}

.profile-bio {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    word-break: break-word;
}

.profile-id {
    font-size: 10px;
    color: var(--muted);
    opacity: 0.6;
}

.profile-id code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: inherit;
    word-break: break-all;
}

.profile-follow-btn {
    padding: 6px 12px;
    border: 1px solid rgba(226, 114, 91, 0.3);
    border-radius: 6px;
    background: rgba(226, 114, 91, 0.15);
    color: #e2725b;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-follow-btn:hover {
    background: rgba(226, 114, 91, 0.25);
    border-color: rgba(226, 114, 91, 0.5);
}

.profile-follow-btn.is-following {
    background: rgba(226, 114, 91, 0.3);
    border-color: rgba(226, 114, 91, 0.6);
    color: #ffc9b8;
}

.profile-follow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.updash-section-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--full);
    margin-bottom: 12px;
    padding: 0 2px;
}

@media (max-width: 640px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
    }

    .profile-name {
        font-size: 16px;
    }
}

.updash-creator-link {
    color: rgba(226, 114, 91, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.updash-creator-link:hover {
    color: #e2725b;
    text-decoration: underline;
}

/* auth modal */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.auth-modal {
    background: var(--dock-bg);
    border: var(--dock-border);
    border-radius: 12px;
    padding: 32px;
    max-width: 360px;
    width: calc(100vw - 40px);
    -webkit-backdrop-filter: var(--dock-blur);
    backdrop-filter: var(--dock-blur);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.auth-modal h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--full);
    margin-bottom: 20px;
    text-align: center;
}

.auth-modal form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.auth-modal input {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--full);
    font-family: var(--font);
    font-size: 15px;
    transition: all 0.2s ease;
}

.auth-modal input:focus {
    outline: none;
    border-color: rgba(226, 114, 91, 0.5);
    background: rgba(226, 114, 91, 0.1);
}

.auth-modal input::placeholder {
    color: var(--muted);
    opacity: 0.6;
}

.auth-modal button[type="submit"] {
    padding: 10px 16px;
    border: 1px solid rgba(226, 114, 91, 0.3);
    border-radius: 6px;
    background: rgba(226, 114, 91, 0.15);
    color: #e2725b;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-modal button[type="submit"]:hover {
    background: rgba(226, 114, 91, 0.25);
    border-color: rgba(226, 114, 91, 0.5);
}

.auth-note {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    opacity: 0.7;
}

/* user button */
.chrome-anchor--user {
    position: fixed !important;
    top: 32px !important;
    right: 110px !important;
    bottom: auto !important;
    left: auto !important;
    padding: 12px 12px;
    margin: 0 !important;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.55;
    transition: opacity 0.2s ease;
    line-height: 1;
    z-index: calc(var(--chrome-z) + 10) !important;
}

.chrome-anchor--user:hover,
.chrome-anchor--user.is-logged-in {
    opacity: 1;
    color: #e2725b;
}

/* Tutorial HUD overlay styles */
.tutorial-hud {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 320px;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    text-transform: lowercase;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tutorial-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.tutorial-hud-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.tutorial-hud-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: color 0.2s;
}

.tutorial-hud-close:hover {
    color: #ffffff;
}

.tutorial-hud-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 64px;
}

.tutorial-hud-counter {
    color: #e2725b;
    font-size: 10px;
    font-weight: 500;
}

.tutorial-hud-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.tutorial-hud-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
}

.hud-btn {
    background: none;
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    transition: all 0.2s;
}

.hud-btn:hover:not(:disabled) {
    border-color: #e2725b;
    color: #e2725b;
}

.hud-btn:disabled {
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

.hud-btn.primary {
    background: #e2725b;
    border-color: #e2725b;
    color: #ffffff;
}

.hud-btn.primary:hover {
    box-shadow: 0 4px 12px rgba(226, 114, 91, 0.25);
}

.hud-dots {
    display: flex;
    gap: 6px;
}

.hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.hud-dot.active {
    background: #e2725b;
    transform: scale(1.2);
}

@media (max-width: 480px) {
    .tutorial-hud {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
    }
}

/* Mobile Dynamic Controls */
.mobile-dynamic-controls {
    display: none;
}

@media (max-width: 768px) {
    .mobile-dynamic-controls {
        display: flex;
        position: fixed;
        left: 16px;
        top: 20%;
        flex-direction: column;
        gap: 12px;
        z-index: 100;
    }
    
    .mobile-dynamic-controls button {
        background: rgba(20, 20, 20, 0.8);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    body[data-theme="light"] .mobile-dynamic-controls button {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(0, 0, 0, 0.1);
        color: rgba(0, 0, 0, 0.8);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .mobile-dynamic-controls button:active {
        transform: scale(0.9);
    }
}
