/* Authentic 240x320 QQ2010 Beta2 Touch UI Stylesheet (Ported from eq.class & Canvas layout) */

.qq-lcd {
  position: relative;
  width: 240px;
  height: 320px;
  overflow: hidden;
  transform: scale(var(--lcd-scale));
  transform-origin: 0 0;
  font-family: "SimSun", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #16374b;
  background: #e2f3fb;
  user-select: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.qq-lcd * {
  box-sizing: border-box;
}

/* --- Night Theme Variables & Palette (Ported from eq.class Night branch) --- */
.qq-lcd.theme-night {
  color: #d6e4f2;
  background: #17222d;
}

/* Screen switching container */
.qq-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 240px;
  height: 320px;
  overflow: hidden;
}

.qq-screen.hidden {
  display: none;
}

/* ================== MAIN HEADER (61px) ================== */
.qq-main-header {
  height: 61px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #73cbef 0%, #88d3f2 4%, #6ac7ee 48%, #53bfeb 95%, #50afce 100%);
  border-bottom: 1px solid #c8d1d5;
  display: flex;
  flex-direction: column;
}

.theme-night .qq-main-header {
  background: linear-gradient(180deg, #273e57 0%, #1d3044 50%, #142231 96%, #0c1722 100%);
  border-bottom: 1px solid #2b4258;
}

.qq-profile-bar {
  height: 31px;
  display: flex;
  align-items: center;
  padding: 1px 6px 0 2px;
  gap: 5px;
}

.qq-self-avatar-wrap {
  width: 29px;
  height: 29px;
  padding: 1px;
  background: #ffffff;
  border: 1px solid #59add1;
  border-radius: 2px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.theme-night .qq-self-avatar-wrap {
  background: #1b2c3d;
  border-color: #3d6385;
}

.qq-self-avatar-img {
  width: 25px;
  height: 25px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.qq-status-btn {
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background-color: transparent;
  background-image: url('./assets/qq/self_state.png');
  background-repeat: no-repeat;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-night .qq-status-btn {
  background-image: url('./assets/qq/self_state_night.png');
}

.qq-self-nick {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(10, 72, 110, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.qq-header-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.qq-sound-btn {
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background-color: transparent;
  background-image: url('./assets/qq/soundstatus.png');
  background-repeat: no-repeat;
  background-position: -48px 0;
  cursor: pointer;
}

.theme-night .qq-sound-btn {
  background-image: url('./assets/qq/soundstatus_night.png');
}

.qq-sound-btn.muted {
  background-position: -64px 0;
}

.qq-clock {
  font-size: 12.5px;
  font-weight: 700;
  color: #f4fbff;
  letter-spacing: 0.02em;
}

/* 3 Top Tabs (30px) */
.qq-tab-strip {
  height: 30px;
  display: grid;
  grid-template-columns: repeat(3, 80px);
  align-items: center;
}

.qq-tab-btn {
  position: relative;
  height: 29px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qq-tab-btn.active::before {
  content: '';
  position: absolute;
  width: 74px;
  height: 26px;
  background: url('./assets/qq/tab_select_bg.png') center/74px 26px no-repeat;
}

.theme-night .qq-tab-btn.active::before {
  background-image: url('./assets/qq/tab_select_bg_night.png');
}

.qq-tab-icon {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: block;
}

.qq-tab-badge {
  position: absolute;
  top: 2px;
  right: 14px;
  z-index: 2;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: 7px;
  background: #f97316;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.qq-tab-badge.hidden {
  display: none;
}

/* ================== LIST BODY (229px) ================== */
.qq-list-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #e2f3fb;
}

.theme-night .qq-list-body {
  background: #17222d;
}

.qq-list-body,
.qq-chat-feed,
.qq-sub-scroll,
.s60-scroll-area,
.s60-sub-body {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}

.qq-list-body::-webkit-scrollbar,
.qq-chat-feed::-webkit-scrollbar,
.qq-sub-scroll::-webkit-scrollbar,
.s60-scroll-area::-webkit-scrollbar,
.s60-sub-body::-webkit-scrollbar,
.qq-chat-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.qq-group-row {
  height: 35px;
  padding: 0 8px 0 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #b7d3e1;
  box-shadow: inset 0 -1px 0 #f3fafd;
  cursor: pointer;
  color: #16374b;
  font-size: 13.5px;
}

.theme-night .qq-group-row {
  border-bottom-color: #26384a;
  box-shadow: none;
  color: #d7e5f2;
}

.qq-group-row.selected {
  height: 34px;
  margin: 1px 4px 0 1px;
  padding: 0 7px 0 5px;
  border: 1px solid #33a0b9;
  border-radius: 2px;
  box-shadow: none;
  background: linear-gradient(180deg, #86d5f8 0%, #6bc4e8 50%, #5eb8da 100%);
  color: #0b2c40;
}

.theme-night .qq-group-row.selected {
  border-color: #4f85b5;
  background: linear-gradient(180deg, #2d4e6d 0%, #1d364d 100%);
  color: #ffffff;
}

.qq-tri {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #2b89b8;
  flex-shrink: 0;
  transition: transform 0.1s ease;
}

.qq-tri.open {
  transform: rotate(90deg);
}

.theme-night .qq-tri {
  border-left-color: #5ea5de;
}

.qq-group-count {
  color: #4d8aa9;
  font-size: 12.5px;
}

.theme-night .qq-group-count {
  color: #7ea3c4;
}

.qq-buddy-row {
  height: 34px;
  padding: 0 6px 0 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-bottom: 1px solid rgba(183, 211, 225, 0.45);
}

.theme-night .qq-buddy-row {
  border-bottom-color: rgba(45, 67, 88, 0.55);
}

.qq-buddy-row.selected {
  margin: 0 4px 0 1px;
  padding: 0 5px 0 4px;
  border: 1px solid #33a0b9;
  border-radius: 2px;
  background: linear-gradient(180deg, #86d5f8 0%, #5eb8da 100%);
}

.theme-night .qq-buddy-row.selected {
  border-color: #4f85b5;
  background: linear-gradient(180deg, #2d4e6d 0%, #1d364d 100%);
}

.qq-avatar-16 {
  width: 16px;
  height: 16px;
  background-image: url('./assets/qq/HeadOnLine.png');
  background-repeat: no-repeat;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.qq-buddy-row.offline .qq-avatar-16 {
  filter: grayscale(1) opacity(0.6);
}

.qq-buddy-row.offline .qq-buddy-name {
  color: #6b8899;
}

.theme-night .qq-buddy-row.offline .qq-buddy-name {
  color: #677d94;
}

.qq-buddy-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qq-buddy-line1 {
  display: flex;
  align-items: center;
  gap: 4px;
}

.qq-buddy-name {
  font-size: 13px;
  color: #16374b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-night .qq-buddy-name {
  color: #e0ecf8;
}

.qq-buddy-sign {
  font-size: 10.5px;
  color: #5b8299;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.theme-night .qq-buddy-sign {
  color: #829cb5;
}

.qq-mini-state {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.qq-mini-state.busy {
  background: #ef4444;
  border: 1px solid #fff;
}

.qq-mini-state.away {
  background: #38bdf8;
  border: 1px solid #fff;
}

.qq-unread-pill {
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: #f97316;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  flex-shrink: 0;
}

.qq-info-btn {
  width: 18px;
  height: 18px;
  border: 0;
  padding: 0;
  background: transparent url('./assets/qq/buddy_more_menu.png') center/16px 16px no-repeat;
  opacity: 0.72;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-night .qq-info-btn {
  background-image: url('./assets/qq/buddy_more_menu_night.png');
}

/* ================== BOTTOM DOCK (30px) ================== */
.qq-bottom-dock {
  height: 30px;
  flex-shrink: 0;
  border-top: 1px solid #3276a6;
  background: linear-gradient(180deg, #1e93c3 0%, #1586b8 45%, #0e73a8 85%, #0b6aa1 100%);
  display: grid;
  grid-template-columns: repeat(4, 60px);
  align-items: center;
}

.theme-night .qq-bottom-dock {
  border-top-color: #253b52;
  background: linear-gradient(180deg, #1c2e41 0%, #111f2e 100%);
}

.qq-dock-btn {
  height: 29px;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qq-dock-btn:active {
  filter: brightness(1.2);
}

.qq-dock-sprite {
  width: 41px;
  height: 30px;
  display: block;
}

/* ================== CHAT SCREEN ================== */
.qq-chat-tabs {
  height: 32px;
  flex-shrink: 0;
  background: #1d5987;
  display: flex;
  align-items: flex-end;
  padding: 0 6px;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.theme-night .qq-chat-tabs {
  background: #0f1b28;
}

.qq-chat-tab {
  width: 40px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.78;
}

.qq-chat-tab.active {
  position: relative;
  z-index: 2;
  height: 34px;
  margin-bottom: -3px;
  padding-bottom: 3px;
  opacity: 1;
  background: url('./assets/qq/char_sel_bg.png') center top/40px 35px no-repeat;
}

.theme-night .qq-chat-tab.active {
  background-image: url('./assets/qq/char_sel_bg_night.png');
}

.qq-chat-subheader {
  height: 28px;
  flex-shrink: 0;
  background: #abdef0;
  border-top: 1px solid #95cdf1;
  border-bottom: 1px solid #95cdf1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 10px;
  color: #16374b;
}

.theme-night .qq-chat-subheader {
  background: #1c2e40;
  border-color: #2d465f;
  color: #e0edf8;
}

.qq-chat-peer-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 145px;
}

.qq-chat-subright {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.qq-chat-close {
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: url('./assets/qq/chat_cancel.png') center/16px 16px no-repeat;
  cursor: pointer;
}

.qq-chat-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #ffffff;
  padding: 4px 7px;
}

.theme-night .qq-chat-feed {
  background: #141e29;
}

.qq-msg-item {
  padding: 4px 1px 6px;
  border-bottom: 1px solid #dfdfdf;
}

.theme-night .qq-msg-item {
  border-bottom-color: #243445;
}

.qq-msg-meta {
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 2px;
}

.qq-msg-meta.self {
  color: #42b475;
}

.qq-msg-meta.buddy {
  color: #4581ce;
}

.theme-night .qq-msg-meta.buddy {
  color: #6bb2ff;
}

.qq-msg-text {
  font-size: 13px;
  color: #002157;
  word-break: break-word;
  line-height: 1.4;
}

.theme-night .qq-msg-text {
  color: #e2ecf7;
}

.qq-msg-system {
  text-align: center;
  font-size: 11px;
  color: #d97706;
  background: #fef3c7;
  border-radius: 3px;
  padding: 3px 6px;
  margin: 4px 0;
}

.theme-night .qq-msg-system {
  background: rgba(217, 119, 6, 0.18);
  color: #fbbf24;
}

.qq-inline-emo {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-image: url('./assets/qq/emo.png');
  background-repeat: no-repeat;
  vertical-align: middle;
  margin: -2px 1px 0;
  transform: scale(0.82);
  transform-origin: center;
}

.qq-chat-inputbar {
  height: 46px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #1b5e8a 0%, #0d4a75 100%);
  border-top: 1px solid #2b75a3;
  padding: 6px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-night .qq-chat-inputbar {
  background: linear-gradient(180deg, #1c2e41 0%, #101d2b 100%);
  border-top-color: #294158;
}

.qq-tb-btn {
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  flex-shrink: 0;
}

.qq-tb-words {
  background-image: url('./assets/qq/toolBarwordsImg.png');
}
.theme-night .qq-tb-words {
  background-image: url('./assets/qq/toolBarwordsImg_night.png');
}

.qq-tb-face {
  background-image: url('./assets/qq/toolBarfaceImg.png');
}
.theme-night .qq-tb-face {
  background-image: url('./assets/qq/toolBarfaceImg_night.png');
}

.qq-chat-input-wrap {
  flex: 1;
  min-width: 0;
  height: 32px;
  background: #ffffff;
  border: 1.5px solid #299be6;
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 3px 0 5px;
  gap: 3px;
}

.theme-night .qq-chat-input-wrap {
  background: #1b2836;
  border-color: #467eb0;
}

.qq-chat-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12.5px;
  color: #002157;
  padding: 0;
}

.theme-night .qq-chat-input {
  color: #eaf2fb;
}

.qq-send-mini {
  border: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #4cb4ec 0%, #2686cc 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ================== POPUP DRAWERS INSIDE CHAT (Emoji / Phrases) ================== */
.qq-pop-panel {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 78px;
  z-index: 20;
  background: #f2faff;
  border: 1.5px solid #2f8fcb;
  border-radius: 5px;
  box-shadow: 0 6px 18px rgba(0, 20, 45, 0.35);
  padding: 6px;
}

.theme-night .qq-pop-panel {
  background: #1a2735;
  border-color: #487bab;
  color: #e2edf8;
}

.qq-pop-panel.hidden {
  display: none;
}

.qq-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  max-height: 132px;
  overflow-y: auto;
}

.qq-emo-cell {
  width: 24px;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qq-emo-cell:hover {
  background: #cfefff;
  border-color: #62b9e8;
}

.qq-phrase-list {
  display: flex;
  flex-direction: column;
  max-height: 150px;
  overflow-y: auto;
}

.qq-phrase-item {
  text-align: left;
  border: 0;
  border-bottom: 1px dashed #c8e1f0;
  background: transparent;
  color: #16374b;
  font-size: 12px;
  padding: 5px 6px;
  cursor: pointer;
}

.theme-night .qq-phrase-item {
  border-bottom-color: #2b3f54;
  color: #d9e8f6;
}

.qq-phrase-item:hover {
  background: #d7f0fc;
}
.theme-night .qq-phrase-item:hover {
  background: #284159;
}

/* ================== LOGIN SCREEN (240x320) ================== */
.qq-top-solidbar {
  height: 28px;
  flex-shrink: 0;
  background: #1d5987;
  color: #f4fbff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.theme-night .qq-top-solidbar {
  background: #111d2a;
}

.qq-login-body {
  flex: 1;
  background: #c5e7fa;
  padding: 20px 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-night .qq-login-body {
  background: #15212d;
}

.qq-login-card {
  background: #ffffff;
  border-radius: 3px;
  padding: 12px 10px 11px;
  box-shadow: 0 1px 4px rgba(15, 60, 100, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-night .qq-login-card {
  background: #1e2d3d;
  border: 1px solid #304963;
}

.qq-login-form-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qq-login-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid #bcd9ea;
  border-radius: 2px;
  background: #eef6fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qq-login-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qq-field-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: #425a6c;
}

.theme-night .qq-field-row {
  color: #c2d6ea;
}

.qq-field-input,
.qq-field-select {
  flex: 1;
  min-width: 0;
  height: 23px;
  border: 1.5px solid #359ce2;
  border-radius: 2px;
  padding: 0 5px;
  font-size: 12px;
  color: #1c3548;
  background: #ffffff;
  outline: none;
}

.theme-night .qq-field-input,
.theme-night .qq-field-select {
  background: #14202c;
  border-color: #467cb0;
  color: #e6f0fa;
}

.qq-login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.qq-check-lbl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #365f7a;
  cursor: pointer;
}

.theme-night .qq-check-lbl {
  color: #aec7e0;
}

.qq-login-btn {
  width: 82px;
  height: 28px;
  border: 1px solid #2279b8;
  border-radius: 3px;
  background: linear-gradient(180deg, #52bdf2 0%, #2788cc 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.qq-login-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 6px;
  padding: 2px 6px;
}

/* ================== QZONE & WAP BROWSER SCREENS ================== */
.qq-sub-banner {
  height: 32px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #55bce9 0%, #2d95ce 100%);
  border-bottom: 1px solid #1e78ad;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.theme-night .qq-sub-banner {
  background: linear-gradient(180deg, #253b52 0%, #162433 100%);
  border-bottom-color: #2f4b66;
}

.qq-sub-banner-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qq-icon-btn-20 {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent center/18px 18px no-repeat;
  cursor: pointer;
}

.qq-sub-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #edf7fd;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.theme-night .qq-sub-scroll {
  background: #141f2b;
}

.qq-qzone-composer {
  background: #ffffff;
  border: 1px solid #bce0f2;
  border-radius: 4px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.theme-night .qq-qzone-composer {
  background: #1b2a39;
  border-color: #2d465f;
}

.qq-qzone-textarea {
  width: 100%;
  height: 36px;
  resize: none;
  border: 1px solid #a8d4ec;
  border-radius: 3px;
  padding: 4px 5px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.theme-night .qq-qzone-textarea {
  background: #131e29;
  border-color: #365370;
  color: #e4eff9;
}

.qq-qzone-post {
  background: #ffffff;
  border: 1px solid #c5e2f2;
  border-radius: 4px;
  padding: 7px;
}

.theme-night .qq-qzone-post {
  background: #1b2a39;
  border-color: #2c435a;
}

.qq-qzone-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.qq-qzone-author {
  font-size: 12px;
  font-weight: 700;
  color: #236ca8;
}

.theme-night .qq-qzone-author {
  color: #6bb2ff;
}

.qq-qzone-time {
  font-size: 10.5px;
  color: #7d9ab0;
  margin-left: auto;
}

.qq-qzone-text {
  font-size: 12px;
  color: #1c3648;
  line-height: 1.45;
  margin-bottom: 5px;
}

.theme-night .qq-qzone-text {
  color: #dce9f6;
}

.qq-qzone-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.qq-mini-link {
  border: 0;
  background: #e6f5fd;
  color: #1f74b4;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11px;
  cursor: pointer;
}

.theme-night .qq-mini-link {
  background: #243b52;
  color: #82c4ff;
}

.qq-qzone-comments {
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px dashed #d3e7f3;
  font-size: 11px;
  color: #46687f;
}

.theme-night .qq-qzone-comments {
  border-top-color: #2f4963;
  color: #9cb5cc;
}

/* WAP Browser */
.qq-wap-urlbar {
  background: #ffffff;
  border: 1px solid #96cce9;
  border-radius: 3px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #286a99;
}

.theme-night .qq-wap-urlbar {
  background: #1b2a39;
  border-color: #365470;
  color: #7cc0ff;
}

.qq-wap-card {
  background: #ffffff;
  border: 1px solid #bfe0f2;
  border-radius: 4px;
  overflow: hidden;
}

.theme-night .qq-wap-card {
  background: #1b2a39;
  border-color: #2d465f;
}

.qq-wap-card-title {
  background: #d8effb;
  color: #114d78;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
}

.theme-night .qq-wap-card-title {
  background: #23384d;
  color: #a4d2ff;
}

.qq-wap-link {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e7f3fa;
  background: transparent;
  padding: 6px 8px;
  font-size: 12px;
  color: #184361;
  cursor: pointer;
  display: flex;
  gap: 5px;
}

.theme-night .qq-wap-link {
  border-bottom-color: #273b50;
  color: #d6e6f5;
}

.qq-wap-link:hover {
  background: #eaf7fe;
}
.theme-night .qq-wap-link:hover {
  background: #243b52;
}

/* ================== 9-GRID SYSTEM MENU & MODALS ================== */
.qq-modal-backdrop {
  position: absolute;
  inset: 0;
  bottom: 30px;
  z-index: 30;
  background: rgba(9, 24, 42, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.qq-modal-backdrop.hidden {
  display: none;
}

.qq-menu-grid {
  width: 228px;
  background: linear-gradient(180deg, rgba(20, 74, 118, 0.96) 0%, rgba(12, 46, 79, 0.97) 100%);
  border: 1.5px solid #69bff0;
  border-radius: 8px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.qq-menu-tile {
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  color: #eef8ff;
  font-size: 10.5px;
}

.qq-menu-tile.active,
.qq-menu-tile:hover {
  background: rgba(88, 187, 245, 0.28);
  border-color: #79cefa;
}

.qq-menu-tile img {
  width: 52px;
  height: 40px;
  object-fit: contain;
}

/* Status Dropdown & Profile Dialog */
.qq-dialog-box {
  width: 214px;
  background: #f5fbff;
  border: 1.5px solid #2e91cd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.theme-night .qq-dialog-box {
  background: #1a2837;
  border-color: #4f85b5;
  color: #e2edf8;
}

.qq-dialog-head {
  background: linear-gradient(180deg, #53bce9 0%, #268cc8 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qq-dialog-body {
  padding: 9px;
  font-size: 12px;
  line-height: 1.5;
}

.qq-status-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #dceef8;
  background: transparent;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #16374b;
  cursor: pointer;
}

.theme-night .qq-status-option {
  border-bottom-color: #2a3e54;
  color: #e0ecf8;
}

.qq-status-option:hover {
  background: #d9f1fd;
}

.qq-toast {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  z-index: 45;
  width: max-content;
  max-width: 216px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(12, 30, 50, 0.9);
  border: 1px solid rgba(114, 200, 248, 0.55);
  color: #f0f9ff;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.qq-toast.show {
  opacity: 1;
}

/* ================== CHAT 2026 SPOILER QUICK STRIP ================== */
.qq-spoiler-bar {
  flex-shrink: 0;
  background: #edf8fe;
  border-top: 1px solid #cce6f5;
  padding: 3px 5px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.qq-spoiler-bar::-webkit-scrollbar { display: none; }
.qq-spoiler-bar.hidden { display: none; }

.theme-night .qq-spoiler-bar {
  background: #182534;
  border-top-color: #273c52;
}

.qq-spoiler-chip {
  border: 1px solid #6cbbe4;
  background: #ffffff;
  color: #16608f;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10.5px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.qq-spoiler-chip:hover {
  background: #d7f0fc;
}

.theme-night .qq-spoiler-chip {
  background: #203347;
  border-color: #4678a6;
  color: #a8d5ff;
}

/* Locked QZone Post */
.qq-qzone-locked {
  border: 1.5px solid #e09f3e;
  background: #fffbeb;
}
.theme-night .qq-qzone-locked {
  background: #252218;
  border-color: #b7791f;
}
.qq-lock-row {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

/* Night Ghost pulsing highlight */
.qq-buddy-row.ghost-awake .qq-buddy-name {
  color: #38bdf8;
  font-weight: 700;
}

/* Nokia Classic Boot Overlay & Screen Crack Overlay */
.qq-nokia-boot {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: linear-gradient(180deg, #0b1930 0%, #102a52 55%, #071224 100%);
  color: #e6f4ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.qq-nokia-boot.hidden { display: none; }

.qq-boot-hands {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 26px;
  animation: boot-hands-meet 1.4s ease-out forwards;
}

@keyframes boot-hands-meet {
  0% { gap: 46px; opacity: 0.3; }
  70% { gap: 4px; opacity: 1; }
  100% { gap: 2px; opacity: 1; }
}

.qq-boot-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.28em;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.8);
}

.qq-boot-sub {
  font-size: 11px;
  color: #93c5fd;
  letter-spacing: 0.08em;
}

.qq-crack-overlay {
  position: absolute;
  inset: 0;
  z-index: 42;
  pointer-events: none;
  opacity: 0.92;
}
.qq-crack-overlay.hidden { display: none; }

/* Time Capsule Overlay */
.qq-year-banner {
  position: absolute;
  inset: 0;
  z-index: 46;
  background: rgba(7, 16, 29, 0.86);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  color: #f0f9ff;
}
.qq-year-banner.hidden { display: none; }
.qq-year-num {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #38bdf8;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
}
.qq-year-desc {
  font-size: 12px;
  line-height: 1.55;
  color: #cbd5e1;
}

/* ================== NOKIA S60 SYMBIAN DESKTOP & APPS ================== */
.s60-home {
  color: #172f46;
  background: #e4eef4 center / cover no-repeat;
  isolation: isolate;
}
.s60-home [hidden] { display: none; }
.s60-statusbar {
  height: 24px;
  flex: none;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: bold 12px/1 Arial, sans-serif;
  color: white;
  background: #284764;
}
.s60-photo .s60-statusbar { background: linear-gradient(#131a22b8, #161d2770); }
.s60-network, .s60-power, .s60-signal { display: inline-flex; align-items: center; gap: 5px; }
.s60-signal { align-items: end; gap: 1px; }
.s60-signal b { width: 2px; background: currentColor; height: 3px; }
.s60-signal b:nth-child(2) { height: 5px; }
.s60-signal b:nth-child(3) { height: 7px; }
.s60-signal b:nth-child(4) { height: 9px; }
.s60-power { font-size: 10px; }
.s60-power i { width: 16px; height: 8px; border: 1px solid white; padding: 1px; background: #ddf8c0 content-box; position: relative; }
.s60-power i::after { content: ''; width: 2px; height: 4px; background: white; position: absolute; right: -3px; top: 1px; }
.s60-standby { flex: 1; padding: 7px 9px; position: relative; color: white; }
.s60-clock-widget {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
  padding: 3px 6px 4px;
  background: #17202cb8;
  border-left: 2px solid #e0eef3;
}
.s60-home:is([data-picture="window-light"], [data-picture="starlit-feather"], [data-picture="doorway"]) .s60-clock-widget {
  float: right;
}
.s60-clock-widget strong { font: bold 23px/1.05 Arial, sans-serif; font-variant-numeric: tabular-nums; }
.s60-clock-widget span { font-size: 10px; }
.s60-unread {
  position: absolute;
  bottom: 6px;
  left: 7px;
  padding: 4px 7px;
  color: white;
  background: #17202cd9;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.s60-unread:disabled { opacity: 1; }
.s60-home .s60-softbar { padding: 0 5px; height: 28px; background: #254561; border-top: 1px solid #7792a8; }
.s60-photo .s60-softbar { background: #17212cd9; border-color: #ffffff65; }
.s60-home .s60-softbtn { height: 100%; min-width: 55px; font-size: 13px; color: white; }
.s60-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; background: linear-gradient(#eef5f9, #ccdde7); }
.s60-pane h2 { margin: 0; padding: 4px 10px; font-size: 18px; color: #163954; border-bottom: 1px solid #adbfcd; }
.s60-menu-grid, .s60-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
}
.s60-menu-grid button, .s60-photo-grid button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 0;
  background: transparent;
  border: 1px solid transparent;
  color: #19394e;
  line-height: 1.25;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.s60-menu-grid button { height: 65px; }
.s60-menu-grid img, .s60-menu-grid button > span { width: 30px; height: 30px; object-fit: contain; font-size: 23px; }
.s60-photo-grid img { width: 54px; height: 72px; border: 1px solid #8d9dab; image-rendering: auto; }
.s60-photo-grid [aria-current=true]::after {
  content: '✓';
  position: absolute;
  top: 3px;
  right: 5px;
  width: 17px;
  line-height: 17px;
  background: #275c34;
  color: white;
  border: 1px solid white;
}
.s60-menu-grid .s60-current, .s60-photo-grid .s60-current,
.s60-menu-grid button:focus-visible, .s60-photo-grid button:focus-visible {
  color: white;
  background: linear-gradient(#367ca8, #1b547f);
  border-color: #124262;
}
.s60-game-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  overflow-y: auto;
  padding: 6px;
}
.s60-game-list .s60-games-grid { display: contents; }
.s60-game-list .s60-current { outline: 2px solid #337aac; outline-offset: 0; }
.qq-lcd.is-standby .qq-guest-watermark { inset: auto 5px 30px auto; }
.qq-lcd.is-standby .qq-guest-watermark span { transform: none; font-size: 8px; letter-spacing: 0; }

.s60-softbar {
  height: 26px;
  padding: 0 10px;
  background: rgba(7, 17, 34, 0.78);
  border-top: 1px solid rgba(125, 211, 252, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.s60-softbtn {
  border: 0;
  background: transparent;
  color: #bae6fd;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}

/* S60 Sub Apps (SMS / Notes / Dialer) */
.s60-sub-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #f1f7fc;
  color: #16374b;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.s60-list-item {
  width: 100%;
  text-align: left;
  border: 1px solid #c5dff0;
  border-radius: 5px;
  background: #ffffff;
  padding: 7px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.s60-list-item:hover {
  background: #e1f3fc;
  border-color: #6abae6;
}
.s60-list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #0e4a73;
}
.s60-unread-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: 4px;
}
.s60-list-preview {
  font-size: 11px;
  color: #4f7087;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s60-reader-card {
  background: #ffffff;
  border: 1px solid #b8d8eb;
  border-radius: 6px;
  padding: 9px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-line;
}

/* Dialer */
.s60-dial-display {
  background: #ffffff;
  border: 1.5px solid #359ce2;
  border-radius: 4px;
  padding: 6px 8px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.s60-dial-num {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0d3a5c;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s60-dial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  flex: 1;
}
.s60-dial-key {
  border: 1px solid #b5d5e8;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #e4f2fa 100%);
  color: #0f3d5e;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px 0;
}
.s60-dial-key:active {
  background: #cdeafd;
}
.s60-dial-sub {
  font-size: 8.5px;
  font-weight: 600;
  color: #6487a1;
}
.s60-dial-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.s60-call-btn {
  height: 28px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #22c55e, #15803d);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.s60-clear-btn {
  height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ================== VIP RED-NAME, 7 DIAMONDS & GUEST WATERMARK ================== */
.qq-guest-watermark {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qq-guest-watermark.hidden { display: none; }
.qq-guest-watermark span {
  transform: rotate(-28deg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.25);
  border: 1px dashed rgba(15, 23, 42, 0.18);
  padding: 2px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.theme-night .qq-guest-watermark span {
  color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.16);
}

.qq-vip-nick {
  color: #ffeb3b !important;
  text-shadow: 0 1px 2px rgba(185, 28, 28, 0.85), 0 0 6px rgba(239, 68, 68, 0.65);
}
.qq-vip-tag {
  display: inline-block;
  margin-left: 3px;
  padding: 0 3px;
  border-radius: 2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  vertical-align: middle;
}
.qq-diamond-strip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 3px;
  vertical-align: middle;
}
.qq-d-pip {
  display: inline-block;
  padding: 0 2.5px;
  border-radius: 2px;
  font-size: 8px;
  font-weight: 800;
  color: #ffffff;
  line-height: 11px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

/* Gold Black Luxury VIP Skin */
.qq-lcd.theme-gold .qq-main-header {
  background: linear-gradient(180deg, #4b3914 0%, #2a200b 55%, #191306 100%);
  border-bottom-color: #a17c25;
}
.qq-lcd.theme-gold .qq-list-body {
  background: #19150b;
  color: #f6e7c1;
}
.qq-lcd.theme-gold .qq-group-row {
  color: #fde68a;
  border-bottom-color: #3a2e14;
  box-shadow: none;
}
.qq-lcd.theme-gold .qq-buddy-name {
  color: #fef3c7;
}
.qq-lcd.theme-gold .qq-buddy-sign {
  color: #c2a96e;
}
.qq-lcd.theme-gold .qq-bottom-dock {
  background: linear-gradient(180deg, #3c2e10 0%, #1c1507 100%);
  border-top-color: #8f6d1d;
}

.s60-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.s60-game-tile {
  min-width: 0;
  border: 1px solid rgba(148, 210, 255, 0.22);
  border-radius: 7px;
  background: rgba(12, 29, 56, 0.8);
  padding: 4px 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  color: #f0f9ff;
}
.s60-game-tile:hover { background: rgba(34, 91, 163, 0.82); border-color: #38bdf8; }
.s60-game-thumb {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0f172a;
}
.s60-game-meta { min-width: 0; flex: 1; }
.s60-game-name {
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s60-game-genre {
  font-size: 9px;
  color: #93c5fd;
}

/* Playable Snake LCD Screen */
.snake-wrap {
  flex: 1;
  background: #9bbc0f;
  color: #0f380f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px;
}
.snake-hud {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  border-bottom: 1px solid #306230;
  padding-bottom: 2px;
}
.snake-canvas {
  background: #8bac0f;
  border: 2px solid #0f380f;
  image-rendering: pixelated;
}
.snake-pad {
  display: flex;
  gap: 6px;
  align-items: center;
}
.snake-btn {
  border: 1px solid #0f380f;
  background: #9bbc0f;
  color: #0f380f;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  padding: 3px 9px;
  cursor: pointer;
}

/* Q-Coin Shop & Director Screen inside 240x320 LCD */
.qq-shop-item {
  background: #ffffff;
  border: 1px solid #bfe0f2;
  border-radius: 5px;
  padding: 5px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.qq-shop-pill {
  padding: 2px 5px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.qq-dir-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.qq-dir-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}



