/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
    margin: 0px;
    overflow: hidden;
}

noscript {
    display: block;
    text-align: center;
    padding-top: 100px;
    font-size: 20px;
}

.v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.fullscreen-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: 100% 100%;
    display: none;
    z-index: 1;
}

.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}

/* removes tap blinking on ios devices */
* { -webkit-tap-highlight-color:rgba(0,0,0,0); }


.v3d-simple-preloader-logo {
    background-image: url('media/logo180.png');
}

/* Verge3D 默认加载层为白底；改为与分数课件主画布一致 */
.v3d-simple-preloader-background {
    background-color: #f6f8ff !important;
}

#fraction-lesson-root.dl-root {
    display: none;
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 20;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    background: #f6f8ff;
    color: #111827;
    font-family: system-ui, "Segoe UI", "Microsoft YaHei", sans-serif;
    touch-action: manipulation;
    overscroll-behavior: contain;
}

.dl-topbar {
    flex: 0 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    box-sizing: border-box;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.dl-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dl-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 14px;
    box-sizing: border-box;
}

.dl-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
    min-width: 0;
    overflow: hidden;
}

.dl-card-derive {
    flex: 1 1 auto;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
}

.dl-card-visual {
    display: none;
}

.dl-card-head {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.dl-head-title {
    font-size: 16px;
    font-weight: 900;
    color: #111827;
    white-space: nowrap;
}

.dl-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-equation {
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 3.6vw, 26px);
    font-weight: 800;
    color: #111827;
}

.dl-problem {
    padding: 14px 14px 0;
}

.dl-problem-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.dl-problem-next {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 10px 16px;
    line-height: 1;
}

.dl-flycircle {
    position: fixed;
    z-index: 9999;
    border-radius: 999px;
    border: 2px dashed #ff4da6;
    background: transparent;
    transform: translate(-50%, -50%);
    transition: transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
    pointer-events: none;
}

.dl-flynum {
    position: fixed;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
    pointer-events: none;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 1000;
    filter: drop-shadow(0 10px 14px rgba(17, 24, 39, 0.16));
}

.dl-problem-hint {
    font-size: 14px;
    font-weight: 900;
    color: #94a3b8;
    letter-spacing: 0.02em;
    margin: 2px 0 10px;
    text-align: center;
}

.dl-blank-ghost {
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    border-radius: 999px;
    border: 2px dashed #ff4da6;
    background: transparent;
}

.dl-equation-input {
    padding-top: 10px;
    justify-content: flex-start;
}

.dl-op {
    color: #111827;
}

.dl-paren {
    color: #111827;
}

.dl-num {
    color: #111827;
}

.dl-rhs {
    color: #111827;
}

.dl-blank {
    width: 72px;
    max-width: 22vw;
    box-sizing: border-box;
    border-radius: 10px;
    border: 2px dashed #2f6bff;
    background: #eef2ff;
    color: #111827;
    text-align: center;
    padding: 10px 10px;
    font-size: inherit;
    font-weight: 900;
    outline: none;
}

.dl-blank:focus {
    border-style: solid;
    border-color: #ff8a00;
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.22);
    background: #fff7ed;
}

