/* ---- Main menu (logo, left panel, side pills) ---- */
.menu-stage { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; min-height: 52vh; padding: 0 .25rem; }
.menu-panel { width: min(100%, 360px); display: flex; flex-direction: column; gap: .6rem; padding: .9rem; background: rgba(17,24,39,.78); border: 1px solid rgba(75,85,99,.5); border-radius: 1.5rem; box-shadow: 0 14px 40px rgba(0,0,0,.4); backdrop-filter: blur(10px); }
.menu-btn { width: 100%; padding: .7rem 1rem; border-radius: 1rem; font-weight: 900; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: #e5e7eb; background: rgba(31,41,55,.85); border: 1px solid rgba(75,85,99,.6); display: flex; align-items: center; justify-content: center; gap: .6rem; }
.menu-btn:hover { border-color: #f59e0b; color: #fbbf24; }
.menu-btn.primary { background: linear-gradient(135deg, #dc2626, #991b1b); border-color: #ef4444; color: #fff; font-size: 1.1rem; padding: .85rem 1rem; box-shadow: 0 4px 20px rgba(220,38,38,.4); }
.menu-btn.primary:hover { color: #fff; border-color: #fca5a5; }
.menu-btn.danger:hover { border-color: #ef4444; color: #fca5a5; }
@media (max-width: 640px) {
    .menu-stage { flex-direction: column-reverse; align-items: stretch; min-height: 0; }
    }

/* ---- Bottom-right corner on menu screens: "So wird gespielt" next to Socials ---- */
#cornerBar { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 58; display: flex; align-items: center; gap: .5rem; transition: right .28s ease; }
body:not(.on-menu) #cornerBar { display: contents; }                 /* in-game: only the vertical Socials tab remains */
body:not(.on-menu) #howtoToggle { display: none; }
body.on-menu.social-open #cornerBar { right: calc(var(--social-w) + 1.5rem); }
#howtoToggle, body.on-menu #socialToggle { display: flex; align-items: center; gap: .5rem; padding: .75rem 1.2rem; border-radius: 1rem; background: rgba(17,24,39,.95); border: 1px solid #374151; color: #e5e7eb; font-weight: 900; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(0,0,0,.45); white-space: nowrap; }
#howtoToggle:hover, body.on-menu #socialToggle:hover { background: #1f2937; color: #fbbf24; }
body.on-menu #socialToggle { position: static; flex-direction: row; right: auto; }
body.on-menu .social-toggle-label { writing-mode: horizontal-tb; transform: none; }
@media (max-width: 520px) { #howtoToggle span { display: none; } }

/* ---- Mode cards ---- */
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.mode-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .3rem; min-height: 8.5rem; padding: 1rem; border-radius: 1.25rem; text-align: left; color: #fff; background-image: linear-gradient(135deg, var(--tw-gradient-from), var(--tw-gradient-to)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 28px rgba(0,0,0,.4); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.mode-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.35); }
.mode-card:active { transform: translateY(0); }
.mode-card .mc-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 2.6rem; height: 2.6rem; margin-bottom: .2rem; font-size: 1.5rem; line-height: 1; border-radius: .85rem; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); }
.mode-card .mc-icon:empty, .menu-mini .mm-icon:empty { display: none; }   /* icon slots stay hidden until an icon is inserted */
.mode-card .mc-name { font-weight: 900; font-size: 1.05rem; line-height: 1.2; }
.mode-card .mc-desc { font-size: .72rem; font-weight: 600; opacity: .85; line-height: 1.35; }
.mode-card .mc-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
/* Wide cards: icon on the left, text on the right (featured + odd card out in the grid) */
.mode-card.wide { grid-column: 1 / -1; width: 100%; min-height: 0; flex-direction: row; align-items: center; gap: .9rem; padding: .85rem 1rem; }
.mode-card.wide .mc-icon { margin-bottom: 0; }
@media (max-width: 380px) { .mode-grid { grid-template-columns: 1fr; } .mode-card { min-height: 0; } }

/* ---- Server browser ---- */
.join-bar { display: flex; gap: .5rem; width: 100%; }
.join-bar input { flex: 1; min-width: 0; text-align: center; text-transform: uppercase; letter-spacing: .3em; font-weight: 900; font-size: 1.1rem; background: rgba(3,7,18,.85); border: 1px solid #374151; border-radius: 1rem; padding: .8rem 1rem; color: #fff; }
.join-bar input:focus { outline: none; border-color: #f59e0b; }
.server-row { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: 1rem; background: rgba(17,24,39,.85); border: 1px solid #1f2937; }
.server-row:hover { border-color: rgba(245,158,11,.5); }
.server-row.running { opacity: .85; }
.server-badge { font-size: .65rem; font-weight: 900; padding: .15rem .5rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.server-badge.wait { color: #34d399; border-color: #047857; }
.server-badge.run { color: #fbbf24; border-color: #b45309; }
.server-badge.full { color: #f87171; border-color: #991b1b; }
.mode-card.mode-all { box-shadow: 0 10px 28px rgba(190,18,60,.35); }
.server-mode { display: inline-block; margin-right: .5rem; padding: 0 .4rem; border-radius: .3rem; background: #1f2937; color: #fca5a5; font-size: .65rem; font-weight: 800; }
.daily-panel { align-self: flex-end; }
@media (max-width: 640px) { .daily-panel { width: 100%; } }
