/* webapp/css/style.css - Libadwaita / GNOME styled Sudoku */

:root {
    --window-bg: #e2b97d;
    --window-fg: #1c140f;
    --headerbar-bg: rgba(226, 185, 125, 0.85);
    --headerbar-border: rgba(140, 95, 45, 0.25);
    --card-bg: rgba(255, 245, 230, 0.7);
    --card-border: rgba(140, 95, 45, 0.2);
    --cell-bg: rgba(255, 245, 230, 0.6);
    --cell-hover: rgba(255, 245, 230, 0.85);
    --cell-active: #f9eed7;
    --cell-active-shadow: 0 0 10px #d2a56d66;
    --cell-highlight: #fff5e3;
    --cell-highlight-shadow: 0 0 10px #d2a56d79;
    --cell-correct: rgba(168, 208, 78, 0.55);
    --cell-correct-highlight: rgba(190, 220, 90, 0.68);
    --cell-wrong: rgba(226, 116, 74, 0.55);
    --cell-wrong-highlight: rgba(236, 136, 96, 0.68);
    --cell-conflict: rgba(226, 116, 74, 0.45);
    --popover-bg: rgba(255, 227, 185, 0.95);
    --popover-btn-bg: rgba(255, 245, 230, 0.85);
    --popover-btn-hover: #ffffff;
    --entry-cell-color: rgba(28, 20, 15, 0.95);
    --clue-cell-color: rgba(28, 20, 15, 0.65);
    --note-cell-color: rgba(28, 20, 15, 0.75);
    --pill-btn-bg: rgba(255, 245, 230, 0.85);
    --pill-btn-hover: #ffffff;
    --pill-btn-active: #faeeda;
    --pill-btn-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    --suggested-btn-bg: #3584e4;
    --suggested-btn-fg: #ffffff;
    --suggested-btn-hover: #4892e8;
    --dialog-bg: #e8c693;
    --dialog-sheet-bg: #edd0a3;
    --modal-overlay: rgba(0, 0, 0, 0.45);
    --diagonal-tint: rgba(210, 165, 109, 0.22);
}

body.dark-mode {
    --window-bg: #553525;
    --window-fg: #fcf4eb;
    --headerbar-bg: rgba(85, 53, 37, 0.9);
    --headerbar-border: rgba(0, 0, 0, 0.35);
    --card-bg: rgba(236, 210, 180, 0.15);
    --card-border: rgba(236, 210, 180, 0.1);
    --cell-bg: rgba(236, 210, 180, 0.25);
    --cell-hover: rgba(236, 210, 180, 0.35);
    --cell-active: #e8cfae;
    --cell-active-shadow: 0 0 12px #e8cfae55;
    --cell-highlight: #9b7f72;
    --cell-highlight-shadow: 0 0 12px #e0c6a333;
    --cell-correct: rgba(150, 190, 110, 0.50);
    --cell-correct-highlight: rgba(172, 206, 126, 0.55);
    --cell-wrong: rgba(220, 130, 100, 0.55);
    --cell-wrong-highlight: rgba(236, 146, 116, 0.68);
    --cell-conflict: rgba(220, 130, 100, 0.48);
    --popover-bg: #3f2619;
    --popover-btn-bg: rgba(236, 210, 180, 0.25);
    --popover-btn-hover: rgba(236, 210, 180, 0.4);
    --entry-cell-color: rgba(252, 244, 235, 1);
    --clue-cell-color: rgba(252, 244, 235, 0.72);
    --note-cell-color: #ebd6c0;
    --pill-btn-bg: rgba(236, 210, 180, 0.25);
    --pill-btn-hover: rgba(236, 210, 180, 0.35);
    --pill-btn-active: #e8cfae;
    --pill-btn-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    --suggested-btn-bg: #3584e4;
    --suggested-btn-fg: #ffffff;
    --suggested-btn-hover: #4892e8;
    --dialog-bg: #40271b;
    --dialog-sheet-bg: #4a2e20;
    --modal-overlay: rgba(0, 0, 0, 0.65);
    --diagonal-tint: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: system-ui, -apple-system, "Cantarell", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--window-bg);
    color: var(--window-fg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* App Container (Emulates Adw.ApplicationWindow) */
.adw-window {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--window-bg);
}

