/* ==========================================================================
   icons.css – bộ icon SVG (templates/_icons.svg) cho mọi màn hình
   ========================================================================== */
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; display: inline-block; }
.art { width: 2.2em; height: 2.2em; flex: none; display: inline-block; vertical-align: middle; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.avatar { width: 2.4em; height: 2.4em; border-radius: 50%; }
.avatar-xs { width: 1.5em; height: 1.5em; margin-right: 2px; filter: none; }
.avatar-lg { width: 64px; height: 64px; }
.team-art { width: 2.4em; height: 2.4em; }
.medal { width: 2.4em; height: 2.4em; }
.logo-art { width: 1em; height: 1em; }
.ico-bolt { color: #fde047; filter: drop-shadow(0 0 6px rgba(245,158,11,.8)); }
.rot-up { transform: rotate(-90deg); }
.rot-down { transform: rotate(90deg); }

/* Huy hiệu tròn gradient + icon trắng */
.ibadge { --ib: linear-gradient(135deg, #818cf8, #4338ca); display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%;
  background: var(--ib); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.35), 0 4px 10px rgba(0,0,0,.3);
  border: 2px solid rgba(255,255,255,.7); flex: none; vertical-align: middle; margin-right: .35em; }
.ibadge .ico { width: 58%; height: auto; aspect-ratio: 1 / 1; vertical-align: 0; filter: drop-shadow(0 1px 0 rgba(0,0,0,.3)); }
.ib-indigo { --ib: linear-gradient(135deg, #818cf8, #4338ca); }
.ib-cyan { --ib: linear-gradient(135deg, #22d3ee, #2563eb); }
.ib-pink { --ib: linear-gradient(135deg, #f472b6, #be185d); }
.ib-amber { --ib: linear-gradient(135deg, #fcd34d, #ea580c); }
.ib-green { --ib: linear-gradient(135deg, #4ade80, #0f766e); }
.ib-violet { --ib: linear-gradient(135deg, #c084fc, #6d28d9); }
.ib-red { --ib: linear-gradient(135deg, #fb7185, #b91c1c); }
.ibadge-xl { width: clamp(6rem, 15vh, 9rem); height: clamp(6rem, 15vh, 9rem); border-width: 5px; margin: 0; }

/* Nút có icon */
.btn-game { flex-direction: row; flex-wrap: wrap; column-gap: .45em; }
.btn-game-xl { flex-direction: column; }
.btn-game .btn-icon .ico { width: 1.5em; height: 1.5em; }
.mute-btn { display: grid; place-items: center; }
.mute-btn .ico { width: 22px; height: 22px; }

/* Ô đáp án: hình ▲◆●■ dạng SVG */
.option-tile .opt-shape .ico { width: 60%; height: 60%; color: #fff; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); vertical-align: 0; }
.radar-btn .radar-ico .ico { width: 1.6em; height: 1.6em; }
.option-tile.picked::after { content: "Em chọn"; }
.countdown .num .ico { width: .9em; height: .9em; }
.boss-hp-text .ico { color: #fda4af; margin-right: 4px; }
.chip .ico { color: #a5f3fc; }

/* Landing */
.logo-rocket .logo-art { width: clamp(5.5rem, 14vw, 8.5rem); height: clamp(5.5rem, 14vw, 8.5rem); }
.landing-features li { display: inline-flex; align-items: center; }
.landing-crew { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.landing-crew .avatar { animation: crewFloat 3s ease-in-out infinite; }
.landing-crew .avatar:nth-child(2) { animation-delay: -.6s; }
.landing-crew .avatar:nth-child(3) { animation-delay: -1.2s; }
.landing-crew .avatar:nth-child(4) { animation-delay: -1.8s; }
.landing-crew .avatar:nth-child(5) { animation-delay: -2.4s; }
@keyframes crewFloat { 50% { transform: translateY(-12px); } }

/* Boss & Detective */
.projectile-art { width: 54px; height: 54px; }
.el .why .ico, .el .tap-count .ico { width: 1em; height: 1em; }
.el.tapped::after { content: ""; width: 26px; height: 26px; right: -8px; top: -12px; border-radius: 50%; border: 2px solid #fff;
  background: #EC4899 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/60% no-repeat; }
.el.reveal-hit::before { content: ""; width: 24px; height: 24px; left: -10px; top: -12px; border-radius: 50%; border: 2px solid #fff;
  background: #ef4444 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v7M12 17h.01' stroke='white' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Leaderboard */
.lb-medal .medal { width: 2.6rem; height: 2.6rem; }
.lb-emoji .team-art { width: 2.6rem; height: 2.6rem; }
.lb-compact .lb-medal .medal, .lb-compact .lb-emoji .team-art { width: 1.9rem; height: 1.9rem; }
.lb-avatars { display: flex; flex-wrap: wrap; gap: 2px; }
.lb-mvp { display: flex; align-items: center; gap: 4px; }
.lb-move .ico { width: .8em; height: .8em; }

/* Hộp thoại kiểu game */
.game-modal { background: linear-gradient(160deg, #1E1B4B, #312E81); color: var(--text); border: 3px solid rgba(165,180,252,.5); border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.game-modal .modal-header, .game-modal .modal-footer { border-color: rgba(255,255,255,.15); }
.game-modal .modal-title { display: flex; align-items: center; font-size: 1.6rem; }

/* ---------------- Host ---------------- */
.brand-rocket .logo-art { width: 2.2rem; height: 2.2rem; }
.round-dot { width: 46px; height: 46px; border-radius: 50%; padding: 0; background: none !important; border: 0 !important; }
.round-dot .ibadge { width: 46px; height: 46px; margin: 0; }
.round-dot.done .ibadge { --ib: linear-gradient(135deg, #4ade80, #0f766e); }
.round-intro .ibadge-xl { animation: zoomIn .7s cubic-bezier(.34,1.56,.64,1), crewFloat 3s ease-in-out .7s infinite; box-shadow: 0 0 50px rgba(236,72,153,.6), inset 0 -6px 0 rgba(0,0,0,.25); }
.team-col-head .team-art { width: 2.2rem; height: 2.2rem; margin-right: 6px; }
.team-col-head .tname { display: inline-flex; align-items: center; min-width: 0; }
.team-col-head .rename { border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 10px; width: 32px; height: 32px; margin-left: 6px; display: inline-grid; place-items: center; cursor: pointer; }
.team-col-head .rename:hover { background: rgba(255,255,255,.3); }
.rename-input { width: 100%; max-width: 230px; padding: 4px 10px; border-radius: 12px; border: 3px solid #f9a8d4; font: 800 1.2rem var(--font-display); color: #1E1B4B; }
.member .avatar-xs { width: 1.6em; height: 1.6em; }
.member .kick .ico { width: .9em; height: .9em; }
.cannon .cannon-gun .team-art { width: 2.2rem; height: 2.2rem; }
.podium-step .medal { width: 4rem; height: 4rem; }
.podium-step .team-art { width: 3.4rem; height: 3.4rem; }
.podium-step .p-avatars { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.top-player { display: inline-flex; align-items: center; gap: 6px; }
.top-player .medal { width: 1.6em; height: 1.6em; }
.team-answer .ta-head .team-art { width: 2rem; height: 2rem; margin-right: 6px; }
.settings-hint { color: var(--muted); font-size: 1rem; }
.settings-table { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr; gap: 10px 14px; align-items: center; }
.settings-table .sh { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.settings-table .sr-name { display: flex; align-items: center; font-family: var(--font-display); font-size: 1.15rem; }
.settings-table .game-input { padding: 8px 12px; font-size: 1.1rem; border-radius: 14px; }
.settings-table small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }

/* ---------------- Join & Player ---------------- */
.logo-rocket.small .logo-art { width: 3.4rem; height: 3.4rem; }
.join-card h2 { display: flex; align-items: center; justify-content: center; }
.field-label .ico { color: #f9a8d4; }
.tp-emoji .team-art { width: 3.4rem; height: 3.4rem; }
.ap-emoji .avatar { width: 3rem; height: 3rem; }
.join-preview { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.join-preview .avatar, .join-preview .team-art { width: 2rem; height: 2rem; }
.pc-avatar { background: none !important; }
.pc-avatar .avatar { width: 56px; height: 56px; }
.pc-team .team-art { width: 1.3em; height: 1.3em; filter: none; }
.p-big-art .avatar, .p-big-art .medal, .p-big-art .team-art { width: 7rem; height: 7rem; animation: crewFloat 3s ease-in-out infinite; }
.p-big-art .ibadge { width: 6.5rem; height: 6.5rem; border-width: 4px; margin: 0; animation: crewFloat 3s ease-in-out infinite; }
.team-strip .avatar { width: 2.4rem; height: 2.4rem; }
.lock-emoji .ibadge, .r-emoji .ibadge { width: 5rem; height: 5rem; border-width: 4px; margin: 0; }
.rank-list .team-art, .rank-list .medal { width: 1.6em; height: 1.6em; }
.settings-table .game-input::placeholder { color: #a5b4fc; opacity: 1; font-weight: 700; }
.settings-table .game-input:disabled { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.2); color: #e0e7ff; cursor: not-allowed; }
.settings-table .game-input:disabled::placeholder { color: #c7d2fe; }
