/**
 * Letter Boxed Game — Cute Pink v1.3
 * Font: Poppins | 100vw × 100vh | Reference-matched layout
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,500&display=swap');

/* ─────────────────────────────────────────────────────────────── */
/* Variables                                                        */
/* ─────────────────────────────────────────────────────────────── */
#letter-boxed-game {
    --bg:           #FF6B8A;       /* vivid cute pink background   */
    --bg2:          #FF6B8A;       /* lighter pink accents         */
    --deep:         #c0405e;       /* deep rose — text & accents   */
    --mid:          #d96080;       /* medium pink                  */
    --pale:         #fde8ed;       /* very light pink fill         */
    --glass:        rgba(255,255,255,0.60);
    --glass-h:      rgba(255,255,255,0.85);
    --white:        #ffffff;
    --black:        #1c1c1e;
    --gray:         #888;
    --green:        #4caf7d;
    --dot:          #d4d4d4;
    --dot-s:        #b8b8b8;
    --sh:           0 3px 14px rgba(176,50,80,0.18);
    --sh-h:         0 6px 22px rgba(176,50,80,0.30);
    --r:            100px;          /* pill radius                  */
    --rc:           20px;           /* card radius                  */
    --font:         'Poppins', system-ui, sans-serif;
}

/* ─────────────────────────────────────────────────────────────── */
/* Full-viewport container                                          */
/* ─────────────────────────────────────────────────────────────── */
.lbg-container {
    font-family: var(--font);
    width:  100vw;
    height: auto;
    min-height: unset;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 50px 16px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.lbg-container * { box-sizing: border-box; }

/* ─────────────────────────────────────────────────────────────── */
/* Header — single row: Hint | Tabs (center) | Stats               */
/* ─────────────────────────────────────────────────────────────── */
.lbg-header-tabs { display: none; } /* not used */

.lbg-header {
    width: 100%;
    max-width: 600px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-shrink: 0;
    padding: 0 2px;
}

/* Hint on the left */
.lbg-header > #lbg-hint-btn {
    justify-self: start;
}

/* Tabs perfectly centered */
.lbg-header-center {
    display: flex;
    justify-content: center;
}

/* Stats on the right */
.lbg-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
}






/* Hint & Stats buttons */
.lbg-stats-capsule,
.lbg-btn-hint-header {
    pointer-events: all;
    font-family: var(--font);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: #ffffff;
    color: var(--black);
    border: none;
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--sh);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    white-space: nowrap;
    margin: 0 !important;
}

.lbg-stats-capsule:hover,
.lbg-btn-hint-header:hover {
    background: #f5f5f5;
    box-shadow: var(--sh-h);
    transform: translateY(-2px);
    color: var(--deep);
}

.lbg-stats-capsule svg,
.lbg-btn-hint-header svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────── */
/* Mode tabs                                                        */
/* ─────────────────────────────────────────────────────────────── */
.lbg-mode-selector {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.22);
    border-radius: 100px;
    padding: 4px;
    gap: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    flex-shrink: 1;
    min-width: 0;
}

.lbg-mode-btn {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    background: transparent;
    border: none;
    border-radius: 100px;
    padding: 6px 13px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 1;
    line-height: 1;
}

.lbg-mode-btn.active {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 1px 6px rgba(0,0,0,0.18);
    font-weight: 700;
}

.lbg-mode-btn:hover:not(.active) {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
}






/* ─────────────────────────────────────────────────────────────── */
/* Instruction pill                                                 */
/* ─────────────────────────────────────────────────────────────── */
.lbg-instruction {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.22);
    color: #ffffff;
    padding: 12px 26px;
    border-radius: var(--r);
    font-size: 14px;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
    flex-shrink: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    letter-spacing: 0.2px;
}

