body {
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0b0d17;
    color: #fff;
    user-select: none;
}

#ui {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(20, 22, 30, 0.85);
    padding: 15px 22px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

h1 { margin: 0 0 6px 0; font-size: 22px; color: #ff6b35; letter-spacing: 0.5px; }
p { margin: 0; font-size: 13px; color: #bbb; }

#search-box {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

#search-box input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(20, 22, 30, 0.85);
    color: white;
    font-size: 14px;
    outline: none;
    width: 210px;
    backdrop-filter: blur(10px);
}

#search-box input:focus { border-color: #ff6b35; }

.btn-panel {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

button:hover { background: #e85a27; transform: translateY(-2px); }
button.customize { background: #f59e0b; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }
button.customize:hover { background: #d97706; }
button.secondary { background: #d97706; box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4); }
button.secondary:hover { background: #b45309; }

/* Normál Beköltözési Modál */
#modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #181a24;
    padding: 28px;
    border-radius: 16px;
    z-index: 100;
    border: 2px solid #ff6b35;
    width: 330px;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0,0,0,0.85);
}

#modal h3 { margin-top: 0; color: #ff6b35; text-align: center; }
#modal label { font-size: 12px; color: #aaa; display: block; margin-top: 10px; }
#modal input, #modal select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin: 5px 0 10px 0;
    background: #252836;
    border: 1px solid #3f445b;
    color: white;
    border-radius: 8px;
    font-size: 14px;
}
#modal input:disabled { opacity: 0.6; cursor: not-allowed; }

/* KÖZÉPKORI PERGAMEN FALIÚJSÁG MODÁL */
#notice-modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #e3c496; /* Meleg pergamen háttér */
    color: #3b2314;     /* Sötétbarna régies szöveg */
    padding: 30px;
    border-radius: 12px;
    z-index: 100;
    border: 4px solid #582f0e; /* Vastag faketret stílus */
    width: 420px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.85), inset 0 0 40px rgba(111, 78, 55, 0.3);
    font-family: 'Georgia', serif; /* Klasszikus ódon betűtípus */
}

#notice-modal h2 {
    margin-top: 0;
    color: #582f0e;
    font-size: 22px;
    border-bottom: 2px solid #8d5b4c;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.notice-text-box {
    background: #f4e3c1;
    color: #2c1d11;
    padding: 18px;
    border-radius: 6px;
    border: 1px dashed #8d5b4c;
    font-size: 15px;
    line-height: 1.6;
    margin: 20px 0;
    text-align: left;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    max-height: 250px;
    overflow-y: auto;
}

/* Pergamen ablak bezáró gomb */
#notice-modal button {
    background: #7f1d1d;
    color: #f4e3c1;
    border: 2px solid #582f0e;
    font-family: 'Georgia', serif;
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#notice-modal button:hover {
    background: #991b1b;
    transform: translateY(-2px);
}

.close-btn {
    background: transparent;
    color: #888;
    box-shadow: none;
    padding: 8px 15px;
    margin-top: 5px;
    font-size: 13px;
    width: 100%;
}
.close-btn:hover { color: #fff; background: transparent; transform: none; }

#controls-hint {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    pointer-events: none;
}