.login-register-dialog-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 450px;
    background: linear-gradient(170deg, rgba(42,30,8,0.96) 0%, rgba(30,21,6,0.97) 60%, rgba(22,16,4,0.97) 100%);
    border: 1px solid #8a6418;
    padding: 36px 40px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);

    border-radius: 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-register-dialog-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #8a6010 10%, #ffd040 40%, #c8980a 60%, #8a6010 90%, transparent 100%);
}

.login-register-dialog-content::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5a4010, transparent);
}

.login-register-dialog-content .lw-co {
    position: absolute;
    width: 20px; height: 20px;
    z-index: 5;
}
.login-register-dialog-content .lw-co::before,
.login-register-dialog-content .lw-co::after {
    content: ''; position: absolute; background: #7a5818;
}
.login-register-dialog-content .lw-co-tl { top: -1px; left: -1px; }
.login-register-dialog-content .lw-co-tl::before { top:0;left:0;width:20px;height:1px; }
.login-register-dialog-content .lw-co-tl::after  { top:0;left:0;width:1px;height:20px; }
.login-register-dialog-content .lw-co-tr { top: -1px; right: -1px; }
.login-register-dialog-content .lw-co-tr::before { top:0;right:0;width:20px;height:1px; }
.login-register-dialog-content .lw-co-tr::after  { top:0;right:0;width:1px;height:20px; }
.login-register-dialog-content .lw-co-bl { bottom: -1px; left: -1px; }
.login-register-dialog-content .lw-co-bl::before { bottom:0;left:0;width:20px;height:1px; }
.login-register-dialog-content .lw-co-bl::after  { bottom:0;left:0;width:1px;height:20px; }
.login-register-dialog-content .lw-co-br { bottom: -1px; right: -1px; }
.login-register-dialog-content .lw-co-br::before { bottom:0;right:0;width:20px;height:1px; }
.login-register-dialog-content .lw-co-br::after  { bottom:0;right:0;width:1px;height:20px; }

.login-register-dialog-content label {
    font-family: 'Cinzel', serif;
    font-size: 8.5px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #e8c060;
    display: block;
    margin-bottom: 6px;
    text-align: left;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.login-register-dialog-content input[type="text"],
.login-register-dialog-content input[type="password"],
.login-register-dialog-content input[type="email"] {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: none;
    border-bottom: 1px solid #9a7020;
    border-left: 2px solid #8a6018;
    border-radius: 0;
    padding: 10px 13px;
    font-family: 'Crimson Text', serif;
    font-size: 16px;
    color: #fce878;
    outline: none;
    transition: border-color 0.2s;
}
.login-register-dialog-content input[type="text"]:focus,
.login-register-dialog-content input[type="password"]:focus,
.login-register-dialog-content input[type="email"]:focus,
.login-register-dialog-content input[type="radio"]:focus {
    border-bottom-color: #c8980a;
    border-left-color: #9a7018;
    background: rgba(0,0,0,0.7);
    outline: none;
}

.login-register-dialog-content input[type="radio"]{
    display:inline;
    vertical-align: middle;
    background: rgba(0,0,0,0.5);
    border: none;
    border-bottom: 1px solid #9a7020;
    border-left: 2px solid #8a6018;
    border-radius: 0;
    padding: 10px 13px;
    font-family: 'Crimson Text', serif;
    font-size: 16px;
    color: #fce878;
    outline: none;
    transition: border-color 0.2s;
}

.login-register-dialog-content input::placeholder {
    color: #ffffff;
    font-style: italic;
}

.login-register-dialog-content .dialog-button.primary {
    width: 100%;
    margin-top: 18px;
    padding: 13px;
    background: transparent;
    border: 1px solid #6a4e10;
    border-top: 2px solid #c8980a;
    border-radius: 0;
    font-family: 'Cinzel', serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #140e0e;
    cursor: pointer;
    transition: all 0.2s;
}
.login-register-dialog-content .dialog-button.primary:hover {
    border-color: #e8b820;
    color: #ffe878;
    box-shadow: 0 0 20px rgba(200,150,10,0.1), inset 0 0 20px rgba(200,150,10,0.03);
}
.login-register-dialog-content .dialog-button.primary:active { transform: translateY(1px); }

.login-register-dialog-content .text-gray-700,
.login-register-dialog-content .text-blue-600 {
    color: #d4a040 !important;
    font-family: 'Crimson Text', serif;
    font-size: 14px;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.login-register-dialog-content .text-blue-600:hover {
    color: #ffd040 !important;
    text-decoration: underline;
}

.lw-skin-card {
    position: fixed;
    top: 50%;
    left: calc(50% + 300px);
    transform: translateY(-50%);
    width: 240px;

    /* background: linear-gradient(170deg, rgba(28,18,4,0.96) 0%, rgba(18,12,3,0.97) 100%); */
    /* border: 1px solid #8a6418; */
    /* border-radius: 16px; */
    animation: scPulseGlow 3s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 18px 18px;
    overflow: visible;
    z-index: 1001;
    pointer-events: none;

    border:1px solid var(--line);
    background:var(--panel);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    box-shadow:0 28px 80px rgba(35,14,0,.38),inset 0 1px rgba(255,255,255,.13);

    border-radius:21px;padding:18px;text-align:center;
}
.lw-skin-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f0c040, transparent);
    opacity: 0.6;
}
.lw-skin-card-label {
    font-family: 'Gochi Hand', cursive;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #b5831a, #f0c040, #ffe88a, #f0c040, #b5831a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: scShimmer 3s linear infinite;
    margin-bottom: 10px;
    text-align: center;
}
.lw-skin-card-img-wrap {
    position: relative;
    width: 200px;
    height: 240px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 12px;
    background: radial-gradient(ellipse at 50% 70%, rgba(181,131,26,0.18) 0%, rgba(80,40,10,0.22) 60%, transparent 100%);
}
.lw-skin-card-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 18px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.45) 0%, transparent 70%);
    border-radius: 50%;
}
.lw-skin-img {
    position: absolute;
    bottom: 0;
    height: 230px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.65));
    animation: scFloat 4s ease-in-out infinite;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.lw-skin-img.sc-out {
    animation: scFadeOut 0.35s ease forwards;
}
.lw-skin-img.sc-in {
    animation: scFadeIn 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}
