/* ==========================================================================
   Hikaye Sahnesi — Bileşen kütüphanesi
   ========================================================================== */

/* --------------------------------------------------------------- Butonlar */

.hs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hs-space-3);
  min-height: var(--hs-button-height);
  padding: var(--hs-space-7);
  border-radius: var(--hs-radius-button);
  font-size: var(--hs-text-button);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.hs-btn:hover:not(:disabled) { transform: scale(1.03); filter: brightness(1.1); box-shadow: var(--hs-shadow-3); }
.hs-btn:active:not(:disabled) { transform: scale(.98); filter: brightness(.92); }
.hs-btn:focus-visible { outline: 3px solid var(--hs-yellow); outline-offset: 2px; }

.hs-btn:disabled {
  background: var(--hs-disabled) !important;
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.hs-btn--primary { background: var(--hs-gradient-primary); box-shadow: var(--hs-shadow-cta); }
.hs-btn--success { background: var(--hs-gradient-success); box-shadow: var(--hs-shadow-cta-success); }
.hs-btn--secondary { background: var(--hs-blue); box-shadow: var(--hs-shadow-2); }
.hs-btn--secondary:hover:not(:disabled) { filter: brightness(1.08); }

.hs-btn--outline {
  background: var(--hs-surface);
  border: 2px solid var(--hs-divider-2);
  color: var(--hs-muted);
  box-shadow: none;
}

.hs-btn--outline:hover:not(:disabled) {
  border-color: var(--hs-red);
  color: var(--hs-red);
  filter: none;
  box-shadow: var(--hs-shadow-1);
}

.hs-btn--block { width: 100%; }

.hs-btn--loading {
  background: var(--hs-divider);
  color: var(--hs-muted);
  box-shadow: none;
  pointer-events: none;
}

.hs-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid var(--hs-divider-2);
  border-top-color: var(--hs-blue);
  border-radius: var(--hs-radius-pill);
  animation: hs-spinner 1s linear infinite;
}

/* 44×44 ikon butonu — header ve nav */
.hs-icon-btn {
  width: var(--hs-touch-min);
  height: var(--hs-touch-min);
  min-width: var(--hs-touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--hs-radius-nav);
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 19px;
  transition: background .15s ease, transform .15s ease;
}

.hs-icon-btn:hover { background: rgba(255, 255, 255, .32); }
.hs-icon-btn:active { transform: scale(.94); }
.hs-icon-btn:focus-visible { outline: 3px solid var(--hs-yellow); outline-offset: 2px; }

/* ----------------------------------------------------------------- Kartlar */

.hs-card {
  background: var(--hs-surface);
  border-radius: var(--hs-radius-card);
  box-shadow: var(--hs-shadow-2);
  padding: var(--hs-space-6) var(--hs-space-7);
}

.hs-card--flush { padding: 0; overflow: hidden; }

.hs-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hs-space-3);
  padding: var(--hs-space-6) var(--hs-space-7) var(--hs-space-5);
}

.hs-card__title { font-size: var(--hs-text-button); font-weight: 600; }

.hs-card__divider { height: 2px; background: var(--hs-divider-3); }

/* ---------------------------------------------------------------- XP kartı */

.hs-xp-card { display: flex; flex-direction: column; gap: var(--hs-space-4); }

.hs-xp-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hs-space-3);
}

.hs-xp-card__level { display: flex; align-items: baseline; gap: var(--hs-space-3); }
.hs-xp-card__level-label { font-size: var(--hs-text-body); font-weight: 600; }

.hs-xp-card__stars {
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--hs-yellow);
}

.hs-xp-card__mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--hs-text-body-sm);
  font-weight: 500;
}

.hs-xp-card__amount { color: var(--hs-orange); font-weight: 600; }

.hs-bar {
  height: 20px;
  border-radius: 10px;
  background: var(--hs-bar-track);
  overflow: hidden;
}

.hs-bar__fill {
  height: 100%;
  border-radius: 10px;
  background: var(--hs-gradient-xp);
  transition: width .6s cubic-bezier(.2, .9, .3, 1);
}

.hs-bar--task { height: 18px; }
.hs-bar--task .hs-bar__fill { background: var(--hs-gradient-task); }

.hs-bar--thin { height: 10px; border-radius: 5px; background: var(--hs-divider); }
.hs-bar--thin .hs-bar__fill { border-radius: 5px; background: var(--hs-blue); }
.hs-bar--thin.is-done .hs-bar__fill { background: var(--hs-green); }

.hs-bar--week { height: 14px; border-radius: 7px; }

/* -------------------------------------------------------------- Görev satırı */

.hs-task-row {
  display: block;
  width: 100%;
  text-align: start;
  padding: var(--hs-space-5) var(--hs-space-7);
  transition: background .15s ease;
}

.hs-task-row:hover { background: var(--hs-row-hover); }
.hs-task-row:focus-visible { outline: 3px solid var(--hs-blue); outline-offset: -3px; }
.hs-task-row + .hs-task-row { border-top: 1px solid var(--hs-divider-3); }

.hs-task-row__top {
  display: flex;
  align-items: center;
  gap: var(--hs-space-4);
  margin-bottom: var(--hs-space-3);
}

