@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ROCKMONEY CHESS KINGDOM - BLUE EDITION
   Complete replacement stylesheet.
   Board markup: .chessboard > .square
*/

:root {
    --bg: #eef4fb;
    --surface: #ffffff;
    --surface2: #e4eef8;
    --text: #172638;
    --muted: #68798b;
    --line: #cbd8e5;
    --blue: #006b9d;
    --blue-dark: #004d73;
    --blue-deep: #073b59;
    --blue-mid: #1687bd;
    --blue-light: #9bcafa;
    --blue-pale: #e8f4ff;
    --lightSq: #9bcafa;
    --darkSq: #006b9d;
    --green: #15966b;
    --danger: #d94b55;
    --shadow: 0 16px 42px rgba(19, 55, 83, .13);
    --button-gradient: linear-gradient(135deg, #006b9d 0%, #168fc4 55%, #39a9d9 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f7faff 0%, var(--bg) 100%);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
}
button, select, input { font: inherit; }
button { cursor: pointer; color: inherit; }
.app-shell { max-width: 1180px; margin: auto; padding: 0 28px; }

/* HEADER */
.topbar {
    min-height: 76px; display: flex; align-items: center;
    justify-content: space-between; border-bottom: 1px solid var(--line);
}
.brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--text);
    font-weight: 700; letter-spacing: 1.5px;
}
.brand-crown { font-size: 34px; color: var(--blue); }
.brand small {
    display: block; margin-top: 3px; color: var(--muted);
    font-size: 9px; letter-spacing: 3px;
}
.top-actions { display: flex; gap: 9px; }
.icon-btn {
    width: 40px; height: 40px; border: 1px solid #00517a;
    border-radius: 10px; background: var(--button-gradient);
    color: #fff; font-size: 19px;
    box-shadow: 0 3px 8px rgba(0, 65, 100, .16);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.icon-btn:hover { filter: brightness(.92); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.96); }

/* SCREENS */
.screen { display: none; padding: 38px 0 52px; }
.screen.active { display: block; }
.eyebrow {
    color: var(--blue); font-size: 10px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
}

