:root {
  --bg: #0f0c1d;
  --bg2: #1a1530;
  --panel: #1e1838cc;
  --panel-solid: #221b3f;
  --line: #3a3060;
  --text: #ece6ff;
  --muted: #9a90bf;
  --gold: #f5c84c;
  --accent: #8f6bff;
  --good: #4ade80;
  --bad: #ff5d6c;
  --mana: #4ea8ff;
  --cell: 64px;
  --speed: 1;
  --t1: #9aa3ad; --t2: #4caf50; --t3: #3d8bfd; --t4: #b05cff; --t5: #f5b82e; --t0: #ff4d4d;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse at top, #2a1f52 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
h3 { margin: 12px 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
h3 small { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: normal; }
.muted { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }

#app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

/* ---------- barre du haut ---------- */
#topbar {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px;
  background: #0b0918cc; border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 20; flex-wrap: wrap;
}
.brand { font-weight: 800; font-size: 18px; color: var(--gold); white-space: nowrap; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; justify-content: center; }
.stat {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 8px;
  padding: 4px 10px; font-size: 14px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.stat .xpbar { width: 60px; height: 6px; background: #000a; border-radius: 3px; overflow: hidden; }
.stat .xpbar i { display: block; height: 100%; background: var(--accent); }
.top-actions { display: flex; gap: 6px; }

.btn {
  background: linear-gradient(#3a2f6b, #2a2250); border: 1px solid #5a4b98; border-radius: 8px;
  padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 14px; transition: filter .15s, transform .05s;
  min-height: 40px;
}
.btn:hover:not(:disabled) { filter: brightness(1.2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.small { padding: 4px 10px; min-width: 40px; }
.btn.primary { background: linear-gradient(#e0a92c, #b07a12); border-color: #ffd36b; color: #241500; }
.btn.danger { background: linear-gradient(#a8323e, #7a1f29); border-color: #ff6b7a; }

/* ---------- disposition ---------- */
#main {
  flex: 1; display: grid; grid-template-columns: 230px 1fr 270px; gap: 12px; padding: 12px 16px;
  align-items: start;
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 12px; }
#center { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }

#wave-info {
  font-size: 14px; color: var(--muted); text-align: center; min-height: 20px;
}
#wave-info b { color: var(--text); }
#wave-info .boss { color: var(--bad); font-weight: 800; }

/* ---------- plateau ---------- */
#board-wrap {
  position: relative; width: calc(var(--cell) * 7); height: calc(var(--cell) * 8);
  border-radius: 10px; box-shadow: 0 0 0 2px var(--line), 0 10px 40px #0008;
}
#board { display: grid; grid-template-columns: repeat(7, var(--cell)); grid-template-rows: repeat(8, var(--cell)); border-radius: 10px; overflow: hidden; }
.cell { border: 1px solid #ffffff08; }
.cell.enemy { background: #3a1a2a; }
.cell.enemy.alt { background: #321624; }
.cell.player { background: #1d2a48; }
.cell.player.alt { background: #18233d; }
.cell.mid { box-shadow: inset 0 -2px 0 #ffffff22; }
.cell.drop-hover { background: #4b3f8a !important; box-shadow: inset 0 0 0 2px var(--gold); }

#layer, #fx { position: absolute; inset: 0; pointer-events: none; }
#fx { z-index: 5; overflow: visible; }

/* ---------- unité ---------- */
.unit {
  position: absolute; left: 0; top: 0; width: var(--cell); height: var(--cell);
  display: flex; align-items: center; justify-content: center;
  transition: transform calc(0.32s / var(--speed)) ease-out, opacity .4s;
  pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none;
}
.slot .unit { position: relative; transform: none !important; }
.unit .token {
  width: 74%; height: 74%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff22, #00000055), var(--tok, #333);
  border: 3px solid var(--tier, #888);
  display: flex; align-items: center; justify-content: center;
  font-size: calc(var(--cell) * 0.4); line-height: 1;
  box-shadow: 0 3px 8px #0009;
  position: relative;
  transition: filter .15s;
}
.unit.side-enemy .token { box-shadow: 0 0 0 2px #ff5d6c88, 0 3px 8px #0009; }
.unit.side-enemy .token .emoji, .unit.side-enemy .token .art { transform: scaleX(-1); }
.unit .token { overflow: visible; }
.unit .token .art { width: 128%; height: 128%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 2px #0008); }
.unit .token span.art { width: auto; height: auto; }
img.pic { width: 1.25em; height: 1.25em; vertical-align: middle; object-fit: contain; }
.inline-pic img.pic { width: 22px; height: 22px; margin-right: 2px; }
.dmg-row .inline-pic img.pic { width: 24px; height: 24px; }
.unit .token .badge { position: absolute; top: -10%; right: -10%; font-size: 40%; }
.unit.tier-1 { --tier: var(--t1); } .unit.tier-2 { --tier: var(--t2); } .unit.tier-3 { --tier: var(--t3); }
.unit.tier-4 { --tier: var(--t4); } .unit.tier-5 { --tier: var(--t5); } .unit.tier-0 { --tier: var(--t0); }
.unit.boss .token { width: 96%; height: 96%; font-size: calc(var(--cell) * 0.55); border-width: 4px; }
.unit .stars {
  position: absolute; top: -2px; left: 0; right: 0; text-align: center; font-size: calc(var(--cell) * 0.17);
  color: var(--gold); text-shadow: 0 1px 2px #000; letter-spacing: -1px; z-index: 2;
}
.unit.star-2 .stars { color: #d9e4ff; }
.unit.star-3 .stars { color: var(--gold); filter: drop-shadow(0 0 3px var(--gold)); }
.unit .bars { position: absolute; left: 10%; right: 10%; bottom: 4%; z-index: 2; display: none; }
.unit.in-combat .bars { display: block; }
.unit .bar { height: 5px; background: #000b; border-radius: 2px; overflow: hidden; margin-top: 1px; position: relative; }
.unit .bar i { display: block; height: 100%; transition: width .15s; }
.unit .bar.hp i { background: var(--good); }
.unit.side-enemy .bar.hp i { background: var(--bad); }
.unit .bar.hp .sh { position: absolute; top: 0; height: 100%; background: #e8e8ff; opacity: .85; }
.unit .bar.mana { height: 3px; }
.unit .bar.mana i { background: var(--mana); }
.unit .items { position: absolute; bottom: 2%; right: 2%; display: flex; gap: 1px; font-size: calc(var(--cell) * 0.16); z-index: 3; }
.unit.in-combat .items { bottom: auto; top: 14%; right: 0; flex-direction: column; }
.unit .items span { background: #000a; border-radius: 3px; padding: 0 1px; line-height: 1.2; }
.unit.dead { opacity: 0; pointer-events: none; }
.unit.stunned .token { filter: grayscale(.8) brightness(.8); }
.unit.stunned .token::after { content: '💫'; position: absolute; top: -18%; font-size: 45%; }
.unit.flash .token { filter: brightness(2.2) saturate(.3); }
.unit.casting .token { animation: cast .45s ease-out; }
.unit.attacking.side-player .token { animation: lunge-up calc(.25s / var(--speed)); }
.unit.attacking.side-enemy .token { animation: lunge-down calc(.25s / var(--speed)); }
.unit.selected .token { outline: 3px solid var(--gold); outline-offset: 2px; }
.unit.dragging { opacity: .3; }
.unit.drop-hover .token { outline: 3px dashed var(--gold); outline-offset: 2px; }
.unit.merged .token { animation: merge .8s ease-out; }
@keyframes cast { 0% { box-shadow: 0 0 0 0 #fff8; } 100% { box-shadow: 0 0 0 calc(var(--cell) * .3) #fff0; } }
@keyframes lunge-up { 50% { transform: translateY(-14%); } }
@keyframes lunge-down { 50% { transform: translateY(14%); } }
@keyframes merge { 0% { transform: scale(1.6); filter: brightness(3); } 100% { transform: scale(1); } }

.ghost { position: fixed !important; z-index: 1000; pointer-events: none !important; transform: translate(-50%, -50%) scale(1.1) !important; transition: none !important; opacity: .9; }
.ghost.item-ghost { font-size: 34px; width: auto; height: auto; }

/* ---------- effets ---------- */
.float {
  position: absolute; font-weight: 800; font-size: 14px; pointer-events: none; white-space: nowrap;
  text-shadow: 0 1px 2px #000, 0 0 3px #000; animation: float 0.9s ease-out forwards; transform: translate(-50%, -50%);
}
.float.phys { color: #ffb366; }
.float.magic { color: #c9a2ff; }
.float.true { color: #fff; }
.float.dot { font-size: 11px; color: #ff9933; }
.float.heal { color: var(--good); }
.float.crit { font-size: 19px; color: #ffe14d; }
.float.cast { color: #fff; font-size: 12px; background: #0009; padding: 1px 6px; border-radius: 6px; animation-duration: 1.2s; }
@keyframes float { 0% { opacity: 0; margin-top: 0; } 15% { opacity: 1; } 100% { opacity: 0; margin-top: -34px; } }
.proj { position: absolute; font-size: calc(var(--cell) * .28); transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 0 4px #fff8); }
.proj.dot-proj { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
.aoe { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); animation: aoe .6s ease-out forwards; pointer-events: none; }
.aoe.fire { background: radial-gradient(circle, #ffb34799, #ff3d0055 60%, transparent 70%); }
.aoe.water { background: radial-gradient(circle, #6fd0ff99, #1e5bff55 60%, transparent 70%); }
.aoe.nature { background: radial-gradient(circle, #9be86b99, #2f8a2a55 60%, transparent 70%); }
.aoe.stone { background: radial-gradient(circle, #e0d0a099, #80602055 60%, transparent 70%); }
@keyframes aoe { 0% { opacity: 0; scale: .3; } 30% { opacity: 1; } 100% { opacity: 0; scale: 1.1; } }
.screen-flash { position: absolute; inset: 0; border-radius: 10px; animation: sflash .7s ease-out forwards; pointer-events: none; }
.screen-flash.fire { background: #ff6a0055; }
.screen-flash.water { background: #2a8cff55; }
.screen-flash.nature { background: #4fbf3a55; }
@keyframes sflash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }

#banner {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 10;
  background: #0b0918ee; border: 2px solid var(--gold); border-radius: 14px; padding: 16px 28px; text-align: center;
  min-width: 240px; box-shadow: 0 10px 40px #000a; animation: pop .3s ease-out;
}
#banner h2 { margin: 0 0 6px; font-size: 28px; }
#banner.win h2 { color: var(--gold); }
#banner.lose h2 { color: var(--bad); }
#banner p { margin: 4px 0; color: var(--muted); }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.7); opacity: 0; } }

/* ---------- banc ---------- */
#bench-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; max-width: 100%; overflow-x: auto; }
#bench { display: flex; gap: 4px; }
.slot {
  width: var(--cell); height: var(--cell); border-radius: 8px; background: #ffffff08; border: 1px dashed #ffffff1a;
  flex: 0 0 auto; position: relative;
}
.slot.drop-hover { background: #4b3f8a; border-color: var(--gold); }

/* ---------- boutique ---------- */
#shopbar {
  position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: #0b0918ee; border-top: 1px solid var(--line); backdrop-filter: blur(6px);
}
.shop-actions { display: flex; flex-direction: column; gap: 6px; }
#shop { display: flex; gap: 8px; flex: 1; justify-content: center; }
.card {
  width: 128px; height: 96px; border-radius: 10px; position: relative; cursor: pointer; overflow: hidden;
  background: linear-gradient(160deg, var(--tok, #333) 0%, #15112a 75%);
  border: 2px solid var(--tier, #888); display: flex; flex-direction: column; justify-content: flex-end; padding: 6px 8px;
  transition: transform .1s, filter .1s; user-select: none; -webkit-user-select: none;
}
.card:hover { transform: translateY(-3px); filter: brightness(1.15); }
.card.empty { background: #ffffff05; border: 2px dashed #ffffff15; cursor: default; }
.card.empty:hover { transform: none; filter: none; }
.card.unaffordable { filter: grayscale(.7) brightness(.7); }
.card.owned::before { content: '★'; position: absolute; left: 6px; top: 4px; color: var(--gold); font-size: 14px; text-shadow: 0 0 6px var(--gold); }
.card .c-emoji { position: absolute; right: 6px; top: 2px; font-size: 40px; line-height: 1; }
.card .c-emoji img.pic { width: 54px; height: 54px; }
.card .c-name { font-weight: 700; font-size: 14px; text-shadow: 0 1px 2px #000; }
.card .c-traits { font-size: 11px; color: #ddd; text-shadow: 0 1px 2px #000; }
.card .c-cost { position: absolute; left: 6px; top: 22px; font-weight: 800; font-size: 13px; color: var(--gold); text-shadow: 0 1px 2px #000; }
.card .c-info { position: absolute; right: 2px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; background: #0008; border: 1px solid #fff4; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.card.tier-1 { --tier: var(--t1); } .card.tier-2 { --tier: var(--t2); } .card.tier-3 { --tier: var(--t3); }
.card.tier-4 { --tier: var(--t4); } .card.tier-5 { --tier: var(--t5); }
#btn-fight { min-width: 150px; min-height: 56px; font-size: 17px; }
#sell-zone {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  background: #5a1520ee; border-top: 2px dashed var(--bad); font-size: 18px; font-weight: 700;
}
body.dragging-unit #sell-zone { display: flex; }
#sell-zone.drop-hover { background: #8a1f2eee; }
body.in-combat #shop, body.in-combat .shop-actions { opacity: .45; pointer-events: none; }

/* ---------- traits ---------- */
.trait {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; margin-bottom: 4px;
  background: #ffffff06; cursor: pointer; border: 1px solid transparent;
}
.trait:hover { border-color: var(--line); }
.trait .ti { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 17px; background: #0006; flex: 0 0 auto; }
.trait.active .ti { background: var(--tc); box-shadow: 0 0 10px var(--tc); }
.trait .tn { font-size: 13px; font-weight: 600; flex: 1; }
.trait .tc { font-size: 12px; color: var(--muted); }
.trait.active .tc b { color: var(--gold); }
.trait.inactive { opacity: .6; }
.pips { display: flex; gap: 3px; margin-top: 2px; }
.pips span { font-size: 10px; color: var(--muted); }
.pips span.on { color: var(--gold); font-weight: 700; }

.icon-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.icon {
  width: 44px; height: 44px; border-radius: 10px; background: #ffffff0d; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; touch-action: none; user-select: none;
}
.icon:hover { border-color: var(--gold); }
.icon.relic { border-color: #f5c84c66; background: #f5c84c14; }
.icon.emblem { border-color: #c77dff88; }

/* ---------- détails ---------- */
#details-panel { margin-top: 14px; border-top: 1px solid var(--line); position: relative; }
#details-close { display: none; position: absolute; right: 0; top: 8px; }
#details { font-size: 13px; line-height: 1.4; }
#details h4 { margin: 12px 0 4px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
#details h4 .big { font-size: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.chip { font-size: 11px; padding: 2px 7px; border-radius: 10px; background: #ffffff12; border: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin: 8px 0; }
.stat-grid div { display: flex; justify-content: space-between; }
.stat-grid span { color: var(--muted); }
.ability { background: #ffffff08; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin: 6px 0; }
.ability b { color: var(--mana); }
.ability .val { color: var(--muted); }
.ability .val.cur { color: var(--gold); font-weight: 700; }
.lvls { margin: 4px 0; padding-left: 18px; }
.lvls li.on { color: var(--gold); }

/* ---------- modale ---------- */
#modal { position: fixed; inset: 0; z-index: 100; background: #05030ccc; display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(3px); }
.modal-box {
  background: var(--panel-solid); border: 1px solid #5a4b98; border-radius: 16px; padding: 20px 24px; max-width: 760px; width: 100%;
  max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 20px 60px #000c; animation: popm .25s ease-out;
}
@keyframes popm { from { transform: scale(.9); opacity: 0; } }
.modal-box h2 { margin: 0 0 6px; color: var(--gold); }
.modal-box .title-big { font-size: 34px; text-align: center; margin: 4px 0; }
.modal-box .subtitle { text-align: center; color: var(--muted); margin-bottom: 18px; }
.menu-buttons { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto; }
.diff-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.diff { padding: 10px; border-radius: 10px; border: 2px solid var(--line); background: #ffffff08; cursor: pointer; text-align: center; }
.diff.sel { border-color: var(--gold); background: #f5c84c18; }
.diff b { display: block; }
.diff small { color: var(--muted); font-size: 11px; }
.rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.reward {
  border: 2px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; cursor: pointer; background: #ffffff08; transition: transform .1s, border-color .1s;
}
.reward:hover { transform: translateY(-3px); border-color: var(--gold); }
.reward .r-icon { font-size: 44px; }
.reward .r-name { font-weight: 700; margin: 6px 0; }
.reward .r-desc { font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
.tabs .btn.on { border-color: var(--gold); color: var(--gold); }
.codex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.codex-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #ffffff06; font-size: 13px; }
.codex-item .ci-head { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.codex-item .ci-head .e { font-size: 26px; }
.codex-item p { margin: 4px 0 0; color: var(--muted); }
.help p, .help li { line-height: 1.5; font-size: 14px; }
.end-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin: 14px 0; }
.end-stats div { background: #ffffff08; border-radius: 10px; padding: 8px; }
.end-stats b { display: block; font-size: 22px; color: var(--gold); }
.dmg-list { font-size: 13px; }
.dmg-row { display: flex; align-items: center; gap: 6px; margin: 3px 0; }
.dmg-row .bar-bg { flex: 1; height: 8px; background: #0006; border-radius: 4px; overflow: hidden; }
.dmg-row .bar-bg i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); }

/* ---------- toasts ---------- */
#toasts { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast { background: #2a1f52f2; border: 1px solid var(--gold); padding: 8px 16px; border-radius: 10px; font-size: 14px; animation: toast 2.6s ease-out forwards; text-align: center; max-width: 90vw; }
.toast.err { border-color: var(--bad); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  #main { grid-template-columns: 200px 1fr; }
  #right { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  #topbar { padding: 6px 10px; gap: 6px; }
  .brand { display: none; }
  .stats { justify-content: flex-start; gap: 4px; }
  .stat { font-size: 12px; padding: 3px 6px; }
  .stat small { display: none; }
  .stat .xpbar { width: 36px; }
  #main { grid-template-columns: 1fr; padding: 8px; gap: 8px; }
  #center { order: -1; }
  #left, #right { padding: 2px 10px 10px; }
  #traits { display: flex; flex-wrap: wrap; gap: 4px; }
  #traits .trait { margin: 0; flex: 1 1 140px; }
  #details-panel { display: none; }
  #details-panel.open {
    display: block; position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 50; margin: 0;
    background: var(--panel-solid); border: 1px solid #5a4b98; border-radius: 14px; padding: 4px 14px 14px;
    max-height: 60dvh; overflow-y: auto; box-shadow: 0 -10px 40px #000c;
  }
  #details-close { display: block; }
  #shopbar { flex-wrap: wrap; padding: 8px; gap: 8px; }
  .shop-actions { flex-direction: row; order: 2; flex: 1; }
  .shop-actions .btn { flex: 1; font-size: 12px; padding: 6px; }
  #shop { order: 1; flex: 1 1 100%; gap: 4px; }
  .card { width: 19%; min-width: 0; height: 84px; padding: 4px; }
  .card .c-emoji { font-size: 28px; right: 3px; }
  .card .c-emoji img.pic { width: 38px; height: 38px; }
  .card .c-name { font-size: 11px; }
  .card .c-traits { display: none; }
  #btn-fight { order: 3; min-width: 120px; min-height: 44px; font-size: 15px; }
  .diff-row { grid-template-columns: 1fr; }
  .modal-box { padding: 16px; }
}

/* ---------- portraits (assets/creatures, générés par tools/forge) ---------- */
#details h4 .big img.pic { width: 44px; height: 44px; }
.codex-item .ci-head .e img.pic { width: 38px; height: 38px; }