/*
 * Görev detayında "tamamladın" notu.
 *
 * Eskiden burada pasif bir "✓ TAMAMLANDI" butonu vardı; yerini bu not ile
 * altındaki geri alma butonu aldı. Yanlışlıkla işaretlenen görev geri
 * alınabilsin diye — ama geri alma ikincil görünsün, ana eylem gibi durmasın.
 */
.hs-done-note {
  display: flex;
  align-items: center;
  gap: var(--hs-space-3);
  padding: var(--hs-space-5) var(--hs-space-6);
  border-radius: var(--hs-radius-card);
  background: rgba(46, 196, 122, .12);
  color: var(--hs-green);
  font-size: var(--hs-text-body-sm);
  font-weight: 600;
}

.hs-done-note__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--hs-green);
  color: #fff;
  font-size: 14px;
}

.hs-task-row__chip {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-chip-idle);
  color: #fff;
  font-size: var(--hs-text-body-sm);
}

.hs-task-row__chip.is-done { background: var(--hs-green); }
.hs-task-row__chip.is-progress { background: var(--hs-orange); }

.hs-task-row__name { flex: 1; font-size: var(--hs-text-body); font-weight: 500; }
.hs-task-row__count { font-size: var(--hs-text-meta); color: var(--hs-muted); }
.hs-task-row__xp { font-size: var(--hs-text-meta); font-weight: 600; color: var(--hs-orange); }

.hs-task-row__bottom { display: flex; align-items: center; gap: var(--hs-space-4); }
.hs-task-row__bottom .hs-bar { flex: 1; }

/* --------------------------------------------------------- İkon rozeti 52px */

.hs-icon-badge {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--hs-radius-card);
  background: var(--hs-gradient-badge);
  font-size: 26px;
}

/* ------------------------------------------------------------ Ödül şeridi */

.hs-reward-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hs-space-5);
  padding: var(--hs-space-5);
  border-radius: var(--hs-radius-button);
  background: var(--hs-reward-strip);
}

.hs-reward-strip__amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--hs-orange);
}

/* ------------------------------------------------------------------ Modal */

.hs-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--hs-space-10);
  background: rgba(15, 23, 48, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hs-modal {
  position: relative;
  width: min(340px, 100%);
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hs-space-6);
  padding: var(--hs-space-9);
  border-radius: var(--hs-radius-modal);
  background: var(--hs-surface);
  box-shadow: var(--hs-shadow-4);
  text-align: center;
}

.hs-modal__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--hs-red);
}

.hs-modal__costume {
  width: 180px;
  height: 224px;
  object-fit: cover;
  border-radius: var(--hs-radius-reward-img);
  border: 4px solid var(--hs-yellow);
}

.hs-modal__costume-wrap {
  border-radius: var(--hs-radius-reward-img);
  perspective: 900px;
}

.hs-modal__name { font-size: 19px; font-weight: 600; }
.hs-modal__actions { display: flex; gap: var(--hs-space-4); width: 100%; }
.hs-modal__actions .hs-btn--success { flex: 1; }
.hs-modal__actions .hs-btn--outline { flex: 0 0 96px; }

/* --------------------------------------------------------------- Rozetler */

.hs-rarity-badge {
  padding: 3px 7px;
  border-radius: var(--hs-radius-chip);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- Toast */

.hs-toast-stack {
  position: fixed;
  right: var(--hs-space-5);
  bottom: 96px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-3);
  pointer-events: none;
}

.hs-toast {
  display: flex;
  align-items: center;
  gap: var(--hs-space-4);
  max-width: 300px;
  padding: 13px var(--hs-space-6);
  border-radius: var(--hs-radius-button);
  font-size: var(--hs-text-body-sm);
  font-weight: 500;
  color: #fff;
  box-shadow: var(--hs-shadow-4);
}

.hs-toast--success { background: var(--hs-green); }
.hs-toast--warning { background: var(--hs-yellow); color: var(--hs-ink); }
.hs-toast--error { background: var(--hs-red); }

/* ------------------------------------------------------- Konfeti / +XP */

.hs-confetti-layer,
.hs-float-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 900;
}

.hs-confetti {
  position: absolute;
  top: 0;
  will-change: transform, opacity;
}

.hs-float-xp {
  position: absolute;
  left: 50%;
  top: 45%;
  font-size: 28px;
  font-weight: 700;
  color: var(--hs-green);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  white-space: nowrap;
}

/* --------------------------------------------------------------- Formlar */

.hs-field { display: flex; flex-direction: column; gap: var(--hs-space-2); }

.hs-label {
  font-size: var(--hs-text-meta);
  font-weight: 600;
  color: var(--hs-muted);
  letter-spacing: .3px;
}

