/* Karakter sandığı = telefon tam ekran (body zoom kapalı) + Veli raporu */

html.nova-has-session body.nova-char-open {
  zoom: 1 !important;
  transform: none !important;
  width: 100% !important;
}

#characterInventoryOverlay.character-inventory-overlay {
  z-index: 10080 !important;
  background-color: #071018 !important;
  background-image:
    radial-gradient(90% 55% at 50% -8%, rgba(56, 189, 248, 0.22), transparent 52%),
    radial-gradient(70% 50% at 0% 100%, rgba(168, 85, 247, 0.2), transparent 48%),
    linear-gradient(180deg, #122033 0%, #0a1420 42%, #071018 100%) !important;
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  height: 100dvh !important;
  height: 100svh !important;
  min-height: 100% !important;
  min-height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#characterInventoryOverlay[aria-hidden="false"] {
  display: flex !important;
}

#characterInventoryOverlay .character-inventory-surface {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(165deg, #1c2740 0%, #101827 48%, #0c1322 100%) !important;
  border: 0 !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 60px rgba(34, 211, 238, 0.08) !important;
}

@media (min-width: 560px) {
  #characterInventoryOverlay .character-inventory-surface {
    max-width: 520px !important;
    margin: 0 auto !important;
    border-left: 1px solid rgba(56, 189, 248, 0.16) !important;
    border-right: 1px solid rgba(56, 189, 248, 0.16) !important;
  }
}

#characterInventoryOverlay .char-inv-hero-stars,
#characterInventoryOverlay .char-inv-hero-star,
#characterInventoryOverlay .star-frame {
  display: none !important;
}

#characterInventoryOverlay .char-inv-header {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: max(12px, env(safe-area-inset-top, 0px)) 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#characterInventoryOverlay .char-inv-title-block {
  min-width: 0;
}

#characterInventoryOverlay .char-inv-kicker {
  margin: 0 0 2px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #7dd3fc;
}

#characterInventoryOverlay .char-inv-header h2 {
  font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  line-height: 1.1;
}

#characterInventoryOverlay .char-inv-close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

#characterInventoryOverlay .char-inv-hero {
  flex-shrink: 0;
  margin: 8px 14px 0;
  padding: 14px 16px;
  display: block !important;
  grid-template-columns: none !important;
  border-radius: 22px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background:
    linear-gradient(135deg, rgba(14, 116, 144, 0.32), rgba(30, 27, 75, 0.62));
}

#characterInventoryOverlay .char-inv-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

#characterInventoryOverlay .char-inv-profile-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 900;
  color: #0f172a;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  box-shadow: 0 6px 0 #b45309;
}

#characterInventoryOverlay .char-inv-profile-copy {
  min-width: 0;
  flex: 1;
}

#characterInventoryOverlay .char-inv-hero-name {
  font-size: clamp(1.2rem, 4.6vw, 1.55rem);
}

#characterInventoryOverlay .char-inv-profile-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: #7dd3fc;
  text-transform: uppercase;
}

#characterInventoryOverlay .char-profile-card {
  margin: 4px 0 0;
  padding: 16px 16px 12px;
  border-radius: 22px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(8, 14, 28, 0.92));
}

#characterInventoryOverlay .char-profile-card-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fde68a;
}

#characterInventoryOverlay .char-profile-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#characterInventoryOverlay .char-profile-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(8, 15, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#characterInventoryOverlay .char-profile-row span {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #93c5fd;
  text-transform: uppercase;
}

#characterInventoryOverlay .char-profile-row b {
  min-width: 0;
  text-align: right;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.3;
}

#characterInventoryOverlay .char-profile-note {
  margin: 12px 0 10px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
  color: #bae6fd;
}

#characterInventoryOverlay .char-profile-edit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  color: #062033;
  background: linear-gradient(180deg, #7dd3fc, #38bdf8);
  box-shadow: 0 6px 0 #0284c7;
  cursor: pointer;
}

#characterInventoryOverlay .char-profile-edit:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: default;
}

#characterInventoryOverlay .char-inv-hero-stats {
  gap: 10px;
}

#characterInventoryOverlay .char-inv-stat-pill {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.7);
}

#characterInventoryOverlay .char-inv-summary-line {
  margin-top: 6px;
  font-size: 13px;
  color: #e2e8f0;
}

