/* ---------- Instilling hesaplayıcı ---------- */
.in-hero { position: relative; overflow: hidden; isolation: isolate; background: #06070a; }
.in-title { margin: 12px 0 10px; font: 700 clamp(38px, 5vw, 64px)/1 var(--f-display); background: linear-gradient(180deg, #fff3d6, #d9b26f 62%, #8f7140); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 30px rgba(0,0,0,.9)); }
.in-sub { max-width: 640px; margin: 0; color: #b6aa94; font-size: 16px; line-height: 1.6; }
.in-sec svg { width: 16px; height: 16px; flex: none; }
.in-sec .wrap { display: grid; gap: 18px; }

.in-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.in-tabs { display: flex; flex: 1; min-width: 260px; }
.in-tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 16px; color: #9d917c; background: rgba(8,7,8,.8); border: 1px solid rgba(217,178,111,.2); font: 700 12.5px var(--f-head); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.in-tabs button + button { border-left: 0; }
.in-tabs button:hover { color: #f3dcaa; }
.in-tabs button.on { color: #fff3d6; background: linear-gradient(180deg, rgba(122,26,30,.55), rgba(40,12,14,.7)); border-color: rgba(217,178,111,.5); box-shadow: inset 0 -2px 0 #d9b26f; }
.in-sel { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; background: rgba(8,7,8,.8); border: 1px solid rgba(217,178,111,.2); }
.in-sel span { font: 700 10px var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: #7d7262; }
.in-sel select { color: var(--text); background: transparent; border: 0; outline: 0; font: 14px var(--f-body); cursor: pointer; }
.in-sel select option { background: #111; }
.in-seg { display: flex; height: 48px; }
.in-seg button { padding: 0 14px; color: #9d917c; background: rgba(8,7,8,.8); border: 1px solid rgba(217,178,111,.2); font: 600 13px var(--f-body); cursor: pointer; white-space: nowrap; }
.in-seg button + button { border-left: 0; }
.in-seg button.on { color: #fff3d6; background: rgba(217,178,111,.16); border-color: rgba(217,178,111,.5); }

.in-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.in-search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; background: rgba(6,6,8,.82); border: 1px solid rgba(217,178,111,.25); transition: border-color .2s, box-shadow .2s; }
.in-search:focus-within { border-color: rgba(243,220,170,.6); box-shadow: 0 0 26px rgba(200,29,51,.2); }
.in-search svg { color: #8b7f6b; width: 18px; height: 18px; }
.in-search input { flex: 1; min-width: 0; color: var(--text); background: none; border: 0; outline: none; font: 15px var(--f-body); }
.in-count { margin: 14px 0 10px; font: 700 11px var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: #7d7262; }

.in-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.in-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: linear-gradient(180deg, rgba(20,16,14,.88), rgba(8,7,8,.92)); border: 1px solid rgba(217,178,111,.18); transition: border-color .2s; }
.in-card:hover { border-color: rgba(217,178,111,.42); }
.in-nhead { display: flex; align-items: center; gap: 12px; }
.in-nhead .sp-ic, .in-noic { flex: none; border-radius: 50%; box-shadow: 0 0 0 2px #6d5530, 0 0 0 4px #15110c, 0 0 0 5px rgba(217,178,111,.45), 0 0 18px rgba(217,178,111,.25); }
.in-noic { width: 44px; height: 44px; display: grid; place-items: center; color: #8b7f6b; background: #15110c; }
.in-nhead > div { flex: 1; min-width: 0; }
.in-nhead h3 { margin: 0; font: 700 18px/1.2 var(--f-display); color: #f3dcaa; }
.in-nhead small { color: #7d7262; font-size: 12px; }
.in-tree { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; color: #c9b48c; border: 1px solid rgba(217,178,111,.25); font-size: 12px; white-space: nowrap; text-decoration: none; }
.in-tree:hover { color: #fff3d6; border-color: rgba(217,178,111,.6); }
.in-tree svg { width: 13px; height: 13px; }
.in-stats { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; color: #8fa6e0; font-size: 14px; line-height: 1.45; }
.in-recipe { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(217,178,111,.12); }
.in-emos { flex: 1; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.in-plus { color: #5b5141; display: grid; }
.in-plus svg { width: 12px; height: 12px; }
.in-cost { text-align: right; display: grid; }
.in-cost small { font: 700 9.5px var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: #7d7262; }
.in-cost b { font: 700 17px var(--f-display); color: #fff3d6; white-space: nowrap; }

/* duygu çipi: kademeye göre renk */
.in-emo { --c: #9aa3ad; position: relative; display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 4px 8px 4px 4px; background: rgba(0,0,0,.35); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.in-emo.t2 { --c: #6fb0d9; } .in-emo.t3 { --c: #c78ce0; } .in-emo.t4 { --c: #e8b45c; }
.in-emo img { grid-row: span 2; width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 60%, transparent)); }
.in-emo b { font: 700 13px/1.1 var(--f-body); color: var(--c); }
.in-emo small { font-size: 11px; line-height: 1.1; color: #8b7f6b; white-space: nowrap; }
.in-emo em { position: absolute; top: -7px; left: -6px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #2a1d10; border: 1px solid #8f7140; color: #f3dcaa; font: 700 9px var(--f-head); font-style: normal; }

/* duygulardan bul */
.in-mix { display: grid; gap: 18px; }
.in-slots { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.in-slot { display: flex; align-items: center; gap: 10px; min-width: 170px; height: 64px; padding: 0 14px; color: #7d7262; background: rgba(8,7,8,.8); border: 1px dashed rgba(217,178,111,.3); cursor: pointer; font: 14px var(--f-body); }
.in-slot.full { border-style: solid; border-color: rgba(217,178,111,.5); }
.in-slot.full:hover { border-color: #c8464b; }
.in-slot > em { font: 700 13px var(--f-display); font-style: normal; color: #8f7140; }
.in-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.in-pal { padding: 6px; background: rgba(8,7,8,.7); border: 1px solid rgba(217,178,111,.14); cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; }
.in-pal:hover { border-color: rgba(217,178,111,.55); transform: translateY(-1px); }
.in-pal .in-emo { width: 100%; border: 0; background: none; }
.in-h4 { margin: 0 0 10px; font: 700 12px var(--f-head); letter-spacing: .18em; text-transform: uppercase; color: #b6aa94; }
.in-empty { color: #8b7f6b; margin: 6px 0; }
.in-more { display: flex; justify-content: center; margin-top: 16px; }
.in-src { margin: 8px 0 0; color: #6d6455; font-size: 12.5px; line-height: 1.6; }

@media (max-width: 640px) {
  .in-tabs { min-width: 100%; }
  .in-sel { flex: 1; }
  .in-recipe { flex-direction: column; align-items: stretch; }
  .in-cost { text-align: left; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .in-slot { min-width: 0; flex: 1; }
  .in-slots .in-plus { display: none; }
}
