/* Diya Chain - "warm light in deep night". Light is the design. */

.dc {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    background: radial-gradient(120% 80% at 50% 110%, #3a1430 0%, #160c30 55%, #07061a 100%);
    overflow: hidden;
    isolation: isolate;
}

/* Inside the normal site layout (the creator page). */
.dc--embedded { border-radius: 22px; margin: 0 0 22px; box-shadow: 0 30px 60px -30px rgba(20, 8, 40, .6); }

/* The receiver's full-screen night (slim layout). */
.dc--full { min-height: 100vh; min-height: 100svh; }

.dc-stage { position: relative; height: 52vh; min-height: 300px; max-height: 560px; }
.dc--full .dc-stage { height: 56vh; max-height: none; }
.dc-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.dc-labels { position: absolute; inset: 0; pointer-events: none; transition: opacity .6s; }
.dc-labels.is-hidden { opacity: 0; visibility: hidden; }

.dc-hit {
    position: absolute; transform: translate(-50%, -50%);
    border-radius: 50%; border: 0; background: transparent; cursor: pointer;
    pointer-events: auto; padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.dc-hit:focus-visible { outline: 2px solid var(--fx-marigold); outline-offset: 2px; }
.dc-tip {
    position: absolute; left: 50%; top: 100%;
    transform: translate(-50%, 6px) scale(.96);
    white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis;
    font: 500 .82rem/1.2 var(--fx-display);
    color: var(--fx-cream);
    background: rgba(12, 8, 30, .72);
    border: 1px solid var(--fx-line);
    padding: .3rem .6rem; border-radius: 999px;
    opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .25s var(--fx-spring);
}
.dc-hit:hover .dc-tip, .dc-hit:focus-visible .dc-tip, .dc-hit.is-open .dc-tip { opacity: 1; transform: translate(-50%, 6px) scale(1); }
.dc-hit--you { cursor: pointer; }
.is-busy .dc-hit--you { cursor: progress; }

.dc-earlier {
    position: absolute; left: 14px; top: 14px;
    font: 600 .78rem/1 var(--fx-ui); letter-spacing: .04em;
    color: var(--fx-marigold);
    background: rgba(12, 8, 30, .55);
    border: 1px solid var(--fx-line);
    padding: .45rem .7rem; border-radius: 999px;
}

.dc-panel {
    position: relative; z-index: 1;
    padding: 4px 20px 26px;
    text-align: center;
}
.dc-panel-inner { max-width: 440px; margin: 0 auto; }

.dc-title { font-size: clamp(1.7rem, 5.4vw, 2.6rem); line-height: 1.08; font-weight: 520; margin: .55rem 0 .5rem; color: var(--fx-cream); }
.dc-title em { font-style: normal; color: var(--fx-marigold); }
.dc-lede { color: var(--fx-cream-dim); font-size: 1rem; line-height: 1.5; margin: 0 0 1rem; }
.dc-quote {
    font-family: var(--fx-display); font-style: italic; font-size: 1.08rem; line-height: 1.45;
    color: #ffe2b0; margin: 0 auto 1rem; max-width: 34ch; overflow-wrap: anywhere;
}
.dc-quote::before { content: "\201C"; } .dc-quote::after { content: "\201D"; }
.dc-path {
    font-size: .88rem; color: var(--fx-cream-dim); margin: 0 0 1.1rem; line-height: 1.6;
    overflow-wrap: anywhere;
}
.dc-path b { color: var(--fx-cream); font-weight: 600; }
.dc-path .dc-you { color: var(--fx-marigold); font-weight: 700; }
.dc-pos { font-family: var(--fx-display); font-size: 1.12rem; color: var(--fx-cream); margin: 0 0 1.1rem; }
.dc-pos strong { color: var(--fx-marigold); font-weight: 650; }

.dc-form .fx-btn--primary { width: 100%; margin-top: .9rem; font-size: 1.02rem; }
.dc-hint { font-size: .8rem; color: rgba(255, 244, 220, .55); margin: .55rem 0 0; }

.is-lit .dc-form { display: none; }

.dc-share { margin-top: .3rem; animation: dc-rise .7s var(--fx-ease-out) both; }
.dc-share-title { font-size: 1.6rem; font-weight: 520; margin: 0 0 .3rem; outline: none; }
.dc-share-lede { color: var(--fx-cream-dim); margin: 0 0 1rem; }
.dc-share-row { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.dc-share-row .fx-btn { flex: 1 1 calc(50% - .55rem); }
.dc-share-row .fx-btn--primary { flex-basis: 100%; }
.dc-linkbox { display: flex; gap: .4rem; margin: .8rem 0 0; }
.dc-linkbox .fx-input { font-size: .8rem; padding: .6rem .8rem; }
.dc-again { display: inline-block; margin-top: 1.1rem; color: var(--fx-marigold); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 181, 61, .4); }
.dc-again:hover { color: #ffd07a; }

.dc-note { font-size: .76rem; line-height: 1.5; color: rgba(255, 244, 220, .5); margin: 1.2rem auto 0; max-width: 40ch; }
.dc-note a { color: inherit; }

.dc-ornament { display: block; width: 120px; height: 14px; margin: 0 auto .4rem; opacity: .7; }

.dc-brand {
    position: absolute; right: 14px; top: 12px; z-index: 2;
    font: 700 .78rem/1 var(--fx-ui); letter-spacing: .04em; color: rgba(255, 244, 220, .7); text-decoration: none;
}
.dc-brand:hover { color: var(--fx-cream); }

@keyframes dc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
    .dc { grid-template-columns: minmax(0, 1fr) 420px; align-items: stretch; }
    .dc-stage { height: auto; min-height: 580px; max-height: none; }
    .dc-panel { align-self: center; }
    .dc--full .dc-stage { height: 100vh; height: 100svh; }
    .dc-panel { padding: 36px 36px 36px 8px; text-align: left; }
    .dc-panel-inner { margin: 0; }
    .dc-ornament { margin-left: 0; }
    .dc-quote { margin-left: 0; }
    .dc-note { margin-left: 0; }
}

/* The creator's page body below the stage keeps the site's normal look. */
.dc-page-intro { margin: 0 0 14px; }

/* Phones: the panel continues the sky below the canvas, no seam. */
@media (max-width: 899.98px) {
    .dc-panel { background: linear-gradient(180deg, #2a0f2c 0%, #150b2e 55%, #07061a 100%); }
}
