@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

body {
    background: #000;
    color: #eee;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    min-height: 100vh;
}
.center-box {
    background: #222;
    color: #eee;
    max-width: 350px;
    margin: 60px auto;
    padding: 32px 24px;
    border-radius: 8px;
    box-shadow: 0 0 16px #000a;
    text-align: center;
}
input, button {
    margin: 8px 0;
    padding: 10px;
    width: 90%;
    border: none;
    border-radius: 4px;
    background: #333;
    color: #eee;
}
button {
    background: #444;
    cursor: pointer;
    font-weight: bold;
}
button:hover {
    background: #666;
}
.error {
    color: #ff6666;
    margin-bottom: 10px;
}
.success {
    color: #66ff99;
    margin-bottom: 10px;
}
/* Layout for game page */
.header {
    position: relative;
    background: #181818 url('images/header.png') no-repeat center center;
    background-size: cover;
    padding: 0;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #333;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 32px;
}
.header-title {
    font-size: 3.5em;
    font-weight: bold;
    color: #eee;
    text-align: center;
    flex: 1;
    line-height: 1;
    font-family: 'Cinzel', serif;
}
.layout {
    display: flex;
    min-height: 80vh;
}
.menu {
    background: #141414;
    width: 300px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.menu a {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 12px 0;
    margin: 0 auto 8px auto;
    width: 90%;
    border-radius: 12px;
    border: 1px solid #222;
    text-align: center;
    background: linear-gradient(180deg, #2a2a2a 0%, #181818 100%);
    box-shadow: 0 2px 8px 0 #000a;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    font-weight: 600;
    position: relative;
    font-size: 1.13em;
}
.menu a:hover {
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    color: #fff;
    box-shadow: 0 4px 16px 0 #000c;
}
.menu a:active {
    background: linear-gradient(180deg, #181818 0%, #111 100%);
    color: #bbb;
    box-shadow: 0 1px 4px 0 #000b;
    transform: translateY(2px) scale(0.98);
}
.content {
    flex: 1;
    padding: 28px;
    background: #181818 url('images/background.png') repeat;
    background-size: 400px;
    min-height: 400px;
}
.content h2 {
    margin-top: 4px;
    margin-bottom: 24px;
    font-size: 2.2em;
    font-weight: 700;
}
.character-panel {
    background: #000;
    border: 1px solid #222;
    border-radius: 14px;
    box-shadow: 0 2px 10px 0 #000a;
    padding: 12px 16px;
    margin: 12px auto 12px auto;
    width: 90%;
    text-align: center;
    box-sizing: border-box;
}
.character-name {
    font-size: 1.25em;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 700;
}
.character-portrait img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #333;
    margin-bottom: 12px;
    background: #111;
}
.character-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
    font-size: 1em;
}
.character-row .label {
    color: #bbb;
    text-align: left;
}
.character-row .value {
    color: #fff;
    text-align: right;
    font-weight: 600;
    min-width: 48px;
}
.character-hr {
    border: none;
    border-top: 1px solid #222;
    margin: 10px 0 10px 0;
    opacity: 0.4;
}
.menu-hr {
    border: none;
    border-top: 1px solid #222;
    margin-top: 4px;
    margin-bottom: 12px;
    width: 90%;
    opacity: 0.35;
}
.gold-value {
    color: #ffd700;
    text-align: right;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.gold-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-left: 2px;
}
.stat-damage {
    color: #ff4444;
    text-align: right;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.stat-endurance {
    color: #44dd44;
    text-align: right;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
/* Sjednocené boxy pro akce (úkoly, práce, atd.) */
.action-box {
    background: #181818;
    border: 1px solid #222;
    border-radius: 12px;
    box-shadow: 0 2px 8px #000a;
    padding: 18px 20px 16px 20px;
    margin: 0 0 22px 0;
    width: 100%;
    max-width: 420px;
    color: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.action-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}
.action-info {
    font-size: 1em;
    color: #bbb;
    margin-bottom: 14px;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.action-btn {
    background: linear-gradient(180deg, #2a2a2a 0%, #181818 100%);
    color: #fff;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 1.1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px #000a;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    margin-top: 6px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
    width: auto;
}
.action-btn:disabled {
    background: #222;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}
.action-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    color: #fff;
}
/* Inventář / merchant grid */
.inventory-grid, .merchant-grid {
    display: grid;
    grid-template-columns: repeat(10, 60px);
    grid-template-rows: repeat(6, 60px);
    gap: 8px;
    background: #111;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 2px 8px #000a;
    width: max-content;
}
.inv-slot, .m-slot {
    width: 60px;
    height: 60px;
    background: #222;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px #0008;
    cursor: pointer;
    position: relative;
}
.item-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 8px #000a;
    font-size: 1em;
    white-space: nowrap;
    margin-top: 8px;
    z-index: 10;
    pointer-events: none;
}
.inv-slot img, .m-slot img {
    max-width:52px;
    max-height:52px;
    display:block;
}
.inventory-wrapper, .merchant-wrapper {
    margin: 24px 0 0 0;
}
.news-box {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 18px auto;
    padding: 24px 32px;
}
.news-date {
    font-size: 0.98em;
    color: #bbb;
    margin-bottom: 4px;
}
.news-title { font-size: 1.4em; }
.news-info { font-size: 1.1em; }
.equip-grid {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    grid-template-rows: repeat(3, 60px);
    gap: 8px;
    background: #111;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 2px 8px #000a;
    width: max-content;
    margin-bottom: 24px;
} 