/* Khung nhập email khi vào game (tài khoản không mật khẩu) + thẻ tài khoản trong Cài đặt + thông báo nhỏ. */
.acc-gate { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); overflow-y: auto; opacity: 0; transition: opacity 0.45s ease; }
.acc-gate.in { opacity: 1; }
.acc-gate.out { opacity: 0; pointer-events: none; }
.acc-bg { position: fixed; inset: -30px; background: linear-gradient(180deg, rgba(8, 52, 84, 0.25), rgba(6, 30, 50, 0.72)), url('/assets/bg/bg_beach.webp') center / cover no-repeat; filter: saturate(1.15); animation: accdrift 26s ease-in-out infinite alternate; }
@keyframes accdrift { from { transform: scale(1.04) translate(-6px, 0); } to { transform: scale(1.1) translate(8px, -6px); } }
.acc-card { position: relative; width: 100%; max-width: 420px; margin: auto; padding: 30px 24px 22px; border-radius: 30px; background: rgba(255, 250, 240, 0.94); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(2, 24, 44, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.8); text-align: center; color: var(--ink, #2c1b10); transform: translateY(18px) scale(0.98); transition: transform 0.6s cubic-bezier(0.2, 1.2, 0.3, 1); }
.acc-gate.in .acc-card { transform: none; }
.acc-lang { position: absolute; top: 14px; right: 14px; display: flex; padding: 3px; border-radius: 999px; background: rgba(90, 45, 12, 0.08); }
.acc-lang button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font: 800 12px var(--font-ui, Nunito, sans-serif); color: #8a7a62; cursor: pointer; }
.acc-lang button.on { background: #fff; color: var(--wood-d, #5a2d0c); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.acc-logo { display: block; width: 190px; max-width: 62%; margin: 6px auto 8px; filter: drop-shadow(0 6px 10px rgba(90, 45, 12, 0.25)); }
.acc-kicker { display: block; font-weight: 900; font-size: 11.5px; letter-spacing: 0.2em; color: #c27a12; }
.acc-card h1 { margin: 6px 0 8px; font-family: var(--font-display, 'Fredoka', sans-serif); font-size: 27px; line-height: 1.15; color: var(--wood-d, #5a2d0c); }
.acc-sub { margin: 0 auto 16px; max-width: 350px; font-size: 14.5px; line-height: 1.55; color: #6b5636; }
.acc-form { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.acc-label { font-weight: 800; font-size: 13px; color: #7a5a2a; padding-left: 4px; }
.acc-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 58px; border-radius: 18px; background: #fff; border: 2px solid #eadfc6; box-shadow: 0 4px 0 #eadfc6; transition: border-color 0.2s, box-shadow 0.2s; }
.acc-field:focus-within { border-color: #1fa7d6; box-shadow: 0 4px 0 #9fd8ee, 0 0 0 5px rgba(31, 167, 214, 0.15); }
.acc-field.bad { border-color: #e3655a; box-shadow: 0 4px 0 #f3b3ad; animation: accshake 0.4s; }
@keyframes accshake { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.acc-ico { flex: none; width: 24px; height: 24px; color: #1f8fc4; }
.acc-ico svg { width: 100%; height: 100%; display: block; }
.acc-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font: 700 17px var(--font-ui, Nunito, sans-serif); color: var(--ink, #2c1b10); }
.acc-field input::placeholder { color: #c2b494; font-weight: 600; }
.acc-err { margin: 2px 0 0; min-height: 18px; padding-left: 4px; font-size: 13px; font-weight: 800; color: #d23c2f; }
.acc-check { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 6px; padding: 10px 12px; border-radius: 14px; background: #fff6e0; font-size: 13.5px; line-height: 1.4; font-weight: 700; color: #6b5636; cursor: pointer; }
.acc-check input { position: absolute; opacity: 0; pointer-events: none; }
.acc-box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 2px solid #d9c49a; background: #fff; display: grid; place-items: center; color: transparent; transition: all 0.15s; }
.acc-box svg { width: 15px; height: 15px; }
.acc-check input:checked + .acc-box { background: #2fb36d; border-color: #2fb36d; color: #fff; }
.acc-check input:focus-visible + .acc-box { box-shadow: 0 0 0 4px rgba(31, 167, 214, 0.25); }
.acc-go { display: flex; align-items: center; justify-content: center; gap: 10px; height: 60px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #ffb13d, #ff7a1a); color: #fff; font: 700 22px var(--font-display, 'Fredoka', sans-serif); box-shadow: 0 6px 0 #c75a0a, 0 14px 26px rgba(255, 110, 30, 0.35); transition: transform 0.12s; }
.acc-go i { font-style: normal; transition: transform 0.2s; }
.acc-go:hover i { transform: translateX(4px); }
.acc-go:active { transform: translateY(4px); box-shadow: 0 2px 0 #c75a0a; }
.acc-go.busy { opacity: 0.85; pointer-events: none; }
.acc-go.busy i { display: none; }
.acc-go.busy span::before { content: ''; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -2px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: accspin 0.8s linear infinite; }
@keyframes accspin { to { transform: rotate(360deg); } }
.acc-perks { list-style: none; margin: 16px 0 10px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.acc-perks li { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: #2e7d4f; }
.acc-perks svg { width: 14px; height: 14px; }
.acc-privacy { margin: 0; font-size: 11.5px; line-height: 1.5; color: #9a8a6c; }
/* chọn tiến độ khi email và máy đều có tiến độ */
.acc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.acc-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 14px; border-radius: 20px; border: 2px solid #eadfc6; background: #fff; box-shadow: 0 4px 0 #eadfc6; cursor: pointer; color: var(--ink, #2c1b10); }
.acc-opt small { font-weight: 800; font-size: 11.5px; letter-spacing: 0.06em; color: #8a7a62; text-transform: uppercase; }
.acc-opt b { font-family: var(--font-display, 'Fredoka', sans-serif); font-size: 22px; color: var(--wood-d, #5a2d0c); }
.acc-opt span { font-size: 13px; color: #6b5636; min-height: 17px; }
.acc-opt em { margin-top: 6px; font-style: normal; font-weight: 900; font-size: 13px; padding: 7px 12px; border-radius: 999px; background: rgba(90, 45, 12, 0.07); color: var(--wood-d, #5a2d0c); }
.acc-opt.rec { border-color: #ffb13d; box-shadow: 0 4px 0 #f0a93a; }
.acc-opt.rec em { background: linear-gradient(180deg, #ffb13d, #ff7a1a); color: #fff; }
/* thông báo nhỏ */
.acc-toast { position: fixed; left: 50%; top: max(14px, env(safe-area-inset-top)); z-index: 121; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: rgba(20, 50, 74, 0.94); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); transform: translate(-50%, -140%); transition: transform 0.45s cubic-bezier(0.2, 1.3, 0.3, 1); }
.acc-toast.in { transform: translate(-50%, 0); }
/* thẻ tài khoản trong Cài đặt */
.acc-row { gap: 4px; }
.acc-row-k { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.acc-row-mail { font-size: 16px; word-break: break-all; }
.acc-row small { font-size: 12.5px; opacity: 0.75; }
.acc-row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
@media (max-height: 640px) { .acc-logo { width: 150px; margin-bottom: 4px; } .acc-card h1 { font-size: 23px; } .acc-sub { margin-bottom: 10px; } .acc-perks { margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) { .acc-bg { animation: none; } .acc-card { transition: none; } }