.hs-input,
.hs-select,
.hs-textarea {
  width: 100%;
  min-height: var(--hs-touch-min);
  padding: var(--hs-space-5) var(--hs-space-6);
  border: 2px solid var(--hs-divider-2);
  border-radius: var(--hs-radius-button);
  background: var(--hs-surface);
  font-size: var(--hs-text-body);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.hs-input:focus,
.hs-select:focus,
.hs-textarea:focus {
  outline: none;
  border-color: var(--hs-blue);
  box-shadow: 0 0 0 3px rgba(74, 125, 255, .18);
}

.hs-input--code {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 10px;
  padding-inline: var(--hs-space-3);
}

.hs-error {
  font-size: var(--hs-text-caption);
  font-weight: 500;
  color: var(--hs-red);
}

.hs-alert {
  padding: var(--hs-space-5) var(--hs-space-6);
  border-radius: var(--hs-radius-button);
  font-size: var(--hs-text-body-sm);
  font-weight: 500;
}

.hs-alert--success { background: var(--hs-stat-green-bg); color: var(--hs-green-deep); }
.hs-alert--error { background: var(--hs-stat-red-bg); color: var(--hs-red); }

/* ------------------------------------------------- Kupa ve unvan */

.hs-trophy-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--hs-space-3);
  width: 100%;
  min-height: var(--hs-touch-min);
  padding: var(--hs-space-4) var(--hs-space-7);
  border-radius: var(--hs-radius-card);
  background: var(--hs-surface);
  box-shadow: var(--hs-shadow-2);
  font-size: var(--hs-text-body);
  font-weight: 500;
  color: var(--hs-muted);
  transition: transform .15s ease, box-shadow .15s ease;
}

.hs-trophy-chip strong {
  font-size: var(--hs-text-screen-title);
  font-weight: 700;
  color: var(--hs-orange);
}

.hs-trophy-chip:hover { transform: translateY(-2px); box-shadow: var(--hs-shadow-3); }
.hs-trophy-chip:focus-visible { outline: 3px solid var(--hs-blue); outline-offset: 2px; }

.hs-trophy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hs-space-5);
}

.hs-trophy-card__count {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--hs-orange);
}

/* Karakter sahnesindeki unvan satırı */
.hs-stage__title {
  display: block;
  margin-top: 2px;
  font-size: var(--hs-text-caption);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

/* ------------------------------------------------- Rozet merdiveni */

.hs-badge-row {
  list-style: none;
  margin: 0;
  padding: var(--hs-space-5) var(--hs-space-4);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--hs-space-3);
}

.hs-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  min-width: 0;
}

.hs-badge__medal {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--hs-radius-pill);
  border: 3px solid var(--hs-divider-2);
  font-size: 24px;
  transition: transform .15s ease, filter .15s ease;
}

.hs-badge__medal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--hs-radius-pill);
}

.hs-badge__medal:hover:not(:disabled) { transform: translateY(-3px) scale(1.05); }
.hs-badge__medal:focus-visible { outline: 3px solid var(--hs-blue); outline-offset: 3px; }
.hs-badge__medal:disabled { cursor: default; }

.hs-badge.is-locked .hs-badge__medal { filter: grayscale(1) opacity(.55); border-color: var(--hs-divider-2); }
.hs-badge.is-locked .hs-badge__title { color: var(--hs-muted); }

.hs-badge.is-active .hs-badge__medal { box-shadow: 0 0 0 3px rgba(255, 217, 61, .55); }

.hs-badge__title {
  font-size: var(--hs-text-rarity);
  font-weight: 600;
  line-height: 1.25;
  color: var(--hs-ink);
  overflow-wrap: anywhere;
}

.hs-badge__threshold,
.hs-badge__trophies {
  font-size: 10px;
  color: var(--hs-muted);
}

.hs-badge__trophies { font-weight: 600; }

.hs-badge__worn {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--hs-green);
}

/* Ödül modalinde rozet */
.hs-modal__badge-wrap { border-radius: var(--hs-radius-pill); }

.hs-modal__badge {
  width: 176px;
  height: 176px;
  object-fit: contain;
  border-radius: var(--hs-radius-pill);
  border: 5px solid var(--hs-yellow);
  background: var(--hs-surface);
}

.hs-modal__badge--glyph {
  display: grid;
  place-items: center;
  font-size: 76px;
  line-height: 1;
}

/* ------------------------------------------------- Sandıklar */

.hs-chest-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: var(--hs-space-4);
}

.hs-chest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--hs-space-5) var(--hs-space-3);
  border-radius: var(--hs-radius-card);
  border: 3px solid var(--hs-divider-2);
  background: var(--hs-surface);
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}

.hs-chest:hover:not(:disabled) { transform: translateY(-4px); box-shadow: var(--hs-shadow-3); }
.hs-chest:focus-visible { outline: 3px solid var(--hs-blue); outline-offset: 2px; }
.hs-chest__glyph { font-size: 34px; line-height: 1; }
.hs-chest__name { font-size: var(--hs-text-caption); font-weight: 600; }
.hs-chest__meta { font-size: 10px; color: var(--hs-muted); }

/* ------------------------------------------------- Eşyalar */

.hs-shield-card {
  display: flex;
  align-items: center;
  gap: var(--hs-space-5);
}

.hs-shield-card__glyph {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--hs-radius-badge);
  background: rgba(74, 125, 255, .12);
  font-size: 26px;
}

.hs-item-row {
  list-style: none;
  margin: 0;
  padding: var(--hs-space-5) var(--hs-space-4);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--hs-space-3);
}

.hs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
}

.hs-item__slot {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--hs-radius-icon-sm);
  border: 2px solid var(--hs-divider-2);
  font-size: 21px;
  color: var(--hs-chip-idle);
}

.hs-item__slot img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--hs-radius-icon-sm); }

.hs-item__count {
  position: absolute;
  right: -4px;
  bottom: -4px;
  padding: 1px 5px;
  border-radius: var(--hs-radius-chip);
  background: var(--hs-ink);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.hs-item__name {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hs-item.is-locked .hs-item__name { color: var(--hs-muted); }
.hs-item.is-locked .hs-item__slot { border-style: dashed; }

/* Sandıktan çıkanlar */

.hs-loot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--hs-space-4);
}

