:root {
    color-scheme: dark;
    --bg: #0c0e10;
    --panel: #15181c;
    --panel-hover: #1b1e23;
    --line: #2c3036;
    --muted: #9299a3;
    --text: #f4f5f7;
    --accent: #ffad32;
    --accent-light: #ffc367;
    --green: #8cdcc1;
    --error: #ff9f98;
    --font: 'DM Sans', sans-serif;
    --mono: 'IBM Plex Mono', monospace
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased
}

button,
input {
    font: inherit
}

button,
a,
input,
label {
    -webkit-tap-highlight-color: transparent
}

button,
a {
    touch-action: manipulation
}

button {
    cursor: pointer
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px
}

a {
    color: inherit
}

button {
    color: inherit
}

button:disabled {
    cursor: wait
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(ellipse at 50% -35%, #b075211f, transparent 60%), linear-gradient(90deg, transparent calc(50% - 401px), #ffffff04 calc(50% - 400px), transparent calc(50% - 399px), transparent calc(50% + 399px), #ffffff04 calc(50% + 400px), transparent calc(50% + 401px))
}

.edge-label {
    position: fixed;
    top: 50%;
    color: #696f77;
    font: 500 12px var(--mono);
    letter-spacing: .19em;
    writing-mode: vertical-rl
}

.edge-left {
    left: 42px;
    transform: rotate(180deg)
}

.edge-right {
    right: 42px
}

.workspace {
    width: min(100% - 64px, 656px);
    margin: 0 auto;
    padding: 38px 0 115px
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -1.2px;
    line-height: 1.2
}

.brand-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 34px
}

.brand-symbol svg {
    fill: var(--accent);
    width: 29px;
    height: 29px
}

.brand-accent {
    color: var(--accent)
}

.brand-period {
    color: #f1f2f4
}

.preview-label {
    font: 500 12px var(--mono);
    border: 1px solid #33302a;
    color: #bcb1a0;
    border-radius: 4px;
    padding: 5px 12px;
    white-space: nowrap;
    letter-spacing: .04em
}

.intro-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 32px 0 31px
}

.eyebrow {
    font: 500 12px var(--mono);
    letter-spacing: .14em;
    color: var(--accent);
    margin: 0 0 12px
}

.intro-row h1 {
    font-size: 28px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.7px;
    margin: 0
}

.caption {
    color: var(--muted);
    font-size: 14px;
    margin: 12px 0 0
}

.hero-index {
    font: 800 52px/1 'Barlow Condensed', sans-serif;
    color: #25282d;
    font-style: italic;
    display: flex;
    gap: 7px;
    align-items: start
}

.hero-index span {
    font: 400 21px var(--font);
    color: #4d4433
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    min-height: 30px
}

.step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    border: 1px solid #5f4727;
    color: var(--accent);
    background: #ffad3209;
    border-radius: 6px;
    font: 500 12px var(--mono);
    transition: background .2s
}

.step.complete {
    background: #ffad321c;
    border-color: #b4782b
}

.section-heading h2 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.3px;
    margin: 0
}

.help-button {
    width: 30px;
    height: 30px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    margin-left: auto;
    color: var(--muted);
    font: 500 14px var(--mono)
}

.help-button:hover {
    color: var(--accent);
    border-color: #705029
}

.help-panel {
    padding: 14px 16px;
    border: 1px solid #655032;
    background: #251d13;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 14px;
    color: #e7d5b5
}

.player-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 19px 20px 16px
}

.player-panel label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 550;
    margin-bottom: 12px
}

.player-panel label span {
    font: 400 12px var(--mono);
    color: #767d87;
    letter-spacing: .07em
}

.input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #363b42;
    border-radius: 7px;
    background: #0e1013;
    padding: 0 7px 0 14px;
    min-height: 54px;
    transition: border-color .2s, box-shadow .2s
}

.input-shell:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px #ffad3210
}

.input-shell.error {
    border-color: #bd665e
}

.input-shell.success {
    border-color: #3d7464
}