.lw-skin-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240,192,64,0.4), transparent);
    margin: 10px 0 8px;
}
.lw-skin-name {
    font-family: 'Gochi Hand', cursive;
    font-size: 1.3rem;
    color: #fff8ee;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    text-align: center;
    line-height: 1.2;
    min-height: 1.6rem;
}
.lw-skin-unlock {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(181,131,26,0.2);
    border: 1px solid rgba(240,192,64,0.35);
    border-radius: 20px;
    padding: 4px 12px;
    font-family: 'Gochi Hand', cursive;
    font-size: 0.72rem;
    color: #f0c040;
}
.lw-skin-unlock.free {
    color: #7ec87e;
    border-color: rgba(126,200,126,0.3);
    background: rgba(126,200,126,0.1);
}
.lw-skin-cta {
    margin-top: 8px;
    font-family: 'Gochi Hand', cursive;
    font-size: 0.78rem;
    color: rgba(255,248,238,0.55);
    text-align: center;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
}
.lw-skin-arrow {
    display: inline-block;
    color: #f0c040;
    animation: scArrowBounce 1.2s ease-in-out infinite;
    font-size: 1rem;
}
.lw-skin-new-badge {
    background: linear-gradient(135deg, #e03030, #ff5555);
    color: #fff;
    font-family: 'Gochi Hand', cursive;
    font-size: 0.62rem;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    animation: scBadgePulse 2s ease-in-out infinite;
    text-transform: uppercase;
    margin-bottom: 8px;
    flex-shrink: 0;
}
.lw-skin-dots {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}
.lw-skin-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s, transform 0.3s;
    cursor: default;
}
.lw-skin-dot.on {
    background: #f0c040;
    transform: scale(1.5);
    box-shadow: 0 0 5px rgba(240,192,64,0.6);
}
@media (max-width: 1050px) { .lw-skin-card { display: none; } }

.login-register-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('images/bg2.png');
    background-size: cover;
    background-position: center top;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-register-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* A kinezet-bemutato kartya a szelesebb panel melle csuszik es vele
    egyutt no. Itt transform kell zoom helyett, mert a kartya fix
    poziciju - a zoom elmozditana a szamitott 50%-os kozepet. */
.lw-skin-card {
    /* left: calc(50% + 390px);
    transform: translateY(-50%) scale(1.4); */
    transform-origin: left center;

    border-radius: 16px;
    color: #ffffff;
    /* background: rgba(255, 255, 255, 0.1); */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width: 1400px) { .lw-skin-card { display: none; } }

.lw-seal-corner {
    position: absolute;
    top: -30px; left: -30px;
    width: 90px; height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(160,40,10,0.55));
    pointer-events: none;
    z-index: 10;
}