.hs-loot__item {
  position: relative;
  width: 84px;
  padding: var(--hs-space-4) var(--hs-space-2) var(--hs-space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: var(--hs-radius-card);
  border: 3px solid var(--hs-divider-2);
  font-size: 30px;
  line-height: 1;
}

.hs-loot__item img { width: 40px; height: 40px; object-fit: contain; }

.hs-loot__name {
  font-size: var(--hs-text-rarity);
  font-weight: 600;
  line-height: 1.2;
  color: var(--hs-ink);
  text-align: center;
  overflow-wrap: anywhere;
}

.hs-loot__new {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--hs-green);
}

.hs-loot__dupe { font-size: 9px; font-weight: 700; color: var(--hs-muted); }

.hs-set-done {
  margin-top: var(--hs-space-4);
  padding: var(--hs-space-4);
  border-radius: var(--hs-radius-button);
  background: var(--hs-stat-green-bg);
  font-size: var(--hs-text-meta);
  color: var(--hs-green-deep);
}

/* ------------------------------------------------- Hikaye */

.hs-story-new {
  padding: 4px 10px;
  border-radius: var(--hs-radius-chip);
  background: var(--hs-red);
  color: #fff;
  font-size: var(--hs-text-caption);
  font-weight: 700;
}

.hs-chapter.is-locked { opacity: .72; }

.hs-chapter__head {
  display: flex;
  align-items: center;
  gap: var(--hs-space-5);
  width: 100%;
  padding: var(--hs-space-5) var(--hs-space-7);
  text-align: start;
  transition: background .15s ease;
}

.hs-chapter__head:hover:not(:disabled) { background: var(--hs-row-hover); }
.hs-chapter__head:focus-visible { outline: 3px solid var(--hs-blue); outline-offset: -3px; }
.hs-chapter__head:disabled { cursor: default; }

.hs-chapter__number {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-gradient-badge);
  color: #fff;
  font-size: var(--hs-text-body-sm);
  font-weight: 700;
}

.hs-chapter.is-locked .hs-chapter__number { background: var(--hs-chip-idle); }

.hs-chapter__id { flex: 1; min-width: 0; }
.hs-chapter__title { display: block; font-size: var(--hs-text-body); font-weight: 600; }
.hs-chapter__meta { display: block; font-size: var(--hs-text-caption); color: var(--hs-muted); }
.hs-chapter__state { font-size: 19px; color: var(--hs-muted); }

.hs-chapter__body {
  padding: 0 var(--hs-space-7) var(--hs-space-7);
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-5);
  font-size: var(--hs-text-body);
  line-height: 1.7;
}

.hs-chapter__body p { margin: 0; }
.hs-chapter__body strong { color: var(--hs-red); }
.hs-chapter__body em { color: var(--hs-purple); font-style: italic; }

.hs-chapter__image {
  width: 100%;
  border-radius: var(--hs-radius-card);
}

/* ------------------------------------------------- Veli ödülleri */

.hs-parent-reward {
  display: flex;
  align-items: center;
  gap: var(--hs-space-5);
  padding: var(--hs-space-5) var(--hs-space-7);
}

.hs-parent-reward + .hs-parent-reward { border-top: 1px solid var(--hs-divider-3); }

.hs-parent-reward__icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--hs-radius-badge);
  background: var(--hs-reward-strip);
  font-size: 22px;
}

.hs-parent-reward__name { font-size: var(--hs-text-body-sm); font-weight: 600; }

.hs-parent-reward__done {
  margin-inline-start: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--hs-green);
}

.hs-parent-reward__pct {
  font-size: var(--hs-text-meta);
  font-weight: 600;
  color: var(--hs-muted);
  font-variant-numeric: tabular-nums;
}

.hs-bar__fill.is-reached { background: var(--hs-gradient-success); }

