html {
    --bead: 72px;
    --bead-gap: 8px;
}

html,
body.dc-body {
    margin: 0;
    height: auto;
    min-height: 100%;
    background: #f6f3ec;
    color: #241c14;
    font-family: "Noto Sans", "Noto Sans Hebrew", "Arial Hebrew", "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body.dc-body {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #d5c7b2;
    background-image:
        radial-gradient(ellipse 30% 20% at 12% 18%, rgba(255, 248, 236, 0.35), transparent 70%),
        radial-gradient(ellipse 24% 18% at 88% 80%, rgba(90, 70, 48, 0.08), transparent 70%),
        radial-gradient(rgba(80, 62, 40, 0.05) 0.7px, transparent 0.7px);
    background-size: auto, auto, 4px 4px;
}

html[lang="he"] body.dc-body {
    font-family: "Noto Sans Hebrew", "Noto Sans", "Arial Hebrew", sans-serif;
}

button,
a {
    font-family: inherit;
}

.dc-app {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(100%, 880px);
    margin: 0 auto;
    height: auto;
    min-height: 100dvh;
    max-height: none;
    display: flex;
    flex-direction: column;
    padding:
        calc(8px + env(safe-area-inset-top))
        calc(12px + env(safe-area-inset-right))
        calc(8px + env(safe-area-inset-bottom))
        calc(12px + env(safe-area-inset-left));
    overflow: visible;
}

.dc-top,
.dc-bottom {
    flex: 0 0 auto;
}

