/* Nối Từ Việt Online — scoped styles, no external assets or webfonts */
#ntv-game-root, #ntv-game-root * { box-sizing:border-box; }
#ntv-game-root { --ntv-cream:#fff2c8; --ntv-gold:#ffd15b; --ntv-gold-dark:#b35c12; --ntv-green:#004f42; --ntv-mint:#3ce5c3; --ntv-dark:#032d29; --ntv-red:#a33435; --ntv-white:#fff9e7; color:var(--ntv-white); font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif; line-height:1.4; max-width:540px; margin:0 auto 18px; position:relative; isolation:isolate; }
#ntv-game-root button, #ntv-game-root input { font:inherit; }
#ntv-game-root button { cursor:pointer; }
#ntv-game-root button:focus-visible,#ntv-game-root input:focus-visible { outline:3px solid #fff; outline-offset:2px; }
#ntv-game-root .ntv-loading {min-height:340px;display:grid;place-items:center;background:#004738;border:4px solid #f6c24f;border-radius:25px;color:#fff;font-size:1.2rem;font-weight:800}
#ntv-game-root .ntv-app-notice { position:absolute; z-index:8; left:5%;right:5%;top:25%; padding:14px; background:#033e36ec;color:white;border:2px solid #ffd879;border-radius:18px;text-align:center;font-weight:700;box-shadow:0 10px 30px #0007; }
#ntv-game-root .ntv-play { min-height:780px; position:relative; border:4px solid #f6c35d; border-radius:26px; overflow:hidden; padding:15px 15px 22px; background:radial-gradient(ellipse at 50% 18%,#0fae8c44,transparent 62%),linear-gradient(160deg,#005447,#022f2c 70%,#005247); box-shadow:0 6px 30px #00292250; }
#ntv-game-root .ntv-play:before { content:"";position:absolute;inset:0;pointer-events:none;opacity:.12;background:radial-gradient(circle at 10% 30%,#ffce6433,transparent 20%),radial-gradient(circle at 85% 70%,#4ac7d966,transparent 35%); }
#ntv-game-root .ntv-play > * { position:relative;z-index:1; }
#ntv-game-root .ntv-heading { text-align:center;color:var(--ntv-gold);margin:4px 0 12px;font-size:clamp(23px,5.8vw,34px);font-weight:1000;letter-spacing:.3px;text-shadow:0 3px 0 #6a2607,0 0 14px #ffc14d80; }
#ntv-game-root .ntv-topbar { display:flex;justify-content:space-between;align-items:center;gap:10px; }
#ntv-game-root .ntv-smallbtn { border:1.5px solid #ffdf8b;border-radius:22px;background:#005447;color:#fff7d5;padding:7px 12px;font-size:13px;font-weight:800;box-shadow:0 2px 0 #9d5a13;white-space:nowrap; }
#ntv-game-root .ntv-roomcode { text-align:center;font-weight:800;font-size:14px;color:#f8e7a2;margin:8px 0; }
#ntv-game-root .ntv-duel { display:grid;grid-template-columns:1fr 50px 1fr;gap:8px;align-items:center;margin:12px 0; }
#ntv-game-root .ntv-person {min-width:0;border:2px solid #bdad46;border-radius:18px;background:linear-gradient(135deg,#007c69,#003d35);text-align:center;padding:11px 7px;box-shadow:0 5px 14px #003026a0}
#ntv-game-root .ntv-person strong {display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:14px;}
#ntv-game-root .ntv-person small {color:#ffdc73;font-weight:800;}
#ntv-game-root .ntv-person.turn {box-shadow:0 0 0 3px #f9df7b,0 0 25px #ffcc4490}
#ntv-game-root .ntv-versus { font-size:21px;font-weight:1000;color:#ffbd49;text-align:center;text-shadow:0 2px #77270e; }
#ntv-game-root .ntv-boardplate { border:3px solid #ffd15b;border-radius:24px;background:linear-gradient(170deg,#fffef1,#ffe3a0);color:#003e32;text-align:center;padding:18px 12px;margin:15px 0 10px;box-shadow:inset 0 0 0 4px #fff5c3,0 5px 0 #a85d18,0 10px 25px #001d14a0; }
#ntv-game-root .ntv-boardplate small {display:block;font-size:14px;color:#01604d;font-weight:800}
#ntv-game-root .ntv-word {font-size:clamp(27px,7.8vw,43px);font-weight:1000;line-height:1.2;margin:7px 0;text-shadow:0 2px 0 #e4ac55; overflow-wrap:anywhere}
#ntv-game-root .ntv-next {font-size:16px;color:#88410a;font-weight:800}
#ntv-game-root .ntv-status {text-align:center;color:#ffe4a6;font-weight:800;margin:10px 0;font-size:14px;min-height:23px}
#ntv-game-root .ntv-timer {font-weight:1000;font-size:17px;color:#fff;}
#ntv-game-root .ntv-timer.urgent {color:#ff8b86;animation:ntvblink 1s infinite;}
@keyframes ntvblink {50%{opacity:.55}}
#ntv-game-root .ntv-input-row {display:flex;gap:8px;margin:12px 0;}
#ntv-game-root .ntv-field {width:100%;min-width:0;border:2px solid #e8c46a;border-radius:16px;padding:13px;background:#fffced;color:#003a30;font-weight:750;font-size:17px;box-shadow:inset 0 2px 4px #b0a26c33}
#ntv-game-root .ntv-send,#ntv-game-root .ntv-gold-btn {border:2px solid #fff0aa;border-radius:15px;background:linear-gradient(165deg,#ffec8b,#ffb43b 75%,#e76b22);color:#67310d;box-shadow:0 3px 0 #8f4d0d;padding:11px 16px;font-weight:1000;text-shadow:0 1px #fff8d8;white-space:nowrap;}
#ntv-game-root .ntv-send:disabled {filter:grayscale(.8);cursor:not-allowed;opacity:.65}
#ntv-game-root .ntv-tries {text-align:center;letter-spacing:3px;font-size:20px;margin:8px 0;}
#ntv-game-root .ntv-panel {border:2px solid #b9a94c;border-radius:18px;padding:12px;margin-top:14px;background:linear-gradient(140deg,#006757c9,#003d36e8);box-shadow:inset 0 0 0 2px #33baa52c;}
#ntv-game-root .ntv-panel h3 {margin:0 0 8px;color:#ffdb77;font-size:17px;text-shadow:0 2px #01392e;}
#ntv-game-root .ntv-scroll {overflow:auto;max-height:167px;scrollbar-width:thin;}
#ntv-game-root .ntv-line {padding:7px 6px;border-bottom:1px solid #ffffff25;font-size:13px;overflow-wrap:anywhere;}
#ntv-game-root .ntv-line:last-child {border:0}
#ntv-game-root .ntv-line small {color:#ffdf8b}
#ntv-game-root .ntv-chatline {display:flex;gap:6px;margin-top:8px}
#ntv-game-root .ntv-chatline .ntv-field {padding:9px 11px;font-size:14px}
#ntv-game-root .ntv-chatline .ntv-send {padding:8px 12px}
#ntv-game-root .ntv-actionline {display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:12px 0 0;}
#ntv-game-root .ntv-result {border:2px solid #ffe298;background:linear-gradient(#075445,#003e35);padding:15px;border-radius:20px;text-align:center;margin:12px 0;color:#fff4ca;}
#ntv-game-root .ntv-result h2 {margin:5px 0;color:#ffdb75}
#ntv-game-root .ntv-overlay {position:absolute;z-index:40;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,20,17,.83);padding:15px;backdrop-filter:blur(3px)}
#ntv-game-root .ntv-modal {width:100%;max-width:480px;max-height:85%;overflow:auto;border:3px solid #ffcc69;border-radius:25px;padding:16px;background:linear-gradient(155deg,#006d59,#003830 80%);box-shadow:0 14px 35px #001b1ad9;}
#ntv-game-root .ntv-modal-head {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
#ntv-game-root .ntv-modal h2 {margin:0;color:#ffe18c;font-size:23px;text-shadow:0 2px #653011}
#ntv-game-root .ntv-modal .ntv-scroll {max-height:48vh}
#ntv-game-root .ntv-modal .ntv-line {font-size:15px}
#ntv-game-root .ntv-modal .ntv-field {margin-bottom:5px}
#ntv-game-root .ntv-muted {color:#e9dab0;font-size:12px;margin:8px 0}
#ntv-game-root .ntv-pair {display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 2px;border-bottom:1px solid #ffffff33;font-size:14px}
#ntv-game-root .ntv-pair strong {overflow-wrap:anywhere}
#ntv-game-root .ntv-pair .ntv-smallbtn {font-size:11px}
#ntv-game-root .ntv-actions {display:flex;gap:6px;flex-wrap:wrap;align-items:center}
#ntv-game-root .ntv-tooltip {position:absolute;z-index:100;bottom:15px;left:5%;right:5%;text-align:center;background:#fff1a9;color:#633c0e;padding:10px 15px;border-radius:13px;border:2px solid #eeb94a;font-weight:850;box-shadow:0 5px 12px #1118;}
#ntv-game-root .ntv-empty {font-size:13px;color:#ffdfaa;text-align:center;padding:12px}
#ntv-game-root .ntv-link {color:#ffdb7f;text-decoration:underline;cursor:pointer}
#ntv-game-root .ntv-smallbtn:disabled {opacity:.48;cursor:default}
#ntv-game-root .ntv-wait {border:2px dashed #ffe38f;border-radius:18px;text-align:center;padding:25px 14px;color:#ffe7a1;margin-top:18px;font-size:18px;font-weight:800}
@media(max-width:410px){#ntv-game-root .ntv-play {padding:11px 9px 19px;min-height:730px}#ntv-game-root .ntv-person strong{font-size:12px}#ntv-game-root .ntv-heading{font-size:24px}#ntv-game-root .ntv-input-row{gap:5px}#ntv-game-root .ntv-send{padding:10px}#ntv-game-root .ntv-profile{font-size:10px}#ntv-game-root .ntv-cups{font-size:10px}}
@media(prefers-reduced-motion:reduce){#ntv-game-root *,#ntv-game-root *::before{animation:none!important;transition:none!important}}

/* v1.2.0 – waiting room, many players, and continuation-only input. */
#ntv-game-root .ntv-member-list { display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:8px;max-height:225px;overflow-y:auto;padding:3px;scrollbar-width:thin;margin:10px 0; }
#ntv-game-root .ntv-member-list .ntv-person {min-height:77px;display:flex;flex-direction:column;justify-content:center;gap:3px; }
#ntv-game-root .ntv-member-list .ntv-person .ntv-member-state {display:block;color:#c3ffe5;font-size:11px;font-weight:750;}
#ntv-game-root .ntv-member-list .ntv-person.ntv-out {filter:grayscale(.6);opacity:.72;}
#ntv-game-root .ntv-member-list .ntv-person.turn {border-color:#ffd979;}
#ntv-game-root .ntv-wait {padding:17px 12px;margin-top:13px;line-height:1.6;}
#ntv-game-root .ntv-wait small {font-size:12px;color:#fff2c2;}
#ntv-game-root .ntv-wait strong {display:inline-block;margin-top:7px;color:#ffdb6e;font-size:18px;}
#ntv-game-root .ntv-input-label {color:#fff5cb;font-size:14px;text-align:center;font-weight:800;margin:8px 0 2px;}
#ntv-game-root .ntv-continuation {align-items:stretch;}
#ntv-game-root .ntv-continuation .ntv-field {border-radius:0 13px 13px 0;border-left:0;flex:1;min-width:0;}
#ntv-game-root .ntv-prefix {display:flex;align-items:center;justify-content:center;border:2px solid #f7d175;border-radius:14px 0 0 14px;background:linear-gradient(155deg,#fff6c7,#f9c963);color:#4a3614;font-size:16px;font-weight:950;padding:7px 9px;max-width:34%;overflow-wrap:anywhere;min-width:45px;}
#ntv-game-root .ntv-continuation .ntv-send {padding:9px 12px;}
#ntv-game-root .ntv-preview {font-size:13px;min-height:20px;text-align:center;font-style:italic;color:#ffe293;padding:0 7px;overflow-wrap:anywhere;}
#ntv-game-root .ntv-gold-btn:disabled {filter:grayscale(.8);opacity:.55;cursor:not-allowed;}
#ntv-game-root .ntv-result button {margin:5px 3px;}
@media(max-width:410px){
  #ntv-game-root .ntv-member-list {grid-template-columns:repeat(2,minmax(0,1fr));}
  #ntv-game-root .ntv-continuation {gap:0;}
  #ntv-game-root .ntv-continuation .ntv-send {margin-left:6px;font-size:13px;padding:9px 7px;}
  #ntv-game-root .ntv-prefix {font-size:14px;padding:6px;}
  #ntv-game-root .ntv-continuation .ntv-field {font-size:14px;padding:10px 7px;}
}

/* v1.3.0 Google Sign-in */
#ntv-game-root .ntv-google-btn {display:inline-block;text-decoration:none;margin:8px 0 5px;padding:13px 19px;}
#ntv-game-root .ntv-auth-badge {font-size:14px;font-weight:700;color:#d3ffdd;border:1px solid #77d6a2;padding:10px;border-radius:12px;}

/* v1.4: all homepage controls are independent HTML buttons; no image contains UI labels. */
#ntv-game-root .ntv-home{min-height:940px;position:relative;overflow:hidden;border-radius:23px;border:3px solid #e9b64e;padding:13px;background:radial-gradient(circle at 50% 12%,#9cf9df 0,#2ac5ae 28%,transparent 50%),linear-gradient(160deg,#067e75 0,#006456 42%,#033c38 100%);box-shadow:0 8px 24px #0006;color:#fffbe6}
#ntv-game-root .ntv-home::before{content:'';pointer-events:none;position:absolute;inset:0;background:radial-gradient(circle at 5% 5%,#fff9b488 0 1px,transparent 4px),radial-gradient(circle at 80% 40%,#fff5ac99 0 2px,transparent 5px);background-size:85px 120px,143px 117px;opacity:.68}
#ntv-game-root .ntv-home>*{position:relative;z-index:1}
#ntv-game-root .ntv-home-header{display:flex;align-items:center;gap:10px;justify-content:space-between}
#ntv-game-root .ntv-brand{display:flex;gap:8px;align-items:center;color:#fff5bc;font-size:clamp(22px,5.7vw,34px);font-weight:1000;letter-spacing:-1px;line-height:1.05;text-shadow:0 3px 0 #003a3a,1px 4px 0 #884210,0 0 12px #ffd061}
#ntv-game-root .ntv-brand em{font-style:normal;color:#ffcd4b}
#ntv-game-root .ntv-brand small{display:block;letter-spacing:1px;font-weight:850;font-size:9px;color:#fff7d9;text-shadow:0 1px 2px #003831;line-height:1.7}
#ntv-game-root .ntv-brand-book{font-size:38px;filter:drop-shadow(0 4px 1px #085156)}
#ntv-game-root .ntv-icon-button{border:2px solid #fff4a6;border-radius:16px;background:linear-gradient(#4ae1f5,#067ac9);box-shadow:0 4px 0 #075473,0 6px 15px #003c5688;color:#fff;width:46px;min-height:46px;font-size:23px}
#ntv-game-root .ntv-player-strip{display:flex;align-items:stretch;gap:10px;margin-top:12px}
#ntv-game-root .ntv-profile-card,#ntv-game-root .ntv-cup-card{display:flex;align-items:center;border:2px solid #ffe28a;border-radius:18px;background:linear-gradient(150deg,#fff7cf,#ffcc72);color:#593311;box-shadow:0 4px 0 #8a501b,0 7px 14px #02403555;padding:7px;min-width:0;text-align:left}
#ntv-game-root .ntv-profile-card{flex:1 1 70%;gap:8px}
#ntv-game-root .ntv-cup-card{flex:0 0 27%;display:flex;justify-content:center;flex-direction:column;gap:0;text-align:center;background:linear-gradient(180deg,#a95f12 0%,#d99125 18%,#f5cf67 54%,#cf7a19 100%);color:#fffdf2;border-color:#ffe8a0;box-shadow:0 4px 0 #8a5318,0 8px 16px #73420f33,inset 0 1px 0 #fff4c8,inset 0 -1px 0 #b46a18;position:relative;overflow:hidden}
#ntv-game-root .ntv-cup-card>span{font-size:25px;line-height:1}#ntv-game-root .ntv-cup-card>strong{font-size:22px;line-height:1.15}#ntv-game-root .ntv-cup-card>small{font-size:9px;letter-spacing:1.5px}
#ntv-game-root .ntv-profile-avatar{font-size:28px;background:#fff7dc;border:2px solid #ffc95e;border-radius:14px;width:43px;height:43px;display:grid;place-items:center}
#ntv-game-root .ntv-profile-text{display:flex;flex-direction:column;min-width:0;flex:1}#ntv-game-root .ntv-profile-text strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#ntv-game-root .ntv-profile-text small{font-size:10px;color:#8c5221}#ntv-game-root .ntv-chevron{font-size:25px;color:#ac6b25}
#ntv-game-root .ntv-hero{position:relative;margin:14px -5px 7px;border:3px solid #ffdd83;border-radius:23px;overflow:hidden;min-height:235px;background:linear-gradient(#80e1f1,#c1f7ff 38%,#ffe6b6);box-shadow:0 6px 10px #003b3f9c}
#ntv-game-root .ntv-hero-art{height:clamp(200px,55vw,305px);width:100%;background:url('images/san-truong-chibi.webp') center 48%/cover no-repeat;animation:ntv-art-float 5s ease-in-out infinite alternate}
#ntv-game-root .ntv-hero-sun{position:absolute;z-index:2;right:9%;top:2%;color:#ffe970;font-size:34px;text-shadow:0 0 25px #fff}
#ntv-game-root .ntv-hero-slogan{position:absolute;left:10px;right:10px;bottom:8px;text-align:center;background:#fff5ccf2;border:2px solid #f9b64b;border-radius:18px;padding:6px 5px;color:#005b50;box-shadow:0 3px 0 #b96717}
#ntv-game-root .ntv-hero-slogan b{display:block;font-size:15px;color:#a64c1e}#ntv-game-root .ntv-hero-slogan span{font-size:11px;font-weight:800}
#ntv-game-root .ntv-mini-word{border:2px solid #ffdf7a;border-radius:18px;background:linear-gradient(115deg,#fffbee,#ffe5a0);box-shadow:0 4px 0 #ac681f;color:#68441f;padding:8px;text-align:center;margin:11px 2px 13px}
#ntv-game-root .ntv-mini-label{color:#006858;font-size:12px;font-weight:900;letter-spacing:.7px}#ntv-game-root .ntv-mini-word p{font-size:12px;margin:3px 0 5px}#ntv-game-root .ntv-mini-example{display:flex;gap:5px;justify-content:center;align-items:center;flex-wrap:wrap;font-size:clamp(10px,2.5vw,13px);font-weight:800}#ntv-game-root .ntv-mini-example span:first-child,#ntv-game-root .ntv-mini-example strong{background:#fff;border-radius:9px;padding:3px 5px;color:#005f54;border:1px solid #ffd07b}
#ntv-game-root .ntv-section-heading{text-align:center;color:#ffeb9f;font-size:20px;font-weight:950;text-shadow:0 2px 2px #3f3306;margin:12px 0 9px}
#ntv-game-root .ntv-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#ntv-game-root .ntv-mode{border:3px solid #fff0b1;border-radius:23px;min-height:153px;padding:10px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;box-shadow:inset 0 0 0 2px #ffffff7a,0 6px 0 #4e3923,0 8px 14px #002d38ba;color:white;text-shadow:0 1px 2px #3b1a12;transition:transform .16s,box-shadow .16s}
#ntv-game-root .ntv-mode-private{background:linear-gradient(155deg,#ffbdca,#fa6979 60%,#cc375b)}
#ntv-game-root .ntv-mode-bot{background:linear-gradient(155deg,#5ce8f7,#1896ef 60%,#1656c3)}
#ntv-game-root .ntv-mode-random{background:linear-gradient(155deg,#d89afc,#a659e7 60%,#7820b7)}
#ntv-game-root .ntv-mode-icon{font-size:clamp(34px,9vw,53px);filter:drop-shadow(0 5px 2px #09295a60);line-height:1.15;animation:ntv-bounce 3s ease-in-out infinite}
#ntv-game-root .ntv-mode:nth-child(2) .ntv-mode-icon{animation-delay:.45s}#ntv-game-root .ntv-mode:nth-child(3) .ntv-mode-icon{animation-delay:.9s}
#ntv-game-root .ntv-mode strong{font-size:clamp(12px,3.4vw,17px);line-height:1.1;font-weight:950}#ntv-game-root .ntv-mode small{font-size:clamp(9px,2.25vw,11px);line-height:1.2}
#ntv-game-root .ntv-mode:hover,#ntv-game-root .ntv-mode:focus-visible{transform:translateY(-4px);box-shadow:inset 0 0 0 2px #ffffff9c,0 9px 0 #4e3923,0 15px 20px #002d38ba}
#ntv-game-root .ntv-mode:active{transform:translateY(3px);box-shadow:inset 0 0 0 2px #ffffff9c,0 2px 0 #4e3923}
#ntv-game-root .ntv-home-panels{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}
#ntv-game-root .ntv-home-panel{min-width:0;border:2px solid #ffdd74;border-radius:17px;background:linear-gradient(150deg,#056b64,#06423e);padding:9px;box-shadow:0 4px 0 #ab6e2c}
#ntv-game-root .ntv-panel-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;margin-bottom:6px}#ntv-game-root .ntv-panel-head strong{font-size:clamp(11px,2.8vw,14px);color:#ffe59a}#ntv-game-root .ntv-panel-head button{font-size:10px;border:1px solid #ffd47c;background:#fff8d1;color:#785016;border-radius:12px;padding:3px 6px;font-weight:850}
#ntv-game-root .ntv-home-feed{min-height:78px;max-height:107px;overflow:hidden}#ntv-game-root .ntv-feed-line{display:flex;justify-content:space-between;gap:6px;align-items:center;border-bottom:1px solid #ffffff25;padding:5px 0;font-size:10px}#ntv-game-root .ntv-feed-line b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#ntv-game-root .ntv-feed-line span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffe7ae}#ntv-game-root .ntv-feed-empty{font-size:11px;opacity:.89;padding:7px}
#ntv-game-root .ntv-bottom-menu{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:20px}#ntv-game-root .ntv-bottom-menu button{border:2px solid #ffec9a;border-radius:15px;background:linear-gradient(#fff8d1,#ffc55f);box-shadow:0 4px 0 #945c1d;color:#59330e;font-size:clamp(10px,2.9vw,14px);font-weight:950;padding:6px 2px}#ntv-game-root .ntv-bottom-menu span{display:block;font-size:24px;line-height:1.25}
#ntv-game-root .ntv-footer-note{text-align:center;color:#fff7d6;font-size:11px;opacity:.83;margin:17px 0 2px}
#ntv-game-root .ntv-suggestion{text-align:center;color:#fff0c5;font-size:12px;line-height:1.45}#ntv-game-root .ntv-suggestion button{white-space:normal;margin:4px auto 10px}
@keyframes ntv-art-float{from{transform:scale(1.02) translateY(0)}to{transform:scale(1.06) translateY(-5px)}}
@keyframes ntv-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media(max-width:370px){#ntv-game-root .ntv-home{padding:8px}#ntv-game-root .ntv-hero{min-height:180px}#ntv-game-root .ntv-hero-art{height:200px}#ntv-game-root .ntv-modes{gap:5px}#ntv-game-root .ntv-mode{min-height:136px;border-radius:17px}#ntv-game-root .ntv-bottom-menu{gap:5px}}
@media(prefers-reduced-motion:reduce){#ntv-game-root .ntv-mode-icon,#ntv-game-root .ntv-hero-art{animation:none}}

#ntv-game-root .ntv-profile-avatar img{width:100%;height:100%;border-radius:11px;object-fit:cover}


/* v1.5 integrated account screen: all buttons/forms are real HTML controls. */
#ntv-game-root .ntv-auth-screen{position:relative;overflow:hidden;border:3px solid #ffd068;border-radius:22px;min-height:790px;padding:13px 11px 25px;background:linear-gradient(180deg,#70d0f6 0%,#d9f7f4 32%,#f7d7ab 100%);color:#4a2810;box-shadow:0 7px 25px #002d3670;font-family:system-ui,'Trebuchet MS',sans-serif}
#ntv-game-root .ntv-auth-header{display:flex;justify-content:space-between;align-items:center;gap:7px;position:relative;z-index:2}
#ntv-game-root .ntv-auth-header span{font-size:clamp(18px,4.5vw,27px);font-weight:1000;color:#fffbea;letter-spacing:-.7px;-webkit-text-stroke:.5px #256c9b;text-shadow:1px 3px #0a5990,0 5px 8px #00466b73}
#ntv-game-root .ntv-auth-back,#ntv-game-root .ntv-auth-help{background:linear-gradient(#47ceff,#0779c4);border:2px solid #fff8ac;box-shadow:0 3px 0 #11558d;border-radius:13px;padding:7px 9px;color:#fff;font-size:12px;font-weight:900}
#ntv-game-root .ntv-auth-help{font-size:20px;width:39px}
#ntv-game-root .ntv-auth-art{height:clamp(112px,33vw,190px);border:3px solid #fff6c5;border-radius:20px;margin-top:12px;background:#b3eeef url('images/dang-nhap-chibi.webp') center 40%/cover no-repeat;box-shadow:0 5px 0 #e4a23b}
#ntv-game-root .ntv-auth-intro{text-align:center;margin:12px 0 10px}
#ntv-game-root .ntv-auth-intro h1{font-size:clamp(21px,5.5vw,30px);color:#7f310c;margin:6px 0;font-weight:1000;text-shadow:0 2px #ffeebb}
#ntv-game-root .ntv-auth-intro p{font-weight:750;font-size:12px;line-height:1.4;margin:6px 0}
#ntv-game-root .ntv-auth-card{border:3px solid #eaa834;background:linear-gradient(145deg,#fff8d8,#fffefe 40%,#ffefc0);border-radius:25px;padding:17px 15px 22px;box-shadow:inset 0 0 0 2px #fff,0 5px 0 #bd731a,0 11px 18px #72542031;max-width:560px;margin:auto}
#ntv-game-root .ntv-auth-current{display:flex;justify-content:center;align-items:center;gap:11px;border-radius:19px;background:#fff1bc;border:2px solid #e8bc58;max-width:420px;margin:0 auto 13px;padding:9px;color:#5d3d1a;font-weight:750;font-size:12px}
#ntv-game-root .ntv-auth-user-icon{width:53px;height:53px;display:grid;place-items:center;flex:0 0 53px;background:#fff8e3;border:2px solid #dcaf48;border-radius:50%;font-size:30px}
#ntv-game-root .ntv-auth-current strong{display:block;color:#00604d;font-size:24px;line-height:1.2}
#ntv-game-root .ntv-auth-current small{display:block;color:#916330}
#ntv-game-root .ntv-auth-google{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;background:linear-gradient(#3dbbff,#147bdb 65%,#074cb2);color:white;border:3px solid #ffdc77;border-radius:40px;text-decoration:none;padding:12px 10px;font-size:clamp(17px,4.4vw,24px);font-weight:1000;text-shadow:0 2px 0 #04477a;box-shadow:inset 0 0 0 2px #e7f8ff,0 4px 0 #ba7421}
#ntv-game-root .ntv-google-letter{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:white;color:#4285f4;text-shadow:-2px -1px #ea4335,2px 1px #34a853;flex:0 0 39px;font-family:Arial,sans-serif;font-weight:900;font-size:29px}
#ntv-game-root .ntv-auth-warning{font-size:12px;text-align:center;background:#fff3d7;border:1px solid #e9b157;border-radius:13px;color:#965320;padding:11px}
#ntv-game-root .ntv-auth-separator{display:flex;align-items:center;gap:10px;margin:19px 0 11px;color:#865022;font-size:12px;font-weight:900}
#ntv-game-root .ntv-auth-separator::before,#ntv-game-root .ntv-auth-separator::after{content:'';height:1px;flex:1;background:#c99d5c}
#ntv-game-root .ntv-auth-tabs{display:flex;gap:7px;background:#f0e2d9;padding:5px;border-radius:14px;border:2px solid #e1bdae;margin-bottom:12px}
#ntv-game-root .ntv-auth-tabs button{flex:1;font-size:14px;border:0;border-radius:10px;padding:9px 4px;background:transparent;color:#7b4b33;font-weight:900}
#ntv-game-root .ntv-auth-tabs button.active{background:linear-gradient(#fffbc0,#ffc455);box-shadow:0 2px 0 #d5963c;color:#71340d}
#ntv-game-root .ntv-auth-form{display:flex;flex-direction:column;gap:6px;position:relative}
#ntv-game-root .ntv-auth-form label{font-size:13px;font-weight:850;color:#573a1a;margin-top:5px}
#ntv-game-root .ntv-auth-field{font:inherit;color:#264934;border:2px solid #cfb894;border-radius:18px;padding:11px 13px;font-size:15px;box-shadow:inset 0 1px 4px #81643d23;background:white;width:100%;min-width:0}
#ntv-game-root .ntv-auth-field:focus-visible{outline:3px solid #69bcff;outline-offset:1px}
#ntv-game-root .ntv-auth-avatar-label{text-align:center;font-size:13px;font-weight:850;color:#55300f;margin:2px 0}
#ntv-game-root .ntv-auth-avatar{display:flex;align-items:center;justify-content:center;gap:17px;margin:3px 0 8px}
#ntv-game-root .ntv-auth-avatar img{width:94px;height:94px;border-radius:22px;border:4px solid #ffd45c;box-shadow:0 3px 0 #915b24;object-fit:cover;background:#b3e5f5}
#ntv-game-root .ntv-auth-avatar button{background:linear-gradient(#fff8a9,#ffa725);color:#703210;font-weight:1000;font-size:18px;border:2px solid #c57a19;border-radius:13px;width:36px;height:38px}
#ntv-game-root .ntv-auth-primary{background:linear-gradient(#ffe996,#ffba35 75%,#e9821a);border:3px solid #fff4ae;box-shadow:0 4px 0 #a3621b;border-radius:22px;color:#6f250f;text-shadow:0 1px #fff7bb;font-size:18px;font-weight:1000;padding:12px;margin-top:10px;width:100%}
#ntv-game-root .ntv-auth-primary:disabled{opacity:.55;filter:grayscale(.65)}
#ntv-game-root .ntv-auth-outline{width:100%;background:#ecfaff;border:2px solid #5badde;border-radius:14px;padding:10px;color:#07548a;font-weight:900}
#ntv-game-root .ntv-auth-status{min-height:16px;font-size:13px;color:#a4231f;font-weight:800;margin:5px 0}
#ntv-game-root .ntv-auth-recover{align-self:center;color:#0b689e;font-size:13px;margin:7px 0}
#ntv-game-root .ntv-auth-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:#fff0c5;border:2px solid #e7b95d;border-radius:16px;margin-top:21px;padding:11px 5px}
#ntv-game-root .ntv-auth-benefits div{text-align:center;font-size:17px;display:flex;flex-direction:column;gap:4px;align-items:center}
#ntv-game-root .ntv-auth-benefits strong{font-size:10px;line-height:1.25;color:#5d421a}
#ntv-game-root .ntv-auth-footnote{font-size:11px;color:#735129;line-height:1.5;text-align:center;margin:14px 6px 0}
#ntv-game-root .ntv-auth-logout{display:block;margin:16px auto 5px;color:#a34116;text-decoration:underline;text-align:center;font-weight:850}
#ntv-game-root .ntv-account-linked{font-size:14px;padding:12px;border:2px solid #86cca5;border-radius:13px;background:#e6fff1;text-align:center;color:#1b6941;font-weight:850}
#ntv-game-root .ntv-auth-honeypot{position:absolute!important;left:-10000px!important;opacity:0!important;width:1px;height:1px;pointer-events:none}
@media(max-width:410px){#ntv-game-root .ntv-auth-screen{padding:9px 7px 19px}#ntv-game-root .ntv-auth-header span{font-size:18px}#ntv-game-root .ntv-auth-card{padding:13px 10px}#ntv-game-root .ntv-auth-avatar img{width:78px;height:78px}}

#ntv-game-root .ntv-person{position:relative;overflow:visible}
#ntv-game-root .ntv-person-badges{display:flex;justify-content:center;gap:4px;min-height:20px;margin-bottom:2px;flex-wrap:wrap}
#ntv-game-root .ntv-turn-badge,#ntv-game-root .ntv-out-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:2px 8px;font-size:10px;font-weight:900;line-height:1.2}
#ntv-game-root .ntv-turn-badge{background:#ffe27a;color:#714400;box-shadow:0 2px 0 #d49c1c}
#ntv-game-root .ntv-out-badge{background:#d9d9d9;color:#5a5a5a}
#ntv-game-root .ntv-turn-banner{margin:12px 0 8px;padding:11px 14px;border-radius:18px;background:linear-gradient(180deg,#fff1ba,#ffe28e);color:#0c594d;border:2px solid #f2c54d;box-shadow:0 4px 0 #c8892a;text-align:center}
#ntv-game-root .ntv-turn-banner strong{display:block;font-size:18px;line-height:1.15;margin-bottom:3px}
#ntv-game-root .ntv-turn-banner span{display:block;font-size:12px;font-weight:700;opacity:.9}
#ntv-game-root .ntv-status{display:flex;align-items:center;justify-content:center;gap:8px;min-height:24px;font-size:13px;color:#d8fff3;margin-bottom:6px}
#ntv-game-root .ntv-status-min{font-weight:800}
#ntv-game-root .ntv-tries{font-size:14px;font-weight:900;color:#fff0b5;text-align:center;margin-top:8px;min-height:20px}
#ntv-game-root .ntv-bubble{position:absolute;left:50%;bottom:100%;transform:translate(-50%,-12px);max-width:140px;padding:8px 12px;border-radius:16px;background:#fff;color:#21433a;border:3px solid #1e3a32;font-size:13px;font-weight:900;text-align:center;box-shadow:0 8px 22px #0000002e;z-index:4;animation:ntvBubbleIn .2s ease-out}
#ntv-game-root .ntv-bubble:after{content:"";position:absolute;left:50%;top:100%;transform:translateX(-50%);border:9px solid transparent;border-top-color:#fff;filter:drop-shadow(0 2px 0 #1e3a32)}
#ntv-game-root .ntv-bubble-error{color:#c51d1d;background:#fff4f4;border-color:#9f2323}
#ntv-game-root .ntv-bubble-ok{color:#0f7e43;background:#f2fff7;border-color:#1f7c4a}
@keyframes ntvBubbleIn{from{opacity:0;transform:translate(-50%,-2px)}to{opacity:1;transform:translate(-50%,-12px)}}
@media(max-width:410px){#ntv-game-root .ntv-turn-banner strong{font-size:16px}#ntv-game-root .ntv-bubble{font-size:12px;max-width:120px}}

/* v1.7 — Avatar và trạng thái người đang nhập trong phòng chơi */
#ntv-game-root .ntv-member-list{grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:12px;overflow:visible;max-height:none;padding:20px 7px 8px}
#ntv-game-root .ntv-person{position:relative;min-height:146px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:22px;padding:10px 7px;background:linear-gradient(160deg,#09594e,#012e35);border:2px solid #d3ad57;transition:transform .2s,box-shadow .2s}
#ntv-game-root .ntv-person.myself{border-color:#77ddff}
#ntv-game-root .ntv-person.turn{transform:translateY(-2px);background:linear-gradient(150deg,#087761,#00483e);border:3px solid #ffe77c;box-shadow:0 0 0 3px rgba(255,215,80,.25),0 0 26px rgba(255,216,82,.6)}
#ntv-game-root .ntv-person-avatar-wrap{position:relative;display:grid;place-items:center;width:68px;height:68px;margin-bottom:1px}
#ntv-game-root .ntv-person-avatar{width:64px;height:64px;object-fit:cover;border-radius:50%;border:3px solid #ffe29c;box-shadow:0 3px 10px #0006;background:linear-gradient(#b7e5ff,#fff4e3)}
#ntv-game-root .ntv-bot-avatar{display:grid;place-items:center;font-size:36px}
#ntv-game-root .ntv-turn-arrow{position:absolute;left:0;top:-18px;width:100%;text-align:center;color:#ffe274;text-shadow:0 2px 1px #b55e15;animation:ntvTurnBounce 1s ease-in-out infinite}
#ntv-game-root .ntv-person-name{max-width:100%;font-size:13px;font-weight:900;line-height:1.2}
#ntv-game-root .ntv-you{font-size:10px;color:#0b5445;background:#bcf7f0;border-radius:7px;padding:2px 4px}
#ntv-game-root .ntv-person .ntv-member-state{color:#c8ffeb;font-size:10px;font-weight:900}
#ntv-game-root .ntv-person.turn .ntv-member-state{color:#fff0a4;font-size:11px}
#ntv-game-root .ntv-typing-bubble{position:absolute;bottom:73px;left:50%;transform:translateX(-50%);background:#fffdfa;border:2px solid #dd9742;border-radius:25px;padding:8px 10px;box-shadow:0 4px 0 #7e592e33;display:flex;gap:5px;z-index:6;white-space:nowrap}
#ntv-game-root .ntv-typing-bubble:after{content:"";position:absolute;top:100%;left:50%;border:7px solid transparent;border-top-color:#fffdfa;transform:translateX(-50%)}
#ntv-game-root .ntv-typing-bubble i{width:6px;height:6px;background:#a76b2f;border-radius:50%;animation:ntvTyping .9s infinite alternate}
#ntv-game-root .ntv-typing-bubble i:nth-child(2){animation-delay:.18s}
#ntv-game-root .ntv-typing-bubble i:nth-child(3){animation-delay:.36s}
@keyframes ntvTyping{0%{opacity:.25;transform:translateY(0)}100%{opacity:1;transform:translateY(-4px)}}
@keyframes ntvTurnBounce{50%{transform:translateY(-6px)}}
@media(max-width:420px){#ntv-game-root .ntv-member-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}#ntv-game-root .ntv-person{min-height:141px!important}#ntv-game-root .ntv-person-avatar{width:60px;height:60px}#ntv-game-root .ntv-person-avatar-wrap{width:64px;height:64px}}
@media(prefers-reduced-motion:reduce){#ntv-game-root .ntv-typing-bubble i,#ntv-game-root .ntv-turn-arrow{animation:none}}

/* v1.8.0 — room discovery, privacy, passwords, responsive layouts */
#ntv-game-root{width:100%;max-width:960px;min-width:0;margin:0 auto 24px;padding:0 4px}
#ntv-game-root [hidden]{display:none!important}
#ntv-game-root .ntv-mode-search{background:linear-gradient(155deg,#5af6ca,#11b78f 58%,#087b78)}
#ntv-game-root .ntv-modes{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#ntv-game-root .ntv-mode{min-width:0;overflow-wrap:anywhere;min-height:150px}
#ntv-game-root .ntv-mode strong{font-size:clamp(13px,1.75vw,19px)}
#ntv-game-root .ntv-mode small{font-size:clamp(10px,1.15vw,13px)}
#ntv-game-root .ntv-hero-art{height:clamp(230px,36vw,340px);background-position:center 43%}
#ntv-game-root .ntv-room-identity{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;text-align:center;margin:7px auto 0}
#ntv-game-root .ntv-room-name{color:#fff5c8;font-size:clamp(18px,3.6vw,27px);font-weight:950;line-height:1.25;overflow-wrap:anywhere;max-width:100%}
#ntv-game-root .ntv-room-visibility{display:inline-flex;align-items:center;border:1px solid #ffdc76;background:#fff2c5;color:#6d430d;border-radius:50px;padding:4px 10px;font-weight:900;font-size:12px}
#ntv-game-root .ntv-room-visibility-private{background:#ffe4dd;color:#873724}
#ntv-game-root .ntv-room-visibility-public{background:#dbfff0;color:#007153}
#ntv-game-root .ntv-overlay{position:fixed;z-index:999;inset:0;min-height:100dvh;max-height:100dvh;overflow-y:auto;align-items:center;justify-content:center;padding:max(14px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overscroll-behavior:contain}
#ntv-game-root .ntv-modal{flex:none;max-width:540px;max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
#ntv-game-root .ntv-room-form{display:flex;flex-direction:column;gap:10px}
#ntv-game-root .ntv-room-form>label,#ntv-game-root .ntv-room-search-form label,#ntv-game-root .ntv-field-label{display:block;color:#ffebac;font-weight:900;font-size:14px}
#ntv-game-root .ntv-visibility-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#ntv-game-root .ntv-visibility-option{position:relative;display:block;cursor:pointer;min-width:0}
#ntv-game-root .ntv-visibility-option input{position:absolute;left:12px;top:13px;accent-color:#007e6a;width:17px;height:17px;z-index:1}
#ntv-game-root .ntv-visibility-option>span{display:flex;flex-direction:column;gap:3px;justify-content:center;padding:12px 9px 12px 34px;background:linear-gradient(150deg,#f3fff4,#d1f5e9);color:#0a6856;border:3px solid #a5d6b9;border-radius:17px;min-height:100px;box-shadow:0 3px 0 #0b4e3c}
#ntv-game-root .ntv-visibility-option:nth-child(2)>span{background:linear-gradient(150deg,#fff6e4,#ffe2c6);border-color:#f3c585;color:#944422}
#ntv-game-root .ntv-visibility-option input:checked+span{border-color:#ffe65c;box-shadow:0 0 0 3px #f7c53a85,0 4px 0 #a26019}
#ntv-game-root .ntv-visibility-option input:focus-visible+span{outline:3px solid #fff;outline-offset:2px}
#ntv-game-root .ntv-visibility-option strong{font-size:17px}
#ntv-game-root .ntv-visibility-option small{font-size:12px;line-height:1.3}
#ntv-game-root .ntv-secret-field{display:flex;flex-direction:column;gap:7px;padding:12px;border:1.5px dashed #ffd36a;border-radius:15px;background:#114e47}
#ntv-game-root .ntv-secret-field label{font-size:14px;font-weight:900;color:#ffdf8e}
#ntv-game-root .ntv-secret-field small{font-size:11px;line-height:1.5;color:#fff4d9}
#ntv-game-root .ntv-form-primary{display:block;width:100%;white-space:normal;min-height:48px;margin-top:4px}
#ntv-game-root .ntv-form-primary:disabled{opacity:.7;cursor:wait}
#ntv-game-root .ntv-form-error{font-size:13px;font-weight:850;color:#ffe39e;line-height:1.4;margin:2px 0;min-height:0}
#ntv-game-root .ntv-form-error:empty{display:none}
#ntv-game-root .ntv-room-search-form{display:flex;flex-direction:column;gap:7px}
#ntv-game-root .ntv-search-row{display:flex;align-items:stretch;gap:8px}
#ntv-game-root .ntv-search-row .ntv-field{flex:1;min-width:0;margin:0}
#ntv-game-root .ntv-search-row button{padding:8px 15px}
#ntv-game-root .ntv-search-help{font-size:12px;color:#fff0bf;margin:13px 0}
#ntv-game-root .ntv-room-search-results{max-height:min(55dvh,490px);min-height:80px;overflow-y:auto;display:flex;flex-direction:column;gap:9px;scrollbar-width:thin}
#ntv-game-root .ntv-room-result{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:11px;background:linear-gradient(145deg,#fff8dd,#ffdf9b);color:#4c3815;border:2px solid #ffdb83;border-radius:17px;box-shadow:0 2px 0 #986020}
#ntv-game-root .ntv-room-result-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
#ntv-game-root .ntv-room-result-info strong{font-size:16px;line-height:1.25;overflow-wrap:anywhere}
#ntv-game-root .ntv-room-result-info span{font-size:12px;font-weight:700;color:#72562c;line-height:1.4}
#ntv-game-root .ntv-room-result .ntv-smallbtn{white-space:normal;max-width:140px;flex:0 0 auto;line-height:1.3}
#ntv-game-root .ntv-join-preview{display:flex;flex-direction:column;gap:5px;padding:13px;background:#ffedb4;border:2px solid #ffda76;border-radius:17px;color:#5a350c;margin-bottom:15px}
#ntv-game-root .ntv-join-preview strong{font-size:18px;overflow-wrap:anywhere}
#ntv-game-root .ntv-join-preview span{font-size:12px;font-weight:800}
@media(max-width:720px){
  #ntv-game-root{max-width:620px;padding:0 3px}
  #ntv-game-root .ntv-modes{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #ntv-game-root .ntv-mode{min-height:143px}
  #ntv-game-root .ntv-mode strong{font-size:clamp(13px,3.9vw,19px)}
  #ntv-game-root .ntv-mode small{font-size:clamp(10px,2.7vw,13px)}
  #ntv-game-root .ntv-mode-icon{font-size:clamp(32px,9vw,54px)}
}
@media(max-width:390px){
  #ntv-game-root{padding:0 2px}
  #ntv-game-root .ntv-home{padding:9px}
  #ntv-game-root .ntv-modal{padding:12px 9px;border-radius:18px}
  #ntv-game-root .ntv-visibility-options{gap:6px}
  #ntv-game-root .ntv-visibility-option>span{padding:10px 6px 10px 29px;min-height:109px}
  #ntv-game-root .ntv-visibility-option input{left:8px;top:10px}
  #ntv-game-root .ntv-visibility-option strong{font-size:14px}
  #ntv-game-root .ntv-visibility-option small{font-size:10px}
  #ntv-game-root .ntv-room-result{align-items:stretch;flex-direction:column}
  #ntv-game-root .ntv-room-result .ntv-smallbtn{max-width:none;width:100%}
  #ntv-game-root .ntv-room-form .ntv-field,#ntv-game-root .ntv-search-row .ntv-field{font-size:16px}
  #ntv-game-root .ntv-room-identity{gap:6px}
  #ntv-game-root .ntv-search-row button{padding:8px 10px}
}
@media(prefers-reduced-motion:reduce){#ntv-game-root .ntv-visibility-option>span{transition:none}}


#ntv-game-root .ntv-cup-rule{margin:8px 0 12px;padding:10px 14px;border-radius:16px;background:#e8fff7;border:2px solid #5cb99b;color:#0f5f52;font-weight:800;text-align:center;box-shadow:0 3px 0 #2b8a72}
#ntv-game-root .ntv-room-grid{display:grid;grid-template-columns:1fr;gap:16px;align-items:start}
#ntv-game-root .ntv-chatbox{background:linear-gradient(180deg,#6aa48d,#53856f);border:3px solid #1b3932;border-radius:28px;box-shadow:0 12px 28px #00000020;overflow:hidden;min-height:320px;display:flex;flex-direction:column}
#ntv-game-root .ntv-chatbox-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#72af97;border-bottom:3px solid #1b3932}
#ntv-game-root .ntv-chat-icons{display:flex;gap:10px;flex-wrap:wrap}
#ntv-game-root .ntv-chat-icon,#ntv-game-root .ntv-chat-noti{width:42px;height:42px;border-radius:50%;border:3px solid #1b3932;background:#f3f0e9;display:inline-flex;align-items:center;justify-content:center;font-size:18px;box-shadow:0 3px 0 #2d4b44}
#ntv-game-root .ntv-chat-icon.active{background:#79f1cf}
#ntv-game-root .ntv-chatbox-body{padding:12px 10px 8px;display:flex;flex-direction:column;gap:12px;min-height:220px;max-height:460px}
#ntv-game-root .ntv-chat-item{display:flex;gap:10px;align-items:flex-end;max-width:100%}
#ntv-game-root .ntv-chat-item.mine{flex-direction:row-reverse}
#ntv-game-root .ntv-chat-avatar{width:52px;min-width:52px;height:52px;border-radius:50%;padding:3px;background:linear-gradient(180deg,#8ff9ff,#2db9ff);box-shadow:0 0 0 3px #ffffff55}
#ntv-game-root .ntv-chat-item.mine .ntv-chat-avatar{background:linear-gradient(180deg,#ffd05b,#ff6e3d)}
#ntv-game-root .ntv-chat-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block;background:#fff}
#ntv-game-root .ntv-chat-main{display:flex;flex-direction:column;gap:4px;max-width:min(78%,540px)}
#ntv-game-root .ntv-chat-item.mine .ntv-chat-main{align-items:flex-end}
#ntv-game-root .ntv-chat-meta{display:flex;align-items:center;gap:8px;color:#173b34;font-size:12px;font-weight:700;padding:0 4px}
#ntv-game-root .ntv-chat-bubble{background:#2c4660;color:#fff;padding:14px 16px;border-radius:22px;border:3px solid #183244;box-shadow:0 4px 0 #132938;font-size:17px;line-height:1.35;word-break:break-word;white-space:pre-wrap}
#ntv-game-root .ntv-chat-item.mine .ntv-chat-bubble{background:#7b1115;border-color:#4f0c0f}
#ntv-game-root .ntv-chat-compose{display:flex;align-items:center;gap:10px;padding:12px 14px;border-top:3px solid #1b3932;background:#6aa48d}
#ntv-game-root .ntv-chat-input{flex:1;height:50px;border-radius:999px;border:3px solid #2d4b44;background:#f4efe7;padding:0 18px;font-size:16px;font-weight:700;color:#243a34;outline:none}
#ntv-game-root .ntv-emoji-btn,#ntv-game-root .ntv-chat-send{width:48px;height:48px;border-radius:50%;border:3px solid #1b3932;background:#f3f0e9;display:inline-flex;align-items:center;justify-content:center;font-size:22px;box-shadow:0 3px 0 #2d4b44}
#ntv-game-root .ntv-chat-send{background:#79f1cf}
#ntv-game-root .ntv-chat-online{font-weight:800;color:#173b34}
#ntv-game-root .ntv-chatbox-modal{min-width:min(100%,900px);max-width:900px}
#ntv-game-root .ntv-result-cups{font-weight:800;color:#0f5f52;background:#ecfff8;border-radius:12px;padding:8px 12px;display:inline-block}
@media (min-width: 920px){
  #ntv-game-root .ntv-room-grid{grid-template-columns:minmax(250px,0.8fr) minmax(380px,1.2fr)}
  #ntv-game-root .ntv-chatbox-body{max-height:560px}
}
@media (max-width: 640px){
  #ntv-game-root .ntv-chatbox{border-radius:24px}
  #ntv-game-root .ntv-chatbox-head{padding:10px}
  #ntv-game-root .ntv-chat-icon,#ntv-game-root .ntv-chat-noti,#ntv-game-root .ntv-emoji-btn,#ntv-game-root .ntv-chat-send{width:42px;height:42px;font-size:18px}
  #ntv-game-root .ntv-chat-avatar{width:44px;min-width:44px;height:44px}
  #ntv-game-root .ntv-chat-main{max-width:calc(100% - 56px)}
  #ntv-game-root .ntv-chat-bubble{font-size:15px;padding:12px 14px;border-radius:20px}
  #ntv-game-root .ntv-chat-input{height:46px;font-size:15px}
}

/* 2.0: public room browser, host management and Vua Tiếng Việt quiz. */
#ntv-game-root .ntv-mode-quiz{background:linear-gradient(155deg,#f6cbff,#9f71f6);border-color:#eac6ff;color:#3c165f}
#ntv-game-root .ntv-mode-quiz small{color:#4f2572}
#ntv-game-root .ntv-host-ready{background:#fff3bd;color:#78520c;border:2px solid #dbaa37;border-radius:14px;padding:10px 13px;font-weight:900}
#ntv-game-root .ntv-transfer-panel{margin-top:14px;padding:14px;border:2px solid #f5ce6f;border-radius:16px;background:#fff7d7;color:#433118}
#ntv-game-root .ntv-transfer-panel label{font-weight:900;display:block;margin-bottom:8px}
#ntv-game-root .ntv-transfer-panel>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#ntv-game-root .ntv-transfer-panel select{flex:1;min-width:145px;color:#143d32;background:#fff}
#ntv-game-root .ntv-room-search-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;max-height:min(65dvh,720px);align-items:stretch}
#ntv-game-root .ntv-room-result{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0;border:3px solid #203b34;border-radius:23px;padding:15px;background:#fffaf0;box-shadow:5px 6px 0 #1b4138;color:#263f37}
#ntv-game-root .ntv-room-result.is-playing{background:#f4f1e9}
#ntv-game-root .ntv-room-result-head{display:flex;align-items:start;justify-content:space-between;gap:8px;min-height:44px}
#ntv-game-root .ntv-room-result-head strong{font-size:16px;line-height:1.24;overflow-wrap:anywhere;flex:1}
#ntv-game-root .ntv-room-game-tag{white-space:normal;border:2px solid #234038;border-radius:999px;background:#7fefd1;color:#12473b;font-size:11px;padding:5px 8px;font-weight:900;max-width:140px;text-align:center}
#ntv-game-root .ntv-room-game-tag.quiz{background:#d9b4fa;color:#3c1961}
#ntv-game-root .ntv-room-result-info{display:block;border-bottom:2px dashed #d6d6cf;padding-bottom:8px;min-height:35px}
#ntv-game-root .ntv-room-result-info span{font-size:12px;color:#385348}
#ntv-game-root .ntv-room-result-bottom{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:900;color:#26463e}
#ntv-game-root .ntv-room-people{border:2px solid #234038;border-radius:30px;padding:3px 9px;margin-right:auto;background:#fff;font-weight:900}
#ntv-game-root .ntv-room-dot{width:9px;height:9px;background:#ff7676;border-radius:50%;border:1px solid #8b4b4b}
#ntv-game-root .ntv-room-dot.ready{background:#8fe6bf;border-color:#589777}
#ntv-game-root .ntv-room-result .ntv-smallbtn{max-width:none;width:100%;margin-top:auto}
#ntv-game-root .ntv-room-result button:disabled{opacity:.65;cursor:not-allowed}
#ntv-game-root .ntv-quiz{background:linear-gradient(150deg,#fbfff6,#ffefc5);color:#134d43;border:3px solid #eabc62;border-radius:25px;padding:20px;margin:14px 0;box-shadow:0 6px 0 #b48438}
#ntv-game-root .ntv-quiz[hidden]{display:none !important}
#ntv-game-root .ntv-quiz-head{display:flex;justify-content:space-between;align-items:center;gap:15px}
#ntv-game-root .ntv-quiz-head b{display:block;font-size:19px;color:#063f3b}
#ntv-game-root .ntv-quiz-head small{display:block;font-weight:800;color:#70603a;margin-top:4px}
#ntv-game-root .ntv-quiz-timer{border:3px solid #9f5b0b;border-radius:15px;background:#ffcf61;padding:10px 14px;font-size:20px;font-weight:900;color:#7a370a}
#ntv-game-root .ntv-quiz-timer.urgent{background:#ffb1b1;color:#9e1b1b}
#ntv-game-root .ntv-quiz-question{font-size:clamp(19px,2.6vw,28px);text-align:center;margin:24px auto;line-height:1.4;color:#063e33}
#ntv-game-root .ntv-quiz-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#ntv-game-root .ntv-quiz-choice{display:flex;align-items:center;gap:12px;min-height:66px;text-align:left;border-radius:17px;background:#fff;color:#0e4c3f;border:3px solid #63b8a4;box-shadow:0 4px 0 #2c826e;font-weight:900;padding:11px 14px;font-size:16px;cursor:pointer}
#ntv-game-root .ntv-quiz-choice b{flex:0 0 32px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#d8fbe9;color:#146748}
#ntv-game-root .ntv-quiz-choice:disabled{opacity:.62;cursor:not-allowed;box-shadow:none}
#ntv-game-root .ntv-quiz-choice:hover:not(:disabled){background:#e1fae9;transform:translateY(-2px)}
#ntv-game-root .ntv-quiz-feedback{min-height:27px;text-align:center;font-weight:800;color:#93611b;margin:18px 0 12px}
#ntv-game-root .ntv-quiz-scores{display:grid;gap:6px;margin-top:13px}
#ntv-game-root .ntv-quiz-scores>div{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#e3f5eb;border-radius:10px;padding:8px 10px;color:#154d40;font-size:14px;font-weight:800}
@media(max-width:920px){#ntv-game-root .ntv-room-search-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#ntv-game-root .ntv-room-search-results{grid-template-columns:1fr;max-height:60dvh}#ntv-game-root .ntv-room-result{padding:13px}#ntv-game-root .ntv-room-result-head{min-height:0}#ntv-game-root .ntv-quiz{padding:13px}#ntv-game-root .ntv-quiz-choices{grid-template-columns:1fr}#ntv-game-root .ntv-quiz-choice{min-height:54px}#ntv-game-root .ntv-quiz-question{margin:18px auto}}
@media(min-width:900px){
  .ntv-home-container:has(#ntv-game-root.ntv-wide-layout){max-width:none}
  .ntv-home-container #ntv-game-root.ntv-wide-layout{flex:1 1 1200px;max-width:1200px;width:min(100%,1200px);margin:0 auto}
  #ntv-game-root.ntv-wide-layout{max-width:1200px}
  #ntv-game-root.ntv-wide-layout .ntv-modal:has(.ntv-room-search-results){max-width:1080px;max-height:90vh}
  #ntv-game-root.ntv-wide-layout .ntv-play{min-height:760px}
}


/* v2.1 separate layouts for PC and mobile */
#ntv-game-root .ntv-room-shell{display:flex;flex-direction:column;gap:16px}
#ntv-game-root .ntv-room-main,#ntv-game-root .ntv-room-side{min-width:0}
#ntv-game-root .ntv-match-card{background:linear-gradient(180deg,#0a6759,#07463d);border:3px solid #f3c158;border-radius:26px;padding:16px 16px 14px;box-shadow:0 7px 0 #08342d;margin-top:12px}
#ntv-game-root .ntv-actionline-mobile{display:flex}
#ntv-game-root .ntv-actionline-desktop{display:none}
#ntv-game-root.ntv-device-mobile .ntv-play{padding:10px 10px 18px;min-height:auto;border-radius:22px}
#ntv-game-root.ntv-device-mobile .ntv-topbar{position:sticky;top:0;z-index:6;display:flex;gap:8px;padding:2px 0 8px;background:linear-gradient(180deg,#03463d 70%,#03463d00)}
#ntv-game-root.ntv-device-mobile .ntv-topbar .ntv-smallbtn{flex:1;min-width:0}
#ntv-game-root.ntv-device-mobile .ntv-heading{font-size:24px;margin-top:4px}
#ntv-game-root.ntv-device-mobile .ntv-room-identity{flex-direction:column;align-items:flex-start;gap:8px}
#ntv-game-root.ntv-device-mobile .ntv-member-list{display:flex;overflow-x:auto;gap:10px;padding:6px 2px 10px;scroll-snap-type:x proximity}
#ntv-game-root.ntv-device-mobile .ntv-member-list .ntv-person{min-width:128px;flex:0 0 128px;scroll-snap-align:start}
#ntv-game-root.ntv-device-mobile .ntv-room-grid{grid-template-columns:1fr;gap:14px}
#ntv-game-root.ntv-device-mobile .ntv-chatbox{order:2;min-height:340px}
#ntv-game-root.ntv-device-mobile .ntv-moves-panel{order:1}
#ntv-game-root.ntv-device-mobile .ntv-chatbox-body{max-height:320px}
#ntv-game-root.ntv-device-mobile .ntv-chat-compose{position:sticky;bottom:0}
#ntv-game-root.ntv-device-mobile .ntv-room-side{display:flex;flex-direction:column;gap:14px}
#ntv-game-root.ntv-device-mobile .ntv-cup-rule{font-size:13px;padding:8px 12px}
#ntv-game-root.ntv-device-mobile .ntv-match-card .ntv-input-row{flex-wrap:nowrap}
#ntv-game-root.ntv-device-mobile .ntv-match-card .ntv-prefix{flex:0 0 auto}
#ntv-game-root.ntv-device-mobile .ntv-match-card .ntv-field{min-width:0}
#ntv-game-root.ntv-device-mobile .ntv-actionline-mobile .ntv-smallbtn{width:100%}
#ntv-game-root.ntv-device-pc .ntv-play{padding:18px 18px 22px;min-height:780px}
#ntv-game-root.ntv-device-pc .ntv-room-shell{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);gap:22px;align-items:start}
#ntv-game-root.ntv-device-pc .ntv-room-main{display:flex;flex-direction:column;gap:12px}
#ntv-game-root.ntv-device-pc .ntv-room-side{position:sticky;top:18px;display:flex;flex-direction:column;gap:14px}
#ntv-game-root.ntv-device-pc .ntv-member-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-height:none;overflow:visible;margin-top:6px}
#ntv-game-root.ntv-device-pc .ntv-room-grid{grid-template-columns:1fr;gap:14px}
#ntv-game-root.ntv-device-pc .ntv-chatbox{min-height:620px}
#ntv-game-root.ntv-device-pc .ntv-chatbox-body{max-height:470px;min-height:360px}
#ntv-game-root.ntv-device-pc .ntv-moves-panel .ntv-scroll{max-height:190px}
#ntv-game-root.ntv-device-pc .ntv-actionline-mobile{display:none}
#ntv-game-root.ntv-device-pc .ntv-actionline-desktop{display:flex;margin-top:0}
#ntv-game-root.ntv-device-pc .ntv-actionline-desktop .ntv-smallbtn{width:100%}
#ntv-game-root.ntv-device-pc .ntv-turn-banner strong{font-size:20px}
#ntv-game-root.ntv-device-pc .ntv-room-name{font-size:32px}
#ntv-game-root.ntv-device-pc .ntv-roomcode{font-size:16px}
#ntv-game-root.ntv-device-pc .ntv-home-header,#ntv-game-root.ntv-device-pc .ntv-player-strip,#ntv-game-root.ntv-device-pc .ntv-home-panels,#ntv-game-root.ntv-device-pc .ntv-modes{max-width:1100px;margin-left:auto;margin-right:auto}
#ntv-game-root.ntv-device-pc .ntv-modes{grid-template-columns:repeat(5,minmax(0,1fr))}
#ntv-game-root.ntv-device-pc .ntv-home-panels{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width: 1280px){
  #ntv-game-root.ntv-device-pc .ntv-room-shell{grid-template-columns:minmax(0,1.35fr) minmax(390px,.7fr)}
  #ntv-game-root.ntv-device-pc .ntv-member-list{grid-template-columns:repeat(5,minmax(0,1fr))}
}


/* v2.2 - quiz mini-games, typed answers and 5-second synchronized reveal */
#ntv-game-root .ntv-quiz-rule{border:2px solid #73bda5;background:#e6fff3;padding:10px 13px;border-radius:12px;color:#155345;font-size:13px;font-weight:850;text-align:center;margin-top:12px}
#ntv-game-root .ntv-quiz-hint{font-weight:700;text-align:center;color:#866326;margin:-10px 0 14px}
#ntv-game-root .ntv-quiz-text-form{display:flex;flex-direction:column;gap:10px;max-width:700px;margin:12px auto}
#ntv-game-root .ntv-quiz-text-form label{font-weight:900;color:#0b5344}
#ntv-game-root .ntv-quiz-text-form>div{display:flex;gap:9px}
#ntv-game-root .ntv-quiz-text-form .ntv-field{flex:1;min-width:0;color:#164a40;background:#fff}
#ntv-game-root .ntv-quiz-text-form .ntv-gold-btn{white-space:nowrap;min-width:130px}
#ntv-game-root .ntv-quiz-waiting{font-size:20px;font-weight:900;color:#167252;text-align:center;padding:24px 12px;background:#dcfbe6;border:2px dashed #72ad8e;border-radius:18px}
#ntv-game-root .ntv-quiz-waiting small{display:block;font-size:13px;color:#3e6654;margin-top:7px}
#ntv-game-root .ntv-quiz-progress{text-align:center;margin:14px 0 10px;color:#82611c;font-size:13px;font-weight:900}
#ntv-game-root .ntv-quiz-score-title{font-size:16px;color:#145347;text-align:center;margin:16px 0 7px}
#ntv-game-root .ntv-quiz-reveal{padding:18px 14px;background:#fff8de;border:2px solid #dfb253;box-shadow:0 4px 0 #cfa55a;border-radius:18px;text-align:center}
#ntv-game-root .ntv-quiz-reveal h3{margin:0 0 12px;color:#955300;font-size:22px}
#ntv-game-root .ntv-quiz-reveal p{font-weight:800;color:#194c3b}
#ntv-game-root .ntv-quiz-reveal p strong{font-size:21px;color:#047a57}
#ntv-game-root .ntv-quiz-round-results{display:grid;gap:7px;margin:15px 0}
#ntv-game-root .ntv-quiz-round-row{display:grid;grid-template-columns:minmax(0,1fr) 60px 100px;gap:8px;align-items:center;text-align:left;padding:11px;background:#f5f6ee;border-radius:12px;color:#1d4d40;font-weight:850}
#ntv-game-root .ntv-quiz-round-row.correct{background:#d8fbe6}
#ntv-game-root .ntv-quiz-round-row.wrong{background:#ffe4e2}
#ntv-game-root .ntv-quiz-round-row small{text-align:center}
#ntv-game-root .ntv-quiz-round-row b{text-align:right}
#ntv-game-root .ntv-quiz-next{font-size:12px;color:#74562f!important;margin-bottom:0}
#ntv-game-root .ntv-quiz-timer.reveal{background:#adf2cc;color:#186044;border-color:#3e9868}
@media(max-width:620px){
#ntv-game-root .ntv-quiz-text-form>div{flex-direction:column}
#ntv-game-root .ntv-quiz-text-form .ntv-field{min-height:48px}
#ntv-game-root .ntv-quiz-text-form .ntv-gold-btn{width:100%}
#ntv-game-root .ntv-quiz-round-row{grid-template-columns:minmax(0,1fr) 45px 68px;font-size:12px}
#ntv-game-root .ntv-quiz-reveal h3{font-size:18px}
#ntv-game-root .ntv-quiz-rule{font-size:11px}
}

/* v2.4 – Trang chủ và đại hội Vua Tiếng Việt, tách thiết kế mobile / PC. */
#ntv-game-root .ntv-home-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;margin-top:12px}
#ntv-game-root .ntv-home-core,#ntv-game-root .ntv-home-sidebar{min-width:0}
#ntv-game-root .ntv-home-sidebar{display:flex;flex-direction:column;gap:14px}
#ntv-game-root .ntv-challenge-promo{border:3px solid #f6cd65;background:linear-gradient(125deg,#fdf6d0,#fff1af 40%,#d5faec);border-radius:22px;padding:14px;color:#125e4e;box-shadow:0 5px 0 #ba8e33;display:flex;flex-direction:column;gap:4px;position:relative;overflow:hidden}
#ntv-game-root .ntv-challenge-promo:after{content:'✦';position:absolute;right:12px;top:-12px;color:#ffb72a;font-size:82px;opacity:.32;pointer-events:none}
#ntv-game-root .ntv-challenge-icon{font-size:33px;line-height:1.2;position:relative;z-index:1}
#ntv-game-root .ntv-challenge-promo strong{font-weight:1000;font-size:21px;position:relative;z-index:1}
#ntv-game-root .ntv-challenge-promo p{font-weight:800;margin:5px 0;font-size:13px;line-height:1.5;position:relative;z-index:1}
#ntv-game-root .ntv-challenge-promo>span:last-child{font-size:12px;line-height:1.45;font-weight:700;opacity:.9}
#ntv-game-root .ntv-quiz{background:linear-gradient(152deg,#fffef7 0%,#fff0c1 100%);position:relative;isolation:isolate}
#ntv-game-root .ntv-quiz:before{content:'✦ ✧ ✦';position:absolute;right:16px;top:52px;opacity:.11;color:#d4851f;font-size:28px;z-index:-1}
#ntv-game-root .ntv-quiz-round-track{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:900;color:#1d6d52;margin-top:12px}
#ntv-game-root .ntv-quiz-round-track span{white-space:nowrap}
#ntv-game-root .ntv-quiz-round-track>div{flex:1;background:#c9e7d6;height:11px;overflow:hidden;border-radius:99px;border:2px solid #489474}
#ntv-game-root .ntv-quiz-round-track i{display:block;background:linear-gradient(90deg,#40d4b1,#ffe57a);height:100%;transition:width .25s ease;min-width:0}
#ntv-game-root .ntv-quiz-rule{padding:8px 12px;margin-top:12px;border:2px solid #8dc6a7;background:#effff4;border-radius:12px;color:#176c52;font-size:12px;font-weight:900;text-align:center}
#ntv-game-root .ntv-quiz-truefalse{grid-template-columns:repeat(2,minmax(0,1fr))}
#ntv-game-root .ntv-quiz-truefalse .ntv-quiz-choice:first-child{background:#dafbeb;border-color:#40ad7c}
#ntv-game-root .ntv-quiz-truefalse .ntv-quiz-choice:last-child{background:#ffe6e6;border-color:#e3a8a8}
#ntv-game-root .ntv-quiz-wordstrip{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;padding:15px 5px}
#ntv-game-root .ntv-quiz-wordtoken{border:3px solid #2d7d65;border-radius:13px;background:#fff;color:#174c3e;padding:10px 12px;min-height:48px;font-size:16px;font-weight:900;box-shadow:0 3px 0 #29654f;cursor:pointer}
#ntv-game-root .ntv-quiz-wordtoken:active{transform:translateY(2px);box-shadow:none}
#ntv-game-root .ntv-quiz-tiles-preview{min-height:65px;padding:14px 12px;margin:8px 0 14px;border:3px dashed #7eb496;border-radius:17px;background:#f5fff7;color:#1c614c;font-size:20px;font-weight:900;text-align:center;display:flex;align-items:center;justify-content:center;line-height:1.4}
#ntv-game-root .ntv-quiz-tiles{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;margin-bottom:16px}
#ntv-game-root .ntv-quiz-tile{border:3px solid #946011;background:linear-gradient(#fff7bf,#ffd470);border-radius:14px;color:#6c4512;min-width:52px;min-height:54px;padding:8px 15px;font-weight:1000;font-size:20px;box-shadow:0 4px 0 #b27625;cursor:pointer}
#ntv-game-root .ntv-quiz-tile.selected{background:#e2e2e2;color:#a0a0a0;border-color:#aaa;transform:translateY(3px);box-shadow:none;cursor:not-allowed}
#ntv-game-root .ntv-quiz-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:8px 0 14px}
#ntv-game-root .ntv-quiz-controls .ntv-gold-btn:disabled{filter:grayscale(.8);opacity:.6;cursor:not-allowed}
#ntv-game-root .ntv-quiz-instruction{text-align:center;color:#226b59;font-size:13px;font-weight:800;line-height:1.5}
#ntv-game-root .ntv-quiz-match-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
#ntv-game-root .ntv-quiz-pair-column{display:flex;flex-direction:column;gap:10px}
#ntv-game-root .ntv-quiz-pair-left,#ntv-game-root .ntv-quiz-pair-right{min-height:80px;text-align:left;padding:11px 12px;border:3px solid #4b9f8b;background:#fff;color:#145445;border-radius:16px;cursor:pointer;box-shadow:0 3px 0 #387c6c;font-weight:900;font-size:15px;line-height:1.3;word-break:break-word}
#ntv-game-root .ntv-quiz-pair-left b{display:block;font-weight:950}
#ntv-game-root .ntv-quiz-pair-left small{display:block;margin-top:6px;color:#687d78;font-weight:700;font-size:11px}
#ntv-game-root .ntv-quiz-pair-left.selected{background:#ffebae;border-color:#f6b336;box-shadow:0 0 0 3px #ffe188}
#ntv-game-root .ntv-quiz-pair-left.matched,#ntv-game-root .ntv-quiz-pair-right.matched{background:#d9f8e5;border-color:#36a873}
#ntv-game-root .ntv-quiz-round-results{display:flex;flex-direction:column;gap:7px}
#ntv-game-root .ntv-quiz-reveal{animation:ntvReveal .34s ease-out}
#ntv-game-root .ntv-quiz-reveal .ntv-quiz-round-row:first-child{background:#fff1bc;border-color:#ebbe61}
#ntv-game-root .ntv-quiz-choice:focus-visible,#ntv-game-root .ntv-quiz-tile:focus-visible,#ntv-game-root .ntv-quiz-pair-left:focus-visible,#ntv-game-root .ntv-quiz-pair-right:focus-visible,#ntv-game-root .ntv-quiz-wordtoken:focus-visible{outline:3px solid #114f9b;outline-offset:3px}
@keyframes ntvReveal{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(min-width:992px){
 .ntv-home-container:has(#ntv-game-root.ntv-wide-layout){max-width:none}
 #ntv-game-root.ntv-device-pc .ntv-home-grid{max-width:1200px;margin:16px auto 0;grid-template-columns:minmax(0,1.5fr) minmax(300px,.7fr);gap:24px}
 #ntv-game-root.ntv-device-pc .ntv-home-panels{display:flex;flex-direction:column;gap:14px}
 #ntv-game-root.ntv-device-pc .ntv-home-core .ntv-modes{grid-template-columns:repeat(3,minmax(0,1fr))}
 #ntv-game-root.ntv-device-pc .ntv-hero{min-height:250px}
 #ntv-game-root.ntv-device-pc .ntv-home-sidebar{position:sticky;top:16px}
 #ntv-game-root.ntv-device-pc .ntv-quiz-match-grid{gap:18px}
 #ntv-game-root.ntv-device-pc .ntv-quiz-pair-column{gap:12px}
 #ntv-game-root.ntv-device-pc .ntv-quiz-pair-left,#ntv-game-root.ntv-device-pc .ntv-quiz-pair-right{font-size:16px}
}
@media(max-width:991px){
 #ntv-game-root .ntv-home-grid{grid-template-columns:1fr;gap:12px}
 #ntv-game-root .ntv-home-sidebar{display:flex;flex-direction:column-reverse}
 #ntv-game-root .ntv-quiz{padding:12px 10px}
 #ntv-game-root .ntv-quiz-tiles-preview{font-size:17px;min-height:58px}
 #ntv-game-root .ntv-quiz-tile{min-width:44px;min-height:48px;font-size:18px;padding:8px 11px}
 #ntv-game-root .ntv-quiz-pair-left,#ntv-game-root .ntv-quiz-pair-right{font-size:13px;min-height:78px;padding:9px 8px}
 #ntv-game-root .ntv-quiz-wordtoken{font-size:14px;padding:8px;min-height:44px}
}
@media(max-width:380px){
 #ntv-game-root .ntv-quiz-match-grid{gap:7px}
 #ntv-game-root .ntv-quiz-pair-left,#ntv-game-root .ntv-quiz-pair-right{font-size:12px;padding:8px 6px}
 #ntv-game-root .ntv-quiz-controls .ntv-gold-btn{width:100%}
 #ntv-game-root .ntv-challenge-promo strong{font-size:18px}
}
@media(prefers-reduced-motion:reduce){#ntv-game-root .ntv-quiz-reveal{animation:none}#ntv-game-root .ntv-quiz-round-track i{transition:none}}

@media(min-width:992px){.ntv-home-container #ntv-game-root.ntv-device-pc{flex:1 1 1220px;max-width:1240px;width:min(100%,1240px)}#ntv-game-root.ntv-device-pc .ntv-home{min-height:780px;padding:22px}#ntv-game-root.ntv-device-pc .ntv-home-grid{max-width:1200px}}


/* v2.5 glossary: every accepted word shows a verified definition or an explicit unverified state */
#ntv-game-root .ntv-meaning-card{background:linear-gradient(135deg,#fff7db,#f4ffec);color:#0a5141;border:2px solid #e2b85f;border-radius:16px;padding:11px 13px;margin:12px 0;box-shadow:0 3px 0 rgba(91,76,26,.25)}
#ntv-game-root .ntv-meaning-head{font-size:14px;color:#8b570b;display:flex;gap:8px;align-items:center;margin-bottom:6px}
#ntv-game-root .ntv-meaning-text{font-size:14px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
#ntv-game-root .ntv-meaning-unverified{font-style:italic;font-weight:600;color:#5e665d}
#ntv-game-root .ntv-meaning-source{font-size:11px;color:#6f705e;margin-top:7px}
#ntv-game-root .ntv-meaning-source a{color:#056caa;font-weight:700;text-decoration:underline}
#ntv-game-root .ntv-meaning-loading{color:#7c6750;font-size:13px;font-weight:600}
#ntv-game-root .ntv-meaning-mini{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;border:1px solid #d3b66b;background:#fff4be;border-radius:9px;color:#09604e;font-size:15px;margin-left:auto;cursor:pointer}
#ntv-game-root .ntv-move-item{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
#ntv-game-root .ntv-meaning-modal h3{font-size:24px;text-align:center;color:#004d43;margin:0 0 12px}
#ntv-game-root .ntv-meaning-modal .ntv-meaning-text{font-size:17px;line-height:1.6}
#ntv-game-root .ntv-meaning-modal .ntv-meaning-source{font-size:12px}
@media(max-width:620px){#ntv-game-root .ntv-meaning-card{padding:10px 11px}#ntv-game-root .ntv-meaning-text{font-size:13px}}


/* v2.6: pedagogical explanations in all 12 Vua Tiếng Việt challenge types */
#ntv-game-root .ntv-quiz-learning{border:2px solid #caac57;border-radius:17px;padding:12px 14px;background:linear-gradient(145deg,#fffbea,#ebfff0);color:#245343;margin:12px 0;box-shadow:0 3px 0 #ab9d6233}
#ntv-game-root .ntv-quiz-learning h4{font-size:17px;color:#865008;margin:0 0 8px}
#ntv-game-root .ntv-quiz-learning-note{font-size:14px;line-height:1.55;font-weight:750;color:#164d3e;margin:0 0 9px;overflow-wrap:anywhere}
#ntv-game-root .ntv-quiz-learning-words{display:grid;grid-template-columns:1fr;gap:8px}
#ntv-game-root .ntv-quiz-learning-word{border-left:4px solid #40b78c;background:#fff;border-radius:8px;padding:8px 10px}
#ntv-game-root .ntv-quiz-learning-word strong{font-size:15px;color:#0d6550}
#ntv-game-root .ntv-quiz-learning-word p{font-size:13px;line-height:1.45;margin:3px 0;color:#2c5547;font-weight:700;white-space:normal}
#ntv-game-root .ntv-quiz-learning-word small{font-size:11px;color:#74775b}
#ntv-game-root .ntv-quiz-learning-missing{font-size:12px;line-height:1.5;color:#766d56;font-style:italic;margin:3px 0 0}
#ntv-game-root .ntv-quiz-history-btn{display:flex;align-items:center;justify-content:center;min-height:46px;width:100%;border:2px solid #458d7b;background:#e6fff0;border-radius:14px;color:#125f4e;font-weight:900;font-size:14px;cursor:pointer;padding:9px 12px;margin:12px 0}
#ntv-game-root .ntv-quiz-history-btn:hover{background:#d2f8e6}
#ntv-game-root .ntv-quiz-history{display:flex;flex-direction:column;gap:10px;max-height:70vh;overflow:auto;padding:2px}
#ntv-game-root .ntv-quiz-history-item{border:2px solid #add3bd;border-radius:15px;padding:10px;background:#fafff5;color:#174f3d}
#ntv-game-root .ntv-quiz-history-item summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;font-size:14px;min-height:36px}
#ntv-game-root .ntv-quiz-history-item summary::-webkit-details-marker{display:none}
#ntv-game-root .ntv-quiz-history-item summary span{font-size:11px;color:#437363;white-space:nowrap}
#ntv-game-root .ntv-quiz-history-question{font-size:14px;font-weight:650;margin:9px 0 6px}
#ntv-game-root .ntv-quiz-history-answer{font-size:14px;color:#087350;font-weight:750;margin:0 0 6px}
#ntv-game-root .ntv-quiz-reveal .ntv-quiz-learning{max-height:210px;overflow:auto}
@media(max-width:620px){#ntv-game-root .ntv-quiz-learning{padding:9px 10px}#ntv-game-root .ntv-quiz-learning h4{font-size:15px}#ntv-game-root .ntv-quiz-learning-note{font-size:13px}#ntv-game-root .ntv-quiz-history-item summary{font-size:12px}#ntv-game-root .ntv-quiz-reveal .ntv-quiz-learning{max-height:180px}}

/* v2.7 — player achievements, public player profiles, and useful chat controls */
#ntv-game-root .ntv-honor-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 18px;width:100%;max-width:1100px;margin:12px auto 4px;padding:10px 16px;background:linear-gradient(105deg,#fff1b5,#b7ffde);border:2px solid #2c735d;color:#205443;border-radius:18px;box-shadow:0 4px 0 #175041;text-align:center;font-size:13px;font-weight:900;min-height:46px}
#ntv-game-root .ntv-honor-strip>span:last-child{margin-left:auto;font-size:19px;line-height:1}
#ntv-game-root .ntv-mini-title{color:#164c3a!important;font-size:11px!important;font-weight:900!important}
#ntv-game-root .ntv-person-clickable{cursor:pointer;outline-offset:4px;transition:transform .15s,box-shadow .15s}
#ntv-game-root .ntv-person-clickable:hover{transform:translateY(-2px);box-shadow:0 7px 0 #043b31,0 0 0 2px #a3ffe1}
#ntv-game-root .ntv-person-clickable:focus-visible{outline:3px solid #fff2b9}
#ntv-game-root .ntv-player-title{color:#fff0ba;font-weight:800;font-size:11px;line-height:1.28;white-space:normal;text-align:center}
#ntv-game-root .ntv-honor-small{color:#b9fff1;font-size:11px}
#ntv-game-root .ntv-player-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin:2px 0}
#ntv-game-root .ntv-player-badges span{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border:1px solid #e6bd56;border-radius:7px;background:#fff0b4;font-size:14px;color:#193e31;box-shadow:0 2px 0 #8b6d31}
#ntv-game-root .ntv-chatbox-head{background:linear-gradient(90deg,#a1e8cb,#78c4a5);color:#123f36;gap:10px;min-width:0}
#ntv-game-root .ntv-chat-title{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
#ntv-game-root .ntv-chat-title-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border:2px solid #1e5545;border-radius:14px;background:#edfff1;font-size:21px}
#ntv-game-root .ntv-chat-title>div{display:flex;flex-direction:column;min-width:0}
#ntv-game-root .ntv-chat-title strong{font-weight:1000;color:#15463a;font-size:14px;line-height:1.23}
#ntv-game-root .ntv-chat-title small{font-size:10px;color:#406c5a;line-height:1.25}
#ntv-game-root .ntv-chat-tools{display:flex;align-items:center;gap:5px;flex:0 0 auto}
#ntv-game-root .ntv-chat-tools button{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border:2px solid #1a5b4a;border-radius:12px;background:#effff8;color:#17453a;font-size:20px;font-weight:900;box-shadow:0 2px 0 #2f6550}
#ntv-game-root .ntv-chat-tools button:active{transform:translateY(1px);box-shadow:none}
#ntv-game-root .ntv-chat-emoji-tray[hidden]{display:none}
#ntv-game-root .ntv-chat-emoji-tray{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding:10px 9px;background:#dcffeb;border-top:2px solid #2b705a}
#ntv-game-root .ntv-chat-emoji-tray button{width:39px;height:39px;border-radius:12px;background:#fffef6;border:1px solid #52917b;font-size:22px;color:#17513e;display:grid;place-items:center}
#ntv-game-root .ntv-chat-emoji-tray button:active{transform:scale(.94)}
#ntv-game-root .ntv-chat-avatar{border:0;display:flex;align-items:center;justify-content:center;cursor:pointer}
#ntv-game-root .ntv-chat-meta button{border:0;padding:0;background:transparent;color:#153a32;font-size:12px;font-weight:950;text-align:left;text-decoration:underline;text-underline-offset:2px}
#ntv-game-root .ntv-chat-awards{display:flex;align-items:center;gap:5px;flex-wrap:wrap;color:#144735;font-size:12px;padding:0 3px}
#ntv-game-root .ntv-chat-rank{background:#e8fff0;border-radius:8px;padding:2px 6px;font-weight:800;font-size:11px;line-height:1.3}
#ntv-game-root .ntv-chat-awards>span:not(.ntv-chat-rank){font-size:15px}
#ntv-game-root .ntv-chatbox.ntv-chat-expanded{position:fixed;z-index:1100;top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));left:max(8px,env(safe-area-inset-left));max-height:none;min-height:0;box-shadow:0 0 0 150vmax #001f1ce6,0 20px 45px #0007}
#ntv-game-root .ntv-chatbox.ntv-chat-expanded .ntv-chatbox-body{flex:1;min-height:0;max-height:none!important}
#ntv-game-root .ntv-chatbox.ntv-chat-expanded .ntv-chat-compose{flex:0 0 auto}
#ntv-game-root .ntv-link-profile{border:0;background:transparent;color:inherit;text-decoration:underline;text-underline-offset:3px;text-align:left;font-weight:800;cursor:pointer}
#ntv-game-root .ntv-board-player{width:100%;text-align:left;cursor:pointer;border-radius:10px}
#ntv-game-root .ntv-board-player strong{display:flex;flex-direction:column;gap:3px;align-items:start}
#ntv-game-root .ntv-board-player strong small{font-size:11px;opacity:.85}
#ntv-game-root .ntv-modal:has(.ntv-public-profile){max-width:720px;background:linear-gradient(155deg,#f8fff2,#e2f9e9);border-color:#f2bc5b;color:#174638}
#ntv-game-root .ntv-modal:has(.ntv-public-profile) .ntv-modal-head h2{color:#22614c;text-shadow:none}
#ntv-game-root .ntv-modal:has(.ntv-public-profile) .ntv-modal-head .ntv-smallbtn{background:#24624c;color:#fff}
#ntv-game-root .ntv-public-profile{display:flex;flex-direction:column;gap:14px;color:#174638}
#ntv-game-root .ntv-profile-hero{display:flex;gap:15px;align-items:center;border:2px solid #72b99d;background:linear-gradient(100deg,#d7fff2,#ffefbd);border-radius:20px;padding:14px;color:#185544}
#ntv-game-root .ntv-profile-pic{width:88px;height:88px;flex:0 0 88px;display:grid;place-items:center;border:4px solid #fff9df;border-radius:23px;background:#eaffd8;box-shadow:0 4px 0 #438c6a;font-size:44px}
#ntv-game-root .ntv-profile-pic img{width:100%;height:100%;object-fit:cover;border-radius:18px}
#ntv-game-root .ntv-profile-hero h3{font-size:clamp(19px,3vw,27px);margin:0;overflow-wrap:anywhere;color:#174e40}
#ntv-game-root .ntv-profile-title{font-size:14px;font-weight:900;color:#925814;margin:5px 0}
#ntv-game-root .ntv-level-chip,#ntv-game-root .ntv-profile-own{display:inline-flex;border:1px solid #45816d;background:#e7fff2;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:850;color:#215d48}
#ntv-game-root .ntv-profile-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#ntv-game-root .ntv-profile-metrics>div{display:flex;flex-direction:column;align-items:center;gap:4px;border-radius:15px;border:2px solid #a9dab9;background:#fffef8;padding:12px 6px;text-align:center}
#ntv-game-root .ntv-profile-metrics small{font-size:11px;color:#4e7563;font-weight:800}
#ntv-game-root .ntv-profile-metrics strong{font-size:clamp(16px,3.2vw,25px);color:#0b634e}
#ntv-game-root .ntv-profile-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#ntv-game-root .ntv-profile-stats>div{display:flex;justify-content:space-between;gap:8px;border-radius:11px;padding:10px;background:#e8f8eb;font-size:13px;font-weight:750}
#ntv-game-root .ntv-profile-stats b{color:#075842}
#ntv-game-root .ntv-profile-badges-head h3{color:#0d5748;font-size:19px;margin:0}
#ntv-game-root .ntv-profile-badges-head p{color:#54796c;font-size:12px;margin:3px 0 0}
#ntv-game-root .ntv-profile-badges{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
#ntv-game-root .ntv-award-card{display:flex;flex-direction:column;align-items:center;gap:5px;border:2px solid #d4ba75;background:#fff8e2;border-radius:15px;padding:14px 10px;text-align:center;min-width:0;color:#57491e}
#ntv-game-root .ntv-award-icon{width:57px;height:57px;display:grid;place-items:center;border-radius:50%;border:2px solid #d6a549;background:#ffe7a1;font-size:31px;box-shadow:0 3px 0 #b87b25}
#ntv-game-root .ntv-award-card strong{font-size:14px;color:#6f431a;line-height:1.3}
#ntv-game-root .ntv-award-card small{font-size:11px;color:#745c3c;line-height:1.4}
#ntv-game-root .ntv-award-points{font-size:12px;color:#09734b;font-weight:900}
#ntv-game-root .ntv-profile-empty{padding:14px;background:#e7fff1;border-radius:14px;grid-column:1/-1;color:#286e56}
#ntv-game-root .ntv-next-goal{display:flex;flex-direction:column;gap:7px;padding:12px 15px;border-radius:15px;background:#f8efd1;border:2px solid #d6bc72}
#ntv-game-root .ntv-next-goal strong{font-size:14px;color:#6a5319}
#ntv-game-root .ntv-next-goal span,#ntv-game-root .ntv-next-goal small{color:#6a5e39;font-size:12px}
#ntv-game-root .ntv-next-goal progress{width:100%;height:12px;accent-color:#21a572}
#ntv-game-root .ntv-profile-footnote{font-size:11px;line-height:1.5;color:#57796b;margin:0}
#ntv-game-root .ntv-room-roster{display:grid;gap:10px}
#ntv-game-root .ntv-roster-card{display:flex;align-items:center;gap:12px;text-align:left;border:2px solid #b7dfc2;background:#f4fff5;color:#205646;border-radius:16px;padding:10px;min-height:72px}
#ntv-game-root .ntv-roster-avatar{width:54px;height:54px;flex:0 0 54px;border-radius:50%;border:2px solid #1d8867;background:#fff8d0;display:grid;place-items:center;font-size:24px;overflow:hidden}
#ntv-game-root .ntv-roster-avatar img{width:100%;height:100%;object-fit:cover}
#ntv-game-root .ntv-roster-card>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
#ntv-game-root .ntv-roster-card strong{color:#104c3c;font-size:15px;overflow-wrap:anywhere}
#ntv-game-root .ntv-roster-card small{font-size:12px;color:#497465}
@media(max-width:620px){
 #ntv-game-root .ntv-honor-strip{gap:4px 12px;padding:8px 9px;font-size:11px}
 #ntv-game-root .ntv-player-title{font-size:10px}
 #ntv-game-root .ntv-chatbox-head{padding:9px 7px}
 #ntv-game-root .ntv-chat-title-icon{width:34px;height:34px;flex-basis:34px;font-size:18px}
 #ntv-game-root .ntv-chat-title strong{font-size:12px}
 #ntv-game-root .ntv-chat-title small{font-size:9px}
 #ntv-game-root .ntv-chat-tools{gap:4px}
 #ntv-game-root .ntv-chat-tools button{width:38px;height:38px;font-size:18px;border-radius:11px}
 #ntv-game-root .ntv-profile-pic{width:65px;height:65px;flex-basis:65px;border-radius:16px}
 #ntv-game-root .ntv-profile-pic img{border-radius:11px}
 #ntv-game-root .ntv-profile-metrics>div{padding:8px 4px}
 #ntv-game-root .ntv-profile-metrics small{font-size:10px}
 #ntv-game-root .ntv-profile-stats>div{font-size:11px}
 #ntv-game-root .ntv-profile-badges{grid-template-columns:repeat(2,minmax(0,1fr))}
 #ntv-game-root .ntv-award-card{padding:11px 7px}
}
@media(prefers-reduced-motion:reduce){#ntv-game-root .ntv-person-clickable{transition:none}}
#ntv-game-root .ntv-award-notice{position:fixed;top:max(20px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:1200;max-width:min(92vw,390px);min-width:min(88vw,270px);display:flex;align-items:center;gap:14px;border:3px solid #b7771f;border-radius:20px;background:linear-gradient(110deg,#fff1a3,#d2ffcb);box-shadow:0 10px 36px #032f2c99;padding:12px 18px;color:#23523c;animation:ntv-award-arrive .26s ease-out both}
#ntv-game-root .ntv-award-notice>span{font-size:37px}
#ntv-game-root .ntv-award-notice>div{display:flex;flex-direction:column;gap:3px}
#ntv-game-root .ntv-award-notice strong{font-size:16px;color:#8a5219}
#ntv-game-root .ntv-award-notice small{font-size:13px;font-weight:850;color:#164f39}
@keyframes ntv-award-arrive{from{opacity:0;transform:translate(-50%,-14px)}to{opacity:1;transform:translate(-50%,0)}}
@media(prefers-reduced-motion:reduce){#ntv-game-root .ntv-award-notice{animation:none}}

/* v2.8 — Góc học tập, nhiệm vụ, sổ tay và lịch sử trận */
#ntv-game-root .ntv-retain-zone{margin:18px auto 16px;max-width:1100px;padding:15px;border:2px solid #5fbca0;border-radius:22px;background:linear-gradient(140deg,#eaffef,#d7fff0);color:#135a4a;box-shadow:0 5px 0 #2f856f}
#ntv-game-root .ntv-retain-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}
#ntv-game-root .ntv-retain-head h2{margin:0;font-size:21px;font-weight:900;color:#145c4b}
#ntv-game-root .ntv-retain-head small{font-size:12px;font-weight:700;color:#477665}
#ntv-game-root .ntv-retain-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#ntv-game-root .ntv-retain-card{min-width:0;text-align:left;border:2px solid #236e60;border-radius:17px;background:#fffdf4;color:#15483e;padding:12px 12px 10px;box-shadow:0 4px 0 #2e7669;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto auto;gap:3px 9px;cursor:pointer;transition:transform .15s ease}
#ntv-game-root .ntv-retain-card:hover{transform:translateY(-3px)}
#ntv-game-root .ntv-retain-emoji{grid-row:1 / span 3;font-size:30px;align-self:center}
#ntv-game-root .ntv-retain-card strong{font-size:15px;font-weight:900;line-height:1.2}
#ntv-game-root .ntv-retain-card small{font-size:11px;color:#59776e}
#ntv-game-root .ntv-retain-link{font-size:12px;font-weight:900;color:#0b9278}
#ntv-game-root .ntv-daily-panel,#ntv-game-root .ntv-history-panel,#ntv-game-root .ntv-vocab-panel{color:#153f35;display:grid;gap:12px;max-height:70dvh;overflow-y:auto;padding:2px 3px 10px}
#ntv-game-root .ntv-daily-banner{background:#e6fdf2;border:2px solid #4fb59a;border-radius:16px;padding:14px;display:grid;gap:6px}
#ntv-game-root .ntv-daily-banner strong{font-size:17px;color:#165b4c}
#ntv-game-root .ntv-daily-banner small{font-size:12px;color:#406b5c}
#ntv-game-root .ntv-quest{border:2px solid #b6d7c8;background:#fffef8;border-radius:16px;padding:13px;display:grid;gap:10px}
#ntv-game-root .ntv-quest-head{display:flex;align-items:center;gap:10px;min-width:0}
#ntv-game-root .ntv-quest-icon{font-size:28px;flex:0 0 35px}
#ntv-game-root .ntv-quest-head>div:nth-child(2){flex:1;min-width:0;display:grid;gap:3px}
#ntv-game-root .ntv-quest-head strong{font-size:15px;line-height:1.3;color:#175748}
#ntv-game-root .ntv-quest-head small{font-size:12px;color:#587c6e}
#ntv-game-root .ntv-quest-status{font-size:12px;font-weight:800;color:#3c7664;white-space:nowrap}
#ntv-game-root .ntv-quest-status button,#ntv-game-root .ntv-save-word{cursor:pointer;border:2px solid #2b7f6e;border-radius:12px;background:#80f2c5;color:#174f40;padding:8px 10px;font-size:12px;font-weight:900;box-shadow:0 2px 0 #267665}
#ntv-game-root .ntv-save-word{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin-top:10px;max-width:100%}
#ntv-game-root .ntv-save-word:disabled{opacity:.7;cursor:default;box-shadow:none}
#ntv-game-root .ntv-quest progress{display:block;width:100%;height:12px;accent-color:#2aad88}
#ntv-game-root .ntv-quest-bonus{background:#fff7d8;border-color:#e5bd5a}
#ntv-game-root .ntv-match-entry{border:2px solid #b6d7c8;border-radius:14px;overflow:hidden;background:#fffdf6}
#ntv-game-root .ntv-match-entry>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:13px;list-style:none}
#ntv-game-root .ntv-match-entry>summary::-webkit-details-marker{display:none}
#ntv-game-root .ntv-match-entry>summary span{display:grid;gap:5px}
#ntv-game-root .ntv-match-entry>summary b{color:#185847}
#ntv-game-root .ntv-match-entry>summary small{font-size:12px;color:#557668}
#ntv-game-root .ntv-match-entry>summary strong{white-space:nowrap;font-size:13px}
#ntv-game-root .ntv-history-win{color:#078f62}
#ntv-game-root .ntv-match-details{border-top:1px dashed #b6cfbe;padding:12px;display:grid;gap:10px}
#ntv-game-root .ntv-match-details p{margin:0;font-size:13px}
#ntv-game-root .ntv-match-words{display:grid;gap:6px}
#ntv-game-root .ntv-match-words>div{display:flex;gap:6px;flex-wrap:wrap}
#ntv-game-root .ntv-match-words button{font-size:12px;border:1px solid #62baa1;background:#def8ed;color:#246752;padding:6px 9px;border-radius:12px;cursor:pointer}
#ntv-game-root .ntv-vocab-instruction{margin:0;background:#e5fbed;border-radius:12px;padding:10px;font-size:13px;line-height:1.5}
#ntv-game-root .ntv-vocab-count{font-size:13px;color:#246956;font-weight:900}
#ntv-game-root .ntv-vocab-entry{display:flex;align-items:start;gap:10px;border:2px solid #c6ded0;background:#fffdf7;padding:12px;border-radius:14px}
#ntv-game-root .ntv-vocab-entry>div{flex:1;min-width:0;display:grid;gap:6px}
#ntv-game-root .ntv-vocab-entry strong{color:#11604a;font-size:16px}
#ntv-game-root .ntv-vocab-entry p{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere}
#ntv-game-root .ntv-vocab-entry small{color:#678476}
#ntv-game-root .ntv-vocab-entry button{border:2px solid #a4b2ab;background:#fff;border-radius:50%;width:32px;height:32px;cursor:pointer;flex:0 0 32px}
@media(max-width:620px){
  #ntv-game-root .ntv-retain-zone{padding:12px;margin:14px 0}
  #ntv-game-root .ntv-retain-head h2{font-size:18px}
  #ntv-game-root .ntv-retain-cards{grid-template-columns:1fr;gap:9px}
  #ntv-game-root .ntv-retain-card{grid-template-columns:38px minmax(0,1fr) 48px;grid-template-rows:auto auto;align-items:center}
  #ntv-game-root .ntv-retain-emoji{grid-row:1 / span 2;font-size:25px}
  #ntv-game-root .ntv-retain-link{grid-column:3;grid-row:1 / span 2;text-align:right}
  #ntv-game-root .ntv-quest-head{flex-wrap:wrap}
  #ntv-game-root .ntv-quest-status{margin-left:auto}
  #ntv-game-root .ntv-match-entry>summary{flex-wrap:wrap}
  #ntv-game-root .ntv-daily-panel,#ntv-game-root .ntv-history-panel,#ntv-game-root .ntv-vocab-panel{max-height:67dvh}
}


/* v3.0 — fluid, container-aware responsive UI */
#ntv-game-root {width:100%; min-width:0; min-height:0;}
#ntv-game-root.ntv-device-mobile {max-width: min(100%, 760px);}
#ntv-game-root.ntv-device-pc {max-width: 1320px;}
#ntv-game-root .ntv-play,#ntv-game-root .ntv-home,#ntv-game-root .ntv-auth-screen{min-width:0;max-width:100%;}
#ntv-game-root .ntv-home-grid,#ntv-game-root .ntv-room-shell,#ntv-game-root .ntv-home-panels,#ntv-game-root .ntv-retain-cards {min-width:0;}
#ntv-game-root .ntv-home-grid>*,#ntv-game-root .ntv-room-shell>*,#ntv-game-root .ntv-room-grid>*,#ntv-game-root .ntv-home-panels>* {min-width:0;max-width:100%;}
#ntv-game-root img {max-width:100%;}
#ntv-game-root .ntv-room-name,#ntv-game-root .ntv-chat-bubble,#ntv-game-root .ntv-quiz-question {overflow-wrap:anywhere;}
#ntv-game-root .ntv-roomcode {overflow-wrap:anywhere;}
#ntv-game-root button:focus-visible,#ntv-game-root input:focus-visible,#ntv-game-root select:focus-visible{outline:3px solid #ffe69a;outline-offset:2px;}
#ntv-game-root .ntv-overlay{position:fixed;z-index:800;inset:0;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));overflow:auto;overscroll-behavior:contain;align-items:center;}
#ntv-game-root .ntv-modal{width:min(100%,750px);min-width:0;max-height:calc(100dvh - 24px);overscroll-behavior:contain;}
#ntv-game-root .ntv-history-panel,#ntv-game-root .ntv-vocab-panel,#ntv-game-root .ntv-daily-panel {max-height:min(68dvh,740px);}
#ntv-game-root .ntv-my-result {display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;background:#ffeccc;color:#5f3d1c;border:2px solid #dabb68;border-radius:15px;margin:12px 0;padding:11px 13px;}
#ntv-game-root .ntv-my-result-win {background:#d8ffe9;color:#145e42;border-color:#46a47c;}
#ntv-game-root .ntv-my-result b {font-size:clamp(14px,1.8vw,18px);}
#ntv-game-root .ntv-my-result span{font-size:clamp(13px,1.6vw,16px);font-weight:850;}
#ntv-game-root .ntv-account-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0;}
#ntv-game-root .ntv-account-shortcuts button {min-width:0;min-height:48px;border:2px solid #419c80;background:#eaffef;border-radius:14px;color:#145c45;padding:10px;font-weight:850;}
#ntv-game-root .ntv-chatbox-body {overscroll-behavior:contain;}
#ntv-game-root .ntv-chat-compose input {min-width:0;}
#ntv-game-root .ntv-quiz-choices {min-width:0;}
@media (max-width: 359px) {
  #ntv-game-root .ntv-play{padding:9px 6px 14px;border-width:2px;border-radius:15px;}
  #ntv-game-root .ntv-room-identity{gap:6px;}
  #ntv-game-root .ntv-quiz-choices{grid-template-columns:1fr;}
  #ntv-game-root .ntv-quiz-choice{font-size:14px;padding:9px;}
  #ntv-game-root .ntv-person-name{font-size:12px;}
  #ntv-game-root .ntv-chatbox-head{gap:4px;padding:7px 4px;}
  #ntv-game-root .ntv-chat-tools button{width:34px;height:36px;font-size:15px;}
  #ntv-game-root .ntv-chat-compose{padding:8px 6px;gap:5px;}
  #ntv-game-root .ntv-chat-input{padding:0 9px;font-size:14px;}
  #ntv-game-root .ntv-account-shortcuts{grid-template-columns:1fr;}
  #ntv-game-root .ntv-continuation .ntv-send{padding:8px 5px;}
}
@media (min-width: 360px) and (max-width: 650px) {
  #ntv-game-root .ntv-play{border-radius:20px;padding:12px 10px 17px;}
  #ntv-game-root .ntv-account-shortcuts{grid-template-columns:1fr;}
  #ntv-game-root .ntv-home{padding-inline:clamp(9px,3vw,18px);}
  #ntv-game-root .ntv-room-shell{gap:13px;}
  #ntv-game-root .ntv-quiz-choices{grid-template-columns:1fr;gap:9px;}
  #ntv-game-root .ntv-quiz-choice{min-height:50px;}
  #ntv-game-root .ntv-chatbox-body{min-height:210px;max-height:40dvh;}
  #ntv-game-root .ntv-member-list .ntv-person{min-width:118px;flex-basis:118px;}
}
@media (min-width: 651px) and (max-width: 1023px) {
  #ntv-game-root .ntv-home{padding:18px;}
  #ntv-game-root .ntv-room-shell{gap:16px;}
  #ntv-game-root .ntv-device-mobile .ntv-chatbox-body{max-height:45dvh;}
  #ntv-game-root.ntv-device-mobile .ntv-room-grid{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);}
  #ntv-game-root.ntv-device-mobile .ntv-member-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));overflow:visible;}
  #ntv-game-root.ntv-device-mobile .ntv-member-list .ntv-person{min-width:0;flex-basis:auto;}
  #ntv-game-root .ntv-modal{max-width:min(90vw,760px);}
}
@media (min-width: 1024px) and (max-width: 1279px) {
  #ntv-game-root.ntv-device-pc .ntv-room-shell{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:14px;}
  #ntv-game-root.ntv-device-pc .ntv-member-list{grid-template-columns:repeat(auto-fit,minmax(108px,1fr));}
  #ntv-game-root.ntv-device-pc .ntv-quiz-choices{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (min-width: 1280px) {
  #ntv-game-root.ntv-device-pc .ntv-room-shell{grid-template-columns:minmax(0,1.35fr) minmax(370px,.75fr);gap:22px;}
  #ntv-game-root.ntv-device-pc .ntv-chatbox-body{max-height:52dvh;}
}
@media (pointer:coarse) {
  #ntv-game-root .ntv-quiz-choice,#ntv-game-root .ntv-chat-tools button,#ntv-game-root .ntv-emoji-btn,#ntv-game-root .ntv-chat-send,#ntv-game-root .ntv-gold-btn {min-height:44px;}
}
@media (prefers-reduced-motion: reduce) {
  #ntv-game-root *,#ntv-game-root *::before,#ntv-game-root *::after {scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important;}
}


/* v3.2 mobile answer responsiveness + personal character studio */
#ntv-game-root .ntv-quiz-choice,#ntv-game-root .ntv-quiz-wordtoken,
#ntv-game-root .ntv-quiz-tile,#ntv-game-root .ntv-quiz-pair-left,
#ntv-game-root .ntv-quiz-pair-right,#ntv-game-root .ntv-quiz-controls button {
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;
  -webkit-user-select:none;user-select:none;
  transition:transform .08s ease,background-color .08s ease,border-color .08s ease;
}
#ntv-game-root .ntv-quiz-touchdown:not(:disabled),#ntv-game-root .ntv-quiz-choice:active:not(:disabled),
#ntv-game-root .ntv-quiz-tile:active:not(:disabled),#ntv-game-root .ntv-quiz-wordtoken:active:not(:disabled){
  transform:scale(.985);background:#b7fbe4;border-color:#078b70;
}
#ntv-game-root .ntv-quiz-sending .ntv-quiz-picked {background:#fff1b9!important;border-color:#e5aa2f!important;opacity:1!important;transform:scale(.985)}
#ntv-game-root .ntv-quiz-tap-status{display:none;border:2px solid #67b89c;background:#eafff3;color:#114f3c;
  border-radius:14px;font-weight:850;font-size:14px;text-align:center;padding:10px 12px;margin:10px 0 6px;}
#ntv-game-root .ntv-quiz-tap-status.visible{display:block}
#ntv-game-root .ntv-quiz-tap-status.error{border-color:#db7979;background:#fff2ed;color:#a32727}
#ntv-game-root .ntv-character-shortcut{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;
  margin:9px auto 14px;width:100%;border:2px solid #4fae8f;border-radius:16px;
  background:#e9fff2;color:#155b44;box-shadow:0 3px 0 #2d9c7a;padding:11px 14px;font-weight:900;cursor:pointer}
#ntv-game-root .ntv-character-shortcut span{font-size:12px;font-weight:750;color:#347663}
#ntv-game-root .ntv-character-account,#ntv-game-root .ntv-profile-customize{width:100%;margin:10px 0}
#ntv-game-root .ntv-profile-customize{border:2px solid #4aa987;border-radius:14px;background:#e9fff2;color:#11533c;font-weight:900;padding:10px 14px;cursor:pointer}
#ntv-game-root .ntv-character-studio{display:flex;flex-direction:column;gap:10px;min-width:0;color:#164d40}
#ntv-game-root .ntv-character-studio h3{font-size:17px;color:#13533f;margin:8px 0 0}
#ntv-game-root .ntv-character-preview{width:min(100%,280px);margin:0 auto;min-height:180px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:12px;border-radius:24px;background:#eafff3;border:4px solid #b2ddd0;padding:16px}
#ntv-game-root .ntv-character-preview img{width:106px;height:106px;object-fit:cover;border-radius:50%;background:#fff;border:4px solid #fff}
#ntv-game-root .ntv-character-preview span{font-weight:900;font-size:15px}
#ntv-game-root .ntv-character-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#ntv-game-root .ntv-character-choice{border:3px solid #bddbd0;background:#f2fff8;border-radius:18px;padding:8px;min-height:90px;cursor:pointer;touch-action:manipulation}
#ntv-game-root .ntv-character-choice img{height:75px;width:75px;max-width:100%;object-fit:cover;border-radius:50%;margin:0 auto}
#ntv-game-root .ntv-character-choice.selected,#ntv-game-root .ntv-character-frame-option.selected{border-color:#0c9671;background:#dafce9;box-shadow:0 0 0 2px #92ebc2 inset}
#ntv-game-root .ntv-character-frames{display:grid;grid-template-columns:repeat(auto-fit,minmax(93px,1fr));gap:8px}
#ntv-game-root .ntv-character-frame-option{min-height:74px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px;border:2px solid #b4d9cb;border-radius:14px;background:#fbfffc;font-size:12px;font-weight:900;color:#13513e;cursor:pointer;touch-action:manipulation}
#ntv-game-root .ntv-frame-dot{width:31px;height:31px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#fff;border:3px solid #ddd}
#ntv-game-root .ntv-character-note,#ntv-game-root .ntv-character-save-status{font-size:13px;color:#386956;margin:0}
#ntv-game-root .ntv-character-save{min-height:50px;width:100%;font-weight:900}
#ntv-game-root .ntv-frame-mint{border-color:#25be8c!important;box-shadow:0 0 0 3px #b5f9db,0 0 10px #26d9a844!important}
#ntv-game-root .ntv-frame-gold{border-color:#e5ac25!important;box-shadow:0 0 0 3px #ffe3a0,0 0 10px #ffcc5744!important}
#ntv-game-root .ntv-frame-sky{border-color:#2d9ae7!important;box-shadow:0 0 0 3px #baeafe,0 0 10px #3ba6ed44!important}
#ntv-game-root .ntv-frame-rose{border-color:#e977a2!important;box-shadow:0 0 0 3px #ffe0ed,0 0 10px #e977a244!important}
@media(max-width:767px){
  #ntv-game-root .ntv-quiz-choice,#ntv-game-root .ntv-quiz-wordtoken,#ntv-game-root .ntv-quiz-tile,
  #ntv-game-root .ntv-quiz-pair-left,#ntv-game-root .ntv-quiz-pair-right {min-height:60px!important;padding:12px 13px!important;font-size:16px!important;line-height:1.45;}
  #ntv-game-root .ntv-quiz-choices{gap:12px!important;}
  #ntv-game-root .ntv-quiz-choice b{min-width:34px;min-height:34px;}
  #ntv-game-root .ntv-quiz-text-form input{font-size:16px!important;min-height:52px;}
  #ntv-game-root .ntv-quiz-controls button{min-height:52px;}
  #ntv-game-root .ntv-character-studio h3{font-size:16px}
  #ntv-game-root .ntv-character-frames{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
  #ntv-game-root .ntv-quiz-choice,#ntv-game-root .ntv-quiz-tile,#ntv-game-root .ntv-quiz-wordtoken,
  #ntv-game-root .ntv-quiz-pair-left,#ntv-game-root .ntv-quiz-pair-right{transition:none!important;}
}


/* v3.3 — compact PC dashboard, clean mobile actions, readable side widgets. */
#ntv-game-root .ntv-home-core,#ntv-game-root .ntv-home-sidebar,#ntv-game-root .ntv-home-panels{min-width:0;max-width:100%}
#ntv-game-root .ntv-retain-zone{max-width:none;padding:13px 14px;margin:0 0 12px}
#ntv-game-root .ntv-retain-head h2{font-size:clamp(16px,1.5vw,19px)}
#ntv-game-root .ntv-retain-cards{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:9px}
#ntv-game-root .ntv-retain-card{display:grid;grid-template-columns:40px minmax(0,1fr) 22px!important;grid-template-rows:1fr!important;align-items:center;gap:9px;min-height:62px;padding:10px 12px;white-space:normal;text-align:left}
#ntv-game-root .ntv-retain-emoji{grid-row:1!important;grid-column:1;align-self:center;font-size:25px}
#ntv-game-root .ntv-retain-card strong{font-size:clamp(13px,1.2vw,16px);grid-row:1;grid-column:2;line-height:1.35;overflow-wrap:normal;word-break:normal;hyphens:none}
#ntv-game-root .ntv-retain-link{grid-row:1!important;grid-column:3!important;font-size:24px;text-align:center}
#ntv-game-root .ntv-mode{min-height:105px;gap:3px;padding:10px 8px}
#ntv-game-root .ntv-mode strong{font-size:clamp(14px,1.45vw,18px);line-height:1.2}
#ntv-game-root .ntv-mode-icon{font-size:clamp(30px,3.2vw,40px);animation:none}
#ntv-game-root .ntv-section-heading{font-size:18px;margin:8px 0 10px}
#ntv-game-root .ntv-hero{margin:13px 0 8px;min-height:0;box-shadow:0 4px 10px #003b3f80}
#ntv-game-root .ntv-hero-art{height:clamp(170px,20vw,220px);background-position:center 46%;animation:none}
#ntv-game-root .ntv-home-panels{gap:10px!important;margin-top:6px}
#ntv-game-root .ntv-home-feed{min-height:55px;max-height:92px}
#ntv-game-root .ntv-home-panel{padding:11px 12px}
#ntv-game-root .ntv-room-error{position:relative;z-index:7;margin:0 0 12px;padding:12px 14px;border:2px solid #ea8787;border-radius:13px;background:#fff0ea;color:#882022;font-size:14px;font-weight:800;line-height:1.4}
#ntv-game-root .ntv-bot-wait{display:flex;flex-direction:column;gap:10px;align-items:center;padding:22px 14px}
#ntv-game-root .ntv-bot-wait strong{font-size:22px;color:#fff0aa}
#ntv-game-root .ntv-bot-wait span{color:#e8ffee;font-size:14px;font-weight:700}
#ntv-game-root .ntv-bot-ready{min-height:56px;min-width:min(100%,290px);font-size:17px}
#ntv-game-root button:focus-visible{outline:3px solid #ffdf6d;outline-offset:3px}
@media (min-width:1024px){
  #ntv-game-root.ntv-device-pc .ntv-home{padding:19px 24px 28px}
  #ntv-game-root.ntv-device-pc .ntv-home-grid{max-width:1250px!important;grid-template-columns:minmax(0,1.8fr) minmax(300px,.83fr)!important;gap:22px!important;margin-top:12px}
  #ntv-game-root.ntv-device-pc .ntv-home-core{display:flex;flex-direction:column}
  #ntv-game-root.ntv-device-pc .ntv-home-core>.ntv-section-heading{order:0}
  #ntv-game-root.ntv-device-pc .ntv-home-core>.ntv-modes{order:1;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%;max-width:none;margin-inline:0}
  #ntv-game-root.ntv-device-pc .ntv-home-core>.ntv-hero{order:2;margin-top:18px;min-height:0;height:auto}
  #ntv-game-root.ntv-device-pc .ntv-home-sidebar{position:static;gap:12px}
  #ntv-game-root.ntv-device-pc .ntv-character-shortcut{margin:8px auto}
  #ntv-game-root.ntv-device-pc .ntv-honor-strip{margin-top:8px}
}
@media (max-width:1023px){
  #ntv-game-root.ntv-device-mobile .ntv-retain-cards{grid-template-columns:minmax(0,1fr)!important}
  #ntv-game-root.ntv-device-mobile .ntv-home{padding:12px 12px 22px}
  #ntv-game-root.ntv-device-mobile .ntv-home-core{display:flex;flex-direction:column}
  #ntv-game-root.ntv-device-mobile .ntv-home-core>.ntv-section-heading{order:0}
  #ntv-game-root.ntv-device-mobile .ntv-home-core>.ntv-modes{order:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #ntv-game-root.ntv-device-mobile .ntv-home-core>.ntv-hero{order:2;margin-top:18px}
  #ntv-game-root.ntv-device-mobile .ntv-home-core>.ntv-mobile-discover{order:3}
  #ntv-game-root.ntv-device-mobile .ntv-mode{min-height:108px}
  #ntv-game-root.ntv-device-mobile .ntv-mode strong{font-size:clamp(14px,3.5vw,17px)}
  #ntv-game-root.ntv-device-mobile .ntv-hero-art{height:clamp(145px,40vw,220px)}
}

/* v3.4 — full wardrobe, expressive avatars, sticker interactions. */
#ntv-game-root .ntv-character-studio.ntv-wardrobe{gap:14px}
#ntv-game-root .ntv-wardrobe-hero{display:grid;grid-template-columns:minmax(155px,200px) minmax(0,1fr);align-items:center;gap:18px;padding:14px;border:2px solid #b4e4ce;border-radius:20px;background:linear-gradient(145deg,#f1fff3,#fffae6)}
#ntv-game-root .ntv-wardrobe-summary{display:grid;gap:8px;min-width:0}
#ntv-game-root .ntv-wardrobe-summary strong{font-weight:1000;font-size:19px;color:#07503f}
#ntv-game-root .ntv-wardrobe-summary small{font-weight:800;color:#25765e}
#ntv-game-root .ntv-wardrobe-summary p{margin:0;font-size:13px;color:#425f4f;line-height:1.45}
#ntv-game-root .ntv-wardrobe-hero .ntv-character-preview{width:100%;min-height:170px;margin:0;position:relative}
#ntv-game-root .ntv-wardrobe-section{background:#f9fff9;border:2px solid #c3e6d3;border-radius:19px;padding:12px;display:grid;gap:11px;min-width:0}
#ntv-game-root .ntv-wardrobe-section h3{margin:0;color:#115641;font-size:16px}
#ntv-game-root .ntv-wardrobe .ntv-character-options{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#ntv-game-root .ntv-wardrobe .ntv-character-choice{min-width:0;min-height:81px;padding:5px;border-radius:14px;display:grid;place-items:center}
#ntv-game-root .ntv-wardrobe .ntv-character-choice img{max-width:100%;height:auto;aspect-ratio:1/1;border-radius:10px;object-fit:contain}
#ntv-game-root .ntv-wardrobe .ntv-character-frames{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#ntv-game-root .ntv-wardrobe .ntv-character-frame-option{min-height:86px;min-width:0;overflow-wrap:anywhere}
#ntv-game-root .ntv-wardrobe .ntv-character-frame-option small{font-size:10px;line-height:1.2;color:#7b4a32}
#ntv-game-root .ntv-item-locked{filter:grayscale(.55);opacity:.66;cursor:not-allowed!important}
#ntv-game-root .ntv-item-locked:disabled{color:#52685f}
#ntv-game-root .ntv-accessory-choice{display:grid;place-items:center;font-size:23px;min-height:28px}
#ntv-game-root .ntv-title-choices{display:flex;gap:8px;flex-wrap:wrap;align-items:stretch}
#ntv-game-root .ntv-title-choices button{min-height:45px;border:2px solid #a5d8c5;background:#fffef8;color:#16583f;border-radius:13px;padding:9px 13px;font-weight:800;max-width:100%;white-space:normal;text-align:left;cursor:pointer}
#ntv-game-root .ntv-title-choices button.selected{border-color:#008b68;background:#c8f9e0;box-shadow:0 0 0 2px #5bcaa088}
#ntv-game-root .ntv-wardrobe .ntv-character-save-status{font-size:13px;color:#356958}
#ntv-game-root .ntv-wardrobe .ntv-character-save{position:sticky;bottom:0;z-index:5;min-height:56px}
#ntv-game-root .ntv-modal:has(.ntv-wardrobe){max-width:900px;max-height:min(91dvh,850px);background:#ecfff0;padding:15px}
#ntv-game-root .ntv-modal:has(.ntv-wardrobe) .ntv-modal-head{color:#125942}
#ntv-game-root .ntv-modal:has(.ntv-wardrobe) .ntv-modal-head h2{color:#074e3e;text-shadow:none}
#ntv-game-root .ntv-modal:has(.ntv-wardrobe) .ntv-smallbtn{background:#146b58}
#ntv-game-root .ntv-avatar-accessory{position:absolute;right:-7px;top:-9px;z-index:6;display:grid;place-items:center;width:28px;height:28px;background:#fff9d8;border:2px solid #f9c65b;border-radius:50%;font-size:17px;line-height:1;box-shadow:0 2px 5px #264c3d55;pointer-events:none}
#ntv-game-root .ntv-profile-avatar,#ntv-game-root .ntv-profile-pic,#ntv-game-root .ntv-person-avatar-wrap,#ntv-game-root .ntv-chat-avatar,#ntv-game-root .ntv-roster-avatar,#ntv-game-root .ntv-character-preview{position:relative}
#ntv-game-root .ntv-chat-avatar .ntv-avatar-accessory{width:19px;height:19px;font-size:12px;top:-6px;right:-5px;border-width:1px}
#ntv-game-root .ntv-character-preview .ntv-avatar-accessory{top:10px;right:18px;width:36px;height:36px;font-size:24px}
#ntv-game-root .ntv-frame-aurora{border-color:#19c3b6!important;box-shadow:0 0 0 3px #a4ffed,0 0 13px #4df4e8!important}
#ntv-game-root .ntv-frame-fire{border-color:#f47726!important;box-shadow:0 0 0 3px #ffe2a2,0 0 15px #ff7a22!important}
#ntv-game-root .ntv-frame-starlight{border-color:#8055de!important;box-shadow:0 0 0 3px #e0ccff,0 0 16px #9674e7!important}
#ntv-game-root .ntv-frame-legend{border-color:#ffe76a!important;box-shadow:0 0 0 4px #e6ad45,0 0 20px #ffe281!important}
@keyframes ntv34-turn-pulse{50%{box-shadow:0 0 0 5px #ffd95b88,0 0 24px #ffe26dcc}}
@keyframes ntv34-bounce{0%,100%{transform:translateY(0)}45%{transform:translateY(-5px)}}
@keyframes ntv34-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-2px)}75%{transform:translateX(2px)}}
#ntv-game-root .ntv-person.ntv-mood-turn .ntv-person-avatar-wrap{animation:ntv34-turn-pulse 1.9s ease-in-out infinite;border-radius:50%}
#ntv-game-root .ntv-person.ntv-mood-typing .ntv-person-avatar{animation:ntv34-bounce .9s ease-in-out infinite}
#ntv-game-root .ntv-person.ntv-mood-win .ntv-person-avatar-wrap::after{content:'🏆';position:absolute;bottom:0;left:-4px;font-size:20px;z-index:4}
#ntv-game-root .ntv-person.ntv-answer-right .ntv-person-avatar{animation:ntv34-bounce .46s ease-in-out 2}
#ntv-game-root .ntv-person.ntv-answer-wrong .ntv-person-avatar{animation:ntv34-shake .24s ease-in-out 2}
#ntv-game-root .ntv-person.ntv-answer-right{border-color:#4df5ad!important}
#ntv-game-root .ntv-person.ntv-answer-wrong{border-color:#ff8880!important}
#ntv-game-root .ntv-sticker-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:100%}
#ntv-game-root .ntv-sticker-list button{width:auto;min-height:42px;height:auto;padding:8px 7px;font-size:13px;line-height:1.25;font-weight:900;white-space:normal;background:#fef4d6;color:#205546;border-color:#b0d6b8;border-radius:13px}
#ntv-game-root .ntv-emoji-list{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;width:100%}
#ntv-game-root .ntv-chat-emoji-tray{flex-direction:column}
#ntv-game-root .ntv-chat-sticker{background:linear-gradient(140deg,#fff4b7,#c6f3d5)!important;color:#136044!important;border-color:#f3b95e!important;font-weight:950;text-align:center;font-size:15px}
#ntv-game-root .ntv-character-frames button:focus-visible,#ntv-game-root .ntv-wardrobe button:focus-visible{outline:3px solid #007e68;outline-offset:2px}
@media(max-width:660px){
 #ntv-game-root .ntv-wardrobe-hero{grid-template-columns:110px minmax(0,1fr);gap:10px;padding:9px}
 #ntv-game-root .ntv-wardrobe-hero .ntv-character-preview{min-height:145px;padding:8px}
 #ntv-game-root .ntv-wardrobe-hero .ntv-character-preview img{width:82px;height:82px}
 #ntv-game-root .ntv-wardrobe-hero .ntv-character-preview span:not(.ntv-avatar-accessory){font-size:12px;text-align:center}
 #ntv-game-root .ntv-wardrobe-summary strong{font-size:15px}
 #ntv-game-root .ntv-wardrobe-summary p{display:none}
 #ntv-game-root .ntv-wardrobe .ntv-character-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 #ntv-game-root .ntv-wardrobe .ntv-character-frames{grid-template-columns:repeat(3,minmax(0,1fr))}
 #ntv-game-root .ntv-wardrobe .ntv-character-frame-option{min-height:80px}
 #ntv-game-root .ntv-sticker-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:350px){#ntv-game-root .ntv-wardrobe .ntv-character-options{grid-template-columns:repeat(3,minmax(0,1fr))}#ntv-game-root .ntv-wardrobe-hero{grid-template-columns:1fr}#ntv-game-root .ntv-wardrobe-hero .ntv-character-preview{max-width:185px;margin:0 auto}}
@media(prefers-reduced-motion:reduce){#ntv-game-root .ntv-person.ntv-mood-turn .ntv-person-avatar-wrap,#ntv-game-root .ntv-person.ntv-mood-typing .ntv-person-avatar,#ntv-game-root .ntv-person.ntv-answer-right .ntv-person-avatar,#ntv-game-root .ntv-person.ntv-answer-wrong .ntv-person-avatar{animation:none!important}}
/* Keep the wardrobe as a viewport-level dialog, even on very tall homepages. */
#ntv-game-root .ntv-overlay:has(.ntv-wardrobe){position:fixed!important;inset:0!important;z-index:999!important;align-items:center;justify-content:center;padding:12px;overflow:hidden}
#ntv-game-root .ntv-modal:has(.ntv-wardrobe){width:min(100%,900px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
#ntv-game-root .ntv-wardrobe .ntv-character-save{box-shadow:0 0 0 4px #edfff6,0 4px 7px #003b3833}

/* Equipped clothing marker from the integrated character wardrobe. */
#ntv-game-root .ntv-person-wardrobe{font-size:11px;font-weight:800;color:#fbebbd;opacity:.9;line-height:1.2;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}

/* v3.6: light, keyboard-friendly WebRTC voice controls */
#ntv-game-root .ntv-voice-panel{display:block;max-width:100%;margin:8px 0 15px;padding:11px 12px;background:linear-gradient(125deg,#d6fff2,#eefbff);border:2px solid #65bca9;border-radius:17px;color:#13594d;box-shadow:0 3px 0 #338a7a}
#ntv-game-root .ntv-voice-panel[hidden]{display:none!important}
#ntv-game-root .ntv-voice-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#ntv-game-root .ntv-voice-intro{display:flex;flex-direction:column;gap:3px;min-width:0}
#ntv-game-root .ntv-voice-intro strong{font-size:14px;color:#10483f}
#ntv-game-root .ntv-voice-intro span{font-size:12px;font-weight:650;color:#2e7366}
#ntv-game-root .ntv-voice-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
#ntv-game-root .ntv-voice-btn{font:inherit;font-size:13px;line-height:1.25;font-weight:800;min-height:42px;padding:8px 12px;border-radius:13px;border:2px solid #236e63;background:#fffdf5;color:#164e45;cursor:pointer;touch-action:manipulation}
#ntv-game-root .ntv-voice-btn:focus-visible,#ntv-game-root .ntv-voice-audio-help:focus-visible{outline:3px solid #f7ae30;outline-offset:3px}
#ntv-game-root .ntv-voice-btn[disabled]{cursor:not-allowed;opacity:.6}
#ntv-game-root .ntv-voice-join{background:#61dbb5;color:#0d4337}
#ntv-game-root .ntv-voice-exit{background:#ffe1db;border-color:#df8b77;color:#8b3023}
#ntv-game-root .ntv-voice-members{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
#ntv-game-root .ntv-voice-member{padding:5px 9px;border:1px solid #75bba9;border-radius:999px;background:#fff;font-size:12px;font-weight:700;color:#1b554a;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#ntv-game-root .ntv-voice-me{background:#b1ffdf}
#ntv-game-root .ntv-voice-error{margin-top:9px;font-size:12px;line-height:1.4;font-weight:750;background:#fff2d9;border:1px solid #e5a454;color:#7b4117;border-radius:8px;padding:8px}
#ntv-game-root .ntv-voice-audio-help{display:block;width:100%;margin-top:10px;min-height:42px;border:2px solid #216e5d;border-radius:12px;background:#fff;color:#176653;font-weight:850;cursor:pointer}
#ntv-game-root .ntv-voice-audio-slot{display:none}
#ntv-game-root [data-click="leave"]{background:#fff0e3;color:#823d25;border:2px solid #d9a174;min-height:45px;font-weight:850}
@media(max-width:650px){
  #ntv-game-root .ntv-voice-panel{padding:10px;margin:7px 0 13px;border-radius:15px}
  #ntv-game-root .ntv-voice-top{flex-direction:column;align-items:stretch}
  #ntv-game-root .ntv-voice-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #ntv-game-root .ntv-voice-actions .ntv-voice-btn{padding:9px 7px;min-width:0;min-height:46px;font-size:13px}
  #ntv-game-root .ntv-voice-actions .ntv-voice-join{grid-column:1/-1}
  #ntv-game-root .ntv-voice-actions .ntv-voice-exit{grid-column:1/-1}
}

/* v3.7: isolated shortcode embedding in any WordPress theme */
.ntv-game-embed{width:100%;max-width:100%;min-width:0;margin:0 auto;box-sizing:border-box;overflow:visible;}
.ntv-game-embed *, .ntv-game-embed *::before, .ntv-game-embed *::after{box-sizing:border-box}
.ntv-game-embed #ntv-game-root{width:100%;max-width:100%;min-width:0;margin:0 auto 16px;}
.ntv-game-embed #ntv-game-root.ntv-device-pc{max-width:1320px}
.ntv-game-embed #ntv-game-root.ntv-device-mobile{max-width:100%}
.ntv-game-embed #ntv-game-root img{max-width:100%;height:auto}
.ntv-game-embed #ntv-game-root button, .ntv-game-embed #ntv-game-root input{touch-action:manipulation}
.ntv-game-embed #ntv-game-root input{font-size:max(16px,1em)}
@media(max-width:420px){.ntv-game-embed #ntv-game-root{padding:0}.ntv-game-embed #ntv-game-root .ntv-home,.ntv-game-embed #ntv-game-root .ntv-play{border-radius:16px}}
#ntv-game-root .ntv-load-error{background:#fff6d9;color:#4e3519;border:2px solid #e7b450;border-radius:18px;padding:18px;margin:10px 0;line-height:1.5;}
#ntv-game-root .ntv-load-error button{min-height:44px;border:2px solid #9a5f1d;border-radius:12px;background:#ffe5aa;padding:8px 16px;color:#493114;font-weight:700}

/* v3.9.12: Quy tắc chấm Vua Tiếng Việt có thể xem khi chơi, không cản ô trả lời. */
#ntv-game-root .ntv-quiz-scoring-details{margin:7px 0 12px;padding:7px 12px;border:1px solid #a4d9c0;border-radius:10px;background:#f5fff6;color:#165747;font-size:12px}
#ntv-game-root .ntv-quiz-scoring-details summary{cursor:pointer;font-weight:750}
#ntv-game-root .ntv-quiz-scoring-details p{margin:7px 0 2px;line-height:1.55}

/* v3.9.18 — bot difficulty chooser, scoped to the existing game modal */
#ntv-game-root .ntv-bot-config .ntv-field {min-height:50px;font-size:16px;cursor:pointer}
#ntv-game-root .ntv-bot-notice {background:#e5fff0;color:#215345;border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.5;margin:2px 0}
#ntv-game-root .ntv-bot-config .ntv-form-primary {min-height:48px}

/* v3.9.19: mini-game type header without disrupting mobile input layout. */
.ntv-quiz-mini-tag{display:flex;align-items:center;gap:8px;width:fit-content;max-width:100%;padding:7px 12px;margin:12px 0 8px;border:2px solid #187d77;border-radius:999px;background:#caffec;color:#0f504b;font-weight:800;font-size:14px;box-sizing:border-box}
.ntv-quiz-mini-tag small{font-size:11px;font-weight:600;opacity:.85}
.ntv-mini-letters{background:#ffe581;border-color:#c58e11;color:#594100}
.ntv-mini-fill{background:#ffc5e7;border-color:#c75086;color:#702647}
.ntv-mini-spelling{background:#ffc5c5;border-color:#cb5b53;color:#6a2824}
@media(max-width:420px){.ntv-quiz-mini-tag{font-size:12px;gap:5px;padding:6px 9px;flex-wrap:wrap}.ntv-quiz-mini-tag small{font-size:10px}}

/* v3.9.20: context-aware accepted answers */
.ntv-quiz-semantics-note{margin:8px 0;padding:9px 12px;border-radius:12px;background:#e6fff2;color:#095a4a;border:1px solid #82d9b0;font-size:13px;font-weight:650;line-height:1.4}

/* v3.9.22 — Vua Tiếng Việt room configuration (desktop and mobile) */
.ntv-quiz-create-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid rgba(6,121,109,.3);border-radius:14px;background:rgba(201,248,232,.28)}
.ntv-quiz-create-settings[hidden]{display:none!important}
.ntv-quiz-create-settings label{display:grid;gap:5px;font-weight:700}
.ntv-quiz-create-settings small{grid-column:1/-1;font-size:12px;line-height:1.45}
@media(max-width:420px){.ntv-quiz-create-settings{grid-template-columns:1fr}}

/* v3.9.29 — ONE VIP layer per avatar, with a generous circular safe area.
   The same files and 1.50x visual scale are used by photo avatars and sprites.
   Never decorate the entire wardrobe preview card as if it were an avatar. */
#ntv-game-root :is(.ntv-profile-avatar,.ntv-profile-pic,.ntv-person-avatar-wrap,.ntv-chat-avatar,.ntv-roster-avatar,.ntv-lb-portrait,.ntv-character-portrait)[class*="ntv-frame-vip_"]{
  position:relative;isolation:isolate;overflow:visible!important;border-radius:50%!important;
  border:0!important;outline:none!important;box-shadow:none!important;
}
/* The sprite renderer has its own frame image: absolutely no duplicate ::after. */
#ntv-game-root :is(.ntv-profile-avatar,.ntv-profile-pic,.ntv-person-avatar-wrap,.ntv-chat-avatar,.ntv-roster-avatar,.ntv-lb-portrait,.ntv-character-portrait)[class*="ntv-frame-vip_"]:not(:has(>.ntv-sprite-391))::after{
  content:"";position:absolute;inset:-25%;pointer-events:none;z-index:12;
  background:var(--ntv-vip-art) center center/contain no-repeat;
  filter:drop-shadow(0 2px 2px rgba(54,55,69,.19));
}
#ntv-game-root :is(.ntv-profile-avatar,.ntv-profile-pic,.ntv-chat-avatar,.ntv-roster-avatar,.ntv-lb-portrait,.ntv-character-portrait)[class*="ntv-frame-vip_"]:not(:has(>.ntv-sprite-391))>img,
#ntv-game-root .ntv-person-avatar-wrap[class*="ntv-frame-vip_"]>.ntv-person-avatar{
  display:block;width:70%!important;height:70%!important;object-fit:cover!important;
  margin:auto!important;position:relative;z-index:2;border:0!important;outline:0!important;
  border-radius:50%!important;box-shadow:none!important;
}
#ntv-game-root :is(.ntv-profile-avatar,.ntv-profile-pic,.ntv-chat-avatar,.ntv-roster-avatar,.ntv-lb-portrait)[class*="ntv-frame-vip_"]{
  background:radial-gradient(circle at 36% 25%,#f6fff0,#d3f6eb)!important;
}
#ntv-game-root .ntv-person-avatar-wrap[class*="ntv-frame-vip_"]>.ntv-bot-avatar{font-size:21px}
/* Separate avatar-sized anchor; never stretch frame around the entire preview card. */
#ntv-game-root .ntv-character-portrait{
  position:relative;width:106px;height:106px;flex:0 0 106px;
  display:grid;place-items:center;border-radius:50%;
}
#ntv-game-root .ntv-character-portrait>img{
  width:96px;height:96px;border:4px solid #fff;border-radius:50%;
  background:#d3f3ec;object-fit:cover;
}
#ntv-game-root .ntv-character-portrait[class*="ntv-frame-vip_"]>img{width:72%!important;height:72%!important}
#ntv-game-root .ntv-character-portrait .ntv-avatar-accessory{top:-4px;right:-7px;z-index:14}
@media(max-width:660px){
  #ntv-game-root .ntv-wardrobe-hero .ntv-character-portrait{width:82px;height:82px;flex-basis:82px}
  #ntv-game-root .ntv-wardrobe-hero .ntv-character-portrait>img{width:75px;height:75px}
}
/* True-frame thumbnail; artwork has a transparent center. */
#ntv-game-root .ntv-frame-dot[class*="ntv-frame-vip_"]{
  border:1px solid #e9bd67!important;box-shadow:0 0 0 2px #ffebc9!important;
  font-size:0;background:var(--ntv-vip-art) center/142% auto no-repeat #fff6de!important;
}
#ntv-game-root .ntv-character-frame-option:has(.ntv-frame-dot[class*="ntv-frame-vip_"]){background:#fff8e5;border-color:#e8ba60}
#ntv-game-root .ntv-character-frame-option:has(.ntv-frame-dot[class*="ntv-frame-vip_"]).ntv-item-locked{opacity:.77}
@media(prefers-reduced-motion:no-preference){#ntv-game-root .ntv-profile-avatar[class*="ntv-frame-vip_"]:not(:has(>.ntv-sprite-391))::after{animation:ntvVipShimmer 5s ease-in-out infinite alternate}}
@keyframes ntvVipShimmer{50%{filter:drop-shadow(0 1px 4px rgba(255,215,118,.48))}}
@media(prefers-reduced-motion:reduce){#ntv-game-root [class*="ntv-frame-vip_"]::after{animation:none!important}}
#ntv-game-root .ntv-frame-vip_01{--ntv-vip-art:url("../includes/wardrobe/assets/production/v34/frames/vip_01.png")}
#ntv-game-root .ntv-frame-vip_02{--ntv-vip-art:url("../includes/wardrobe/assets/production/v34/frames/vip_02.png")}
#ntv-game-root .ntv-frame-vip_03{--ntv-vip-art:url("../includes/wardrobe/assets/production/v34/frames/vip_03.png")}
#ntv-game-root .ntv-frame-vip_04{--ntv-vip-art:url("../includes/wardrobe/assets/production/v34/frames/vip_04.png")}
#ntv-game-root .ntv-frame-vip_05{--ntv-vip-art:url("../includes/wardrobe/assets/production/v34/frames/vip_05.png")}
#ntv-game-root .ntv-frame-vip_06{--ntv-vip-art:url("../includes/wardrobe/assets/production/v34/frames/vip_06.png")}
#ntv-game-root .ntv-frame-vip_07{--ntv-vip-art:url("../includes/wardrobe/assets/production/v34/frames/vip_07.png")}
#ntv-game-root .ntv-frame-vip_08{--ntv-vip-art:url("../includes/wardrobe/assets/production/v34/frames/vip_08.png")}
#ntv-game-root .ntv-frame-vip_09{--ntv-vip-art:url("../includes/wardrobe/assets/production/v34/frames/vip_09.png")}
#ntv-game-root .ntv-frame-vip_10{--ntv-vip-art:url("../includes/wardrobe/assets/production/v34/frames/vip_10.png")}

/* v3.9.31: consistent VIP / uploaded-frame safe circle; photo avatars no longer shrink to 70%. */
#ntv-game-root :is(.ntv-profile-avatar,.ntv-profile-pic,.ntv-person-avatar-wrap,.ntv-chat-avatar,.ntv-roster-avatar,.ntv-lb-portrait,.ntv-character-portrait)[class*="ntv-frame-vip_"]:not(:has(>.ntv-sprite-391))>img,
#ntv-game-root :is(.ntv-profile-avatar,.ntv-profile-pic,.ntv-person-avatar-wrap,.ntv-chat-avatar,.ntv-roster-avatar,.ntv-lb-portrait,.ntv-character-portrait).ntv-frame-custom:not(:has(>.ntv-sprite-391))>img{width:82%!important;height:82%!important;object-fit:cover!important;border-radius:50%!important}
#ntv-game-root :is(.ntv-profile-avatar,.ntv-profile-pic,.ntv-person-avatar-wrap,.ntv-chat-avatar,.ntv-roster-avatar,.ntv-lb-portrait,.ntv-character-portrait).ntv-frame-custom:not(:has(>.ntv-sprite-391))::after{content:"";position:absolute;inset:-25%;pointer-events:none;z-index:12;background:var(--ntv-vip-art) center/contain no-repeat}
#ntv-game-root :is(.ntv-profile-avatar,.ntv-profile-pic,.ntv-person-avatar-wrap,.ntv-chat-avatar,.ntv-roster-avatar,.ntv-lb-portrait,.ntv-character-portrait).ntv-frame-custom{position:relative;isolation:isolate;overflow:visible!important;border-radius:50%!important}

/* v3.9.31: alignment settings for photo avatars, no duplicate frame drawn for sprites. */
#ntv-game-root :is(.ntv-profile-avatar,.ntv-profile-pic,.ntv-person-avatar-wrap,.ntv-chat-avatar,.ntv-roster-avatar,.ntv-lb-portrait,.ntv-character-portrait):is([class*="ntv-frame-vip_"],.ntv-frame-custom):not(:has(>.ntv-sprite-391))::after{
  inset:calc((100% - var(--ntv-frame-size,180%))/2)!important;
  transform:translate(var(--ntv-frame-x,0%),var(--ntv-frame-y,0%))!important;
}

/* v3.9.33 — Game-account mailbox, works before WordPress account linking. */
#ntv-game-root .ntv-gift-shortcut{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;margin:8px 0;padding:10px 15px;border:2px solid #f2c366;border-radius:14px;background:linear-gradient(110deg,#fff7d8,#ffe1a1);color:#724611;font-weight:850;cursor:pointer}
#ntv-game-root .ntv-gift-shortcut [data-role=gift-pending]{font-size:12px;color:#bb4a0b}
#ntv-game-root .ntv-game-gift-inbox{max-height:min(65vh,650px);overflow:auto;padding:4px;display:grid;gap:12px}
#ntv-game-root .ntv-game-gift-letter{border:1px solid #c9ded5;border-radius:12px;padding:12px;background:#fffefa;color:#184c42;min-width:0}
#ntv-game-root .ntv-game-gift-letter.is-pending{border-color:#eabb52;background:#fffbef}
#ntv-game-root .ntv-game-gift-head{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap}
#ntv-game-root .ntv-game-gift-head small{color:#597b70}
#ntv-game-root .ntv-game-gift-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px;margin:10px 0}
#ntv-game-root .ntv-game-gift-item{display:flex;flex-direction:column;gap:5px;align-items:center;text-align:center;border-radius:9px;background:#edf9f2;padding:7px;font-size:12px;font-weight:700}
#ntv-game-root .ntv-game-gift-item img{width:68px;height:68px;object-fit:contain;border-radius:7px}
#ntv-game-root .ntv-game-gift-footer{text-align:right}
#ntv-game-root .ntv-game-gift-guest{border:1px solid #f0c979;border-radius:9px;background:#fff6d6;color:#704509!important;padding:10px;font-size:12px;line-height:1.5}

/* v3.9.34 — Approved medium game types + original picture quizzes */
#ntv-game-root .ntv-quiz-picture{width:min(100%,280px);margin:5px auto 18px;padding:8px;background:#f6fff5;border:3px solid #8dd8a9;border-radius:23px;box-shadow:0 5px 0 #c4ebd0;text-align:center;overflow:hidden}
#ntv-game-root .ntv-quiz-picture img{display:block;max-width:100%;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:15px}
#ntv-game-root .ntv-quiz-letters{display:grid;gap:4px;width:min(100%,350px);margin:8px auto 17px;padding:11px;background:#fff7e0;border:2px solid #e1b358;border-radius:15px}
#ntv-game-root .ntv-quiz-letter-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
#ntv-game-root .ntv-quiz-letter-row span{display:grid;place-items:center;aspect-ratio:1;min-width:0;background:#fff;border:1.5px solid #c9b88a;border-radius:6px;color:#184f4b;font-size:clamp(15px,3.5vw,21px);font-weight:900}
#ntv-game-root .ntv-quiz-crossword,#ntv-game-root .ntv-quiz-scramble{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px;margin:9px auto 16px}
#ntv-game-root .ntv-quiz-crossword span,#ntv-game-root .ntv-quiz-scramble span{display:grid;place-items:center;min-height:53px;padding:8px 13px;border:2px solid #7ec0cb;border-radius:12px;background:#f5ffff;color:#174957;font-weight:900;font-size:clamp(16px,4vw,24px);box-shadow:0 3px 0 #b7dadd}
#ntv-game-root .ntv-quiz-crossword span:has(+ span){margin-right:3px}
#ntv-game-root .ntv-quiz-scramble b{font-size:23px;color:#e58e25}
#ntv-game-root .ntv-quiz-question{margin-bottom:12px}
@media(max-width:390px){#ntv-game-root .ntv-quiz-picture{width:min(100%,215px)}#ntv-game-root .ntv-quiz-letters{width:min(100%,290px);padding:7px}#ntv-game-root .ntv-quiz-letter-row{gap:2px}#ntv-game-root .ntv-quiz-crossword span,#ntv-game-root .ntv-quiz-scramble span{min-height:42px;padding:5px 9px}}

/* v3.9.35: complete Unicode character shuffle in Sắp xếp từ (two syllables). */
#ntv-game-root .ntv-quiz-scramble-letters{max-width:min(100%,540px);gap:6px;padding:10px 8px;background:#e9fff5;border:2px solid #8bdbc1;border-radius:16px}
#ntv-game-root .ntv-quiz-scramble-letters span{width:43px;min-width:0;height:46px;min-height:0;padding:5px;border-color:#66bba6;border-radius:10px;background:linear-gradient(#fff,#eafff9);font-size:21px;line-height:1.1;box-shadow:0 3px 0 #a4ddca}
#ntv-game-root .ntv-quiz-letter-instruction{max-width:540px;margin:-7px auto 14px;text-align:center;font-size:13px;line-height:1.55;color:#286a5f;font-weight:700}
@media(max-width:420px){#ntv-game-root .ntv-quiz-scramble-letters{gap:4px;padding:8px 5px}#ntv-game-root .ntv-quiz-scramble-letters span{width:36px;height:40px;font-size:18px;padding:3px}#ntv-game-root .ntv-quiz-letter-instruction{font-size:12px}}
@media(max-width:350px){#ntv-game-root .ntv-quiz-scramble-letters span{width:32px;height:36px;font-size:16px}}
/* v3.9.36 — Two-syllable picture and text puzzles: accessible tap-to-compose letters. */
#ntv-game-root .ntv-quiz-letter-pick{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:10px auto}
#ntv-game-root .ntv-quiz-letter-pick button{min-width:39px;min-height:45px;padding:5px 9px;border-radius:11px;border:2px solid #58a9ca;background:linear-gradient(#fffdf1,#c8f4ff);font-size:20px;font-weight:900;color:#155875;box-shadow:0 3px 0 #5299b1;touch-action:manipulation;cursor:pointer}
#ntv-game-root .ntv-quiz-letter-pick button.selected,#ntv-game-root .ntv-quiz-letter-pick button:disabled{opacity:.42;background:#dce6e7;cursor:default;box-shadow:none}
#ntv-game-root .ntv-quiz-letter-toolbar{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:7px auto}
#ntv-game-root .ntv-quiz-letter-toolbar button{min-height:38px;border-radius:9px;border:1px solid #3a9b91;background:#eefff8;padding:6px 11px;font-weight:800;color:#17665c;cursor:pointer}
@media(max-width:420px){#ntv-game-root .ntv-quiz-letter-pick{gap:4px}#ntv-game-root .ntv-quiz-letter-pick button{min-width:33px;min-height:41px;padding:3px 6px;font-size:18px}}


/* v3.9.40 — VIP title is a SEPARATE image below avatar, never painted over a face. */
#ntv-game-root .ntv-vip-title{display:block;position:relative;z-index:15;flex:0 0 auto;line-height:0;margin:2px auto 0;width:100%;max-width:116px;text-align:center;pointer-events:none}
#ntv-game-root .ntv-vip-title img{display:block;width:100%!important;height:auto!important;max-height:42px;object-fit:contain!important;border:0!important;box-shadow:none!important;border-radius:0!important;filter:drop-shadow(0 2px 2px #40271433)}
#ntv-game-root .ntv-home-avatar-stack,#ntv-game-root .ntv-profile-avatar-stack,#ntv-game-root .ntv-room-avatar-stack,#ntv-game-root .ntv-lb-avatar-stack{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0;min-width:0;position:relative;overflow:visible}
#ntv-game-root .ntv-home-avatar-stack{width:57px;min-width:57px}
#ntv-game-root .ntv-home-avatar-stack .ntv-vip-title{width:76px;max-width:none;margin-top:1px}
#ntv-game-root .ntv-home-avatar-stack .ntv-vip-title img{max-height:22px}
#ntv-game-root .ntv-profile-avatar-stack{width:115px;min-width:95px}
#ntv-game-root .ntv-profile-avatar-stack .ntv-vip-title{width:128px;max-width:none;margin-top:5px}
#ntv-game-root .ntv-room-avatar-stack{width:78px;min-width:70px}
#ntv-game-root .ntv-room-avatar-stack .ntv-vip-title{width:85px;max-width:none}
#ntv-game-root .ntv-roster-avatar{flex-shrink:0;overflow:visible!important}
#ntv-game-root .ntv-profile-hero{overflow:visible;min-width:0}
#ntv-game-root .ntv-lb-podium-card>.ntv-vip-title{width:min(100%,145px);min-height:21px;max-width:145px;margin:6px 0 1px}
#ntv-game-root .ntv-lb-avatar-stack{width:62px;min-width:62px}
#ntv-game-root .ntv-lb-avatar-stack .ntv-vip-title{width:70px;max-width:none;margin:2px 0 0}
#ntv-game-root .ntv-lb-avatar-stack .ntv-vip-title img{max-height:25px}
#ntv-game-root .ntv-lb-entry .ntv-lb-portrait{overflow:visible!important}
#ntv-game-root .ntv-cup-race-summary{display:flex;flex-wrap:wrap;gap:5px 14px;align-items:center;justify-content:space-between;background:linear-gradient(120deg,#fff5d7,#ecfff6);border:1px solid #efce78;border-radius:12px;padding:10px 14px;margin:4px 0 14px;color:#5b421a;font-size:13px}
#ntv-game-root .ntv-cup-race-summary>small{width:100%;font-size:11px;color:#77704c}
#ntv-game-root .ntv-vip-title-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;padding:8px}
#ntv-game-root .ntv-vip-title-choice{min-width:0;border-radius:12px;border:2px solid #e2c793;background:#fff9ee;padding:8px;color:#5a3b1d;font-weight:800;cursor:pointer}
#ntv-game-root .ntv-vip-title-choice img{width:100%;height:60px;object-fit:contain}
#ntv-game-root .ntv-vip-title-choice.is-selected{border-color:#c6890d;background:#fff0b6}
#ntv-game-root .ntv-vip-title-choice:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:620px){#ntv-game-root .ntv-profile-avatar-stack{width:87px;min-width:77px}#ntv-game-root .ntv-profile-avatar-stack .ntv-vip-title{width:99px}#ntv-game-root .ntv-lb-podium-card>.ntv-vip-title{min-height:18px}#ntv-game-root .ntv-lb-podium-card>.ntv-vip-title img{max-height:28px}}

/* In a room the VIP title occupies its own line beneath the avatar. */
#ntv-game-root .ntv-person>.ntv-vip-title{width:92px;max-width:100%;min-height:19px;margin:1px 0 2px}
#ntv-game-root .ntv-person>.ntv-vip-title img{max-height:31px}
#ntv-game-root .ntv-person:has(>.ntv-vip-title){min-height:170px!important}


/* v3.9.42 — context-safe VIP frame sizing: keep frames larger than avatar, but stop overflow in compact UI blocks. */
#ntv-game-root .ntv-profile-card{overflow:visible}
#ntv-game-root .ntv-home-avatar-stack{width:68px;min-width:68px;padding:3px 0 1px}
#ntv-game-root .ntv-home-avatar-stack .ntv-profile-avatar{width:46px;height:46px;border-radius:50%}
#ntv-game-root .ntv-home-avatar-stack .ntv-vip-title{width:80px;max-width:none;margin-top:2px}
#ntv-game-root .ntv-home-avatar-stack .ntv-vip-title img{max-height:21px}
#ntv-game-root .ntv-profile-avatar-stack{width:122px;min-width:108px}
#ntv-game-root .ntv-profile-avatar-stack .ntv-vip-title{width:120px;max-width:none;margin-top:3px}
#ntv-game-root .ntv-profile-avatar-stack .ntv-vip-title img{max-height:36px}
#ntv-game-root .ntv-room-avatar-stack{width:84px;min-width:76px}
#ntv-game-root .ntv-room-avatar-stack .ntv-vip-title{width:82px;margin-top:1px}
#ntv-game-root .ntv-room-avatar-stack .ntv-vip-title img{max-height:26px}
#ntv-game-root .ntv-lb-avatar-stack{width:70px;min-width:70px}
#ntv-game-root .ntv-lb-avatar-stack .ntv-vip-title{width:76px;max-width:none;margin-top:3px}
#ntv-game-root .ntv-lb-avatar-stack .ntv-vip-title img{max-height:23px}
#ntv-game-root .ntv-person>.ntv-vip-title{width:86px;min-height:18px}
#ntv-game-root .ntv-person>.ntv-vip-title img{max-height:27px}
#ntv-game-root .ntv-person:has(>.ntv-vip-title){min-height:164px!important;padding-top:12px}

/* Photo-avatar frame overlay sizing per context. */
#ntv-game-root .ntv-profile-avatar:is([class*="ntv-frame-vip_"],.ntv-frame-custom):not(:has(>.ntv-sprite-391))::after,
#ntv-game-root .ntv-roster-avatar:is([class*="ntv-frame-vip_"],.ntv-frame-custom):not(:has(>.ntv-sprite-391))::after{inset:-22%!important;transform:translate(var(--ntv-frame-x,0%),var(--ntv-frame-y,0%))!important}
#ntv-game-root .ntv-profile-pic:is([class*="ntv-frame-vip_"],.ntv-frame-custom):not(:has(>.ntv-sprite-391))::after,
#ntv-game-root .ntv-person-avatar-wrap:is([class*="ntv-frame-vip_"],.ntv-frame-custom):not(:has(>.ntv-sprite-391))::after{inset:-20%!important;transform:translate(var(--ntv-frame-x,0%),var(--ntv-frame-y,0%))!important}
#ntv-game-root .ntv-lb-portrait:is([class*="ntv-frame-vip_"],.ntv-frame-custom):not(:has(>.ntv-sprite-391))::after{inset:-16%!important;transform:translate(var(--ntv-frame-x,0%),var(--ntv-frame-y,0%))!important}
#ntv-game-root .ntv-profile-avatar:is([class*="ntv-frame-vip_"],.ntv-frame-custom):not(:has(>.ntv-sprite-391))>img,
#ntv-game-root .ntv-roster-avatar:is([class*="ntv-frame-vip_"],.ntv-frame-custom):not(:has(>.ntv-sprite-391))>img{width:80%!important;height:80%!important}
#ntv-game-root .ntv-profile-pic:is([class*="ntv-frame-vip_"],.ntv-frame-custom):not(:has(>.ntv-sprite-391))>img,
#ntv-game-root .ntv-person-avatar-wrap:is([class*="ntv-frame-vip_"],.ntv-frame-custom):not(:has(>.ntv-sprite-391))>img,
#ntv-game-root .ntv-person-avatar-wrap[class*="ntv-frame-vip_"]>.ntv-person-avatar{width:78%!important;height:78%!important}
#ntv-game-root .ntv-lb-portrait:is([class*="ntv-frame-vip_"],.ntv-frame-custom):not(:has(>.ntv-sprite-391))>img{width:76%!important;height:76%!important}

@media(max-width:620px){
  #ntv-game-root .ntv-profile-avatar-stack{width:92px;min-width:84px}
  #ntv-game-root .ntv-profile-avatar-stack .ntv-vip-title{width:102px}
  #ntv-game-root .ntv-room-avatar-stack{width:76px;min-width:72px}
  #ntv-game-root .ntv-room-avatar-stack .ntv-vip-title{width:78px}
  #ntv-game-root .ntv-lb-avatar-stack{width:64px;min-width:64px}
  #ntv-game-root .ntv-lb-avatar-stack .ntv-vip-title{width:68px}
}

/* v3.9.55 — polish Cup card background on home/mobile. */

#ntv-game-root .ntv-cup-card::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 28% 24%,#fff8d6aa 0 18%,transparent 19%),linear-gradient(135deg,transparent 0 52%,#fff1b433 53% 58%,transparent 59% 100%);pointer-events:none}
#ntv-game-root .ntv-cup-card>span,#ntv-game-root .ntv-cup-card>strong,#ntv-game-root .ntv-cup-card>small{position:relative;z-index:1}
#ntv-game-root .ntv-cup-card>span{color:#fff4b0;text-shadow:0 1px 0 #8b591f}
#ntv-game-root .ntv-cup-card>strong{color:#fffef9;text-shadow:0 1px 0 #8e5c22,0 2px 6px #8f4d1233}
#ntv-game-root .ntv-cup-card>small{color:#fff5d5;letter-spacing:1.6px;text-shadow:0 1px 0 #8a5a1d}
@media(max-width:480px){#ntv-game-root .ntv-cup-card{background:linear-gradient(180deg,#b96a16 0%,#e2a12f 22%,#f7d46e 56%,#d77f1e 100%)}}

/* v3.9.64: actionable mobile voice connection diagnostics. */
#ntv-game-root .ntv-voice-help{margin-top:9px;padding:9px 11px;border-radius:11px;background:#fff8da;border:1px solid #e8bf64;color:#6e4c1b;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
#ntv-game-root .ntv-voice-retry{background:#fff1c6;color:#76500b;border-color:#c79134}
@media(max-width:650px){#ntv-game-root .ntv-voice-actions .ntv-voice-retry,#ntv-game-root .ntv-voice-actions .ntv-voice-exit{grid-column:auto}#ntv-game-root .ntv-voice-audio-help{min-height:48px}}

/* v3.9.68 — retain the result of the previous match after the 1-second intermission. */
#ntv-game-root .ntv-previous-match{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 14px;margin:7px 0 12px;padding:10px 13px;background:linear-gradient(120deg,#ecfff4,#ffefd0);border:1.5px solid #e9bf67;border-radius:14px;box-shadow:0 3px 0 #bca26544;color:#225648;font-size:14px;}
#ntv-game-root .ntv-previous-match span{font-weight:800;}
#ntv-game-root .ntv-previous-match strong{color:#906113;font-size:14px;font-variant-numeric:tabular-nums;}
#ntv-game-root .ntv-previous-match .ntv-smallbtn{font-size:12px;padding:5px 9px;}
@media(max-width:420px){#ntv-game-root .ntv-previous-match{padding:9px 7px;gap:6px 10px;font-size:12px}#ntv-game-root .ntv-previous-match strong{font-size:12px}}
