/* TLLOTTO approved preview: shared appearance across all platform screens. */
:root {
  --blue:#337df3; --blue-dark:#2467d7; --blue-light:#eaf2ff;
  --ink:#1c2c48; --muted:#7c8ea8; --line:#e0e8f4; --bg:#f5f8fe;
  --white:#fff; --section-gap:16px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color-scheme:light;
}
body { background:var(--bg); color:var(--ink); }
h1,h2,h3,.brand,.balance strong,.record-summary strong,.lottery-cover-amount { font-family:inherit; }
.brand { color:var(--blue); font-weight:900; letter-spacing:-1px; }
.brand-symbol { width:30px;height:30px;transform:rotate(-7deg);border-radius:9px;font-size:21px;font-weight:800; }
.brand-name { font-weight:900; }
.sidebar { border-color:var(--line); padding-top:26px; }
.brand-sub { letter-spacing:2px;font-size:9px; }
.nav-item { border-radius:11px; }
.nav-item.active { box-shadow:none;background:var(--blue-light); }
.support-card { border:1px solid var(--line);background:var(--bg);border-radius:14px; }
.topbar { background:white;border-color:var(--line);box-shadow:none; }
.content { max-width:1160px;margin-inline:auto; }
#view { max-width:1000px;margin-inline:auto; }
.top-actions .icon-button { width:32px;height:32px;border-radius:50%;background:#f3f6fc;border:1px solid var(--line);color:#627a99; }
.top-actions .icon-button .icon { width:19px;height:19px; }
.top-actions .unread { width:5px;height:5px;right:6px;top:5px; }
.primary,.secondary,.input,.payment,.amount-picks button { border-radius:11px;box-shadow:none; }
.primary { background:var(--blue); }
.primary:hover { background:var(--blue-dark); }
.secondary { background:#f5f8fd;border:1px solid var(--line);color:#54708f; }
.panel,.wallet,.offer-card,.transaction-card,.record-summary,.telegram-account { border:1px solid var(--line);border-radius:14px;background:white;box-shadow:none; }
.panel { padding:22px; }
.panel-title,.form-heading h2 { font-size:17px; }
.subtext,.note { line-height:1.7; }
.note { border-radius:11px;background:#edf4ff; }
.input { border-color:var(--line);background:#fbfcff; }
.input:focus { border-color:#8cb5f7;box-shadow:0 0 0 3px #337df312; }
.amount-field { border-color:var(--line);border-radius:12px;background:#fbfcff; }
.payment { border-color:var(--line);background:white; }
.payment.active,.amount-picks button.active { background:#edf4ff;border-color:#80adf6; }
.summary-row { border-color:#edf1f7; }
.steps { font-size:12px; }
.steps b { background:#edf3fc;color:#7f93ad; }
.steps .active b { background:var(--blue);color:white; }
.home-layout .announcement,.game-library .announcement { border-radius:0;margin:0 0 12px;background:#e7f0ff; }
.home-layout .quick-grid { border:1px solid var(--line);border-radius:14px;background:white; }
.home-layout .quick-item { border:0;background:transparent;box-shadow:none; }
.home-layout .quick-item:hover { background:#f1f6ff;border-radius:9px; }
.home-layout .quick-icon .icon { width:25px;height:25px; }
.home-layout .category-row,.game-library .category-row { flex-wrap:nowrap; }
.category { font-weight:500; }
.continue-game { box-shadow:none; }
.home-layout .lobby-top { gap:10px; }
#home-carousel { overflow:visible;margin-bottom:21px;border-radius:15px; }
#home-carousel .hero-viewport { height:100%;border-radius:15px;overflow:hidden; }
#home-carousel .hero-slide { border-radius:15px;overflow:hidden; }
#home-carousel .hero-dots { bottom:-21px;left:0;right:0;transform:none;height:21px;justify-content:center;gap:1px; }
#home-carousel .hero-dots button { width:18px;height:21px;padding:0; }
#home-carousel .hero-dots button:after { width:5px;height:5px;background:#c6d3e7;box-shadow:none; }
#home-carousel .hero-dots button.active { width:24px; }
#home-carousel .hero-dots button.active:after { width:20px;background:var(--blue); }
#home-carousel .ekor-kicker { font-size:10px;letter-spacing:1px; }
#home-carousel .ekor-kicker .icon,#home-carousel .ekor-kicker > span { display:none; }
#home-carousel .ekor-promo-content { text-align:right;align-items:flex-end;padding-right:20px; }
#home-carousel .ekor-promo h2 { font-weight:800; }
#home-carousel .ekor-promo .primary { background:white;color:#6011ad;border-radius:20px; }
.section-head h2,.panel-title { font-weight:700; }
.featured-tile { border:0;box-shadow:none; }
.featured-tile.lotto { background:linear-gradient(135deg,#1b62c7,#52b9ff); }
.game-play { background:#edf4ff;color:var(--blue); }
.library-game-row .game-play { background:var(--blue);color:white; }
.library-game-row .game-play .icon { fill:currentColor; }
.prize-table-card { border:1px solid var(--line);box-shadow:none;border-radius:11px; }
.prize-table { border-spacing:0; }
.prize-table th { border-radius:0; }
.prize-table tbody tr:nth-child(odd) { background:#f3f6fa; }
.prize-table tbody td,.prize-table tbody th { font-weight:500; }
.odds-help { border-radius:11px;font-size:11px; }
.profile-top { background:transparent;border:0;box-shadow:none; }
.profile-top .avatar,.top-avatar { background:#e5efff;color:#3c7ce4;box-shadow:none; }
.profile-top .avatar { border-radius:50%;font-size:24px; }
.profile-top h2 { font-weight:750; }
.profile-top .tag { font-size:10px; }
.security-row { gap:8px; }
.security-item { border:0;background:transparent; }
.security-item .icon { width:28px;height:28px; }
.profile-links button { border:0;background:transparent;color:#516987;border-radius:10px; }
.profile-links button:hover { background:#f1f6ff; }
.profile-links button > .icon { color:var(--blue);width:27px;height:27px; }
.telegram-account { background:white; }
.tag { background:#edf4ff;color:#4b7bbb;border-radius:5px; }
.offer-cover { background:linear-gradient(125deg,#2267d4,#6cb8ff);border-radius:0;padding:24px; }
.offer-card:nth-child(2) .offer-cover { background:linear-gradient(125deg,#4948b0,#a78cfa); }
.offer-card:nth-child(3) .offer-cover { background:linear-gradient(125deg,#187e9c,#6bced2); }
.offer-cover h3 { font-size:24px; }
.offer-body { padding:20px; }
.offer-body .primary { width:100%; }
.record-tabs { border:1px solid var(--line);background:white;border-radius:12px;padding:5px;gap:5px; }
.record-tab { border:0;border-radius:8px;color:#637a98; }
.record-tab.active { background:var(--blue);color:white;box-shadow:none; }
.record-summary { background:#edf4ff;border-color:#dce8fa; }
.record-summary strong { color:var(--ink); }
.transaction-card { border-color:var(--line); }
.record-calendar { border-radius:11px;border-color:var(--line);background:white;color:var(--blue); }
.records-more { border-radius:11px;border-color:var(--line);background:white;color:#6d83a1; }
#dialog { border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 80px #18355b33;color:var(--ink); }
#dialog::backdrop { background:#152c504d;backdrop-filter:blur(4px); }
.dialog-head { border-color:var(--line); }
.dialog-head h2 { font-size:19px; }
#toast { background:#1e3553ef;border-radius:11px; }
@media(min-width:701px) { .home-layout .wallet { padding:16px 20px; } }
@media(max-width:700px) {
  .content { padding:0 12px 28px; }
  .topbar { min-height:72px;padding:20px 16px 16px; }
  .mobile-brand .brand { gap:7px;font-size:25px; }
  .mobile-brand .brand-name { font-size:25px; }
  .mobile-brand .brand-symbol { width:30px;height:30px; }
  #view:not(:has(.home-layout)):not(:has(.game-library)) { padding-top:16px; }
  .home-layout .announcement,.game-library .announcement { margin-inline:-12px;width:calc(100% + 24px);padding:9px 16px; }
  .announcement .text-button { display:none; }
  #home-carousel { --home-banner-height:clamp(130px,39vw,170px); }
  #home-carousel .ekor-promo-content { padding:14px 16px 14px 0; }
  #home-carousel .ekor-promo h2 { font-size:27px;margin:6px 0 10px; }
  .home-layout .wallet { padding:13px 10px; }
  .home-layout .balance strong { font-size:25px; }
  .home-layout .quick-grid { padding:16px 3px;gap:14px 3px; }
  .home-layout .quick-item { padding:0;gap:7px;font-size:10px; }
  .home-layout .quick-icon { height:25px; }
  .featured-tile { min-height:164px; }
  .tile-content strong { font-size:20px; }
  .panel { padding:16px; }
  .panel-title { font-size:17px; }
  .two-col { gap:14px; }
  .offer-grid { gap:14px; }
  .offer-cover { padding:20px; }
  .offer-body { padding:16px; }
  .record-tab { font-size:12px;min-height:42px;padding:9px 5px; }
  .record-tab .icon { width:17px;height:17px; }
  .profile-links { gap:14px 4px; }
  .profile-links button { min-height:76px; }
  .profile-top > .secondary { font-size:11px; }
  .telegram-app .content { padding-left:max(12px,var(--ekor-safe-left));padding-right:max(12px,var(--ekor-safe-right)); }
}
@media(max-width:360px) {
  .mobile-brand .brand-name { font-size:22px; }
  .mobile-brand .brand-symbol { width:27px;height:27px; }
  .topbar { padding-left:12px;padding-right:12px; }
  .home-layout .wallet-actions button { width:38px; }
  .home-layout .balance strong { font-size:22px; }
  #home-carousel .ekor-promo h2 { font-size:23px; }
  .tile-content strong { font-size:17px; }
}

/* The approved 430px review canvas is now the application shell, at all sizes. */
html { background:#eaf0f9; }
body { margin:0; min-width:320px; background:#eaf0f9; font-size:14px; }
#app { max-width:430px; min-height:100dvh; margin-inline:auto; background:#f5f8fe; box-shadow:0 24px 70px #16366a12; }
.shell { margin:0; min-height:100dvh; padding-bottom:calc(65px + env(safe-area-inset-bottom)); }
.topbar { position:relative; top:auto; height:auto; min-height:72px; padding:22px 16px 16px; display:flex; justify-content:space-between; gap:8px; border:0; }
.mobile-brand { display:block; }
.mobile-brand .brand { display:flex; align-items:center; gap:7px; font-size:25px; }
.mobile-brand .brand-name { font-size:25px; line-height:30px; letter-spacing:-1px; font-weight:950; }
.mobile-brand .brand-symbol { width:30px; height:30px; font-size:20px; border-radius:9px; background:#337df3; color:white; box-shadow:none; }
.top-actions { gap:7px; }
.top-actions .icon-button { display:grid; place-items:center; padding:0; width:32px; height:32px; color:#516987; background:#f3f6fc; border:1px solid #e4ebf6; border-radius:50%; }
.top-actions .icon-button .icon { width:21px; height:21px; }
.content { padding:0 12px 26px; max-width:none; margin:0; }
#view { max-width:none; }
.home-layout .announcement,.game-library .announcement { margin:0 -12px 12px; width:calc(100% + 24px); padding:9px 16px; min-height:39px; border-radius:0; gap:9px; font-size:11px; background:#e7f0ff; color:#3671ca; }
.announcement > .icon { width:21px; height:21px; }
.announcement .text-button { display:none; }
.announcement-copy { font-size:11px; font-weight:400; }
.home-layout > section + section { margin-top:0; }
.home-layout .lobby-top { display:flex; flex-direction:column; gap:0; }
#home-carousel { --home-banner-height:155px; height:155px; min-height:155px; margin:0 0 21px; border-radius:15px; }
#home-carousel .ekor-promo { min-height:0; height:155px; background:#5600a6; border-radius:15px; }
#home-carousel .ekor-promo-visual { width:100%; inset:0; }
#home-carousel .ekor-promo-visual img { width:auto; height:100%; max-width:none; object-fit:initial; }
#home-carousel .ekor-promo-content { position:absolute; top:26px; right:16px; margin:0; padding:0; text-align:right; }
#home-carousel .ekor-kicker { color:#e1c8ff; letter-spacing:2px; font-size:10px; font-weight:400; line-height:normal; }
#home-carousel .ekor-promo h2 { font-size:27px; font-weight:750; line-height:normal; letter-spacing:0; margin:5px 0; }
#home-carousel .ekor-promo .primary { min-height:0; font-size:11px; font-weight:800; padding:8px 16px; line-height:normal; border:0; background:white; color:#6011ad; border-radius:20px; }
#home-carousel .hero-dots { gap:5px; }
#home-carousel .hero-dots button { width:5px; height:21px; padding:0; }
#home-carousel .hero-dots button.active { width:20px; }
.home-layout .wallet { display:flex; flex-direction:row; padding:14px 10px; border:1px solid #e0e8f4; border-radius:14px; gap:6px; }
.home-layout .wallet-label { font-size:10px; color:#8492a9; font-weight:400; line-height:normal; }
.wallet-label .icon-button .icon { width:12px; height:12px; }
.home-layout .balance { margin:5px 0 0; line-height:normal; align-items:baseline; gap:4px; }
.home-layout .balance strong { font-size:25px; letter-spacing:-.6px; line-height:normal; }
.home-layout .balance span { font-size:10px; color:#667a98; font-weight:700; }
.home-layout .wallet-actions { display:flex; gap:5px; margin:0; }
.home-layout .wallet-actions button { width:46px; min-height:56px; height:56px; padding:0; border-radius:11px; font-size:10px; font-weight:400; gap:4px; box-shadow:none; }
.home-layout .wallet-actions .icon { width:21px; height:21px; }
.home-layout .continue-game { margin:10px 0; padding:11px 13px; border:1px solid #a8c8ff; border-radius:14px; background:linear-gradient(110deg,#e7f0ff,#f5faff); }
.continue-game > p { font-size:10px; color:#5b7da6; margin:0 0 8px; line-height:normal; }
.continue-game > button { gap:10px; }
.continue-cover { width:39px; height:39px; border-radius:10px; }
.continue-mark { display:grid; place-items:center; width:100%; height:100%; color:white; font-size:19px; font-weight:900; line-height:1; }
.continue-mark .icon { width:22px; height:22px; }
.continue-cover:has(img:not([hidden])) .continue-mark { display:none; }
.continue-cover.tennis-lotto { background-image:radial-gradient(circle at 72% 34%,#d3ed4d,#628e17 70%); }
.continue-cover.tennis-lotto img,.continue-cover.badminton-lotto img { object-fit:contain; padding:3px; }
.continue-cover.badminton-lotto { background-image:linear-gradient(135deg,#124f91,#2aa7d8); }
.continue-cover.nba-lotto { background-image:linear-gradient(115deg,#176cb0 50%,#ec194c 50%); }
.continue-cover.nba-lotto img { object-fit:contain; }
.continue-cover.mfl-lotto { background-image:linear-gradient(135deg,#3513b0,#8317e0); }
.continue-cover.mfl-lotto img { width:auto; max-width:none; height:100%; object-fit:contain; object-position:left center; }
.continue-cover.lotto-123 .continue-mark { color:#ffe88d; font-size:17px; }
.continue-cover.lotto-123 img { object-fit:contain; padding:2px; }
.continue-cover.lotto .continue-mark { font-size:18px; }
.continue-game strong { font-size:14px; line-height:normal; margin-bottom:3px; }
.continue-game small { font-size:10px; color:#8294ad; margin:0; line-height:normal; }
.continue-game .game-play { width:34px; height:34px; }
.continue-game .game-play .icon { width:21px; height:21px; fill:none; }
.home-layout .quick-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:10px 0 15px; padding:16px 1px; gap:14px 3px; border:1px solid #e4ebf6; border-radius:14px; }
.home-layout .quick-item { font-size:10px; color:#4d6484; gap:7px; padding:0; line-height:normal; }
.home-layout .quick-item:nth-child(n) .quick-icon { width:25px; height:25px; color:#3980eb; }
.home-layout .category-row,.game-library .category-row { display:flex; gap:7px; margin:13px 0; padding:0; overflow-x:auto; scrollbar-width:none; }
.home-layout .category-row::-webkit-scrollbar,.game-library .category-row::-webkit-scrollbar { display:none; }
.home-layout .category,.game-library .category { flex:1 0 auto; min-width:56px; min-height:0; padding:9px 8px; border:1px solid #dfe7f3; border-radius:10px; font-size:12px; line-height:normal; color:#60718b; }
.home-layout .category .icon,.game-library .category .icon { display:none; }
.home-layout .category.active,.game-library .category.active { background:#337df3; color:white; border-color:#337df3; }
.home-layout .section-head,.library-group .section-head,.profile-layout .section-head { margin:18px 0 10px; align-items:center; }
.home-layout .title-wrap h2,.library-group h2,.profile-layout .title-wrap h2 { border-left:3px solid #337df3; padding-left:8px; font-size:16px; line-height:normal; font-weight:700; }
.home-layout .text-button,.section-caption,.library-count { font-size:10px; font-weight:400; color:#7a8ca5; }
.featured-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.featured-tile { min-height:164px; padding:14px 12px; border-radius:13px; }
.featured-tile > img { opacity:.8; }
.tile-shade { background:linear-gradient(90deg,#3c006bcc,transparent); }
.tile-badge { padding:3px 6px; font-size:9px; line-height:normal; }
.tile-content strong { margin:16px 0 3px; font-size:20px; line-height:normal; }
.tile-content small { font-size:10px; opacity:.8; color:white; line-height:normal; }
.tile-cta { margin-top:17px; padding:7px 12px; font-size:10px; font-weight:800; color:#2861bd; line-height:normal; }
.tile-watermark { right:6px; bottom:32px; font-size:58px; color:#ffffff22; }
.featured-tile.lotto .tile-shade { background:radial-gradient(circle at 85% 30%,#fff4 0 28%,transparent 29%); }
.featured-tile { height:174px; }
.featured-tile .tile-content { position:relative; height:100%; }
.featured-tile .tile-content strong { margin:11px 0 3px; max-width:100%; overflow-wrap:anywhere; line-height:1.1; }
.featured-tile .tile-cta { margin-top:auto; }
.featured-tile.baccarat-swipe { background:radial-gradient(circle at 80% 20%,#345060,#13212d 75%); }
.featured-tile.baccarat-swipe > img { opacity:1; object-position:center; }
.featured-tile.baccarat-swipe .tile-shade { background:linear-gradient(0deg,#09131ab0,transparent 34%); }
.featured-tile.baccarat-swipe:not(.image-error) .tile-content strong,
.featured-tile.baccarat-swipe:not(.image-error) .tile-content small { display:none; }
.featured-tile.baccarat-swipe.image-error .tile-shade { background:linear-gradient(90deg,#101b2bbb,#101b2b20); }
.featured-tile.baccarat-swipe .tile-watermark { color:#e7c78566; font-family:Georgia,serif; font-size:72px; }
.featured-tile.cards { background:radial-gradient(circle at 85% 18%,#227297,#123e5f 74%); }
.featured-tile.cards .tile-shade { background:linear-gradient(90deg,#0b314fbf,#0b314f18); }
.featured-tile.baccarat-swipe .tile-content strong { font-size:17px; }
.featured-tile.tennis-lotto { background:linear-gradient(135deg,#064936,#18a673); }
.featured-tile.tennis-lotto .tile-shade { background:linear-gradient(90deg,#044632e8,#07583a35); }
.featured-tile.tennis-lotto .tile-watermark { width:84px; height:84px; right:-10px; bottom:38px; border:5px solid #efff9d; border-radius:50%; background:#b6dc31; box-shadow:0 10px 22px #002b284d; color:transparent; transform:rotate(-22deg); }
.featured-tile.tennis-lotto .tile-watermark::before,
.featured-tile.tennis-lotto .tile-watermark::after { content:""; position:absolute; top:-12px; bottom:-12px; width:30px; border:3px solid #f8ffd4; border-radius:50%; }
.featured-tile.tennis-lotto .tile-watermark::before { left:-10px; }
.featured-tile.tennis-lotto .tile-watermark::after { right:-10px; }
.featured-tile.badminton-lotto { background:linear-gradient(135deg,#134777,#2d95ca); }
.featured-tile.badminton-lotto .tile-shade { background:linear-gradient(90deg,#0d3c70df,#187bb433); }
.featured-tile.badminton-lotto .tile-watermark { right:4px; bottom:27px; font-size:75px; transform:rotate(-22deg); filter:drop-shadow(0 9px 14px #082e6380); }
.featured-tile.nba-lotto { background:linear-gradient(120deg,#0e376f 0%,#215ba3 53%,#ca2942 53%,#93172f 100%); }
.featured-tile.nba-lotto .tile-shade { background:linear-gradient(90deg,#09234fe8 0%,#09234fa6 48%,transparent 75%); }
.featured-tile.nba-lotto .tile-watermark { right:-34px; bottom:0; width:174px; height:174px; font-size:0; background:url("./assets/nba-logo.png") center / contain no-repeat; filter:drop-shadow(0 8px 14px #071d49a0); }
.featured-tile.mfl-lotto { background:linear-gradient(135deg,#3210ad,#8317e0 56%,#252ee8); }
.featured-tile.mfl-lotto .tile-shade { background:linear-gradient(90deg,#24117ecf,#5216bd38); }
/* The football crest is the logo displayed on the Malaysian Football League website. */
.featured-tile.mfl-lotto .tile-watermark { right:3px; bottom:30px; width:90px; height:90px; font-size:0; background:url("./assets/mfl-site-logo.png") left center / auto 90px no-repeat; filter:drop-shadow(0 8px 13px #210b6b9c); }
.featured-tile.lotto-123 { background:linear-gradient(135deg,#5722a4,#e5307d); }
.featured-tile.lotto-123 > img { top:24px; left:5%; width:90%; height:calc(100% - 66px); object-fit:contain; opacity:1; }
.featured-tile.lotto-123 .tile-shade { background:linear-gradient(0deg,#461c8766,transparent 55%); }
.featured-tile.lotto-123 .tile-badge { align-self:flex-end; }
.featured-tile.lotto-123:not(.image-error) .tile-content strong,
.featured-tile.lotto-123:not(.image-error) .tile-content small { display:none; }
.featured-tile.lotto-123 .tile-watermark { right:-3px; bottom:32px; font-size:66px; font-style:italic; letter-spacing:-8px; color:#ffe38180; text-shadow:0 4px 15px #43106077; }
.featured-tile.swipe-4d { background:linear-gradient(135deg,#151922,#474c60); }
.featured-tile.swipe-4d > img { opacity:1; object-position:center; }
.featured-tile.swipe-4d .tile-badge { align-self:flex-end; }
.featured-tile.swipe-4d .tile-shade { background:linear-gradient(0deg,#11121aa8,transparent 36%); }
.featured-tile.swipe-4d:not(.image-error) .tile-content strong,
.featured-tile.swipe-4d:not(.image-error) .tile-content small { display:none; }
.featured-tile.swipe-4d.image-error .tile-shade { background:linear-gradient(90deg,#10141ded,#26263236); }
.featured-tile.swipe-4d .tile-watermark { right:4px; bottom:30px; font-size:77px; font-style:italic; letter-spacing:-9px; color:#f5cc5d88; text-shadow:0 7px 18px #0008; }
.prize-table-card { padding:0; border:1px solid #e1e8f3; border-radius:12px; }
.prize-table { table-layout:auto; border-collapse:collapse; }
.prize-table th,.prize-table td { padding:9px 2px; font-size:11px; line-height:normal; }
.prize-table thead th { font-size:10px; border:0; background:#57a8ed; letter-spacing:0; }
.prize-table tbody tr:nth-child(even) { background:white; }
.prize-table tbody tr:nth-child(odd) { background:#f3f6fa; }
.prize-table tbody th { color:var(--ink); }
.prize-secondary { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:8px; align-items:start; }
.prize-5d .prize-table thead th { background:#fa8a2e; }
.prize-6d .prize-table thead th { background:#9554ce; }
.library-heading { display:flex; align-items:center; justify-content:space-between; margin:6px 0 18px; }
.library-heading h2 { font-size:22px; line-height:1.2; letter-spacing:-.5px; }
.library-heading .icon-button { color:#7a8ca5; padding:4px; }
.search-bar[hidden] { display:none; }
.game-library .search-bar { flex-wrap:wrap; }
.game-library .search-bar .search-input { flex:1; min-width:160px; }
.library-rows { grid-template-columns:1fr; gap:10px; }
.library-game-row { padding:14px; gap:13px; border-radius:14px; }
.library-game-copy strong { font-size:16px; }
.library-game-copy small { font-size:11px; margin:6px 0; color:#8594a9; }
.library-tag { font-size:10px; padding:4px 7px; border-radius:5px; }
.library-game-row .game-play { width:34px; height:34px; }
.library-game-row .game-play .icon { width:21px; height:21px; fill:none; }
.profile-layout .profile-top { display:flex; padding:20px 5px; gap:13px; margin:0; }
.profile-layout .avatar { width:60px; height:60px; font-size:24px; flex:none; }
.profile-name { text-align:left; }
.profile-top .profile-name h2 { font-size:20px; margin:0 0 7px; }
.profile-layout .profile-top p { margin:0; font-size:11px; color:#7b8da6; }
.profile-login { color:var(--blue); font-size:11px; margin-top:7px; }
.profile-layout .security-row { display:flex; justify-content:space-around; padding:18px 0; background:white; border-radius:12px; margin:0; }
.profile-layout .security-item { flex:1; font-size:12px; color:#96a6bc; padding:0; gap:0; font-weight:400; }
.profile-layout .security-item .icon { width:28px; height:28px; margin-bottom:9px; }
.profile-layout .security-item span { margin-top:6px; font-size:10px; }
.profile-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:27px 6px; padding:25px 6px; background:white; border:1px solid #e4ebf6; border-radius:14px; }
.profile-links button { min-height:0; padding:0; font-size:12px; gap:7px; font-weight:400; }
.profile-links button > .icon { width:27px; height:27px; }
#view:not(:has(.home-layout)):not(:has(.game-library)) { padding-top:12px; }
.two-col { grid-template-columns:1fr; gap:14px; }
.offer-grid { grid-template-columns:1fr; }
#app .mobile-nav { display:grid; grid-template-columns:repeat(5,1fr); max-width:430px; margin-inline:auto; height:calc(75px + env(safe-area-inset-bottom)); padding:10px 7px calc(10px + env(safe-area-inset-bottom)); }
#app .mobile-nav-item { justify-content:flex-start; padding:0; min-width:0; }
#app .mobile-nav-item.play-nav { align-self:start; margin-top:-26px; justify-self:center; }
#app .mobile-nav .play-nav-label { top:54px; }
#dialog { width:calc(100% - 28px); max-width:402px; }
@media(max-width:360px) {
  .mobile-brand .brand-name { font-size:22px; }
  .topbar { padding-inline:12px; }
  .top-actions { gap:4px; }
  .home-layout .wallet-actions button { width:38px; }
  .home-layout .balance strong { font-size:22px; }
  .tile-content strong { font-size:17px; }
  #home-carousel .ekor-promo h2 { font-size:23px; }
  #home-carousel .ekor-kicker { letter-spacing:0; }
}
.home-layout .wallet-actions button { flex:0 0 46px; min-width:0; }
.continue-game .game-play .icon,.library-game-row .game-play .icon { stroke:currentColor; stroke-width:1.8; }
.continue-game .game-play { color:white; }
@media(max-width:360px) { .home-layout .wallet-actions button { flex-basis:38px; } }
.telegram-app #app .mobile-nav { height:calc(75px + var(--ekor-lobby-safe-bottom, var(--ekor-safe-bottom))); padding-bottom:calc(10px + var(--ekor-lobby-safe-bottom, var(--ekor-safe-bottom))); }
.telegram-app .shell { padding-bottom:calc(65px + var(--ekor-lobby-safe-bottom, var(--ekor-safe-bottom))); }
.telegram-app.keyboard-open #app .mobile-nav { display:none; }
.telegram-app .topbar { height:auto; min-height:calc(72px + var(--ekor-lobby-safe-top, var(--ekor-safe-top))); padding-top:calc(22px + var(--ekor-lobby-safe-top, var(--ekor-safe-top))); padding-bottom:16px; }
.telegram-app .content { padding-inline:max(12px,var(--ekor-safe-left)) max(12px,var(--ekor-safe-right)); padding-bottom:26px; }
#dialog .telegram-account { margin:0; padding:0; border:0; flex-direction:column; align-items:stretch; }
.home-layout .wallet-actions button { align-items:center; justify-content:center; }
.home-layout .category,.game-library .category { box-shadow:none; }
.deposit-notification { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.deposit-notification > div { flex:1 1 220px; }
.deposit-notification p { margin:5px 0 0; }

/* Message drawer follows the reference video, with the shared light theme. */
#dialog.notification-sheet { position:fixed; inset:auto 0 0; margin:0 auto; width:min(430px,100%); max-width:100%; height:min(74dvh,690px); max-height:calc(100dvh - var(--ekor-safe-top,0px)); padding:0; border:1px solid #dce6f5; border-bottom:0; border-radius:20px 20px 0 0; background:#f3f7fe; box-shadow:0 -12px 50px #16366a26; overflow:hidden; }
#dialog.notification-sheet[open] { display:flex; flex-direction:column; animation:message-sheet-in .22s ease-out; }
#dialog.notification-sheet::backdrop { background:#14263d66; backdrop-filter:blur(5px); }
.notification-sheet .dialog-head { position:relative; flex:none; margin:0; padding:25px 16px 14px; justify-content:center; touch-action:none; cursor:grab; border:0; }
.notification-sheet .dialog-head h2 { font-size:15px; margin:0; }
.notification-sheet .dialog-head .icon-button { position:absolute; right:10px; top:15px; width:32px; height:32px; }
.sheet-handle { position:absolute; top:9px; left:calc(50% - 17px); width:34px; height:4px; border-radius:4px; background:#b3c5e0; }
.notification-sheet .dialog-content { padding:0 14px calc(18px + var(--ekor-safe-bottom,0px)); overflow-y:auto; overscroll-behavior:contain; min-height:0; }
.message-list { display:grid; gap:10px; }
.message-card { display:flex; gap:10px; padding:13px 11px; border:1px solid #dce6f5; border-radius:11px; background:white; text-align:left; }
.message-card > .icon { width:20px; height:20px; flex:none; color:var(--blue); margin-top:1px; }
.message-failed > .icon { color:#e59735; }
.message-copy { min-width:0; flex:1; }
.message-heading { display:flex; align-items:baseline; gap:8px; justify-content:space-between; }
.message-heading h3 { margin:0; font-size:12px; line-height:1.5; }
.message-heading time,.message-heading span { color:#8795aa; font-size:9px; white-space:nowrap; }
.message-card p { margin:5px 0 0; color:#74849c; font-size:11px; line-height:1.65; overflow-wrap:anywhere; }
body:has(#dialog.notification-sheet[open]) { overflow:hidden; }
#dialog.notification-sheet.sheet-dragging { animation:none; }
@keyframes message-sheet-in { from { transform:translateY(100%); } to { transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { #dialog.notification-sheet[open] { animation:none; } }

.mobile-brand .brand-logo { display:block; width:36px; height:36px; flex:none; object-fit:contain; border-radius:8px; }

/* Center the game glyph inside its raised circle, independently of the label. */
#app .mobile-nav-item.play-nav { justify-content:center; align-items:center; }
.settings-page { padding-bottom:18px; }
.settings-page > h2 { font-size:24px; margin:0 0 23px; }
.settings-group { margin:0 0 22px; }
.settings-group-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.settings-group-heading h3 { display:flex; align-items:center; gap:7px; margin:0; font-size:15px; }
.settings-group-heading h3::before { content:""; display:block; width:3px; height:15px; border-radius:3px; background:var(--blue); }
.settings-group-heading > small { color:#8b9ab0; font-size:10px; }
.settings-rows { display:grid; gap:8px; }
.setting-row { display:flex; align-items:center; gap:12px; width:100%; padding:14px 12px; min-height:58px; border:1px solid #dfe7f3; border-radius:13px; background:white; text-align:left; }
.setting-row > .icon { width:23px; height:23px; flex:none; color:#6a83a5; }
.setting-copy { display:flex; flex:1; flex-direction:column; gap:5px; min-width:0; }
.setting-copy strong { font-size:14px; font-weight:600; }
.setting-copy small { color:#8b9ab0; font-size:10px; line-height:1.5; }
.setting-switch { width:41px; height:24px; border-radius:20px; background:#ced7e4; flex:none; position:relative; transition:background .18s; }
.setting-switch::after { content:""; position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%; background:white; box-shadow:0 1px 3px #16366a22; transition:transform .18s; }
.setting-row[aria-checked="true"] .setting-switch { background:var(--blue); }
.setting-row[aria-checked="true"] .setting-switch::after { transform:translateX(17px); }
.setting-row:disabled { opacity:.55; cursor:not-allowed; }
.settings-link { width:100%; display:flex; align-items:center; gap:12px; background:transparent; border:0; padding:14px 10px; text-align:left; font-size:14px; }
.settings-link > .icon { width:22px; height:22px; color:#7890b0; }
.settings-link > span { flex:1; }
.settings-link > small { color:#7c8da5; font-size:12px; }
.settings-page > .settings-link { margin:-8px 0 20px; }
.settings-device { display:flex; gap:12px; padding:13px 10px; border-bottom:1px solid #e1e8f3; }
.settings-device > .icon { color:var(--blue); width:25px; height:25px; }
.settings-device strong { font-size:14px; font-weight:500; }
.settings-device strong span { display:inline-block; font-size:10px; padding:2px 5px; color:var(--blue); background:#e2edff; border-radius:3px; }
.settings-device small { display:block; margin-top:7px; color:#8898ae; font-size:11px; }
.settings-caption { font-size:11px; color:#8b9ab0; line-height:1.7; margin:8px 10px; }
.settings-language-choice { display:flex; justify-content:space-between; padding:16px 0; }.settings-language-choice strong { color:var(--blue); font-size:12px; }
.large-text .home-layout .balance strong { font-size:32px; }.large-text .setting-copy strong,.large-text .settings-link { font-size:17px; }.large-text .setting-copy small,.large-text .message-card p { font-size:13px; }.large-text .prize-table { font-size:15px; }.large-text .record-card { font-size:16px; }
@media(prefers-reduced-motion:reduce) { .setting-switch,.setting-switch::after { transition:none; } }

/* The customer-service flow occupies its own page, as in the review video. */
#app.support-mode .topbar,
#app.support-mode .mobile-nav { display:none; }
#app.support-mode .shell { padding-bottom:0; }
#app.support-mode .content { padding:0; }
#app.support-mode #view { padding-top:0; }
.support-page {
  min-height:100dvh;
  padding:calc(14px + var(--ekor-lobby-safe-top,0px)) 16px calc(26px + var(--ekor-lobby-safe-bottom,0px));
  background:radial-gradient(circle at 100% 0,#dceaff 0,transparent 34%),#f5f8fe;
}
.support-page-top { display:flex; align-items:center; gap:11px; color:#647b9a; font-size:12px; }
.support-back { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:white; border:1px solid #dce7f6; color:#457fe4; }
.support-back .icon { width:18px; height:18px; transform:rotate(180deg); }
.support-agent { display:flex; align-items:center; gap:11px; margin:22px 0 18px; padding:16px 14px; background:linear-gradient(112deg,#e5efff,#fff); border:1px solid #d6e5fc; border-radius:16px; }
.support-agent img { width:45px; height:45px; flex:none; object-fit:cover; border-radius:50%; box-shadow:0 2px 8px #235da225; }
.support-agent h2 { margin:0 0 5px; font-size:19px; }
.support-agent p { display:flex; align-items:center; gap:6px; margin:0; color:#627b9c; font-size:11px; }
.support-online { width:7px; height:7px; flex:none; border-radius:50%; background:#20b584; }
.support-online.offline { background:#9aaabd; }
.support-instructions { margin:0 4px 18px; color:#60758f; line-height:1.7; font-size:13px; }
.support-topics { display:grid; gap:9px; }
.support-topics button { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:59px; padding:12px 13px 12px 17px; background:white; border:1px solid #dce6f3; border-radius:12px; box-shadow:0 2px 8px #1b4c8410; font-size:15px; font-weight:650; text-align:left; }
.support-topic-arrow { display:grid; place-items:center; width:26px; height:26px; border:1px solid #acc8ef; border-radius:50%; color:#3980e9; }
.support-topic-arrow .icon { width:15px; height:15px; }
