/* ==========================================================================
   KHUNG MỖI Ô GAME (.card) — kiểu HUD xanh neon: viền bo + 4 góc dày + tab sáng giữa cạnh trên/dưới
   + vạch bên hai cạnh + vầng sáng viền; nền lưới mờ. Giao diện sáng: viền vàng.
   Dùng chung cho mọi trang có thẻ game (trang chủ, Switch, Steam, Android, kho đồ…)
   ========================================================================== */
/* ===== KHUNG THẺ GAME: HUD vát góc (kiểu khung xanh neon, viền sáng + tab giữa cạnh + vạch nhỏ) ===== */
html body .card{
  --cf:#4de6ff;--cf-glow:rgba(40,170,255,.5);--ch:14px;
  --tab-t:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 6'%3E%3Cpath d='M0 0H64L57 5H7Z' fill='%23bfeeff'/%3E%3C/svg%3E");
  --tab-b:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 6'%3E%3Cpath d='M0 6H64L57 1H7Z' fill='%23bfeeff'/%3E%3C/svg%3E");
  --glow-c:rgba(120,225,255,.95);--glow-c2:rgba(60,170,255,.35);
  position:relative;isolation:isolate;
  border:1.5px solid var(--cf) !important;border-radius:0 !important;
  clip-path:polygon(var(--ch) 0,calc(100% - var(--ch)) 0,100% var(--ch),100% calc(100% - var(--ch)),calc(100% - var(--ch)) 100%,var(--ch) 100%,0 calc(100% - var(--ch)),0 var(--ch));
  box-shadow:inset 0 0 0 3px rgba(2,14,28,.35),inset 0 0 0 4px rgba(77,230,255,.28),inset 0 0 22px var(--cf-glow) !important;
}
/* lưới mờ phía sau nội dung */
/* (đã bỏ lưới ô vuông trong thẻ game) */
html body .card::before{content:none !important;}
/* cạnh chéo ở 4 góc + vầng sáng/tab giữa cạnh trên-dưới + vạch nhỏ */
html body .card::after{
  content:"";position:absolute;inset:-1.5px;z-index:6;pointer-events:none;
  background:
    linear-gradient(to bottom right,transparent calc(50% - .5px),var(--cf) calc(50% - .5px) calc(50% + 2px),transparent calc(50% + 2px)) left top/var(--ch) var(--ch) no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - .5px),var(--cf) calc(50% - .5px) calc(50% + 2px),transparent calc(50% + 2px)) right top/var(--ch) var(--ch) no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - 2px),var(--cf) calc(50% - 2px) calc(50% + .5px),transparent calc(50% + .5px)) left bottom/var(--ch) var(--ch) no-repeat,
    linear-gradient(to bottom right,transparent calc(50% - 2px),var(--cf) calc(50% - 2px) calc(50% + .5px),transparent calc(50% + .5px)) right bottom/var(--ch) var(--ch) no-repeat,
    radial-gradient(ellipse 54px 11px at 50% 0,var(--glow-c),var(--glow-c2) 55%,transparent 75%) no-repeat,
    radial-gradient(ellipse 54px 11px at 50% 100%,var(--glow-c),var(--glow-c2) 55%,transparent 75%) no-repeat,
    var(--tab-t) center top/64px 6px no-repeat,
    var(--tab-b) center bottom/64px 6px no-repeat,
    linear-gradient(var(--cf),var(--cf)) left 26px top 0/22px 3px no-repeat,
    linear-gradient(var(--cf),var(--cf)) right 26px bottom 0/22px 3px no-repeat;
}
/* rê chuột: khung chuyển vàng */
html body .card:hover{
  --cf:#ffc94d;--cf-glow:rgba(242,177,52,.55);
  --tab-t:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 6'%3E%3Cpath d='M0 0H64L57 5H7Z' fill='%23fff1c2'/%3E%3C/svg%3E");
  --tab-b:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 6'%3E%3Cpath d='M0 6H64L57 1H7Z' fill='%23fff1c2'/%3E%3C/svg%3E");
  --glow-c:rgba(255,225,140,.95);--glow-c2:rgba(242,177,52,.35);
  box-shadow:inset 0 0 0 3px rgba(30,20,0,.3),inset 0 0 0 4px rgba(255,201,77,.3),inset 0 0 22px var(--cf-glow) !important;
}

/* ===== Giao diện sáng: viền vàng, bỏ lưới ===== */
html[data-theme="light"] body .card{
  --cf:#f0a400;--cf-glow:rgba(240,164,0,.28);
  --tab-t:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 6'%3E%3Cpath d='M0 0H64L57 5H7Z' fill='%23f0a400'/%3E%3C/svg%3E");
  --tab-b:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 6'%3E%3Cpath d='M0 6H64L57 1H7Z' fill='%23f0a400'/%3E%3C/svg%3E");
  --glow-c:rgba(255,205,90,.95);--glow-c2:rgba(240,164,0,.35);
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.55),inset 0 0 0 4px rgba(240,164,0,.35),inset 0 0 20px var(--cf-glow) !important;
}
html[data-theme="light"] body .card::before{background:none;}
html[data-theme="light"] body .card:hover{
  --cf:#d98e00;--cf-glow:rgba(240,164,0,.4);
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.55),inset 0 0 0 4px rgba(217,142,0,.45),inset 0 0 22px var(--cf-glow) !important;
}


/* ==========================================================================
   KHUNG NGOÀI CÙNG MỖI THƯ VIỆN (Switch / Android / Steam + Xếp hạng / Thống kê)
   — dùng đúng kiểu khung HUD của khung hero trang chủ: vát góc, viền đôi sáng, chi tiết góc,
   nền lục giác mờ và 2 dải LED (xanh ngọc + hồng) chạy quanh viền.
   Phần tử .hud-track (con đầu tiên của .wrap) chứa nền + dải LED; khung vẽ ở ::before của .wrap.
   Màu sắc dùng chung biến --hf1/--hf2/--hglow với hero (tự đổi theo giao diện sáng/tối).
   ========================================================================== */