/* Envanter alt sekmelerindeki bildirim noktası */
.hs-tab__dot {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-inline-start: 6px;
  padding: 0 5px;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* Rozet: kademe çerçevesi arka planda, kategori ikonu üstünde */
.hs-badge__medal.has-frame {
  border: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.hs-badge__icon {
  width: 55%;
  height: 55%;
  object-fit: contain;
}

.hs-modal__badge--framed {
  border: 0;
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: grid;
  place-items: center;
}

.hs-modal__badge--framed img {
  width: 52%;
  height: 52%;
  object-fit: contain;
}

.hs-chest__image {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

/* ------------------------------------------------- Ceza butonu (veli) */

.hs-parent__nav-link--danger {
  background: rgba(255, 71, 87, .28);
}

.hs-parent__nav-link--danger:hover { background: rgba(255, 71, 87, .42); }
.hs-parent__nav-link--danger.is-active { background: #fff; color: var(--hs-red); }

.hs-penalty { display: flex; flex-direction: column; gap: var(--hs-space-6); }

.hs-penalty__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hs-space-5);
}

.hs-penalty__form { display: flex; flex-direction: column; gap: var(--hs-space-5); }

.hs-penalty__quick { display: flex; gap: var(--hs-space-3); flex-wrap: wrap; }

.hs-chip-btn {
  min-height: 38px;
  padding: 0 var(--hs-space-6);
  border-radius: var(--hs-radius-chip);
  border: 2px solid var(--hs-divider-2);
  background: var(--hs-surface);
  font-size: var(--hs-text-body-sm);
  font-weight: 600;
  color: var(--hs-muted);
  transition: border-color .15s ease, color .15s ease;
}

.hs-chip-btn:hover { border-color: var(--hs-red); color: var(--hs-red); }
.hs-chip-btn:focus-visible { outline: 3px solid var(--hs-red); outline-offset: 2px; }

/*
 * Üç boyutlu kırmızı ceza butonu.
 * Gövde alttaki koyu kırmızı katman, yüzey ise 6px yukarıda duran parlak katman;
 * basıldığında yüzey aşağı iner ve buton gerçekten bastırılmış gibi görünür.
 */
.hs-penalty__button {
  position: relative;
  width: 100%;
  padding: 0 0 8px;
  border: 0;
  border-radius: 18px;
  background: #8E1622;
  box-shadow: 0 6px 14px rgba(142, 22, 34, .38);
  transition: padding-bottom .08s ease, box-shadow .15s ease;
}

.hs-penalty__button-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--hs-space-4);
  min-height: 62px;
  border-radius: 18px;
  background: linear-gradient(180deg, #FF6B78 0%, #FF4757 55%, #E8323F 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .45),
    inset 0 -2px 0 rgba(0, 0, 0, .18);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: filter .15s ease;
}

.hs-penalty__button-icon { font-size: 22px; line-height: 1; }

.hs-penalty__button:hover:not(:disabled) {
  box-shadow: 0 8px 18px rgba(142, 22, 34, .46);
}

.hs-penalty__button:hover:not(:disabled) .hs-penalty__button-face {
  filter: brightness(1.06);
}

.hs-penalty__button:active:not(:disabled) {
  padding-bottom: 1px;
  padding-top: 7px;
  box-shadow: 0 2px 6px rgba(142, 22, 34, .4);
}

.hs-penalty__button:focus-visible { outline: 3px solid var(--hs-ink); outline-offset: 3px; }

.hs-penalty__button:disabled {
  background: #9AA1AE;
  box-shadow: none;
  cursor: not-allowed;
}

.hs-penalty__button:disabled .hs-penalty__button-face {
  background: linear-gradient(180deg, #C3C9D4 0%, #B3B9C6 100%);
  color: rgba(255, 255, 255, .8);
}

@media (prefers-reduced-motion: reduce) {
  .hs-penalty__button,
  .hs-penalty__button-face { transition: none; }
}

/* Onay kutusu etiketi (veli formları) */
.hs-check {
  display: inline-flex;
  align-items: center;
  gap: var(--hs-space-3);
  min-height: var(--hs-touch-min);
  font-size: var(--hs-text-body-sm);
  font-weight: 600;
  color: var(--hs-ink);
  cursor: pointer;
}

.hs-check input[type="checkbox"] { width: 22px; height: 22px; }

/* Pasif görev satırı */
.hs-row--muted td { opacity: .55; }

/* ------------------------------------------------- Zorunluluk / kaçırılan görev */

.hs-required {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 6px;
  border-radius: var(--hs-radius-chip);
  background: rgba(255, 71, 87, .12);
  color: var(--hs-red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.hs-task-row__chip.is-failed { background: var(--hs-red); }
.hs-task-row__count.is-failed { color: var(--hs-red); font-weight: 700; }
.hs-task-row__count.is-urgent { color: var(--hs-orange); font-weight: 700; }
.hs-bar--thin.is-failed .hs-bar__fill { background: var(--hs-red); }

.hs-period-deadline {
  display: block;
  margin-top: var(--hs-space-3);
  font-size: var(--hs-text-caption);
  color: var(--hs-muted);
}

/* ------------------------------------------------- XP kayıp geçmişi */

.hs-xp-entry {
  display: flex;
  align-items: center;
  gap: var(--hs-space-5);
  padding: var(--hs-space-5) var(--hs-space-7);
}

.hs-xp-entry + .hs-xp-entry { border-top: 1px solid var(--hs-divider-3); }

.hs-xp-entry__amount {
  min-width: 58px;
  text-align: center;
  padding: var(--hs-space-2) var(--hs-space-3);
  border-radius: var(--hs-radius-chip);
  background: var(--hs-stat-red-bg);
  color: var(--hs-red);
  font-size: var(--hs-text-body-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hs-xp-entry__label { font-size: var(--hs-text-body-sm); font-weight: 600; }

/* ------------------------------------------------- Hikaye haritası */

.hs-map-picker {
  display: flex;
  gap: var(--hs-space-3);
  justify-content: center;
}

.hs-map-tab {
  position: relative;
  width: var(--hs-touch-min);
  height: var(--hs-touch-min);
  display: grid;
  place-items: center;
  border-radius: var(--hs-radius-nav);
  border: 2px solid var(--hs-divider-2);
  background: var(--hs-surface);
  font-size: var(--hs-text-body);
  font-weight: 700;
  color: var(--hs-muted);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}

.hs-map-tab:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--hs-blue); }
.hs-map-tab:focus-visible { outline: 3px solid var(--hs-blue); outline-offset: 2px; }
.hs-map-tab.is-active { border-color: var(--hs-blue); background: rgba(74, 125, 255, .14); color: var(--hs-blue); }
.hs-map-tab.is-locked { opacity: .5; cursor: not-allowed; }
.hs-map-tab__number { line-height: 1; }

.hs-map-tab__dot {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.hs-map-head { display: flex; align-items: center; gap: var(--hs-space-5); }

.hs-map-head__progress {
  font-size: 26px;
  font-weight: 700;
  color: var(--hs-purple);
  line-height: 1;
  white-space: nowrap;
}

.hs-map-head__progress span { font-size: 15px; color: var(--hs-muted); }

/* Haritanın kendisi — görsel yoksa temaya göre gradyan yer tutucu */
.hs-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--hs-radius-card);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--hs-shadow-2);
  background-color: var(--hs-map-bg, #2B3A5C);
}

.hs-map--tavan-arasi { --hs-map-bg: #3A2E4A; }
.hs-map--isik-ormani { --hs-map-bg: #1F4536; }
.hs-map--ruzgar-daglari { --hs-map-bg: #3D4A63; }
.hs-map--yildiz-denizi { --hs-map-bg: #16274F; }
.hs-map--zaman-kulesi { --hs-map-bg: #4A3520; }

.hs-map__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hs-map__path-base,
.hs-map__path-done {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.hs-map__path-base {
  stroke: rgba(255, 255, 255, .38);
  stroke-width: 4;
  stroke-dasharray: 5 8;
}

/* Ulaşılan duraklar arası patika: sarı ve hafif parlak */
.hs-map__path-done {
  stroke: var(--hs-yellow);
  stroke-width: 6;
  filter: drop-shadow(0 0 4px rgba(255, 217, 61, .7));
}

/* Haritadaki duraklar */
.hs-map-step {
  position: absolute;
  width: var(--hs-touch-min);
  height: var(--hs-touch-min);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  padding: 0;
}

.hs-map-step__pin {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--hs-radius-pill);
  border: 3px solid #fff;
  background: var(--hs-gradient-primary);
  color: #fff;
  font-size: var(--hs-text-body-sm);
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .45);
  transition: transform .15s ease;
}

.hs-map-step:hover:not(:disabled) .hs-map-step__pin { transform: scale(1.14); }
.hs-map-step:focus-visible { outline: 3px solid var(--hs-yellow); outline-offset: 0; border-radius: var(--hs-radius-pill); }

.hs-map-step.is-locked .hs-map-step__pin {
  background: rgba(20, 28, 52, .78);
  border-color: rgba(255, 255, 255, .45);
  font-size: 15px;
}

.hs-map-step.is-unread .hs-map-step__pin {
  box-shadow: 0 0 0 4px rgba(255, 217, 61, .55), 0 3px 8px rgba(0, 0, 0, .45);
}

.hs-map-step.is-open .hs-map-step__pin {
  background: var(--hs-gradient-success);
  transform: scale(1.14);
}

/* Açılan durak paneli */
.hs-chapter-panel { display: flex; flex-direction: column; gap: var(--hs-space-5); }

.hs-chapter-panel__head {
  display: flex;
  align-items: center;
  gap: var(--hs-space-5);
}

.hs-icon-btn--ghost {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--hs-divider);
  color: var(--hs-muted);
  font-size: 15px;
}

.hs-icon-btn--ghost:hover { background: var(--hs-divider-2); }

.hs-chapter-panel .hs-chapter__body { padding: 0; }

/* Durak listesi */
.hs-step-row {
  display: flex;
  align-items: center;
  gap: var(--hs-space-5);
  width: 100%;
  padding: var(--hs-space-5) var(--hs-space-7);
  text-align: start;
  transition: background .15s ease;
}

.hs-step-row + .hs-step-row { border-top: 1px solid var(--hs-divider-3); }
.hs-step-row:hover:not(:disabled) { background: var(--hs-row-hover); }
.hs-step-row:focus-visible { outline: 3px solid var(--hs-blue); outline-offset: -3px; }
.hs-step-row.is-locked { opacity: .6; cursor: default; }

.hs-step-row__num {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-gradient-badge);
  color: #fff;
  font-size: var(--hs-text-meta);
  font-weight: 700;
}

.hs-step-row.is-locked .hs-step-row__num { background: var(--hs-chip-idle); }
.hs-step-row__title { flex: 1; font-size: var(--hs-text-body-sm); font-weight: 600; }
.hs-step-row__meta { font-size: var(--hs-text-caption); color: var(--hs-muted); white-space: nowrap; }

/* ------------------------------------------------- ☰ menüsü */

.hs-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--hs-space-7);
  background: rgba(15, 23, 48, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hs-menu {
  width: min(414px, 100%);
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-3);
  padding: var(--hs-space-7);
  border-radius: var(--hs-radius-modal);
  background: var(--hs-surface);
  box-shadow: var(--hs-shadow-4);
}

.hs-menu__item {
  display: flex;
  align-items: center;
  gap: var(--hs-space-5);
  min-height: var(--hs-button-height);
  padding: 0 var(--hs-space-6);
  border-radius: var(--hs-radius-button);
  background: var(--hs-background);
  font-size: var(--hs-text-body);
  font-weight: 600;
  color: var(--hs-ink);
  text-align: start;
  transition: background .15s ease;
}

.hs-menu__item:hover { background: var(--hs-divider); }
.hs-menu__item:focus-visible { outline: 3px solid var(--hs-blue); outline-offset: 2px; }
.hs-menu__item--danger { color: var(--hs-red); }
.hs-menu__icon { font-size: 21px; line-height: 1; }

.hs-menu__badge {
  margin-inline-start: auto;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-orange);
  color: #fff;
  font-size: var(--hs-text-caption);
  font-weight: 700;
  text-align: center;
}

/* ------------------------------------------------- Oyunlar */

.hs-token-count {
  font-size: 34px;
  font-weight: 700;
  color: var(--hs-orange);
  line-height: 1.1;
}

.hs-token-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--hs-space-3);
  width: 100%;
  min-height: var(--hs-touch-min);
  padding: var(--hs-space-4) var(--hs-space-7);
  border-radius: var(--hs-radius-card);
  background: var(--hs-reward-strip);
  border: 2px solid var(--hs-orange);
  font-size: var(--hs-text-body-sm);
  font-weight: 500;
  color: var(--hs-ink);
}

.hs-token-chip strong { color: var(--hs-orange); font-size: var(--hs-text-screen-title); }
.hs-token-chip:hover { filter: brightness(.98); }
.hs-token-chip:focus-visible { outline: 3px solid var(--hs-orange); outline-offset: 2px; }

.hs-game-card {
  display: flex;
  align-items: center;
  gap: var(--hs-space-5);
  width: 100%;
  text-align: start;
  transition: transform .15s ease, box-shadow .15s ease;
}

.hs-game-card:hover:not(:disabled) { transform: translateY(-3px); box-shadow: var(--hs-shadow-3); }
.hs-game-card:focus-visible { outline: 3px solid var(--hs-blue); outline-offset: 2px; }
.hs-game-card:disabled { opacity: .55; cursor: not-allowed; }

.hs-game-card__icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--hs-radius-badge);
  background: var(--hs-gradient-badge);
  font-size: 26px;
}

