/* ==========================================================
   Old2Play — player account
   ========================================================== */

.acct { min-height: 100vh; display: flex; flex-direction: column; }
.acct [hidden] { display: none !important; }
.acct main { flex: 1; }
.a-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 60px; }
.acct .h-nav { background: rgba(251, 244, 230, 0.7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ---------- shared bits ---------- */

.a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    font: 700 0.95rem/1 var(--ui);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.a-btn:hover { transform: translateY(-1px); }
.a-btn:active { transform: translateY(1px); }
.a-btn:disabled { opacity: 0.55; pointer-events: none; }
.a-btn-main { color: #fff; background: linear-gradient(180deg, #f2502f, #cf2f18); box-shadow: 0 4px 0 #8d1d12, 0 10px 22px rgba(226, 59, 34, 0.28); }
.a-btn-main:active { box-shadow: 0 1px 0 #8d1d12; transform: translateY(3px); }
.a-btn-ghost { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line), 0 4px 12px rgba(70, 48, 18, 0.06); }
.a-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.a-btn-dark { color: #fff; background: var(--ink); }
.a-btn-dark:hover { background: #2c241a; }
.a-btn-danger { color: #fff; background: var(--danger); box-shadow: 0 4px 0 #7d2219; }
.a-btn-wide { width: 100%; }
.a-btn-sm { min-height: 36px; padding: 0 12px; font-size: 0.82rem; }
.a-link {
    border: 0;
    background: none;
    padding: 4px 0;
    font: 700 0.85rem/1 var(--ui);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slug);
    cursor: pointer;
}
.a-link:hover { text-decoration: underline; }
.a-error { min-height: 1.2em; margin: 8px 0 0; color: var(--danger); font-weight: 600; font-size: 0.92rem; }
.a-error.is-ok { color: var(--glow-text); }
.a-kicker { margin: 0 0 10px; font: 700 0.85rem/1 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--slug); }
.a-label { margin: 18px 0 8px; font: 700 0.8rem/1 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.a-text { margin: 0 0 16px; color: var(--text-dim); line-height: 1.55; }
.a-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 26px 18px;
    border: 2px dashed var(--line);
    border-radius: 16px;
    text-align: center;
    color: var(--text-dim);
}
.a-empty a { color: var(--slug); font-weight: 600; }

.a-field { display: grid; gap: 6px; margin-bottom: 14px; }
.a-field > span:first-child { display: flex; justify-content: space-between; font: 700 0.8rem/1 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.a-field em { font-style: normal; letter-spacing: 0.04em; }
.a-field small { color: var(--text-dim); font-size: 0.82rem; }
.a-field input, .a-field textarea, .a-field select, .a-input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: 400 1rem/1.3 var(--body);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.a-field textarea { resize: vertical; min-height: 84px; }
.a-field input:focus, .a-field textarea:focus, .a-field select:focus, .a-input:focus {
    outline: none;
    border-color: var(--slug);
    box-shadow: 0 0 0 4px rgba(226, 59, 34, 0.14);
}
.a-pass { position: relative; display: block; }
.a-pass input { padding-right: 72px; }
.a-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: rgba(70, 48, 18, 0.06);
    font: 700 0.75rem/1 var(--ui);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    cursor: pointer;
}
.a-strength { display: flex; align-items: center; gap: 10px; min-height: 18px; }
.a-strength i { flex: 1; height: 6px; border-radius: 6px; background: rgba(70, 48, 18, 0.08); position: relative; overflow: hidden; }
.a-strength i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--c, #ccc); border-radius: inherit; transition: width 0.3s, background 0.3s; }
.a-strength em { font: 700 0.75rem/1 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c, var(--text-dim)); font-style: normal; min-width: 70px; text-align: right; }

.a-seg {
    position: relative;
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 4px;
    border-radius: 14px;
    background: rgba(70, 48, 18, 0.07);
}
.a-seg button {
    position: relative;
    z-index: 1;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: none;
    font: 700 0.88rem/1 var(--ui);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.a-seg button.is-on { color: var(--text); background: #fff; box-shadow: 0 3px 10px rgba(70, 48, 18, 0.14); }
.a-seg-sm button { min-height: 34px; padding: 0 12px; }
.a-seg-ink { display: none; }

.a-switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; cursor: pointer; }
.a-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.a-switch i {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: rgba(70, 48, 18, 0.18);
    transition: background 0.2s;
    pointer-events: none;
}
.a-switch i::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.a-switch input:checked + i { background: #36c25a; }
.a-switch input:checked + i::after { transform: translateX(22px); }
.a-switch input:focus-visible + i { box-shadow: 0 0 0 4px rgba(54, 194, 90, 0.25); }

input[type=range] { accent-color: var(--slug); width: 100%; }

.a-avatar {
    --size: 48px;
    position: relative;
    display: grid;
    place-items: center;
    width: var(--size);
    height: var(--size);
    flex: none;
    border: 0;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
    background: var(--av, #e23b22);
    color: #fff;
    font-family: var(--stencil);
    font-size: calc(var(--size) * 0.44);
    line-height: 1;
    box-shadow: inset 0 -6px 14px rgba(0, 0, 0, 0.18);
}
.a-avatar img { width: 100%; height: 100%; object-fit: cover; }
.a-avatar .a-emoji { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-size: calc(var(--size) * 0.52); }
.a-avatar-xl { --size: 116px; border: 5px solid #fff; box-shadow: 0 14px 34px rgba(70, 48, 18, 0.25); cursor: pointer; transition: transform 0.2s; }
.a-avatar-xl:hover { transform: scale(1.04) rotate(-3deg); }
.a-avatar-big { --size: 120px; box-shadow: 0 10px 26px rgba(70, 48, 18, 0.2); }

.a-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 90;
    transform: translateX(-50%);
    margin: 0;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: 700 0.9rem/1.2 var(--ui);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    animation: a-pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1) both;
    max-width: calc(100vw - 32px);
    text-align: center;
}
@keyframes a-pop { from { opacity: 0; transform: translate(-50%, 16px) scale(0.9); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- signed out ---------- */

.a-gate {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 0 30px;
}
.a-gate-title {
    margin: 0;
    font-family: var(--stencil);
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 0.98;
}
.a-gate-title span {
    color: transparent;
    background: linear-gradient(90deg, #e23b22, #ff7a1a, #ffb000, #1fb5a8, #3d8bfd, #e23b22);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: h-flow 8s linear infinite;
}
.a-gate-lede { margin: 18px 0 26px; max-width: 32rem; font-size: 1.12rem; line-height: 1.55; color: var(--text-dim); }
.a-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.a-perks li {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    animation: h-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d) both;
}
.a-perks i { font-style: normal; font-size: 1.6rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(70, 48, 18, 0.1); }
.a-perks b { display: block; font-family: var(--ui); font-size: 1.1rem; letter-spacing: 0.04em; }
.a-perks span { color: var(--text-dim); font-size: 0.94rem; }
.a-gate-card {
    padding: 26px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(70, 48, 18, 0.18), 0 0 0 1px var(--line);
    animation: h-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}
.a-gate-card .a-seg { display: grid; width: 100%; margin-bottom: 22px; }
.a-form h2 { margin: 0 0 18px; font-family: var(--stencil); font-weight: 400; font-size: 1.8rem; }

/* ---------- hero card ---------- */

.a-hero {
    position: relative;
    overflow: hidden;
    padding: 0 26px 22px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(70, 48, 18, 0.14), 0 0 0 1px var(--line);
    animation: h-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.a-banner {
    position: relative;
    height: 150px;
    margin: 0 -26px;
    overflow: hidden;
    background: linear-gradient(120deg, var(--av, #e23b22), #ffb000 55%, #1fb5a8);
    background-size: 200% 200%;
    animation: a-banner 12s ease-in-out infinite alternate;
}
.a-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.14) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 2px, transparent 2px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent);
    mask-image: linear-gradient(180deg, #000, transparent);
}
.a-banner i {
    position: absolute;
    bottom: -20px;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.55);
    animation: a-float 7s linear infinite;
}
.a-banner i:nth-child(1) { left: 8%; animation-delay: 0s; }
.a-banner i:nth-child(2) { left: 24%; width: 12px; height: 12px; animation-delay: -2s; animation-duration: 9s; }
.a-banner i:nth-child(3) { left: 46%; animation-delay: -4s; }
.a-banner i:nth-child(4) { left: 63%; width: 10px; height: 10px; animation-delay: -1s; animation-duration: 6s; }
.a-banner i:nth-child(5) { left: 80%; animation-delay: -5s; animation-duration: 10s; }
.a-banner i:nth-child(6) { left: 92%; width: 14px; height: 14px; animation-delay: -3s; }
@keyframes a-banner { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes a-float {
    0% { transform: translateY(0) rotate(0); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translateY(-190px) rotate(240deg); opacity: 0; }
}
.a-hero-row { position: relative; display: flex; align-items: flex-start; gap: 20px; margin-top: -58px; }
.a-who { flex: 1; min-width: 0; padding-top: 70px; }
.a-who h1 {
    margin: 4px 0 2px;
    font-family: var(--stencil);
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1;
    overflow-wrap: anywhere;
}
.a-level-chip {
    display: inline-flex;
    margin: 0;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--amber);
    font: 700 0.78rem/1 var(--ui);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.a-handle { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; color: var(--text-dim); font-size: 0.95rem; }
.a-handle span:empty { display: none; }
.a-bio { margin: 8px 0 0; max-width: 42rem; line-height: 1.5; white-space: pre-line; }
.a-bio:empty { display: none; }
.a-hero-actions { display: flex; gap: 10px; padding-top: 72px; }
.a-xp { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.a-xp-bar { flex: 1; height: 12px; border-radius: 12px; background: rgba(70, 48, 18, 0.08); overflow: hidden; }
.a-xp-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffb000, #e23b22);
    background-size: 200% 100%;
    transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: a-banner 3s linear infinite alternate;
}
.a-xp p { margin: 0; font: 700 0.85rem/1 var(--ui); letter-spacing: 0.08em; color: var(--text-dim); white-space: nowrap; }
.a-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.a-quick div { padding: 12px 14px; border-radius: 16px; background: #fbf4e6; border: 1px solid var(--line); }
.a-quick b { display: block; font-family: var(--stencil); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.a-quick span { font: 600 0.78rem/1 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }

/* ---------- tabs ---------- */

.a-tabs {
    position: sticky;
    top: 74px;
    z-index: 20;
    display: flex;
    gap: 6px;
    margin: 20px 0 18px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 26px rgba(70, 48, 18, 0.1), 0 0 0 1px var(--line);
}
.a-tabs::-webkit-scrollbar { display: none; }
.a-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 13px;
    background: none;
    font: 700 0.9rem/1 var(--ui);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.a-tabs button i { font-style: normal; font-size: 1.05rem; }
.a-tabs button:hover { color: var(--text); background: rgba(70, 48, 18, 0.05); }
.a-tabs button.is-on { color: #fff; background: var(--ink); }

.a-panel { animation: h-rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* ---------- blocks ---------- */

.a-block {
    min-width: 0;
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(70, 48, 18, 0.08), 0 0 0 1px var(--line);
}
.a-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.a-block-head h2 { margin: 0; font-family: var(--stencil); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.02em; }
.a-block-head h2 small { font-family: var(--body); font-size: 0.8rem; color: var(--text-dim); }
.a-block-head p { margin: 0; color: var(--text-dim); font-weight: 600; }
.a-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.a-cols > .a-block { margin-bottom: 18px; }
.a-cols-profile { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.a-form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.a-form-foot .a-error { margin: 0; }

/* game cards */
.a-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 210px); gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.a-game {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(70, 48, 18, 0.1), 0 0 0 1px var(--line);
    scroll-snap-align: start;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
    animation: h-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i, 0) * 0.04s) both;
}
.a-game:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(70, 48, 18, 0.18), 0 0 0 1px var(--line); }
.a-shot { position: relative; aspect-ratio: 4 / 3; background: #16120c; overflow: hidden; }
.a-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.a-game:hover .a-shot img { transform: scale(1.06); }
.a-shot .a-sys {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(22, 18, 12, 0.78);
    color: #fff;
    font: 700 0.7rem/1 var(--ui);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.a-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(22, 18, 12, 0.35);
    opacity: 0;
    transition: opacity 0.2s;
    text-decoration: none;
}
.a-play b {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--slug);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transform: scale(0.7);
    transition: transform 0.25s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.a-game:hover .a-play, .a-play:focus-visible { opacity: 1; }
.a-game:hover .a-play b { transform: none; }
.a-star {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #b9ad99;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, color 0.2s;
}
.a-star:hover { transform: scale(1.12); }
.a-star.is-on { color: #ffb000; animation: a-star 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes a-star { 0% { transform: scale(0.6) rotate(-30deg); } 100% { transform: none; } }
.a-game-body { display: grid; gap: 3px; padding: 11px 13px 13px; }
.a-game-body strong { font-family: var(--ui); font-size: 1.08rem; letter-spacing: 0.02em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-game-body small { color: var(--text-dim); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-game-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.a-game-foot a, .a-game-foot button {
    border: 0;
    background: none;
    padding: 0;
    font: 700 0.78rem/1 var(--ui);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slug);
    text-decoration: none;
    cursor: pointer;
}
.a-game-foot button { color: var(--text-dim); }
.a-game-foot button:hover { color: var(--danger); }
.a-lock { color: var(--text-dim); font: 600 0.75rem/1 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; }
.a-more { display: flex; justify-content: center; margin-top: 18px; }

/* list rows */
.a-list { display: grid; gap: 10px; }
.a-list-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.a-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    background: #fbf4e6;
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, transform 0.2s;
}
a.a-item:hover { background: #fff; transform: translateX(3px); }
.a-item img { width: 72px; height: 54px; flex: none; border-radius: 10px; object-fit: cover; background: #16120c; }
.a-item div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.a-item strong { font-family: var(--ui); font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-item small { color: var(--text-dim); }
.a-item .a-go { font: 700 0.78rem/1 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--slug); padding-right: 6px; }
.a-stars { color: #ffb000; letter-spacing: 2px; }

/* library toolbar */
.a-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.a-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.a-chips button {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--line);
    font: 700 0.85rem/1 var(--ui);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    cursor: pointer;
}
.a-chips button b { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(70, 48, 18, 0.08); font-size: 0.75rem; }
.a-chips button.is-on { background: var(--slug); color: #fff; box-shadow: 0 6px 16px rgba(226, 59, 34, 0.28); }
.a-chips button.is-on b { background: rgba(255, 255, 255, 0.25); }
.a-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.a-filters .a-input { width: auto; min-width: 180px; min-height: 42px; padding: 8px 12px; }

/* stats */
.a-big-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.a-big {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 20px;
    color: #fff;
    background: var(--c);
    box-shadow: 0 14px 30px rgba(70, 48, 18, 0.16);
    animation: h-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 0.07s) both;
}
.a-big::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.a-big i { font-style: normal; font-size: 1.5rem; }
.a-big b { display: block; margin-top: 6px; font-family: var(--stencil); font-weight: 400; font-size: 2rem; line-height: 1; }
.a-big span { font: 700 0.8rem/1 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }
.a-bars { display: grid; gap: 12px; }
.a-bar-row { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 12px; }
.a-bar-row b { font-family: var(--ui); font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-bar-row span { text-align: right; color: var(--text-dim); font: 600 0.9rem/1 var(--ui); }
.a-bar { height: 14px; border-radius: 14px; background: rgba(70, 48, 18, 0.07); overflow: hidden; }
.a-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c); transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.a-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: top; }
.a-top li { counter-increment: top; }
.a-top .a-item::before {
    content: counter(top);
    flex: none;
    width: 26px;
    text-align: center;
    font-family: var(--stencil);
    font-size: 1.1rem;
    color: var(--text-dim);
}
.a-top li:nth-child(1) .a-item::before { color: #e0a100; }
.a-top li:nth-child(2) .a-item::before { color: #9a9a9a; }
.a-top li:nth-child(3) .a-item::before { color: #b06a2c; }

/* badges */
.a-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.a-badge {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 16px 10px 14px;
    border-radius: 18px;
    text-align: center;
    background: #fbf4e6;
    border: 1px solid var(--line);
    animation: h-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i, 0) * 0.04s) both;
}
.a-badge i {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-style: normal;
    font-size: 1.7rem;
    background: radial-gradient(circle at 35% 30%, #fff6c9, #ffcf4a 50%, #e09a00);
    box-shadow: 0 6px 0 #a86c00, 0 10px 20px rgba(224, 154, 0, 0.35);
}
.a-badge b { font-family: var(--ui); font-size: 1rem; letter-spacing: 0.04em; }
.a-badge small { color: var(--text-dim); font-size: 0.8rem; line-height: 1.3; }
.a-badge.is-locked i { background: #e6dccb; box-shadow: 0 6px 0 #cbbfa9; filter: grayscale(1); opacity: 0.6; }
.a-badge.is-locked b { color: var(--text-dim); }
.a-badge .a-prog { width: 80%; height: 5px; border-radius: 5px; background: rgba(70, 48, 18, 0.1); overflow: hidden; }
.a-badge .a-prog em { display: block; height: 100%; background: var(--slug); }
.a-badges-mini { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.a-badges-mini .a-badge { padding: 10px 4px; background: none; border: 0; }
.a-badges-mini .a-badge i { width: 48px; height: 48px; font-size: 1.4rem; }
.a-badges-mini .a-badge b { font-size: 0.78rem; }
.a-badges-mini .a-badge small { display: none; }
.a-next { margin: 10px 0 0; color: var(--text-dim); font-size: 0.92rem; }

/* profile */
.a-pic { display: flex; align-items: center; gap: 20px; }
.a-pic-actions { display: grid; gap: 8px; justify-items: start; }
.a-pic-actions small { color: var(--text-dim); }
.a-file { position: relative; overflow: hidden; }
.a-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.a-emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.a-emojis button, .a-colors button {
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #fbf4e6;
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.a-emojis button { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.a-emojis button.a-none { font: 700 0.75rem/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.a-emojis button:hover, .a-colors button:hover { transform: scale(1.08); }
.a-emojis button.is-on { box-shadow: 0 0 0 3px var(--slug); background: #fff; }
.a-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.a-colors button { width: 40px; height: 40px; border-radius: 50%; background: var(--c); }
.a-colors button.is-on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c); }

/* settings */
.a-saved {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: #36c25a;
    color: #fff;
    font: 700 0.85rem/1 var(--ui);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(54, 194, 90, 0.35);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}
.a-saved.is-on { opacity: 1; transform: none; }
.a-set {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.a-block-head + .a-set { border-top: 0; padding-top: 2px; }
.a-set > div:first-child { display: grid; gap: 3px; min-width: 0; }
.a-set b { font-family: var(--ui); font-size: 1.05rem; letter-spacing: 0.03em; }
.a-set b em { font-style: normal; color: var(--slug); margin-left: 6px; }
.a-set span { color: var(--text-dim); font-size: 0.9rem; }
.a-set-col { flex-direction: column; align-items: stretch; gap: 10px; }
.a-touch { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr); gap: 26px; align-items: center; }
.a-touch-sets .a-set:first-child { border-top: 0; }
.a-touch-preview {
    --s: 1;
    --o: 0.9;
    position: relative;
    aspect-ratio: 2 / 1;
    border-radius: 26px;
    background: #16120c;
    box-shadow: inset 0 0 0 8px #2b241d, 0 16px 34px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.tp-screen {
    position: absolute;
    left: 24%;
    right: 24%;
    top: 8px;
    bottom: 8px;
    background: linear-gradient(160deg, #3d8bfd, #1fb5a8 50%, #9cb64a);
    opacity: 0.85;
}
.tp-dpad, .tp-face { position: absolute; bottom: 12%; opacity: var(--o); transition: transform 0.25s, opacity 0.25s; }
.tp-dpad { left: 6%; width: calc(26% * var(--s)); aspect-ratio: 1; transform-origin: left bottom; }
.tp-dpad i { position: absolute; background: #4a4036; border-radius: 4px; }
.tp-dpad i:nth-child(1) { left: 33%; right: 33%; top: 0; bottom: 0; }
.tp-dpad i:nth-child(2) { top: 33%; bottom: 33%; left: 0; right: 0; }
.tp-face { right: 6%; width: calc(26% * var(--s)); aspect-ratio: 1; transform-origin: right bottom; }
.tp-face i { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; }
.tp-face i:nth-child(1) { left: 33%; top: 0; background: #3d7adf; }
.tp-face i:nth-child(2) { left: 0; top: 33%; background: #3caa4a; }
.tp-face i:nth-child(3) { right: 0; top: 33%; background: #e23b22; }
.tp-face i:nth-child(4) { left: 33%; bottom: 0; background: #ffb000; }
.a-touch-preview.is-off .tp-dpad, .a-touch-preview.is-off .tp-face { opacity: 0; }

/* devices */
.a-devices { display: grid; gap: 10px; }
.a-device {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #fbf4e6;
    border: 1px solid var(--line);
}
.a-device > i { font-style: normal; font-size: 1.5rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #fff; flex: none; }
.a-device div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.a-device strong { font-family: var(--ui); font-size: 1.05rem; }
.a-device small { color: var(--text-dim); }
.a-device em { font-style: normal; padding: 3px 8px; border-radius: 999px; background: #36c25a; color: #fff; font: 700 0.7rem/1 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; }

.a-danger { box-shadow: 0 12px 30px rgba(192, 57, 43, 0.08), 0 0 0 1.5px rgba(192, 57, 43, 0.35); }
.a-danger h2 { color: var(--danger); }

/* modal */
.a-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(22, 18, 12, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.a-modal[hidden] { display: none; }
.a-modal-card { width: min(440px, 100%); padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3); animation: a-modal 0.3s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.a-modal-card h2 { margin: 0 0 8px; font-family: var(--stencil); font-weight: 400; font-size: 1.5rem; }
.a-modal-card p { color: var(--text-dim); line-height: 1.5; }
.a-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
@keyframes a-modal { from { opacity: 0; transform: scale(0.9) translateY(10px); } to { opacity: 1; transform: none; } }

.a-foot { padding: 24px 16px 34px; text-align: center; color: var(--text-dim); font-size: 0.92rem; }
.a-foot a { color: inherit; }

/* ---------- smaller screens ---------- */

@media (max-width: 980px) {
    .a-gate { grid-template-columns: 1fr; gap: 26px; min-height: 0; }
    .a-gate-copy { order: 2; }
    .a-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .a-big-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .a-touch { grid-template-columns: 1fr; }
    .a-touch-preview { max-width: 380px; width: 100%; margin: 0 auto; }
}
@media (max-width: 760px) {
    .a-cols, .a-cols-profile { grid-template-columns: 1fr; gap: 0; }
    .a-hero { padding: 0 16px 18px; border-radius: 22px; }
    .a-banner { margin: 0 -16px; height: 120px; }
    .a-hero-row { flex-wrap: wrap; margin-top: -50px; gap: 12px; }
    .a-avatar-xl { --size: 96px; }
    .a-who { flex-basis: 100%; padding-top: 0; }
    .a-hero-actions { flex-basis: 100%; padding-top: 0; }
    .a-hero-actions .a-btn { flex: 1; }
    .a-tabs { top: 70px; margin-left: -4px; margin-right: -4px; }
    .a-tabs button { padding: 0 12px; }
    .a-block { padding: 16px; border-radius: 18px; }
    .a-toolbar { flex-direction: column; align-items: stretch; }
    .a-filters .a-input { flex: 1; min-width: 0; }
    .a-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .a-play { opacity: 1; background: none; align-items: end; justify-items: end; padding: 8px; }
    .a-play b { width: 42px; height: 42px; font-size: 1rem; transform: none; }
}
@media (max-width: 520px) {
    .a-wrap { width: calc(100% - 20px); padding-top: 10px; }
    .a-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .a-quick div:last-child { grid-column: 1 / -1; }
    .a-quick b { font-size: 1.35rem; }
    .a-gate-card { padding: 18px; border-radius: 20px; }
    .a-bar-row { grid-template-columns: 84px 1fr 56px; gap: 8px; }
    .a-big b { font-size: 1.6rem; }
    .a-pic { flex-direction: column; align-items: flex-start; }
    .a-set { flex-wrap: wrap; }
    .a-tabs button i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .a-banner, .a-banner i, .a-xp-bar i, .a-gate-title span { animation: none; }
    .a-game, .a-badge, .a-big, .a-panel, .a-hero, .a-perks li, .a-gate-card { animation: none; }
}
