/* Barlow Condensed is bundled locally so Vietnamese accents render with one
   consistent display face on Safari instead of being patched from fallbacks. */
@font-face{font-family:"HV368 Display";font-style:normal;font-weight:800;font-display:swap;src:url("branding/hv368-display-800-vi.woff2") format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"HV368 Display";font-style:normal;font-weight:800;font-display:swap;src:url("branding/hv368-display-800-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

#hv-top-notices{--hv-notice-edge:clamp(20px,3vw,38px);--hv-notice-start:clamp(88px,10.5vw,112px);--hv-notice-logo-width:max(160px,min(20vw,35vh));position:fixed;top:4px;left:var(--hv-notice-edge);right:var(--hv-notice-edge);height:clamp(28px,6.5vh,40px);z-index:10010;display:none;grid-template-columns:minmax(0,1fr) var(--hv-notice-logo-width) minmax(0,1fr);pointer-events:none;font-family:Arial,sans-serif;color:#fff;font-size:clamp(10px,2vh,16px);font-weight:800;text-shadow:0 2px 2px #000}
#hv-top-notices.is-visible{display:grid}
.hv-top-notice{min-width:0;overflow:hidden;display:flex;align-items:center;background:linear-gradient(180deg,rgba(87,48,14,.94),rgba(25,13,5,.94));border:1px solid #9b641f;box-shadow:0 2px 8px #000,inset 0 -1px #e0ad54;white-space:nowrap}
/* Reserve the back/speaker controls inside the left column. The grid itself
   keeps equal outer insets, so this clearance never shifts the logo gap. */
.hv-top-notice-left{margin-left:calc(var(--hv-notice-start) - var(--hv-notice-edge));padding:0 24px 0 18px;clip-path:polygon(0 0,100% 0,calc(100% - 22px) 100%,12px 100%)}
.hv-top-notice-right{padding:0 20px 0 24px;clip-path:polygon(0 0,100% 0,calc(100% - 12px) 100%,22px 100%)}
.hv-notice-logo-gap{background:transparent;border:0}
.hv-notice-track{display:flex;flex:none;width:max-content;min-width:max-content;will-change:transform;animation:hv-notice-scroll 18s linear infinite}
.hv-top-notice-right .hv-notice-track{animation-duration:24s}
.hv-notice-track span{display:block;flex:none;padding-right:52px}.hv-notice-track b{color:#ff8b27}
@keyframes hv-notice-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.hv-notice-track{animation:none}}
/* The Cocos logo scales with the fitted game surface, not width alone.
   Touch layouts use a larger mark; keep its clearance proportional too. */
@media(hover:none) and (pointer:coarse){#hv-top-notices{--hv-notice-logo-width:max(180px,min(27vw,52vh))}}

#hv-wallet-actions{position:fixed;left:0;right:0;bottom:0;height:120px;z-index:10020;display:none;font-family:Arial,sans-serif;pointer-events:none}
#hv-wallet-actions.is-visible{display:block}
.hv-wallet-btn{position:absolute;bottom:4px;width:94px;height:102px;border:0;background:transparent;cursor:pointer;filter:drop-shadow(0 5px 7px #000);padding:0;pointer-events:auto;transition:transform .16s ease,filter .16s ease}
.hv-wallet-btn[data-open="deposit"]{right:calc(50% + 5px)}
.hv-wallet-btn[data-open="withdraw"]{left:calc(50% + 5px)}
.hv-wallet-asset{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.hv-wallet-btn:hover{transform:translateY(-5px) scale(1.04);filter:drop-shadow(0 7px 12px #f7a500)}
.hv-wallet-btn:active{transform:translateY(-1px) scale(.97)}
#hv-wallet-overlay{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.82);font-family:Arial,sans-serif;color:#fff}
#hv-wallet-overlay.is-open{display:flex}
.cocosEditBox{font-size:clamp(14px,2.3vh,18px)!important;font-weight:600!important;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
.cocosEditBox::placeholder{color:#d8d8d8!important;-webkit-text-fill-color:#d8d8d8!important;opacity:1!important}
.cocosEditBox.hv-auth-editbox{font-size:50px!important;line-height:58px!important}
.cocosEditBox.hv-auth-editbox::placeholder{font-size:50px!important;line-height:58px!important}
#hv-network-notice{position:fixed;inset:0;z-index:10040;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.56);padding:18px;box-sizing:border-box;pointer-events:none;font-family:Arial,sans-serif}
#hv-network-notice.is-visible{display:flex}
.hv-network-card{position:relative;width:min(520px,78vw);min-height:92px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:22px 34px 22px 78px;border:2px solid #805d25;border-radius:10px;background:linear-gradient(180deg,#292929 0,#080808 32%,#050505 100%);box-shadow:0 10px 35px #000,inset 0 1px #9a9a9a;color:#fff;text-align:center;font-size:clamp(14px,2.3vw,21px);line-height:1.35;font-weight:900;text-shadow:0 2px 2px #000}
.hv-network-icon{position:absolute;left:18px;top:50%;width:45px;height:45px;transform:translateY(-50%);display:grid;place-items:center;background:#df2020;color:#fff;border:2px solid #ff7474;border-radius:50% 50% 46% 46%;font-size:34px;font-weight:900;box-shadow:0 3px 9px #000}
#hv-game-exit{position:fixed;z-index:10035;display:none;align-items:center;justify-content:center;gap:7px;border:2px solid #ffd66b;background:linear-gradient(180deg,#681711,#270606 55%,#080303);color:#fff0a2;font-family:Arial,sans-serif;font-weight:1000;letter-spacing:.5px;text-shadow:0 2px #4b0805;box-shadow:inset 0 1px rgba(255,255,255,.38),inset 0 -7px 12px rgba(0,0,0,.6),0 4px 14px #000,0 0 10px rgba(255,151,34,.42);cursor:pointer;pointer-events:auto}
#hv-game-exit{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));left:auto;width:52px;min-width:0;height:52px;padding:0;border:3px solid transparent;border-radius:13px;background:linear-gradient(155deg,#241b0d 0,#090806 52%,#020202 100%) padding-box,linear-gradient(135deg,#fff0a0 0,#b96c17 24%,#5c2a08 50%,#f4c94e 76%,#fff3a6 100%) border-box;color:#ffe26d;clip-path:polygon(18% 0,82% 0,100% 18%,100% 82%,82% 100%,18% 100%,0 82%,0 18%);box-shadow:inset 0 2px 3px rgba(255,255,255,.18),inset 0 -7px 10px rgba(0,0,0,.78),0 4px 12px rgba(0,0,0,.92),0 0 11px rgba(244,182,46,.52);text-shadow:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.hv-game-exit-icon{display:block;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 1px #000) drop-shadow(0 0 3px rgba(255,196,45,.52))}
#hv-game-exit.is-visible{display:flex}
#hv-game-exit:active{transform:translateY(2px);filter:brightness(.88)}
#hv-game-exit:active{transform:scale(.93)}
#hv-game-exit:focus-visible{outline:3px solid #fff3a5;outline-offset:3px}
#hv-game-exit:disabled{opacity:.5;cursor:wait}
.hv-modal{width:min(1540px,94vw);max-height:92vh;overflow:auto;border:2px solid #f6c95b;border-radius:28px;background:radial-gradient(circle at 50% -20%,#6b3500 0,#1a0d02 38%,#060606 78%);box-shadow:0 0 0 4px #5b2e00,0 0 40px #e99300;position:relative}
#hv-wallet-overlay.is-withdraw .hv-modal{width:min(1240px,84vw)}
.hv-modal-head{height:70px;display:flex;align-items:flex-end;padding:0 84px;border-bottom:2px solid #8e5b16;background:linear-gradient(180deg,#7d3b00,#1c0d02);border-radius:26px 26px 0 0}
.hv-tabs{display:flex;gap:8px;width:100%}
.hv-tab{flex:1;min-height:58px;border:2px solid #c8953c;border-bottom:0;border-radius:22px 22px 0 0;background:linear-gradient(#333,#090909);color:#aaa;font-size:21px;font-weight:900;text-transform:uppercase;cursor:pointer;text-shadow:0 2px #000;white-space:nowrap}
.hv-tab.active{color:#fff2a5;background:linear-gradient(#d83321,#7b0800);box-shadow:inset 0 0 14px #ffb000}
.hv-close{position:absolute;right:10px;top:7px;width:62px;height:56px;border:0;border-radius:0 20px 0 22px;background:linear-gradient(#d11315,#620000);color:#fff49a;font-size:42px;line-height:1;font-weight:900;cursor:pointer;text-shadow:0 2px #641000}
.hv-modal-title{text-align:center;font-size:27px;letter-spacing:2px;margin:24px 15px 12px;color:#fff;text-transform:uppercase;text-shadow:0 2px #000}
.hv-content{margin:0 34px 30px;border:2px solid #74501a;border-radius:22px;background:rgba(0,0,0,.66);padding:26px 36px 30px;min-height:470px}
.hv-pane{display:none}.hv-pane.active{display:block}
.hv-grid{display:grid;grid-template-columns:1fr 1px 1fr;gap:34px}.hv-divider{background:linear-gradient(transparent,#916813,transparent)}
.hv-info-row,.hv-form-row{display:grid;grid-template-columns:190px 1fr;align-items:center;gap:18px;margin:18px 0;min-height:54px}
.hv-label{font-size:24px;font-weight:900;color:#ffd35c;text-shadow:0 2px #5b1d00}
.hv-value{font-size:22px;font-weight:800;color:#f6f6f6;overflow-wrap:anywhere}
.hv-input,.hv-select{width:100%;box-sizing:border-box;border:3px solid #efe95a;border-radius:28px;background:#050505;color:#fff;padding:13px 24px;font-size:21px;font-weight:700;outline:0;box-shadow:inset 0 0 12px #222}
.hv-input:focus,.hv-select:focus{box-shadow:0 0 14px #ffd000,inset 0 0 10px #351b00}
.hv-qr{width:210px;height:210px;display:block;margin:18px auto;border:10px solid #fff;background:#fff;border-radius:10px;object-fit:contain}
.hv-qr-empty{display:grid;place-items:center;width:210px;height:210px;margin:18px auto;border:2px dashed #ad7d28;color:#d9b96e;text-align:center;padding:14px;box-sizing:border-box}
.hv-copy{border:2px solid #e6b340;border-radius:24px;background:linear-gradient(#46351b,#090909);color:#ffdc61;padding:8px 18px;font-size:17px;font-weight:900;cursor:pointer}
.hv-submit{display:block;margin:24px auto 0;padding:13px 42px;border:3px solid #ffe782;border-radius:30px;background:linear-gradient(#75531c,#12100c 50%,#8e5a00);color:#fff0a0;font-size:23px;font-weight:900;text-transform:uppercase;box-shadow:0 0 12px #d99000,inset 0 0 7px #fff;cursor:pointer}
.hv-submit:disabled{opacity:.45;cursor:not-allowed}
.hv-bank-start{max-width:720px;margin:34px auto;text-align:center}.hv-bank-prompt{margin:0 0 22px;color:#f6dda0;font-size:19px;font-weight:700}.hv-bank-start .hv-form-row{grid-template-columns:150px 1fr}.hv-bank-success{margin:0 0 14px;text-align:center;color:#73f19b;font-size:18px;font-weight:900}.hv-bank-result-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:30px;align-items:center}.hv-bank-result .hv-info-row{margin:11px 0}.hv-bank-result .hv-value{display:flex;align-items:center;gap:10px}.hv-bank-result .hv-copy{padding:5px 12px;font-size:13px;white-space:nowrap}.hv-bank-amount{color:#ffef75}.hv-bank-qr-wrap{text-align:center;color:#ffe08a;font-size:14px}.hv-bank-qr-wrap .hv-qr,.hv-bank-qr-wrap .hv-qr-empty{margin:0 auto 8px}.hv-bank-warning{text-align:center;color:#ffcf74;font-size:15px;font-weight:700;margin:12px 0 0}.hv-submit.hv-secondary{margin-top:12px;padding:8px 24px;font-size:15px;box-shadow:none}
.hv-rate-card{background:linear-gradient(135deg,#321500,#100800);border:1px solid #bb7a18;border-radius:16px;padding:15px 18px;margin-bottom:18px;color:#ffe49b;font-size:18px;line-height:1.5}
.hv-status{min-height:26px;text-align:center;margin-top:14px;font-size:17px;color:#ffe16a}.hv-status.error{color:#ff6969}.hv-status.ok{color:#71f09a}
.hv-note{color:#c7bda6;font-size:15px;line-height:1.5}.hv-mode-switch{display:flex;justify-content:center;gap:12px;margin:0 0 18px}.hv-mode-switch button{padding:10px 28px;border:2px solid #b68330;border-radius:22px;background:#17100a;color:#ddd;font-weight:800;font-size:17px;cursor:pointer}.hv-mode-switch button.active{background:#8a160c;color:#ffe67b}
@media(max-width:900px){#hv-wallet-actions{left:0;right:0;bottom:max(4px,env(safe-area-inset-bottom));height:100px;transform:none}.hv-wallet-btn{bottom:0;width:74px;height:80px}.hv-wallet-btn[data-open="deposit"]{right:calc(50% + 5px)}.hv-wallet-btn[data-open="withdraw"]{left:calc(50% + 5px)}.hv-modal-head{padding:0 68px 0 16px}.hv-tab{font-size:13px;min-height:46px}.hv-content{margin:0 12px 16px;padding:15px;min-height:0}.hv-modal-title{font-size:18px;margin:14px}.hv-grid{grid-template-columns:1fr;gap:10px}.hv-divider{display:none}.hv-info-row,.hv-form-row{grid-template-columns:125px 1fr;margin:10px 0}.hv-label{font-size:16px}.hv-value,.hv-input,.hv-select{font-size:15px}.hv-qr{width:150px;height:150px}.hv-bank-start{margin:18px auto}.hv-bank-prompt{font-size:15px}.hv-bank-result-grid{grid-template-columns:1fr}.hv-bank-result .hv-value{gap:6px}.hv-bank-result .hv-copy{padding:4px 9px;font-size:11px}}
@media(max-width:900px) and (orientation:portrait){#hv-top-notices{left:16px;right:20px;grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr);font-size:8px}.hv-top-notice-left{padding:0 16px 0 10px}.hv-top-notice-right{padding:0 10px 0 16px}.hv-notice-track span{padding-right:28px}.hv-modal-head{height:56px;padding:0 52px 0 6px}.hv-tabs{gap:2px}.hv-tab{min-width:0;min-height:43px;padding:2px;font-size:8px}.hv-close{width:46px;height:44px;font-size:32px}.hv-bank-result-grid{gap:6px}.hv-bank-success{margin-bottom:5px;font-size:15px}.hv-bank-result .hv-info-row{grid-template-columns:104px 1fr;min-height:30px;margin:2px 0;gap:7px}.hv-bank-result .hv-label,.hv-bank-result .hv-value{font-size:14px}.hv-bank-result .hv-copy{padding:3px 7px;font-size:9px}.hv-bank-qr-wrap .hv-qr,.hv-bank-qr-wrap .hv-qr-empty{width:120px;height:120px;margin-bottom:3px}.hv-bank-qr-wrap{font-size:11px}.hv-bank-warning{margin:5px 0 0;font-size:11px;line-height:1.25}.hv-submit.hv-secondary{margin-top:5px;padding:5px 15px;font-size:11px}}
@media (max-height:600px) and (orientation:landscape) {
  #hv-game-exit{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));left:auto;width:46px;height:46px}
  .hv-game-exit-icon{width:25px;height:25px}
  .hv-network-card{width:min(500px,58vw);min-height:76px;padding:15px 25px 15px 68px;font-size:14px}
  .hv-network-icon{left:16px;width:38px;height:38px;font-size:28px}
  #hv-wallet-actions{left:0;right:0;bottom:0;height:120px;transform:none}
  .hv-wallet-btn{bottom:4px;width:92px;height:98px}
  .hv-wallet-btn[data-open="deposit"]{right:calc(50% + 5px)}
  .hv-wallet-btn[data-open="withdraw"]{left:calc(50% + 5px)}
  .hv-modal{width:80vw;max-height:92dvh;overflow:hidden;border-radius:16px}
  #hv-wallet-overlay.is-withdraw .hv-modal{width:74vw}
  .hv-modal-head{height:40px;padding:0 48px 0 10px;border-radius:14px 14px 0 0}
  .hv-tabs{gap:5px}
  .hv-tab{min-height:32px;font-size:10px;border-radius:11px 11px 0 0}
  .hv-close{right:6px;top:4px;width:38px;height:34px;font-size:27px;border-radius:0 11px 0 13px}
  .hv-modal-title{font-size:13px;margin:6px 8px;letter-spacing:1px}
  .hv-content{margin:0 8px 8px;padding:6px 10px;min-height:0;max-height:none;overflow:visible;border-radius:14px}
  .hv-grid{grid-template-columns:1fr 1px 1fr;gap:10px}
  .hv-divider{display:block}
  .hv-info-row,.hv-form-row{grid-template-columns:90px 1fr;min-height:28px;margin:3px 0;gap:7px}
  .hv-label{font-size:12px}.hv-value,.hv-input,.hv-select{font-size:12px}.hv-input,.hv-select{padding:5px 10px;border-width:2px}
  .hv-qr,.hv-qr-empty{width:78px;height:78px;margin:4px auto;border-width:4px;padding:6px}
  .hv-qr-empty{font-size:10px;line-height:1.15;overflow:hidden}
  .hv-rate-card{padding:7px 10px;margin-bottom:6px;font-size:12px;line-height:1.25}
  .hv-mode-switch{gap:7px;margin:0 0 6px}.hv-mode-switch button{padding:5px 16px;font-size:12px}
  .hv-submit{margin-top:6px;padding:6px 22px;border-width:2px;font-size:13px}
  .hv-status{min-height:16px;margin-top:4px;font-size:12px}
  .hv-note{margin:4px 0 0;font-size:10px;line-height:1.2}
  .hv-bank-start{max-width:520px;margin:10px auto}.hv-bank-prompt{margin-bottom:8px;font-size:12px}.hv-bank-start .hv-form-row{grid-template-columns:90px 1fr}.hv-bank-success{margin-bottom:4px;font-size:12px}.hv-bank-result-grid{grid-template-columns:1fr 125px;gap:10px}.hv-bank-result .hv-info-row{margin:2px 0}.hv-bank-result .hv-copy{padding:2px 7px;font-size:9px}.hv-bank-qr-wrap{font-size:9px}.hv-bank-qr-wrap .hv-qr,.hv-bank-qr-wrap .hv-qr-empty{width:90px;height:90px;margin-bottom:2px}.hv-bank-warning{font-size:9px;margin:3px 0 0}.hv-submit.hv-secondary{margin-top:3px;padding:3px 14px;font-size:9px}
}

#hv-ui-root{display:contents}

/* Telegram support shortcut follows the native footer icons. */
#hv-support-shortcut{
  display:none;position:fixed;z-index:10025;box-sizing:border-box;
  flex-direction:column;align-items:center;justify-content:center;
  padding:0;border:0;background:transparent;transform:translate(-50%,-50%);
  color:#eee0b5;cursor:pointer;pointer-events:auto;touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
#hv-support-shortcut.is-visible{display:flex}
#hv-support-shortcut img{
  display:block;width:var(--hv-support-icon-size,54px);height:var(--hv-support-icon-size,54px);
  object-fit:contain;filter:hue-rotate(-15deg) saturate(.65) brightness(.82) drop-shadow(0 2px 3px #000);
  pointer-events:none;user-select:none;
}
#hv-support-shortcut span{
  display:block;margin-top:-2px;white-space:nowrap;
  color:#e9dfc9;font:800 var(--hv-support-font-size,13px)/1 "HV368 Display",Arial,sans-serif;
  text-shadow:0 2px 2px #000,0 0 4px #000;pointer-events:none;
}
#hv-support-shortcut span,#hv-wallet-actions .hv-wallet-btn-label{display:none}
#hv-toolbar-captions{display:none;position:fixed;inset:0;z-index:10026;pointer-events:none}
#hv-toolbar-captions.is-visible{display:block}
#hv-toolbar-captions .hv-toolbar-caption{
  position:absolute;box-sizing:border-box;width:auto;padding:0;
  transform:translate(-50%,-50%);border:0;background:none;box-shadow:none;
  color:#fff0c8;font:800 var(--hv-toolbar-font-size,15px)/1 'HV368 Display',Arial,sans-serif;
  text-align:center;letter-spacing:0;white-space:nowrap;
  text-shadow:0 2px 2px #000,0 0 5px #000;
}
#hv-support-shortcut:hover img{filter:hue-rotate(-15deg) saturate(.75) brightness(.92) drop-shadow(0 0 6px rgba(145,79,42,.38))}
#hv-support-shortcut:active{transform:translate(-50%,-50%) scale(.95)}
#hv-support-shortcut:focus-visible{outline:2px solid #fff0b3;outline-offset:2px;border-radius:12px}
html.hv-auth-active #hv-support-shortcut{display:none!important}

/* The original dock panel leaves no room for the new support icon on desktop. */
@media (min-width:901px){
  #hv-wallet-actions{transform:translateX(calc(-50% - 35px))}
  #hv-wallet-actions::before,#hv-wallet-actions::after{content:none;display:none}
}

/* Logout sits inside the native settings prefab's spare bottom row. */
#hv-settings-logout{
  display:none;align-items:center;justify-content:center;position:fixed;
  z-index:10035;box-sizing:border-box;transform:translate(-50%,-50%);
  border:2px solid #e1aa58;border-radius:9px;
  background:linear-gradient(180deg,#a84724 0%,#602819 48%,#280f0b 100%);
  box-shadow:inset 0 1px 0 #ffe2a4,inset 0 -3px 0 #170606,0 4px 8px #000;
  color:#ffe7b5;font-family:"HV368 Display",Arial,sans-serif;font-weight:800;
  line-height:1;letter-spacing:.02em;text-shadow:0 2px 2px #000;
  cursor:pointer;pointer-events:auto;touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
#hv-settings-logout.is-visible{display:flex}
#hv-settings-logout:hover{filter:brightness(1.13)}
#hv-settings-logout:active{filter:brightness(.85)}
#hv-settings-logout:focus-visible{outline:2px solid #fff2b5;outline-offset:2px}
#hv-settings-logout:disabled{opacity:.72;cursor:wait}
html.hv-auth-active #hv-settings-logout{display:none!important}
html.hv-avatar-picker-open #hv-event-quickbar,
html.hv-avatar-picker-open #hv-wallet-actions,
html.hv-avatar-picker-open #hv-support-shortcut,
html.hv-avatar-picker-open #hv-toolbar-captions{visibility:hidden!important;pointer-events:none!important}

/* Auth shell: keep the native Cocos controllers alive, but present a stable,
   readable HTML form above them. This removes mobile edit-box jitter while
   preserving the game's existing authentication and socket bootstrap. */
.hv-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html.hv-auth-active #GameDiv{opacity:0!important;pointer-events:none!important}
html.hv-auth-active .cocosEditBox{visibility:hidden!important}
html.hv-auth-active #hv-top-notices,html.hv-auth-active #hv-wallet-actions,html.hv-auth-active #hv-network-notice,html.hv-auth-active #hv-game-exit{display:none!important}
#hv-auth-shell{position:fixed;inset:0;z-index:10090;display:none;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;background:linear-gradient(110deg,rgba(6,7,9,.89),rgba(16,12,5,.78)),url('branding/hv368-auth-bg-wide-v2.webp') center/cover fixed;color:#f7f0df;font-family:Arial,sans-serif;pointer-events:auto}
#hv-auth-shell.is-visible{display:block}
#hv-auth-shell *{box-sizing:border-box}
.hv-auth-stage{max-width:1240px;margin:auto;padding:30px 28px 24px;min-height:100%;display:flex;flex-direction:column;justify-content:center}
.hv-auth-hero{text-align:center;margin-bottom:28px}
.hv-auth-logo{width:230px;max-width:70%;height:auto;display:block;margin:0 auto}
.hv-auth-kicker{font-size:12px;letter-spacing:3px;color:#d6b674;margin:12px 0 0}
.hv-auth-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr) minmax(0,.95fr);gap:26px;align-items:center}
.hv-auth-promo{height:430px;position:relative;border:1px solid #94713c;border-radius:20px;overflow:hidden;background:linear-gradient(0deg,#0e0907 0%,transparent 65%),url('branding/hv368-promo-welcome-v2.webp') center 25%/cover;box-shadow:0 20px 60px #0007}
.hv-auth-promo-copy{position:absolute;bottom:48px;left:24px;right:16px;text-shadow:0 2px 12px #000}
.hv-auth-promo-copy>span{font-size:11px;letter-spacing:2px;color:#ead09a}.hv-auth-promo-copy h1{font-size:44px;line-height:1;margin:10px 0;color:#ffe4a5;letter-spacing:2px}.hv-auth-promo-copy p{font-size:20px;line-height:1.45;margin:12px 0 0}.hv-auth-promo-domain{position:absolute;bottom:0;left:0;right:0;padding:13px 24px;border-top:1px solid #b38e4f55;color:#d4b579;font-size:11px;letter-spacing:3px}
.hv-auth-card{padding:26px;border:1px solid #ac8545;border-radius:20px;background:linear-gradient(150deg,#251c11e8,#0a0b0df5 65%);box-shadow:0 24px 70px #0008;min-width:0}
.hv-auth-tabs{display:flex;padding:4px;background:#07090b;border:1px solid #655031;border-radius:11px;gap:4px}
.hv-auth-tabs button{flex:1;min-height:42px;border:0;border-radius:7px;background:transparent;color:#c9bb9e;font-size:15px;font-weight:700;cursor:pointer}.hv-auth-tabs button.is-active{background:linear-gradient(120deg,#f4d896,#b88432);color:#251704;box-shadow:0 2px 10px #0005}
.hv-auth-card-title{margin:25px 0 22px;text-align:center}.hv-auth-card-title>span{font-size:20px;font-weight:800;color:#f1d499}.hv-auth-card-title p{font-size:13px;color:#b3aa97;margin:9px 0 0}#hv-auth-shell[data-mode="register"] .hv-auth-card-title p{display:none}
#hv-auth-form{display:flex;flex-direction:column;gap:12px;margin:16px 0 0}
.hv-auth-field{display:flex;align-items:center;min-width:0;height:54px;border:1px solid #655436;border-radius:9px;background:linear-gradient(#191919,#111214);overflow:hidden;margin:0}.hv-auth-field:focus-within{border-color:#e3bd70;box-shadow:0 0 0 3px #c99d3d1c}
.hv-auth-field input{width:100%;min-width:0;height:100%;border:0;outline:none;background:transparent!important;color:#fff3da;font:16px Arial,sans-serif;padding:0 12px 0 0;box-shadow:none}.hv-auth-field input::placeholder{color:#aaa394;opacity:1}.hv-auth-field input:-webkit-autofill{-webkit-text-fill-color:#fff3da;-webkit-box-shadow:0 0 0 1000px #191919 inset}
.hv-auth-field-icon{position:relative;flex:0 0 46px;align-self:stretch;display:flex;align-items:center;justify-content:center;color:#c3a66c;font-size:0}.hv-auth-user-icon:before{content:"";position:absolute;left:18px;top:12px;width:10px;height:10px;border:1.5px solid #c3a66c;border-radius:50%}.hv-auth-user-icon:after{content:"";position:absolute;left:13px;top:27px;width:20px;height:14px;border:1.5px solid #c3a66c;border-bottom:0;border-radius:12px 12px 0 0}.hv-auth-lock:before{content:"";position:absolute;left:15px;top:24px;width:17px;height:16px;border:1.5px solid #c3a66c;border-radius:3px}.hv-auth-lock:after{content:"";position:absolute;left:18px;top:13px;width:11px;height:13px;border:1.5px solid #c3a66c;border-radius:8px 8px 0 0}
.hv-auth-eye{flex:0 0 44px;align-self:stretch;border:0;background:transparent;cursor:pointer}.hv-auth-eye span{display:block;position:relative;width:20px;height:14px;margin:auto;border:1.5px solid #c3a66c;border-radius:70% 20%;transform:rotate(45deg)}.hv-auth-eye span:after{content:"";position:absolute;left:6px;top:3px;width:5px;height:5px;border-radius:50%;background:#c3a66c}
.hv-auth-field.hv-auth-register-only{display:none}#hv-auth-shell[data-mode="register"] .hv-auth-field.hv-auth-register-only{display:flex}
.hv-auth-switch{text-align:center;font-size:13px;color:#b9b1a0;margin:4px 0}.hv-auth-switch button{border:0;background:none;color:#f2ce87;font-size:13px;font-weight:bold;padding:8px 3px;cursor:pointer}
.hv-auth-status{margin:0;color:#ffc2a9;font-size:14px;line-height:1.5;text-align:center;overflow-wrap:anywhere}.hv-auth-status:empty{display:none}
.hv-auth-submit{position:relative;min-height:54px;border:1px solid #e4b76a;border-radius:10px;background:linear-gradient(#b92a26,#7f1418);box-shadow:inset 0 1px #ffcc8a66,0 5px 20px #6e060933;color:#ffebbb;font-size:18px;font-weight:800;cursor:pointer}.hv-auth-submit:hover{filter:brightness(1.12)}.is-busy .hv-auth-submit{opacity:.65;cursor:wait}
.hv-auth-download{padding:24px 8px;text-align:center;min-width:0}.hv-auth-app-icon{display:flex;align-items:center;justify-content:center;width:76px;height:76px;margin:0 auto 22px;border:1px solid #c29b50;border-radius:21px;background:linear-gradient(135deg,#63420d,#1a1207);box-shadow:inset 0 0 20px #dfae2922,0 8px 32px #dbaa2414;color:#ffe3a2;font-size:22px;font-weight:900;font-style:italic}.hv-auth-app-icon span{color:#f29d31}.hv-auth-eyebrow{font-size:10px;letter-spacing:2px;color:#c8a96d}.hv-auth-download h2{font-size:25px;line-height:1.35;margin:12px 0;color:#f4dfb3}.hv-auth-download p{font-size:14px;line-height:1.7;color:#bcb3a2;margin:16px 0 22px}.hv-auth-apk,.hv-auth-web{width:100%;border-radius:10px;min-height:56px;font-family:inherit}.hv-auth-apk{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px;padding:12px;border:1px solid #77613c;background:#30281a;color:#c7b78e}.hv-auth-apk span{font-size:12px;font-weight:bold}.hv-auth-apk strong{border-radius:5px;background:#584524;padding:6px 8px;font-size:12px}.hv-auth-web{margin-top:12px;border:1px solid #b28d4c;background:linear-gradient(#705018,#4b340d);color:#ffe7ae;font-size:13px;font-weight:700;cursor:pointer}.hv-auth-web span{margin-left:8px;font-size:20px}.hv-auth-download small{display:block;color:#a49a87;font-size:11px;line-height:1.6;margin-top:16px}
.hv-auth-footer{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;margin-top:28px;color:#a69a81;font-size:11px}.hv-auth-footer b{letter-spacing:2px;color:#c8ac77}
#hv-auth-shell button:focus-visible{outline:2px solid #ffe2a1;outline-offset:3px}
@media(max-width:1000px){.hv-auth-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);max-width:760px;margin:auto;width:100%}.hv-auth-promo{display:none}.hv-auth-stage{padding:24px}.hv-auth-logo{width:200px}}
@media(max-width:600px){.hv-auth-stage{padding:24px 18px 28px;justify-content:flex-start}.hv-auth-hero{margin-bottom:22px}.hv-auth-logo{width:185px}.hv-auth-kicker{font-size:10px;letter-spacing:2px}.hv-auth-grid{display:flex;flex-direction:column;gap:22px}.hv-auth-card{width:100%;padding:20px 18px;border-radius:16px}.hv-auth-card-title{margin:22px 0 18px}.hv-auth-card-title>span{font-size:18px}.hv-auth-download{width:100%;padding:24px 20px;border:1px solid #67502c;border-radius:16px;background:#0b0c0ecc}.hv-auth-app-icon{width:60px;height:60px;border-radius:17px;font-size:18px;margin-bottom:16px}.hv-auth-download h2{font-size:22px}.hv-auth-download h2 br{display:none}.hv-auth-footer{gap:10px;margin-top:24px;flex-direction:column}.hv-auth-field{height:52px}}
@media(min-width:1001px) and (max-height:800px){.hv-auth-stage{padding:18px 28px}.hv-auth-logo{width:180px}.hv-auth-hero{margin-bottom:18px}.hv-auth-kicker{margin-top:8px}.hv-auth-card{padding:20px}.hv-auth-card-title{margin:16px 0}.hv-auth-field{height:48px}#hv-auth-form{gap:10px}.hv-auth-switch{margin:0}.hv-auth-switch button{padding:5px 3px}.hv-auth-footer{margin-top:18px}}
@media(max-height:550px) and (min-width:601px){.hv-auth-stage{padding-top:18px;justify-content:flex-start}.hv-auth-logo{width:150px}.hv-auth-hero{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){#hv-auth-shell *{scroll-behavior:auto!important}}
/* Entry composition: warm gold light, crimson glass and a visible mobile hero. */
#hv-auth-shell{background:radial-gradient(ellipse at 12% 42%,#8a15142e,transparent 48%),radial-gradient(ellipse at 85% 20%,#cf8f2226,transparent 45%),linear-gradient(110deg,#08090eea,#10070ce0),url('branding/hv368-auth-bg-wide-v2.webp') center/cover fixed}
.hv-auth-stage{max-width:1360px;padding:28px 36px}
.hv-auth-hero{position:relative;margin-bottom:30px}
.hv-auth-logo{width:264px;filter:drop-shadow(0 8px 24px #ff96002b)}
.hv-auth-kicker{color:#e4cb96;font-size:11px;letter-spacing:3.5px}
.hv-auth-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1.24fr) minmax(0,.83fr);gap:28px}
.hv-auth-promo{height:474px;border:1px solid #e1b568;border-radius:24px;background:linear-gradient(0deg,#21070afc 0%,#200509a6 25%,transparent 64%),url('branding/hv368-promo-welcome-v2.webp') center 30%/cover;box-shadow:0 24px 60px #0008,0 0 35px #d38d1917,inset 0 0 0 5px #e4b65412}
.hv-auth-promo:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 30%,#ffe9b20d 45%,transparent 60%);background-size:250% 100%;animation:hv-entry-light 10s ease-in-out infinite}
.hv-auth-promo-copy{bottom:58px;left:26px;right:24px}.hv-auth-promo-copy>span{font-size:10px;letter-spacing:3px;color:#ffe7ae}.hv-auth-promo-copy h1{font-size:48px;letter-spacing:1px;color:#ffe4a0;margin:10px 0}.hv-auth-promo-copy p{font-size:21px;font-weight:700;line-height:1.35;color:#fff5dc}.hv-auth-promo-domain{padding:15px 26px;background:#10060888;color:#f0d7a4}
.hv-auth-card{position:relative;padding:28px;border-radius:24px;border-color:#b6894f;background:radial-gradient(ellipse at top,#55201e5c,transparent 60%),linear-gradient(145deg,#21141aec,#0c0d15f5);box-shadow:0 24px 70px #0009,inset 0 1px #fff3c929,0 0 45px #bd4b2410}
.hv-auth-card:before{content:"";position:absolute;left:22%;right:22%;top:-1px;height:2px;background:linear-gradient(90deg,transparent,#fff1bf,transparent);box-shadow:0 0 18px #ffc87188;pointer-events:none}
.hv-auth-tabs{padding:5px;background:#07090c9c;border-color:#a480453d;border-radius:13px}.hv-auth-tabs button{min-height:44px;border-radius:9px;font-size:16px}.hv-auth-tabs button.is-active{background:linear-gradient(130deg,#ffe5a2,#d6a447 60%,#ad7129);box-shadow:inset 0 1px #fff8d6,0 4px 16px #db9c2520}
.hv-auth-card-title>span{font-size:21px;color:#ffe5b0;letter-spacing:.5px}.hv-auth-card-title p{color:#c4b7ab}
.hv-auth-field{border-color:#7c61484d;background:linear-gradient(125deg,#1d1c25,#11121b);border-radius:11px;box-shadow:inset 0 1px 5px #0005}.hv-auth-field input::placeholder{color:#b8afac}
.hv-auth-submit{min-height:58px;border-radius:13px;font-size:19px;letter-spacing:.5px;border-color:#f0b66e;background:linear-gradient(120deg,#b21d1d,#e33f2e 48%,#9d103b);box-shadow:inset 0 2px #ffd59a55,inset 0 -3px #5d09177a,0 7px 25px #d6212933;transition:filter .18s,transform .18s}.hv-auth-submit:hover{transform:translateY(-1px)}.hv-auth-submit:active{transform:translateY(1px)}
.hv-auth-download{padding:28px 20px;border-radius:22px;border:1px solid #94704444;background:linear-gradient(150deg,#30181780,#10111a80);box-shadow:inset 0 1px #ffeac815}
.hv-auth-app-icon{width:90px;height:90px;border-radius:24px;background:radial-gradient(circle at 30% 20%,#ffcb5926,transparent 65%),linear-gradient(145deg,#821b22,#190d1c);border-color:#d3a656;box-shadow:inset 0 0 0 5px #ffcf6810,0 8px 32px #0006;font-size:25px;transform:rotate(-5deg)}
.hv-auth-download h2{font-size:25px;color:#fff0d0}.hv-auth-download p{color:#c3b8b6;font-size:14px}.hv-auth-eyebrow{color:#e3bd77}.hv-auth-web{border-color:#8ea2d2;background:linear-gradient(125deg,#163d76,#1d427d 45%,#502958);min-height:58px;font-size:14px;box-shadow:inset 0 1px #d8e6ff44,0 6px 24px #2667be20}.hv-auth-web:hover{filter:brightness(1.16)}.hv-auth-apk{background:#201c22;border-color:#79654e;color:#b9b0a4}.hv-auth-apk strong{background:#53402e;color:#eed5a9}.hv-auth-download small{color:#b5a79d}
@keyframes hv-entry-light{0%,100%{background-position:100% 0}50%{background-position:0 0}}
@media(min-width:1001px) and (max-height:800px){.hv-auth-stage{padding:18px 28px}.hv-auth-logo{width:218px}.hv-auth-hero{margin-bottom:20px}.hv-auth-promo{height:434px}.hv-auth-card{padding:22px}.hv-auth-card-title{margin:18px 0}.hv-auth-field{height:48px}.hv-auth-submit{min-height:53px}.hv-auth-download{padding:22px 18px}.hv-auth-download p{margin:12px 0 18px}.hv-auth-app-icon{width:74px;height:74px;margin-bottom:18px}}
@media(max-width:1000px){.hv-auth-stage{padding:24px}.hv-auth-grid{grid-template-columns:1.2fr .85fr;gap:20px;max-width:760px}.hv-auth-promo{display:block;grid-column:1/-1;width:100%;height:200px;background:linear-gradient(90deg,#21090bf5 5%,#21090bd9 35%,transparent 72%),url('branding/hv368-promo-welcome-v2.webp') right 29%/52% auto no-repeat;background-color:#291109}.hv-auth-promo-copy{left:25px;bottom:22px;right:auto}.hv-auth-promo-copy h1{font-size:34px;margin:8px 0}.hv-auth-promo-copy p{font-size:17px;margin:6px 0 0}.hv-auth-promo-domain{display:none}.hv-auth-logo{width:226px}.hv-auth-card{padding:24px}.hv-auth-download{padding:24px 18px}}
@media(max-width:600px){.hv-auth-stage{padding:22px 16px 28px;justify-content:flex-start}.hv-auth-hero{margin-bottom:20px}.hv-auth-logo{width:224px;max-width:76%}.hv-auth-kicker{font-size:9px;letter-spacing:2.6px;margin-top:10px}.hv-auth-grid{display:flex;gap:20px}.hv-auth-promo{height:178px;flex:none;border-radius:18px;background-size:auto,57% auto;background-position:center,right 28%}.hv-auth-promo-copy{left:20px;bottom:24px;max-width:55%}.hv-auth-promo-copy>span{font-size:8px;letter-spacing:1.7px}.hv-auth-promo-copy h1{font-size:32px;margin:8px 0}.hv-auth-promo-copy p{font-size:15px;line-height:1.4}.hv-auth-card{padding:22px 18px;border-radius:20px}.hv-auth-tabs button{font-size:15px;min-height:42px}.hv-auth-card-title{margin:22px 0 18px}.hv-auth-card-title>span{font-size:19px}.hv-auth-field{height:52px}.hv-auth-submit{min-height:56px}.hv-auth-download{padding:25px 22px;width:100%;border-radius:20px}.hv-auth-app-icon{width:66px;height:66px;margin-bottom:18px;font-size:20px;border-radius:18px}.hv-auth-download h2{font-size:23px}.hv-auth-download h2 br{display:none}.hv-auth-footer{line-height:1.6;font-size:10px}.hv-auth-download small{font-size:12px}}
@media(prefers-reduced-motion:reduce){#hv-auth-shell *,#hv-auth-shell *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* Safari on iPhone cannot reliably rotate a normal browser tab from script.
   Give the just-opened lobby a real landscape-sized surface while preserving
   Cocos' landscape touch coordinate handling. */
html.hv-virtual-landscape{overflow:hidden!important}
html.hv-virtual-landscape #GameDiv{
  position:fixed!important;
  inset:0 auto auto 0!important;
  width:100vh!important;
  /* Use Safari's smallest visible viewport. Unlike lvh, this never places the
     right side of a rotated popup underneath the expanded address bar. */
  width:100svh!important;
  height:100vw!important;
  margin:0 0 0 100vw!important;
  transform:rotate(90deg)!important;
  -webkit-transform:rotate(90deg)!important;
  transform-origin:0 0!important;
  -webkit-transform-origin:0 0!important;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
html.hv-virtual-landscape #hv-ui-root{
  display:block;
  position:fixed;
  inset:0 auto auto 0;
  width:100vh;
  width:100svh;
  height:100vw;
  margin-left:100vw;
  z-index:10000;
  pointer-events:none;
  transform:rotate(90deg);
  -webkit-transform:rotate(90deg);
  transform-origin:0 0;
  -webkit-transform-origin:0 0;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
html.hv-virtual-landscape #hv-game-exit{top:max(8px,env(safe-area-inset-right));right:auto;bottom:auto;left:max(8px,env(safe-area-inset-top));width:46px;height:46px}
html.hv-virtual-landscape .hv-game-exit-icon{width:25px;height:25px}
html.hv-virtual-landscape #hv-wallet-overlay.is-open{pointer-events:auto}
html.hv-virtual-landscape #hv-top-notices{--hv-notice-edge:clamp(20px,3svh,38px);--hv-notice-start:clamp(88px,10.5svh,112px);--hv-notice-logo-width:max(180px,min(27svh,52vw));left:var(--hv-notice-edge);right:var(--hv-notice-edge);grid-template-columns:minmax(0,1fr) var(--hv-notice-logo-width) minmax(0,1fr);font-size:14px}
html.hv-virtual-landscape .hv-top-notice-left{padding:0 24px 0 18px}
html.hv-virtual-landscape .hv-top-notice-right{padding:0 20px 0 24px}
html.hv-virtual-landscape .hv-notice-track span{padding-right:52px}
html.hv-virtual-landscape #hv-wallet-actions{left:0;right:0;bottom:0;height:120px;transform:none}
html.hv-virtual-landscape .hv-wallet-btn{bottom:4px;width:92px;height:98px}
html.hv-virtual-landscape .hv-wallet-btn[data-open="deposit"]{right:calc(50% + 5px)}
html.hv-virtual-landscape .hv-wallet-btn[data-open="withdraw"]{left:calc(50% + 5px)}
html.hv-virtual-landscape .hv-network-card{width:min(500px,58%);min-height:76px;padding:15px 25px 15px 68px;font-size:14px}
html.hv-virtual-landscape .hv-network-icon{left:16px;width:38px;height:38px;font-size:28px}
html.hv-virtual-landscape .hv-modal{width:80%;max-height:92%;overflow:hidden;border-radius:16px}
html.hv-virtual-landscape #hv-wallet-overlay.is-withdraw .hv-modal{width:74%}
html.hv-virtual-landscape .hv-modal-head{height:40px;padding:0 48px 0 10px;border-radius:14px 14px 0 0}
html.hv-virtual-landscape .hv-tabs{gap:5px}
html.hv-virtual-landscape .hv-tab{min-height:32px;font-size:10px;border-radius:11px 11px 0 0}
html.hv-virtual-landscape .hv-close{right:6px;top:4px;width:38px;height:34px;font-size:27px;border-radius:0 11px 0 13px}
html.hv-virtual-landscape .hv-modal-title{font-size:13px;margin:6px 8px;letter-spacing:1px}
html.hv-virtual-landscape .hv-content{margin:0 8px 8px;padding:6px 10px;min-height:0;max-height:none;overflow:visible;border-radius:14px}
html.hv-virtual-landscape .hv-grid{grid-template-columns:1fr 1px 1fr;gap:10px}
html.hv-virtual-landscape .hv-divider{display:block}
html.hv-virtual-landscape .hv-info-row,html.hv-virtual-landscape .hv-form-row{grid-template-columns:90px 1fr;min-height:28px;margin:3px 0;gap:7px}
html.hv-virtual-landscape .hv-label{font-size:12px}
html.hv-virtual-landscape .hv-value,html.hv-virtual-landscape .hv-input,html.hv-virtual-landscape .hv-select{font-size:12px}
html.hv-virtual-landscape .hv-input,html.hv-virtual-landscape .hv-select{padding:5px 10px;border-width:2px}
html.hv-virtual-landscape .hv-qr,html.hv-virtual-landscape .hv-qr-empty{width:78px;height:78px;margin:4px auto;border-width:4px;padding:6px}
html.hv-virtual-landscape .hv-qr-empty{font-size:10px;line-height:1.15;overflow:hidden}
html.hv-virtual-landscape .hv-rate-card{padding:7px 10px;margin-bottom:6px;font-size:12px;line-height:1.25}
html.hv-virtual-landscape .hv-mode-switch{gap:7px;margin:0 0 6px}
html.hv-virtual-landscape .hv-mode-switch button{padding:5px 16px;font-size:12px}
html.hv-virtual-landscape .hv-submit{margin-top:6px;padding:6px 22px;border-width:2px;font-size:13px}
html.hv-virtual-landscape .hv-status{min-height:16px;margin-top:4px;font-size:12px}
html.hv-virtual-landscape .hv-note{margin:4px 0 0;font-size:10px;line-height:1.2}
html.hv-virtual-landscape .hv-bank-start{max-width:520px;margin:10px auto}
html.hv-virtual-landscape .hv-bank-prompt{margin-bottom:8px;font-size:12px}
html.hv-virtual-landscape .hv-bank-start .hv-form-row{grid-template-columns:90px 1fr}
html.hv-virtual-landscape .hv-bank-success{margin-bottom:4px;font-size:12px}
html.hv-virtual-landscape .hv-bank-result-grid{grid-template-columns:1fr 125px;gap:10px}
html.hv-virtual-landscape .hv-bank-result .hv-info-row{margin:2px 0}
html.hv-virtual-landscape .hv-bank-result .hv-copy{padding:2px 7px;font-size:9px}
html.hv-virtual-landscape .hv-bank-qr-wrap{font-size:9px}
html.hv-virtual-landscape .hv-bank-qr-wrap .hv-qr,html.hv-virtual-landscape .hv-bank-qr-wrap .hv-qr-empty{width:90px;height:90px;margin-bottom:2px}
html.hv-virtual-landscape .hv-bank-warning{font-size:9px;margin:3px 0 0}
html.hv-virtual-landscape .hv-submit.hv-secondary{margin-top:3px;padding:3px 14px;font-size:9px}

/* Lô Đề uses the native record popup and public content sprites. */
#hv-lottery-overlay{position:fixed;inset:0;z-index:10070;display:none;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;background:rgba(0,0,0,.78);backdrop-filter:blur(4px);color:#f5e6c7;font-family:Arial,sans-serif;pointer-events:auto}
#hv-lottery-overlay.is-open{display:flex}
.hv-lottery-game{box-sizing:border-box;display:grid;grid-template-rows:80px 0 minmax(0,1fr);width:min(1260px,96vw);height:min(710px,94dvh);min-height:0;position:relative;overflow:hidden;padding:0 14px 20px;border:0;border-radius:24px;background:url('/branding/hv368-popup-frame.png') center/100% 100% no-repeat;box-shadow:0 24px 70px #000}
.hv-lottery-header{display:grid;grid-template-columns:64px minmax(0,1fr) 190px;align-items:center;gap:12px;padding:4px 12px 0;min-width:0}
.hv-lottery-close{width:48px;height:48px;justify-self:start;border:0;background:url('/branding/hv368-popup-back.png') center/contain no-repeat;color:transparent;font-size:0;cursor:pointer}
.hv-lottery-close:hover{filter:brightness(1.2)}.hv-lottery-close:active{transform:scale(.96)}
.hv-lottery-brand{display:flex;justify-content:center;min-width:0;text-align:center}.hv-lottery-brand>span,.hv-lottery-brand>i{display:none}.hv-lottery-brand>div{min-width:0}.hv-lottery-brand strong{display:block;font-size:28px;font-weight:900;letter-spacing:1px;color:#ffdf90;text-shadow:0 2px #4b2308,0 3px 3px #000}.hv-lottery-brand small{display:block;margin-top:4px;color:#bca982;font-size:11px;letter-spacing:2px}
.hv-lottery-balance{padding:9px 14px;border:1px solid #776136;border-radius:8px;background:#0b0908b8;color:#aa9875;font-size:10px;font-weight:700;white-space:nowrap}.hv-lottery-balance b{display:block;margin-top:3px;font-size:19px;color:#fbe09a}
.hv-lottery-region-tabs{display:block;height:0;min-height:0;overflow:hidden}
.hv-lottery-mobile-tabs{display:none}
.hv-lottery-layout{display:grid;grid-template-columns:minmax(210px,25fr) minmax(300px,46fr) minmax(230px,29fr);gap:14px;min-height:0;padding:16px 8px 0;box-sizing:border-box}
.hv-lottery-layout>section{min-width:0;min-height:0;overflow:auto;position:relative;padding-bottom:12px;border:19px solid transparent;border-image:url('/branding/hv368-popup-panel.png') 19 fill stretch;scrollbar-width:thin;scrollbar-color:#8c7137 #12100c}
.hv-lottery-panel-title{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:34px;margin:-6px -5px 12px;padding:0 3px 10px;border-bottom:1px solid #68552b;color:#f9d88a;font-size:13px;font-weight:800}.hv-lottery-panel-title em{font-size:10px;font-weight:400;font-style:normal;color:#ae9e80;text-align:right}
.hv-lottery-classic-clock{text-align:center;color:#e4d3a5;font-size:24px;letter-spacing:3px;font-variant-numeric:tabular-nums;margin:10px 0 14px}
.hv-lottery-classic-round,.hv-lottery-classic-result-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #4c4029;color:#a89776;font-size:12px}.hv-lottery-classic-round b,.hv-lottery-classic-result-head b{color:#e6c987}
.hv-lottery-classic-regions{display:flex;gap:5px;margin:14px 0}.hv-lottery-classic-regions button{flex:1;min-width:0}
.hv-lottery-game button{font-family:inherit}.hv-lottery-classic-regions button,.hv-lottery-classic-types button,.hv-lottery-classic-subtypes button,.hv-lottery-chips button,.hv-lottery-classic-side-tabs button{min-height:38px;padding:8px 6px;border:1px solid #685334;border-radius:5px;background:linear-gradient(#302a21,#18140e);box-shadow:inset 0 1px #ffffff12;color:#c9b991;font-size:12px;font-weight:700;cursor:pointer}
.hv-lottery-classic-regions button.active,.hv-lottery-classic-types button.active,.hv-lottery-classic-subtypes button.active,.hv-lottery-classic-side-tabs button.active{border-color:#e3bd6b;background:linear-gradient(#815b2f,#4b3016);color:#fff0be;box-shadow:inset 0 1px #ffe0a05c}
.hv-lottery-game button:disabled{opacity:.4;cursor:default}.hv-lottery-game button:focus-visible,.hv-lottery-game input:focus-visible{outline:2px solid #f3cf7b;outline-offset:3px}
.hv-lottery-classic-stake{display:block;margin:18px 0;color:#baab8a;font-size:12px}.hv-lottery-classic-stake>span{display:block;margin-bottom:8px}.hv-lottery-classic-stake>div{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #7e6439;border-radius:5px;background:#030303;box-shadow:inset 0 2px 5px #000}.hv-lottery-classic-stake input{width:100%;min-width:0;padding:12px 0;border:0;background:transparent;color:#ffe6a1;font-size:23px;font-weight:700;outline:0}.hv-lottery-classic-stake b{color:#b09b6b;font-size:14px}
.hv-lottery-summary{display:flex;flex-direction:column;gap:8px;padding:16px 0;margin:8px 0 14px;border-top:1px solid #42371f;border-bottom:1px solid #42371f;font-size:12px;color:#aa9b7c}.hv-lottery-summary b{color:#ffe7a2;font-size:27px}.hv-lottery-summary small{font-size:11px;line-height:1.5}
.hv-lottery-submit{display:block;width:100%;min-height:46px;border:1px solid #f6d592;border-radius:6px;background:linear-gradient(#f3d99d,#c79343 50%,#966023);box-shadow:inset 0 1px #fff0bb,0 3px 8px #0008;color:#38210b;font-size:16px;font-weight:900;cursor:pointer;text-shadow:0 1px #ffe7ab}
.hv-lottery-message{margin-top:12px;color:#f1a085;font-size:12px;line-height:1.5}.hv-lottery-message.ok{color:#e3d69e}
.hv-lottery-classic-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hv-lottery-classic-types button{min-height:47px}.hv-lottery-classic-types small{display:block;margin-top:4px;font-size:9px;color:#ad9a78}
.hv-lottery-classic-subtypes{display:flex;gap:10px;margin-top:18px}.hv-lottery-classic-subtypes button{flex:1}.hv-lottery-classic-rate{margin:22px 0;color:#a89c81;font-size:12px;line-height:1.8;text-align:center}.hv-lottery-classic-rate b{color:#d3bd8d}.hv-lottery-classic-rate strong{color:#f3d17d}
.hv-lottery-classic-number{display:block;margin:20px 0}.hv-lottery-classic-number>span{display:block;margin-bottom:10px;color:#cbbb95;font-size:12px;font-weight:700;letter-spacing:1px}.hv-lottery-classic-number>div{display:flex;align-items:center;padding:0 14px;border:1px solid #8b6c3a;border-radius:6px;background:#030303;box-shadow:inset 0 2px 6px #000}.hv-lottery-classic-number input{width:100%;min-width:0;padding:15px 0;border:0;background:transparent;color:#ffe7af;font-size:20px;outline:0}.hv-lottery-classic-number input::placeholder{color:#706550;font-size:16px}.hv-lottery-classic-number i{font-size:21px;color:#af8d4c;font-style:normal}
.hv-lottery-chips{display:flex;gap:8px}.hv-lottery-chips button{flex:1;border-radius:20px;color:#edce8c}.hv-lottery-help{margin:18px 0 0;color:#9e9177;font-size:12px;line-height:1.7}
.hv-lottery-classic-side-tabs{display:grid;grid-template-columns:1fr 1fr 36px;gap:4px;margin:-5px -4px 12px}.hv-lottery-classic-side-tabs button{font-size:11px;min-height:38px}.hv-lottery-classic-side-tabs button:last-child{font-size:20px;padding:0}
.hv-lottery-classic-prize{display:grid;grid-template-columns:75px 1fr;align-items:center;min-height:45px;border-bottom:1px solid #4b3b22;color:#c9bda2;font-size:11px}.hv-lottery-classic-prize:nth-child(even){background:#ffffff04}.hv-lottery-classic-prize span{color:#ad9b72}.hv-lottery-classic-prize b{text-align:right;letter-spacing:1px;font-size:13px}.hv-lottery-classic-prize.special span,.hv-lottery-classic-prize.special b{color:#f2d38a}
.hv-lottery-ticket{display:flex;justify-content:space-between;gap:8px;padding:14px 0;border-bottom:1px solid #443823;font-size:12px}.hv-lottery-ticket>div{display:flex;flex-direction:column;gap:5px}.hv-lottery-ticket>div:last-child{text-align:right}.hv-lottery-ticket span,.hv-lottery-ticket small{color:#a5977d;font-size:10px}.hv-lottery-ticket .settled{color:#a5c39a}.hv-lottery-empty{padding:32px 8px;text-align:center;font-size:12px;color:#9f9177}.hv-lottery-loading{grid-column:1/-1;align-self:center;text-align:center;padding:32px 15px;font-size:14px;line-height:1.7}.hv-lottery-loading.error{color:#e8a993}
@media(max-height:600px) and (min-width:701px){
 #hv-lottery-overlay{padding:6px}.hv-lottery-game{height:97dvh;grid-template-rows:56px 0 minmax(0,1fr);padding:0 8px 12px;border-radius:15px}.hv-lottery-header{grid-template-columns:44px minmax(0,1fr) 140px}.hv-lottery-close{width:36px;height:36px}.hv-lottery-brand strong{font-size:21px}.hv-lottery-brand small{font-size:8px}.hv-lottery-balance{padding:5px 10px;font-size:8px}.hv-lottery-balance b{font-size:15px}.hv-lottery-layout{grid-template-columns:minmax(160px,25fr) minmax(250px,46fr) minmax(180px,29fr);gap:8px;padding:8px 4px 0}.hv-lottery-layout>section{border-width:12px}.hv-lottery-panel-title{font-size:11px;margin-bottom:8px}.hv-lottery-classic-clock{font-size:19px;margin:5px 0}.hv-lottery-classic-stake{margin:10px 0}.hv-lottery-classic-stake input{font-size:18px;padding:8px 0}.hv-lottery-summary{padding:10px 0;gap:5px}.hv-lottery-summary b{font-size:21px}.hv-lottery-classic-rate{margin:10px 0}.hv-lottery-classic-number{margin:12px 0}.hv-lottery-classic-number input{font-size:16px;padding:10px 0}.hv-lottery-classic-types{gap:5px}.hv-lottery-classic-types button{min-height:36px;font-size:11px}.hv-lottery-classic-subtypes{margin-top:10px}.hv-lottery-classic-prize{min-height:32px}.hv-lottery-help{margin-top:10px;font-size:11px}
}
@media(max-width:700px){
 #hv-lottery-overlay{padding:6px}.hv-lottery-game{width:100%;height:97dvh;grid-template-rows:72px 0 minmax(0,1fr);padding:0 8px 14px;border-radius:16px}.hv-lottery-header{grid-template-columns:40px minmax(0,1fr) 90px;gap:5px;padding:0 7px}.hv-lottery-close{width:33px;height:33px}.hv-lottery-brand strong{font-size:19px;letter-spacing:0}.hv-lottery-brand small{font-size:8px;letter-spacing:.5px}.hv-lottery-balance{padding:7px;font-size:8px}.hv-lottery-balance b{font-size:12px}.hv-lottery-layout{display:flex;flex-direction:column;overflow-y:auto;gap:12px;padding:12px 4px}.hv-lottery-layout>section{min-height:auto;flex-shrink:0;overflow:visible;border-width:16px}.hv-lottery-betbox{order:-1}.hv-lottery-classic-types button{min-height:44px}.hv-lottery-classic-regions button,.hv-lottery-chips button{min-height:44px}.hv-lottery-classic-prize{min-height:40px}
}
html.hv-virtual-landscape .hv-lottery-game{width:calc(100% - 8px);height:calc(100% - 8px)}

/* CSKH contact popup uses the same dark frame and gold trim as lobby popups. */
#hv-contact-overlay{position:fixed;inset:0;z-index:10080;display:none;align-items:center;justify-content:center;box-sizing:border-box;padding:9px;background:rgba(0,0,0,.72);font-family:"HV368 Display","Arial Narrow",Arial,sans-serif;pointer-events:auto}
#hv-contact-overlay.is-open{display:flex}
.hv-contact-popup{position:relative;box-sizing:border-box;width:min(790px,96%);height:min(364px,94%);min-height:0;padding:77px 34px 24px;border:2px solid #d6a74f;border-radius:24px;background:linear-gradient(180deg,rgba(68,32,9,.18),rgba(26,8,3,.9) 24%,rgba(35,14,5,.94) 80%,rgba(82,46,15,.2)),url('/branding/hv368-popup-frame.png') center/100% 100% no-repeat,#21120b;box-shadow:inset 0 0 0 3px #3c240f,inset 0 2px 17px #f4ce7959,0 16px 42px #000d;color:#fff0c5;overflow:hidden}
.hv-contact-popup:before{content:"";position:absolute;inset:60px 26px 16px;border:2px solid #9f752f;border-radius:12px;background:linear-gradient(160deg,rgba(32,14,6,.45),rgba(5,3,2,.55));box-shadow:inset 0 0 10px #000,0 0 0 1px #251306;pointer-events:none}
.hv-contact-header{position:absolute;z-index:1;top:-1px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:15px;width:min(390px,70%);height:56px;padding:0 23px 5px;box-sizing:border-box;border:2px solid #d7a64a;border-radius:0 0 30px 30px;background:linear-gradient(180deg,#3d1b08 0%,#b77724 18%,#7f3b0d 46%,#3d1b0b 85%,#261207);box-shadow:inset 0 2px 3px #f6d37e,0 3px 8px #000d;text-shadow:0 2px 3px #000}
.hv-contact-header h2{margin:0;white-space:nowrap;color:#ffe4a2;font-size:25px;line-height:1;font-weight:800;letter-spacing:.5px}
.hv-contact-spade{color:#f9bd56;font-family:Georgia,serif;font-size:21px;text-shadow:0 2px #4c2005}
.hv-contact-close{position:absolute;z-index:2;top:8px;right:10px;width:52px;height:42px;padding:0;border:2px solid #bc5b24;border-radius:10px;background:linear-gradient(#e04d32 0%,#a11e14 48%,#6d0b08 100%);box-shadow:inset 0 2px #ff9a69,0 3px 5px #000c;color:#ffe7be;font-size:34px;font-family:Arial,sans-serif;font-weight:700;line-height:32px;text-shadow:0 2px #370402;cursor:pointer}
.hv-contact-close:hover{filter:brightness(1.2)}.hv-contact-close:active{transform:translateY(2px)}
.hv-contact-links{position:relative;z-index:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,1fr);gap:14px 12px;height:100%;box-sizing:border-box}
.hv-contact-link{display:flex;align-items:stretch;min-width:0;min-height:0;border:2px solid #62231c;border-radius:12px;background:linear-gradient(180deg,#7d1c1d 0%,#3b0b0d 35%,#1a0808 100%);box-shadow:inset 0 2px #b7554a90,0 3px 7px #000c;color:#fff4d4;text-decoration:none;cursor:pointer;transition:filter .16s ease,transform .16s ease,border-color .16s ease}
.hv-contact-link:hover:not(.is-unavailable){filter:brightness(1.22);transform:translateY(-2px);border-color:#d0874b}.hv-contact-link:active:not(.is-unavailable){transform:translateY(1px)}
.hv-contact-icon{display:flex;align-items:center;justify-content:center;flex:0 0 64px;min-width:0;border-radius:9px 0 0 9px;background:linear-gradient(135deg,#b63129,#5e0c10 65%,#350507);box-shadow:inset -2px 0 #1c0506,inset 0 2px #ec7d65;color:#fff6d8;font-family:Arial,sans-serif;font-size:39px;font-weight:900;text-shadow:0 2px 3px #300505}
.hv-contact-icon svg{width:41px;height:41px;fill:currentColor;filter:drop-shadow(0 2px 2px #300505)}
.hv-contact-link[data-contact="contactFacebookPage"] .hv-contact-icon{font-size:46px;font-family:Arial,sans-serif}
.hv-contact-link[data-contact="contactLiveRewards"] .hv-contact-icon{font-size:29px}
.hv-contact-label{display:flex;align-items:center;justify-content:center;min-width:0;flex:1;padding:0 7px;text-align:center;font-size:21px;font-weight:800;line-height:1.05;letter-spacing:.1px;text-shadow:0 2px 2px #000}
.hv-contact-link.is-unavailable{cursor:default;opacity:.78}.hv-contact-link:focus-visible,.hv-contact-close:focus-visible{outline:2px solid #ffde7a;outline-offset:3px}
.hv-contact-status{position:absolute;bottom:5px;left:40px;right:40px;z-index:1;margin:0;text-align:center;color:#c2a574;font-family:Arial,sans-serif;font-size:11px}.hv-contact-status:empty{display:none}
.hv-contact-loading{grid-column:1/-1;align-self:center;text-align:center;color:#e5c68d;font-size:18px}
@media(max-height:440px){.hv-contact-popup{height:min(356px,96%);padding:69px 32px 17px}.hv-contact-popup:before{inset:54px 24px 10px}.hv-contact-header{height:50px}.hv-contact-header h2{font-size:22px}.hv-contact-links{gap:9px 11px}.hv-contact-label{font-size:clamp(13px,2.5vw,19px)}.hv-contact-icon{flex-basis:53px;font-size:31px}.hv-contact-close{top:7px;right:8px;width:46px;height:37px;font-size:29px;line-height:29px}}
@media(max-width:600px) and (orientation:portrait){.hv-contact-popup{height:min(620px,94%);padding:69px 19px 24px}.hv-contact-popup:before{inset:54px 12px 12px}.hv-contact-header{width:82%;gap:8px}.hv-contact-header h2{font-size:20px}.hv-contact-spade{font-size:16px}.hv-contact-close{right:10px;top:9px;width:38px;height:36px;font-size:26px;line-height:26px}.hv-contact-links{grid-template-columns:1fr;grid-template-rows:repeat(6,minmax(0,1fr));gap:7px}.hv-contact-icon{flex-basis:51px;font-size:29px}.hv-contact-label{font-size:17px}}

/* Compact gold action dock for the deposit and withdrawal artwork. */
#hv-wallet-actions{
  left:50%;right:auto;bottom:max(5px,env(safe-area-inset-bottom));
  width:min(330px,calc(100vw - 28px));height:106px;
  transform:translateX(-50%);isolation:isolate;
}
#hv-wallet-actions::before{
  content:"";position:absolute;z-index:-1;inset:8px 0 0;
  clip-path:polygon(0 0,25% 0,31% 8%,69% 8%,75% 0,100% 0,100% 80%,93% 100%,7% 100%,0 80%);
  border:1px solid rgba(217,164,79,.8);
  background:linear-gradient(180deg,rgba(8,8,10,.96),rgba(22,15,10,.98) 54%,rgba(5,5,6,.98));
  box-shadow:inset 0 1px rgba(255,229,161,.14),0 -5px 24px rgba(0,0,0,.62);
}
#hv-wallet-actions::after{
  content:"";position:absolute;z-index:-1;left:8%;right:8%;top:9px;height:1px;
  background:linear-gradient(90deg,transparent,#f4ca78 18%,#8b581c 50%,#f4ca78 82%,transparent);
  opacity:.85;
}
.hv-wallet-btn{
  bottom:4px;width:82px;height:91px;
  filter:drop-shadow(0 4px 5px rgba(0,0,0,.9));
  transition:transform .18s ease,filter .18s ease;
}
.hv-wallet-btn[data-open="deposit"]{right:calc(50% + 2px)}
.hv-wallet-btn[data-open="withdraw"]{left:calc(50% + 2px)}
.hv-wallet-btn:hover{transform:translateY(-3px) scale(1.035);filter:drop-shadow(0 6px 8px rgba(0,0,0,.95)) drop-shadow(0 0 7px rgba(244,190,66,.45))}
.hv-wallet-btn:focus-visible{outline:2px solid #ffe59a;outline-offset:2px;border-radius:50%}
.hv-wallet-asset{object-fit:contain}
#hv-game-exit{left:max(12px,env(safe-area-inset-left));right:auto}
@media(max-width:900px){
  #hv-wallet-actions{left:50%;right:auto;bottom:max(3px,env(safe-area-inset-bottom));width:min(268px,calc(100vw - 24px));height:88px;transform:translateX(-50%)}
  #hv-wallet-actions::before{inset:8px 0 0}
  .hv-wallet-btn{bottom:1px;width:69px;height:76px}
  .hv-wallet-btn[data-open="deposit"]{right:calc(50% + 1px)}
  .hv-wallet-btn[data-open="withdraw"]{left:calc(50% + 1px)}
  #hv-game-exit{left:max(8px,env(safe-area-inset-left));right:auto}
}
html.hv-virtual-landscape #hv-wallet-actions{left:50%;right:auto;bottom:0;width:min(330px,calc(100vw - 28px));height:106px;transform:translateX(-50%)}
html.hv-virtual-landscape .hv-wallet-btn{bottom:4px;width:82px;height:91px}
html.hv-virtual-landscape .hv-wallet-btn[data-open="deposit"]{right:calc(50% + 2px)}
html.hv-virtual-landscape .hv-wallet-btn[data-open="withdraw"]{left:calc(50% + 2px)}

/* Premium wallet actions: larger artwork, clear native text, and wider targets. */
#hv-wallet-actions,
html.hv-virtual-landscape #hv-wallet-actions{
  width:min(300px,calc(100vw - 24px));height:118px;
}
#hv-wallet-actions::before{inset:9px 0 0}
.hv-wallet-btn,
html.hv-virtual-landscape .hv-wallet-btn{
  bottom:6px;width:100px;height:110px;
  filter:drop-shadow(0 6px 8px rgba(0,0,0,.95)) drop-shadow(0 0 8px rgba(232,176,61,.25));
  transform-origin:center 66%;
}
.hv-wallet-btn[data-open="deposit"],
html.hv-virtual-landscape .hv-wallet-btn[data-open="deposit"]{right:calc(50% + 8px)}
.hv-wallet-btn[data-open="withdraw"],
html.hv-virtual-landscape .hv-wallet-btn[data-open="withdraw"]{left:calc(50% + 8px)}
.hv-wallet-asset{position:absolute;top:0;left:0;width:100%;height:98px;object-fit:contain}
.hv-wallet-btn-label{
  position:absolute;bottom:0;left:50%;transform:translateX(-50%);
  min-width:58px;padding:2px 7px 3px;box-sizing:border-box;
  border:1px solid #e9b655;border-radius:8px;
  background:linear-gradient(180deg,#5f3a0a 0%,#1a1005 55%,#070504 100%);
  box-shadow:inset 0 1px 0 rgba(255,241,172,.55),0 2px 5px #000;
  color:#fff5c9;font:800 19px/1 "HV368 Display",Arial,sans-serif;
  text-align:center;letter-spacing:.035em;text-shadow:0 1px 2px #000;
  white-space:nowrap;pointer-events:none;
}
.hv-wallet-btn:hover{transform:translateY(-5px) scale(1.06);filter:drop-shadow(0 8px 10px #000) drop-shadow(0 0 12px rgba(255,211,96,.72))}
.hv-wallet-btn:active{transform:translateY(-1px) scale(.96)}
@media(max-width:900px){
  #hv-wallet-actions{width:min(292px,calc(100vw - 20px));height:101px}
  .hv-wallet-btn{bottom:3px;width:84px;height:94px}
  .hv-wallet-btn[data-open="deposit"]{right:calc(50% + 7px)}
  .hv-wallet-btn[data-open="withdraw"]{left:calc(50% + 7px)}
  .hv-wallet-asset{height:82px}
  .hv-wallet-btn-label{min-width:50px;padding:2px 5px;font-size:16px}
}
html.hv-virtual-landscape .hv-wallet-btn{
  width:clamp(78px,13vh,100px);height:clamp(88px,15vh,110px);
}
html.hv-virtual-landscape .hv-wallet-asset{height:calc(100% - 12px)}
html.hv-virtual-landscape .hv-wallet-btn-label{font-size:clamp(14px,2.5vh,19px)}

/* Match the visible footprint of Đơn cược and CSKH in the lobby bar. */
#hv-wallet-actions,
html.hv-virtual-landscape #hv-wallet-actions{width:min(280px,calc(100vw - 24px));height:100px}
.hv-wallet-btn,
html.hv-virtual-landscape .hv-wallet-btn{width:90px;height:92px;bottom:4px}
.hv-wallet-asset,
html.hv-virtual-landscape .hv-wallet-asset{height:82px}
.hv-wallet-btn-label,
html.hv-virtual-landscape .hv-wallet-btn-label{font-size:17px}
@media (max-height:500px) and (orientation:landscape),
       (max-width:500px) and (orientation:portrait){
  #hv-wallet-actions,
  html.hv-virtual-landscape #hv-wallet-actions{width:200px;height:72px}
  .hv-wallet-btn,
  html.hv-virtual-landscape .hv-wallet-btn{width:62px;height:67px;bottom:2px}
  .hv-wallet-asset,
  html.hv-virtual-landscape .hv-wallet-asset{height:58px}
  .hv-wallet-btn-label,
  html.hv-virtual-landscape .hv-wallet-btn-label{min-width:42px;padding:1px 4px 2px;font-size:12px;border-radius:6px}
}

/* Lobby popup prefab skin: original record_bg and btn_close2 sprites. */
#hv-contact-overlay,#hv-wallet-overlay{background:rgba(0,0,0,.58);backdrop-filter:none}
#hv-contact-overlay .hv-contact-popup,#hv-wallet-overlay .hv-modal{
  box-sizing:border-box;border:0;border-radius:11px;
  background:url('/branding/hv368-popup-frame.png') center/100% 100% no-repeat;
  box-shadow:0 12px 30px rgba(0,0,0,.72);color:#f8e9ca;
}
#hv-contact-overlay .hv-contact-popup{width:min(1000px,98%);height:min(470px,96%);padding:78px 34px 33px}
#hv-contact-overlay .hv-contact-popup:before{display:none}
#hv-contact-overlay .hv-contact-header{top:0;left:0;transform:none;justify-content:flex-start;gap:0;width:100%;height:57px;padding:0 82px 0 32px;border:0;border-radius:0;background:none;box-shadow:none;text-shadow:0 2px #100603}
#hv-contact-overlay .hv-contact-header h2{color:#ffc785;font-size:24px;letter-spacing:.2px}
#hv-contact-overlay .hv-contact-spade{display:none}
#hv-contact-overlay .hv-contact-close,#hv-wallet-overlay .hv-close{
  position:absolute;z-index:2;top:4px;right:5px;width:60px;height:40px;padding:0;border:0;border-radius:0;
  background:url('/remote/resources/native/f2/f283ea89-6c11-47e1-afe5-80923188b4d0.80560.png') center/100% 100% no-repeat;
  box-shadow:none;color:transparent;font-size:0;text-shadow:none;cursor:pointer;
}
#hv-contact-overlay .hv-contact-close:hover,#hv-wallet-overlay .hv-close:hover{filter:brightness(1.15)}
#hv-contact-overlay .hv-contact-links{gap:13px 15px}
#hv-contact-overlay .hv-contact-link{border:1px solid #7b5228;border-radius:5px;background:linear-gradient(180deg,#481914,#1a0b0a 46%,#110807);box-shadow:inset 0 1px rgba(255,204,128,.12);color:#fff0d4}
#hv-contact-overlay .hv-contact-link:hover:not(.is-unavailable){border-color:#e9ad54;filter:brightness(1.15)}
#hv-contact-overlay .hv-contact-icon{flex-basis:68px;border-radius:4px 0 0 4px;background:linear-gradient(180deg,#9e2822,#5d1411 58%,#310b0b);box-shadow:inset -1px 0 #160505;color:#fff1d9}
#hv-contact-overlay .hv-contact-icon svg{width:42px;height:42px}
#hv-contact-overlay .hv-contact-label{font-size:23px;letter-spacing:0}
#hv-contact-overlay .hv-contact-link.is-unavailable{opacity:.86}
#hv-contact-overlay .hv-contact-status{bottom:10px;color:#c5a674;font-size:10px}
#hv-contact-overlay.is-support .hv-contact-popup{width:min(390px,92%);height:min(135px,90%);padding:50px 16px 10px;background-color:#130c0a}
#hv-contact-overlay.is-support .hv-contact-header h2{font-size:18px}
#hv-contact-overlay.is-support .hv-contact-close{width:40px;height:29px}
#hv-contact-overlay.is-support .hv-contact-links{grid-template-columns:repeat(2,minmax(0,160px));grid-template-rows:46px;align-content:center;justify-content:center;gap:10px}
#hv-contact-overlay.is-support .hv-contact-link{align-items:center}
#hv-contact-overlay.is-support .hv-contact-icon{align-self:stretch;flex-basis:36px}
#hv-contact-overlay.is-support .hv-contact-icon svg{width:24px;height:24px}
#hv-contact-overlay.is-support .hv-contact-label{font-size:14px;padding:0 4px}
@media(max-width:600px) and (orientation:portrait){
  #hv-contact-overlay.is-support .hv-contact-popup{width:min(280px,92%);height:min(185px,90%);padding:50px 15px 10px}
  #hv-contact-overlay.is-support .hv-contact-links{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,46px);gap:8px}
}
html.hv-virtual-landscape #hv-contact-overlay.is-support .hv-contact-popup{width:min(82%,390px);height:min(48%,135px);padding:50px 16px 10px}
html.hv-virtual-landscape #hv-contact-overlay.is-support .hv-contact-links{grid-template-columns:repeat(2,minmax(0,160px));grid-template-rows:46px;gap:10px}
html.hv-virtual-landscape #hv-contact-overlay.is-support .hv-contact-label{font-size:14px}

#hv-wallet-overlay .hv-modal{display:flex;flex-direction:column;width:min(780px,94vw);height:min(440px,92dvh);min-height:0;max-height:92dvh;overflow:hidden;font-family:Arial,sans-serif}
#hv-wallet-overlay.is-withdraw .hv-modal{width:min(720px,92vw)}
#hv-wallet-overlay .hv-wallet-popup-header{position:relative;flex:0 0 58px;display:flex;align-items:center;min-width:0;box-sizing:border-box;padding:0 76px 0 33px}
#hv-wallet-overlay .hv-modal-title{margin:0;text-align:left;color:#ffc785;font-family:"HV368 Display","Arial Narrow",Arial,sans-serif;font-size:20px;line-height:1;font-weight:800;letter-spacing:.2px;text-shadow:0 2px #120603}
#hv-wallet-overlay .hv-modal-head{flex:0 0 43px;height:43px;margin:0 30px;padding:0;border:0;border-bottom:1px solid #85552b;border-radius:0;background:none;align-items:center}
#hv-wallet-overlay .hv-tabs{gap:7px;align-items:center}
#hv-wallet-overlay .hv-tab{flex:1;min-width:0;min-height:31px;padding:3px 7px;border:1px solid #75512d;border-radius:5px;background:linear-gradient(#271915,#100c0b);box-shadow:inset 0 1px rgba(255,225,157,.1);color:#c8ad85;font-family:"HV368 Display","Arial Narrow",Arial,sans-serif;font-size:13px;font-weight:800;text-shadow:0 1px #000}
#hv-wallet-overlay .hv-tab.active{border-color:#c98b46;background:linear-gradient(#8d3122,#4f1612);box-shadow:inset 0 1px #efaf6d;color:#fff2c3}
#hv-wallet-overlay .hv-content{flex:1;min-height:0;max-height:none;overflow:auto;box-sizing:border-box;margin:4px 30px 25px;padding:8px 17px 14px;border:0;border-radius:0;background:rgba(4,3,3,.45);scrollbar-width:thin;scrollbar-color:#8b6639 #130d0b}
#hv-wallet-overlay .hv-bank-start{max-width:620px;margin:11px auto}
#hv-wallet-overlay .hv-bank-prompt{margin:0 0 14px;color:#ddc394;font-size:14px;font-weight:600}
#hv-wallet-overlay .hv-info-row,#hv-wallet-overlay .hv-form-row{grid-template-columns:125px minmax(0,1fr);gap:12px;min-height:35px;margin:8px 0}
#hv-wallet-overlay .hv-label{color:#e6bf79;font-size:14px;font-weight:700;text-shadow:0 1px #120604}
#hv-wallet-overlay .hv-value{font-size:14px;font-weight:600}
#hv-wallet-overlay .hv-input,#hv-wallet-overlay .hv-select{padding:8px 11px;border:1px solid #926633;border-radius:5px;background:#090806;color:#fff3d7;font-size:14px;font-weight:600;box-shadow:inset 0 1px 3px #000}
#hv-wallet-overlay .hv-input:focus,#hv-wallet-overlay .hv-select:focus{border-color:#e6b86b;box-shadow:0 0 0 2px rgba(232,177,77,.2)}
#hv-wallet-overlay .hv-submit{margin:15px auto 0;padding:8px 23px;border:1px solid #d3944b;border-radius:6px;background:linear-gradient(#9d3a27,#671c17 48%,#3b0d0d);box-shadow:inset 0 1px #ecad70,0 3px 6px #000;color:#ffe9ba;font-family:"HV368 Display","Arial Narrow",Arial,sans-serif;font-size:16px;text-shadow:0 1px #2a0704}
#hv-wallet-overlay .hv-submit:disabled{opacity:.55;box-shadow:none}
#hv-wallet-overlay .hv-status{min-height:17px;margin-top:9px;font-size:12px}
#hv-wallet-overlay .hv-status.error{color:#ef9c86}
#hv-wallet-overlay .hv-note{color:#c2ae91;font-size:12px}
#hv-wallet-overlay .hv-rate-card{padding:10px 13px;border:1px solid #79552f;border-radius:5px;background:#17100b;color:#e7c995;font-size:13px}
#hv-wallet-overlay .hv-qr,#hv-wallet-overlay .hv-qr-empty{width:125px;height:125px;margin:8px auto;border-width:5px;border-radius:3px}
#hv-wallet-overlay .hv-copy{padding:4px 8px;border:1px solid #9c7038;border-radius:4px;background:#211610;color:#efd399;font-size:11px}
#hv-wallet-overlay .hv-mode-switch{gap:6px;margin:2px 0 8px}
#hv-wallet-overlay .hv-mode-switch button{border-radius:5px}
#hv-wallet-overlay .hv-bank-result-grid{gap:14px;grid-template-columns:minmax(0,1fr) 140px}
#hv-wallet-overlay .hv-bank-result .hv-info-row{margin:4px 0;min-height:27px}
#hv-wallet-overlay .hv-bank-success{font-size:13px}
#hv-wallet-overlay .hv-bank-warning{font-size:12px}
@media(max-height:500px){
  #hv-contact-overlay .hv-contact-popup{height:min(440px,96%);padding:70px 28px 26px}
  #hv-contact-overlay .hv-contact-header{height:51px;padding-left:27px}
  #hv-contact-overlay .hv-contact-header h2{font-size:21px}
  #hv-contact-overlay .hv-contact-links{gap:10px 11px}
  #hv-contact-overlay .hv-contact-label{font-size:20px}
  #hv-contact-overlay .hv-contact-icon{flex-basis:58px}
  #hv-contact-overlay .hv-contact-icon svg{width:37px;height:37px}
  #hv-wallet-overlay .hv-modal{height:calc(100% - 14px);max-height:calc(100% - 14px)}
  #hv-wallet-overlay .hv-wallet-popup-header{flex-basis:46px;padding-left:27px}
  #hv-wallet-overlay .hv-modal-title{font-size:17px}
  #hv-wallet-overlay .hv-modal-head{flex-basis:35px;height:35px;margin:0 26px}
  #hv-wallet-overlay .hv-tab{min-height:27px;font-size:11px}
  #hv-wallet-overlay .hv-content{margin:2px 26px 18px;padding:5px 10px 10px}
  #hv-wallet-overlay .hv-bank-start{margin:5px auto}
  #hv-wallet-overlay .hv-bank-prompt{margin-bottom:7px;font-size:11px}
  #hv-wallet-overlay .hv-info-row,#hv-wallet-overlay .hv-form-row{grid-template-columns:95px minmax(0,1fr);gap:7px;min-height:27px;margin:4px 0}
  #hv-wallet-overlay .hv-label,#hv-wallet-overlay .hv-value,#hv-wallet-overlay .hv-input,#hv-wallet-overlay .hv-select{font-size:12px}
  #hv-wallet-overlay .hv-input,#hv-wallet-overlay .hv-select{padding:5px 8px}
  #hv-wallet-overlay .hv-submit{margin-top:8px;padding:6px 16px;font-size:13px}
  #hv-wallet-overlay .hv-note{font-size:10px}
  #hv-wallet-overlay .hv-mode-switch{margin-bottom:4px}
}
@media(max-width:600px) and (orientation:portrait){
  #hv-contact-overlay .hv-contact-popup{height:min(690px,96%);padding:70px 18px 35px}
  #hv-contact-overlay .hv-contact-header{padding-left:18px}
  #hv-contact-overlay .hv-contact-header h2{font-size:19px}
  #hv-contact-overlay .hv-contact-links{grid-template-columns:1fr;grid-template-rows:repeat(6,minmax(0,1fr))}
  #hv-contact-overlay .hv-contact-icon{flex-basis:58px}
  #hv-contact-overlay .hv-contact-icon svg{width:38px;height:38px}
  #hv-contact-overlay .hv-contact-label{font-size:20px}
  #hv-wallet-overlay .hv-modal,#hv-wallet-overlay.is-withdraw .hv-modal{width:96vw;height:min(650px,94dvh);max-height:94dvh}
  #hv-wallet-overlay .hv-wallet-popup-header{flex-basis:49px;padding-left:18px}
  #hv-wallet-overlay .hv-modal-title{font-size:17px}
  #hv-wallet-overlay .hv-modal-head{margin:0 18px;flex-basis:69px;height:69px}
  #hv-wallet-overlay .hv-tabs{flex-wrap:wrap;gap:4px}
  #hv-wallet-overlay .hv-tab{flex:1 1 28%;font-size:10px}
  #hv-wallet-overlay .hv-content{margin:3px 18px 20px;padding:8px}
  #hv-wallet-overlay .hv-bank-result-grid{grid-template-columns:1fr}
}
#hv-wallet-overlay:not(.is-withdraw) .hv-modal{height:min(280px,92dvh)}
#hv-wallet-overlay.is-withdraw .hv-modal{height:min(365px,92dvh)}
#hv-wallet-overlay[data-pane="crypto"] .hv-modal{height:min(440px,92dvh)}
#hv-wallet-overlay[data-pane="bank-result"] .hv-modal{height:min(410px,92dvh)}
#hv-wallet-overlay.is-withdraw .hv-modal-head{display:none}
#hv-wallet-overlay.is-withdraw .hv-content{margin-top:6px}
@media(max-height:500px){
  #hv-wallet-overlay:not(.is-withdraw) .hv-modal{height:min(280px,calc(100% - 14px))}
  #hv-wallet-overlay.is-withdraw .hv-modal{height:min(365px,calc(100% - 14px))}
  #hv-wallet-overlay[data-pane="crypto"] .hv-modal,#hv-wallet-overlay[data-pane="bank-result"] .hv-modal{height:calc(100% - 14px)}
}
@media(max-width:600px) and (orientation:portrait){
  #hv-wallet-overlay:not(.is-withdraw) .hv-modal{height:min(380px,94dvh)}
  #hv-wallet-overlay.is-withdraw .hv-modal{height:min(475px,94dvh)}
  #hv-wallet-overlay[data-pane="crypto"] .hv-modal,#hv-wallet-overlay[data-pane="bank-result"] .hv-modal{height:min(650px,94dvh)}
}

/* One large payment prefab for every nạp/rút tab. */
#hv-wallet-overlay .hv-modal,#hv-wallet-overlay.is-withdraw .hv-modal,
#hv-wallet-overlay:not(.is-withdraw) .hv-modal,#hv-wallet-overlay[data-pane="crypto"] .hv-modal,
#hv-wallet-overlay[data-pane="bank-result"] .hv-modal{
  width:min(1000px,calc(100% - 20px));height:min(680px,calc(100% - 16px));
  min-height:0;max-height:calc(100% - 16px);
  background:linear-gradient(180deg,rgba(99,45,14,.48),rgba(40,15,5,.42)),url('/branding/hv368-popup-frame.png') center/100% 100% no-repeat;
}
#hv-wallet-overlay .hv-wallet-popup-header{flex:0 0 78px;justify-content:center;padding:0 70px;overflow:visible}
#hv-wallet-overlay .hv-modal-title{
  display:flex;align-items:center;justify-content:center;gap:22px;box-sizing:border-box;
  width:min(500px,100%);height:72px;margin:-7px 0 0;padding:0 22px 7px;
  border:2px solid #bd883c;border-top:0;border-radius:0 0 34px 34px;
  background:linear-gradient(180deg,#6b3212,#c78930 25%,#75400e 62%,#391a09 100%);
  box-shadow:inset 0 3px #f7d18a88,0 5px 10px #0009;
  color:#fff0bd;font-size:37px;text-align:center;text-shadow:0 3px 3px #472006;
}
#hv-wallet-overlay .hv-modal-title:before,#hv-wallet-overlay .hv-modal-title:after{content:'♠';color:#f4c370;font-family:Georgia,serif;font-size:.72em}
#hv-wallet-overlay .hv-close{top:8px;right:8px;width:69px;height:47px}
#hv-wallet-overlay .hv-modal-head,#hv-wallet-overlay.is-withdraw .hv-modal-head{
  display:flex;flex:0 0 67px;align-items:center;justify-content:center;box-sizing:border-box;
  height:67px;margin:0 34px;padding:0;border:0;background:none;
}
#hv-wallet-overlay .hv-tabs{justify-content:center;gap:10px;width:min(850px,100%)}
#hv-wallet-overlay .hv-tab{
  flex:1 1 0;min-width:0;min-height:49px;border:2px solid #8e653e;border-radius:12px;
  background:linear-gradient(180deg,#4c3d2d,#0f0d0c 54%,#1c1510);
  box-shadow:inset 0 2px #f6d7a842,0 3px 5px #0009;
  color:#e1d1ad;font-size:19px;
}
#hv-wallet-overlay .hv-tab.active{
  border-color:#ffe29a;background:linear-gradient(180deg,#e3bc69,#a76c24 43%,#51320d 100%);
  box-shadow:inset 0 2px #fff3c1,0 3px 8px #000a;
  color:#fff9db;text-shadow:0 2px #4a270b;
}
#hv-wallet-overlay .hv-content,#hv-wallet-overlay.is-withdraw .hv-content{
  position:relative;flex:1;min-height:0;overflow:auto;box-sizing:border-box;
  margin:0 25px 21px;padding:20px 28px 24px;
  border:2px solid #cda15d;border-radius:24px;
  background:linear-gradient(180deg,rgba(21,9,5,.95),rgba(8,5,4,.96));
}
#hv-wallet-overlay[data-pane="bank"] .hv-content,#hv-wallet-overlay[data-pane="quick"] .hv-content,
#hv-wallet-overlay[data-pane="transfer"] .hv-content,#hv-wallet-overlay[data-pane="gift"] .hv-content{
  display:flex;align-items:center;justify-content:center;
}
#hv-wallet-overlay .hv-bank-start{width:min(650px,100%);max-width:none;margin:auto}
#hv-wallet-overlay .hv-bank-prompt{margin-bottom:26px;text-align:center;font-size:20px;line-height:1.4}
#hv-wallet-overlay .hv-bank-start .hv-form-row{grid-template-columns:145px minmax(0,1fr);margin:16px 0}
#hv-wallet-overlay .hv-bank-start .hv-label{font-size:20px}
#hv-wallet-overlay .hv-bank-start .hv-input{min-height:50px;font-size:20px}
#hv-wallet-overlay .hv-bank-start .hv-submit{min-width:190px;min-height:49px;font-size:20px}
#hv-wallet-overlay .hv-withdraw-form{width:min(670px,100%);margin:28px auto 0}
#hv-wallet-overlay .hv-withdraw-form .hv-form-row{grid-template-columns:160px minmax(0,1fr);min-height:51px;margin:12px 0}
#hv-wallet-overlay .hv-withdraw-form .hv-label{font-size:20px}
#hv-wallet-overlay .hv-withdraw-form .hv-input{min-height:50px;font-size:19px}
#hv-wallet-overlay .hv-withdraw-form .hv-submit{min-width:225px;min-height:52px;font-size:20px}
#hv-wallet-overlay .hv-withdraw-form .hv-note{margin-top:20px;text-align:center;font-size:15px;line-height:1.4}
#hv-wallet-overlay .hv-transfer-form{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:7px;box-sizing:border-box;width:min(560px,100%);min-height:100%;margin:0 auto;padding:0 0 12px}
#hv-wallet-overlay .hv-transfer-fee{margin:0 0 4px;color:#f5e6d7;font-size:21px;font-weight:700;text-align:center}
#hv-wallet-overlay .hv-transfer-fee strong{color:#eb5543}
#hv-wallet-overlay .hv-transfer-balance{margin:0 0 2px;color:#f5dfad;font-size:27px}
#hv-wallet-overlay .hv-transfer-balance b{margin-left:25px;color:#fff1d4;font-weight:700}
#hv-wallet-overlay .hv-transfer-input{box-sizing:border-box;width:100%;min-height:56px;padding:10px 17px;border:1px solid #d7a25b;border-radius:10px;background:linear-gradient(180deg,#32180b,#6b3616 60%,#8c4a1c);box-shadow:inset 0 2px 5px #000a;color:#fff0d2;font-size:24px;font-weight:700;text-align:center;outline:0}
#hv-wallet-overlay .hv-transfer-input::placeholder{color:#c7b6a5;opacity:1}
#hv-wallet-overlay .hv-transfer-input:focus{border-color:#ffdf89;box-shadow:0 0 0 3px #e8a75744,inset 0 2px 5px #000a}
#hv-wallet-overlay .hv-transfer-recipient{min-height:16px;margin:-4px 0 0;color:#dec390;font-size:13px;text-align:center}
#hv-wallet-overlay .hv-transfer-recipient:empty{display:none}
#hv-wallet-overlay .hv-transfer-amount{margin:2px 0 0;color:#f5dfad;font-size:23px}
#hv-wallet-overlay .hv-transfer-amount b{margin-left:12px;color:#fff0cf}
#hv-wallet-overlay .hv-transfer-total{margin:0;color:#e5bc7b;font-size:15px;text-align:center}
#hv-wallet-overlay .hv-transfer-submit{align-self:center;min-width:230px;min-height:61px;margin:2px auto 0;padding:8px 25px;border:3px solid #d3a85c;border-radius:17px;background:linear-gradient(180deg,#f2d59b,#8e461a 23%,#3b1608 63%,#ca9146);box-shadow:inset 0 3px #fff0bf,0 4px 7px #000b;color:#fff3c5;font-family:"HV368 Display",Arial,sans-serif;font-size:33px;font-weight:800;text-shadow:0 2px 3px #3a1504;cursor:pointer}
#hv-wallet-overlay .hv-transfer-submit:disabled{opacity:.6;cursor:wait}
#hv-wallet-overlay .hv-transfer-form .hv-status{min-height:23px;margin:0;color:#f3d69e;font-size:13px;text-align:center}
#hv-wallet-overlay .hv-transfer-form .hv-status:empty{display:none}
#hv-wallet-overlay .hv-transfer-history{position:absolute;left:-155px;bottom:3px;display:flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid #d6a767;border-radius:18px;background:linear-gradient(#a72c1b,#5d0e0b);color:#fff0cf;font-size:22px;cursor:pointer}
#hv-wallet-overlay .hv-transfer-history span{font:800 12px "HV368 Display",Arial,sans-serif}
#hv-wallet-overlay .hv-transfer-history-view{max-width:720px;margin:0 auto;color:#f7e5c8}
#hv-wallet-overlay .hv-transfer-history-view h3{margin:0 0 14px;text-align:center;color:#ffdb92;font-size:22px}
#hv-wallet-overlay #hv-transfer-back{float:left;border:1px solid #c59b60;border-radius:7px;background:#4b2814;color:#ffe0a4;padding:7px 12px;cursor:pointer}
#hv-wallet-overlay .hv-transfer-history-row{display:flex;justify-content:space-between;gap:15px;padding:12px 5px;border-bottom:1px solid #78542f}
#hv-wallet-overlay .hv-transfer-history-row div{display:flex;flex-direction:column;gap:4px}
#hv-wallet-overlay .hv-transfer-history-row b{color:#f1c676;font-size:13px}
#hv-wallet-overlay .hv-transfer-history-row span,#hv-wallet-overlay .hv-transfer-history-row strong{font-size:16px}
#hv-wallet-overlay .hv-transfer-history-row small{display:block;color:#b8a188;font-size:11px}
#hv-wallet-overlay .hv-transfer-loading,#hv-wallet-overlay .hv-transfer-empty{padding:35px;text-align:center;color:#dac5a0}
@media(max-height:540px){
  #hv-wallet-overlay .hv-wallet-popup-header{flex-basis:45px}
  #hv-wallet-overlay .hv-modal-title{height:44px;width:min(360px,100%);font-size:24px}
  #hv-wallet-overlay .hv-modal-head,#hv-wallet-overlay.is-withdraw .hv-modal-head{flex-basis:39px;height:39px}
  #hv-wallet-overlay .hv-tab{min-height:32px;font-size:12px}
  #hv-wallet-overlay .hv-content,#hv-wallet-overlay.is-withdraw .hv-content{margin:0 11px 8px;padding:6px 12px;border-radius:14px}
  #hv-wallet-overlay .hv-transfer-form{position:static;gap:2px;padding-bottom:0}
  #hv-wallet-overlay .hv-transfer-fee{margin:0;font-size:15px}
  #hv-wallet-overlay .hv-transfer-balance{font-size:18px}
  #hv-wallet-overlay .hv-transfer-input{min-height:34px;padding:4px 9px;font-size:16px}
  #hv-wallet-overlay .hv-transfer-amount{font-size:16px}
  #hv-wallet-overlay .hv-transfer-total{font-size:11px}
  #hv-wallet-overlay .hv-transfer-submit{min-width:155px;min-height:38px;font-size:20px}
  #hv-wallet-overlay .hv-transfer-history{left:8px;bottom:5px;font-size:15px}
  #hv-wallet-overlay .hv-transfer-history span{font-size:9px}
  #hv-wallet-overlay .hv-bank-start .hv-form-row,#hv-wallet-overlay .hv-withdraw-form .hv-form-row{margin:7px 0;min-height:33px}
  #hv-wallet-overlay .hv-bank-start .hv-input,#hv-wallet-overlay .hv-withdraw-form .hv-input{min-height:33px;font-size:14px}
  #hv-wallet-overlay .hv-bank-prompt{margin-bottom:8px;font-size:13px}
  #hv-wallet-overlay .hv-bank-start .hv-label,#hv-wallet-overlay .hv-withdraw-form .hv-label{font-size:14px}
  #hv-wallet-overlay .hv-withdraw-form{margin:2px auto 0}
  #hv-wallet-overlay .hv-withdraw-form .hv-note{margin-top:6px;font-size:11px}
  #hv-wallet-overlay .hv-bank-start .hv-submit,#hv-wallet-overlay .hv-withdraw-form .hv-submit{min-height:36px;font-size:14px}
}
@media(max-width:600px) and (orientation:portrait){
  #hv-wallet-overlay .hv-wallet-popup-header{flex-basis:67px;padding:0 58px}
  #hv-wallet-overlay .hv-modal-title{width:100%;height:62px;gap:7px;padding:0 8px 5px;font-size:25px}
  #hv-wallet-overlay .hv-close{width:48px;height:36px;right:3px}
  #hv-wallet-overlay .hv-modal-head,#hv-wallet-overlay.is-withdraw .hv-modal-head{flex-basis:58px;height:58px;margin:0 12px}
  #hv-wallet-overlay .hv-tabs{gap:5px;flex-wrap:nowrap}
  #hv-wallet-overlay .hv-tab{min-height:42px;padding:3px;font-size:11px}
  #hv-wallet-overlay .hv-content,#hv-wallet-overlay.is-withdraw .hv-content{margin:0 10px 14px;padding:13px 10px;border-radius:14px}
  #hv-wallet-overlay .hv-transfer-form{gap:8px}
  #hv-wallet-overlay .hv-transfer-fee{font-size:15px}
  #hv-wallet-overlay .hv-transfer-balance{font-size:17px}
  #hv-wallet-overlay .hv-transfer-input{min-height:44px;font-size:17px}
  #hv-wallet-overlay .hv-transfer-amount{font-size:16px}
  #hv-wallet-overlay .hv-transfer-submit{min-width:170px;min-height:50px;font-size:24px}
  #hv-wallet-overlay .hv-transfer-history{position:static;align-self:flex-start;margin-top:4px}
  #hv-wallet-overlay .hv-bank-start .hv-form-row,#hv-wallet-overlay .hv-withdraw-form .hv-form-row{grid-template-columns:100px minmax(0,1fr)}
}

/* Match the game's dark gold round controls without covering its artwork. */
#hv-game-exit.is-visible{
  top:max(32px,env(safe-area-inset-top));
  left:max(22px,env(safe-area-inset-left));
  right:auto;
  bottom:auto;
  width:48px;
  height:48px;
  padding:0;
  border:2px solid transparent;
  border-radius:50%;
  clip-path:none;
  background:linear-gradient(150deg,#332719 0%,#130f0b 48%,#050504 100%) padding-box,linear-gradient(145deg,#fff0ad 0%,#c8923e 30%,#68401a 54%,#f0ca69 78%,#7d4b1b 100%) border-box;
  box-shadow:inset 0 2px 3px #fff4c130,inset 0 -5px 7px #0009,0 3px 8px #000b;
}
#hv-game-exit.is-visible::before{
  content:"";
  position:absolute;
  inset:4px;
  border:1px solid #a87735;
  border-radius:50%;
  pointer-events:none;
}
#hv-game-exit.is-visible .hv-game-exit-icon{
  width:25px;
  height:25px;
  stroke:#f9dc83;
  stroke-width:2.5;
  filter:drop-shadow(0 1px 1px #000);
}
.hv-game-exit-icon-turn{display:none}
.hv-game-exit-icon-fish{display:none}
#hv-game-exit.is-visible.fish-exit,
html.hv-virtual-landscape #hv-game-exit.is-visible.fish-exit{
  top:max(16px,env(safe-area-inset-top));
  left:max(16px,env(safe-area-inset-left));
  width:66px;
  height:66px;
  border:3px solid #84d7fb;
  border-radius:50%;
  background:radial-gradient(circle at 40% 25%,#e6faff 0,#57c4ef 25%,#0876b7 57%,#00396f 82%,#001b3e 100%);
  box-shadow:inset 0 2px 6px #fff, inset 0 -8px 12px #003659,0 3px 9px #0009,0 0 8px #9ee7ff;
}
#hv-game-exit.fish-exit::before{inset:5px;border:1px solid #b9f4ff;box-shadow:0 0 5px #d4faff}
#hv-game-exit.fish-exit .hv-game-exit-icon{display:none}
#hv-game-exit.fish-exit .hv-game-exit-icon-fish{
  display:block;width:38px;height:38px;fill:none;stroke:#effaff;stroke-width:5;
  stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 2px #00305b);
}
#hv-game-exit.is-visible.lh-hall-return,
html.hv-virtual-landscape #hv-game-exit.is-visible.lh-hall-return{
  top:70px;
  left:15px;
  width:52px;
  height:52px;
  border-width:3px;
  border-radius:10px;
  clip-path:polygon(18% 0,82% 0,100% 18%,100% 82%,82% 100%,18% 100%,0 82%,0 18%);
  background:linear-gradient(145deg,#3f2718 0%,#160e0a 46%,#080706 100%) padding-box,
    linear-gradient(140deg,#fce7a3 0%,#8b5b27 35%,#f4c65e 70%,#6e3d17 100%) border-box;
}
#hv-game-exit.lh-hall-return::before{inset:3px;border-radius:7px}
#hv-game-exit.lh-hall-return .hv-game-exit-icon{display:none}
#hv-game-exit.lh-hall-return .hv-game-exit-icon-turn{
  display:block;
  width:31px;
  height:31px;
  fill:none;
  stroke:#fff0b7;
  stroke-width:5;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 2px 1px #000);
}
/* Cover Bầu Cua's menu chevron with a clear, tappable return control. */
#hv-game-exit.is-visible.use-native-frame{
  top:43px;
  left:36px;
  width:50px;
  height:50px;
  padding:0;
}
#hv-game-exit.use-native-frame .hv-game-exit-icon{visibility:visible;width:28px;height:28px}
html.hv-virtual-landscape #hv-game-exit.is-visible{
  top:max(30px,env(safe-area-inset-right));
  left:max(18px,env(safe-area-inset-top));
  width:48px;
  height:48px;
}
html.hv-virtual-landscape #hv-game-exit.is-visible.use-native-frame{
  top:43px;
  left:36px;
  width:50px;
  height:50px;
}
/* The Bầu Cua prefab supplies the artwork; this only enlarges its tap area. */
#hv-game-exit.is-visible.use-native-hit,
html.hv-virtual-landscape #hv-game-exit.is-visible.use-native-hit{
  top:34px;
  left:3px;
  width:68px;
  height:60px;
  border:0;
  background:transparent;
  box-shadow:none;
  opacity:0;
  pointer-events:auto;
}
#hv-game-exit.is-visible.use-native-hit::before{display:none}

#hv-wallet-overlay .hv-nativepay-result{width:min(840px,100%);margin:0 auto}
#hv-wallet-overlay .hv-nativepay-result .hv-bank-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
#hv-wallet-overlay .hv-nativepay-panel{box-sizing:border-box;min-width:0;min-height:205px;margin:0;padding:14px 17px;border:1px solid #79542e;border-radius:10px;background:linear-gradient(180deg,#21140f,#100b09);box-shadow:inset 0 1px #b88b5340}
#hv-wallet-overlay .hv-nativepay-panel h3{margin:0 0 11px;padding-bottom:9px;border-bottom:1px solid #68452a;color:#f1ce91;font-family:"HV368 Display","Arial Narrow",Arial,sans-serif;font-size:17px;font-weight:800;text-align:center}
#hv-wallet-overlay .hv-nativepay-result .hv-info-row{grid-template-columns:100px minmax(0,1fr);gap:8px;min-height:27px;margin:7px 0}
#hv-wallet-overlay .hv-nativepay-result .hv-value{min-width:0;flex-wrap:wrap;gap:5px 9px}
#hv-wallet-overlay .hv-nativepay-result .hv-bank-amount{color:#ffdf8c}
#hv-wallet-overlay .hv-nativepay-result .hv-bank-qr-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center}
#hv-wallet-overlay .hv-nativepay-result .hv-bank-qr-wrap h3{align-self:stretch}
#hv-wallet-overlay .hv-nativepay-result .hv-qr,#hv-wallet-overlay .hv-nativepay-result .hv-qr-empty{box-sizing:border-box;width:150px;height:150px;margin:auto;border-width:5px}
#hv-wallet-overlay .hv-nativepay-empty{margin:14px 0 0;color:#cbb797;font-size:13px;line-height:1.4}
#hv-wallet-overlay .hv-nativepay-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:14px}
#hv-wallet-overlay .hv-nativepay-actions .hv-submit{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:40px;margin:0;padding:7px 16px;font-size:14px;text-align:center;text-decoration:none}
@media(max-width:600px) and (orientation:portrait){
  #hv-wallet-overlay .hv-nativepay-result .hv-bank-result-grid{grid-template-columns:minmax(0,1fr);gap:9px}
  #hv-wallet-overlay .hv-nativepay-panel{min-height:0;padding:10px 12px}
  #hv-wallet-overlay .hv-nativepay-result .hv-bank-qr-wrap{min-height:145px}
  #hv-wallet-overlay .hv-nativepay-result .hv-qr,#hv-wallet-overlay .hv-nativepay-result .hv-qr-empty{width:120px;height:120px}
}
@media(max-height:500px){
  #hv-wallet-overlay .hv-nativepay-panel{min-height:0;padding:8px 11px}
  #hv-wallet-overlay .hv-nativepay-panel h3{margin-bottom:5px;padding-bottom:5px;font-size:13px}
  #hv-wallet-overlay .hv-nativepay-result .hv-info-row{grid-template-columns:80px minmax(0,1fr);min-height:22px;margin:3px 0}
  #hv-wallet-overlay .hv-nativepay-result .hv-qr,#hv-wallet-overlay .hv-nativepay-result .hv-qr-empty{width:95px;height:95px}
  #hv-wallet-overlay .hv-nativepay-actions{margin-top:7px}
  #hv-wallet-overlay .hv-nativepay-actions .hv-submit{min-height:30px;padding:4px 11px;font-size:11px}
}
html.hv-virtual-landscape #hv-wallet-overlay .hv-nativepay-result .hv-bank-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html.hv-virtual-landscape #hv-wallet-overlay .hv-nativepay-panel{min-height:0;padding:8px 11px}
html.hv-virtual-landscape #hv-wallet-overlay .hv-nativepay-panel h3{margin-bottom:5px;padding-bottom:5px;font-size:13px}
html.hv-virtual-landscape #hv-wallet-overlay .hv-nativepay-result .hv-qr,html.hv-virtual-landscape #hv-wallet-overlay .hv-nativepay-result .hv-qr-empty{width:95px;height:95px}
html.hv-virtual-landscape #hv-wallet-overlay .hv-nativepay-actions{margin-top:7px}
html.hv-virtual-landscape #hv-wallet-overlay .hv-nativepay-actions .hv-submit{min-height:30px;padding:4px 11px;font-size:11px}
#hv-wallet-overlay .hv-withdraw-form select.hv-input{appearance:none;cursor:pointer;color:#f8dfa6;background:linear-gradient(#21170f,#100c09)}

/* Match the public landing page when the in-game auth fallback is shown. */
#hv-auth-shell{background:#050403 url('branding/landing-ui/bg.jpg') center top/cover no-repeat fixed}
#hv-auth-shell .hv-auth-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);max-width:960px;width:100%;margin-inline:auto}
#hv-auth-shell .hv-auth-promo{background:linear-gradient(0deg,#090603d9,transparent 58%),url('branding/hv368-entry-photo-20261129.jpg') center/cover}
#hv-auth-shell .hv-auth-card{border-color:#e2ad13;background:linear-gradient(#2a1a0b,#080807 42%,#050505)}
@media(max-width:1000px){#hv-auth-shell .hv-auth-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:760px}}
@media(max-width:600px){#hv-auth-shell .hv-auth-grid{display:flex;flex-direction:column}}