/* Büyük Veli butonu */
#characterInventoryOverlay .char-inv-veli-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 14px max(14px, env(safe-area-inset-bottom, 0px));
  padding: 14px 16px;
  min-height: 72px;
  border-radius: 20px;
  border: 3px solid #fbbf24;
  background:
    linear-gradient(180deg, #fff7d6 0%, #fde68a 42%, #f59e0b 100%);
  color: #1c1917;
  box-shadow:
    0 8px 0 #b45309,
    0 14px 28px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
  font-family: inherit;
  transition: transform 0.12s ease, filter 0.12s ease;
}

#characterInventoryOverlay .char-inv-veli-btn:hover {
  filter: brightness(1.04);
}

#characterInventoryOverlay .char-inv-veli-btn:active {
  transform: translateY(4px);
  box-shadow:
    0 4px 0 #b45309,
    0 8px 16px rgba(245, 158, 11, 0.28);
}

#characterInventoryOverlay .char-inv-veli-ico {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

#characterInventoryOverlay .char-inv-veli-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

#characterInventoryOverlay .char-inv-veli-label {
  font-size: clamp(1.35rem, 6vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

#characterInventoryOverlay .char-inv-veli-sub {
  font-size: 13px;
  font-weight: 700;
  color: #44403c;
  line-height: 1.25;
}

#characterInventoryOverlay .char-inv-veli-go {
  font-size: 1.6rem;
  font-weight: 900;
  color: #92400e;
  flex-shrink: 0;
}

#characterInventoryOverlay .char-inv-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 14px max(18px, env(safe-area-inset-bottom, 0px));
}
#characterInventoryOverlay .char-inv-scroll .char-inv-panel {
  flex: 0 0 auto;
  overflow: visible;
  padding: 0;
}

#characterInventoryOverlay #char_inv_panel_heroes .char-inv-hero-equipped {
  gap: 14px;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid rgba(253, 224, 71, 0.4);
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.7), rgba(15, 23, 42, 0.9));
}

#characterInventoryOverlay .char-inv-hero-equipped__preview {
  width: 128px !important;
  height: 144px !important;
  border-radius: 16px;
  overflow: hidden;
  container-type: size;
  background: rgba(8, 15, 28, 0.65);
}

#characterInventoryOverlay .char-inv-hero-equipped__info h3 {
  font-size: 1.2rem;
  color: #fffbeb;
}

#characterInventoryOverlay .char-inv-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#characterInventoryOverlay .char-inv-hero-card .char-inv-hero-thumb-host {
  height: 148px !important;
  margin-bottom: 8px;
  border-radius: 14px;
  overflow: hidden;
  container-type: size;
}

#characterInventoryOverlay .char-inv-hero-equipped__preview .nova-kosucu-stage,
#characterInventoryOverlay .char-inv-hero-thumb-host .nova-kosucu-stage,
#characterInventoryOverlay .char-inv-hero-equipped__preview .nova-kosucu-rig,
#characterInventoryOverlay .char-inv-hero-thumb-host .nova-kosucu-rig,
#characterInventoryOverlay .char-inv-hero-equipped__preview .nova-kosucu-alive,
#characterInventoryOverlay .char-inv-hero-thumb-host .nova-kosucu-alive {
  width: 100%;
  height: 100%;
}

#characterInventoryOverlay .char-inv-card-title {
  font-size: 13px;
  min-height: 1.4em;
}

#characterInventoryOverlay .char-inv-card .char-inv-action,
#characterInventoryOverlay .char-inv-in-use {
  min-height: 40px;
  font-size: 13px;
}

/* Veli raporu tam panel */
#characterInventoryOverlay .char-lesson-status-panel {
  background:
    linear-gradient(180deg, #fffbeb 0%, #fef3c7 28%, #ecfeff 100%) !important;
}

#characterInventoryOverlay .char-lesson-status-head {
  background: linear-gradient(180deg, #0f766e, #0e7490);
  border-bottom: 0;
  padding: max(12px, env(safe-area-inset-top, 0px)) 14px 12px;
}

#characterInventoryOverlay .char-lesson-status-title {
  color: #fffbeb;
  font-size: clamp(1.15rem, 4.5vw, 1.35rem);
}

#characterInventoryOverlay .char-lesson-back {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 12px;
}

#characterInventoryOverlay .char-lesson-status-body {
  padding: 14px 14px max(22px, env(safe-area-inset-bottom, 0px));
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.veli-report {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #1c1917;
}

.veli-hero-card {
  background: #fff;
  border-radius: 22px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  border: 2px solid rgba(14, 116, 144, 0.12);
}