.lw-header {
    text-align: center;
    /* margin-bottom: 20px;
    padding-left: 32px; */
}

.lw-header-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffd040;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(255,200,40,0.2);
    line-height: 1.1;
}

.lw-header-sub {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 4px;
    color: #140e0e;
    text-transform: uppercase;
    margin-top: 7px;
}

.lw-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
}
.lw-rule-line { flex:1; height:1px; background: linear-gradient(90deg, #c8980a80, transparent); }
.lw-rule-line.r { background: linear-gradient(90deg, transparent, #c8980a80); }
.lw-rule-star { color: #c8980a; font-size: 12px; line-height: 1; }

.lw-tabs {
    display: flex;
    border-bottom: 1px solid #5a4010;
    margin-bottom: 20px;
}
.lw-tab {
    flex: 1;
    padding: 9px 6px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    background: transparent;
    color: #140e0e;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}
.lw-tab.active { color: #140e0e; border-bottom-color: #c8980a; }
.lw-tab:hover:not(.active) { color: #6a5018; }

.lw-field { margin-bottom: 14px; }

.profile-picture-selection {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    margin-top: 5px;
}
.profile-picture-selection img {
    /* width: 100%; */
    width:55px;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #4a3410;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.15s;
    filter: brightness(0.75) sepia(0.3) saturate(0.8);
    background: #1a1004;
}
.profile-picture-selection img:hover {
    border-color: #c8980a;
    filter: brightness(0.95) sepia(0.1);
    box-shadow: 0 0 6px rgba(200,150,10,0.35);
}
.profile-picture-selection img.selected {
    border-color: #ffd040;
    border-width: 2px;
    filter: brightness(1) sepia(0);
    box-shadow: 0 0 8px rgba(255,200,40,0.4);
}

.dialog-error {
    font-family: 'Crimson Text', serif;
    font-size: 13px;
    color: #b83030;
    text-align: center;
    font-style: italic;
    min-height: 16px;
}
.dialog-error.hidden { display: none; }

.lw-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #3a2c08;
}
.lw-step1 {
    height: 22px;
    opacity: 0.75;
    filter: brightness(1.1) contrast(1.1);
    transition: opacity 0.2s;
}
.lw-step1:hover { opacity: 1; }
/* ── LOGIN PANEL MÉRETE (2026.09.02.) ──────────────────────────
    A <body> zoom: 0.8 miatt a login/regisztracios panel a tervezettnel
    ~20%-kal kisebben jelent meg, ezert volt apro a betu. Itt magat a
    panelt nagyitjuk: a zoom minden benne levo szoveget, mezot es gombot
    egyszerre novel. 0.8 * 1.4 = 1.12, vagyis valamivel nagyobb, mint
    amit a bongeszo 125%-os nagyitasan lattal. Csak a login panelre hat. */
/* 
.login-register-dialog-content {
    zoom: 1.4;
    max-height: 88vh;
    overflow-y: auto;
} */

#messageBox {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 25px;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}
#messageBox.show {
    opacity: 1;
    visibility: visible;
}

#registrationDiv{
    max-height: 200px;
    overflow-y: auto;
}

.btns
{
    border: 1px solid rgba(255, 205, 83, .48);
    border-radius: 11px;
    background: rgba(22, 13, 7, .66);
    color: #ffe6a2;
    padding:10px;
    margin-top:5px;
}

.form-select {

    border-color:
        var(--error);
}

.form-select {

    width: 100%;

    height: 47px;

    padding:
        0
        14px;

    border:
        1px solid
        rgba(255, 210, 90, .22);

    border-radius: 8px;

    outline: none;

    color: #f9e5b6;

    background:
        rgba(24, 10, 3, .9);

    font-family: "Inter", sans-serif;

    font-size: 13px;

    transition:
        border-color .2s,
        box-shadow .2s;
}


.form-select:focus {

    border-color:
        rgba(255, 211, 90, .8);

    box-shadow:
        0 0 0 3px
        rgba(255, 202, 71, .08);
}


.form-select {

    appearance: none;

    cursor: pointer;
}

.btn-remove { padding: 8px 8px; margin-right: 6px; cursor: pointer; border: none; border-radius: 5px; background-color: #dc3545; color: white; }

.info-gomb {
    cursor: pointer;
    vertical-align: top;
}

 /* A felugró ablak stílusa */
dialog {
    border: none;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
/* A háttér sötétítése */
dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}
.bezár-gomb {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}