/* HeaderBar */
.adw-headerbar {
    height: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background-color: var(--headerbar-bg);
    border-bottom: 1px solid var(--headerbar-border);
    backdrop-filter: blur(10px);
    z-index: 50;
    position: relative;
}

.header-start, .header-end {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.header-end {
    justify-content: flex-end;
}

.header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.window-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.window-subtitle {
    font-size: 11px;
    opacity: 0.75;
    line-height: 1.2;
    transition: opacity 0.2s;
}

/* Header Buttons */
.adw-btn {
    border: none;
    outline: none;
    background: transparent;
    color: var(--window-fg);
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.1s;
}

.adw-btn:hover {
    background-color: rgba(128, 128, 128, 0.18);
}

.adw-btn:active {
    background-color: rgba(128, 128, 128, 0.28);
    transform: scale(0.96);
}

.adw-btn.toggled {
    background-color: rgba(128, 128, 128, 0.28);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.adw-btn svg, .adw-btn img {
    width: 18px;
    height: 18px;
    fill: currentColor;
    color: currentColor;
}

/* Main Content Stack */
.adw-stack {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
}

.adw-page {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.adw-page.active {
    display: flex;
    opacity: 1;
}

/* Icon drop-shadow */
.icon-dropshadow {
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3)) drop-shadow(0 3px 20px rgba(0,0,0,0.2));
}

/* Main Menu */
#main-menu-page {
    text-align: center;
    gap: 16px;
}

.main-menu-icon {
    width: 230px;
    height: 230px;
    margin-bottom: 40px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-menu-icon:hover {
    transform: scale(1.03);
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 280px;
}

/* Pill Buttons */
.adw-pill {
    width: 100%;
    padding: 12px 32px;
    border-radius: 9999px;
    border: 1px solid var(--card-border);
    background-color: var(--pill-btn-bg);
    color: var(--window-fg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--pill-btn-shadow);
    transition: background-color 0.15s, transform 0.1s, box-shadow 0.15s;
    text-align: center;
}

.adw-pill:hover {
    background-color: var(--pill-btn-hover);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.adw-pill:active {
    background-color: var(--pill-btn-active);
    transform: scale(0.98);
}

.adw-pill.suggested {
    background-color: var(--suggested-btn-bg);
    color: var(--suggested-btn-fg);
    border-color: transparent;
}

.adw-pill.suggested:hover {
    background-color: var(--suggested-btn-hover);
}

/* Loading Page */
#loading-page {
    gap: 20px;
}

.spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(128, 128, 128, 0.25);
    border-top-color: var(--window-fg);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Game Page & Grid */
#game-page {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.game-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 560px;
    gap: 12px;
}

.adw-pill-mini {
    height: 32px;
    width: auto !important;
    padding: 0 14px;
    border-radius: 9999px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.aspect-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 3px solid rgba(110, 70, 30, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    background: rgba(140, 95, 45, 0.25);
    padding: 5px;
    display: flex;
}

body.dark-mode .aspect-container {
    border-color: rgba(236, 210, 180, 0.35);
    background: rgba(0, 0, 0, 0.3);
}

#sudoku-parent-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(9, 1fr);
    gap: 2px;
    padding: 0;
    background-color: transparent;
}