/* ─────────────────────────────────────────────────────────────── */
/* Progress — "0 of 12 letters used" left, "0 words" right         */
/* Shown ABOVE the board, matching reference image                  */
/* ─────────────────────────────────────────────────────────────── */
.lbg-progress {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0;
    margin-top: 4px;
    flex-shrink: 0;
    opacity: 0.9;
    padding: 0 2px;
}

#lbg-letters-used {
    font-weight: 700;
    color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────── */
/* Board                                                            */
/* ─────────────────────────────────────────────────────────────── */
.lbg-board-wrapper {
    position: relative;
    width:  min(340px, 60vw, 44vh);
    height: min(340px, 60vw, 44vh);
    margin: 2px auto 6px;
    flex-shrink: 1;
}

.lbg-board { width: 100%; height: 100%; display: block; }

/* Square — soft white */
.lbg-board-square {
    fill: #ffffff;
    stroke: #b06070;
    stroke-width: 1.5;
}

/* Edge dots — grey */
.lbg-corner-circle,
.lbg-edge-circle {
    fill: var(--dot);
    stroke: var(--dot-s);
    stroke-width: 1;
}

/* Letters — deep rose, Poppins bold */
.lbg-letter-text {
    font-family: var(--font);
    font-size: 24px;
    font-weight: 700;
    fill: #1a1a1a;
    cursor: pointer;
    user-select: none;
    transition: fill 0.13s;
}

.lbg-letter-text:hover    { fill: #2e7d32; }
.lbg-letter-text.selected { fill: #2e7d32; }
.lbg-letter-text.used     { fill: var(--green); }
.lbg-letter-text.hint     { fill: #d4860a; animation: pulse-hint 1s infinite; }

@keyframes pulse-hint {
    0%,100% { opacity:1; }
    50%     { opacity:.4; }
}

.lbg-inner-dot { fill: #cbcbcb; }

/* Selected dot — dark fill to show active letter */
.lbg-edge-circle.selected,
.lbg-corner-circle.selected {
    fill: #4caf50;
    stroke: #388e3c;
}

/* Draw line */
.lbg-line {
    stroke: var(--mid);
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
    opacity: 0.6;
    stroke-dasharray: 6 3;
    animation: dash 0.45s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -9; } }

/* ─────────────────────────────────────────────────────────────── */
/* Current word display                                             */
/* ─────────────────────────────────────────────────────────────── */
.lbg-current-word {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

#lbg-current-word-text {
    font-family: var(--font);
    font-size: 26px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 5px;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────── */
/* Action Buttons — Delete · Submit · Restart                       */
/* ─────────────────────────────────────────────────────────────── */
.lbg-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: nowrap;
}

.lbg-btn {
    font-family: var(--font);
    padding: 13px 28px;
    border: none;
    border-radius: var(--r);
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: var(--sh);
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

/* ── Delete ── frosted glass white */
#lbg-delete-btn {
    background: #ffffff;
    color: #1a1a1a;
    border: 2.5px solid rgba(0,0,0,0.18);
    font-weight: 700;
}
#lbg-delete-btn:hover {
    background: #f0f0f0;
    border-color: rgba(0,0,0,0.28);
    box-shadow: var(--sh-h);
    transform: translateY(-2px);
    color: #1a1a1a;
}

/* ── Submit Word ── solid deep pink */
#lbg-submit-btn {
    background: #8B1A38;
    color: #ffffff;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(80,10,30,0.45);
}
#lbg-submit-btn:hover {
    background: #6d0f28;
    box-shadow: 0 7px 24px rgba(80,10,30,0.55);
    transform: translateY(-2px);
}

/* ── Restart ── frosted glass white */
#lbg-restart-btn {
    background: #ffffff;
    color: #1a1a1a;
    border: 2.5px solid rgba(0,0,0,0.18);
    font-weight: 700;
}
#lbg-restart-btn:hover {
    background: #f0f0f0;
    border-color: rgba(0,0,0,0.28);
    box-shadow: var(--sh-h);
    transform: translateY(-2px);
    color: #1a1a1a;
}