/* HOME */
.hero { text-align: center; padding: 24px 0 34px; }
.hero h1, .section-head h1 {
    margin: 14px 0; font: 700 clamp(34px, 5vw, 54px)/1.12 'Playfair Display', serif;
}
.hero h1 span { color: var(--blue); }
.hero p, .section-head p {
    max-width: 550px; margin: 0 auto; color: var(--muted); line-height: 1.7;
}
.mode-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px; max-width: 850px; margin: 0 auto;
}
.mode-card {
    min-height: 220px; display: flex; flex-direction: column; padding: 26px;
    border: 1px solid #b9d4e8; border-radius: 18px;
    background: linear-gradient(145deg, #fff, #eaf5fd);
    text-align: left; transition: .2s ease;
}
.mode-card:hover {
    transform: translateY(-3px); border-color: var(--blue-mid); box-shadow: var(--shadow);
}
.mode-card.featured {
    border-color: var(--blue); background: linear-gradient(145deg, #e1f2ff, #c5e4fa);
}
.mode-art { margin-bottom: 14px; color: var(--blue); font-size: 36px; }
.mode-title { font: 700 25px 'Playfair Display', serif; }
.mode-desc { margin: 8px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.mode-cta {
    margin-top: auto; color: var(--blue); font-size: 10px;
    font-weight: 700; letter-spacing: 1.5px;
}
.mode-cta b { float: right; font-size: 16px; }
.home-lower {
    display: grid; grid-template-columns: 1.5fr 1fr;
    gap: 18px; max-width: 850px; margin: 20px auto 0;
}
.panel {
    padding: 20px; border: 1px solid var(--line); border-radius: 16px;
    background: var(--surface); box-shadow: 0 5px 18px rgba(20, 55, 80, .045);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.panel h2 { margin: 7px 0 15px; font: 600 22px 'Playfair Display', serif; }
.rank-gem { color: var(--blue); font-size: 34px; }
.progress-line { height: 7px; overflow: hidden; border-radius: 10px; background: var(--surface2); }
.progress-line span {
    display: block; width: 0; height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    transition: width .3s;
}
.progress-meta {
    display: flex; justify-content: space-between; gap: 10px;
    margin-top: 12px; color: var(--muted); font-size: 11px;
}
.text-btn { border: 0; background: none; color: var(--blue); font-size: 12px; }
.text-btn:hover { color: var(--blue-dark); }
.quick-panel { display: flex; flex-direction: column; gap: 10px; }
.quick-link {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border: 1px solid #c6ddec; border-radius: 10px;
    background: #eaf5fd; text-align: left; transition: .18s ease;
}
.quick-link:hover { border-color: var(--blue); background: #d9edfb; }
.quick-link span { flex: 1; font-size: 13px; }
.quick-link b { color: var(--blue); }

/* SECTION / LEVELS */
.section-head { margin-bottom: 25px; }
.section-head h1 { font-size: 40px; }
.section-head p { margin: 0; }
.back-btn {
    padding: 0 0 18px; border: 0; background: none;
    color: var(--muted); font-size: 12px;
}
.back-btn:hover { color: var(--blue); }
.level-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.level-card {
    min-height: 145px; padding: 17px; border: 1px solid var(--line);
    border-radius: 14px; background: #fff; text-align: left; transition: .18s ease;
}
.level-card.available { cursor: pointer; }
.level-card.available:hover {
    transform: translateY(-2px); border-color: var(--blue);
    box-shadow: 0 7px 18px rgba(0, 107, 157, .10);
}
.level-card.locked { opacity: .48; cursor: not-allowed; }
.level-num { color: var(--muted); font-size: 10px; letter-spacing: 2px; }
.level-icon { margin: 8px 0; color: var(--blue); font-size: 27px; }
.level-card h3 { margin: 0 0 6px; font: 600 15px 'Playfair Display', serif; }
.level-card small { color: var(--muted); }
.level-state {
    display: block; margin-top: 12px; color: var(--green);
    font-size: 10px; font-weight: 700;
}
.level-card.locked .level-state { color: var(--muted); }

/* GAME HEADING / LAYOUT */
.game-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.game-heading .back-btn { padding: 0; }
.game-heading > div { flex: 1; }
.game-heading h2 { margin: 5px 0; font: 600 22px 'Playfair Display', serif; }
.game-heading-actions { display: flex; align-items: center; gap: 8px; }
.game-layout {
    display: grid; grid-template-columns: minmax(280px, 620px) minmax(240px, 1fr);
    gap: 22px; align-items: start;
}
.board-wrap { width: 100%; max-width: 620px; margin: auto; }
.player-strip { height: 53px; display: flex; align-items: center; gap: 10px; padding: 5px 8px; }
.avatar {
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 10px; background: var(--blue-deep); color: #fff; font-size: 24px;
}
.white-avatar { background: #dceeff; color: var(--blue-dark); }
.player-strip small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.turn-dot {
    width: 8px; height: 8px; margin-left: auto;
    border-radius: 50%; background: transparent;
}
.turn-dot.active { background: var(--green); box-shadow: 0 0 10px rgba(21, 150, 107, .45); }

/* FINAL CHESSBOARD: exact 8x8 blue palette */
.chessboard, #board {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(8, minmax(0, 1fr)) !important;
    width: 100%; max-width: 100%; aspect-ratio: 1 / 1;
    gap: 0 !important; padding: 0;
    overflow: hidden; border: 2px solid #101820;
    border-radius: 4px; background: #101820;
    box-shadow: 0 7px 22px rgba(0, 50, 80, .22);
    touch-action: manipulation;
}
.chessboard > *, #board > * {
    position: relative; display: grid; place-items: center;
    min-width: 0; min-height: 0; aspect-ratio: 1 / 1;
    overflow: hidden; padding: 0;
    border: 0.65px solid #101820 !important;
    border-radius: 0 !important; line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.square.light { background: #9bcafa !important; }
.square.dark { background: #006b9d !important; }
.square .chess-piece-svg {
    position: relative; z-index: 2; display: block;
    width: 94%; height: 96%; max-width: 100%; max-height: 100%;
    overflow: visible; pointer-events: none;
    filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .28));
    transition: transform .18s ease;
}
.chess-piece-svg .piece-shape {
    stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round;
    paint-order: stroke fill;
}
.chess-piece-svg.piece-white .piece-shape { fill: #fff !important; stroke: #101820 !important; }
.chess-piece-svg.piece-black .piece-shape { fill: #050505 !important; stroke: #fff !important; }
.chess-piece-svg .piece-eye { fill: #fff; stroke: #101820; }
.square .piece { position: relative; z-index: 2; display: block; line-height: 1; user-select: none; }
.square .piece-white { color: #fff; -webkit-text-stroke: 1.2px #101820; text-shadow: 0 2px 2px rgba(0,0,0,.35); }
.square .piece-black { color: #050505; -webkit-text-stroke: 1.2px #fff; text-shadow: 0 2px 2px rgba(0,0,0,.35); }

/* Coordinates generated by app.js inside squares */
.square .coord, .square .coordinate {
    position: absolute; z-index: 4; top: 2px; left: 3px;
    color: #17344b; font: 700 clamp(8px, 1.5vw, 12px) Arial, sans-serif;
    line-height: 1; opacity: .9; pointer-events: none;
}
.square.dark .coord, .square.dark .coordinate { color: #f4fbff; }
.board-coordinates { color: #fff; font-weight: 800; text-shadow: 0 1px 3px #003e60; }

.square.selected::after {
    position: absolute; z-index: 3; inset: 0;
    border: 3px solid #ffe36a; background: rgba(255, 227, 106, .27);
    content: ""; pointer-events: none;
}
.square.target::before {
    position: absolute; z-index: 3; width: 24%; height: 24%;
    border-radius: 50%; background: rgba(0, 29, 46, .48);
    content: ""; pointer-events: none;
}
.square.capture-target::before {
    position: absolute; z-index: 3; inset: 4%;
    border: 4px solid #d52b36; border-radius: 50%;
    content: ""; pointer-events: none;
}
.square:active { filter: brightness(1.08); }
.square.selected .chess-piece-svg { transform: translateY(-2px) scale(1.04); }

/* SIDE PANELS */
.game-side { display: flex; flex-direction: column; gap: 13px; }
.status-panel h3 { margin: 9px 0 5px; font: 600 20px 'Playfair Display', serif; }
.status-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.control-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.control-btn {
    padding: 11px; border: 1px solid #00517a; border-radius: 10px;
    background: var(--button-gradient); color: #fff;
    font-size: 18px; text-align: left; transition: .18s ease;
    box-shadow: 0 3px 8px rgba(0, 76, 120, .15);
}
.control-btn span { margin-left: 5px; color: #eaf6ff; font-size: 11px; }
.control-btn:hover { filter: brightness(.91); transform: translateY(-1px); }
.control-btn:active { transform: scale(.98); }
.move-panel { min-height: 110px; }
.move-list { max-height: 180px; overflow: auto; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.move-row { display: grid; grid-template-columns: 28px 1fr 1fr; gap: 8px; }
.move-row b { color: var(--text); }
.result-box {
    padding: 16px; border: 1px solid #9ad8bf; border-radius: 13px;
    background: #e7f8f0; color: #126747; font-size: 13px; line-height: 1.5;
}
.result-box.hidden { display: none; }

/* SETTINGS */
.settings-panel { max-width: 720px; }
.setting-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line);
}
.setting-row:last-child { border: 0; }
.setting-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.setting-row select {
    max-width: 55%; padding: 9px; border: 1px solid #b5d0e4;
    border-radius: 8px; background: #fff; color: var(--text);
}
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); }

/* BUTTONS: scoped so text/back/modal buttons keep their intended appearance */
.primary-btn, .full-btn {
    padding: 13px 18px; border: 1px solid #00517a;
    border-radius: 10px; background: var(--button-gradient);
    color: #fff; font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 76, 120, .17);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.primary-btn:hover, .full-btn:hover { filter: brightness(.93); transform: translateY(-1px); }
.full-btn { width: 100%; margin-top: 12px; }
.text-btn, .back-btn, .modal-close { box-shadow: none; }
footer {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 20px 0 25px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: 11px;
}

/* MODAL */
.modal-backdrop {
    position: fixed; z-index: 10; inset: 0; display: grid;
    place-items: center; padding: 18px; background: rgba(3, 20, 34, .78);
}
.modal-backdrop.hidden { display: none; }
.modal {
    position: relative; width: min(440px, 100%); padding: 28px;
    border: 1px solid var(--blue-mid); border-radius: 18px;
    background: #fff; box-shadow: var(--shadow);
}
.modal h2 { margin: 8px 0 20px; font: 600 25px 'Playfair Display', serif; }
.modal-close {
    position: absolute; top: 12px; right: 17px;
    border: 0; background: none; color: var(--muted); font-size: 25px;
}
.modal-close:hover { color: var(--blue); }
.form-field { display: block; margin: 15px 0; color: var(--muted); font-size: 12px; }
.form-field input, .form-field select {
    display: block; width: 100%; margin-top: 7px; padding: 12px;
    border: 1px solid #b5d0e4; border-radius: 9px; background: #fff; color: var(--text);
}

/* TOAST / UTILITIES */
.toast {
    position: fixed; z-index: 20; bottom: 22px; left: 50%;
    padding: 11px 17px; transform: translate(-50%, 20px);
    border: 1px solid var(--blue-mid); border-radius: 9px;
    background: var(--blue-deep); color: #fff; font-size: 12px;
    opacity: 0; pointer-events: none; transition: .2s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.loading { padding: 25px; color: var(--muted); }
.hidden { display: none !important; }

/* LIGHT THEME COMPATIBILITY */
body.light {
    --bg: #eef4fb; --surface: #fff; --surface2: #e4eef8;
    --text: #172638; --muted: #68798b; --line: #cbd8e5;
    background: linear-gradient(180deg, #f7faff, #eef4fb);
}
body.light .player-strip { background: transparent; }

/* ORIENTATION LAYOUTS */
body.portrait-view .game-layout { grid-template-columns: minmax(0, 620px) minmax(240px, 1fr); }
body.portrait-view .board-wrap { max-width: 620px; }
body.landscape-view .game-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr);
    align-items: start; gap: 20px;
}
body.landscape-view .board-wrap { max-width: 100%; }
body.landscape-view .game-side { display: flex; flex-direction: column; }
body.landscape-view .move-list { max-height: 140px; }

/* EXPANDED GAME */
body.game-expanded { overflow: auto; }
body.game-expanded .app-shell { width: 100%; max-width: none; padding: 8px 14px; }
body.game-expanded .topbar, body.game-expanded footer { display: none; }
body.game-expanded #gameScreen { display: block; min-height: 100vh; padding: 8px 0 16px; }
body.game-expanded #homeScreen,
body.game-expanded #levelsScreen,
body.game-expanded #settingsScreen { display: none !important; }
body.game-expanded .game-heading { margin-bottom: 8px; }
body.game-expanded .game-layout {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
    align-items: start; gap: 14px;
}
body.game-expanded .board-wrap { max-width: min(82vh, 900px); }
body.game-expanded .chessboard { width: 100%; }
body.game-expanded .game-side { max-height: calc(100vh - 90px); overflow-y: auto; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .app-shell { padding: 0 20px; }
    .level-grid { grid-template-columns: repeat(3, 1fr); }
    body.portrait-view .game-layout { grid-template-columns: 1fr; gap: 12px; }
    body.portrait-view .board-wrap { max-width: 560px; }
    body.portrait-view .game-side { display: grid; grid-template-columns: 1fr 1fr; }
    body.portrait-view .status-panel, body.portrait-view .move-panel { grid-column: span 2; }
    body.landscape-view .game-layout { grid-template-columns: minmax(0, 1.2fr) minmax(230px, .8fr); gap: 12px; }
    body.landscape-view .game-side { display: flex; }
    body.landscape-view .panel { padding: 14px; }
}
@media (max-width: 760px) {
    .app-shell { padding: 0 15px; }
    .topbar { min-height: 68px; }
    .screen { padding: 28px 0 38px; }
    .mode-grid { gap: 10px; }
    .mode-card { min-height: 205px; padding: 17px; }
    .mode-title { font-size: 20px; }
    .mode-art { font-size: 28px; }
    .home-lower { grid-template-columns: 1fr; }
    .level-grid { grid-template-columns: repeat(2, 1fr); }
    .game-heading { gap: 10px; }
    .game-heading h2 { font-size: 17px; }
    body.portrait-view .game-layout { grid-template-columns: 1fr; gap: 12px; }
    body.portrait-view .board-wrap { max-width: 560px; }
    body.portrait-view .game-side { display: grid; grid-template-columns: 1fr 1fr; }
    body.portrait-view .status-panel, body.portrait-view .move-panel { grid-column: span 2; }
    body.landscape-view .game-layout { grid-template-columns: minmax(0, 1.15fr) minmax(190px, .85fr); gap: 10px; }
    body.landscape-view .game-side { display: flex; gap: 8px; }
    body.landscape-view .panel { padding: 10px; }
    body.landscape-view .status-panel h3 { font-size: 16px; }
    body.landscape-view .control-grid { gap: 5px; }
    body.landscape-view .control-btn { padding: 8px 5px; font-size: 15px; }
    body.landscape-view .control-btn span { font-size: 10px; }
    body.landscape-view .move-list { max-height: 90px; }
    footer { flex-direction: column; }
    body.game-expanded .app-shell { padding: 5px 8px; }
    body.game-expanded .game-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    body.game-expanded .board-wrap { max-width: min(94vw, 72vh); }
    body.game-expanded .game-side {
        display: grid; grid-template-columns: 1fr 1fr; max-height: none;
        overflow: visible; gap: 7px;
    }
    body.game-expanded .status-panel, body.game-expanded .move-panel { grid-column: span 2; }
    body.game-expanded .player-strip { height: 38px; }
}
@media (max-width: 480px) {
    .hero { padding-top: 10px; }
    .mode-card { padding: 14px; }
    .mode-title { font-size: 18px; }
    .mode-desc { font-size: 11px; }
    .game-side { grid-template-columns: 1fr; }
    .status-panel, .move-panel { grid-column: span 1; }
    .square { font-size: clamp(22px, 8vw, 38px); }
    .square .chess-piece-svg { width: 96%; height: 98%; }
    .game-heading-actions { gap: 5px; }
    .game-heading-actions .icon-btn { width: 35px; height: 35px; }
    .setting-row { gap: 8px; }
    .setting-row select { max-width: 48%; font-size: 11px; }
}
@media (max-width: 760px) and (orientation: landscape) {
    body.landscape-view .screen { padding-top: 15px; }
    body.landscape-view .game-heading { margin-bottom: 10px; }
    body.landscape-view .player-strip { height: 38px; }
    body.landscape-view .avatar { width: 27px; height: 27px; font-size: 19px; }
    body.landscape-view .square { font-size: clamp(18px, 4vw, 36px); }
}
@media (max-width: 900px) and (orientation: landscape) {
    body.game-expanded .game-layout { grid-template-columns: minmax(0, 1.2fr) minmax(190px, .8fr); }
    body.game-expanded .board-wrap { max-width: min(70vh, 650px); }
    body.game-expanded .game-side { display: flex; max-height: calc(100vh - 70px); overflow-y: auto; }
}

/* ACCESSIBILITY */
button:focus-visible, select:focus-visible, input:focus-visible {
    outline: 2px solid var(--blue-mid); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important; transition: none !important; animation: none !important;
    }
    .square, .square .piece, .square .chess-piece-svg { transition: none !important; }
}

/* GAME RESULT / UPGRADE COMPATIBILITY */
.result-box { position: relative; }
.result-box.hidden { display: none !important; }
.game-result-panel {
    padding: 18px; border: 1px solid var(--blue-mid); border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #eaf5fd);
    color: var(--text); box-shadow: 0 8px 24px rgba(0, 76, 120, .10);
}
.game-result-panel h3 { margin: 0 0 7px; font: 700 23px 'Playfair Display', serif; }
.game-result-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.game-result-panel.result-win { border-color: #8acdb1; background: linear-gradient(145deg, #f3fff9, #e1f7ed); }
.game-result-panel.result-loss { border-color: #e5a1a5; background: linear-gradient(145deg, #fff8f8, #fce8e9); }
.game-result-panel.result-draw { border-color: #b9cde0; background: linear-gradient(145deg, #fff, #edf4fa); }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.result-actions button { flex: 1 1 110px; min-height: 40px; padding: 9px 12px; border: 1px solid #00517a; border-radius: 9px; background: var(--button-gradient); color: #fff; font-weight: 700; }
.result-actions button.secondary { border-color: var(--line); background: #fff; color: var(--blue-dark); }
.game-timer, .player-timer { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: 700 13px 'DM Sans', sans-serif; font-variant-numeric: tabular-nums; }
.game-timer.active, .player-timer.active { border-color: var(--green); box-shadow: 0 0 0 2px rgba(21,150,107,.10); }
.game-timer.low-time, .player-timer.low-time { border-color: var(--danger); color: var(--danger); }
.promotion-chooser { display: flex; justify-content: center; gap: 8px; padding: 10px; }
.promotion-chooser button { min-width: 48px; min-height: 48px; border: 1px solid var(--blue-mid); border-radius: 10px; background: #fff; color: var(--blue-deep); font-size: 27px; }
.square.last-move { background-image: linear-gradient(rgba(255, 226, 95, .34), rgba(255, 226, 95, .34)); }
.square.check { box-shadow: inset 0 0 0 4px #e33d4d; }
.square.hint-square { box-shadow: inset 0 0 0 4px #20a879; }
.square .move-animation-piece { position: absolute; z-index: 8; width: 94%; height: 96%; pointer-events: none; }
button:disabled { opacity: .48; cursor: not-allowed; transform: none !important; }
@media (max-width: 480px) {
    .game-result-panel { padding: 13px; }
    .game-result-panel h3 { font-size: 20px; }
    .result-actions button { flex-basis: 100%; }
}
