@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

body {
    font-family: 'Nunito', sans-serif;
    background-color: #2d3436;
    color: #2d3436;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    flex-direction: column;
    padding: 10px;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
}

/* Page title above the game frame */
.game-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0 0 0.5rem;
    letter-spacing: 0.05em;
}
@media (min-width: 768px) {
    .game-title {
        font-size: 1.875rem;
        margin-bottom: 1.5rem;
    }
}

/* Pause overlay help block */
.pause-help {
    text-align: left;
    color: #4b5563;
    margin-bottom: 1rem;
}
.pause-help > p + p {
    margin-top: 0.5rem;
}

#gameContainer {
    background-color: #87CEEB;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    aspect-ratio: 2/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 4px solid #fff;
    outline: none;
    cursor: crosshair;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

#uiPanel {
    position: absolute;
    top: 15px;
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 800;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: #2d3436;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
    pointer-events: none;
}

#uiPanel button { pointer-events: auto; }

.modern-button {
    background: linear-gradient(to bottom, #FFD700, #FFC107);
    color: #5d4037;
    border: none;
    box-shadow: 0 4px 0 #bcaaa4;
    padding: 12px 32px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.1s;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 10px;
}

.modern-button:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #bcaaa4;
}

/* ========================================================================
   Safety Hound style components — match the splash-screen cartoon look
   on in-game screens (report, briefing, pause, game-over).
   ======================================================================== */

/* Cream panel chassis with subtle paw watermark + chunky outline */
.sh-panel {
    background: #fff8e7;
    border: 4px solid #2d3436;
    border-radius: 24px;
    box-shadow: 0 6px 0 #2d3436, 0 14px 28px rgba(0,0,0,0.25);
    background-image:
        radial-gradient(circle at 18% 22%, rgba(45,52,54,0.045) 5px, transparent 6px),
        radial-gradient(circle at 82% 78%, rgba(45,52,54,0.045) 5px, transparent 6px),
        radial-gradient(circle at 50% 50%, rgba(45,52,54,0.03) 3px, transparent 4px);
    background-size: 200px 200px;
    padding: 18px 22px 22px;
    max-width: 460px;
    margin: 0 auto;
    color: #2d3436;
    text-align: center;
}

/* Bone-shaped title banner (blue with yellow text, paw-bone end caps) */
.sh-banner {
    display: inline-block;
    background: #2c5aa0;
    color: #fdcb6e;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    padding: 8px 30px;
    border-radius: 999px;
    border: 4px solid #2d3436;
    box-shadow: 0 4px 0 #2d3436;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #b88c1c, 0 -1px 0 #ffd97a;
    position: relative;
    margin: 4px auto 14px;
}
.sh-banner::before,
.sh-banner::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #2c5aa0;
    border: 4px solid #2d3436;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}
.sh-banner::before { left: -10px; }
.sh-banner::after  { right: -10px; }

/* Chunky yellow paw button — matches the START button on the title splash */
.sh-btn {
    display: inline-block;
    background: linear-gradient(180deg, #fdcb6e 0%, #f39c12 100%);
    color: #2d3436;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    padding: 12px 32px;
    border: 4px solid #2d3436;
    border-radius: 999px;
    box-shadow: 0 5px 0 #2d3436;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 80ms, box-shadow 80ms;
    margin: 8px 4px 4px;
}
.sh-btn::before { content: '🐾 '; font-size: 0.9em; }
.sh-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #2d3436;
}
.sh-btn[disabled] {
    opacity: 0.5;
    cursor: default;
    transform: none;
    box-shadow: 0 5px 0 #2d3436;
}

/* Secondary variant — smaller, less attention */
.sh-btn--ghost {
    background: linear-gradient(180deg, #fff8e7 0%, #f1e9d2 100%);
    color: #2d3436;
    font-size: 0.95rem;
    padding: 10px 24px;
}

/* Small variant — fits inside compact rows (leaderboard submit) */
.sh-btn--small {
    font-size: 0.85rem;
    padding: 8px 18px;
    box-shadow: 0 3px 0 #2d3436;
}
.sh-btn--small:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #2d3436;
}