html body :is(#taiNhieu,#thuvien,#android,#steam,#bangxephang,#thongke,.full-list section.block,#contactPage section.block) > .wrap{
  position:relative;isolation:isolate;overflow:visible !important;
  background:none !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;
}
/* nền trong khung: vát góc theo khung */
html body :is(#taiNhieu,#thuvien,#android,#steam,#bangxephang,#thongke,.full-list section.block,#contactPage section.block) > .wrap > .hud-track{
  position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:var(--surface);
  clip-path:polygon(36px 0,calc(100% - 22px) 0,100% 22px,100% calc(100% - 36px),calc(100% - 36px) 100%,22px 100%,0 calc(100% - 22px),0 36px);
}
/* khung HUD: viền đôi sáng + chi tiết kỹ thuật ở góc (giống khung hero) */
html body :is(#taiNhieu,#thuvien,#android,#steam,#bangxephang,#thongke,.full-list section.block,#contactPage section.block) > .wrap::before{
  content:"";position:absolute;inset:0;z-index:5;pointer-events:none;
  background:
    linear-gradient(to bottom right,transparent calc(50% - 1.5px),var(--hf1) calc(50% - 1.5px) calc(50% + 1.5px),transparent calc(50% + 1.5px)) left 0px top 0px/36px 36px no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - 1.5px),var(--hf1) calc(50% - 1.5px) calc(50% + 1.5px),transparent calc(50% + 1.5px)) right 0px top 0px/22px 22px no-repeat,
    linear-gradient(to bottom right,transparent calc(50% - 1.5px),var(--hf1) calc(50% - 1.5px) calc(50% + 1.5px),transparent calc(50% + 1.5px)) right 0px bottom 0px/36px 36px no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - 1.5px),var(--hf1) calc(50% - 1.5px) calc(50% + 1.5px),transparent calc(50% + 1.5px)) left 0px bottom 0px/22px 22px no-repeat,
    linear-gradient(var(--hf1),var(--hf1)) left 36px top 0px/calc(100% - 58px) 3px no-repeat,
    linear-gradient(var(--hf1),var(--hf1)) right 0px top 22px/3px calc(100% - 58px) no-repeat,
    linear-gradient(var(--hf1),var(--hf1)) left 22px bottom 0px/calc(100% - 58px) 3px no-repeat,
    linear-gradient(var(--hf1),var(--hf1)) left 0px top 36px/3px calc(100% - 58px) no-repeat,
    linear-gradient(to bottom right,transparent calc(50% - 0.75px),var(--hf2) calc(50% - 0.75px) calc(50% + 0.75px),transparent calc(50% + 0.75px)) left 9px top 9px/31px 31px no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - 0.75px),var(--hf2) calc(50% - 0.75px) calc(50% + 0.75px),transparent calc(50% + 0.75px)) right 9px top 9px/17px 17px no-repeat,
    linear-gradient(to bottom right,transparent calc(50% - 0.75px),var(--hf2) calc(50% - 0.75px) calc(50% + 0.75px),transparent calc(50% + 0.75px)) right 9px bottom 9px/31px 31px no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - 0.75px),var(--hf2) calc(50% - 0.75px) calc(50% + 0.75px),transparent calc(50% + 0.75px)) left 9px bottom 9px/17px 17px no-repeat,
    linear-gradient(var(--hf2),var(--hf2)) left 40px top 9px/calc(100% - 66px) 1.5px no-repeat,
    linear-gradient(var(--hf2),var(--hf2)) right 9px top 26px/1.5px calc(100% - 66px) no-repeat,
    linear-gradient(var(--hf2),var(--hf2)) left 26px bottom 9px/calc(100% - 66px) 1.5px no-repeat,
    linear-gradient(var(--hf2),var(--hf2)) left 9px top 40px/1.5px calc(100% - 66px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 8'%3E%3Cpath d='M0 8L5 0H14L9 8Z M16 8L21 0H30L25 8Z M32 8L37 0H46L41 8Z' fill='%23bfe3ff'/%3E%3C/svg%3E") right 44px top 12px/46px 8px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M0 0V36H4V4H0Z M0 32H36V40H0Z' fill='%23bfe3ff'/%3E%3C/svg%3E") left -5px bottom -5px/34px 34px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M40 40V4H36V36H40Z M40 8H4V0H40Z' fill='%23bfe3ff'/%3E%3C/svg%3E") right -5px top -5px/34px 34px no-repeat;
  filter:drop-shadow(0 0 2px var(--hf1)) drop-shadow(0 0 7px var(--hglow)) drop-shadow(0 0 16px var(--hglow));
}

