:root {
  --bg: #06101d;
  --bg-soft: #0a1728;
  --surface: rgba(15, 31, 50, .88);
  --surface-strong: #11263d;
  --line: rgba(177, 205, 229, .13);
  --text: #f6f3e9;
  --muted: #95a6b8;
  --gold: #f6c453;
  --gold-deep: #d89528;
  --cyan: #58d6d0;
  --green: #49d69b;
  --red: #ff7c7c;
  --amber: #f9a84d;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --font: "Pyidaungsu", "Noto Sans Myanmar", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(80% 52% at 50% -8%, rgba(246, 196, 83, .11), transparent 68%),
    linear-gradient(180deg, #071421 0%, var(--bg) 100%);
  font-family: var(--font);
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.ambient { position: fixed; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .18; }
.ambient-one { width: 300px; height: 300px; background: #d48728; top: -160px; right: -100px; }
.ambient-two { width: 240px; height: 240px; background: #177c83; bottom: 10%; left: -150px; }

.eyebrow { margin: 0 0 7px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.wide { width: 100%; }
.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 14px;
  color: #201300; background: linear-gradient(135deg, #ffe08a, var(--gold) 52%, var(--gold-deep));
  font-weight: 850; cursor: pointer; box-shadow: 0 10px 28px rgba(216, 149, 40, .22);
  transition: transform .16s ease, filter .16s ease;
}
.primary:active { transform: scale(.98); }
.primary:disabled { opacity: .55; cursor: wait; }

.auth-screen {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 18px 20px; position: relative; z-index: 1;
}
.auth-card {
  width: min(100%, 430px); padding: 32px 26px 26px; border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(18, 40, 62, .94), rgba(8, 21, 35, .96));
  box-shadow: var(--shadow); backdrop-filter: blur(18px);
}
.brand-mark {
  width: 112px; height: 100px; position: relative; overflow: hidden; margin: 0 auto 18px;
  border-radius: 22px; color: var(--gold); background: linear-gradient(145deg, rgba(246,196,83,.2), rgba(246,196,83,.04));
  border: 1px solid rgba(246,196,83,.28); box-shadow: inset 0 0 28px rgba(246,196,83,.08);
}
/* Frame the central buffalo head from the original loading artwork without altering the bitmap. */
.brand-mark img { position: absolute; width: 325%; max-width: none; height: auto; left: 50%; top: -10%; transform: translateX(-50%); display: block; }
.auth-card h1 { margin: 0 0 22px; text-align: center; font-size: clamp(20px, 5vw, 24px); line-height: 1.8; font-weight: 700; }
.auth-copy { max-width: 340px; color: var(--muted); line-height: 1.75; margin: 8px auto 24px; text-align: center; font-size: 13px; }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; border-radius: 13px; background: rgba(2, 11, 20, .55); }
.segment { min-height: 40px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 750; cursor: pointer; }
.segment.active { color: #241500; background: linear-gradient(135deg, #ffe08a, var(--gold)); box-shadow: 0 6px 18px rgba(216,149,40,.18); }
.segment:focus-visible { outline: 2px solid rgba(246,196,83,.72); outline-offset: 2px; }
.stack { display: flex; flex-direction: column; gap: 15px; }
.auth-card .stack { margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.field input, .field select {
  width: 100%; min-height: 49px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px;
  outline: none; color: var(--text); background: rgba(4, 15, 26, .7); transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field select:focus { border-color: rgba(246,196,83,.62); box-shadow: 0 0 0 3px rgba(246,196,83,.08); }
.auth-card .field input[aria-invalid="true"], .auth-card .field input[aria-invalid="true"]:focus {
  border-color: #ff7e88; box-shadow: 0 0 0 2px rgba(255,126,136,.18);
}
.auth-card .field-error { color:#ff929a; font-size:12px; line-height:1.7; }
.password-input-wrap { position: relative; display: block; }
.password-input-wrap input { padding-right: 50px; }
.password-toggle {
  position: absolute; top: 50%; right: 7px; width: 38px; height: 38px; padding: 0; transform: translateY(-50%);
  display: grid; place-items: center; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer;
}
.password-toggle:hover, .password-toggle:focus-visible { color: var(--gold); background: rgba(246,196,83,.08); outline: none; }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field-helper { color: #8294a8; font-size: 10px; font-weight: 600; line-height: 1.5; }
.field-error { color: var(--red); font-size: 11px; font-weight: 700; line-height: 1.55; }
.auth-switch { margin: 7px 0 0; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.7; }
.auth-switch button { padding: 2px 3px; border: 0; border-radius: 5px; color: var(--gold); background: transparent; font-weight: 800; cursor: pointer; }
.auth-switch button:hover, .auth-switch button:focus-visible { text-decoration: underline; outline: none; }
.phone-input-row { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 10px; }
.country-code-control {
  position: relative; min-height: 49px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: rgba(4, 15, 26, .7);
  transition: border-color .16s, box-shadow .16s;
}
.country-code-control:focus-within { border-color: rgba(246,196,83,.62); box-shadow: 0 0 0 3px rgba(246,196,83,.08); }
.country-code-control select { position: absolute; inset: 0; min-height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.myanmar-flag { width: 27px; height: 18px; flex: 0 0 auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.country-chevron { width: 15px; height: 15px; margin-left: auto; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-status { min-height: 19px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-status.error { color: var(--red); }
.form-status.success { color: var(--green); }
.auth-alert {
  min-height: 0; margin-top: 12px; padding: 11px 12px; display: flex; align-items: flex-start; gap: 9px;
  border: 1px solid rgba(255,124,124,.28); border-radius: 12px; color: #ffc1c1;
  background: rgba(126,31,42,.16); font-size: 11px; font-weight: 650; line-height: 1.65;
}
.auth-alert-icon { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.auth-alert .form-status-message { min-width: 0; }
.auth-footer { margin-top: 16px; color: #718398; font-size: 10px; letter-spacing: .03em; }

.portal { min-height: 100vh; position: relative; z-index: 1; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: 72px; display: flex; align-items: center; justify-content: space-between;
  max-width: 720px; margin: 0 auto; padding: 10px 16px; background: rgba(6,16,29,.82); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}
.brand-button { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.brand-button > span:last-child { display: flex; flex-direction: column; line-height: .95; }
.brand-button strong { font-size: 13px; letter-spacing: .13em; }
.brand-button small { color: var(--gold); font-size: 9px; letter-spacing: .28em; margin-top: 5px; }
.mini-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; color: #241500; background: linear-gradient(145deg, #ffe18b, var(--gold-deep)); font-weight: 950; font-size: 20px; box-shadow: 0 7px 20px rgba(216,149,40,.22); }
.balance-pill { display: grid; grid-template-columns: auto auto auto auto; align-items: baseline; gap: 5px; min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: rgba(16,36,56,.85); cursor: pointer; }
.balance-label { grid-column: 1/-1; color: var(--muted); font-size: 7px; letter-spacing: .15em; line-height: 1; }
.balance-pill strong { color: var(--gold); font-size: 14px; font-variant-numeric: tabular-nums; }
.balance-pill small { color: var(--muted); font-size: 8px; }
.refresh-dot { color: var(--cyan); font-size: 12px; }
.refresh-dot.loading { animation: rotate .7s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }

.content { width: min(100%, 720px); margin: 0 auto; padding: 18px 16px calc(112px + env(safe-area-inset-bottom)); }
.wallet-tabs { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0 0 18px; padding: 4px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: rgba(7, 20, 34, .88); }
.wallet-tab { min-width: 0; min-height: 43px; overflow: hidden; padding: 0 8px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.wallet-tab.active { border-color: rgba(88, 214, 208, .5); color: #eafffd; background: linear-gradient(135deg, rgba(26, 119, 132, .72), rgba(12, 67, 88, .9)); box-shadow: 0 0 0 2px rgba(88, 214, 208, .06); }
.view { animation: viewIn .22s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } }

.hero { overflow: hidden; border: 1px solid rgba(246,196,83,.18); border-radius: 26px; background: #07080c; box-shadow: var(--shadow); }
.hero-banner-image { display: block; width: 100%; height: auto; aspect-ratio: 1018/484; object-fit: contain; background: #000; }
.hero-banner-footer { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px 12px 18px; border-top: 1px solid var(--line); background: linear-gradient(135deg, #10273b, #0b1d2e); }
.hero-banner-title { min-width: 0; }
.hero-banner-title h1 { margin: 0; overflow: hidden; font-size: clamp(17px, 4vw, 23px); letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.hero-welcome { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.launch-button { flex: 0 0 auto; width: fit-content; min-height: 43px; font-size: 12px; white-space: nowrap; }

.wallet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 15px 0 28px; }
.action-card { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); background: var(--surface); cursor: pointer; text-align: left; }
.action-card > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.action-card b { font-size: 11px; }
.action-card small { color: var(--muted); font-size: 8px; white-space: nowrap; }
.action-icon { flex: 0 0 35px; height: 35px; display: grid; place-items: center; border-radius: 12px; font-size: 18px; font-weight: 300; }
.action-icon.deposit { color: #53ddad; background: rgba(73,214,155,.12); }
.action-icon.withdraw { color: #75c8ff; background: rgba(72,164,231,.12); }
.action-icon.history { color: #ffd27d; background: rgba(246,196,83,.12); }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 1px 12px; }
.section-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.section-heading.compact { margin-top: 27px; }
.section-heading.compact h2 { font-size: 16px; }
.live-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid rgba(73,214,155,.22); border-radius: 99px; color: var(--green); background: rgba(73,214,155,.07); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.live-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(73,214,155,.1); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.game-card { min-width: 0; width: 100%; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.game-scene { aspect-ratio: 264/467; height: auto; overflow: hidden; background: #07070b; }
.game-cover { display: block; width: 100%; height: auto; object-fit: contain; }
.game-meta { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 8px 9px 8px 11px; }
.game-meta > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.game-meta strong { font-size: 12px; }
.game-meta small { color: var(--gold); font-size: 9px; }
.game-meta .round-play { flex: 0 0 31px; width: 31px; height: 31px; font-size: 11px; }
.round-play { width: 39px; height: 39px; display: grid; place-items: center; padding-left: 2px; border-radius: 50%; color: #231500; background: var(--gold); box-shadow: 0 6px 18px rgba(246,196,83,.2); }
.safety-card { display: flex; gap: 12px; margin-top: 15px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(15,31,50,.55); }
.shield { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 12px 12px 15px 15px; color: var(--green); background: rgba(73,214,155,.1); }
.safety-card strong { font-size: 11px; }
.safety-card p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }

.page-heading { display: flex; align-items: center; justify-content: space-between; margin: 9px 0 21px; }
.page-heading h1 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.icon-button { width: 41px; height: 41px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: var(--surface); font-size: 21px; cursor: pointer; }
.profile-card { display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.avatar { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: #221400; background: linear-gradient(145deg, #ffe18b, var(--gold-deep)); font-weight: 950; font-size: 20px; }
.profile-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.profile-main strong { font-size: 16px; }
.profile-main span { max-width: 230px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 9px; white-space: nowrap; }
.verified { margin-left: auto; padding: 5px 8px; border-radius: 99px; color: var(--green); background: rgba(73,214,155,.09); font-size: 7px; font-weight: 850; letter-spacing: .1em; }
.profile-details { margin-top: 12px; padding: 5px 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.profile-details div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile-details div:last-child { border-bottom: 0; }
.profile-details span { color: var(--muted); font-size: 10px; }
.profile-details strong { max-width: 62%; overflow-wrap: anywhere; text-align: right; font-size: 11px; }
.balance-card { margin-top: 12px; padding: 22px 19px; border: 1px solid rgba(246,196,83,.18); border-radius: 20px; background: linear-gradient(135deg, rgba(83,56,25,.55), rgba(17,38,61,.88)); }
.balance-card p { margin: 0; color: var(--muted); font-size: 10px; }
.balance-card h2 { margin: 8px 0 20px; color: var(--gold); font-size: clamp(28px,8vw,39px); font-variant-numeric: tabular-nums; }
.balance-card h2 small { color: var(--muted); font-size: 10px; }
.balance-meta { display: flex; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.balance-meta strong { color: var(--text); }
.profile-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 12px 0 20px; }
.profile-grid button, .profile-grid a { min-height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: var(--surface); cursor: pointer; }
.profile-grid span { color: var(--gold); font-size: 22px; }
.profile-grid b { font-size: 11px; }
.danger-outline { min-height: 47px; border: 1px solid rgba(255,124,124,.27); border-radius: 14px; color: var(--red); background: rgba(255,124,124,.05); font-weight: 750; cursor: pointer; }

.notice { display: flex; gap: 10px; margin-bottom: 13px; padding: 13px; border: 1px solid rgba(88,214,208,.18); border-radius: 15px; background: rgba(88,214,208,.06); }
.notice > span { flex: 0 0 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--cyan); background: rgba(88,214,208,.12); font-weight: 850; }
.notice p { margin: 0; color: #aebbc7; font-size: 9px; line-height: 1.7; }
.notice.amber { border-color: rgba(249,168,77,.18); background: rgba(249,168,77,.055); }
.notice.amber > span { color: var(--amber); background: rgba(249,168,77,.12); }
.available-strip { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.available-strip span { color: var(--muted); font-size: 10px; }
.available-strip strong { color: var(--gold); font-size: 13px; }
.form-card { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.withdraw-method-card, .withdraw-account-card { margin-bottom: 12px; }
.withdraw-account-caption { margin: -4px 0 13px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.withdraw-account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.withdraw-account-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.withdraw-account-actions .form-status { flex: 1; margin: 0; }
.secondary { min-height: 38px; padding: 0 15px; border: 1px solid rgba(88,214,208,.32); border-radius: 11px; color: var(--cyan); background: rgba(88,214,208,.07); font-size: 10px; font-weight: 800; cursor: pointer; }
.secondary:disabled { opacity: .55; cursor: wait; }
.withdraw-amounts { grid-template-columns: repeat(3,minmax(0,1fr)); }
.money-field > div { position: relative; }
.money-field input { padding-right: 58px; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.money-field div b { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 9px; }
.quick-amounts { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.quick-amounts button { min-height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(4,15,26,.55); font-size: 10px; font-weight: 750; cursor: pointer; }
.quick-amounts button:active { color: var(--gold); border-color: rgba(246,196,83,.35); }
.text-button { border: 0; color: var(--cyan); background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }

.deposit-flow { gap: 11px; }
.deposit-card { padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.deposit-card h2 { margin: 0 0 13px; font-size: 12px; }
.payment-methods { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.payment-method {
  min-height: 49px; padding: 9px 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(4,15,26,.55);
  font-size: 10px; font-weight: 800; cursor: pointer;
}
.payment-method-logo { width: 34px; height: 34px; flex: 0 0 34px; object-fit: contain; border-radius: 8px; }
.payment-method-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-method.active { color: var(--text); border-color: rgba(88,214,208,.58); background: linear-gradient(135deg, rgba(22,86,107,.55), rgba(13,45,68,.75)); box-shadow: 0 0 0 2px rgba(88,214,208,.06); }
.payment-method:disabled { opacity: .38; cursor: not-allowed; }
.method-loading { grid-column: 1/-1; padding: 16px; color: var(--muted); text-align: center; font-size: 10px; }
.receiving-card { background: linear-gradient(145deg, rgba(23,45,72,.92), rgba(15,31,50,.9)); }
.receiving-method { min-height: 42px; display: flex; align-items: center; gap: 10px; margin: -2px 0 5px; color: var(--text); }
.receiving-method-logo { width: 36px; height: 36px; flex: 0 0 36px; object-fit: contain; border-radius: 9px; background: rgba(4,15,26,.45); }
.receiving-method strong { font-size: 12px; }
.account-line { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.account-line > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.account-line small { color: var(--muted); font-size: 8px; }
.account-line strong { overflow-wrap: anywhere; font-size: 12px; }
.copy-button { flex: 0 0 auto; min-width: 55px; min-height: 31px; border: 1px solid rgba(88,214,208,.3); border-radius: 99px; color: var(--cyan); background: rgba(88,214,208,.07); font-size: 8px; font-weight: 800; cursor: pointer; }
.account-helper { margin: 11px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.deposit-amounts { grid-template-columns: repeat(5,minmax(0,1fr)); margin-top: 11px; }
.deposit-amounts button { padding: 0 3px; font-size: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.proof-dropzone { min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 18px; border: 1px dashed rgba(149,166,184,.35); border-radius: 14px; color: var(--muted); background: rgba(4,15,26,.48); cursor: pointer; text-align: center; }
.proof-dropzone:hover, .proof-dropzone:focus-within { border-color: rgba(88,214,208,.55); }
.proof-dropzone svg { width: 28px; height: 28px; fill: none; stroke: #7e91ab; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.proof-dropzone strong { font-size: 10px; }
.proof-dropzone small { color: #6f8197; font-size: 8px; }
.proof-preview { display: grid; grid-template-columns: 68px minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4,15,26,.48); }
.proof-preview img { width: 68px; height: 68px; border-radius: 10px; object-fit: cover; }
.proof-preview > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.proof-preview strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.proof-preview small { color: var(--muted); font-size: 8px; }
.proof-action { padding: 7px; border: 0; color: var(--cyan); background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.proof-action.danger { color: var(--red); }
.reference-input-wrap { position: relative; display: block; }
.reference-input-wrap input { padding-right: 58px; letter-spacing: .42em; font-size: 18px; font-weight: 800; }
.reference-input-wrap b { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 9px; letter-spacing: 0; }
.deposit-card .field-error { margin: 7px 0 0; }
.deposit-submit { margin-top: 1px; background: linear-gradient(135deg, #48d7df, #18a8c6); color: #03141b; box-shadow: 0 10px 28px rgba(24,168,198,.22); }

.history-tabs { margin-bottom: 14px; grid-template-columns: repeat(3,1fr); }
.activity-list { display: flex; flex-direction: column; gap: 8px; }
.activity-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.activity-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--cyan); background: rgba(88,214,208,.08); font-size: 16px; }
.activity-icon.credit { color: var(--green); background: rgba(73,214,155,.08); }
.activity-icon.debit { color: var(--amber); background: rgba(249,168,77,.08); }
.activity-icon img { width: 27px; height: 27px; object-fit: contain; border-radius: 7px; }
.activity-icon-fallback { display: none; }
.activity-icon img[hidden] + .activity-icon-fallback { display: inline; }
.activity-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.activity-copy strong { overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.activity-copy small { color: var(--muted); font-size: 8px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.activity-decline-reason { display: flex; flex-direction: column; gap: 3px; margin-top: 5px; padding: 7px 9px; border: 1px solid rgba(255,124,124,.18); border-radius: 9px; color: #ffb0b0; background: rgba(255,124,124,.07); font-size: 8px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.activity-decline-reason b { color: var(--red); font-size: 8px; }
.activity-value { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.activity-value strong { font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.activity-value strong.positive { color: var(--green); }
.activity-value strong.negative { color: var(--amber); }
.status-chip { padding: 3px 6px; border-radius: 99px; color: var(--muted); background: rgba(149,166,184,.09); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.status-chip.approved { color: var(--green); background: rgba(73,214,155,.09); }
.status-chip.rejected { color: var(--red); background: rgba(255,124,124,.08); }
.status-chip.pending { color: var(--amber); background: rgba(249,168,77,.09); }
.empty { padding: 34px 12px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; font-size: 10px; }

.bottom-nav { position: fixed; z-index: 50; left: 50%; bottom: 0; width: min(100%,720px); min-width: 0; transform: translateX(-50%); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: end; overflow: hidden; padding: 9px 7px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(6,16,29,.92); backdrop-filter: blur(20px); }
.bottom-nav button, .bottom-nav a { min-width: 0; min-height: 47px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; color: #718398; background: transparent; cursor: pointer; }
.bottom-nav > button > span { width: 24px; height: 24px; display: grid; place-items: center; line-height: 1; }
.bottom-nav > button > span svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.bottom-nav small { max-width: 100%; overflow: hidden; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav button.active { color: var(--gold); }
.bottom-nav .nav-deposit { position: relative; top: -12px; color: #00191d; }
.bottom-nav .nav-deposit span { width: 50px; height: 50px; display: grid; place-items: center; border: 5px solid var(--bg); border-radius: 50%; background: linear-gradient(145deg, #4ee6ec, #12aeca); box-shadow: 0 8px 22px rgba(30,205,218,.25); }
.bottom-nav .nav-deposit span svg { width: 23px; height: 23px; stroke-width: 2.4; }
.bottom-nav .nav-deposit small { color: #35d6df; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(94px + env(safe-area-inset-bottom)); width: min(calc(100% - 32px), 420px); transform: translate(-50%, 18px); padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: rgba(17,38,61,.97); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-size: 10px; line-height: 1.6; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.toast.error { border-color: rgba(255,124,124,.28); }

@media (min-width: 640px) {
  .content { padding-top: 27px; }
  .wallet-actions { gap: 13px; }
  .action-card { padding: 14px; }
}

@media (max-width: 420px) {
  .auth-screen { justify-content: flex-start; padding: 18px 12px 16px; }
  .auth-card { padding: 24px 17px 22px; border-radius: 22px; }
  .brand-mark { width: 96px; height: 86px; margin-bottom: 14px; border-radius: 18px; }
  .auth-copy { margin-bottom: 19px; font-size: 12px; }
  .auth-card .stack { margin-top: 16px; }
  .phone-input-row { grid-template-columns: 116px minmax(0, 1fr); gap: 8px; }
  .country-code-control { padding: 0 9px; gap: 6px; }
  .myanmar-flag { width: 24px; height: 16px; }
  .hero-banner-footer { min-height: 64px; gap: 9px; padding: 10px 11px 11px 14px; }
  .hero-banner-title h1 { font-size: 16px; }
  .launch-button { min-height: 39px; padding-inline: 13px; font-size: 11px; }
  .wallet-actions { gap: 7px; }
  .game-grid { gap: 8px; }
  .game-meta { min-height: 54px; padding: 7px 7px 7px 9px; }
  .game-meta strong { font-size: 11px; }
  .game-meta small { font-size: 8px; }
  .game-meta .round-play { flex-basis: 29px; width: 29px; height: 29px; }
  .action-card { flex-direction: column; text-align: center; gap: 5px; padding: 10px 4px; }
  .action-icon { flex-basis: 31px; width: 31px; height: 31px; }
  .quick-amounts { gap: 5px; }
  .withdraw-account-grid { grid-template-columns: 1fr; }
  .deposit-card { padding: 14px; }
  .deposit-amounts { grid-template-columns: repeat(3,1fr); }
  .proof-preview { grid-template-columns: 58px minmax(0,1fr); }
  .proof-preview img { width: 58px; height: 58px; grid-row: 1/3; }
  .proof-action { min-height: 34px; border: 1px solid var(--line); border-radius: 9px; }
  .wallet-tabs { gap: 3px; padding: 3px; }
  .wallet-tab { min-height: 41px; padding-inline: 5px; font-size: 11px; }
  .activity-item { grid-template-columns: 36px minmax(0,1fr); align-items: start; gap: 7px 8px; }
  .activity-icon { width: 36px; height: 36px; }
  .activity-copy strong { white-space: normal; overflow-wrap: anywhere; }
  .activity-value { grid-column: 2; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 8px; }
  .bottom-nav { padding-inline: 3px; }
  .bottom-nav small { font-size: 7.5px; }
}

@media (max-height: 600px) and (hover: none) and (pointer: coarse) {
  body:has(input:focus) .bottom-nav { transform: translate(-50%, calc(100% + env(safe-area-inset-bottom))); pointer-events: none; }
  body:has(input:focus) .content { padding-bottom: 24px; }
  body:has(input:focus) .toast { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
:root { --credential-accent: #48cdd1; }
.guest-enter { margin-top: 12px; }
.credential-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; min-width:0; }
.credential-controls strong { overflow-wrap:anywhere; }
.credential-controls button, .guest-credential-row button { background:#102a3a; color:var(--credential-accent); border:1px solid #2d5664; border-radius:8px; padding:7px 10px; cursor:pointer; }
.credential-controls button:disabled { opacity:.45; cursor:default; }
.guest-credentials { width:min(460px, calc(100vw - 32px)); max-height:85dvh; overflow:auto; box-sizing:border-box; padding:24px; border:1px solid #2d5664; border-radius:20px; color:#eef6f9; background:#0c1c2b; }
.guest-credentials::backdrop { background:rgb(0 0 0 / .8); }
.guest-credentials h2 { font-size:20px; line-height:1.7; margin-top:0; }
.guest-credential-row { display:grid; grid-template-columns:1fr auto; gap:8px; margin:18px 0; }
.guest-credential-row > span { grid-column:1 / -1; color:#9cb0bc; font-size:13px; }
.guest-credential-row strong { align-self:center; overflow-wrap:anywhere; font-family:monospace; }