.dc-app.is-cover {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.dc-app.is-cover .dc-stage,
.dc-app.is-cover .dc-bottom,
.dc-app.is-cover .dc-tagline,
.dc-app.is-cover .dc-help,
.dc-app.is-cover .dc-keys,
.dc-app.is-cover .dc-theme {
    display: none;
}

.dc-cover {
    display: none;
}

.dc-app.is-cover .dc-cover {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.dc-cover-frame {
    flex: 0 1 auto;
    min-height: 0;
    max-width: 100%;
    max-height: calc(100% - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-cover-art {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dc-play-btn {
    flex: 0 0 auto;
    min-width: 148px;
    min-height: 52px;
    touch-action: manipulation;
    padding: 10px 28px;
    border: 2.5px solid #241c14;
    border-radius: 18px 14px 16px 20px;
    background: #fffdf8;
    color: #241c14;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 2px 3px 0 #241c14;
}

.dc-play-btn:hover {
    transform: rotate(-1deg) scale(1.03);
    background: #fff6e4;
}

.dc-top-row,
.dc-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dc-top-row {
    min-width: 0;
}

.dc-title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-tagline {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.3;
    max-width: 34rem;
}

.dc-theme {
    position: relative;
    z-index: 40;
    flex: 0 0 auto;
}

.dc-theme-btn {
    width: 46px;
    height: 46px;
    touch-action: manipulation;
    padding: 4px;
    border: 2px solid #241c14;
    border-radius: 16px 13px 15px 12px;
    background: #fffdf8;
    color: #241c14;
    cursor: pointer;
}

.dc-theme-btn svg {
    width: 100%;
    height: 100%;
    display: block;
}

.dc-theme-btn:hover,
.dc-theme-btn[aria-expanded="true"] {
    transform: scale(1.06);
    background: #fff6e4;
}

.dc-theme-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    width: min(360px, 78vw);
    z-index: 30;
}

.dc-theme-sheet {
    padding: 10px;
    border: 2px solid #241c14;
    border-radius: 16px 14px 18px 15px;
    background: #fffdf8;
    box-shadow: 0 10px 24px rgba(72, 54, 34, 0.16);
    animation: dc-menu-in 180ms ease;
}

.dc-theme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dc-theme-card {
    position: relative;
    min-height: 92px;
    padding: 8px 6px 10px;
    border: 2px solid #241c14;
    border-radius: 12px 14px 11px 13px;
    background: #fffdf8;
    color: #241c14;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.dc-theme-card:hover {
    transform: translateY(-2px);
    background: #fffaf2;
}

.dc-theme-card.is-chosen {
    background: #fff3d4;
    box-shadow: inset 0 0 0 2px #241c14;
}

.dc-theme-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 40px;
}

.dc-theme-preview img,
.dc-theme-preview svg {
    width: 30px;
    height: 30px;
}

.dc-theme-name {
    display: block;
    margin-top: 4px;
    line-height: 1.2;
}

.dc-theme-star {
    position: absolute;
    top: 4px;
    inset-inline-end: 6px;
    font-size: 14px;
    line-height: 1;
}

@keyframes dc-menu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

@keyframes dc-theme-fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

#dc-board.is-theme-swap .dc-playfield {
    animation: dc-theme-fade 280ms ease;
}

.dc-langs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
}

.dc-langs a {
    color: #241c14;
    text-decoration: none;
    min-width: 32px;
    min-height: 44px;
    padding: 0 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.dc-langs a.active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dc-back {
    color: #241c14;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    touch-action: manipulation;
}

.dc-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
}

.dc-btn {
    min-height: 44px;
    padding: 8px 14px;
    border: 2px solid #241c14;
    border-radius: 8px;
    background: #fffdf8;
    color: #241c14;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}

.dc-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.dc-btn:focus-visible,
.dc-bead:focus-visible,
.dc-rod:focus-visible,
.dc-bowl:focus-visible,
.dc-langs a:focus-visible,
.dc-back:focus-visible,
.dc-theme-btn:focus-visible,
.dc-theme-card:focus-visible,
.dc-play-btn:focus-visible {
    outline: 2px solid #241c14;
    outline-offset: 2px;
}

.dc-help,
.dc-keys {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.35;
    max-width: 70rem;
}

.dc-keys {
    font-size: 12px;
    opacity: 0.9;
}

.dc-stage {
    flex: 0 0 auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.dc-sheet {
    --bead: 72px;
    --bead-gap: 8px;
    --rows: 6;
    position: relative;
    flex: 0 0 auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    box-sizing: border-box;
    padding: 18px 14px 12px;
    background-color: #f7f1e4;
    background-image:
        radial-gradient(ellipse 26% 14% at 16% 20%, rgba(92, 74, 48, 0.07), transparent 70%),
        radial-gradient(ellipse 20% 16% at 84% 76%, rgba(48, 58, 78, 0.05), transparent 72%),
        radial-gradient(circle at 70% 18%, rgba(180, 160, 120, 0.08) 0 18px, transparent 19px),
        radial-gradient(rgba(72, 56, 36, 0.045) 0.65px, transparent 0.65px);
    background-size: auto, auto, auto, 3px 3px;
    clip-path: polygon(
        1.2% 1.6%, 4% 0.35%, 11% 1.15%, 18% 0.2%, 27% 0.95%, 36% 0.25%, 47% 1.05%, 58% 0.15%, 69% 0.9%, 79% 0.2%, 88% 1%, 95% 0.3%, 99% 1.2%,
        99.7% 7%, 98.9% 16%, 99.75% 28%, 99.05% 41%, 99.8% 54%, 99.1% 67%, 99.7% 79%, 98.95% 90%, 99.3% 98.2%,
        93% 99.15%, 84% 98.35%, 73% 99.4%, 62% 98.45%, 51% 99.35%, 39% 98.4%, 28% 99.25%, 17% 98.5%, 8% 99.2%, 1.4% 98%,
        0.35% 89%, 1.15% 77%, 0.25% 64%, 1.05% 51%, 0.2% 38%, 0.95% 25%, 0.3% 13%, 0.85% 5%
    );
    filter: drop-shadow(0 8px 10px rgba(72, 54, 34, 0.12));
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.dc-sheet-marks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.dc-mark {
    position: absolute;
    opacity: 0.34;
}

.dc-mark-spider { width: 54px; left: 4px; top: 22%; }
.dc-mark-scribble { width: 64px; right: 6px; top: 28%; }
.dc-mark-blot { width: 40px; left: 8px; bottom: 6%; }

.dc-bottom {
    padding-top: 8px;
}

.dc-bottom .dc-status {
    flex-wrap: wrap;
    justify-content: flex-start;
}

#dc-field,
.dc-playfield {
    width: min(100%, 880px);
}

.dc-playfield {
    display: grid;
    grid-template-columns: repeat(var(--lanes, 6), minmax(0, 1fr));
    column-gap: 4px;
    align-items: start;
    justify-items: center;
}

.dc-playfield .dc-bowl,
.dc-playfield .dc-chain {
    width: min(100%, 156px);
}

.dc-chain.is-helper .dc-string path {
    stroke-dasharray: 5 4;
}

.dc-bead.is-run {
    box-shadow: inset 0 0 0 2px rgba(36, 28, 20, 0.28);
    border-radius: 8px;
}

.dc-stack.is-lifting {
    visibility: hidden;
}

.dc-flight {
    position: absolute;
    z-index: 4;
    margin: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--bead-gap, 8px);
    transform-origin: center top;
    transition: transform 380ms ease-in, opacity 380ms ease-in;
}

.dc-ghost-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--bead-gap, 8px);
}

@keyframes dc-win-pop {
    from { transform: scale(0.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#dc-field {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dc-bowls {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
}

.dc-bowl {
    position: relative;
    width: min(22%, 128px);
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.dc-bowl-art {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.dc-hung {
    position: absolute;
    left: 50%;
    bottom: 30%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.dc-hung img {
    width: min(34px, 70%);
    height: auto;
    margin-top: -30%;
}

.dc-hung img:first-child {
    margin-top: 0;
}

.dc-chains {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--bead-gap, 8px);
}

.dc-chain {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    touch-action: none;
}

.dc-string {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 18px;
    height: calc(28px + (var(--bead) + var(--bead-gap, 8px)) * var(--rows));
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.dc-hook {
    display: block;
    width: 34px;
    height: 26px;
    margin: 0 auto;
}

.dc-rod {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 32px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: default;
}

.dc-knot {
    display: none;
    width: 16px;
    height: 16px;
    margin: 2px auto 0;
    border: 2px solid #1a1a1a;
    border-radius: 55% 45% 50% 50%;
    background: #fffdf8;
}

.dc-rod.is-ready {
    width: 54px;
    height: 40px;
    cursor: grab;
    outline: 2px dashed #241c14;
    outline-offset: 3px;
    border-radius: 16px 18px 12px 14px;
    background: rgba(36, 28, 20, 0.07);
}

.dc-rod.is-ready .dc-knot {
    display: none;
}

.dc-bowl.is-ready {
    outline: 2px dashed #241c14;
    outline-offset: 3px;
    border-radius: 18px 22px 14px 16px;
    background: rgba(36, 28, 20, 0.06);
}

.dc-hang {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.dc-hang[hidden] {
    display: none;
}

.dc-stack {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: calc((var(--bead) + var(--bead-gap, 8px)) * var(--rows));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--bead-gap, 8px);
    padding-top: 2px;
    box-sizing: border-box;
}

.dc-bead {
    width: var(--bead);
    aspect-ratio: 1;
    height: auto;
    max-width: 100%;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: grab;
    touch-action: none;
}

.dc-bead.is-locked {
    cursor: default;
}

.dc-bead img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
}

.dc-bead.is-free {
    position: relative;
}

.dc-chain.is-cursor .dc-rod {
    border-radius: 10px;
    box-shadow: inset 0 -3px 0 #241c14;
}

.dc-bowl.is-aim {
    outline: 2px solid #241c14;
    outline-offset: 2px;
    border-radius: 12px;
}

.dc-bead.is-hint,
.dc-rod.is-hint,
.dc-bowl.is-hint,
.dc-chain.is-hint .dc-stack {
    outline: 2px dashed #241c14;
    outline-offset: 3px;
    border-radius: 12px;
}

.dc-hint-note {
    font-size: 13px;
    font-weight: 600;
}

.dc-chain.is-target .dc-stack,
.dc-bowl.is-target {
    background: rgba(36, 28, 20, 0.06);
    outline: 2px dashed #241c14;
    outline-offset: 3px;
    border-radius: 16px 20px 14px 18px;
}

.dc-bead.is-armed,
.dc-rod.is-armed .dc-knot {
    transform: translateY(-6px) rotate(-3deg);
}

.dc-bead.is-hidden,
.dc-stack.is-hidden .dc-bead {
    visibility: hidden;
}

.dc-ghost {
    position: fixed;
    z-index: 20;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
    transform: rotate(-4deg);
}

.dc-ghost * {
    pointer-events: none;
}

.dc-ghost-chain {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--bead-gap, 8px);
    transform: rotate(-3deg);
}

.dc-ghost-chain img {
    width: var(--bead);
    height: var(--bead);
}

.is-shake {
    animation: dc-shake 0.28s linear;
}

@keyframes dc-shake {
    20% { transform: translateX(-3px) rotate(-2deg); }
    40% { transform: translateX(3px) rotate(2deg); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

.dc-win {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(246, 243, 236, 0.78);
}

.dc-win[hidden] {
    display: none;
}

.dc-win-card {
    width: min(100%, 360px);
    animation: dc-win-pop 280ms ease;
    box-sizing: border-box;
    background: #fffdf8;
    border: 2px solid #241c14;
    border-radius: 18px 28px 16px 24px;
    padding: 22px 18px 16px;
    text-align: center;
}

.dc-win-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.dc-win-card p {
    margin: 0 0 16px;
    font-size: 16px;
}

.dc-win-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.dc-stars {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: 4px;
    line-height: 1;
}

.dc-maponly {
    display: none;
}

.dc-app.is-map .dc-playonly {
    display: none;
}

.dc-app.is-map .dc-maponly {
    display: inline-flex;
}

.dc-app.is-map #dc-map-open {
    display: none;
}

.dc-app.is-map .dc-board {
    display: none;
}

.dc-map {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    margin-top: 8px;
}

.dc-map[hidden] {
    display: none;
}

.dc-map h2 {
    margin: 8px 0 12px;
    text-align: center;
    font-size: 26px;
}

#dc-map-grid {
    display: block;
    width: min(100%, 760px);
    margin: 0 auto 8px;
}

.dc-chapter {
    margin: 0 0 14px;
    padding: 8px 8px 2px;
    border-radius: 18px;
}

.dc-chapter h3 {
    margin: 2px 0 8px;
    text-align: center;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.dc-chapter-1 {
    background: rgba(255, 253, 248, 0.35);
}

.dc-chapter-2 {
    background:
        repeating-linear-gradient(-12deg, transparent, transparent 10px, rgba(36, 28, 20, 0.04) 10px, rgba(36, 28, 20, 0.04) 11px);
}

.dc-chapter-3 {
    background-image: radial-gradient(rgba(36, 28, 20, 0.14) 0.8px, transparent 0.9px);
    background-size: 14px 14px;
}

.dc-chapter-4 {
    background: rgba(90, 62, 40, 0.08);
}

.dc-chapter-5 {
    background: rgba(36, 28, 20, 0.08);
}

.dc-map-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 0 auto 12px;
}

.dc-level-node {
    min-height: 92px;
    padding: 8px 6px;
    border: 2px solid #241c14;
    border-radius: 18px 26px 14px 22px;
    background: #fffdf8;
    color: #241c14;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.dc-level-node.is-done {
    background: #f4e4c4;
}

.dc-level-node.is-current {
    outline: 2px dashed #241c14;
    outline-offset: 2px;
    background: #fffdf8;
}

.dc-level-node.is-locked {
    opacity: 0.45;
    cursor: default;
}

.dc-node-num {
    font-size: 22px;
    line-height: 1;
}

.dc-node-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.dc-node-stars {
    letter-spacing: 2px;
    font-size: 14px;
}

.dc-about {
    width: 100%;
    margin-top: 4px;
}

.dc-about summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    touch-action: manipulation;
}

.dc-about-copy {
    margin: 0 0 8px;
    max-width: 42rem;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    white-space: pre-line;
}

body.dc-body.is-about-open {
    height: auto;
    overflow: auto;
}

body.dc-body.is-about-open .dc-app {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
}

@media (max-width: 540px) {
    .dc-top-row {
        flex-wrap: wrap;
        row-gap: 0;
        column-gap: 8px;
    }

    .dc-title {
        order: 1;
        flex: 1 1 auto;
        font-size: 20px;
        text-align: start;
    }

    .dc-theme {
        order: 2;
    }

    .dc-back {
        order: 3;
        font-size: 13px;
    }

    .dc-langs {
        order: 4;
        margin-inline-start: auto;
        gap: 2px;
        font-size: 13px;
    }
}

@media (max-height: 720px) {
    .dc-help,
    .dc-keys {
        display: none;
    }

    .dc-sheet {
        padding: 8px 8px 6px;
    }
}

@media (max-width: 720px) {
    .dc-bar {
        align-items: flex-start;
    }

    .dc-title {
        font-size: 18px;
    }

    .dc-tagline {
        display: none;
    }

    .dc-back {
        white-space: nowrap;
    }

    .dc-help,
    .dc-keys {
        font-size: 13px;
    }

    .dc-map-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-height: 520px) {
    .dc-tagline,
    .dc-keys,
    .dc-help {
        display: none;
    }

    .dc-logo {
        width: 28px;
        height: 28px;
    }

    .dc-title {
        font-size: 16px;
    }

    .dc-app {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .dc-about {
        display: none;
    }
}

@media (max-width: 720px) {
    .dc-theme-menu {
        position: fixed;
        inset: 0;
        width: auto;
        top: 0;
        background: rgba(72, 54, 34, 0.28);
        display: flex;
        align-items: flex-end;
    }

    .dc-theme-menu[hidden] {
        display: none;
    }

    .dc-theme-sheet {
        width: 100%;
        border-radius: 18px 18px 0 0;
        padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
        animation-name: dc-sheet-in;
    }

    .dc-theme-card {
        min-height: 104px;
        font-size: 15px;
    }
}

@keyframes dc-sheet-in {
    from { transform: translateY(16px); opacity: 0.6; }
    to { transform: none; opacity: 1; }
}

@media (max-width: 899px) {
    .dc-sheet-marks {
        display: none;
    }

    .dc-sheet {
        padding: 12px 8px 8px;
    }
}

#dc-board[data-theme="lights"] .dc-mark-lines {
    inset: 8% 6% 6%;
    width: auto;
    height: auto;
    opacity: 0.35;
}

#dc-board[data-theme="lights"] .dc-bowl {
    color: transparent;
}

#dc-board[data-theme="lights"] .dc-bowl[data-bowl="pumpkin"] { color: #e2b423; }
#dc-board[data-theme="lights"] .dc-bowl[data-bowl="skull"] { color: #e15a5a; }
#dc-board[data-theme="lights"] .dc-bowl[data-bowl="spider"] { color: #4f93c4; }
#dc-board[data-theme="lights"] .dc-bowl[data-bowl="monster"] { color: #3e8a48; }

#dc-board[data-theme="lights"] .dc-bowl.is-lit::before,
#dc-board[data-theme="lights"] .dc-bowl.is-warming::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 22%;
    bottom: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}

#dc-board[data-theme="lights"] .dc-bowl.is-lit::before {
    opacity: 0.72;
    animation: dc-bulb-on 720ms ease;
}