/* nền lục giác mờ */
html body :is(#taiNhieu,#thuvien,#android,#steam,#bangxephang,#thongke,.full-list section.block,#contactPage section.block) > .wrap > .hud-track::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24.25' height='42' viewBox='0 0 24.25 42'%3E%3Cpath d='M12.12 0L24.25 7V21L12.12 28L0 21V7Z M12.12 28V42' fill='none' stroke='%2362b0ff' stroke-opacity='.2'/%3E%3C/svg%3E") center top/24.25px 42px repeat;
}
/* 2 dải LED chạy quanh viền */
html body :is(#taiNhieu,#thuvien,#android,#steam,#bangxephang,#thongke,.full-list section.block,#contactPage section.block) > .wrap > .hud-track::before{
  content:"";position:absolute;inset:4px;padding:3px;z-index:1;pointer-events:none;
  background:conic-gradient(from var(--cfa),
    transparent 0deg,#ff2d3d 55deg,transparent 57deg,
    transparent 180deg,#2cff6a 235deg,transparent 237deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  filter:drop-shadow(0 0 5px #ff2d3d) drop-shadow(0 0 5px #2cff6a);
  animation:cfspin 6s linear infinite;
}
@media(prefers-reduced-motion:reduce){html body :is(#taiNhieu,#thuvien,#android,#steam,#bangxephang,#thongke,.full-list section.block,#contactPage section.block) > .wrap > .hud-track::before{animation:none;}}
/* bảng xếp hạng + thống kê: giữ tông màu nhấn cũ */
#bangxephang,#thongke{--tint:88,101,242;}


/* ==========================================================================
   KHUNG HERO (to ngoài cùng trang chủ) + 4 Ô THỐNG KÊ — viền neon xanh, bo góc, tỏa sáng
   Hero có 2 dải LED (xanh ngọc + hồng) chạy vòng quanh khung.
   ========================================================================== */
@property --cfa{syntax:"<angle>";inherits:false;initial-value:0deg;}
@keyframes cfspin{to{--cfa:360deg;}}
html body{--fb:#9dbcff;--fb-glow:rgba(74,125,255,.75);--fb-in:rgba(90,140,255,.35);}
html[data-theme="light"] body{--fb:#4f86ff;--fb-glow:rgba(60,110,255,.55);--fb-in:rgba(80,130,255,.25);}

html body{--hf1:#e6f4ff;--hf2:#6db3ff;--hglow:rgba(60,140,255,.9);}
html[data-theme="light"] body{--hf1:#2f6bff;--hf2:#74a8ff;--hglow:rgba(50,110,255,.6);}
html body .hero > .wrap{
  overflow:visible !important;background:none !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;
}
/* nền trong khung: vát góc theo khung */
html body .hero > .wrap > .glow-track{
  border-radius:0 !important;background:var(--surface);
  clip-path:polygon(36px 0,calc(100% - 22px) 0,100% 22px,100% calc(100% - 36px),calc(100% - 36px) 100%,22px 100%,0 calc(100% - 22px),0 36px);
}
/* khung HUD: viền đôi sáng + chi tiết kỹ thuật ở góc */
html body .hero > .wrap::before{
  content:"";position:absolute;inset:0;z-index:5;pointer-events:none;
  background:
    linear-gradient(to bottom right,transparent calc(50% - 1.5px),var(--hf1) calc(50% - 1.5px) calc(50% + 1.5px),transparent calc(50% + 1.5px)) left 0px top 0px/36px 36px no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - 1.5px),var(--hf1) calc(50% - 1.5px) calc(50% + 1.5px),transparent calc(50% + 1.5px)) right 0px top 0px/22px 22px no-repeat,
    linear-gradient(to bottom right,transparent calc(50% - 1.5px),var(--hf1) calc(50% - 1.5px) calc(50% + 1.5px),transparent calc(50% + 1.5px)) right 0px bottom 0px/36px 36px no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - 1.5px),var(--hf1) calc(50% - 1.5px) calc(50% + 1.5px),transparent calc(50% + 1.5px)) left 0px bottom 0px/22px 22px no-repeat,
    linear-gradient(var(--hf1),var(--hf1)) left 36px top 0px/calc(100% - 58px) 3px no-repeat,
    linear-gradient(var(--hf1),var(--hf1)) right 0px top 22px/3px calc(100% - 58px) no-repeat,
    linear-gradient(var(--hf1),var(--hf1)) left 22px bottom 0px/calc(100% - 58px) 3px no-repeat,
    linear-gradient(var(--hf1),var(--hf1)) left 0px top 36px/3px calc(100% - 58px) no-repeat,
    linear-gradient(to bottom right,transparent calc(50% - 0.75px),var(--hf2) calc(50% - 0.75px) calc(50% + 0.75px),transparent calc(50% + 0.75px)) left 9px top 9px/31px 31px no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - 0.75px),var(--hf2) calc(50% - 0.75px) calc(50% + 0.75px),transparent calc(50% + 0.75px)) right 9px top 9px/17px 17px no-repeat,
    linear-gradient(to bottom right,transparent calc(50% - 0.75px),var(--hf2) calc(50% - 0.75px) calc(50% + 0.75px),transparent calc(50% + 0.75px)) right 9px bottom 9px/31px 31px no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - 0.75px),var(--hf2) calc(50% - 0.75px) calc(50% + 0.75px),transparent calc(50% + 0.75px)) left 9px bottom 9px/17px 17px no-repeat,
    linear-gradient(var(--hf2),var(--hf2)) left 40px top 9px/calc(100% - 66px) 1.5px no-repeat,
    linear-gradient(var(--hf2),var(--hf2)) right 9px top 26px/1.5px calc(100% - 66px) no-repeat,
    linear-gradient(var(--hf2),var(--hf2)) left 26px bottom 9px/calc(100% - 66px) 1.5px no-repeat,
    linear-gradient(var(--hf2),var(--hf2)) left 9px top 40px/1.5px calc(100% - 66px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 8'%3E%3Cpath d='M0 8L5 0H14L9 8Z M16 8L21 0H30L25 8Z M32 8L37 0H46L41 8Z' fill='%23bfe3ff'/%3E%3C/svg%3E") right 44px top 12px/46px 8px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M0 0V36H4V4H0Z M0 32H36V40H0Z' fill='%23bfe3ff'/%3E%3C/svg%3E") left -5px bottom -5px/34px 34px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M40 40V4H36V36H40Z M40 8H4V0H40Z' fill='%23bfe3ff'/%3E%3C/svg%3E") right -5px top -5px/34px 34px no-repeat;
  filter:drop-shadow(0 0 2px var(--hf1)) drop-shadow(0 0 7px var(--hglow)) drop-shadow(0 0 16px var(--hglow));
}
/* nền lục giác mờ */
html body .hero > .wrap::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  clip-path:polygon(36px 0,calc(100% - 22px) 0,100% 22px,100% calc(100% - 36px),calc(100% - 36px) 100%,22px 100%,0 calc(100% - 22px),0 36px);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24.25' height='42' viewBox='0 0 24.25 42'%3E%3Cpath d='M12.12 0L24.25 7V21L12.12 28L0 21V7Z M12.12 28V42' fill='none' stroke='%2362b0ff' stroke-opacity='.2'/%3E%3C/svg%3E") center top/24.25px 42px repeat;
}
/* 2 dải LED chạy quanh viền (nằm giữa hai đường viền) */
html body .hero > .wrap > .glow-track::before{
  content:"";position:absolute;inset:4px;padding:3px;z-index:2;pointer-events:none;
  background:conic-gradient(from var(--cfa),
    transparent 0deg,#ff2d3d 55deg,transparent 57deg,
    transparent 180deg,#2cff6a 235deg,transparent 237deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  filter:drop-shadow(0 0 5px #ff2d3d) drop-shadow(0 0 5px #2cff6a);
  animation:cfspin 6s linear infinite;
}
@media(prefers-reduced-motion:reduce){html body .hero > .wrap > .glow-track::before{animation:none;}}

/* 4 ô thống kê */
html body .hero-stats .stat{
  border:2px solid var(--fb) !important;
  border-radius:16px !important;
  box-shadow:0 0 3px var(--fb),0 0 10px var(--fb-glow),inset 0 0 3px var(--fb),inset 0 0 14px var(--fb-in) !important;
}


/* ==========================================================================
   THANH TÌM KIẾM / LỌC GAME (.toolbar-blur) — khung HUD cam: vát góc, viền đôi, tỏa sáng cam
   ========================================================================== */
html body{--tf0:rgba(120,150,200,.55);--tf1:#ffae2b;--tglow:rgba(255,140,30,.85);}
html[data-theme="light"] body{--tf0:rgba(200,120,20,.45);--tf1:#f08a00;--tglow:rgba(240,140,0,.55);}
html body .toolbar-blur,html body .block-tools .toolbar-blur{
  overflow:visible !important;border:0 !important;border-radius:0 !important;background:none !important;
  isolation:isolate;padding:24px 30px !important;
}
html body .toolbar-blur > .toolbar-bg{display:none !important;}
html body .toolbar-blur::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px);
  background:
    radial-gradient(60% 120% at 100% 0,rgba(255,150,40,.20),transparent 60%),
    radial-gradient(60% 120% at 0 100%,rgba(255,150,40,.16),transparent 60%),
    linear-gradient(180deg,#0f1a2e,#0a1424);
}
html[data-theme="light"] body .toolbar-blur::after{
  background:
    radial-gradient(60% 120% at 100% 0,rgba(255,170,60,.28),transparent 60%),
    radial-gradient(60% 120% at 0 100%,rgba(255,170,60,.22),transparent 60%),
    linear-gradient(180deg,#fff9ee,#ffeed2);
}
html body .toolbar-blur::before{
  content:"";position:absolute;inset:0;z-index:5;pointer-events:none;
  background:
    linear-gradient(to bottom right,transparent calc(50% - 0.75px),var(--tf0) calc(50% - 0.75px) calc(50% + 0.75px),transparent calc(50% + 0.75px)) left 0px top 0px/18px 18px no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - 0.75px),var(--tf0) calc(50% - 0.75px) calc(50% + 0.75px),transparent calc(50% + 0.75px)) right 0px top 0px/18px 18px no-repeat,
    linear-gradient(to bottom right,transparent calc(50% - 0.75px),var(--tf0) calc(50% - 0.75px) calc(50% + 0.75px),transparent calc(50% + 0.75px)) right 0px bottom 0px/18px 18px no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - 0.75px),var(--tf0) calc(50% - 0.75px) calc(50% + 0.75px),transparent calc(50% + 0.75px)) left 0px bottom 0px/18px 18px no-repeat,
    linear-gradient(var(--tf0),var(--tf0)) left 18px top 0px/calc(100% - 36px) 1.5px no-repeat,
    linear-gradient(var(--tf0),var(--tf0)) right 0px top 18px/1.5px calc(100% - 36px) no-repeat,
    linear-gradient(var(--tf0),var(--tf0)) left 18px bottom 0px/calc(100% - 36px) 1.5px no-repeat,
    linear-gradient(var(--tf0),var(--tf0)) left 0px top 18px/1.5px calc(100% - 36px) no-repeat,
    linear-gradient(to bottom right,transparent calc(50% - 1.25px),var(--tf1) calc(50% - 1.25px) calc(50% + 1.25px),transparent calc(50% + 1.25px)) left 7px top 7px/14px 14px no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - 1.25px),var(--tf1) calc(50% - 1.25px) calc(50% + 1.25px),transparent calc(50% + 1.25px)) right 7px top 7px/14px 14px no-repeat,
    linear-gradient(to bottom right,transparent calc(50% - 1.25px),var(--tf1) calc(50% - 1.25px) calc(50% + 1.25px),transparent calc(50% + 1.25px)) right 7px bottom 7px/14px 14px no-repeat,
    linear-gradient(to bottom left,transparent calc(50% - 1.25px),var(--tf1) calc(50% - 1.25px) calc(50% + 1.25px),transparent calc(50% + 1.25px)) left 7px bottom 7px/14px 14px no-repeat,
    linear-gradient(var(--tf1),var(--tf1)) left 21px top 7px/calc(100% - 42px) 2.5px no-repeat,
    linear-gradient(var(--tf1),var(--tf1)) right 7px top 21px/2.5px calc(100% - 42px) no-repeat,
    linear-gradient(var(--tf1),var(--tf1)) left 21px bottom 7px/calc(100% - 42px) 2.5px no-repeat,
    linear-gradient(var(--tf1),var(--tf1)) left 7px top 21px/2.5px calc(100% - 42px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6'%3E%3Cpath d='M0 6L4 0H11L7 6Z M14 6L18 0H25L21 6Z M28 6L32 0H39L35 6Z' fill='%23ffc24d'/%3E%3C/svg%3E") right 34px top 1px/40px 6px no-repeat;
  filter:drop-shadow(0 0 2px var(--tf1)) drop-shadow(0 0 8px var(--tglow));
}