/* generic fallbacks */
.lbg-btn-primary {
    background: var(--mid);
    color: var(--white);
}
.lbg-btn-primary:hover {
    background: var(--deep);
    transform: translateY(-2px);
    box-shadow: var(--sh-h);
}

.lbg-btn-secondary {
    background: rgba(255,255,255,0.68);
    color: var(--black);
    backdrop-filter: blur(6px);
}
.lbg-btn-secondary:hover {
    background: var(--white);
    color: var(--deep);
    transform: translateY(-1px);
}

.lbg-btn-hint {
    background: rgba(255,255,255,0.68);
    color: var(--deep);
}
.lbg-btn-hint:hover {
    background: var(--white);
    color: var(--deep);
}

.lbg-btn-link {
    background: transparent;
    color: var(--deep);
    box-shadow: none;
    opacity: 0.75;
}

.lbg-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

/* ─────────────────────────────────────────────────────────────── */
/* Word chain                                                       */
/* ─────────────────────────────────────────────────────────────── */
.lbg-word-chain {
    background: rgba(255,255,255,0.55);
    border-radius: var(--rc);
    padding: 8px 16px;
    margin-bottom: 8px;
    min-width: 260px;
    max-width: 400px;
    box-shadow: var(--sh);
    flex-shrink: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lbg-chain-label {
    font-size: 10px;
    color: var(--deep);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 6px;
    font-weight: 700;
    opacity: 0.65;
}

#lbg-chain-words {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.lbg-chain-word {
    background: var(--pale);
    color: var(--deep);
    padding: 4px 14px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─────────────────────────────────────────────────────────────── */
/* Level / Archive selectors                                        */
/* ─────────────────────────────────────────────────────────────── */
.lbg-level-selector {
    display: block;
    margin-bottom: 8px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 50;
    flex-shrink: 0;
}

.lbg-archive-selector,
.lbg-difficulty-selector {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 50;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* Level selects are hidden — button UI replaces them */
.lbg-level-selector select,
.lbg-difficulty-selector select { display: none; }

/* Archive select is hidden from native view — custom select widget shows it */
.lbg-archive-selector select { display: none; }


.lbg-custom-select {
    font-family: var(--font);
    flex: 1 1 140px;
    min-width: 120px;
    position: relative;
    user-select: none;
}

.lbg-select-trigger {
    background: rgba(255,255,255,0.70);
    color: var(--black);
    padding: 10px 18px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--sh);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1.5px solid rgba(255,255,255,0.9);
    transition: all 0.2s;
    height: 100%;
    font-family: var(--font);
    backdrop-filter: blur(6px);
}

.lbg-select-trigger:hover { background: var(--white); box-shadow: var(--sh-h); }

.lbg-custom-select.open .lbg-select-trigger {
    background: var(--white);
    border-radius: var(--r) var(--r) 0 0;
}

.lbg-select-trigger::after {
    content: '';
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--deep);
    margin-left: 10px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.lbg-custom-select.open .lbg-select-trigger::after { transform: rotate(180deg); }

.lbg-select-options {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-radius: 0 0 var(--rc) var(--rc);
    box-shadow: 0 10px 24px rgba(176,50,80,0.15);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 100;
}

.lbg-custom-select.open .lbg-select-options {
    max-height: 220px;
    opacity: 1;
    overflow-y: auto;
}

.lbg-select-option {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--black);
    font-family: var(--font);
    transition: background 0.12s;
}

.lbg-select-option:hover    { background: var(--pale); color: var(--deep); }
.lbg-select-option.selected { background: var(--pale); color: var(--deep); font-weight: 700; }
.lbg-select-option.disabled { opacity: 0.4; cursor: not-allowed; }

.lbg-select-options::-webkit-scrollbar { width: 4px; }
.lbg-select-options::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 4px; }

/* ─────────────────────────────────────────────────────────────── */
/* Timer                                                            */
/* ─────────────────────────────────────────────────────────────── */
.lbg-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--deep);
    background: rgba(255,255,255,0.65);
    padding: 7px 14px;
    border-radius: var(--r);
    backdrop-filter: blur(6px);
}