.hs-game-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-game-card__name { font-size: var(--hs-text-body); font-weight: 600; }

.hs-game-card__cost {
  font-size: var(--hs-text-meta);
  font-weight: 700;
  color: var(--hs-orange);
  white-space: nowrap;
}

/* Oyun ekranı */
.hs-game { display: flex; flex-direction: column; gap: var(--hs-space-5); }

.hs-game__bar {
  display: flex;
  align-items: center;
  gap: var(--hs-space-4);
  padding: var(--hs-space-4) var(--hs-space-6);
  border-radius: var(--hs-radius-card);
  background: var(--hs-surface);
  box-shadow: var(--hs-shadow-1);
}

.hs-game__count,
.hs-game__timer {
  font-size: var(--hs-text-meta);
  font-weight: 700;
  color: var(--hs-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hs-game__timer.is-low { color: var(--hs-red); }

.hs-game__prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hs-space-3);
  padding: var(--hs-space-9) var(--hs-space-6);
  border-radius: var(--hs-radius-card);
  background: var(--hs-surface);
  box-shadow: var(--hs-shadow-2);
  text-align: center;
}

.hs-game__prompt strong {
  font-size: 30px;
  font-weight: 700;
  color: var(--hs-ink);
  overflow-wrap: anywhere;
}

