/* Görev pencereleri: görev satırı durum rozeti, Takip et düğmesi, yön satırı; günlükte takip satırı ve durum renkleri.
   #game ~2 kat ölçekli: görev satırındaki boyutlar style.css'teki gibi küçük yazılır. Renkler style.css :root --q* belirteçleri. */

/* Görev satırı (#questTrack) */
#questTrack .qtBadge { display: inline-block; margin-right: 3px; padding: 0 3.5px; border-radius: 2.5px; font: 800 5.4px/8px system-ui, sans-serif; letter-spacing: .4px; text-transform: uppercase; vertical-align: 1px; }
#questTrack .qtBadge.new { background: rgba(255, 216, 74, .9); color: #2a1a05; }
#questTrack .qtBadge.wip { background: rgba(230, 192, 106, .18); color: var(--qGoldL); border: .5px solid var(--qLine); }
#questTrack .qtBadge.ready { background: rgba(110, 200, 90, .9); color: #0e2208; }
#questTrack .qtWay { display: block; margin-top: .5px; font: 700 6.3px/1.25 system-ui, sans-serif !important; color: #9fe6ff !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#questTrack .qtGo.qtTrack { background: rgba(20, 14, 6, .82); color: var(--qGoldL); border-color: var(--qLine); box-shadow: none; }
#questTrack .qtGo.qtTrack.on { background: linear-gradient(#bfe9f5, #4a9ab4); color: #06202a; border-color: #d8f6ff; }
#questTrack .qt.done { border-left-color: var(--qOk); }

/* Görev günlüğü: takip satırı */
#sidePanel .jTrackRow { display: flex; align-items: center; gap: 8px; margin: -2px 0 8px; padding: 6px 10px; border: 1px solid rgba(230, 192, 106, .28); border-top: 0; border-radius: 0 0 10px 10px; background: rgba(10, 8, 6, .6); }
#sidePanel .jTrackRow span { flex: 1; min-width: 0; font: 500 12px/1.3 "EB Garamond", Georgia, serif; color: var(--qDim); }
#sidePanel .jTrack { flex: none; padding: 5px 12px; border-radius: 6px; border: 1px solid var(--qLine); background: rgba(20, 14, 6, .85); color: var(--qGoldL); font: 700 11px "Cinzel", Georgia, serif; letter-spacing: .3px; cursor: pointer; }
#sidePanel .jTrack.on { background: linear-gradient(#bfe9f5, #4a9ab4); color: #06202a; border-color: #d8f6ff; }
#sidePanel .jTrack:active { transform: scale(.96); }
#sidePanel .jq .st.wip { background: rgba(230, 192, 106, .14); color: var(--qGoldL); }

@media (max-width: 420px) {
  #sidePanel .jTrackRow { flex-wrap: wrap; }
  #sidePanel .jTrack { width: 100%; }
}

/* ── Görev satırı kartları: kısa, yarı saydam. Satır 1 başlık + Takip düğmesi, satır 2 hedef + sayaç, ince çubuk, satır 3 durum ve simgeli ödüller. ── */
#questTrack .qt { align-items: flex-start; gap: 4px; padding: 3px 4px 3px 3px !important; border-radius: 4px; border-left-width: 2px; background-color: rgba(12, 9, 6, .62); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
#questTrack .qt.story, #questTrack .qt.hunt { background-image: linear-gradient(100deg, rgba(14, 10, 6, .8), rgba(14, 10, 6, .55) 75%, rgba(14, 10, 6, .3)) !important; }
#questTrack .qtIc { width: 13px !important; height: 13px !important; margin-top: 1px; }
#questTrack .qtM { gap: .5px; }
#questTrack .qtM b { font-size: 7.4px !important; line-height: 1.25; letter-spacing: .2px; }
#questTrack .qt:has(> .qtGo) .qtM > b { padding-right: 32px; }
#questTrack .qtM p { font: 600 6.8px/1.3 system-ui, sans-serif !important; color: var(--qInk); }
#questTrack .qtM p s { font: 800 6.6px system-ui, sans-serif; color: var(--qGoldL); font-variant-numeric: tabular-nums; }
#questTrack .qtBar { height: 2px; margin: 1.5px 0 1px; background: rgba(255, 255, 255, .1); }
#questTrack .qtM small { display: flex; align-items: center; gap: 3px; font-size: 5.8px !important; overflow: hidden; }
#questTrack .qtM small em { flex: none; font-size: 5.4px; color: var(--qDim); }
#questTrack .qtM b.qtBadge { padding: 0 3px; font: 800 4.9px/7px system-ui, sans-serif !important; letter-spacing: .3px; text-shadow: none; vertical-align: 0; }
#questTrack .qRw { display: flex; gap: 2.5px; min-width: 0; margin-left: auto; overflow: hidden; }
#questTrack .qtM b.qChip { text-shadow: 0 1px 1px #000; letter-spacing: 0;  display: inline-flex; align-items: center; gap: 1px; font: 700 5.6px/1 system-ui, sans-serif !important; color: #f4ead2; white-space: nowrap; }
#questTrack .qtM .qChip img { width: 7px; height: 7px; object-fit: contain; }
#questTrack .qtGo { position: absolute; top: 2.5px; right: 3px; padding: 1.5px 4px !important; border-radius: 3px; font-size: 5.4px !important; letter-spacing: .2px; line-height: 1.2; }
#questTrack .qtDetailMark { position: absolute; right: 2px; bottom: 1px; font-size: 7px; opacity: .55; }
#questTrack .qt:not(:has(> .qtGo)) .qtDetailMark { top: 50%; bottom: auto; transform: translateY(-50%); font-size: 9px; }
#questTrack .qtWay { font-size: 5.8px !important; }