.lbg-timer-control {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.65);
    padding: 0 14px;
    border-radius: var(--r);
    box-shadow: var(--sh);
    flex: 0 0 auto;
    white-space: nowrap;
    height: 42px;
    backdrop-filter: blur(6px);
}

.lbg-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    user-select: none;
    font-family: var(--font);
}

.lbg-toggle {
    position: relative;
    display: inline-block;
    width: 36px; height: 20px;
}

.lbg-toggle input { opacity: 0; width: 0; height: 0; }

.lbg-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--dot);
    transition: .3s;
    border-radius: 20px;
}

.lbg-toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px; width: 14px;
    left: 3px; bottom: 3px;
    background: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

input:checked + .lbg-toggle-slider          { background: var(--mid); }
input:checked + .lbg-toggle-slider:before   { transform: translateX(16px); }

/* ─────────────────────────────────────────────────────────────── */
/* Modals                                                           */
/* ─────────────────────────────────────────────────────────────── */
.lbg-modal {
    position: fixed;
    inset: 0;
    background: rgba(192,64,94,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lbg-modal-content {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    max-width: 360px;
    width: 90%;
    position: relative;
    box-shadow: 0 18px 50px rgba(192,64,94,0.28);
    animation: modal-in 0.24s ease;
}

@keyframes modal-in {
    from { opacity:0; transform: scale(.88) translateY(20px); }
    to   { opacity:1; transform: scale(1)   translateY(0);    }
}

.lbg-modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--gray);
    line-height: 1;
    transition: color 0.15s;
}
.lbg-modal-close:hover { color: var(--deep); }

.lbg-modal-title {
    display: block;
    margin: 0 0 20px;
    color: var(--deep);
    font-size: 20px;
    text-align: center;
    font-family: var(--font);
    font-weight: 700;
}

.lbg-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.lbg-stat { text-align: center; }

.lbg-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--deep);
    font-family: var(--font);
}

.lbg-stat-label {
    display: block;
    font-size: 10px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-top: 4px;
    font-weight: 600;
}

.lbg-win-content { text-align: center; }

.lbg-win-content .lbg-modal-title {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--deep);
    font-family: var(--font);
    font-weight: 700;
}

.lbg-win-content p {
    font-size: 16px;
    color: var(--black);
    margin-bottom: 22px;
}

/* ─────────────────────────────────────────────────────────────── */
/* Toast                                                            */
/* ─────────────────────────────────────────────────────────────── */
.lbg-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--deep);
    color: var(--white);
    padding: 12px 26px;
    border-radius: var(--r);
    z-index: 10000;
    animation: toast-in 0.28s ease;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 5px 22px rgba(192,64,94,0.35);
    white-space: nowrap;
}

