/* ─── Card-1 Detail Page ──────────────────────────────────────────────────── */

@font-face {
    font-family: 'ArbelG';
    src: url('../fonts/ui/ArbelG-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

a { pointer-events: auto; }

/* ─── Custom cursor ──────────────────────────────────────────────────────── */
#custom-cursor {
    position: fixed;
    width: 1.25vw;
    height: 1.25vw;
    border-radius: 50%;
    background-color: transparent;
    border: 1.5px solid #000;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    top: -100px;
    left: -100px;
    transition: border-color 0.2s ease;
}

#custom-cursor.snapped {
    transition: border-color 0.2s ease,
                width  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                left   0.3s  cubic-bezier(0.25, 0.46, 0.45, 0.94),
                top    0.3s  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Page base ──────────────────────────────────────────────────────────── */
html {
    background-color: #fcfbf7;
}

body {
    font-family: 'ArbelG', 'Helvetica Neue', Arial, sans-serif;
    background-color: #fcfbf7;
    width: 100vw;
    height: 71.11vw; /* 1024 / 14.4 — fixed height so 50% centering is exact */
    position: relative;
    overflow: hidden;
}

/* ─── Top row (fixed) — matches playground ───────────────────────────────── */
.logo-icon {
    position: fixed;
    left: calc(6.32vw - 17px);
    top: 3vh;
    width: 34px;
    height: 34px;
    z-index: 200;
}

.theme-toggle {
    position: fixed;
    right: calc(2.64vw + 18px + 24px);
    top: 3vh;
    width: 18px;
    height: 18px;
    color: #000;
    z-index: 200;
    cursor: none;
}

.dot {
    position: fixed;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: block;
    text-decoration: none;
    background-color: #000;
    z-index: 200;
}

.dot-top-right {
    right: 2.64vw;
    top: 3vh;
    pointer-events: auto;
}

/* ─── Particle canvas — vertically centred ───────────────────────────────── */
.particle-canvas {
    position: absolute;
    left: 44.44vw;   /* 640 / 14.4 */
    top: 43%;
    transform: translateY(-50%);
    width: 47.29vw;  /* 681 / 14.4 */
    height: 44.86vw; /* 646 / 14.4 */
}

/* ─── Left panel — vertically centred as a unit ──────────────────────────── */
.left-panel {
    position: absolute;
    left: 19.93vw;   /* 287 / 14.4 */
    top: 43%;
    transform: translateY(-50%);
    width: 17.78vw;  /* 256 / 14.4 */
    display: flex;
    flex-direction: column;
}

/* Ball */
.card1-ball {
    width: 1.25vw;
    height: 1.25vw;
    border-radius: 50%;
    background-color: #000;
    margin-bottom: 2vw;
    flex-shrink: 0;
}

/* Info text */
.card1-text {
    font-family: 'ArbelG', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.972vw; /* 14px */
    line-height: 1.4;
    color: #000;
    white-space: pre;
    margin-bottom: 2vw;
}

/* Edit / Export row */
.card1-actions {
    display: flex;
    gap: 3.47vw;
    margin-bottom: 0.7vw;
}

.card1-btn {
    font-family: 'ArbelG', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.972vw;
    color: #000;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: none;
    pointer-events: auto;
}

/* Separator line */
.card1-actions-line {
    width: 100%;
    height: 1px;
    background-color: #000;
    flex-shrink: 0;
}

/* ─── Pre-paint theme via html[data-theme] (prevents flash on load) ─────── */
html[data-theme="negative"]  { background-color: #050505; }
html[data-theme="blue-theme"] { background-color: #423028; }

/* ─── Negative theme ─────────────────────────────────────────────────────── */
body.negative {
    background-color: #050505;
}

body.negative .theme-toggle         { color: #fcfbf7; }
body.negative .dot                   { background-color: #fcfbf7; }
body.negative #custom-cursor         { border-color: #fcfbf7; }
body.negative .card1-ball            { background-color: #fcfbf7; }
body.negative .card1-text            { color: #fcfbf7; }
body.negative .card1-btn             { color: #fcfbf7; }
body.negative .card1-actions-line    { background-color: #fcfbf7; }

/* ─── Blue / brown theme ─────────────────────────────────────────────────── */
body.blue-theme {
    background-color: #423028;
}

body.blue-theme .theme-toggle         { color: #B6E6FF; }
body.blue-theme .dot                   { background-color: #B6E6FF; }
body.blue-theme #custom-cursor         { border-color: #B6E6FF; }
body.blue-theme .card1-ball            { background-color: #B6E6FF; }
body.blue-theme .card1-text            { color: #B6E6FF; }
body.blue-theme .card1-btn             { color: #B6E6FF; }
body.blue-theme .card1-actions-line    { background-color: #B6E6FF; }