/* Cell Button */
.sudoku-cell {
    position: relative;
    border: 1px solid rgba(120, 80, 35, 0.22);
    outline: none;
    border-radius: 4px;
    background-color: var(--cell-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

body.dark-mode .sudoku-cell {
    border-color: rgba(236, 210, 180, 0.15);
}

/* 3x3 block gaps */
.sudoku-cell[data-c="2"], .sudoku-cell[data-c="5"] {
    margin-right: 5px;
}

.sudoku-cell[data-r="2"], .sudoku-cell[data-r="5"] {
    margin-bottom: 5px;
}

/* Mouse Controls Bar */
.mouse-controls-bar {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

.numpad-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 6px;
    width: 100%;
}

.numpad-btn {
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--pill-btn-bg);
    color: var(--window-fg);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.12s, transform 0.08s, box-shadow 0.12s;
}

.numpad-btn:hover:not(:disabled) {
    background: var(--pill-btn-hover);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.numpad-btn:active:not(:disabled) {
    background: var(--pill-btn-active);
    transform: translateY(1px);
}

.numpad-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.numpad-btn .corner-label {
    top: 2px;
    right: 4px;
}

.mouse-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.mouse-action-btn {
    flex: 1;
    max-width: 150px;
    height: 38px;
    width: auto;
    padding: 0 16px;
    border-radius: 9999px;
    border: 1px solid var(--card-border);
    background: var(--pill-btn-bg);
    color: var(--window-fg);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: var(--pill-btn-shadow);
    transition: background 0.15s, transform 0.1s;
}

.mouse-action-btn:hover {
    background: var(--pill-btn-hover);
}

.mouse-action-btn:active {
    transform: scale(0.97);
}

.mouse-action-btn.toggled {
    background: var(--cell-active);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mouse-action-btn img {
    width: 16px;
    height: 16px;
}

.sudoku-cell.diagonal-cell {
    position: relative;
}

.sudoku-cell.diagonal-cell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: var(--diagonal-tint);
    pointer-events: none;
}

.sudoku-cell:hover {
    background-color: var(--cell-hover);
}

.sudoku-cell:focus, .sudoku-cell.focused {
    background-color: var(--cell-active);
    box-shadow: var(--cell-active-shadow);
    z-index: 5;
}

.sudoku-cell.clue-cell {
    color: var(--clue-cell-color);
    font-weight: 700;
    cursor: default;
}

.sudoku-cell.entry-cell {
    color: var(--entry-cell-color);
}

.sudoku-cell.highlight {
    background-color: var(--cell-highlight);
    box-shadow: var(--cell-highlight-shadow);
}

.sudoku-cell.correct {
    background-color: var(--cell-correct) !important;
}

.sudoku-cell.correct.highlight {
    background-color: var(--cell-correct-highlight) !important;
}

.sudoku-cell.wrong {
    background-color: var(--cell-wrong) !important;
}

.sudoku-cell.wrong.highlight {
    background-color: var(--cell-wrong-highlight) !important;
}

.sudoku-cell.conflict {
    background-color: var(--cell-conflict) !important;
    animation: conflictPulse 2.5s infinite;
}

@keyframes conflictPulse {
    0%, 100% { background-color: var(--cell-conflict); }
    50% { background-color: var(--cell-wrong-highlight); }
}

/* Notes inside cell */
.notes-grid {
    position: absolute;
    inset: 3px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    pointer-events: none;
}

.note-cell-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--note-cell-color);
    line-height: 1;
}

/* Popover Number Picker */
.sudoku-popover {
    position: fixed;
    z-index: 100;
    background: var(--popover-bg);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--card-border);
    backdrop-filter: blur(16px);
    display: none;
    flex-direction: column;
    gap: 8px;
    animation: popIn 0.15s cubic-bezier(0, 0, 0.2, 1);
}

.sudoku-popover.active {
    display: flex;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.popover-grid {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    grid-template-rows: repeat(3, 44px);
    gap: 6px;
}

.popover-btn {
    position: relative;
    border: none;
    outline: none;
    border-radius: 8px;
    background: var(--popover-btn-bg);
    color: var(--window-fg);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, transform 0.08s;
}

.popover-btn:hover:not(:disabled) {
    background: var(--popover-btn-hover);
    transform: scale(1.05);
}

.popover-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.corner-label {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    font-weight: 700;
    opacity: 0.65;
}

.popover-actions {
    display: flex;
    gap: 6px;
}

.popover-action-btn {
    flex: 1;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: var(--popover-btn-bg);
    color: var(--window-fg);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s;
}

.popover-action-btn:hover {
    background: var(--popover-btn-hover);
}

/* Dropdown Menu (Primary) */
.dropdown-menu {
    position: absolute;
    top: 52px;
    right: 12px;
    background: var(--dialog-sheet-bg);
    color: var(--window-fg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--card-border);
    padding: 6px;
    min-width: 220px;
    z-index: 90;
    display: none;
    flex-direction: column;
    animation: menuFade 0.15s ease-out;
}

.dropdown-menu.active {
    display: flex;
}

@keyframes menuFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-item {
    padding: 10px 14px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--window-fg);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
}