/* Game-over / briefing internal pieces */
.sh-message {
    font-size: 0.95rem;
    color: #495057;
    margin: 8px 12px 12px;
    line-height: 1.4;
}
.sh-stat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(45,52,54,0.05);
    border-radius: 12px;
    padding: 8px 14px;
    margin: 0 auto 10px;
    max-width: 280px;
    font-size: 0.95rem;
}
.sh-stat-icon { font-size: 1.2rem; }
.sh-stat-text b { font-weight: 900; color: #d63031; margin: 0 2px; }
.sh-tip {
    font-size: 0.85rem;
    color: #636e72;
    background: rgba(241,196,15,0.15);
    border-left: 3px solid #f1c40f;
    padding: 8px 12px;
    margin: 10px auto 14px;
    max-width: 320px;
    text-align: left;
    border-radius: 6px;
}

/* Report screen action buttons — Try Again / Next Level / Main Menu */
.report-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.report-actions .sh-btn { margin: 2px 0; }

/* Briefing checklist (legacy single-column — kept for fallback) */
.briefing-checklist {
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    padding: 10px 14px;
    margin: 4px auto 10px;
    max-width: 360px;
    text-align: left;
}
.briefing-checklist p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #2d3436;
}
.briefing-checklist b { color: #2c5aa0; }

/* ========================================================================
   Wide briefing layout — hazards on the left, Best EMR + Difficulty on
   the right. Fits all three levels without scrolling.
   ======================================================================== */
#messageBox.briefing-mode {
    width: 92%;
    max-width: 760px;
}

.sh-panel--briefing {
    padding: 14px 22px 18px;
    max-width: 720px;
    position: relative;
}

/* Back button anchored top-left of the panel */
.sh-back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #2d3436;
    background: linear-gradient(180deg, #fff8e7 0%, #f1e9d2 100%);
    color: #2d3436;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: 0 3px 0 #2d3436;
    cursor: pointer;
    transition: transform 100ms ease, box-shadow 100ms ease;
    z-index: 2;
}
.sh-back-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #2d3436;
}
.sh-back-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #2d3436;
}

.briefing-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 14px;
    margin: 6px 0 10px;
    text-align: left;
}
@media (max-width: 540px) {
    .briefing-grid { grid-template-columns: 1fr; }
}

.briefing-col {
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    padding: 8px 12px;
}
.briefing-h3 {
    font-size: 0.7rem;
    font-weight: 900;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 2px 0 6px;
}

