
:root{
    --sand:#c2a36b;
    --gold:#d4af37;
    --rust:#b7410e;
    --leather:#2a1d14;
    --metal:#3a3a3a;
    --dark:#120d08;
    --text:#f3e6c8;
    --muted:#c9b89a;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    min-height:100vh;
    font-family:Inter,sans-serif;
    color:var(--text);

    background:
        radial-gradient(circle at top left, #d4af3720, transparent 40%),
        radial-gradient(circle at bottom right, #b7410e20, transparent 40%),
        url("https://www.transparenttextures.com/patterns/old-map.png");

    background-color:var(--dark);
    overflow-x:hidden;
}

body::after{
    content:"";
    position:fixed;
    right:-80px;
    bottom:-80px;
    width:320px;
    height:320px;
    background:url("https://upload.wikimedia.org/wikipedia/commons/3/3e/Gear_icon.svg");
    background-size:contain;
    opacity:0.06;
    transform:rotate(20deg);
    pointer-events:none;
}

.container{
    max-width:1300px;
    margin:auto;
    padding:40px 20px;
}

.hero{
    text-align:center;
    margin-bottom:40px;
}

.hero h1{
    font-family:'IM Fell English SC',serif;
    font-size:52px;

    background:linear-gradient(90deg,var(--gold),#fff6dd,var(--rust));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    text-shadow:
        0 2px 0 rgba(66, 70, 49, 0.9),
        0 6px 20px rgba(0,0,0,0.8),
        0 0 12px rgba(0,0,0,0.6);
}

.hero p{
    color:var(--muted);
    letter-spacing:2px;
    text-transform:uppercase;
}

.card{
    background:linear-gradient(145deg,var(--leather),#1a120c);

    border:1px solid #d4af3740;
    border-radius:18px;

    padding:30px;

    box-shadow:
        inset 0 0 0 1px #000,
        0 20px 50px rgba(0,0,0,0.6);

    margin-bottom:30px;

    animation:fadeIn 0.8s ease both;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

form{
    display:grid;
    gap:18px;
}

label{
    font-weight:600;
    color:var(--muted);
}

input,select{
    padding:14px;
    border-radius:12px;

    border:1px solid #ffffff20;

    background:#1a120c;
    color:var(--text);

    outline:none;
}

input:focus,select:focus{
    border-color:var(--gold);
    box-shadow:0 0 10px #d4af3740;
}

button{
    padding:16px;
    border:none;
    border-radius:14px;

    background:linear-gradient(135deg,var(--rust),var(--gold));
    color:#120d08;

    font-weight:bold;
    font-family:'Orbitron',sans-serif;

    cursor:pointer;
}

button:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 30px #00000070;
}

table{
    width:100%;
    border-collapse:separate;
    border-spacing:0 12px;
}

th{
    text-align:left;
    color:var(--gold);
    font-size:12px;
    letter-spacing:2px;
}

td{
    background:#1a120c;
    padding:14px;
    border-top:1px solid #d4af3720;
    border-bottom:1px solid #d4af3720;
}

tr:hover td{
    background:#24170f;
}

.colorPreview{
    width:24px;
    height:24px;
    border-radius:50%;
    border:2px solid #000;
}

.msg{
    padding:12px;
    margin-bottom:15px;
    background:#d4af3720;
    border:1px solid #d4af3740;
    color:var(--gold);
    border-radius:10px;
}

.card{
    overflow:hidden;
}

table{
    display:block;
    overflow-x:auto;
    white-space:nowrap;
}
