:root {
    --bg: #0a0a0a;
    --text: #e0e0e0;
    --yellow: #ffd700;
    --darkyellow: #d4a017;
    --card: #181818;
    --border: #444;
    --danger: #ff6666;
}

* { box-sizing: border-box; margin:0; padding:0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

header {
    background: #111;
    border-bottom: 4px solid var(--yellow);
    padding: 1rem;
}

.container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

.sidebar {
    width: 240px;
    position: fixed;
    top: 0; bottom: 0;
    background: #111;
    padding: 1.5rem;
    overflow-y: auto;
    border-right: 1px solid #222;
}

.main-content {
    margin-left: 260px;
    padding: 2rem;
}

.zone {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.4rem;
    margin: 1.5rem 0;
}

.craft-container { display: flex; align-items: center; gap: 2rem; margin: 1.5rem 0; }
.craft-grid { display: grid; grid-template-columns: repeat(3, 68px); gap: 5px; padding: 12px; background: #1e1e1e; border: 4px solid var(--yellow); border-radius: 8px; }
.craft-cell { width: 68px; height: 68px; background: #2a2a2a; border: 2px solid #555; display: flex; align-items: center; justify-content: center; }
.craft-cell img { max-width: 92%; max-height: 92%; }
.craft-arrow { font-size: 3.5rem; color: var(--yellow); font-weight: bold; }
.craft-result { width: 90px; height: 90px; background: #1e1e1e; border: 4px solid var(--yellow); border-radius: 10px; position: relative; }
.result-count { position: absolute; bottom: 6px; right: 8px; background: rgba(0,0,0,0.7); color: white; padding: 4px 9px; border-radius: 6px; font-weight: bold; }

button, input[type=submit] {
    background: var(--yellow);
    color: black;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

button:hover { background: var(--darkyellow); }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; border: 1px solid var(--border); }
th { background: #222; color: var(--yellow); }