/* Hoyooken: your account's tabs (Wallet, Inventory, Purchases, Settings) and the public player profile (part C, 2026-10-30).
   Loaded after account.css on the account and profile pages. Uses site.css tokens, so light and dark themes come for free. */
.acct-card.wide{width:min(780px,100%)}
.acct .muted{color:var(--muted)}
.acct h2{font-size:19px;font-weight:800;margin:0}
.acct h3{font-size:16px;font-weight:700;margin:0}
.acct .btn.sm{min-height:36px;padding:6px 12px;font-size:14px}
.acct .btn svg{width:18px;height:18px;flex:none}
.acct .box{display:grid;gap:12px;padding:16px;border-radius:16px;background:var(--bg);min-width:0}
.acct .boxh{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
.acct .twocol{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:620px){.acct .twocol{grid-template-columns:1fr}}
.acct ul.plain{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.acct ul.plain li{display:flex;gap:8px;align-items:center}
.acct ul.plain svg{width:20px;height:20px;flex:none}

/* header: avatar, nickname, title, link to the public profile */
.acct .me{flex-wrap:wrap}
.acct .me .who{flex:1 1 200px}
.acct .titlepill,.acct .me .titlepill,.acct .pfhead .titlepill{justify-self:start;margin:2px 0 0;padding:2px 10px;border-radius:999px;background:color-mix(in srgb,var(--fox) 16%,transparent);color:var(--ink);font-weight:700;font-size:13px}
.acct .pflink{flex:none}
.acct .pidbox .pidline{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.acct .pidbox code{font-size:1.15em;font-weight:700;letter-spacing:.06em}
.acct .pidbox .small{margin:6px 0 0}

/* tabs */
.acct .tabs{display:flex;gap:4px;padding:4px;border-radius:14px;background:var(--bg);overflow-x:auto;scrollbar-width:none}
.acct .tabs::-webkit-scrollbar{display:none}
.acct .tabs button{flex:1 0 auto;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;border:0;border-radius:11px;background:none;color:var(--muted);font:600 15px var(--body);cursor:pointer}
.acct .tabs button svg{width:18px;height:18px}
.acct .tabs button[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px rgba(35,32,74,.12)}
.acct .tabs button:focus-visible{outline:3px solid var(--teal);outline-offset:1px}
@media (max-width:460px){.acct .tabs button{padding:8px;font-size:14px}.acct .tabs button svg{display:none}}
.acct .panel{display:grid;gap:14px}

/* wallet */
.acct .bals{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media (max-width:560px){.acct .bals{grid-template-columns:1fr}}
.acct .bal{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"i n" "i l" "s s";column-gap:10px;align-items:center;padding:14px;border-radius:16px;background:var(--bg)}
.acct .bal .ico{grid-area:i}.acct .bal .ico svg{width:34px;height:34px;display:block}
.acct .bal b{grid-area:n;font-size:24px;line-height:1.1;font-variant-numeric:tabular-nums}
.acct .bal .nm{grid-area:l;font-weight:600;font-size:14px}
.acct .bal small{grid-area:s;margin-top:6px;color:var(--muted);font-size:12.5px;line-height:1.4}
.acct .bal-h{opacity:.85}
.acct .hist{list-style:none;margin:0;padding:0;display:grid}
.acct .hist li{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"what amts" "when amts";column-gap:12px;padding:9px 0;border-top:1px solid var(--line)}
.acct .hist li:first-child{border-top:0}
.acct .hist .what{grid-area:what;font-weight:600;font-size:14.5px;overflow-wrap:anywhere}
.acct .hist .when{grid-area:when;font-size:12.5px;color:var(--muted)}
.acct .hist .amts{grid-area:amts;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;justify-content:flex-end}
.acct .amt{display:inline-flex;align-items:center;gap:3px;font-weight:700;font-variant-numeric:tabular-nums;font-size:14px}
.acct .amt svg{width:16px;height:16px}
.acct .amt.up{color:var(--teal)}
.acct .amt.down{color:var(--ink)}
.acct .msg .amt{margin-inline-start:6px}

/* inventory */
.acct .kind{display:grid;gap:8px}
.acct .kind + .kind{margin-top:6px}
.acct .tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
.acct .tile{display:grid;justify-items:center;gap:6px;padding:10px 8px;border-radius:14px;background:var(--surface);text-align:center;box-shadow:inset 0 0 0 1.5px var(--line)}
.acct .tile.on{box-shadow:inset 0 0 0 2.5px var(--teal)}
.acct .tile .pic{display:grid;place-items:center;min-height:52px}
.acct .tile .pic svg{display:block;width:52px;height:52px}
.acct .tile .pic.sw{width:52px;height:52px;border-radius:14px;background:linear-gradient(135deg,var(--a) 0 50%,var(--b) 50% 100%)}
.acct .tile .nm{font-weight:600;font-size:13.5px;line-height:1.3}
.acct .tile small{font-size:12px;margin-top:-4px}
.acct .tile .btn{width:100%;justify-content:center}
.acct .tpill{padding:4px 10px;border-radius:999px;background:color-mix(in srgb,var(--fox) 16%,transparent);font-weight:700;font-size:13px}

/* settings: the public-profile switch (a real checkbox; the knob is decoration) */
.acct .switch{display:flex;gap:12px;align-items:flex-start;cursor:pointer;font-weight:400}
.acct .switch input{position:absolute;opacity:0;width:1px;height:1px}
.acct .switch .knob{flex:none;position:relative;width:46px;height:28px;border-radius:999px;background:var(--line);transition:background .2s;margin-top:2px}
.acct .switch .knob::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
.acct .switch input:checked + .knob{background:var(--teal)}
.acct .switch input:checked + .knob::after{transform:translateX(18px)}
:root[dir="rtl"] .acct .switch input:checked + .knob::after,[dir="rtl"] .acct .switch input:checked + .knob::after{transform:translateX(-18px)}
.acct .switch input:focus-visible + .knob{outline:3px solid var(--teal);outline-offset:2px}
.acct .switch span:last-child{display:grid;gap:4px}
.acct .switch small{color:var(--muted);font-size:13px;line-height:1.45}
@media (prefers-reduced-motion:reduce){.acct .switch .knob,.acct .switch .knob::after{transition:none}}

/* public profile */
.acct .you{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;justify-content:space-between}
.acct .you a{color:var(--fox);font-weight:600}
.acct .pfhead{display:flex;flex-wrap:wrap;gap:18px;align-items:center}
.acct .pfhead .av.big{flex:none;width:112px;height:112px;border-radius:32px;overflow:hidden;box-shadow:var(--shadow)}
.acct .pfhead .av.big svg{display:block;width:112px;height:112px}
.acct .pfhead .who{min-width:0;flex:1 1 220px;display:grid;gap:4px}
.acct .pfhead h1{font-size:clamp(26px,6vw,34px);overflow-wrap:anywhere}
.acct .pfhead p{margin:0}
.acct .pfid{margin:0;color:var(--muted)}
.acct .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
@media (max-width:560px){.acct .stats{grid-template-columns:repeat(2,1fr)}}
.acct .stat{display:grid;gap:2px;padding:12px;border-radius:14px;background:var(--bg);text-align:center}
.acct .stat b{font-size:24px;font-variant-numeric:tabular-nums}
.acct .stat span{font-size:13px;color:var(--muted)}
.acct .badges{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px}
.acct .badge{display:grid;justify-items:center;text-align:center;gap:4px;padding:12px 8px;border-radius:14px;background:var(--surface)}
.acct .badge svg{width:48px;height:48px}
.acct .badge b{font-size:14px}
.acct .badge small{font-size:12px;color:var(--muted);line-height:1.35}
.acct .badge.off svg{filter:grayscale(1);opacity:.35}
.acct .badge.off b{color:var(--muted)}
.acct .pgames{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.acct .pgames a{display:flex;gap:12px;align-items:center;padding:8px;border-radius:14px;background:var(--surface);color:var(--ink);text-decoration:none}
.acct .pgames a:hover{box-shadow:inset 0 0 0 2px var(--fox)}
.acct .pgames img{flex:none;width:96px;height:60px;object-fit:cover;border-radius:10px;background:var(--line)}
.acct .pgames .g{flex:1;min-width:0;display:grid;gap:4px}
.acct .pgames .chips{display:flex;flex-wrap:wrap;gap:4px}
.acct .pgames .chip{font-size:12px;padding:2px 8px;border-radius:999px;background:var(--bg);color:var(--muted)}
.acct .pgames .go{flex:none;font-weight:700;color:var(--fox);font-size:14px;padding-inline-end:6px}
@media (max-width:420px){.acct .pgames img{width:72px;height:45px}.acct .pgames .go{display:none}}

/* sharing (part D): the share box on the account page and the profile page */
.acct .hbtns{display:flex;flex-wrap:wrap;gap:8px;flex:0 1 auto;min-width:0}
@media (max-width:620px){.acct .hbtns{flex:1 1 100%}.acct .hbtns .btn{flex:1 1 auto;justify-content:center}}
.acct .share h2{font-size:18px}
.acct .nets{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:8px}
.acct .net{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border-radius:12px;background:var(--surface);color:var(--ink);text-decoration:none;font:600 14px var(--body);border:0;box-shadow:inset 0 0 0 1.5px var(--line);cursor:pointer;text-align:start}
.acct .net:hover{box-shadow:inset 0 0 0 2px var(--fox)}
.acct .net svg{width:24px;height:24px;flex:none}
.acct .sharecard{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line)}
.acct .sharecard > div{display:grid;gap:6px;flex:1 1 240px}
.acct .sharecard p{margin:0}
.acct .cardprev canvas{display:block;width:132px;height:auto;border-radius:14px;box-shadow:var(--shadow)}
.acct .cardprev:empty{display:none}
/* Invite friends (Wallet tab) and the invited-visitor note on sign-in / sign-up (gifts and referrals, 2026-10-31) */
.acct .invite .reflabel{display:grid;gap:6px;font-weight:600;font-size:14px}
.acct .invite .reflink{width:100%;box-sizing:border-box;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:600 14px 'Readex Pro',system-ui,sans-serif;text-align:left}
.acct .invite p{margin:0}
.acct .invite .refstat{font-size:17px}
.acct .invite .refnext{display:grid;gap:6px}
.acct .invite .refprize{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.acct .invite .refprize svg{border-radius:12px}
.acct .refnote{background:color-mix(in srgb,var(--fox) 14%,var(--surface));border:1px solid color-mix(in srgb,var(--fox) 40%,transparent);border-radius:14px;padding:10px 14px;margin:0 0 12px}

/* platform achievements (part 1, 2026-11-03): the Achievements tab's list and the profile's earned badges (badges.py pictures) */
.acct .achs{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.acct .ach{display:flex;gap:12px;align-items:center;padding:10px 12px;border-radius:16px;background:var(--surface);min-width:0}
.acct .ach .bdg{width:58px;height:auto;flex:none}
.acct .ach div{display:grid;gap:2px;min-width:0}
.acct .ach b{font-family:var(--display);font-size:17px;line-height:1.2}
.acct .ach small{font-size:13px;color:var(--muted);line-height:1.35}
.acct .ach.soon b{color:var(--muted)}
.acct .soonpill{justify-self:start;margin-top:2px;font-size:12px;font-weight:700;padding:2px 10px;border-radius:99px;background:var(--bg);color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--line)}
.acct .achbar{display:block;height:6px;border-radius:99px;background:var(--line);overflow:hidden;margin-top:4px}
.acct .achbar i{display:block;height:100%;border-radius:inherit;background:var(--fox)}
.acct .achline{font-variant-numeric:tabular-nums}
.acct .achsh{justify-self:start;margin-top:6px;min-height:44px;padding:0 18px;border:0;border-radius:12px;background:var(--bg);color:var(--teal);font:700 15px var(--body,inherit);box-shadow:inset 0 0 0 2px var(--teal);cursor:pointer}
.acct .achsh:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.acct .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.acct .achs.mini{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.acct .d5{margin-block:0 14px}