.hs-game__options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hs-space-4); }

.hs-game__option {
  min-height: 62px;
  padding: var(--hs-space-4);
  border-radius: var(--hs-radius-button);
  border: 2px solid var(--hs-divider-2);
  background: var(--hs-surface);
  font-size: var(--hs-text-body);
  font-weight: 600;
  color: var(--hs-ink);
  overflow-wrap: anywhere;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.hs-game__option:hover:not(:disabled) { border-color: var(--hs-blue); transform: translateY(-2px); }
.hs-game__option:focus-visible { outline: 3px solid var(--hs-blue); outline-offset: 2px; }
.hs-game__option.is-picked { background: var(--hs-blue); border-color: var(--hs-blue); color: #fff; }

/* Hafıza */
/*
 * Sütun sayısı bileşen tarafından kart sayısına göre hesaplanır: ızgara kareye
 * yakın kalsın ve BÜTÜN KARTLAR aynı anda ekranda dursun. Hafıza oyununda
 * kaydırmak oyunu bozar — kartların yerini hatırlamak oyunun kendisi.
 */
.hs-memory {
  display: grid;
  gap: var(--hs-space-3);
}

.hs-memory__card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--hs-radius-icon-sm);
  border: 3px solid var(--hs-divider-2);
  background: var(--hs-gradient-header);
  display: grid;
  place-items: center;
  font-size: 26px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}

/*
 * Görsel akış dışında durmalı: normal akışta `height: 100%` kartın kendi
 * yüksekliğini büyütüyor ve kart açıldığı anda bütün ızgara sıçrıyordu.
 */
.hs-memory__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hs-memory__card.is-open { background: var(--hs-surface); transform: rotateY(0deg); }
.hs-memory__card.is-matched { border-color: var(--hs-green); opacity: .75; }
.hs-memory__card:focus-visible { outline: 3px solid var(--hs-yellow); outline-offset: 2px; }

/* Yapboz */
.hs-puzzle {
  position: relative;
  display: grid;
  gap: 3px;
  aspect-ratio: 3 / 4;
  border-radius: var(--hs-radius-card);
  overflow: hidden;
  background: var(--hs-divider);
}