.uid-icon {
    width: 21px;
    height: 21px;
    color: #767d88;
    flex: 0 0 auto
}

.input-shell input {
    color: #fff;
    background: none;
    min-width: 0;
    width: 100%;
    border: 0;
    outline: none !important;
    font-size: 16px;
    letter-spacing: .03em;
    height: 52px
}

.input-shell input::placeholder {
    letter-spacing: 0;
    color: #7b828d
}

.input-shell button {
    background: #25292f;
    border: 1px solid #363b43;
    border-radius: 5px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    min-height: 36px;
    white-space: nowrap
}

.input-shell button:hover {
    background: #34312a;
    color: var(--accent)
}

.input-shell button svg {
    width: 14px;
    height: 14px
}

.field-note {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    margin: 12px 0 0
}

.field-note svg {
    width: 14px;
    height: 14px;
    color: #8d969d;
    flex: 0 0 auto
}

.uid-feedback {
    font-size: 13px;
    margin-top: 12px;
    color: var(--error)
}

.uid-feedback:empty {
    display: none
}

.uid-feedback.loading {
    color: var(--accent)
}

.uid-feedback.loading:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1.5px solid #77613c;
    border-top-color: var(--accent);
    border-radius: 50%;
    margin-right: 12px;
    animation: spin .7s linear infinite
}

.player-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 13px;
    margin-top: 14px;
    border-top: 1px solid #2d3435
}

.player-result[hidden] {
    display: none
}

.player-avatar {
    background: #202e2b;
    border: 1px solid #3b5d50;
    border-radius: 7px;
    color: var(--green);
    font: 600 15px var(--mono);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center
}

.player-identity {
    display: grid;
    gap: 1px;
    min-width: 0
}

.player-identity strong {
    font-size: 14px;
    overflow-wrap: anywhere
}

.player-identity span {
    font: 400 12px var(--mono);
    color: #a0b5ad
}

.verified-mark {
    margin-left: auto;
    color: var(--green);
    font-size: 19px
}

.demo-hint {
    font-size: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 12px 1px 0;
    color: #7f8790
}

.demo-hint>span {
    color: #41474f
}

.demo-hint button {
    color: #b7bec7;
    border: 0;
    padding: 3px 0;
    background: transparent;
    font-size: 12px;
    min-height: 28px
}

.demo-hint button:hover {
    color: var(--accent)
}

.demo-hint button span {
    color: var(--accent);
    margin-left: 2px
}

.diamonds-section {
    margin-top: 28px
}

.section-meta {
    margin-left: auto;
    font: 400 12px var(--mono);
    color: #858c95;
    white-space: nowrap;
    letter-spacing: .06em
}

.diamond-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    border: 0;
    margin: 0;
    padding: 0
}

.diamond-option {
    position: relative;
    min-width: 0;
    display: block;
    cursor: pointer;
    border-radius: 12px
}

.diamond-option input {
    position: absolute;
    left: 14px;
    top: 15px;
    width: 18px;
    height: 18px;
    opacity: 0
}

.diamond-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    min-height: 163px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    transition: border-color .18s, background .18s, transform .18s, box-shadow .18s
}

.diamond-option:hover .diamond-card {
    background: var(--panel-hover);
    border-color: #535b65;
    transform: translateY(-2px)
}

.diamond-option input:focus-visible+.diamond-card {
    outline: 2px solid #ffd28d;
    outline-offset: 4px
}

