* {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #090d16;
    font-family: 'Inter', sans-serif;
    color: #f8fafc;
    touch-action: none;
}
.tribal-font {
    font-family: 'Cinzel', serif;
}
#gameCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}
.hud-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 10px;
}
.hud-interactive {
    pointer-events: auto;
}
.stone-panel {
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.92) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1.5px solid rgba(217, 119, 6, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}
.stone-btn {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 2px 6px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
    transition: transform 0.1s ease, filter 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}
.stone-btn:hover {
    filter: brightness(1.14);
    border-color: #fbbf24;
}
.stone-btn:active {
    transform: scale(0.95);
}
.ring-btn {
    background: linear-gradient(180deg, #991b1b 0%, #450a0a 100%);
    border: 1.5px solid #fbbf24;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(254, 240, 138, 0.35);
    transition: transform 0.1s ease, filter 0.15s ease;
    cursor: pointer;
}
.ring-btn:hover {
    filter: brightness(1.18);
}
.ring-btn:active {
    transform: scale(0.95);
}
.imperial-btn {
    background: linear-gradient(180deg, #4c1d95 0%, #1e1b4b 100%);
    border: 1.5px solid #c084fc;
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.35);
    transition: transform 0.1s ease, filter 0.15s ease;
    cursor: pointer;
}
.imperial-btn:hover {
    filter: brightness(1.16);
}
.imperial-btn:active {
    transform: scale(0.95);
}
.wood-btn {
    background: linear-gradient(180deg, #065f46 0%, #064e3b 100%);
    border: 1px solid #34d399;
    transition: transform 0.1s ease, filter 0.15s ease;
    cursor: pointer;
}
.wood-btn:hover {
    filter: brightness(1.15);
}
.wood-btn:active {
    transform: scale(0.95);
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
