:root{
    /* Palette */
    --bg: #F2EFDE;
    --text: #141316;
    --muted: rgba(20, 19, 22, .62);

    --paper: rgba(255,255,255,.82);
    --paper2: rgba(255,255,255,.62);
    --border: rgba(20, 19, 22, .12);

    --pink: #f7a8cc;
    --pink2:#ffcae2;

    --radius: 24px;
    --shadow: 0 22px 70px rgba(16, 14, 18, .10);
    --shadow2: 0 12px 30px rgba(16, 14, 18, .08);

    --container: 980px;

    --serif: "Playfair Display", ui-serif, Georgia, serif;
    --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
}

body::before{
    content:"";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .9;
    background:
    radial-gradient(1100px 700px at 14% 8%, rgba(247,168,204,.20), transparent 55%),
    radial-gradient(900px 650px at 86% 14%, rgba(0,0,0,.06), transparent 60%),
    radial-gradient(900px 650px at 40% 90%, rgba(0,0,0,.04), transparent 60%);
    mix-blend-mode: multiply;
}

::selection{
    background: rgba(247,168,204,.45);
}

.container{
    width: min(var(--container), calc(100% - 44px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.top{
    padding: 72px 0 26px;
    text-align: center;
}

.badge{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.65);
    padding: 9px 13px;
    border-radius: 999px;
    margin-bottom: 16px;
    box-shadow: var(--shadow2);
}
.dot{
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(247,168,204,.95);
    box-shadow: 0 0 18px rgba(247,168,204,.35);
}
.badge span{
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(20,19,22,.70);
}

h1{
    margin: 0 0 12px;
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.02;
}

.subtitle{
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
    max-width: 62ch;
}

.card{
    margin: 26px auto 80px;
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid rgba(20, 19, 22, .10);
    background: linear-gradient(180deg, var(--paper), rgba(255,255,255,.72));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card::before{
    content:"";
    display:block;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(247,168,204,.9), transparent);
}

.card-head{
    padding: 18px 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.note{
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.divider{
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 19, 22, .12), transparent);
    margin: 0 22px;
}

.status{
    margin: 0;
    padding: 14px 22px 0;
    font-size: 14px;
    color: var(--muted);
}
.status.ok{ color: #0b5f2a; }
.status.err{ color: #8a1e2a; }

form{
    padding: 22px;
    display: grid;
    gap: 16px;
}

.grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 760px){
    .top{ padding-top: 54px; }
    .grid{ grid-template-columns: 1fr; }
    .card-head{ padding-left: 18px; padding-right: 18px; }
    .divider{ margin-left: 18px; margin-right: 18px; }
    form{ padding: 18px; }
}

label{
    display: block;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(20,19,22,.72);
    margin-bottom: 8px;
}

input{
    width: 100%;
    padding: 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(20, 19, 22, .14);
    background: rgba(255,255,255,.72);
    outline: none;
    font-size: 15px;
    color: var(--text);
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease, background .12s ease;
}

input:hover{
    background: rgba(255,255,255,.82);
}

input:focus{
    border-color: rgba(247,168,204,.85);
    box-shadow: 0 0 0 5px rgba(247,168,204,.18);
    transform: translateY(-1px);
}

.help{
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.5;
    color: var(--muted);
}

.actions{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 6px;
}

.btn{
    appearance: none;
    border: 1px solid rgba(20, 19, 22, .14);
    background: rgba(255,255,255,.66);
    color: var(--text);
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 650;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
    box-shadow: 0 10px 18px rgba(16,14,18,.06);
}

.btn:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,.82);
}

.btn:active{
    transform: translateY(0px);
}

.btn.primary{
    border-color: rgba(247,168,204,.85);
    background: linear-gradient(135deg, rgba(247,168,204,.32), rgba(255,202,226,.18));
    box-shadow: 0 14px 26px rgba(247,168,204,.18);
}

.btn.primary:hover{
    border-color: rgba(247,168,204, 1);
    background: linear-gradient(135deg, rgba(247,168,204,.40), rgba(255,202,226,.22));
}

.hp{
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    input, .btn{ transition: none; }
}

.card.status-mode{
    padding-bottom: 6px;
}

.card.status-mode .status{
    text-align: center;
    padding: 34px 22px 36px;
    font-size: 16px;
    line-height: 1.6;
}

.card.status-mode .status.ok{
    color: #0b5f2a;
}

.card.status-mode .status.err{
    color: #8a1e2a;
}

select{
    width: 100%;
    padding: 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(20, 19, 22, .14);
    background: rgba(255,255,255,.72);
    outline: none;
    font-size: 15px;
    color: var(--text);
    transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease, background .12s ease;
}

select:hover{ background: rgba(255,255,255,.82); }

select:focus{
    border-color: rgba(247,168,204,.85);
    box-shadow: 0 0 0 5px rgba(247,168,204,.18);
    transform: translateY(-1px);
}

.party-members{ display: grid; gap: 14px; }

.party-title{
    margin: 6px 0 -2px;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(20,19,22,.72);
}

.topbar{
    display:flex;
    justify-content:flex-end;
    margin-bottom: 14px;
}

.lang-switch{
    display:inline-flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(20, 19, 22, .14);
    background: rgba(255,255,255,.62);
    box-shadow: 0 10px 18px rgba(16,14,18,.06);
    backdrop-filter: blur(10px);
}

.lang-btn{
    border: 1px solid transparent;
    background: transparent;
    color: rgba(20,19,22,.75);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.lang-btn:hover{ transform: translateY(-1px); }

.lang-btn[aria-pressed="true"]{
    color: rgba(20,19,22,.92);
    border-color: rgba(247,168,204,.85);
    background: linear-gradient(135deg, rgba(247,168,204,.32), rgba(255,202,226,.18));
}

@media (max-width: 760px){
    .topbar{ justify-content:center; }
}