.diamond-option input:checked+.diamond-card {
    border-color: var(--accent);
    background: linear-gradient(125deg, #242019, #1c1b18 50%, #181a1d);
    box-shadow: inset 0 0 0 1px #ffad3230
}

.choice-mark {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 16px;
    height: 16px;
    border: 1px solid #48505a;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: transparent;
    z-index: 2;
    font-size: 12px;
    font-weight: 700
}

.diamond-option input:checked+.diamond-card .choice-mark {
    background: var(--accent);
    border-color: var(--accent);
    color: #17130d
}

.pack-index {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #777f89;
    font: 400 12px var(--mono);
    letter-spacing: .08em
}

.diamond-option input:checked+.diamond-card .pack-index {
    color: #c7a064
}

.diamond-art {
    width: 108px;
    height: 77px;
    position: relative;
    margin-top: 12px;
    display: grid;
    place-items: center;
    isolation: isolate
}

.diamond-art:before {
    content: '';
    position: absolute;
    inset: 15px -7px -6px;
    border-radius: 50%;
    background: radial-gradient(ellipse, #32bdec18, transparent 68%);
    z-index: -1
}

.diamond-art img {
    width: 94px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px #22c8ff14);
    transition: transform .25s
}

.diamond-option:hover img {
    transform: translateY(-2px) rotate(-3deg)
}

.diamond-placeholder {
    width: 36px;
    height: 36px;
    color: #67d3fc
}

.pack-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.6px;
    line-height: 1.1;
    margin-top: 4px
}

.pack-unit {
    font-size: 12px;
    color: #a9afb8;
    margin-top: 3px
}

.pack-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 12px 0 12px;
    width: 100%;
    border-top: 1px solid #ffffff07;
    background: #ffffff01;
    font: 500 14px var(--mono);
    color: #e0e3e8
}

.diamond-option input:checked+.diamond-card .pack-price {
    color: var(--accent-light);
    border-top-color: #ffad3219;
    background: #ffad3204
}

.pricing-note {
    font-size: 12px;
    color: #828a94;
    text-align: center;
    margin: 14px 0 0
}

.selection-feedback:empty {
    display: none
}

.selection-feedback {
    color: var(--error);
    font-size: 13px;
    margin: 12px 0 0
}

.page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 23px;
    margin-top: 21px;
    border-top: 1px solid #25292f;
    color: #717983;
    font-size: 12px;
    line-height: 1.5
}

.footer-logo {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.6px;
    color: #969da6
}

.footer-logo span {
    color: var(--accent)
}

.page-footer>span:last-child {
    text-align: right
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0c0e10ed;
    border-top: 1px solid #2c2c2b;
    padding: 15px 0 max(17px, env(safe-area-inset-bottom));
    z-index: 10;
    backdrop-filter: blur(16px)
}

.sticky-inner {
    width: min(100% - 64px, 656px);
    margin: auto
}

.continue-button {
    border: 1px solid #ffc365;
    border-radius: 12px;
    background: var(--accent);
    box-shadow: inset 0 1px 0 #ffffff38, 0 4px 20px #ffad320d;
    color: #15110a;
    display: block;
    width: 100%;
    height: 52px;
    font-size: 16px;
    font-weight: 750;
    transition: background .18s, transform .18s, box-shadow .18s
}

.continue-button:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 25px #ffad321d
}

.continue-button:active {
    transform: translateY(1px)
}

dialog {
    width: min(440px, calc(100% - 32px));
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: 26px;
    border-radius: 16px;
    border: 1px solid #484035;
    background: #17191d;
    color: var(--text);
    box-shadow: 0 25px 100px #000b
}

dialog::backdrop {
    background: #050608c9;
    backdrop-filter: blur(7px)
}

.dialog-topline {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.dialog-topline .eyebrow {
    margin: 0
}

.close-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: #23262c;
    border: 1px solid #393e47;
    border-radius: 6px;
    font-size: 25px;
    line-height: 1;
    color: #bdc2ca
}

.review-symbol {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    margin-top: 22px;
    background: #ffad3212;
    border: 1px solid #8a5c22;
    color: var(--accent);
    font-size: 24px;
    border-radius: 12px
}

dialog h2 {
    font-size: 27px;
    letter-spacing: -.6px;
    margin: 16px 0 5px
}

.review-caption {
    color: #a1a8b1;
    font-size: 14px;
    margin: 0 0 21px
}

.review-details {
    margin: 0;
    display: grid;
    gap: 12px;
    padding: 17px;
    background: #101216;
    border: 1px solid #2f343b;
    border-radius: 12px;
    font-size: 14px
}

.review-details>div {
    display: flex;
    justify-content: space-between;
    gap: 16px
}

.review-details dt {
    color: #979faa
}