.veli-hero-card .veli-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f766e;
}

.veli-hero-card h2 {
  margin: 0 0 4px;
  font-size: clamp(1.45rem, 6vw, 1.8rem);
  color: #0f172a;
  line-height: 1.15;
}

.veli-hero-card .veli-class {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #475569;
}

.veli-light {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  font-weight: 800;
}

.veli-light b {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.veli-light span.veli-light-text {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.veli-light-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7);
}

.veli-light--star {
  background: #dcfce7;
  color: #14532d;
}
.veli-light--star .veli-light-dot { background: #22c55e; }

.veli-light--ok {
  background: #fef9c3;
  color: #713f12;
}
.veli-light--ok .veli-light-dot { background: #eab308; }

.veli-light--grow {
  background: #ffedd5;
  color: #7c2d12;
}
.veli-light--grow .veli-light-dot { background: #f97316; }

.veli-light--empty {
  background: #e0f2fe;
  color: #0c4a6e;
}
.veli-light--empty .veli-light-dot { background: #38bdf8; }

.veli-section {
  background: #fff;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

.veli-section h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #0f172a;
}

.veli-week-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.veli-week-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 12px 8px 10px;
  border-radius: 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
}

.veli-week-card .ico {
  font-size: 1.55rem;
  line-height: 1;
}

.veli-week-card b {
  font-size: 1.55rem;
  color: #0f172a;
  line-height: 1.1;
}

.veli-week-card small {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

.veli-letters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 10px;
  padding: 4px 2px 2px;
  overflow: visible;
}

.veli-letter {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 100%;
  min-height: 72px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px 6px;
  font-size: 1.35rem;
  font-weight: 900;
  border: 2px solid #cbd5e1;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  color: #64748b;
  box-shadow: 0 2px 0 #94a3b8;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.veli-letter:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #94a3b8;
}

.veli-letter:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 2px;
}

.veli-letter-ch {
  line-height: 1.05;
  font-size: 1.45rem;
}

.veli-letter em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.9;
  line-height: 1;
}

.veli-letter-grade {
  display: block;
  margin-top: 1px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  opacity: 0.95;
}

.veli-letter.is-played:not(.is-super):not(.is-iyi):not(.is-orta):not(.is-tekrar),
.veli-letter.is-done {
  background: linear-gradient(180deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
  color: #92400e;
  box-shadow: 0 3px 0 #d97706;
}

/* Süper %80–100 — açık parlak yeşil */
.veli-letter.is-super {
  background: linear-gradient(180deg, #bbf7d0, #4ade80);
  border-color: #16a34a;
  color: #14532d;
  box-shadow: 0 4px 0 #15803d;
}

/* İyi %65–79 — soluk yeşil */
.veli-letter.is-iyi {
  background: linear-gradient(180deg, #ecfdf5, #a7f3d0);
  border-color: #6ee7b7;
  color: #065f46;
  box-shadow: 0 4px 0 #34d399;
}

/* Orta %40–64 — sarı */
.veli-letter.is-orta {
  background: linear-gradient(180deg, #fef9c3, #fde047);
  border-color: #ca8a04;
  color: #713f12;
  box-shadow: 0 4px 0 #a16207;
}

/* Tekrar %0–39 — kırmızı */
.veli-letter.is-tekrar {
  background: linear-gradient(180deg, #ffe4e6, #fb7185);
  border-color: #e11d48;
  color: #9f1239;
  box-shadow: 0 4px 0 #be123c;
}

.veli-letter-group {
  margin-top: 14px;
}

.veli-letter-group:first-of-type {
  margin-top: 4px;
}

.veli-letter-group-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
}

.veli-legend .lg-super { background: #bbf7d0; color: #14532d; }
.veli-legend .lg-iyi { background: #d1fae5; color: #065f46; }
.veli-legend .lg-orta { background: #fef9c3; color: #854d0e; }
.veli-legend .lg-tekrar { background: #ffe4e6; color: #9f1239; }
.veli-legend .lg-star { background: #dcfce7; color: #166534; }
.veli-legend .lg-ok { background: #fef9c3; color: #854d0e; }
.veli-legend .lg-grow { background: #ffedd5; color: #9a3412; }
.veli-legend .lg-empty { background: #e2e8f0; color: #475569; }

.veli-rank-grade--super { color: #047857; }
.veli-rank-grade--iyi { color: #059669; }
.veli-rank-grade--orta { color: #b45309; }
.veli-rank-grade--tekrar { color: #be123c; }
.veli-rank-grade--guzel { color: #b45309; }

.veli-letter.is-soft-g .veli-letter-ch {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.veli-letter.is-soft-g::after {
  content: "yumuşak";
  display: block;
  font-size: 7px;
  font-weight: 700;
  opacity: 0.75;
  line-height: 1;
  margin-top: 1px;
}

.veli-section--letters .veli-legend--letters {
  margin: 8px 0 12px;
}

.veli-tip {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #334155;
  font-weight: 600;
}

.veli-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.veli-legend i {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
}

.veli-legend .lg-star { background: #dcfce7; color: #166534; }
.veli-legend .lg-ok { background: #fef9c3; color: #854d0e; }
.veli-legend .lg-grow { background: #ffedd5; color: #9a3412; }
.veli-legend .lg-empty { background: #e2e8f0; color: #475569; }

.veli-topic {
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 2px solid transparent;
}

.veli-topic:last-child { margin-bottom: 0; }

.veli-topic .top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.veli-topic .top strong {
  font-size: 15px;
}

.veli-topic p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.veli-topic .nums {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
  opacity: 0.85;
}

.veli-topic--star,
.veli-topic--super {
  background: linear-gradient(180deg, #bbf7d0, #86efac);
  border-color: #16a34a;
  color: #14532d;
}
.veli-topic--iyi {
  background: linear-gradient(180deg, #ecfdf5, #a7f3d0);
  border-color: #6ee7b7;
  color: #065f46;
}
.veli-topic--ok,
.veli-topic--orta {
  background: linear-gradient(180deg, #fef9c3, #fde047);
  border-color: #ca8a04;
  color: #713f12;
}
.veli-topic--grow,
.veli-topic--tekrar {
  background: linear-gradient(180deg, #ffe4e6, #fb7185);
  border-color: #e11d48;
  color: #9f1239;
}
.veli-topic--super .veli-bar i,
.veli-topic--iyi .veli-bar i {
  background: linear-gradient(90deg, #16a34a, #86efac);
}
.veli-topic--orta .veli-bar i {
  background: linear-gradient(90deg, #ca8a04, #fde047);
}
.veli-topic--tekrar .veli-bar i {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}

.veli-rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 18px;
  border: 2px solid transparent;
}
.veli-rank:last-child { margin-bottom: 0; }
.veli-rank--bad {
  background: #fff1f2;
  border-color: #fda4af;
  color: #881337;
}
.veli-rank--good {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #14532d;
}
.veli-ring {
  --p: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: conic-gradient(#fb7185 calc(var(--p) * 1%), #fecdd3 0);
}
.veli-rank--good .veli-ring {
  background: conic-gradient(#22c55e calc(var(--p) * 1%), #bbf7d0 0);
}
.veli-ring span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}
.veli-rank-copy {
  min-width: 0;
  flex: 1;
}
.veli-rank-copy strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.veli-rank-copy p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.88;
}
.veli-rank-subject {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 2px;
}
.veli-rank-grade {
  display: inline-block;
  margin: 2px 0 4px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.veli-rank-grade--super { color: #047857; }
.veli-rank-grade--iyi { color: #059669; }
.veli-rank-grade--orta { color: #b45309; }
.veli-rank-grade--guzel { color: #b45309; }
.veli-rank-grade--tekrar { color: #be123c; }
.veli-rank--mid {
  background: #fffbeb;
  border-color: #fcd34d;
}

.veli-sound-hero {
  text-align: center;
  padding: 8px 0 16px;
}
.veli-sound-letter {
  width: 88px;
  height: 88px;
  margin: 0 auto 10px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  color: #78350f;
  box-shadow: 0 8px 0 #b45309;
}
.veli-miss-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.veli-miss {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: #fff1f2;
  border: 2px solid #fecdd3;
  color: #9f1239;
  font-weight: 800;
}
.veli-miss.has-no-art {
  grid-template-columns: 1fr;
}
.veli-miss.has-play {
  grid-template-columns: 96px 1fr;
}
.veli-miss-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.veli-miss.has-art.has-play .veli-miss-side .veli-miss-play {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 1.1rem;
}
.veli-miss.has-photos {
  grid-template-columns: 1fr;
}
.veli-miss-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.veli-miss-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #e7e5e4;
  background: #fff;
}
.veli-miss-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff7ed;
}
.veli-miss-photo figcaption {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 2px 6px;
}
.veli-miss-photo.is-bad {
  border-color: #e11d48;
}
.veli-miss-photo.is-bad figcaption {
  color: #be123c;
  background: #fff1f2;
}
.veli-miss-photo.is-ok {
  border-color: #16a34a;
}
.veli-miss-photo.is-ok figcaption {
  color: #166534;
  background: #f0fdf4;
}
.veli-miss-art {
  margin: 0;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff7ed;
  border: 2px solid #fecdd3;
  flex-shrink: 0;
}
.veli-miss.has-no-art .veli-miss-art { display: none; }
.veli-miss-play {
  width: 96px;
  height: 96px;
  margin: 0;
  padding: 0;
  border-radius: 16px;
  border: 2px solid #fecdd3;
  background: #fff7ed;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 42px;
  line-height: 1;
  flex-shrink: 0;
  color: #9f1239;
}
.veli-miss-play:active,
.veli-miss-play.is-on {
  background: #ffe4e6;
}
.veli-miss-play-mini {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 0 0 6px;
  padding: 0;
  vertical-align: middle;
  border-radius: 999px;
  border: 2px solid #fecdd3;
  background: #fff7ed;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.veli-miss-play-mini:active,
.veli-miss-play-mini.is-on {
  background: #ffe4e6;
}
.veli-miss-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fffbeb;
}
.veli-miss-body { min-width: 0; }
.veli-miss b { font-size: 15px; }
.veli-miss-kind {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe4e6;
  color: #9f1239;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.veli-miss-prompt {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  color: #881337;
}
.veli-miss-line {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: #9f1239;
}
.veli-miss-line--ok { color: #0f766e; }
.veli-miss-cap {
  display: inline-block;
  min-width: 4.2em;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #94a3b8;
}
.veli-miss-cap--bad { color: #be123c; }
.veli-miss-cap--ok { color: #0f766e; }
.veli-miss-order { display: flex; flex-direction: column; gap: 6px; }
.veli-miss-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
}
.veli-miss-tiles--bad {
  background: #fff1f2;
  outline: 2px solid #fda4af;
}
.veli-miss-tiles--ok {
  background: #f0fdfa;
  outline: 2px solid #5eead4;
}
.veli-miss-tiles i {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  padding: 4px 7px;
  border-radius: 10px;
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
}
.veli-miss-tiles--bad i {
  background: #fecaca;
  color: #9f1239;
}
.veli-miss-tiles--ok i {
  background: #ccfbf1;
  color: #0f766e;
}
.veli-miss-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
@media (max-width: 360px) {
  .veli-miss.has-art,
  .veli-miss.has-play { grid-template-columns: 76px 1fr; }
  .veli-miss-art,
  .veli-miss-play { width: 76px; height: 76px; }
  .veli-miss-play { font-size: 34px; }
}
.veli-miss small {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-align: right;
}
.veli-miss.has-game {
  grid-template-columns: 1fr;
  background: #fff7ed;
  border-color: #fdba74;
  color: #7c2d12;
}
.veli-miss-game {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
}
.veli-miss-game .nstq-card,
.veli-miss-game .nstq-card--match {
  width: 100% !important;
  max-width: 100% !important;
  transform: none !important;
  margin: 0;
  padding: 12px;
  box-shadow: 0 8px 0 #8a4b16;
  pointer-events: none;
}
.veli-miss-game .nstq-card h3 {
  font-size: 18px;
}
.veli-miss-game .nstq-passage {
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}
.veli-miss-game .nstq-sentence {
  font-size: 18px;
}
.veli-miss-game .nstq-opt,
.veli-miss-game .nstq-chip {
  pointer-events: none;
  cursor: default;
  font-size: 16px;
  padding: 10px 14px;
}
.veli-miss-game .nstq-match--cards {
  grid-template-columns: 1fr;
}
.veli-miss-game .nstq-match--cards .nstq-slot img {
  max-height: 120px;
}
@media (min-width: 420px) {
  .veli-miss-game .nstq-match--cards {
    grid-template-columns: repeat(var(--nstq-cols, 2), minmax(0, 1fr));
  }
}

#characterInventoryOverlay .char-sound-detail-panel {
  background:
    linear-gradient(180deg, #fffbeb 0%, #fef3c7 28%, #ecfeff 100%) !important;
}
#characterInventoryOverlay .char-sound-detail-panel[hidden] {
  display: none !important;
}

.veli-empty {
  text-align: center;
  padding: 18px 12px;
  color: #475569;
}

.veli-empty .big { font-size: 2.4rem; margin-bottom: 6px; }

.veli-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.veli-avatar {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 900;
  color: #fffbeb;
  background: linear-gradient(160deg, #0d9488, #0369a1);
  box-shadow: 0 8px 0 #0f766e;
}
.veli-hero-id { min-width: 0; flex: 1; }
.veli-hero-id h2 { margin: 0 0 4px; }
.veli-hero-card .veli-class { margin: 0; }
.veli-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.veli-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #155e75;
  font-size: 13px;
  font-weight: 800;
}
.veli-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
}
.veli-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 2px 6px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #64748b;
}
.veli-day b { font-size: 14px; line-height: 1; }
.veli-day i {
  display: block;
  width: 10px;
  border-radius: 999px;
  background: #cbd5e1;
  min-height: 8px;
}
.veli-day.is-on { background: #ecfdf5; color: #14532d; }
.veli-day.is-on i { background: #22c55e; }
.veli-day small {
  font-size: 10px;
  font-weight: 800;
  text-transform: lowercase;
}
.veli-week-grid--6 { grid-template-columns: 1fr 1fr 1fr; }
.veli-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  position: sticky;
  top: 0;
  z-index: 2;
}
.veli-tabs button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 10px 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  color: #64748b;
  background: transparent;
  cursor: pointer;
}
.veli-tabs button.is-on {
  background: #0f766e;
  color: #fffbeb;
}
[data-veli-pane] {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
[data-veli-pane][hidden] {
  display: none !important;
}
.veli-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin: 6px 0 2px;
}
.veli-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #86efac);
}
.veli-rank--bad .veli-bar i {
  background: linear-gradient(90deg, #fb7185, #fda4af);
}
.veli-rank,
.veli-topic {
  appearance: none;
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.veli-topic .top em {
  margin-left: auto;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  opacity: 0.8;
}
.veli-day b {
  font-size: 12px;
  white-space: nowrap;
}
.veli-recent {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.veli-recent-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}
.veli-recent-row b { color: #0f172a; }
.veli-recent-row span {
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.veli-recent-row small { color: #94a3b8; font-weight: 700; }

.veli-miss-tools {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.veli-miss-tools h3 { margin: 0 0 4px; }
.veli-print-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
#nova-veli-print { display: none; }
@media print {
  body.nova-veli-printing > * { display: none !important; }
  body.nova-veli-printing > #nova-veli-print {
    display: block !important;
    position: static;
    width: 100%;
  }
}
.veli-print-sheet {
  color: #111;
  background: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  padding: 8px 4px 24px;
}
.veli-print-head { margin-bottom: 16px; border-bottom: 2px solid #111; padding-bottom: 10px; }
.veli-print-head .kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #444;
}
.veli-print-head h1 { margin: 4px 0; font-size: 22px; }
.veli-print-head .who, .veli-print-head .note { margin: 2px 0; font-size: 13px; }
.veli-print-q {
  break-inside: avoid;
  page-break-inside: avoid;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 10px;
}
.veli-print-q header {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
  color: #333;
}
.veli-print-q header b {
  font-size: 16px;
  color: #111;
  min-width: 1.4em;
}
.veli-print-q header span { font-weight: 700; }
.veli-print-q header time { margin-left: auto; color: #555; }
.veli-print-q .q { margin: 8px 0; font-size: 15px; line-height: 1.45; }
.veli-print-q .bad, .veli-print-q .ok { margin: 2px 0; font-size: 14px; }
.veli-print-q .bad span, .veli-print-q .ok span {
  display: inline-block;
  min-width: 64px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.veli-print-q .bad span { color: #9f1239; }
.veli-print-q .ok span { color: #047857; }
.veli-print-empty { font-size: 14px; }

@media (max-width: 380px) {
  .veli-week-grid--6 { grid-template-columns: 1fr 1fr; }
  .veli-tabs button { font-size: 12px; padding: 9px 2px; }
  .veli-recent-row { grid-template-columns: 1fr auto; }
  .veli-recent-row span { display: none; }
  .veli-miss-tools { flex-direction: column; }
}

@media (max-width: 380px) {
  #characterInventoryOverlay .char-inv-veli-sub { display: none; }
  #characterInventoryOverlay .char-inv-hero-equipped__preview {
    width: 108px !important;
    height: 122px !important;
  }
}