/* ==========================================================================
   THẺ TAG LỌC (.chip) — kiểu cơ khí: vát góc chéo, viền thép, đinh tán, vân kim loại
   ========================================================================== */
html body .chip-group .chip{
  position:relative;isolation:isolate;border:0 !important;border-radius:0 !important;background:none !important;
  clip-path:polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px);
  padding:8px 18px 8px 26px;
  font-family:"JetBrains Mono",ui-monospace,monospace;font-weight:700;font-size:12px;letter-spacing:.07em;text-transform:uppercase;
  color:#b9c8e0;transition:transform .15s ease,color .15s ease;
}
html body .chip-group .chip::before{
  content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:linear-gradient(135deg,#9fb2cf,#3a4a66 45%,#8196b6);
}
html body .chip-group .chip::after{
  content:"";position:absolute;inset:1.5px;z-index:-1;pointer-events:none;
  clip-path:polygon(8.1px 0,100% 0,100% calc(100% - 8.1px),calc(100% - 8.1px) 100%,0 100%,0 8.1px);
  background:
    radial-gradient(circle at 11px 50%,#e3ecfa 0 1.4px,#6a7d9c 2px,rgba(0,0,0,.55) 3.4px,transparent 4.2px),
    linear-gradient(180deg,rgba(255,255,255,.08),transparent 40%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px 3px),
    linear-gradient(180deg,#1c2a45,#0d172a);
}
html body .chip-group .chip:hover{color:#fff;transform:translateY(-2px);}
html body .chip-group .chip:hover::before{background:linear-gradient(135deg,#d4e2f7,#5d7396 45%,#aebfdc);}
/* thẻ đang chọn: viền cam, lõi nóng, đinh tán cam */
html body .chip-group .chip.active{color:#ffc65c;text-shadow:0 0 8px rgba(255,150,30,.7);}
html body .chip-group .chip.active::before{background:linear-gradient(135deg,#ffd57e,#ff8a1f 50%,#ffb84a);}
html body .chip-group .chip.active::after{
  background:
    radial-gradient(circle at 11px 50%,#fff1c9 0 1.4px,#ff9a2e 2px,rgba(0,0,0,.5) 3.4px,transparent 4.2px),
    radial-gradient(90% 140% at 50% 120%,rgba(255,140,30,.45),transparent 70%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 1px,transparent 1px 3px),
    linear-gradient(180deg,#3a2410,#1c1208);
}
/* giao diện sáng */
html[data-theme="light"] body .chip-group .chip{color:#34476b;}
html[data-theme="light"] body .chip-group .chip::before{background:linear-gradient(135deg,#aab9d3,#5d7396 45%,#8da1c3);}
html[data-theme="light"] body .chip-group .chip::after{
  background:
    radial-gradient(circle at 11px 50%,#fff 0 1.4px,#8fa3c4 2px,rgba(60,80,120,.45) 3.4px,transparent 4.2px),
    linear-gradient(180deg,rgba(255,255,255,.7),transparent 45%),
    repeating-linear-gradient(90deg,rgba(40,70,120,.04) 0 1px,transparent 1px 3px),
    linear-gradient(180deg,#f4f7fd,#dbe4f3);
}
html[data-theme="light"] body .chip-group .chip:hover{color:#14213d;}
html[data-theme="light"] body .chip-group .chip.active{color:#b86e00;text-shadow:none;}
html[data-theme="light"] body .chip-group .chip.active::after{
  background:
    radial-gradient(circle at 11px 50%,#fff 0 1.4px,#ffb13d 2px,rgba(150,80,0,.45) 3.4px,transparent 4.2px),
    radial-gradient(90% 140% at 50% 120%,rgba(255,170,50,.5),transparent 70%),
    linear-gradient(180deg,#fff8e8,#ffe9c2);
}


/* ==========================================================================
   NÚT HERO + Ô DANH MỤC (Switch / Android / Steam) — kiểu cơ khí: vát góc chéo, viền thép, đinh tán
   ========================================================================== */
html body .hero-cta .btn{
  --steel:linear-gradient(135deg,#a9bad6,#3a4a66 50%,#8196b6);
  border:2px solid transparent !important;border-radius:0 !important;box-shadow:none !important;
  clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);padding:10px 22px;white-space:nowrap;
  font-family:"JetBrains Mono",ui-monospace,monospace;font-weight:800;font-size:11.5px;letter-spacing:.02em;text-transform:uppercase;
}
html body .hero-cta .btn-primary{
  --steel:linear-gradient(135deg,#ffe6a8,#a85f00 50%,#f5ad33);
  background:
    linear-gradient(to bottom right,transparent calc(50% - .5px),#ffe6a8 calc(50% - .5px) calc(50% + 2px),transparent calc(50% + 2px)) left top/10px 10px no-repeat border-box,
    linear-gradient(to bottom right,transparent calc(50% - 2px),#ffe6a8 calc(50% - 2px) calc(50% + .5px),transparent calc(50% + .5px)) right bottom/10px 10px no-repeat border-box,
    radial-gradient(circle at 10px 50%,#fff3cf 0 1.3px,#8a5200 1.9px,rgba(0,0,0,.5) 3.2px,transparent 4px) padding-box,
    radial-gradient(circle at calc(100% - 10px) 50%,#fff3cf 0 1.3px,#8a5200 1.9px,rgba(0,0,0,.5) 3.2px,transparent 4px) padding-box,
    linear-gradient(180deg,#ffd774,#e8971a 55%,#d98a10) padding-box,
    var(--steel) border-box;
  color:#241500;text-shadow:0 1px 0 rgba(255,255,255,.35);
}
html body .hero-cta .btn-ghost{
  --steel:linear-gradient(135deg,#e6d9ff,#5b34b0 50%,#c6a5ff);
  background:
    linear-gradient(to bottom right,transparent calc(50% - .5px),#e6d9ff calc(50% - .5px) calc(50% + 2px),transparent calc(50% + 2px)) left top/10px 10px no-repeat border-box,
    linear-gradient(to bottom right,transparent calc(50% - 2px),#e6d9ff calc(50% - 2px) calc(50% + .5px),transparent calc(50% + .5px)) right bottom/10px 10px no-repeat border-box,
    radial-gradient(circle at 10px 50%,#f6eeff 0 1.3px,#5a2a99 1.9px,rgba(0,0,0,.5) 3.2px,transparent 4px) padding-box,
    radial-gradient(circle at calc(100% - 10px) 50%,#f6eeff 0 1.3px,#5a2a99 1.9px,rgba(0,0,0,.5) 3.2px,transparent 4px) padding-box,
    linear-gradient(180deg,#a678ff,#b72fd0 60%,#9a22bd) padding-box,
    var(--steel) border-box;
  color:#fff;text-shadow:0 1px 0 rgba(40,0,70,.4);
}
html body .hero-cats .cat-tile{
  --steel:linear-gradient(135deg,#8ea3c2,#2f3f5a 50%,#6f86a8);
  border:2px solid transparent !important;border-radius:0 !important;
  clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px);
  background:
    linear-gradient(to bottom right,transparent calc(50% - .5px),#8ea3c2 calc(50% - .5px) calc(50% + 2px),transparent calc(50% + 2px)) left top/12px 12px no-repeat border-box,
    linear-gradient(to bottom right,transparent calc(50% - 2px),#8ea3c2 calc(50% - 2px) calc(50% + .5px),transparent calc(50% + .5px)) right bottom/12px 12px no-repeat border-box,
    linear-gradient(135deg,rgba(6,16,31,.92),rgba(18,35,59,.92)) padding-box,
    var(--steel) border-box;
}
html body .hero-cats .cat-tile::before{width:4px;opacity:1;}
html body .hero-cats .cat-tile:hover{--steel:linear-gradient(135deg,var(--acc),#2f3f5a 55%,var(--acc));box-shadow:none;}
html body .hero-cats .cat-ico{border-radius:0;clip-path:polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px);}
html body .hero-cats .cat-txt b{font-family:"JetBrains Mono",ui-monospace,monospace;letter-spacing:.03em;}
html[data-theme="light"] body .hero-cats .cat-tile{
  --steel:linear-gradient(135deg,#a9bad6,#5d7396 50%,#8da1c3);
  background:
    linear-gradient(to bottom right,transparent calc(50% - .5px),#a9bad6 calc(50% - .5px) calc(50% + 2px),transparent calc(50% + 2px)) left top/12px 12px no-repeat border-box,
    linear-gradient(to bottom right,transparent calc(50% - 2px),#a9bad6 calc(50% - 2px) calc(50% + .5px),transparent calc(50% + .5px)) right bottom/12px 12px no-repeat border-box,
    linear-gradient(135deg,#ffffff,#e6edfa) padding-box,
    var(--steel) border-box;
}
html[data-theme="light"] body .hero-cats .cat-tile:hover{--steel:linear-gradient(135deg,var(--acc),#5d7396 55%,var(--acc));}
@media(max-width:560px){
  html body .hero-cats .cat-txt b{font-family:inherit;letter-spacing:0;font-size:12px;}
  html body .hero-cats .cat-tile{padding:8px 8px 8px 10px;}
}


/* ==========================================================================
   Ô BẢNG XẾP HẠNG (.rank-panel) — khung HUD cơ khí: vát góc, gờ nhô giữa cạnh trên/dưới có vầng sáng,
   viền đôi neon, nền xanh sẫm có vân kẻ ngang; tiêu đề vát góc kiểu thép + đinh tán; số hạng dạng lục giác.
   Giao diện sáng: viền vàng, nền kem.
   ========================================================================== */
html body .rank-panel{
  --pf:#19e6ff;--pf2:#bff6ff;--pglow:rgba(25,230,255,.65);
  position:relative;isolation:isolate;border:0 !important;border-radius:0 !important;background:none !important;
  padding:30px 26px 22px !important;
  filter:drop-shadow(0 0 2px var(--pf)) drop-shadow(0 0 9px var(--pglow));
}
html body .rank-panel::before{
  content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;
  clip-path:polygon(18.00px 8px,calc(50% - 78px) 8px,calc(50% - 64px) 0px,calc(50% + 64px) 0px,calc(50% + 78px) 8px,calc(100% - 18.00px) 8px,calc(100% - 0px) 26.00px,calc(100% - 0px) calc(100% - 26.00px),calc(100% - 18.00px) calc(100% - 8px),calc(50% + 78px) calc(100% - 8px),calc(50% + 64px) calc(100% - 0px),calc(50% - 64px) calc(100% - 0px),calc(50% - 78px) calc(100% - 8px),18.00px calc(100% - 8px),0px calc(100% - 26.00px),0px 26.00px);
  background:
    linear-gradient(var(--pf2),var(--pf2)) center top/128px 3px no-repeat,
    linear-gradient(var(--pf2),var(--pf2)) center bottom/128px 3px no-repeat,
    linear-gradient(135deg,var(--pf),#0a7fb5 50%,var(--pf));
}
html body .rank-panel::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  clip-path:polygon(19.24px 11px,calc(50% - 78px) 11px,calc(50% - 64px) 3px,calc(50% + 64px) 3px,calc(50% + 78px) 11px,calc(100% - 19.24px) 11px,calc(100% - 3px) 27.24px,calc(100% - 3px) calc(100% - 27.24px),calc(100% - 19.24px) calc(100% - 11px),calc(50% + 78px) calc(100% - 11px),calc(50% + 64px) calc(100% - 3px),calc(50% - 64px) calc(100% - 3px),calc(50% - 78px) calc(100% - 11px),19.24px calc(100% - 11px),3px calc(100% - 27.24px),3px 27.24px);
  background:
    radial-gradient(ellipse 120px 26px at 50% 0,rgba(120,240,255,.75),transparent 75%),
    radial-gradient(ellipse 120px 26px at 50% 100%,rgba(120,240,255,.75),transparent 75%),
    repeating-linear-gradient(0deg,rgba(120,200,255,.07) 0 1px,transparent 1px 4px),
    radial-gradient(ellipse 85% 75% at 50% 50%,#08507d 0%,#042f4c 60%,#031c30 100%);
  box-shadow:inset 0 0 40px rgba(25,230,255,.35);
}
/* tiêu đề ô: vát góc, viền thép cam, đinh tán hai đầu */
html body .rank-panel-head{
  border:2px solid transparent !important;border-radius:0 !important;padding:10px 20px !important;
  clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
  background:
    radial-gradient(circle at 9px 50%,#fff3cf 0 1.3px,#a86a00 1.9px,rgba(0,0,0,.5) 3.2px,transparent 4px) padding-box,
    radial-gradient(circle at calc(100% - 9px) 50%,#fff3cf 0 1.3px,#a86a00 1.9px,rgba(0,0,0,.5) 3.2px,transparent 4px) padding-box,
    linear-gradient(180deg,rgba(255,255,255,.06),transparent 45%) padding-box,
    linear-gradient(180deg,#14233d,#0a1426) padding-box,
    linear-gradient(135deg,#ffe0a0,#a85f00 50%,#f5ad33) border-box !important;
}
html body .rank-panel-head h3{padding-left:8px;font-family:"JetBrains Mono",ui-monospace,monospace;letter-spacing:.02em;}
/* số hạng: lục giác */
html body .rank-n{
  border:0 !important;border-radius:0 !important;width:28px;height:28px;
  clip-path:polygon(25% 3%,75% 3%,100% 50%,75% 97%,25% 97%,0 50%);
  background:linear-gradient(180deg,#1d3050,#0d1a2e);
}
html body .rank-n.r1{background:linear-gradient(180deg,#ffd774,#e8971a);}
html body .rank-n.r2{background:linear-gradient(180deg,#e3eaf4,#a9b6c9);}
html body .rank-n.r3{background:linear-gradient(180deg,#eeaa6a,#c07a36);}
html body .rank-thumb{border-radius:0 !important;clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);border-color:rgba(120,200,255,.5);}
html body .rank-row{border-radius:0 !important;border-bottom:1px solid rgba(90,170,230,.3);}
html body .rank-name{color:#eaf6ff;}
html body .rank-val{color:#d8f4ff;}
html body .rank-empty{color:#a9c6dd;}

html[data-theme="light"] body .rank-panel{--pf:#f0a400;--pf2:#ffe3a0;--pglow:rgba(240,164,0,.5);}
html[data-theme="light"] body .rank-panel::before{background:
    linear-gradient(var(--pf2),var(--pf2)) center top/128px 3px no-repeat,
    linear-gradient(var(--pf2),var(--pf2)) center bottom/128px 3px no-repeat,
    linear-gradient(135deg,#f0a400,#c77f00 50%,#f0a400);}
html[data-theme="light"] body .rank-panel::after{background:
    radial-gradient(ellipse 120px 26px at 50% 0,rgba(255,205,90,.7),transparent 75%),
    radial-gradient(ellipse 120px 26px at 50% 100%,rgba(255,205,90,.7),transparent 75%),
    repeating-linear-gradient(0deg,rgba(200,140,40,.06) 0 1px,transparent 1px 4px),
    linear-gradient(180deg,#fffaf0,#ffefd0);box-shadow:inset 0 0 36px rgba(240,164,0,.25);}
html[data-theme="light"] body .rank-name,html[data-theme="light"] body .rank-val{color:#1f2a44;}
html[data-theme="light"] body .rank-row{border-bottom-color:rgba(200,140,40,.35);}
html[data-theme="light"] body .rank-empty{color:#6b5a3a;}


/* ==========================================================================
   NÚT "XEM ĐẦY ĐỦ" (.btn-full) — kiểu HUD: biểu tượng tròn có vòng răng cưa bên trái + thanh chữ vát mũi nhọn bên phải,
   viền mảnh trên/dưới, phát sáng neon xanh ngọc. Giao diện sáng: màu vàng.
   ========================================================================== */
html body .btn-full{
  --bf:#19e6ff;--bf2:#bff6ff;--bfg:rgba(25,230,255,.6);
  --bf-emb:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Ccircle cx='23' cy='23' r='20.5' fill='none' stroke='%2319e6ff' stroke-width='5' stroke-dasharray='7.2 3.6'/%3E%3Ccircle cx='23' cy='23' r='15' fill='%2306334a' stroke='%2319e6ff' stroke-width='1.6'/%3E%3Ccircle cx='23' cy='23' r='12' fill='%232fe9ff' opacity='.55'/%3E%3C/svg%3E");
  position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:10px;
  height:46px;padding:0 34px 0 62px !important;border:0 !important;border-radius:0 !important;background:none !important;box-shadow:none !important;
  color:#fff;text-shadow:0 1px 2px rgba(0,30,45,.8);
  font-family:"JetBrains Mono",ui-monospace,monospace;font-size:13px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;
  filter:drop-shadow(0 0 2px var(--bf)) drop-shadow(0 0 8px var(--bfg));
  transition:transform .18s ease,filter .18s ease;
}
/* thanh chữ: vát mũi nhọn bên phải, dải sáng mảnh phía trên */
html body .btn-full::after{
  content:"";position:absolute;left:40px;right:0;top:9px;bottom:9px;z-index:-1;pointer-events:none;
  clip-path:polygon(0 0,calc(100% - 18px) 0,100% 50%,calc(100% - 18px) 100%,0 100%);
  background:
    linear-gradient(90deg,rgba(255,255,255,.25),transparent 40%) top/100% 3px no-repeat,
    linear-gradient(180deg,#2de6f6 0 3px,#0f93ab 3px 52%,#0a6c82 52% 100%);
}
/* biểu tượng tròn + 2 đường viền mảnh trên/dưới chạy dọc thanh */
html body .btn-full::before{
  content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:
    var(--bf-emb) left top 0/46px 46px no-repeat,
    linear-gradient(var(--bf),var(--bf)) left 50px top 3px/calc(100% - 78px) 1.5px no-repeat,
    linear-gradient(var(--bf),var(--bf)) left 56px bottom 3px/calc(100% - 96px) 1.5px no-repeat,
    linear-gradient(var(--bf2),var(--bf2)) right 24px bottom 3px/14px 1.5px no-repeat;
}
html body .btn-full svg{position:absolute;left:12px;top:50%;width:22px;height:22px;transform:translateY(-50%);color:#032a3a;stroke-width:2.2;transition:transform .18s ease;}
html body .btn-full i{color:var(--bf2);font-size:20px;}
html body .btn-full span{white-space:nowrap;}
html body .btn-full:hover{transform:translateY(-2px);box-shadow:none !important;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 12px var(--bfg)) brightness(1.12);}
html body .btn-full:hover svg{color:#032a3a;transform:translateY(-50%) rotate(90deg);}
html body .btn-full:hover i{color:#fff;}

html[data-theme="light"] body .btn-full{--bf:#f0a400;--bf2:#fff0c2;--bfg:rgba(240,164,0,.55);--bf-emb:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Ccircle cx='23' cy='23' r='20.5' fill='none' stroke='%23f0a400' stroke-width='5' stroke-dasharray='7.2 3.6'/%3E%3Ccircle cx='23' cy='23' r='15' fill='%23fff3d6' stroke='%23f0a400' stroke-width='1.6'/%3E%3Ccircle cx='23' cy='23' r='12' fill='%23ffc94d' opacity='.55'/%3E%3C/svg%3E");text-shadow:0 1px 2px rgba(90,50,0,.6);}
html[data-theme="light"] body .btn-full::after{background:
    linear-gradient(90deg,rgba(255,255,255,.35),transparent 40%) top/100% 3px no-repeat,
    linear-gradient(180deg,#ffd774 0 3px,#e8971a 3px 52%,#c97a08 52% 100%);}
html[data-theme="light"] body .btn-full svg{color:#6b3f00;}
@media(max-width:640px){html body .btn-full{height:42px;padding:0 30px 0 56px !important;font-size:12px;}}

/* giao diện sáng: thanh tiêu đề ô xếp hạng nền tối → chữ phải sáng */
html[data-theme="light"] body .rank-panel-head h3{color:#eaf6ff;}
html[data-theme="light"] body .rank-panel-head .rank-month,html[data-theme="light"] body .rank-panel-head .rank-toggle{color:#ffc65c;}
html[data-theme="light"] body .rank-n:not(.r1):not(.r2):not(.r3){color:#cfe3f7;}

/* chữ tiêu đề ô bảng xếp hạng: trắng (cả giao diện tối và sáng) */
html body .rank-panel-head h3,html[data-theme="light"] body .rank-panel-head h3{color:#fff !important;}


/* ==========================================================================
   Ô LIÊN HỆ (.cp-card) — khung HUD cam kiểu kim loại: vỏ đen vát góc có gờ nhô giữa cạnh trên/dưới,
   viền cam phát sáng, bảng lõi tối bo góc bên trong, vạch sáng cam ở giữa và hai bên.
   ========================================================================== */
html body .cp-grid{gap:26px;filter:drop-shadow(0 0 3px rgba(255,120,20,.75)) drop-shadow(0 0 14px rgba(255,100,10,.4));}
html body .cp-card{
  --oc:#ff8a1f;--oc2:#ffc35c;
  position:relative;isolation:isolate;border:0 !important;border-radius:0 !important;box-shadow:none !important;
  padding:44px 50px !important;gap:12px;
  background:linear-gradient(135deg,var(--oc2),var(--oc) 45%,#b34a00) !important;
  clip-path:polygon(24.00px 10px,calc(50% - 92px) 10px,calc(50% - 76px) 0px,calc(50% + 76px) 0px,calc(50% + 92px) 10px,calc(100% - 24.00px) 10px,calc(100% - 0px) 34.00px,calc(100% - 0px) calc(100% - 34.00px),calc(100% - 24.00px) calc(100% - 10px),calc(50% + 92px) calc(100% - 10px),calc(50% + 76px) calc(100% - 0px),calc(50% - 76px) calc(100% - 0px),calc(50% - 92px) calc(100% - 10px),24.00px calc(100% - 10px),0px calc(100% - 34.00px),0px 34.00px);
  transition:transform .2s ease;
}
/* vỏ kim loại tối + vạch sáng cam */
html body .cp-card::before{
  content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;
  clip-path:polygon(25.24px 13px,calc(50% - 92px) 13px,calc(50% - 76px) 3px,calc(50% + 76px) 3px,calc(50% + 92px) 13px,calc(100% - 25.24px) 13px,calc(100% - 3px) 35.24px,calc(100% - 3px) calc(100% - 35.24px),calc(100% - 25.24px) calc(100% - 13px),calc(50% + 92px) calc(100% - 13px),calc(50% + 76px) calc(100% - 3px),calc(50% - 76px) calc(100% - 3px),calc(50% - 92px) calc(100% - 13px),25.24px calc(100% - 13px),3px calc(100% - 35.24px),3px 35.24px);
  background:
    linear-gradient(var(--oc2),var(--oc2)) center top 3px/130px 3px no-repeat,
    linear-gradient(var(--oc2),var(--oc2)) center bottom 3px/130px 3px no-repeat,
    radial-gradient(ellipse 120px 22px at 50% 0,rgba(255,150,50,.65),transparent 75%),
    radial-gradient(ellipse 120px 22px at 50% 100%,rgba(255,150,50,.65),transparent 75%),
    linear-gradient(var(--oc),var(--oc)) left 6px center/3px 36% no-repeat,
    linear-gradient(var(--oc),var(--oc)) right 6px center/3px 36% no-repeat,
    repeating-linear-gradient(0deg,rgba(255,255,255,.03) 0 1px,transparent 1px 4px),
    linear-gradient(180deg,#2b2c31,#15161a 55%,#0d0e11);
}
/* bảng lõi tối bên trong, viền cam sáng */
html body .cp-card::after{
  content:"";position:absolute;inset:16px 22px;z-index:-1;pointer-events:none;border-radius:10px;
  border:2px solid var(--oc);
  background:radial-gradient(ellipse 80% 90% at 50% 50%,#17191e,#08090b);
  box-shadow:0 0 10px rgba(255,120,20,.55),inset 0 0 18px rgba(255,110,20,.28);
  transition:box-shadow .2s ease,border-color .2s ease;
}
html body .cp-card:hover{transform:translateY(-4px);border-color:transparent;}
html body .cp-card:hover::after{border-color:var(--oc2);box-shadow:0 0 20px rgba(255,150,40,.9),inset 0 0 26px rgba(255,130,30,.5);}
html body .cp-card strong{color:#fff;}
html body .cp-addr{color:#ffb866;}
html body .cp-card p{color:#c8ccd6;}
html body .cp-go{color:var(--oc2);}
@media(max-width:600px){html body .cp-card{padding:38px 34px !important;}html body .cp-card::after{inset:14px 16px;}}


/* ==========================================================================
   NÚT "THAM GIA DISCORD" (.tk-dc-btn) — dùng ảnh khung cổ phong (thanh bạc viền đỏ + mây vàng): assets/discord-frame.png
   ========================================================================== */
html body .tk-dc-btn{
  position:relative;display:flex;align-items:center;justify-content:center;
  width:100%;aspect-ratio:392/121;height:auto;box-sizing:border-box;
  padding:5% 7% 3% 20% !important;border:0 !important;border-radius:0 !important;
  background:url("discord-frame.png") center/100% 100% no-repeat !important;box-shadow:none !important;
  color:#8a0f12 !important;text-shadow:0 1px 0 rgba(255,255,255,.8);
  font-weight:900;letter-spacing:.08em;white-space:nowrap;
  filter:drop-shadow(0 4px 6px rgba(0,0,0,.45)) drop-shadow(0 0 8px rgba(242,177,52,.35));
  transition:transform .2s ease,filter .2s ease;
}
html body .tk-dc-btn::before,html body .tk-dc-btn::after{content:none !important;}
html body .tk-dc-btn:hover{filter:drop-shadow(0 8px 10px rgba(0,0,0,.5)) drop-shadow(0 0 14px rgba(255,200,80,.7)) brightness(1.06);transform:translateY(-3px);}
html[data-theme="light"] body .tk-dc-btn{filter:drop-shadow(0 4px 6px rgba(60,40,20,.35)) drop-shadow(0 0 8px rgba(242,177,52,.4));}
@media(max-width:480px){html body .tk-dc-btn{font-size:12.5px;letter-spacing:.04em;}}


/* ==========================================================================
   Ô SẮP XẾP + Ô TÌM KIẾM (.sort-wrap / .search-box) — kiểu cơ khí giống thẻ chip:
   vát góc chéo, viền thép, đinh tán, vân kim loại; focus/hover sáng viền cam
   ========================================================================== */
html body .toolbar-search{gap:12px;}
html body .toolbar-search .sort-wrap,
html body .toolbar-search .search-box{
  position:relative;isolation:isolate;border:0 !important;border-radius:0 !important;background:none !important;
  clip-path:polygon(11px 0,100% 0,100% calc(100% - 11px),calc(100% - 11px) 100%,0 100%,0 11px);
  font-family:"JetBrains Mono",ui-monospace,monospace;
  transition:transform .15s ease,filter .15s ease;
}
html body .toolbar-search .sort-wrap::before,
html body .toolbar-search .search-box::before{
  content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:linear-gradient(135deg,#9fb2cf,#3a4a66 45%,#8196b6);
  transition:background .15s ease;
}
html body .toolbar-search .sort-wrap::after,
html body .toolbar-search .search-box::after{
  content:"";position:absolute;inset:1.5px;z-index:-1;pointer-events:none;
  clip-path:polygon(9.9px 0,100% 0,100% calc(100% - 9.9px),calc(100% - 9.9px) 100%,0 100%,0 9.9px);
  background:
    radial-gradient(circle at 11px 50%,#e3ecfa 0 1.4px,#6a7d9c 2px,rgba(0,0,0,.55) 3.4px,transparent 4.2px),
    radial-gradient(circle at calc(100% - 11px) 50%,#e3ecfa 0 1.4px,#6a7d9c 2px,rgba(0,0,0,.55) 3.4px,transparent 4.2px),
    linear-gradient(180deg,rgba(255,255,255,.08),transparent 40%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px 3px),
    linear-gradient(180deg,#1c2a45,#0d172a);
}
/* ô sắp xếp */
html body .toolbar-search .sort-wrap{min-width:150px;}
html body .toolbar-search .sort-wrap .sort-select{
  display:block;width:100%;box-sizing:border-box;background-color:transparent !important;border:0 !important;border-radius:0 !important;outline:none;
  padding:10px 38px 10px 28px;cursor:pointer;
  font:700 12px/1.2 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.07em;text-transform:uppercase;color:#cfdcf1;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%237fc0ff' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 22px center;
  transform:none !important;
}
html body .toolbar-search .sort-wrap .sort-select option{background:#0d172a;color:#e6f0ff;text-transform:none;letter-spacing:0;font-weight:600;}
/* ô tìm kiếm */
html body .toolbar-search .search-box{min-width:240px;padding:10px 26px 10px 28px;gap:10px;}
html body .toolbar-search .search-box .search-icon{font-size:12px;opacity:.9;filter:hue-rotate(160deg) saturate(1.4);}
html body .toolbar-search .search-box input{
  font:600 12.5px/1.2 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.04em;color:#e6f0ff;
}
html body .toolbar-search .search-box input::placeholder{color:#7f93b3;letter-spacing:.04em;}
/* hover / focus: viền cam nóng như thẻ đang chọn */
html body .toolbar-search .sort-wrap:hover,html body .toolbar-search .search-box:hover{transform:translateY(-2px);}
html body .toolbar-search .sort-wrap:hover::before,
html body .toolbar-search .sort-wrap:focus-within::before,
html body .toolbar-search .search-box:hover::before,
html body .toolbar-search .search-box:focus-within::before{background:linear-gradient(135deg,#ffd57e,#ff8a1f 50%,#ffb84a);}
html body .toolbar-search .sort-wrap:focus-within,html body .toolbar-search .search-box:focus-within{filter:drop-shadow(0 0 6px rgba(255,150,30,.65));}
html body .toolbar-search .search-box:focus-within::after{
  background:
    radial-gradient(circle at 11px 50%,#fff1c9 0 1.4px,#ff9a2e 2px,rgba(0,0,0,.5) 3.4px,transparent 4.2px),
    radial-gradient(circle at calc(100% - 11px) 50%,#fff1c9 0 1.4px,#ff9a2e 2px,rgba(0,0,0,.5) 3.4px,transparent 4.2px),
    radial-gradient(90% 140% at 50% 120%,rgba(255,140,30,.35),transparent 70%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 1px,transparent 1px 3px),
    linear-gradient(180deg,#3a2410,#1c1208);
}
/* giao diện sáng */
html[data-theme="light"] body .toolbar-search .sort-wrap::before,
html[data-theme="light"] body .toolbar-search .search-box::before{background:linear-gradient(135deg,#aab9d3,#5d7396 45%,#8da1c3);}
html[data-theme="light"] body .toolbar-search .sort-wrap::after,
html[data-theme="light"] body .toolbar-search .search-box::after{
  background:
    radial-gradient(circle at 11px 50%,#fff 0 1.4px,#8fa3c4 2px,rgba(60,80,120,.45) 3.4px,transparent 4.2px),
    radial-gradient(circle at calc(100% - 11px) 50%,#fff 0 1.4px,#8fa3c4 2px,rgba(60,80,120,.45) 3.4px,transparent 4.2px),
    linear-gradient(180deg,rgba(255,255,255,.7),transparent 45%),
    repeating-linear-gradient(90deg,rgba(40,70,120,.04) 0 1px,transparent 1px 3px),
    linear-gradient(180deg,#f4f7fd,#dbe4f3);
}
html[data-theme="light"] body .toolbar-search .sort-wrap .sort-select,
html[data-theme="light"] body .toolbar-search .search-box input{color:#14213d;}
html[data-theme="light"] body .toolbar-search .search-box input::placeholder{color:#6479a0;}
html[data-theme="light"] body .toolbar-search .sort-wrap .sort-select option{background:#fff;color:#14213d;}
html[data-theme="light"] body .toolbar-search .sort-wrap:hover::before,
html[data-theme="light"] body .toolbar-search .sort-wrap:focus-within::before,
html[data-theme="light"] body .toolbar-search .search-box:hover::before,
html[data-theme="light"] body .toolbar-search .search-box:focus-within::before{background:linear-gradient(135deg,#ffd57e,#f08a00 50%,#ffb84a);}
html[data-theme="light"] body .toolbar-search .search-box:focus-within::after{
  background:
    radial-gradient(circle at 11px 50%,#fff 0 1.4px,#ffb13d 2px,rgba(150,80,0,.45) 3.4px,transparent 4.2px),
    radial-gradient(circle at calc(100% - 11px) 50%,#fff 0 1.4px,#ffb13d 2px,rgba(150,80,0,.45) 3.4px,transparent 4.2px),
    linear-gradient(180deg,#fff8e8,#ffe9c2);
}

/* ===== Rê chuột: thẻ nổi lên nhẹ + ảnh bìa phóng 1.06 (giống thẻ ở trang Tìm kiếm) ===== */
html body .card{transition:transform .18s ease,border-color .18s,box-shadow .18s;}
html body .card:hover{transform:translateY(-4px);}
html body .card .card-cover.has-img{overflow:hidden;}
html body .card .card-cover .card-zoom{position:absolute;inset:0;z-index:0;pointer-events:none;background:inherit;transition:transform .45s ease;will-change:transform;}
html body .card:hover .card-cover .card-zoom{transform:scale(1.06);}
@media (prefers-reduced-motion:reduce){html body .card,html body .card .card-cover .card-zoom{transition:none;}html body .card:hover,html body .card:hover .card-cover .card-zoom{transform:none;}}
@media (hover:none){html body .card:hover,html body .card:hover .card-cover .card-zoom{transform:none;}}

/* ===== Thẻ game: nền thông tin giống thẻ ở trang Tìm kiếm + dải phân cách giữa ảnh và thông tin ===== */
html body .card,
html body #thuvien .card,html body #android .card,html body #steam .card,
html[data-theme="light"] body .card,
html[data-theme="light"] body #thuvien .card,html[data-theme="light"] body #android .card,html[data-theme="light"] body #steam .card{
  background:linear-gradient(180deg,var(--surface),var(--surface-2));
}
/* ảnh bìa: vạch quét mờ + tối dần xuống đáy để hòa vào phần thông tin */
html body .card .card-cover.has-img::after{
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.045) 0 1px,transparent 1px 3px),
    linear-gradient(180deg,rgba(4,10,24,.35) 0,transparent 30%,transparent 62%,rgba(6,14,30,.92) 100%);
}
/* dải phân cách phát sáng (đổi vàng khi rê chuột theo màu khung) */
html body .card .card-body{position:relative;}
html body .card .card-body::before{
  content:"";position:absolute;left:0;right:0;top:0;height:2px;z-index:2;pointer-events:none;
  background:linear-gradient(90deg,transparent,var(--cf),transparent);opacity:.9;
  box-shadow:0 0 10px var(--cf-glow);
}

/* Tên game luôn chừa sẵn chỗ 2 dòng: game tên 1 dòng vẫn giữ khoảng cách (Update / giá / nút) giống game tên 2 dòng.
   Game tên 2 dòng giữ nguyên như cũ. */
html body .card .card-body h3{min-height:calc(2 * 1.3em);}
