#account-dialog {
  width: min(760px,calc(100% - 40px)); height: min(900px,calc(100dvh - 40px)); max-height:none;
  margin:auto; padding:0; border:1px solid #506533; border-radius:26px; color:#fffde9; background:#0b100b; overflow:hidden;
}
#account-dialog[open] { display:block; }
#account-dialog *, #account-dialog *::before, #account-dialog *::after { box-sizing:border-box; }
#account-dialog ::selection { background:#d5ff66; color:#152009; }
#account-dialog button, #account-dialog input, #account-dialog textarea { font:inherit; }
#account-dialog button { cursor:pointer; touch-action:manipulation; }
#account-dialog button:disabled { opacity:.48; cursor:default; }
#account-dialog button:focus-visible, #account-dialog input:focus-visible, #account-dialog textarea:focus-visible { outline:2px solid #d5ff66; outline-offset:3px; }
#account-dialog input, #account-dialog textarea { caret-color:#d5ff66; }
.ac-shell { height:100%; display:flex; flex-direction:column; }
.ac-header { display:flex; gap:15px; align-items:center; padding:22px 28px 16px; flex:none; }
.ac-header h1 { margin:0; font:400 32px/1.2 ArcadeDisplay,'PingFang SC',sans-serif; letter-spacing:-.6px; }
.ac-round-button { width:44px; height:44px; min-width:44px; display:grid; place-items:center; padding:11px; border:1px solid #526735; border-radius:50%; background:#17200f; }
.ac-round-button img { width:22px; height:22px; filter:invert(90%); }
.ac-header-mark { margin-left:auto; display:grid; place-items:center; width:32px; height:32px; transform:rotate(-8deg); background:#d5ff66; border-radius:9px; }
.ac-header-mark img { width:25px; height:25px; }
.ac-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#48612e transparent; }
.ac-content { padding:3px 28px 30px; }
.ac-feedback { position:sticky; top:0; z-index:3; color:#ffd4a0; border:1px solid #6a532e; background:#2a2315; border-radius:12px; padding:12px 14px; margin:0 0 16px; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.ac-welcome { display:flex; position:relative; gap:10px; align-items:center; min-height:172px; margin:3px 0 18px; }
.ac-welcome>div { position:relative; z-index:1; }
.ac-welcome h2 { font:400 33px/1.25 ArcadeDisplay,'PingFang SC',sans-serif; letter-spacing:-.6px; margin:0 0 14px; }
.ac-welcome p { max-width:300px; font-size:13px; line-height:1.7; color:#b6c0aa; margin:0; }
.ac-welcome>img { width:170px; height:170px; object-fit:contain; margin-left:auto; flex:none; }
.ac-auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; background:#16200f; border:1px solid #3d5129; padding:4px; border-radius:24px; margin:0 0 22px; }
.ac-auth-tabs>button { border:0; border-radius:20px; min-height:44px; font-size:14px; font-weight:650; color:#bac7ae; background:transparent; }
.ac-auth-tabs>button[aria-selected=true] { background:#d5ff66; color:#152009; }
.ac-form { display:flex; flex-direction:column; gap:16px; }
.ac-field { display:block; min-width:0; }
.ac-field>span:first-child { display:block; color:#c2ceb7; font-size:12px; font-weight:600; margin:0 0 8px; }
.ac-field input, .ac-field textarea { width:100%; min-width:0; border:1px solid #465b31; border-radius:13px; padding:12px 14px; background:#162010; color:#fffde9; font-size:16px!important; line-height:1.45; }
.ac-field input { min-height:48px; }
.ac-field textarea { display:block; resize:vertical; min-height:100px; max-height:260px; }
.ac-field input::placeholder, .ac-field textarea::placeholder { color:#9eae8e; opacity:1; font-size:13px; }
.ac-password { display:flex; align-items:center; position:relative; }
.ac-password>input { padding-right:66px; }
.ac-password>button { position:absolute; right:2px; top:2px; min-height:44px; min-width:56px; padding:8px; background:transparent; border:0; color:#c3d3b0; font-size:12px!important; }
.ac-button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px; border:1px solid #506b31; border-radius:24px; background:#1c2a13; color:#e4eddc; padding:11px 18px; font-size:13px!important; font-weight:650!important; line-height:1.4; }
.ac-button img { width:18px; height:18px; filter:invert(90%); }
.ac-registration-note { margin:0 0 16px; color:#b9c8a6; font-size:12px; line-height:1.7; }
.ac-button.ac-primary { background:#d5ff66; color:#152009; border-color:#d5ff66; box-shadow:inset 0 2px 2px #efffb8,inset 0 -3px 0 #9bbd43; }
.ac-button.ac-primary img { filter:none; }
.ac-button:hover:not(:disabled) { background:#2a3d1b; }
.ac-button.ac-primary:hover:not(:disabled) { background:#e3ff96; }
.ac-full { width:100%; }
.ac-guest-button { display:flex; align-items:center; justify-content:center; gap:12px; background:transparent; border:0; min-height:48px; padding:14px; color:#b9c6ac; font-size:12px!important; width:100%; margin-top:12px; }
.ac-guest-button img { width:17px; height:17px; filter:invert(76%); }
.ac-pass { border:1px solid #758f42; border-radius:19px; padding:20px; background:#18230f; }
.ac-pass-main { display:flex; gap:13px; align-items:center; }
.ac-avatar { display:grid; place-items:center; width:60px; height:60px; border-radius:18px; flex:none; background:#d5ff66; color:#1a2809; font:400 31px/1 ArcadeDisplay,'PingFang SC',sans-serif; }
.ac-identity { min-width:0; flex:1; }
.ac-identity h2 { font:400 29px/1.25 ArcadeDisplay,'PingFang SC',sans-serif; letter-spacing:-.4px; margin:0 0 4px; overflow-wrap:anywhere; }
.ac-username { display:block; font-size:12px; color:#becbac; overflow-wrap:anywhere; }
.ac-text-button { background:transparent; border:0; color:#c8dcac; padding:10px 4px; min-height:44px; font-size:12px!important; white-space:nowrap; }
.ac-text-button:hover:not(:disabled) { color:#e1ffac; }
.ac-id-copy { display:flex; align-items:center; width:100%; gap:10px; text-align:left; border:0; border-top:1px solid #40552a; background:transparent; padding:14px 0; margin-top:19px; min-height:46px; }
.ac-id-copy>span:first-child { font-size:10px; color:#c0cdaa; white-space:nowrap; }
.ac-id-copy>strong { flex:1; min-width:0; font-size:11px; font-weight:500; line-height:1.7; color:#e0eacf; overflow-wrap:anywhere; user-select:text; }
.ac-copy-label { color:#d5ff66; font-size:11px; }
.ac-pass-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top:1px solid #40552a; padding-top:4px; }
.ac-self-status { display:inline-flex; gap:7px; align-items:center; font-size:11px; color:#d1ddbd; }
.ac-self-status i, .ac-online i { display:inline-block; width:6px; height:6px; border-radius:50%; background:#d5ff66; flex:none; }
.ac-profile-edit { border-top:1px solid #40552a; padding-top:15px; margin-top:4px; }
.ac-profile-edit .ac-action-row { margin-top:12px; }
.ac-tabs { display:flex; gap:4px; border-bottom:1px solid #344725; margin:23px 0 22px; }
.ac-shortcuts { display:grid; gap:10px; margin:18px 0; }
.ac-shortcuts .ac-catalog-link { margin:0; }
.ac-catalog-link { display:flex; align-items:center; gap:13px; width:100%; min-height:78px; margin:18px 0; padding:14px 16px; border:1px solid #536d32; border-radius:18px; background:#172310; color:#fffde9; text-align:left; }
.ac-catalog-link:hover:not(:disabled) { background:#203014; border-color:#88a84c; }
.ac-catalog-icon { display:grid; place-items:center; width:43px; height:43px; flex:none; border:1px solid #506b31; border-radius:13px; background:#243718; }
.ac-catalog-icon>img { width:24px; height:24px; filter:invert(87%) sepia(39%) saturate(605%) hue-rotate(24deg); }
.ac-catalog-copy { flex:1; min-width:0; }
.ac-catalog-copy>strong { display:block; font:400 23px/1.3 ArcadeDisplay,'PingFang SC',sans-serif; margin-bottom:5px; }
.ac-catalog-copy>small { display:block; color:#b4c5a2; font-size:11px; line-height:1.5; }
.ac-catalog-link>img { width:20px; height:20px; flex:none; filter:invert(87%); }
.ac-tabs>button { flex:1; min-width:0; min-height:48px; padding:11px 5px; border:0; border-bottom:2px solid transparent; background:transparent; color:#b3c3a3; font-size:14px!important; font-weight:600; display:inline-flex; gap:5px; align-items:center; justify-content:center; white-space:nowrap; }
.ac-tabs>button[aria-current=page] { color:#d5ff66; border-bottom-color:#d5ff66; }
.ac-count { background:#d5ff66; color:#18250a; border-radius:10px; min-width:16px; padding:2px 4px; font-size:9px; }
.ac-section-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:0 0 12px; min-height:32px; }
.ac-section-heading h2 { font-size:18px; line-height:1.4; margin:0; font-weight:700; }
.ac-section-heading h2>span { font-size:12px; color:#b4c39f; font-weight:500; margin-left:5px; }
.ac-section-heading h3 { font-size:14px; margin:0; }
.ac-section-heading>span { font-size:11px; color:#aebd9c; }
.ac-empty { text-align:center; padding:34px 18px; }
.ac-empty>img { width:42px; height:42px; filter:invert(82%) sepia(33%) saturate(573%) hue-rotate(25deg); margin-bottom:12px; }
.ac-empty h3 { margin:0 0 10px; font-size:16px; color:#e3eed6; line-height:1.5; }
.ac-empty p { margin:0 auto; max-width:320px; color:#b4c3a2; font-size:12px; line-height:1.8; }
.ac-loading { font-size:13px; line-height:1.7; color:#c7d9ae; text-align:center; padding:36px 15px; }
.ac-recent-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.ac-recent-game { display:flex; min-width:0; flex-direction:column; border:1px solid #516d31; padding:0; border-radius:16px; overflow:hidden; color:#fffde9; background:#141f0e; text-align:left; }
.ac-recent-art { height:110px; width:100%; display:block; }
.ac-recent-art>img { width:100%; height:100%; object-fit:contain; display:block; }
.ac-recent-info { display:block; padding:0 13px 10px; }
.ac-recent-info>strong { display:block; font:400 22px/1.3 ArcadeDisplay,'PingFang SC',sans-serif; margin-bottom:6px; overflow-wrap:anywhere; }
.ac-recent-info>small { color:#b3c59c; font-size:10px; }
.ac-recent-action { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12px; color:#d5ff66; padding:11px 13px; border-top:1px solid #344b23; margin-top:auto; }
.ac-recent-action>img { width:17px; height:17px; filter:invert(88%); }
.ac-next-link { display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid #354a25; padding-top:21px; margin-top:26px; }
.ac-next-link h3 { margin:0 0 7px; font-size:14px; line-height:1.5; }
.ac-next-link p { margin:0; font-size:12px; line-height:1.65; color:#b2c39e; }
.ac-inline-error { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; margin-bottom:12px; background:#2a2315; color:#ffd4a0; border-radius:11px; font-size:12px; line-height:1.6; }
.ac-inline-error>button { border:0; min-height:44px; background:transparent; color:#ffe5bb; white-space:nowrap; padding:8px; }
.ac-add-friend { margin:0 0 21px; }
.ac-input-action { display:flex; position:relative; }
.ac-input-action>input { padding-right:60px; }
.ac-input-action>button { position:absolute; right:2px; top:2px; width:44px; height:44px; min-height:44px; border:0; border-radius:11px; background:#d5ff66; display:grid; place-items:center; padding:12px; }
.ac-input-action>button>img { width:20px; height:20px; }
.ac-friend-list, .ac-request-list, .ac-pending-list, .ac-ticket-list { list-style:none; padding:0; margin:0; }
.ac-friend { display:flex; align-items:center; gap:12px; padding:16px 0; border-bottom:1px solid #2f4420; }
.ac-avatar-small { width:42px; height:42px; border-radius:13px; font-size:23px; background:#2b3d1d; color:#d5ff66; }
.ac-person { min-width:0; flex:1; }
.ac-person>strong { display:block; font-size:14px; line-height:1.4; overflow-wrap:anywhere; margin-bottom:5px; }
.ac-online { display:inline-flex; align-items:center; gap:6px; color:#a7b597; font-size:10px; }
.ac-online i { width:5px; height:5px; background:#7d8d70; }
.ac-online.is-online { color:#d5ff66; }
.ac-online.is-online i { background:#d5ff66; }
.ac-friend-actions, .ac-action-row { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.ac-small-button { min-width:44px; min-height:44px; border:1px solid #49622c; border-radius:22px; padding:8px 13px; background:#1a2812; color:#d1dfc0; font-size:12px!important; white-space:nowrap; }
.ac-small-button.ac-invite { background:#d5ff66; color:#192708; border-color:#d5ff66; font-weight:650; }
.ac-small-button.ac-danger { color:#ffd1b6; border-color:#796044; background:#2b2517; }
.ac-more-button { display:grid; place-items:center; width:44px; min-width:44px; min-height:44px; padding:13px; border:0; background:transparent; }
.ac-more-button>img { width:16px; height:16px; filter:invert(74%); }
.ac-subsection { margin:21px 0; }
.ac-subsection h3 { display:flex; align-items:center; gap:7px; font-size:13px; color:#d6e4c7; margin:0 0 10px; }
.ac-subsection h3>span { border:1px solid #506a31; padding:2px 5px; border-radius:9px; font-size:10px; }
.ac-request-list { border:1px solid #4e672e; border-radius:15px; padding:0 13px; background:#15210e; }
.ac-request-list>li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 0; border-bottom:1px solid #344923; }
.ac-request-list>li:last-child { border-bottom:0; }
.ac-request-info { min-width:0; }
.ac-request-info>strong { display:block; font-size:13px; margin-bottom:5px; overflow-wrap:anywhere; }
.ac-request-info>span { display:block; color:#b3c3a0; font-size:10px; line-height:1.6; }
.ac-request-list .ac-small-button { padding:7px 10px; font-size:11px!important; min-height:44px; }
.ac-pending-list li { display:flex; gap:12px; justify-content:space-between; border-bottom:1px solid #2c401e; padding:11px 0; font-size:12px; }
.ac-pending-list small { color:#adbe9a; font-size:11px; }
.ac-support-notice { color:#c9d8b6; font-size:12px; line-height:1.8; padding:12px 14px; background:#1b2812; border-radius:12px; margin:0 0 16px; white-space:pre-wrap; overflow-wrap:anywhere; }
.ac-support-intro { display:flex; align-items:center; gap:13px; margin:14px 0 20px; }
.ac-service-mark { width:48px; height:48px; flex:none; display:grid; place-items:center; border:1px solid #4b662e; border-radius:15px; background:#19270f; }
.ac-service-mark>img { width:25px; height:25px; filter:invert(87%); }
.ac-support-intro h3 { margin:0 0 7px; font-size:15px; line-height:1.5; }
.ac-support-intro p { margin:0; color:#b4c4a2; font-size:12px; line-height:1.7; }
.ac-new-ticket { padding-top:3px; }
.ac-ticket-list-heading { margin-top:28px; }
.ac-ticket-list>li { border-bottom:1px solid #344a24; }
.ac-ticket-list>li>button { display:flex; align-items:center; gap:12px; width:100%; min-height:76px; padding:16px 0; border:0; background:transparent; text-align:left; }
.ac-ticket-list>li>button>span:first-child { min-width:0; flex:1; }
.ac-ticket-list strong { display:block; font-size:13px; line-height:1.65; margin-bottom:4px; overflow-wrap:anywhere; }
.ac-ticket-list small { color:#b2c09f; font-size:10px; }
.ac-ticket-list>li>button>img { width:17px; height:17px; filter:invert(78%); flex:none; }
.ac-ticket-status { display:inline-block; padding:5px 8px; border-radius:12px; color:#cde8a7; background:#263a18; font-size:10px; white-space:nowrap; flex:none; }
.ac-quiet-empty { color:#b1c09e; font-size:12px; line-height:1.8; padding:17px 0; margin:0; }
.ac-back-link { display:flex; align-items:center; gap:8px; background:transparent; border:0; padding:0; min-height:44px; color:#bcccaa; font-size:12px!important; margin-bottom:10px; }
.ac-back-link>img { width:18px; height:18px; filter:invert(80%); }
.ac-ticket-title { display:flex; justify-content:space-between; align-items:flex-start; gap:13px; margin:4px 0 20px; }
.ac-ticket-title h2 { margin:0; font-size:20px; line-height:1.55; overflow-wrap:anywhere; }
.ac-ticket-title .ac-ticket-status { margin-top:6px; }
.ac-thread { display:flex; flex-direction:column; gap:12px; }
.ac-message { border:1px solid #425b29; border-radius:14px; background:#15200f; padding:14px; }
.ac-message>div { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; }
.ac-message strong { font-size:11px; color:#c4d7ac; }
.ac-message time { color:#b5c6a0; font-size:10px; }
.ac-message p { margin:0; color:#e1ead6; font-size:13px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.ac-message-support { background:#203112; border-color:#698b3d; }
.ac-message-support strong { color:#d5ff66; }
.ac-reply-form { border-top:1px solid #374d25; margin-top:23px; padding-top:20px; }
@media(max-width:760px) {
  #account-dialog { width:100%; height:100dvh; max-width:none; max-height:none; margin:0; border:0; border-radius:0; }
  .ac-header { padding:max(16px,env(safe-area-inset-top)) 20px 16px; }
  .ac-content { padding:2px 20px max(28px,env(safe-area-inset-bottom)); }
  .ac-header h1 { font-size:29px; }
  .ac-welcome { min-height:142px; margin-top:0; }
  .ac-welcome h2 { font-size:29px; }
  .ac-welcome p { font-size:12px; max-width:228px; }
  .ac-welcome>img { width:128px; height:128px; position:absolute; right:-9px; top:0; opacity:.72; }
  .ac-welcome>div { max-width:77%; }
  .ac-pass { padding:17px; }
  .ac-avatar { width:54px; height:54px; font-size:29px; border-radius:16px; }
  .ac-identity h2 { font-size:26px; }
  .ac-username { font-size:11px; }
  .ac-tabs { margin-top:17px; margin-bottom:18px; }
  .ac-tabs>button { font-size:13px!important; }
  .ac-recent-list { display:flex; gap:10px; overflow:auto; scroll-snap-type:x proximity; padding:2px 0 8px; scrollbar-width:thin; scrollbar-color:#4c662e transparent; }
  .ac-recent-game { flex:0 0 145px; scroll-snap-align:start; }
  .ac-recent-info>strong { font-size:21px; }
  .ac-recent-art { height:96px; }
  .ac-avatar.ac-avatar-small { width:40px; height:40px; font-size:22px; border-radius:12px; }
  .ac-friend { gap:10px; }
  .ac-friend-actions { gap:2px; }
  .ac-small-button { padding:8px 11px; }
}
@media(max-width:360px) {
  .ac-header { padding-left:15px; padding-right:15px; gap:12px; }
  .ac-content { padding-left:15px; padding-right:15px; }
  .ac-welcome h2 { font-size:27px; }
  .ac-welcome>img { width:115px; height:115px; right:-9px; top:11px; }
  .ac-pass { padding:14px; }
  .ac-pass-main { gap:10px; }
  .ac-avatar { width:47px; height:47px; font-size:27px; }
  .ac-identity h2 { font-size:24px; }
  .ac-id-copy { gap:7px; }
  .ac-id-copy>strong { font-size:10px; }
  .ac-request-list>li { align-items:flex-start; flex-direction:column; }
  .ac-request-list .ac-action-row { align-self:flex-end; }
  .ac-friend-actions { max-width:125px; justify-content:flex-end; }
  .ac-ticket-title { flex-wrap:wrap; gap:5px; }
}
@media(prefers-reduced-motion:no-preference) {
  .ac-button, .ac-small-button { transition:background .15s,transform .15s; }
  .ac-button:active:not(:disabled), .ac-small-button:active:not(:disabled) { transform:translateY(1px); }
}