.review-details dd {
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere
}

.review-total {
    border-top: 1px solid #30343a;
    padding-top: 13px;
    font-weight: 700
}

.review-total dd {
    color: var(--accent)
}

.review-demo {
    font-size: 13px;
    color: #b3a48c;
    background: #ffad3205;
    border-left: 2px solid #6d532f;
    padding: 12px 12px;
    margin: 19px 0
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

[hidden] {
    display: none !important
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@media(min-width:1050px) {
    .workspace {
        padding-top: 42px
    }

    .intro-row {
        margin-top: 37px
    }

    .diamond-card {
        min-height: 164px
    }

    .diamond-art {
        height: 79px
    }

    .hero-index {
        font-size: 61px
    }
}

@media(max-width:600px) {
    .workspace {
        width: calc(100% - 40px);
        padding-top: 23px;
        padding-bottom: 111px
    }

    .sticky-inner {
        width: calc(100% - 40px)
    }

    .edge-label {
        display: none
    }

    .wordmark {
        font-size: 27px;
        gap: 7px
    }

    .brand-symbol {
        width: 24px
    }

    .brand-symbol svg {
        width: 25px;
        height: 25px
    }

    .preview-label {
        font-size: 12px;
        padding: 4px 6px;
        letter-spacing: 0
    }

    .intro-row {
        margin: 26px 0
    }

    .intro-row h1 {
        font-size: 23px;
        letter-spacing: -.5px
    }

    .caption {
        font-size: 13px;
        margin-top: 7px
    }

    .eyebrow {
        font-size: 12px;
        letter-spacing: .11em
    }

    .hero-index {
        display: none
    }

    .section-heading {
        gap: 12px;
        margin-bottom: 12px
    }

    .section-heading h2 {
        font-size: 16px
    }

    .section-meta {
        font-size: 12px
    }

    .player-panel {
        padding: 15px 14px 13px
    }

    .player-panel label span {
        font-size: 12px
    }

    .input-shell {
        padding-left: 12px;
        gap: 12px
    }

    .input-shell input {
        font-size: 16px
    }

    .input-shell button {
        padding: 7px;
        gap: 3px;
        font-size: 12px
    }

    .field-note {
        font-size: 12px;
        gap: 5px
    }

    .diamonds-section {
        margin-top: 25px
    }

    .diamond-grid {
        gap: 12px
    }

    .diamond-card {
        min-height: 153px
    }

    .diamond-art {
        margin-top: 6px;
        height: 70px;
        width: 91px
    }

    .diamond-art img {
        width: 87px;
        height: 69px
    }

    .pack-value {
        font-size: 23px;
        margin-top: 4px
    }

    .pack-price {
        margin-top: 12px;
        padding: 7px 0 12px;
        font-size: 13px
    }

    .pack-unit {
        font-size: 12px
    }

    .pack-index {
        left: 12px;
        top: 12px;
        font-size: 12px
    }

    .choice-mark {
        right: 12px;
        top: 12px;
        width: 15px;
        height: 15px
    }

    .demo-hint {
        font-size: 12px;
        gap: 7px
    }

    .demo-hint button {
        font-size: 12px
    }

    .pricing-note {
        font-size: 12px
    }

    .page-footer {
        margin-top: 18px;
        padding-top: 18px;
        font-size: 12px
    }

    .footer-logo {
        font-size: 16px
    }

    .sticky-footer {
        padding-top: 12px;
        padding-bottom: max(13px, env(safe-area-inset-bottom))
    }

    .continue-button {
        height: 51px
    }
}

@media(max-width:359px) {

    .workspace,
    .sticky-inner {
        width: calc(100% - 28px)
    }

    .wordmark {
        font-size: 25px
    }

    .preview-label {
        font-size: 12px
    }

    .intro-row h1 {
        font-size: 21px
    }

    .caption {
        font-size: 12px
    }

    .field-note {
        font-size: 12px
    }

    .section-heading h2 {
        font-size: 15px
    }

    .demo-hint {
        flex-wrap: wrap;
        gap: 5px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}