.menu-item:hover {
    background: rgba(128, 128, 128, 0.18);
}

.menu-separator {
    height: 1px;
    background: var(--card-border);
    margin: 4px 0;
}

/* Modals & Dialogs (Libadwaita Dialog Style) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.adw-dialog {
    background: var(--dialog-bg);
    color: var(--window-fg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--card-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dialogPop 0.2s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes dialogPop {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.dialog-header {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--card-border);
}

.dialog-title {
    font-size: 16px;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

.dialog-content {
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Boxed Lists (Adwaita ListBox) */
.boxed-list {
    background: var(--dialog-sheet-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
}

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--card-border);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.12s;
}

.list-row:last-child {
    border-bottom: none;
}

.list-row:hover {
    background: rgba(128, 128, 128, 0.1);
}

.row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.row-title {
    font-weight: 600;
}

.row-subtitle {
    font-size: 12px;
    opacity: 0.7;
}

/* Radio buttons & Switches */
.adw-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--window-fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.adw-radio.checked::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--suggested-btn-bg);
}

.adw-switch {
    width: 44px;
    height: 24px;
    background: rgba(128, 128, 128, 0.35);
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.adw-switch.checked {
    background: var(--suggested-btn-bg);
}

.switch-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.adw-switch.checked .switch-thumb {
    transform: translateX(20px);
}

/* Spinbox */
.adw-spinbox {
    display: inline-flex;
    align-items: center;
    background: rgba(128, 128, 128, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.spin-btn {
    border: none;
    background: transparent;
    color: var(--window-fg);
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

.spin-btn:hover {
    background: rgba(128, 128, 128, 0.2);
}

.spin-value {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

/* How to Play Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-slides {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 20px;
    gap: 16px;
}

.carousel-slide img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}

.carousel-slide h3 {
    font-size: 18px;
    font-weight: 700;
}

.carousel-slide p {
    font-size: 14px;
    opacity: 0.8;
    max-width: 360px;
    line-height: 1.4;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

.carousel-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.dot.active {
    background: var(--window-fg);
    transform: scale(1.2);
}

.circular-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pill-btn-bg);
    border: 1px solid var(--card-border);
    color: var(--window-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.circular-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Celebration & Game Over pages */
.finished-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    max-width: 400px;
}

.finished-card img {
    max-width: 240px;
    max-height: 240px;
    object-fit: contain;
}

.finished-card h1 {
    font-size: 26px;
    font-weight: 800;
}

/* Shortcuts Dialog Table */
.shortcuts-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shortcuts-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.65;
    margin-top: 8px;
}

.shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--dialog-sheet-bg);
    border-radius: 8px;
    font-size: 13px;
}

.shortcut-key {
    background: rgba(128, 128, 128, 0.25);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
}

/* Responsive Modes */
@media (min-width: 800px) and (min-height: 800px) {
    .sudoku-cell {
        font-size: 32px;
    }
    .note-cell-label {
        font-size: 15px;
    }
    #sudoku-parent-grid {
        padding: 40px;
    }
}

@media (max-width: 650px) or (max-height: 700px) {
    #sudoku-parent-grid {
        padding: 16px;
        gap: 8px;
    }
    .sudoku-block {
        gap: 2px;
    }
    .sudoku-cell {
        font-size: 20px;
    }
    .note-cell-label {
        font-size: 10px;
    }
}

@media (max-width: 550px) or (max-height: 550px) {
    #sudoku-parent-grid {
        padding: 8px;
        gap: 6px;
    }
    .sudoku-cell {
        font-size: 17px;
    }
    .note-cell-label {
        font-size: 8px;
    }
}