.briefing-hazards {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hazard-row {
    display: grid;
    grid-template-columns: 22px 90px 1fr;
    align-items: baseline;
    gap: 6px;
    padding: 2px 0;
    font-size: 0.85rem;
    color: #2d3436;
}
.hazard-num {
    color: #f39c12;
    font-weight: 900;
}
.hazard-title {
    font-weight: 900;
    color: #2c5aa0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.78rem;
}
.hazard-desc {
    color: #495057;
}

.briefing-col--side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.briefing-best-card {
    background: #fff;
    border-radius: 10px;
    padding: 6px 12px;
    text-align: center;
    border: 2px solid #f1f3f5;
}
.briefing-best-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #7f8c8d;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.briefing-best-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
}
.briefing-best-emr {
    font-size: 1.5rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.briefing-best-meta {
    font-size: 0.75rem;
    color: #7f8c8d;
    font-weight: 700;
}
.briefing-best-empty {
    font-size: 0.85rem;
    color: #b2bec3;
    font-style: italic;
}

.briefing-difficulty {
    text-align: center;
}
.briefing-difficulty-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #7f8c8d;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.diff-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
}
.diff-btn {
    background: #fff;
    color: #2d3436;
    border: 2px solid #2d3436;
    border-radius: 8px;
    padding: 6px 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 2px 0 #2d3436;
    transition: transform 80ms ease, box-shadow 80ms ease;
}
.diff-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #2d3436;
}
.diff-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #2d3436;
}
.diff-btn.selected {
    background: linear-gradient(180deg, #fdcb6e 0%, #f39c12 100%);
    color: #2d3436;
    box-shadow: 0 2px 0 #2d3436, 0 0 14px rgba(241,196,15,0.55);
}

/* Subtle hint shown only on the player's first shift */
.briefing-difficulty-hint {
    font-size: 0.7rem;
    color: #7f8c8d;
    margin-top: 6px;
    font-style: italic;
}
.briefing-difficulty-hint b {
    color: #f39c12;
    font-style: normal;
    font-weight: 900;
}

.icon-button {
    background: #dfe6e9;
    color: #636e72;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin-left: 6px;
}
.icon-button:hover { background: #b2bec3; color: #2d3436; }

#messageBox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 20px 24px;
    z-index: 30;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    max-width: 92%;
    width: 520px;
    /* Constrain to the game container so summary modals don't extend
       past the visible canvas — bias toward fitting rather than scrolling. */
    max-height: 94%;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

#messageBox.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
#messageBox::-webkit-scrollbar { width: 8px; }
#messageBox::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
#messageBox::-webkit-scrollbar-thumb { background: #b2bec3; border-radius: 4px; }

#messageBox.title-mode {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: none;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    z-index: 5; /* Sit behind UI panel (z-index 10) */
    background-color: #2c3e50; /* Add dark background for pillar-boxing */
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    /* Max out based on the 2:1 container and the 3841x1848 aspect ratio (2.078:1) */
    aspect-ratio: 3841 / 1848;
    max-height: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hitbox {
    position: absolute;
    cursor: pointer;
    background: transparent;
    border: 2px solid transparent; /* Invisible by default */
    border-radius: 10px;
    transition: background 0.2s, border 0.2s, transform 0.1s;
    z-index: 10;
}

.hitbox:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================================================
   Title-splash overlay buttons — sit on top of splash_title.png so they
   fully cover the baked-in artwork buttons (which are now decorative).
   ======================================================================== */

/* Top-corner pill buttons (Credits, How-to-Play) */
.splash-corner-btn {
    position: absolute;
    top: 3.5%;
    height: 9%;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    border: 4px solid #2d3436;
    background: linear-gradient(180deg, #fdcb6e 0%, #f39c12 100%);
    color: #2d3436;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(0.85rem, 1.6vw, 1.1rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 0 #2d3436;
    cursor: pointer;
    z-index: 12;
    transition: transform 100ms ease, box-shadow 100ms ease, filter 100ms ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.splash-corner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    background: rgba(45,52,54,0.85);
    color: #fdcb6e;
    font-size: 0.9em;
    text-shadow: none;
}
.splash-corner-label {
    line-height: 1;
}
.splash-corner-btn--credits { left: 2.5%; }
.splash-corner-btn--help    { right: 2.5%; }
.splash-corner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2d3436, 0 0 18px rgba(241,196,15,0.55);
    filter: brightness(1.05);
}
.splash-corner-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2d3436;
}

/* Three site-card row — sized to sit cleanly inside the cleared bottom
   strip of splash_title.png. Compact: name-only buttons. */
.splash-sites {
    position: absolute;
    left: 5%;
    right: 5%;
    top: 71%;
    height: 10%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5%;
    z-index: 12;
}

.site-card {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #2d3436;
    border-radius: 999px;
    box-shadow: 0 5px 0 #2d3436;
    cursor: pointer;
    padding: 0 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #2d3436;
    text-align: center;
    position: relative;
    transition: transform 100ms ease, box-shadow 100ms ease;
}

/* Theme colors per site */
.site-card--construction {
    background: linear-gradient(180deg, #fdcb6e 0%, #f39c12 100%);
}
.site-card--kitchen {
    background: linear-gradient(180deg, #55efc4 0%, #00b894 100%);
}
.site-card--warehouse {
    background: linear-gradient(180deg, #74b9ff 0%, #0984e3 100%);
    color: #fff;
}
.site-card--warehouse .site-best { color: rgba(255,255,255,0.85); }

.site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #2d3436, 0 0 20px rgba(241,196,15,0.45);
}
.site-card:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #2d3436;
}

/* Selected state — yellow ring, scale up, ✓ badge, pulse */
.site-card.selected {
    border-color: #f1c40f;
    box-shadow: 0 5px 0 #2d3436, 0 0 0 4px #f1c40f, 0 0 28px rgba(241,196,15,0.85);
    transform: translateY(-2px) scale(1.05);
    animation: shSelectedPulse 1.4s ease-in-out infinite;
}
.site-card.selected::after {
    content: '✓';
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    background: #2ecc71;
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    border: 3px solid #2d3436;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 0 #2d3436;
    animation: shCheckPop 250ms ease-out;
    z-index: 1;
}

/* START button — sits in the open band below the site cards, clear of
   the metal-panel-with-rivets at the very bottom of the artwork. */
.splash-start {
    position: absolute;
    left: 26%;
    right: 26%;
    top: 85%;
    height: 11%;
    min-height: 46px;
    background: linear-gradient(180deg, #fdcb6e 0%, #f39c12 100%);
    color: #2d3436;
    border: 4px solid #2d3436;
    border-radius: 999px;
    box-shadow: 0 6px 0 #2d3436;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(1.2rem, 3vw, 1.9rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 100ms ease, box-shadow 100ms ease, filter 100ms ease;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0;
}
.splash-start .paw { font-size: 0.85em; }
.splash-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #2d3436, 0 0 26px rgba(241,196,15,0.8);
    filter: brightness(1.06);
}
.splash-start:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #2d3436;
}

/* Subtle attribution link in the bottom-right of the title splash. */
.splash-attribution {
    position: absolute;
    right: 2%;
    bottom: 0.6%;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.65rem, 1.1vw, 0.85rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    letter-spacing: 0.5px;
    z-index: 13;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 100ms ease, background 100ms ease;
}
.splash-attribution:hover {
    color: #fdcb6e;
    background: rgba(0, 0, 0, 0.4);
    text-decoration: underline;
}

/* Generic clickable overlay for in-image text links (e.g. insure-thing.com
   on the credits splash). Transparent — the underlying artwork provides
   the visual label. */
.splash-link {
    position: absolute;
    cursor: pointer;
    z-index: 12;
    border-radius: 6px;
    transition: background 100ms ease;
}
.splash-link:hover {
    background: rgba(255, 215, 0, 0.18);
    outline: 2px solid rgba(255, 215, 0, 0.7);
}

.hitbox:active {
    transform: scale(0.98);
}

.hitbox.level-hitbox {
    transition: transform 120ms;
    border-radius: 16px;
}
.hitbox.level-hitbox:hover {
    background: rgba(241, 196, 15, 0.18);
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.5);
}
.hitbox.level-hitbox.selected {
    background: rgba(241, 196, 15, 0.22);
    border: 4px solid #f1c40f;
    box-shadow: 0 0 24px rgba(241, 196, 15, 0.9);
    transform: scale(1.04);
    animation: shSelectedPulse 1.4s ease-in-out infinite;
}
.hitbox.level-hitbox.selected::after {
    content: '✓';
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    background: #2ecc71;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    border: 3px solid #2d3436;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 0 #2d3436;
    animation: shCheckPop 250ms ease-out;
}
@keyframes shSelectedPulse {
    0%, 100% { box-shadow: 0 0 24px rgba(241, 196, 15, 0.7); }
    50%      { box-shadow: 0 0 36px rgba(241, 196, 15, 1); }
}
@keyframes shCheckPop {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Legacy — keep the old class working for any non-level hitboxes that use it */
.hitbox.selected:not(.level-hitbox) {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

#messageBox h2 { font-size: 1.5rem; color: #2d3436; margin-bottom: 12px; font-weight: 900; text-transform: uppercase; }
#messageBox h3 { font-size: 1rem; color: #2d3436; font-weight: 800; margin-top: 8px; text-align: left; }
.report-item { text-align: left; font-size: 0.85rem; padding: 6px 8px; background: #f1f2f6; border-radius: 8px; margin-bottom: 6px; }



.title-logo {
    font-size: 3.5rem;
    font-weight: 900;
    color: #2d3436;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.1;
    text-shadow: 2px 2px 0px #00b894, 4px 4px 0px #fdcb6e;
}

.title-tagline {
    font-size: 1.1rem;
    color: #636e72;
    font-weight: 600;
    margin-bottom: 20px;
}

.start-pulse-btn {
    background: linear-gradient(to bottom, #00b894, #00a383);
    color: white;
    border: none;
    box-shadow: 0 6px 0 #00806b;
    padding: 16px 48px;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 2s infinite;
    transition: transform 0.1s;
}

.start-pulse-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #00806b;
    animation: none;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 6px 0 #00806b, 0 0 0 0 rgba(0, 184, 148, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 6px 0 #00806b, 0 0 0 15px rgba(0, 184, 148, 0); }
    100% { transform: scale(1); box-shadow: 0 6px 0 #00806b, 0 0 0 0 rgba(0, 184, 148, 0); }
}

/* ============ Level Select ============ */
.select-title {
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
    letter-spacing: 2px;
    color: #2d3436 !important;
}

.level-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.level-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: white;
    border: none;
    border-radius: 16px;
    padding: 12px 20px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: 'Nunito', sans-serif;
    background: #667eea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.level-btn:hover {
    transform: translateY(-3px);
}

.level-btn:active {
    transform: translateY(0);
}

.construction-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}
.construction-btn:hover {
    box-shadow: 0 6px 18px rgba(243, 156, 18, 0.5);
}

.kitchen-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}
.kitchen-btn:hover {
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.5);
}

