/* ============================================================
   Monster Eats Words — Stylesheet  (Monster Hunter theme)
   ============================================================ */

/* ── Theme tokens scoped to this game ─────────────────────── */
#monster-eats-hub-screen,
#monster-eats-play-screen {
    --me-yellow:       #F5C842;
    --me-yellow-light: #FFFBE8;
    --me-yellow-mid:   #FFE566;
    --me-black:        #1A1A1A;
    --me-white:        #FFFFFF;
    --me-green:        #4CAF50;
    --me-green-dark:   #2E7D32;
    --me-red:          #E53935;
    --me-shadow:       4px 5px 0 rgba(0,0,0,0.18);
    --me-radius:       18px;
    --me-radius-sm:    10px;
}

/* ── Hub screen ───────────────────────────────────────────── */
/* #monster-eats-hub-screen {
    background: linear-gradient(160deg, #FFFBE8 0%, #FFF0A8 60%, #FFE566 100%);
} */

.me-hub-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-bottom: 2rem;
    overflow-y: auto;
    max-height: 100vh;
}

/* Top bar override for warm theme */
#monster-eats-hub-screen .top-bar {
    background: transparent;
    border-bottom: 3px solid rgba(0,0,0,0.08);
}

#monster-eats-hub-screen .top-bar-title {
    color: var(--me-black);
    font-size: 1.15rem;
}

/* ── Monster preview (hub) ────────────────────────────────── */
.me-hub-monster-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 0.5rem;
}

.me-evolution-bar-wrap {
    width: 220px;
    text-align: center;
}

.me-evolution-label {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--me-black);
    margin-bottom: 0.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.me-evolution-bar {
    height: 10px;
    background: rgba(0,0,0,0.12);
    border-radius: 99px;
    overflow: hidden;
    border: 2px solid rgba(0,0,0,0.15);
}

.me-evolution-fill {
    height: 100%;
    background: linear-gradient(90deg, #F5C842, #FF9800);
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(.22,1,.36,1);
}

.me-hub-xp {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--me-black);
    background: var(--me-yellow);
    border: 3px solid var(--me-black);
    border-radius: 99px;
    padding: 0.25rem 1rem;
    box-shadow: 2px 3px 0 rgba(0,0,0,0.2);
}

/* ── Skin row ─────────────────────────────────────────────── */
.me-skin-row {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.me-skin-btn {
    font-size: 1.4rem;
    background: var(--me-white);
    border: 3px solid var(--me-black);
    border-radius: 99px;
    width: 54px;
    height: 54px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 4px 0 rgba(0,0,0,0.2);
}

.me-skin-btn:hover:not(.locked) {
    transform: translateY(-3px);
    box-shadow: 3px 7px 0 rgba(0,0,0,0.22);
}

.me-skin-btn.active {
    background: var(--me-yellow);
    border-color: var(--me-black);
    box-shadow: 3px 4px 0 rgba(0,0,0,0.25);
}

.me-skin-btn.locked {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Category grid ────────────────────────────────────────── */
.me-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    padding: 0 1rem;
}

.me-category-card {
    background: var(--me-white);
    border: 3px solid var(--me-black);
    border-radius: var(--me-radius);
    padding: 1.1rem 0.8rem;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 4px 5px 0 rgba(0,0,0,0.18);
}

.me-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 4px 9px 0 rgba(0,0,0,0.2);
}

.me-category-card:active {
    transform: translateY(1px);
    box-shadow: 2px 3px 0 rgba(0,0,0,0.18);
}

.me-category-emoji {
    font-size: 2.2rem;
    line-height: 1;
}

.me-category-label {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--me-black);
    letter-spacing: 0.02em;
}

.me-category-stars {
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.me-category-plays {
    font-size: 0.72rem;
    color: #666;
    font-weight: 700;
}

/* ── Play screen ─────────────────────────────────────────── */
#monster-eats-play-screen {
    background: linear-gradient(160deg, #ffffff 0%, #FFF0A8 50%, #ffffff 100%);
}

.me-play-wrap {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden; /* clip background decoration horizontally only */
}

/* Decorative background layer (replaces environment) */
.me-environment {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.me-environment::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,200,50,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,200,0.4) 0%, transparent 50%);
}