.dl-badge {
    font-size: 14px;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.dl-badge-ok {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.dl-badge-warn {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fed7aa;
}

.dl-rows {
    padding: 6px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dl-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.dl-row-left {
    font-size: 20px;
    font-weight: 900;
    color: #111827;
}

.dl-row-mid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 64px;
}

.dl-term-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 140px;
}

.dl-term {
    position: relative;
    width: 200px;
    max-width: 34vw;
    height: auto;
    min-height: 140px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #c7d2fe;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.dl-term-anim .dl-term-svg {
    animation: dl-pop 220ms ease-out;
}

@keyframes dl-pop {
    0% { transform: scale(0.96); }
    60% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.dl-term-confirmed {
    border-style: solid;
    border-color: #22c55e;
    background: #f0fdf4;
}

.dl-term-wedge {
    cursor: pointer;
}

.dl-term-leave {
    font-size: 12px;
    font-weight: 900;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 10px;
    line-height: 1.1;
}

.dl-term-circle {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
}

.dl-term-inputwrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dl-term-svg {
    width: 68px;
    height: 68px;
    display: block;
}

.dl-term-input {
    position: static;
    width: 86px;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 900;
    background: #ffffff;
    color: #111827;
    text-align: center;
    line-height: 1.1;
}

.dl-term-sub {
    font-size: 12px;
    font-weight: 900;
    color: #2f6bff;
    line-height: 1.1;
}

.dl-term-hintnum {
    min-height: 18px;
    font-size: 12px;
    font-weight: 900;
    color: #ff4da6;
    opacity: 0;
    transform: translateY(-2px);
}

.dl-term-hintnum-show {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease;
}

.dl-term-hintnum-pop {
    animation: dl-hintpop 260ms ease-out;
}

@keyframes dl-hintpop {
    0% { transform: translateY(0) scale(0.96); }
    60% { transform: translateY(0) scale(1.08); }
    100% { transform: translateY(0) scale(1); }
}

.dl-term-input:focus {
    outline: none;
    border-color: #2f6bff;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}

.dl-row-text {
    font-size: 16px;
    font-weight: 900;
    color: #334155;
    text-align: center;
}

.dl-row-anim {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-row-anim-stage {
    width: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px dashed #c7d2fe;
    border-radius: 14px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.dl-piecechip {
    width: 64px;
    min-height: 64px;
    border-radius: 999px;
    border: 2px dashed rgba(255, 77, 166, 0.65);
    background: #ffffff;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 8px;
    box-sizing: border-box;
}

.dl-piecechip-svg {
    width: 42px;
    height: 42px;
    display: block;
}

.dl-piecechip-badge {
    font-size: 12px;
    font-weight: 900;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 8px;
}

.dl-flypiece {
    position: fixed;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
    pointer-events: none;
}

.dl-dropzone {
    width: 100%;
    min-height: 64px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 2px dashed #c7d2fe;
    background: #f8fafc;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    touch-action: none;
}

.dl-dropzone-placeholder {
    font-size: 14px;
    font-weight: 900;
    color: #94a3b8;
    text-align: center;
}

.dl-dropzone-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dl-dropzone-empty .dl-dropzone-items {
    display: none;
}

.dl-dropzone-empty .dl-dropzone-placeholder {
    display: block;
}

.dl-dropzone:not(.dl-dropzone-empty) .dl-dropzone-placeholder {
    display: none;
}

.dl-dropzone-hover {
    border-style: solid;
    border-color: #2f6bff;
    background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}

.dl-answer {
    padding: 0 14px 14px;
}

.dl-answer-label {
    margin: 8px 0 6px;
    font-size: 14px;
    font-weight: 900;
    color: #64748b;
}

.dl-mid-op {
    font-size: 26px;
    font-weight: 900;
    color: #2f6bff;
}

.dl-row-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    text-align: right;
}

.dl-row-eq {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 26px;
    font-weight: 900;
    color: #111827;
    white-space: nowrap;
}

.dl-btn-step {
    min-width: 96px;
    padding: 10px 14px;
}

.dl-btn-disabled {
    opacity: 0.7;
}

.dl-tip-warn {
    color: #f97316;
}

.dl-shake {
    animation: dl-shake 420ms ease-in-out;
}

@keyframes dl-shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.dl-val {
    font-variant-numeric: tabular-nums;
}

.dl-row-hidden {
    display: none;
}

.dl-row-active {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.dl-visual {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 12px;
}

.dl-palette {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.dl-pal-add {
    display: flex;
    justify-content: center;
}

.dl-btn-add {
    font-weight: 900;
    color: #2f6bff;
}

.dl-hidden {
    display: none;
}

.dl-pal-card {
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.dl-pal-card-muted {
    opacity: 0.65;
}

.dl-pal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.dl-pal-label {
    font-size: 14px;
    font-weight: 900;
    color: #111827;
    white-space: nowrap;
}

.dl-pal-sub {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
}

.dl-pal-select {
    width: 140px;
    max-width: 56vw;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: 900;
    background: #f8fafc;
    color: #111827;
}

.dl-pal-input {
    width: 140px;
    max-width: 56vw;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: 900;
    background: #f8fafc;
    color: #111827;
    text-align: center;
}

.dl-pal-select:focus,
.dl-pal-input:focus {
    outline: none;
    border-color: #2f6bff;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}

.dl-pal-preview {
    width: 100%;
    height: 124px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
}

.dl-btn-mini {
    min-width: 44px;
    padding: 10px 10px;
    border-radius: 12px;
}

.dl-pal-addslot {
    width: 100%;
    border-radius: 14px;
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    min-height: 96px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.dl-pal-addslot:hover {
    border-color: #2f6bff;
    background: #eef2ff;
}

.dl-pal-plus {
    font-size: 34px;
    font-weight: 900;
    color: #2f6bff;
    line-height: 1;
}

.dl-pal-preview[data-empty="1"]::after {
    content: '先输入分几份';
    font-size: 14px;
    font-weight: 900;
    color: #94a3b8;
}

.dl-preview-circle::before,
.dl-preview-square::before {
    content: '';
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: repeating-conic-gradient(from 0deg,
        rgba(255, 77, 166, 0.92) 0deg calc(360deg / var(--dl-parts) / 2),
        rgba(255, 140, 210, 0.92) calc(360deg / var(--dl-parts) / 2) calc(360deg / var(--dl-parts))
    );
    border: none;
    box-shadow: none;
}

.dl-pal-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.dl-preview-square::before {
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 77, 166, 0.95), rgba(255, 140, 210, 0.95)),
        repeating-linear-gradient(to right, rgba(255, 255, 255, 0.75) 0 2px, rgba(255, 255, 255, 0) 2px calc(100% / var(--dl-parts)));
}

.dl-pal-help {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    margin: -2px 0 10px;
}

.dl-piece-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    touch-action: none;
    max-height: 170px;
    overflow: auto;
    padding-right: 4px;
}

.dl-piece {
    width: 84px;
    min-height: 64px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 8px;
    box-sizing: border-box;
    user-select: none;
    cursor: grab;
    touch-action: none;
}

.dl-piece:active {
    cursor: grabbing;
}


.dl-piece-svg {
    width: 46px;
    height: 46px;
    display: block;
}

.dl-piece-badge {
    font-size: 12px;
    font-weight: 900;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 8px;
}

.dl-ghost {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.92;
    transform: rotate(-1deg) scale(1.02);
    filter: drop-shadow(0 12px 20px rgba(17, 24, 39, 0.2));
}

.dl-tip {
    min-height: 20px;
    font-size: 14px;
    font-weight: 800;
    color: #6b7280;
    text-align: center;
}

.dl-circles {
    padding: 0 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dl-circles-head {
    font-size: 14px;
    font-weight: 900;
    color: #64748b;
}

.dl-circle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dl-circle-card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dl-circle-preview {
    width: 100%;
    height: 110px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.dl-circle-preview::before {
    content: '';
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: repeating-conic-gradient(from 0deg,
        #ff4da6 0deg calc(360deg / var(--dl-parts) / 2),
        #ff8cd2 calc(360deg / var(--dl-parts) / 2) calc(360deg / var(--dl-parts))
    );
}

.dl-circle-preview[data-empty="1"]::after {
    content: '先输入分几份';
    position: absolute;
    inset: auto 0 10px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
    color: #94a3b8;
}

.dl-circle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dl-circle-tag {
    font-size: 12px;
    font-weight: 900;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
}

.dl-circle-input {
    width: 120px;
    max-width: 40vw;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: 900;
    background: #ffffff;
    color: #111827;
    text-align: center;
}

.dl-circle-input:focus {
    outline: none;
    border-color: #2f6bff;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}

.dl-answer-x {
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}

.dl-ans {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 2px dashed #ff4da6;
    background: transparent;
    text-align: center;
}

.dl-answrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dl-controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px max(14px, env(safe-area-inset-right, 14px)) max(14px, env(safe-area-inset-bottom, 14px)) max(14px, env(safe-area-inset-left, 14px));
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.dl-step {
    font-size: 14px;
    font-weight: 900;
    color: #334155;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.dl-btn {
    cursor: pointer;
    user-select: none;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    color: #111827;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 900;
    min-width: 108px;
    min-height: 44px;
}

.dl-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.dl-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.dl-btn:active {
    transform: scale(0.98);
}

.dl-btn-ghost {
    border-color: transparent;
    background: transparent;
    min-width: auto;
    padding: 10px 12px;
}

.dl-btn-ghost:hover {
    background: #f1f5f9;
    border-color: transparent;
}

.dl-btn-primary {
    border-color: #2f6bff;
    background: #2f6bff;
    color: #ffffff;
}

.dl-btn-primary:hover {
    background: #2559d6;
    border-color: #2559d6;
}

.dl-shape {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 25%, #ffd1ff 0%, #ff6bd6 38%, #8b5cf6 100%);
    border: 2px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.18);
}

.dl-shape-quarter {
    clip-path: polygon(50% 50%, 100% 50%, 100% 0%, 50% 0%);
}

.dl-shape-half {
    clip-path: inset(0 0 0 50%);
}

.dl-shape-full {
    clip-path: inset(0 0 0 0);
}

.dl-shape-md {
    width: 72px;
    height: 72px;
}

.dl-shape-lg {
    width: 96px;
    height: 96px;
}

.dl-shape-xl {
    width: 120px;
    height: 120px;
}

.dl-shape-focus {
    outline: 4px solid rgba(47, 107, 255, 0.25);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .dl-main {
        flex-direction: column;
    }

    .dl-row {
        grid-template-columns: 1fr auto;
    }
}

@media (max-width: 900px) {
    .dl-circle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .dl-circle-grid {
        grid-template-columns: 1fr;
    }
    .dl-row {
        grid-template-columns: 1fr;
    }
    .dl-row-eq {
        font-size: 22px;
    }
}

@media (max-width: 520px) {
    .dl-equation {
        gap: 8px;
    }

    .dl-blank {
        width: 64px;
    }

    .dl-row-left {
        font-size: 18px;
    }

    .dl-row-right {
        font-size: 22px;
    }

    .dl-palette {
        grid-template-columns: 1fr;
    }

    .dl-piece-bank {
        max-height: 220px;
    }


    .dl-btn {
        min-width: 96px;
        padding: 12px 12px;
    }
}