.level-icon {
    font-size: 2rem;
    color: white;
}

.level-name {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.level-best {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 10px;
}

/* Menu Links (How to Play, Credits) */
.menu-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.link-btn {
    background: none;
    border: none;
    color: #636e72;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    text-decoration: underline;
    transition: color 0.2s;
}

.link-btn:hover {
    color: #2d3436;
}

/* How to Play Screen */
.how-to-play {
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
}

.how-to-play p {
    margin: 4px 0;
}

.how-to-play .controls-section,
.how-to-play .actions-section {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 10px;
    margin: 8px 0;
}

.how-to-play .tip {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Credits Screen */
.credits {
    padding: 20px 0;
}

.credit-line {
    font-size: 1.1rem;
    margin: 10px 0;
}

.credit-tagline {
    font-size: 0.85rem;
    color: #636e72;
    font-style: italic;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

/* ============ Briefing Layout ============ */
.briefing-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.briefing-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}

.briefing-header-icon {
    font-size: 2rem;
}

.briefing-header h2 {
    margin: 0 !important;
    font-size: 1.3rem !important;
}

.briefing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.briefing-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.3;
}

.briefing-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.briefing-item b {
    color: #2d3436;
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.briefing-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #dee2e6;
}

.controls-hint {
    font-size: 0.78rem;
    color: #636e72;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin-top: 12px;
}
.controls-hint span b {
    color: #2d3436;
    margin-right: 4px;
    letter-spacing: 0.5px;
}

/* Stacked version — pause overlay shows both touch + keyboard rows */
.controls-hint-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px auto;
    max-width: 360px;
    text-align: left;
}
.controls-hint-row {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
}
.controls-hint-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.controls-hint-cells {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    font-size: 0.85rem;
    color: #2d3436;
}
.controls-hint-cells span {
    font-weight: 800;
    color: #636e72;
    margin-right: 4px;
}