/* Floating dots decoration */
.me-environment::after {
    content: '●  ●     ●  ●';
    position: absolute;
    bottom: 12%;
    left: -5%;
    font-size: 0.6rem;
    color: rgba(0,0,0,0.07);
    letter-spacing: 3rem;
    white-space: nowrap;
    animation: meCloudsFloat 25s linear infinite;
}

/* Keep evo bg subtleties via data attrs but simpler */
.me-environment[data-evo="4"]::before {
    background:
        radial-gradient(circle at 30% 70%, rgba(108,92,231,0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 20%, rgba(200,182,255,0.3) 0%, transparent 50%);
}

@keyframes meCloudsFloat {
    from { transform: translateX(0); }
    to   { transform: translateX(110vw); }
}

/* ── Play header ──────────────────────────────────────────── */
.me-play-header {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem 0.4rem;
}

.me-play-back-btn {
    background: var(--me-white) !important;
    border: 2.5px solid var(--me-black) !important;
    box-shadow: 2px 3px 0 rgba(0,0,0,0.18) !important;
    color: var(--me-black) !important;
}

.me-play-category-label {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 900;
    color: var(--me-black);
    letter-spacing: 0.03em;
}

.me-combo-badge {
    font-size: 0.85rem;
    font-weight: 900;
    background: var(--me-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    border: 2.5px solid var(--me-black);
    box-shadow: 2px 3px 0 rgba(0,0,0,0.2);
    animation: meComboAppear 0.4s cubic-bezier(.34,1.56,.64,1);
}

/* ── Round / progress bar ────────────────────────────────── */
.me-round-bar-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 380px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.me-round-bar {
    flex: 1;
    height: 9px;
    background: rgba(0,0,0,0.12);
    border-radius: 99px;
    overflow: hidden;
    border: 2px solid rgba(0,0,0,0.12);
}

.me-round-fill {
    height: 100%;
    background: linear-gradient(90deg, #F5C842, #FF9800);
    border-radius: 99px;
    transition: width 0.45s cubic-bezier(.22,1,.36,1);
}

.me-round-label {
    font-size: 0.78rem;
    font-weight: 900;
    color: rgba(0,0,0,0.55);
    white-space: nowrap;
}

/* ── Score row ────────────────────────────────────────────── */
.me-score-row {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.15rem 0;
}

.me-score-stars,
.me-streak-display {
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--me-black);
    background: var(--me-white);
    border: 2.5px solid var(--me-black);
    border-radius: 99px;
    padding: 0.2rem 0.85rem;
    box-shadow: 2px 3px 0 rgba(0,0,0,0.15);
}

.me-streak-display {
    background: var(--me-red);
    color: white;
    border-color: var(--me-black);
}

/* ── Monster stage ────────────────────────────────────────── */
.me-monster-stage {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.4rem 0 0.2rem;
    flex-shrink: 0;
}

.me-mouth-dropzone {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 100px;
    border-radius: 50%;
    z-index: 20;
    cursor: default;
    transition: background 0.15s;
}

.me-mouth-dropzone.hover {
    background: rgba(245,200,66,0.22);
    box-shadow: 0 0 0 5px rgba(245,200,66,0.35);
    border-radius: 50%;
}

/* ── Word cards ───────────────────────────────────────────── */
.me-cards-area {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    padding: 0.5rem 1rem 1.2rem;
    max-width: 500px;
    width: 100%;
}

.me-card {
    background: var(--me-white);
    border: 3.5px solid var(--me-black);
    border-radius: var(--me-radius);
    padding: 0.85rem 1.1rem;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--me-black);
    cursor: grab;
    user-select: none;
    touch-action: none;
    box-shadow: 4px 5px 0 rgba(0,0,0,0.2);
    animation: meCardFloat 2.8s ease-in-out infinite;
    animation-delay: var(--card-delay, 0s);
    transition: box-shadow 0.12s, transform 0.12s;
    text-align: center;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.me-card:nth-child(1) { --card-delay: 0s;    border-color: #E53935; }
.me-card:nth-child(2) { --card-delay: 0.4s;  border-color: #1E88E5; }
.me-card:nth-child(3) { --card-delay: 0.75s; border-color: #43A047; }
.me-card:nth-child(4) { --card-delay: 1.1s;  border-color: #FB8C00; }

.me-card:hover {
    transform: translateY(-3px);
    box-shadow: 4px 8px 0 rgba(0,0,0,0.22);
}

.me-card.dragging {
    cursor: grabbing;
    transform: scale(1.1) rotate(-3deg) !important;
    box-shadow: 6px 12px 0 rgba(0,0,0,0.25), 0 0 24px rgba(245,200,66,0.5);
    animation: none !important;
    z-index: 1000;
    opacity: 0.9;
}

.me-card-emoji {
    font-size: 1.9rem;
    line-height: 1;
    display: block;
}

/* ── Feedback toast ──────────────────────────────────────── */
.me-feedback-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: #fff;
    border: 3px solid #1a1a1a;
    border-radius: 18px;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    font-weight: 900;
    color: #1a1a1a;
    z-index: 2000;
    box-shadow: 4px 5px 0 rgba(0,0,0,0.2);
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}

/* ── Level-up overlay ────────────────────────────────────── */
.me-levelup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.me-levelup-card {
    background: var(--me-yellow-light, #FFFBE8);
    border: 4px solid var(--me-black, #1A1A1A);
    border-radius: var(--me-radius);
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 6px 8px 0 rgba(0,0,0,0.25);
    max-width: 320px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: meLevelUpAppear 0.5s cubic-bezier(.34,1.56,.64,1);
}

.me-levelup-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--me-black, #1A1A1A);
    margin: 0;
}

.me-levelup-sub {
    color: #555;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.me-levelup-btn {
    margin-top: 0.5rem;
    padding: 0.65rem 2rem;
    font-size: 1rem;
    font-weight: 900;
    background: var(--me-yellow, #F5C842) !important;
    color: var(--me-black, #1A1A1A) !important;
    border: 3px solid var(--me-black, #1A1A1A) !important;
    box-shadow: 3px 4px 0 rgba(0,0,0,0.2) !important;
    border-radius: 99px !important;
}

.me-levelup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 3px 6px 0 rgba(0,0,0,0.22) !important;
}

/* ── Result overlay ──────────────────────────────────────── */
.me-result-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.me-result-card {
    background: var(--me-yellow-light, #FFFBE8);
    border: 4px solid var(--me-black, #1A1A1A);
    border-radius: var(--me-radius);
    padding: 2rem;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 6px 8px 0 rgba(0,0,0,0.25);
    animation: meLevelUpAppear 0.4s cubic-bezier(.34,1.56,.64,1);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
}

.me-result-stars {
    font-size: 2.6rem;
    letter-spacing: 0.12em;
}

.me-result-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--me-black, #1A1A1A);
    margin: 0;
}

.me-result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
}

.me-result-stat-item {
    background: rgba(0,0,0,0.06);
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: var(--me-radius-sm, 10px);
    padding: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.me-result-stat-label {
    color: #666;
    font-size: 0.72rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.me-result-stat-value {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--me-black, #1A1A1A);
}

.me-result-xp-earned {
    font-size: 1rem;
    font-weight: 900;
    color: var(--me-black, #1A1A1A);
    background: var(--me-yellow, #F5C842);
    border: 2.5px solid var(--me-black, #1A1A1A);
    border-radius: 99px;
    padding: 0.35rem 1.2rem;
    box-shadow: 2px 3px 0 rgba(0,0,0,0.18);
}

.me-result-eaten-count {
    font-size: 0.85rem;
    font-weight: 800;
    color: #444;
}

.me-result-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.me-result-actions .btn-primary,
.me-result-actions .btn-secondary {
    flex: 1;
    min-width: 120px;
    font-weight: 900 !important;
    border-radius: 99px !important;
    border: 2.5px solid var(--me-black, #1A1A1A) !important;
    box-shadow: 3px 4px 0 rgba(0,0,0,0.18) !important;
}

.me-result-actions .btn-primary {
    background: var(--me-yellow, #F5C842) !important;
    color: var(--me-black, #1A1A1A) !important;
}

.me-result-actions .btn-secondary {
    background: var(--me-white, #fff) !important;
    color: var(--me-black, #1A1A1A) !important;
}

/* ============================================================
   MONSTER ENTITY
   ============================================================ */
.me-monster-entity {
    position: relative;
    margin: 0 auto;
    cursor: default;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Growth transition */
    transition: width 0.7s cubic-bezier(.34,1.56,.64,1),
                height 0.7s cubic-bezier(.34,1.56,.64,1);
}

.me-monster-svg {
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.22));
    transition: filter 0.4s ease;
}

/* Base sizes by evo */
.me-monster-entity[data-evo="0"] { width: 120px; height: 145px; }
.me-monster-entity[data-evo="1"] { width: 135px; height: 160px; }
.me-monster-entity[data-evo="2"] { width: 150px; height: 175px; }
.me-monster-entity[data-evo="3"] { width: 165px; height: 192px; }
.me-monster-entity[data-evo="4"] { width: 180px; height: 210px; }

/* Hub preview */
.me-hub-monster-preview .me-monster-entity { width: 180px !important; height: 200px !important; }

/* Level-up overlay */
.me-levelup-card .me-monster-entity { width: 150px !important; height: 172px !important; }

/* States */
.me-monster-entity[data-state="idle"] {
    animation: meIdleBounce 2.4s ease-in-out infinite;
}

/* listening = idle (no sway) */
.me-monster-entity[data-state="listening"] {
    animation: meIdleBounce 2.4s ease-in-out infinite;
}

.me-monster-entity[data-state="open"] {
    animation: meIdleBounce 2.4s ease-in-out infinite;
}

.me-monster-entity[data-state="eating"] {
    animation: meGulp 0.55s cubic-bezier(.22,1,.36,1) forwards;
}

.me-monster-entity[data-state="happy"] {
    animation: meHappyBounce 0.85s cubic-bezier(.22,1,.36,1) forwards;
}

.me-monster-entity[data-state="reject"] {
    animation: meRejectShake 0.6s cubic-bezier(.22,1,.36,1) forwards;
}

/* SVG filter tints per evo */
.me-monster-entity[data-evo="0"] .me-monster-svg { filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18)) saturate(0.85); }
.me-monster-entity[data-evo="1"] .me-monster-svg { filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18)); }
.me-monster-entity[data-evo="2"] .me-monster-svg { filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)) saturate(1.1); }
.me-monster-entity[data-evo="3"] .me-monster-svg { filter: drop-shadow(0 10px 22px rgba(0,0,0,0.22)) saturate(1.25); }
.me-monster-entity[data-evo="4"] .me-monster-svg { filter: drop-shadow(0 0 22px rgba(108,92,231,0.65)) drop-shadow(0 10px 22px rgba(0,0,0,0.22)) saturate(1.4); animation: meSvgGlow 2.5s ease-in-out infinite; }

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

@keyframes meIdleBounce {
    0%, 100% { transform: translateY(0)    scale(1, 1); }
    48%       { transform: translateY(-11px) scale(1.04, 0.97); }
    68%       { transform: translateY(-13px) scale(1.02, 0.98); }
}

@keyframes meGulp {
    0%   { transform: scale(1, 1); }
    18%  { transform: scale(1.12, 0.90) translateY(-6px); }
    40%  { transform: scale(0.92, 1.12) translateY(5px); }
    68%  { transform: scale(1.04, 0.96) translateY(-3px); }
    100% { transform: scale(1, 1) translateY(0); }
}

@keyframes meHappyBounce {
    0%   { transform: translateY(0)    rotate(0deg)  scale(1); }
    18%  { transform: translateY(-22px) rotate(-7deg) scale(1.07); }
    38%  { transform: translateY(5px)   rotate(7deg)  scale(0.96); }
    58%  { transform: translateY(-13px) rotate(-3deg) scale(1.04); }
    80%  { transform: translateY(2px)   rotate(2deg)  scale(0.99); }
    100% { transform: translateY(0)    rotate(0deg)  scale(1); }
}

@keyframes meRejectShake {
    0%, 100% { transform: translateX(0)    rotate(0deg); }
    12%       { transform: translateX(-15px) rotate(-5deg); }
    25%       { transform: translateX(15px)  rotate(5deg); }
    37%       { transform: translateX(-10px) rotate(-3deg); }
    50%       { transform: translateX(10px)  rotate(3deg); }
    62%       { transform: translateX(-6px)  rotate(-1.5deg); }
    75%       { transform: translateX(6px)   rotate(1.5deg); }
    87%       { transform: translateX(-3px)  rotate(-0.5deg); }
}

@keyframes meSvgGlow {
    0%, 100% { filter: drop-shadow(0 0 14px rgba(108,92,231,0.55)) drop-shadow(0 8px 20px rgba(0,0,0,0.22)) saturate(1.4); }
    50%       { filter: drop-shadow(0 0 38px rgba(108,92,231,0.88)) drop-shadow(0 8px 26px rgba(0,0,0,0.28)) saturate(1.5); }
}

@keyframes meWordFlyIn {
    0%   { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
    55%  { opacity: 0.5; transform: translate(var(--fly-tx), var(--fly-ty)) scale(0.45) rotate(-12deg); }
    100% { opacity: 0; transform: translate(var(--fly-tx), var(--fly-ty)) scale(0.08) rotate(-22deg); }
}

@keyframes meCardFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

@keyframes meCardReject {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(var(--reject-tx, 20px), var(--reject-ty, -25px)) scale(1.08); }
    55%  { transform: translate(0, 0) scale(0.94); }
    75%  { transform: translate(calc(var(--reject-tx, 20px) * -0.3), calc(var(--reject-ty, -25px) * -0.2)) scale(1.02); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes meComboAppear {
    0%   { opacity: 0; transform: scale(0.3) translateY(14px); }
    60%  { opacity: 1; transform: scale(1.22) translateY(-5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes meFeedbackPop {
    0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.65); }
    55%  { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
    100% { opacity: 1;   transform: translate(-50%, -50%) scale(1);    }
}

@keyframes meLevelUpAppear {
    0%   { opacity: 0; transform: scale(0.72) translateY(22px); }
    60%  { opacity: 1; transform: scale(1.04) translateY(-5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Growth pulse effect on size-up ─────────────────────── */
@keyframes meGrowPulse {
    0%   { filter: drop-shadow(0 0 0 rgba(245,200,66,0)); }
    40%  { filter: drop-shadow(0 0 20px rgba(245,200,66,0.9)); }
    100% { filter: drop-shadow(0 10px 20px rgba(0,0,0,0.22)); }
}

.me-monster-entity.just-grew .me-monster-svg {
    animation: meGrowPulse 0.7s ease-out forwards;
}

/* ============================================================
   Game hub card variant
   ============================================================ */
.game-type-card.monster-eats .game-type-icon {
    font-size: 2rem;
}

/* ============================================================
   Dark mode
   ============================================================ */
body.dark #monster-eats-hub-screen,
body.dark #monster-eats-play-screen {
    --me-yellow-light: #2A2510;
    --me-white: #1E1E1E;
    --me-black: #F0E8C8;
}

body.dark .me-category-card {
    background: #252520;
    border-color: #F5C842;
}

body.dark .me-card {
    background: #252520;
    border-color: #F5C842;
    color: #F0E8C8;
}

body.dark .me-score-stars {
    background: rgba(245,200,66,0.15);
    color: #F0E8C8;
    border-color: rgba(245,200,66,0.4);
}

body.dark .me-round-bar {
    background: rgba(255,255,255,0.12);
}

/* ============================================================
   Skin button locked — show XP label
   ============================================================ */
.me-skin-btn {
    flex-direction: column;
    gap: 0;
    font-size: 1.2rem;
    position: relative;
}

.me-skin-btn .me-skin-emoji {
    font-size: 1.2rem;
    line-height: 1.1;
}

.me-skin-btn .me-skin-xp-label {
    font-size: 0.5rem;
    font-weight: 900;
    color: #888;
    line-height: 1;
    letter-spacing: 0.02em;
}

.me-skin-btn.locked .me-skin-xp-label {
    color: #aaa;
}

.me-skin-btn.active .me-skin-xp-label {
    display: none;
}

/* ============================================================
   Desktop responsive layout (≥ 700px)
   ============================================================ */
@media (min-width: 700px) {

    /* ── Hub: 2-column layout ─────────────────────────────── */
    .me-hub-container {
        display: grid;
        grid-template-areas:
            "topbar  topbar"
            "monster cats"
            "skins   cats";
        grid-template-columns: 280px 1fr;
        grid-template-rows: auto auto 1fr;
        gap: 0 2.5rem;
        padding: 0 2rem 2rem;
        max-width: 900px;
        margin: 0 auto;
        align-items: start;
    }

    #monster-eats-hub-screen .top-bar {
        grid-area: topbar;
    }

    .me-hub-monster-preview {
        grid-area: monster;
        padding-top: 1.5rem;
    }

    .me-hub-monster-preview .me-monster-entity {
        width: 220px !important;
        height: 250px !important;
    }

    .me-skin-row {
        grid-area: skins;
        justify-content: center;
        padding-bottom: 1rem;
    }

    .me-category-grid {
        grid-area: cats;
        grid-template-columns: repeat(3, 1fr);
        padding: 1.5rem 0 0;
        gap: 0.9rem;
        align-content: start;
    }

    .me-evolution-bar-wrap {
        width: 240px;
    }

    /* ── Play screen: wider layout ────────────────────────── */
    .me-play-wrap {
        max-width: 680px;
        margin: 0 auto;
    }

    .me-play-header,
    .me-round-bar-wrap {
        max-width: 600px;
    }

    /* Bigger monster on desktop */
    .me-monster-stage .me-monster-entity[data-evo="0"] { width: 160px; height: 190px; }
    .me-monster-stage .me-monster-entity[data-evo="1"] { width: 175px; height: 208px; }
    .me-monster-stage .me-monster-entity[data-evo="2"] { width: 190px; height: 224px; }
    .me-monster-stage .me-monster-entity[data-evo="3"] { width: 205px; height: 242px; }
    .me-monster-stage .me-monster-entity[data-evo="4"] { width: 220px; height: 260px; }

    .me-cards-area {
        max-width: 600px;
        gap: 1rem;
    }

    .me-card {
        min-width: 130px;
        padding: 1rem 1.3rem;
        font-size: 1.25rem;
    }

    .me-card-emoji {
        font-size: 2.2rem;
    }

    /* Result card wider on desktop */
    .me-result-card {
        max-width: 420px;
        padding: 2.5rem;
    }

    .me-result-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Large desktop (≥ 1024px) ─────────────────────────────── */
@media (min-width: 1024px) {
    .me-hub-container {
        grid-template-columns: 300px 1fr;
        max-width: 1000px;
        gap: 0 3rem;
    }

    .me-hub-monster-preview .me-monster-entity {
        width: 240px !important;
        height: 270px !important;
    }

    .me-category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .me-category-card {
        padding: 1.3rem 1rem;
    }

    .me-category-emoji {
        font-size: 2.5rem;
    }

    .me-category-label {
        font-size: 1rem;
    }
}