.hs-puzzle__tile {
  border: 0;
  padding: 0;
  background-color: var(--hs-divider-2);
  background-repeat: no-repeat;
  transition: outline-color .12s ease, transform .12s ease;
  outline: 3px solid transparent;
  outline-offset: -3px;
}

.hs-puzzle__tile.is-selected { outline-color: var(--hs-yellow); transform: scale(.94); }
.hs-puzzle__tile.is-right { outline-color: rgba(46, 213, 115, .55); }
.hs-puzzle__tile:focus-visible { outline-color: var(--hs-blue); }

.hs-puzzle__hint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
}

/* Oyun sonucu */
.hs-game-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hs-space-5);
  text-align: center;
}

.hs-game-result__score {
  font-size: 52px;
  font-weight: 700;
  color: var(--hs-purple);
  line-height: 1;
}

.hs-game-result__score span { font-size: 20px; color: var(--hs-muted); }

.hs-game-result__rewards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--hs-space-4);
}

.hs-game-result__trophy {
  padding: var(--hs-space-3) var(--hs-space-6);
  border-radius: var(--hs-radius-button);
  background: var(--hs-reward-strip);
  color: var(--hs-orange);
  font-weight: 700;
}

.hs-game-result__item {
  display: inline-flex;
  align-items: center;
  gap: var(--hs-space-3);
  padding: var(--hs-space-3) var(--hs-space-6);
  border-radius: var(--hs-radius-button);
  border: 2px solid var(--hs-divider-2);
  font-size: var(--hs-text-body-sm);
  font-weight: 600;
}

.hs-game-result__item img { width: 24px; height: 24px; object-fit: contain; }

/* Oyun şıklarında doğru/yanlış geri bildirimi */

.hs-game__option {
  position: relative;
}

.hs-game__option.is-correct {
  border-color: var(--hs-green);
  background: var(--hs-stat-green-bg);
  color: var(--hs-green-deep);
}

.hs-game__option.is-wrong {
  border-color: var(--hs-red);
  background: var(--hs-stat-red-bg);
  color: var(--hs-red);
}

.hs-game__option.is-faded { opacity: .45; }

.hs-game__mark {
  position: absolute;
  top: 6px;
  inset-inline-end: 8px;
  font-size: var(--hs-text-body-sm);
  font-weight: 700;
  color: var(--hs-green);
}

.hs-game__mark--wrong { color: var(--hs-red); }

.hs-game__correction {
  margin: 0;
  padding: var(--hs-space-4) var(--hs-space-6);
  border-radius: var(--hs-radius-button);
  background: var(--hs-stat-green-bg);
  color: var(--hs-green-deep);
  font-size: var(--hs-text-body-sm);
  text-align: center;
}

.hs-game__correction strong { font-size: var(--hs-text-body); }

/*
 * Ceza sonrası telafi uyarısı.
 *
 * Ceza XP'yi seviyenin eşiğinin altına düşürebilir; o aralıkta çubuk boş
 * kalır. Sessiz bir sıfır yerine kaç XP'nin telafi edileceği yazılır ki çocuk
 * kazandığı XP'nin nereye gittiğini anlasın.
 */
.hs-xp-card__telafi {
  margin: var(--hs-space-4) 0 0;
  font-size: var(--hs-text-caption);
  line-height: 1.4;
  color: var(--hs-orange);
}

.hs-xp-card__telafi b { font-weight: 700; }

/* ---------------------------------------------------------------------------
   Geçmiş gün düzeltmesi — veli panelinde unutulan işaretler
   --------------------------------------------------------------------------- */

.hs-backfill__aciklama {
    margin: 0;
    padding: 14px 18px 0;
    line-height: 1.6;
}

.hs-backfill__gunler {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 18px;
}

.hs-backfill__gun-secici { max-width: 320px; }

.hs-backfill__form {
    padding: 0 18px 18px;
    border-top: 1px solid var(--hs-border);
}

.hs-backfill__cocuk {
    font-weight: 700;
    margin: 14px 0 8px;
}

.hs-backfill__liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.hs-backfill__satir {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 8px;
}

.hs-backfill__satir:nth-child(odd) { background: var(--hs-surface-2, rgba(0, 0, 0, .03)); }

.hs-backfill__etiket {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}

.hs-backfill__etiket input { width: 20px; height: 20px; flex-shrink: 0; }

.hs-backfill__ad {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hs-backfill__xp {
    flex-shrink: 0;
    font-size: 13px;
    opacity: .7;
    font-variant-numeric: tabular-nums;
}

/* Durum rozetleri: o günün kaydı ne diyor. */
.hs-backfill__durum {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.hs-backfill__durum--yapildi { background: rgba(34, 160, 90, .14); color: #1c8049; }
.hs-backfill__durum--kacirildi { background: rgba(214, 60, 60, .14); color: #b23a3a; }
.hs-backfill__durum--isaretlenmedi { background: rgba(120, 120, 120, .14); color: #6b6b6b; }

.hs-backfill__alt {
    display: flex;
    justify-content: flex-end;
    padding-top: 14px;
}

@media (max-width: 620px) {
    .hs-backfill__satir { flex-wrap: wrap; }
    .hs-backfill__etiket { flex: 1 1 100%; }
    .hs-backfill__alt { justify-content: stretch; }
    .hs-backfill__alt .hs-btn { width: 100%; }
}