.start-btn {
    background: linear-gradient(to bottom, #00b894, #00a383);
    color: white;
    border: none;
    box-shadow: 0 4px 0 #00806b;
    padding: 14px 40px;
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.1s;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.start-btn:hover {
    background: linear-gradient(to bottom, #00cca3, #00b894);
}

.start-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #00806b;
}

/* ============ Report Styles ============ */
.report-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.report-icon {
    font-size: 2rem;
}

.report-header h2 {
    margin: 0 !important;
    font-size: 1.1rem !important;
}

.accident-summary {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.accident-count {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
}

.accident-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.perfect-score {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.good-score {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
}

.poor-score {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 6px;
}

.report-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 6px;
    border-radius: 10px;
    gap: 0;
}

.card-pass {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.card-fail {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.card-icon {
    font-size: 1.3rem;
}

.card-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2d3436;
}

.card-status {
    font-size: 0.72rem;
    font-weight: 600;
    color: #495057;
}

.budget-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 6px;
}

/* EMR hero — primary outcome on the post-shift report */
.emr-hero {
    margin: 6px auto 8px;
    padding: 8px 18px 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 2px solid #f1f3f5;
    max-width: 340px;
}
.emr-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #7f8c8d;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.emr-value {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    margin: 2px 0;
    font-variant-numeric: tabular-nums;
}
.emr-verdict {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.emr-blurb {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 600;
    line-height: 1.25;
}

/* Compact "Your EMR" header for the leaderboard page */
.lb-yours {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin: 4px auto 10px;
    padding: 6px 16px;
    background: #fff;
    border-radius: 999px;
    border: 2px solid #f1f3f5;
    max-width: 320px;
}
.lb-yours-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #7f8c8d;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.lb-yours-value {
    font-size: 1.5rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.lb-yours-verdict {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Tighten the .sh-panel itself on summary screens so we have breathing
   room. Both Page 1 (results) and Page 2 (leaderboard) target this. */
.sh-panel--results,
.sh-panel--leaderboard {
    padding: 14px 18px 18px;
    max-width: 440px;
}
.sh-panel--leaderboard .leaderboard-section {
    margin: 4px auto 10px;
    background: transparent;
    padding: 0;
}
.sh-panel--leaderboard .leaderboard-submit {
    margin-bottom: 8px;
    padding-bottom: 8px;
}
.sh-panel--leaderboard .lb-row {
    padding: 3px 6px;
    font-size: 0.78rem;
}

/* Secondary stat tiles (workers protected, safety score) */
.secondary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
}
.stat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    border-radius: 10px;
    background: #f8f9fa;
}
.stat-tile-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-tile-value {
    font-size: 1.4rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.stat-tile.budget-great { background: linear-gradient(135deg, #00b894 0%, #00a383 100%); color: white; }
.stat-tile.budget-great .stat-tile-label { color: rgba(255,255,255,0.85); }
.stat-tile.budget-good { background: linear-gradient(135deg, #0984e3 0%, #0873cc 100%); color: white; }
.stat-tile.budget-good .stat-tile-label { color: rgba(255,255,255,0.85); }
.stat-tile.budget-low { background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%); color: #5d4037; }
.stat-tile.budget-negative { background: linear-gradient(135deg, #d63031 0%, #c0392b 100%); color: white; }
.stat-tile.budget-negative .stat-tile-label { color: rgba(255,255,255,0.85); }

.budget-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.budget-value {
    font-size: 1.6rem;
    font-weight: 900;
}

.budget-great {
    background: linear-gradient(135deg, #00b894 0%, #00a383 100%);
    color: white;
}

.budget-good {
    background: linear-gradient(135deg, #0984e3 0%, #0873cc 100%);
    color: white;
}

.budget-low {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    color: #5d4037;
}

.budget-negative {
    background: linear-gradient(135deg, #d63031 0%, #c0392b 100%);
    color: white;
}

.high-score-banner {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #5d4037;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 10px;
    animation: pulse-glow 1s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from { box-shadow: 0 0 10px rgba(241, 196, 15, 0.5); }
    to { box-shadow: 0 0 25px rgba(241, 196, 15, 0.8); }
}

.high-score-info {
    font-size: 0.8rem;
    color: #636e72;
    margin-bottom: 10px;
}

/* Leaderboard (end-of-level) */
.leaderboard-section {
    margin: 8px auto 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 12px;
    max-width: 360px;
    text-align: left;
}
.leaderboard-submit {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.leaderboard-submit.submitted .lb-submit-row { display: none; }
.lb-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}
.lb-submit-row { display: flex; gap: 8px; }
#initialsInput {
    flex: 0 0 80px;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 6px 8px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    letter-spacing: 4px;
}
#initialsInput:focus { outline: none; border-color: #0984e3; }
.lb-submit-btn {
    flex: 1;
    background: linear-gradient(to bottom, #0984e3, #0873cc);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
}
.lb-submit-btn:disabled { opacity: 0.5; cursor: default; }
.lb-status {
    font-size: 0.75rem;
    margin-top: 6px;
    color: #636e72;
    min-height: 1em;
}
.lb-status-error { color: #d63031; }
.lb-status-ok { color: #00b894; font-weight: 700; }

.lb-table-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.lb-rows { display: flex; flex-direction: column; gap: 2px; }
.lb-row {
    display: grid;
    grid-template-columns: 32px 48px 56px 1fr;
    align-items: baseline;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.8rem;
}
.lb-row:nth-child(odd) { background: #ffffff; }
.lb-rank { color: #95a5a6; font-weight: 800; }
.lb-name { font-weight: 900; font-family: monospace; letter-spacing: 1px; }
.lb-emr { font-weight: 900; color: #2d3436; font-variant-numeric: tabular-nums; }
.lb-meta { font-size: 0.7rem; color: #7f8c8d; text-align: right; }
.lb-loading, .lb-empty {
    font-size: 0.8rem;
    color: #95a5a6;
    text-align: center;
    padding: 8px;
}

/* Offline state — friendlier than "Leaderboard offline." */
.lb-offline-card {
    text-align: center;
    padding: 14px 12px;
    background: rgba(45,52,54,0.04);
    border-radius: 10px;
}
.lb-offline-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
    opacity: 0.6;
}
.lb-offline-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #495057;
    margin-bottom: 4px;
}
.lb-offline-sub {
    font-size: 0.75rem;
    color: #7f8c8d;
    line-height: 1.3;
}

.menu-btn {
    background: linear-gradient(to bottom, #636e72, #4a5568);
    color: white;
    border: none;
    box-shadow: 0 3px 0 #2d3436;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.1s;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-btn:hover {
    background: linear-gradient(to bottom, #74808a, #636e72);
}

.menu-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #2d3436;
}

/* ============ Stats Display ============ */
.stat-group { display: flex; gap: 10px; align-items: center; }
.stat-label { color: #b2bec3; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; margin-right: 4px; display: none; }
@media(min-width: 600px) { .stat-label { display: inline; } }
.stat-value {
    color: #2d3436;
    font-size: 1.1rem;
    transition: color 0.3s, transform 0.2s;
}
.safe-text { color: #00b894; }
.warning-text { color: #f39c12; }
.danger-text { color: #d63031; }
.net-text { color: #0984e3; }
.hat-text { color: #f1c40f; }
.saved-text { color: #16a34a; }

.score-changing {
    animation: score-bump 0.15s ease-out;
}

@keyframes score-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.pulse-warning {
    animation: pulse-danger 0.5s ease-in-out infinite alternate;
}

@keyframes pulse-danger {
    from { opacity: 1; }
    to { opacity: 0.6; }
}

.flash-green {
    animation: flash-g 0.3s ease-out;
}

@keyframes flash-g {
    0% { color: #00b894; transform: scale(1.3); }
    100% { transform: scale(1); }
}

.flash-yellow {
    animation: flash-y 0.3s ease-out;
}

@keyframes flash-y {
    0% { color: #f1c40f; transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ============ Tutorial Display ============ */
#tutorialDisplay {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 25px;
    color: #d63031;
    font-weight: 900;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 15;
    width: auto;
    max-width: 80%;
    text-align: center;
    border: 2px solid #d63031;
}

.tutorial-visible {
    transform: translateX(-50%) scale(1.05);
}

/* ============ Virtual Controls ============ */
#touchLayer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 20;
    display: none;
    justify-content: space-between; align-items: flex-end; padding: 20px; pointer-events: none;
}
@media (hover: none) { #touchLayer { display: flex; } }

.control-zone { pointer-events: auto; display: flex; gap: 10px; }
.d-pad { display: grid; grid-template-columns: 60px 60px 60px; grid-template-rows: 60px 60px; gap: 5px; opacity: 0.8; }
.touch-btn {
    background: rgba(0, 0, 0, 0.1); border: 2px solid rgba(45, 52, 54, 0.4); border-radius: 12px; color: #2d3436;
    font-weight: bold; font-size: 24px; display: flex; justify-content: center; align-items: center;
    cursor: pointer; user-select: none; -webkit-user-select: none; backdrop-filter: blur(2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.1s, background 0.1s;
}
.touch-btn:active, .touch-btn.active { background: rgba(45, 52, 54, 0.2); transform: scale(0.95); }
.btn-left { grid-column: 1; grid-row: 2; } .btn-right { grid-column: 3; grid-row: 2; }
.btn-up { grid-column: 2; grid-row: 1; } .btn-down { grid-column: 2; grid-row: 2; }
.action-btn { width: 90px; height: 90px; background: rgba(255, 118, 117, 0.8); border-radius: 50%; font-size: 18px; margin-bottom: 10px; margin-right: 10px; border-color: #d63031; color: white; }
.action-btn:active { background: #d63031; }
@media (hover: hover) and (pointer: fine) { .d-pad, .action-btn { opacity: 0.3; transition: opacity 0.3s; } #touchLayer:hover .d-pad, #touchLayer:hover .action-btn { opacity: 1; } }

/* ============ Game Over Screen ============ */
.game-over-container {
    text-align: center;
    padding: 10px;
}

.game-over-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.game-over-icon {
    font-size: 3rem;
    margin-bottom: 5px;
    animation: money-fly 0.5s ease-out;
}

@keyframes money-fly {
    0% { transform: scale(0.5) rotate(-20deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.game-over-header h2 {
    color: #d63031;
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 2px;
}

.game-over-content {
    margin-bottom: 15px;
}

.game-over-message {
    color: #636e72;
    font-size: 1rem;
    margin-bottom: 15px;
}

.game-over-stats {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 0;
}

.stat-row .stat-icon {
    font-size: 1.2rem;
}

.stat-row .stat-text {
    font-size: 0.95rem;
    color: #2d3436;
    font-weight: 600;
}

.game-over-tip {
    font-size: 0.85rem;
    color: #0984e3;
    background: rgba(9, 132, 227, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 0;
}

.game-over-buttons {
    margin-top: 10px;
}

.retry-btn {
    background: linear-gradient(to bottom, #d63031, #c0392b);
    color: white;
    border: none;
    box-shadow: 0 4px 0 #922b21;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.1s;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.retry-btn:hover {
    background: linear-gradient(to bottom, #e74c3c, #d63031);
}

.retry-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #922b21;
}