/* ── Görev ayrıntı penceresi (#dialog .questDetail): ölçekli sahnede mantıksal px; bronz tema, sığmazsa içinde kayar. ── */
#game #dialog .card.questDetail { width: min(330px, 94%) !important; max-width: none !important; max-height: calc(100% - 12px); overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 12px !important;
  background: linear-gradient(180deg, rgba(34, 25, 15, .97), rgba(13, 10, 7, .98)) !important; font-size: 8px; scrollbar-width: thin; }
#game #dialog .questDetail .qdHead { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 7px; padding: 0 0 6px; }
#game #dialog .questDetail .qdEmblem { width: 22px; height: 22px; }
#game #dialog .questDetail .qdStep { margin-bottom: 1px; font-size: 5.6px; letter-spacing: 1px; color: #c9a868; }
#game #dialog .questDetail .qdHead h3 { padding: 0 !important; font-size: 12px !important; line-height: 1.15 !important; }
#game #dialog .questDetail .qdHead h3::after { display: none; }
#game #dialog .questDetail .qdStatus { padding: 2px 6px; font-size: 5.6px; border-radius: 8px; }
#game #dialog .questDetail .qdStatus.active { color: var(--qGoldL); background: rgba(230, 192, 106, .12); }
#game #dialog .questDetail .qdStatus.new { color: #2a1a05; background: linear-gradient(#ffe48a, #e0b04a); border-color: #fff0b8; }
#game #dialog .questDetail .qdStatus.ready { color: #0e2208; background: linear-gradient(#c8f5a8, #6cc456); border-color: #e2ffd0; }
#game #dialog .questDetail .qdFacts { gap: 5px; margin: 6px 0 0; }
#game #dialog .questDetail .qdFact { gap: 5px; padding: 4px 6px; border-radius: 4px; background: rgba(255, 255, 255, .03); border-color: rgba(230, 192, 106, .18); }
#game #dialog .questDetail .qdMark { width: 14px; height: 14px; border-radius: 3px; font-size: 8.5px; background: rgba(0, 0, 0, .35); }
#game #dialog .questDetail .qdFact small, #game #dialog .questDetail .qdGoalTop small, #game #dialog .questDetail .qdReward div { font-size: 5.4px; letter-spacing: .6px; color: #b9ab88; }
#game #dialog .questDetail .qdFact b { font-size: 7.6px; color: var(--qInk); }
#game #dialog .questDetail .qdGoal { margin-top: 5px; padding: 5px 7px; border-radius: 4px; border-left: 2px solid var(--qGold); background: rgba(0, 0, 0, .3); }
#game #dialog .questDetail .qdGoalTop b { font-size: 7.6px; color: var(--qGoldL); font-variant-numeric: tabular-nums; }
#game #dialog .questDetail .qdGoal p { margin: 2px 0 4px !important; font-size: 8px !important; line-height: 1.35 !important; color: var(--qInk) !important; }
#game #dialog .questDetail .qdProgress { height: 3px; border: 0; background: rgba(255, 255, 255, .1); }
#game #dialog .questDetail .qdProgress u { box-shadow: none; }
#game #dialog .questDetail .qdReward { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 5px; padding: 5px 7px; border-radius: 4px; background: rgba(230, 192, 106, .06); }
#game #dialog .questDetail .qdRewardIcon { display: none; }
#game #dialog .questDetail .qdReward div { flex: 1 0 100%; }
#game #dialog .questDetail .qdChips { justify-self: start; text-align: left; }
#game #dialog .questDetail .qRw { display: flex; flex-wrap: wrap; gap: 3px; }
#game #dialog .questDetail .qChip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px 1px 1px; border-radius: 3px; border: .5px solid rgba(230, 192, 106, .3); background: rgba(0, 0, 0, .3); font: 700 7px system-ui, sans-serif; color: #f4ead2; white-space: nowrap; }
#game #dialog .questDetail .qChip img { width: 11px; height: 11px; margin: 0; border: 0; object-fit: contain; border-radius: 2px; }
#game #dialog .questDetail footer { margin-top: 6px; padding-top: 6px !important; gap: 4px; flex-wrap: wrap; }
#game #dialog .questDetail footer button { flex: 1 1 auto; min-height: 20px !important; padding: 2px 8px !important; font-size: 7.5px !important; }
#game #dialog .questDetail footer button.primary { flex-basis: 40%; }
#game #dialog .questDetail footer button::before { width: 1.1em; height: 1.1em; }
@media (orientation: portrait) { #game #dialog .questDetail .qdFacts { grid-template-columns: 1fr; } }
