* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: transparent;
}

.hidden {
    display: none !important;
}

#app {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.tablet {
    width: 460px;
    min-height: 360px;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 35%),
        linear-gradient(145deg, #17191f, #0c0d11);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.55),
        inset 0 0 0 8px rgba(255, 255, 255, 0.03);
    color: #fff;
}

.tablet-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 6px;
    color: #8f98aa;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
}

#subtitle {
    margin: 8px 0 0;
    color: #b6bdca;
    font-size: 14px;
}

.close-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.colors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.color-btn {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    padding: 14px 14px 14px 48px;
    min-height: 58px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.color-btn:hover {
    background: rgba(255, 255, 255, 0.11);
}

.color-btn.active {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.16);
}

.swatch {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.swatch.cream {
    background: #e7d8bc;
}

.swatch.green {
    background: #3bb273;
}

.swatch.red {
    background: #d94c4c;
}

.swatch.blue {
    background: #3d7dff;
}

.swatch.pink {
    background: #ff6fb1;
}

.swatch.purple {
    background: #915eff;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    color: #8f98aa;
    font-size: 12px;
}