#dc-board[data-theme="lights"] .dc-bowl.is-warming::before {
    animation: dc-bulb-warm 1.6s ease-in-out infinite;
}

#dc-board[data-theme="lights"] .dc-bowl-art,
#dc-board[data-theme="lights"] .dc-hung {
    position: relative;
    z-index: 1;
}

.dc-bulb-rays {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 16%;
    bottom: 28%;
    pointer-events: none;
    z-index: 2;
    background:
        linear-gradient(currentColor, currentColor) 50% 0 / 2px 8px no-repeat,
        linear-gradient(currentColor, currentColor) 100% 28% / 8px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 28% / 8px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 82% 8% / 7px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 18% 8% / 7px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 86% 62% / 7px 2px no-repeat,
        linear-gradient(currentColor, currentColor) 14% 62% / 7px 2px no-repeat;
    opacity: 0;
    animation: dc-bulb-on 720ms ease forwards;
}

@keyframes dc-bulb-on {
    0% { opacity: 0; transform: scale(0.9); }
    60% { opacity: 0.95; transform: scale(1.05); }
    100% { opacity: 0.8; transform: scale(1); }
}

@keyframes dc-bulb-warm {
    0%, 100% { opacity: 0.12; }
    50% { opacity: 0.42; }
}

@media (prefers-reduced-motion: reduce) {
    .is-shake,
    .dc-win-card,
    .dc-flight,
    #dc-board[data-theme="lights"] .dc-bowl.is-lit::before,
    #dc-board[data-theme="lights"] .dc-bowl.is-warming::before,
    .dc-bulb-rays,
    .dc-theme-sheet,
    #dc-board.is-theme-swap .dc-playfield {
        animation: none;
        transition: none;
    }

    .dc-theme-btn:hover,
    .dc-theme-btn[aria-expanded="true"],
    .dc-theme-card:hover,
    .dc-play-btn:hover {
        transform: none;
    }

    #dc-board[data-theme="lights"] .dc-bowl.is-lit::before,
    .dc-bulb-rays {
        opacity: 0.8;
    }
}

@media (max-height: 420px) {
    .dc-sheet {
        padding: 4px 6px;
    }

    .dc-bottom {
        padding-top: 4px;
    }

    .dc-bottom .dc-status {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--bead-gap, 8px);
        align-items: stretch;
    }

    #dc-level {
        grid-column: 1 / 3;
    }

    #dc-moves {
        grid-column: 3 / 5;
        text-align: end;
    }

    #dc-level,
    #dc-moves {
        font-size: 12px;
        line-height: 1.2;
    }

    .dc-bottom .dc-btn {
        min-height: 40px;
        padding: 4px 6px;
        font-size: 12px;
    }
}

@media (max-width: 520px) {
    .dc-app {
        padding-left: calc(6px + env(safe-area-inset-left));
        padding-right: calc(6px + env(safe-area-inset-right));
    }

    .dc-sheet {
        padding: 8px 4px 10px;
    }
}