.lbg-toast.success { background: #27ae60; }

@keyframes toast-in {
    from { opacity:0; transform: translateX(-50%) translateY(16px); }
    to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

/* ─────────────────────────────────────────────────────────────── */
/* No puzzle message                                                */
/* ─────────────────────────────────────────────────────────────── */
.lbg-message {
    background: rgba(255,255,255,0.65);
    border-radius: var(--rc);
    padding: 20px 28px;
    margin: 14px 0;
    box-shadow: var(--sh);
    max-width: 360px;
    text-align: center;
    backdrop-filter: blur(6px);
}

.lbg-message p {
    margin: 0;
    color: var(--deep);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────── */
/* Confetti                                                         */
/* ─────────────────────────────────────────────────────────────── */
.lbg-confetti {
    position: fixed;
    width: 8px; height: 8px;
    pointer-events: none;
    z-index: 10001;
    border-radius: 2px;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0%   { opacity:1; transform: translateY(0)     rotate(0deg); }
    100% { opacity:0; transform: translateY(100vh) rotate(720deg); }
}

/* ─────────────────────────────────────────────────────────────── */
/* Mobile                                                           */
/* ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .lbg-container { padding: 50px 10px; height: auto; min-height: unset; justify-content: flex-start; overflow: visible; }
    .lbg-header    { margin-bottom: 6px; gap: 5px; }

    .lbg-instruction    { font-size: 12px; padding: 9px 16px; margin-bottom: 4px; }

    .lbg-board-wrapper  { width: min(260px, 76vw, 38vh); height: min(260px, 76vw, 38vh); margin: 0 auto 4px; }
    .lbg-letter-text    { font-size: 19px; }
    #lbg-current-word-text { font-size: 20px; letter-spacing: 4px; }

    .lbg-actions        { gap: 8px; margin-bottom: 4px; }
    .lbg-btn            { padding: 10px 16px; font-size: 13px; }

    .lbg-word-chain     { margin-bottom: 4px; }
    .lbg-progress       { margin-top: 2px; }

    .lbg-level-selector,
    .lbg-archive-selector { margin-bottom: 6px; gap: 6px; }

    .lbg-stats-grid     { grid-template-columns: repeat(2,1fr); gap: 12px; }
    .lbg-modal-content  { padding: 22px; width: 95%; }
}

@media (max-width: 360px) {
    .lbg-container      { padding: 8px 8px 0; }
    .lbg-board-wrapper  { width: min(235px, 82vw, 36vh); height: min(235px, 82vw, 36vh); }
    .lbg-letter-text    { font-size: 17px; }
    .lbg-btn            { padding: 9px 12px; font-size: 12px; }
}

/* Tall screens */
@media (min-height: 800px) {
    .lbg-board-wrapper  { width: min(330px, 56vw, 40vh); height: min(330px, 56vw, 40vh); }
    .lbg-letter-text    { font-size: 26px; }
}

/* ── Difficulty pill buttons ─────────────────────────────────────────────── */
.lbg-difficulty-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
    padding: 0 2px;
}

/* Inactive diff button — solid white bg with dark text = always readable */
.lbg-diff-btn {
    padding: 7px 18px;
    border: none;
    border-radius: 100px;
    background: rgba(255,255,255,0.28);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.lbg-diff-btn:hover {
    background: rgba(255,255,255,0.45);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Active diff button — pure white with dark text = maximum contrast */
.lbg-diff-btn.active {
    background: #ffffff;
    color: #8B1A38;
    box-shadow: 0 3px 12px rgba(0,0,0,0.20);
    transform: translateY(-1px);
}

/* ── Next Puzzle row ─────────────────────────────────────────────────────── */
.lbg-next-puzzle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

/* Level info badge */
.lbg-level-info {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.22);
    padding: 7px 16px;
    border-radius: 100px;
    color: #ffffff;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.lbg-level-label {
    opacity: 0.8;
    font-weight: 500;
}

#lbg-current-level-num {
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
}

/* Next Puzzle button */
.lbg-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    background: #ffffff;
    color: #8B1A38;
    border: none;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(0,0,0,0.18);
    transition: all 0.18s ease;
    white-space: nowrap;
}

.lbg-next-btn:hover {
    background: #fff0f3;
    box-shadow: 0 5px 20px rgba(0,0,0,0.22);
    transform: translateY(-2px);
}

.lbg-next-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .lbg-diff-btn      { padding: 6px 13px; font-size: 12px; }
    .lbg-next-btn      { padding: 8px 16px; font-size: 13px; }
    .lbg-level-info    { padding: 6px 12px; font-size: 12px; }
    #lbg-current-level-num { font-size: 14px; }
    .lbg-next-puzzle-row { gap: 8px; }
    .lbg-difficulty-pills { gap: 5px; }
}

@media (max-width: 360px) {
    .lbg-diff-btn   { padding: 5px 10px; font-size: 11px; }
    .lbg-next-btn   { padding: 7px 13px; font-size: 12px; }
}
