.deckbuilder-shell{
  padding-top:calc(var(--header-h) + 22px);
}

.deckbuilder-shell .container{
  width:min(calc(100% - 12px), 1840px);
}

.deckbuilder-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:18px;
}

.deckbuilder-view-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.assistant-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(215,193,139,.36);
  background:rgba(215,193,139,.1);
  color:#fff7df;
  cursor:pointer;
}

.toggle-icon{
  display:inline-grid;
  place-items:center;
  width:19px;
  height:19px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:var(--gold-strong);
  font-size:1rem;
  line-height:1;
  font-weight:800;
}

.deckbuilder-toolbar h1{
  margin:10px 0 0;
  font-family:"Cormorant Garamond", serif;
  font-size:clamp(2.2rem, 4vw, 4rem);
  font-weight:600;
}

.deck-status{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.status-chip,
.deck-pill,
.card-tag{
  display:inline-flex;
  min-height:28px;
  align-items:center;
  gap:6px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
  color:#efe6d2;
  font-size:.78rem;
}

.status-icon{
  display:inline-grid;
  place-items:center;
  width:17px;
  height:17px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  color:inherit;
  font-size:.68rem;
  font-weight:900;
  line-height:1;
}

.status-chip.is-valid{
  color:#0e2217;
  background:#8fe4aa;
}

.status-chip.is-warning{
  color:#281908;
  background:#e7c879;
}

.deckbuilder-layout{
  display:grid;
  grid-template-columns:minmax(280px, 340px) minmax(720px, 1fr) minmax(280px, 340px);
  gap:16px;
  align-items:start;
  margin-bottom:52px;
}

.deckbuilder-layout.is-assistant-hidden{
  grid-template-columns:minmax(280px, 340px) minmax(720px, 1fr) minmax(280px, 340px);
}

.deckbuilder-layout.is-catalog-hidden{
  grid-template-columns:minmax(720px, 1fr) minmax(280px, 340px);
}

.deckbuilder-layout.is-assistant-hidden .assistant-panel{
  display:none;
}

.deckbuilder-layout.is-catalog-hidden .catalog-panel{
  display:none;
}

.right-panels{
  display:grid;
  gap:16px;
  min-width:0;
}

.is-charts-hidden .deckbuilder-layout.is-catalog-hidden{
  grid-template-columns:minmax(820px, 1fr) minmax(280px, 340px);
}

.is-charts-hidden .deckbuilder-layout.is-assistant-hidden{
  grid-template-columns:minmax(280px, 340px) minmax(820px, 1fr);
}

.is-charts-hidden .deckbuilder-layout.is-catalog-hidden.is-assistant-hidden{
  grid-template-columns:minmax(0, 1fr);
}

.is-charts-hidden .deckbuilder-layout.is-assistant-hidden .right-panels{
  display:none;
}

.is-filters-hidden .catalog-filters-section{
  display:none;
}

.builder-panel{
  min-height:0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:24px;
  background:
    radial-gradient(circle at top left, rgba(215,193,139,.08), transparent 34%),
    rgba(255,255,255,.02);
  box-shadow:var(--shadow);
}

.deck-main-column{
  display:grid;
  gap:16px;
  min-width:0;
}

.panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.panel-head > span:last-child{
  color:var(--muted);
}

.panel-toggle{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:32px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(215,193,139,.28);
  background:rgba(215,193,139,.08);
  color:#fff7df;
  cursor:pointer;
  font-size:.76rem;
}

.catalog-panel{
  display:grid;
  gap:14px;
  align-content:start;
  min-width:0;
}

.catalog-section{
  min-height:0;
}

.catalog-section .panel-head{
  margin-bottom:12px;
}

.catalog-filters,
.assistant-grid{
  display:grid;
  gap:10px;
  margin-bottom:0;
}

.assistant-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.assistant-grid > input,
.assistant-grid > span,
.assistant-grid > .pick-list{
  grid-column:1 / -1;
}

.catalog-filters{
  grid-template-columns:1fr;
}

.is-charts-hidden .graphics-panel{
  display:none;
}

.catalog-range-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}

.catalog-range-grid label{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:7px 10px;
  align-items:center;
  color:var(--gold);
  font-size:.72rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.catalog-range-grid label > span:not(.range-control){
  color:var(--muted);
  letter-spacing:0;
  text-transform:none;
}

.catalog-range-grid label strong{
  color:#fff7df;
  font-size:.8rem;
}

.catalog-filters input,
.catalog-filters select,
.assistant-grid select,
.assistant-grid textarea,
#deckText{
  width:100%;
  min-height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.035);
  color:var(--text);
  padding:0 12px;
  font:inherit;
}

.catalog-filters select,
.assistant-grid select{
  color:#fff7df;
}

.catalog-filters select option,
.assistant-grid select option{
  background:#111515;
  color:#fff7df;
}

.range-control{
  position:relative;
  grid-column:1 / -1;
  height:24px;
  display:block;
  border-radius:999px;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.08) 0 var(--range-left, 0%),
      rgba(215,193,139,.78) var(--range-left, 0%) var(--range-right, 100%),
      rgba(255,255,255,.08) var(--range-right, 100%) 100%);
  background-size:100% 5px;
  background-repeat:no-repeat;
  background-position:center;
}

.catalog-filters .range-control input[type="range"]{
  position:absolute;
  inset:0;
  width:100%;
  min-height:24px;
  height:24px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  pointer-events:none;
  appearance:none;
}

.catalog-filters .range-control input[type="range"]::-webkit-slider-thumb{
  width:18px;
  height:18px;
  border-radius:999px;
  border:2px solid rgba(10,11,11,.92);
  background:var(--gold-strong);
  box-shadow:0 0 0 1px rgba(255,255,255,.24), 0 5px 14px rgba(0,0,0,.42);
  cursor:pointer;
  pointer-events:auto;
  appearance:none;
}

.catalog-filters .range-control input[type="range"]::-moz-range-thumb{
  width:18px;
  height:18px;
  border-radius:999px;
  border:2px solid rgba(10,11,11,.92);
  background:var(--gold-strong);
  box-shadow:0 0 0 1px rgba(255,255,255,.24), 0 5px 14px rgba(0,0,0,.42);
  cursor:pointer;
  pointer-events:auto;
}

.catalog-filters .range-control input[type="range"]::-webkit-slider-runnable-track{
  height:5px;
  background:transparent;
}

.catalog-filters .range-control input[type="range"]::-moz-range-track{
  height:5px;
  background:transparent;
}

.virtue-filter-list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.virtue-filter{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:32px;
  max-width:100%;
  padding:4px 8px 4px 5px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  color:#efe6d2;
  cursor:pointer;
  font-size:.72rem;
}

.virtue-filter img{
  width:22px;
  height:22px;
  border-radius:999px;
  object-fit:cover;
}

.virtue-filter.is-active{
  border-color:rgba(143,228,170,.58);
  background:rgba(143,228,170,.16);
  color:#fff7df;
}

.assistant-grid textarea,
#deckText{
  min-height:82px;
  padding:10px 12px;
  resize:vertical;
}

.assistant-grid label{
  display:grid;
  gap:6px;
  color:var(--gold);
  font-size:.72rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.card-catalog{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  max-height:72svh;
  overflow:auto;
  padding-right:4px;
}

.catalog-card{
  position:relative;
  overflow:hidden;
  display:block;
  aspect-ratio:5 / 7;
  padding:0;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
  color:inherit;
  cursor:pointer;
  text-align:left;
}

.catalog-card[draggable="true"]{
  user-select:none;
}

.catalog-card img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:inherit;
  background:#080909;
  transition:filter .18s ease, opacity .18s ease;
}

.catalog-card-actions{
  position:absolute;
  inset:0;
  display:none;
  grid-template-columns:1fr;
  align-content:center;
  gap:7px;
  padding:12px;
  background:rgba(8,9,9,.74);
  backdrop-filter:blur(2px);
}

.catalog-card.is-actions-open .catalog-card-actions{
  display:grid;
}

.catalog-card-actions button{
  min-height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.08);
  color:#efe6d2;
  cursor:pointer;
  font-size:.72rem;
}

.catalog-card-actions button[data-card-action="ban"]{
  border-color:rgba(239,107,107,.22);
}

.catalog-card-actions button[data-card-action="close"]{
  border-color:rgba(239,107,107,.48);
  background:rgba(239,107,107,.18);
  color:#ffd8d8;
}

.identity-grid{
  display:none;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-bottom:14px;
}

.identity-slot{
  min-height:128px;
  display:grid;
  align-content:center;
  gap:8px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.025);
  color:inherit;
  cursor:pointer;
  text-align:center;
}

.builder-panel.is-drag-over,
.identity-slot.is-drag-over,
.pick-list.is-drag-over{
  border-color:rgba(143,228,170,.64);
  box-shadow:0 0 0 2px rgba(143,228,170,.12), var(--shadow);
}

.catalog-panel{
  position:relative;
}

.catalog-panel.is-cards-hidden .catalog-cards-section{
  display:none;
}

.catalog-panel.is-drag-over::after{
  content:"Solte aqui para remover";
  position:absolute;
  inset:14px;
  z-index:5;
  display:grid;
  place-items:center;
  border-radius:20px;
  border:1px dashed rgba(239,107,107,.72);
  background:rgba(8,9,9,.78);
  color:#fff7df;
  font-weight:700;
  pointer-events:none;
}

.identity-slot > span{
  color:var(--gold);
  font-size:.72rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.identity-slot strong{
  display:grid;
  justify-items:center;
  gap:8px;
  color:#fff7df;
  line-height:1.25;
}

.identity-slot strong span{
  color:#fff7df;
  font-size:.9rem;
  letter-spacing:0;
  text-transform:none;
}

.identity-slot img{
  width:100%;
  max-width:108px;
  aspect-ratio:5 / 7;
  height:auto;
  border-radius:8px;
  object-fit:cover;
  background:#080909;
}

.identity-slot img.is-landscape{
  max-width:156px;
  aspect-ratio:7 / 5;
  object-fit:contain;
}

.deck-list{
  display:grid;
  gap:12px;
  max-height:70svh;
  overflow:hidden;
}

.deck-board-tools{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.deck-layout-mode{
  display:inline-flex;
  padding:4px;
  gap:4px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.025);
}

.deck-layout-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.deck-layout-mode button,
.deck-layout-reset{
  min-height:34px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  padding:0 12px;
  font-size:.78rem;
}

.deck-layout-mode button.is-active{
  border-color:rgba(215,193,139,.34);
  background:rgba(215,193,139,.12);
  color:#fff7df;
}

.deck-layout-reset{
  border-color:rgba(215,193,139,.28);
  background:rgba(215,193,139,.08);
  color:#fff7df;
}

.deck-board{
  display:flex;
  align-items:stretch;
  width:100%;
  gap:4px;
  min-height:420px;
  max-height:min(64svh, 720px);
  overflow-x:auto;
  overflow-y:auto;
  padding:2px 4px 14px;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:rgba(215,193,139,.5) rgba(255,255,255,.04);
}

.deck-lane--identity{
  position:relative;
  border-color:rgba(240,215,159,.72);
  background:
    linear-gradient(180deg, rgba(0,0,0,.96), rgba(0,0,0,.76)),
    #030404;
  box-shadow:
    inset 0 0 0 1px rgba(240,215,159,.18),
    0 18px 42px rgba(0,0,0,.42);
}

.identity-lane-stack{
  display:grid;
  align-content:start;
  gap:12px;
  min-height:0;
  overflow-y:visible;
  padding:4px;
}

.identity-board-slot{
  position:relative;
  min-height:0;
  display:grid;
  place-items:center;
  gap:6px;
  width:100%;
  padding:8px;
  border-radius:13px;
  border:1px solid rgba(240,215,159,.72);
  background:
    linear-gradient(180deg, rgba(120,92,35,.46), rgba(32,24,10,.6)),
    rgba(215,193,139,.1);
  color:inherit;
  cursor:pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 14px 26px rgba(0,0,0,.42);
  overflow:hidden;
}

.identity-board-slot.is-drag-over{
  border-color:rgba(143,228,170,.64);
  box-shadow:0 0 0 2px rgba(143,228,170,.12);
}

.identity-board-slot > span{
  color:var(--gold);
  font-size:.68rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.identity-board-slot strong{
  color:#fff7df;
}

.identity-board-slot img{
  width:95%;
  max-width:95%;
  aspect-ratio:5 / 7;
  height:auto;
  border-radius:8px;
  object-fit:cover;
  background:#080909;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.48));
  transition:filter .18s ease, opacity .18s ease;
}

.identity-board-slot.is-landscape{
  min-height:0;
}

.identity-board-slot.is-landscape img{
  width:95%;
  aspect-ratio:7 / 5;
}

.deck-lane{
  flex:1 0 128px;
  min-height:100%;
  display:flex;
  flex-direction:column;
  /* padding:8px; */
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    rgba(0,0,0,.16);
  scroll-snap-align:start;
}

.deck-lane-insert{
  position:relative;
  flex:0 0 26px;
  min-height:100%;
  border-radius:999px;
  scroll-snap-align:center;
}

.deck-lane-insert::before{
  content:"";
  position:absolute;
  inset:12px 4px;
  border-radius:999px;
  border:1px dashed rgba(215,193,139,.16);
  background:rgba(215,193,139,.025);
  opacity:.42;
  transition:opacity .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.is-dragging-card .deck-lane-insert::before,
.deck-lane-insert.is-drag-over::before{
  opacity:1;
}

.deck-lane-insert.is-drag-over::before{
  border-color:rgba(143,228,170,.72);
  background:rgba(143,228,170,.16);
  box-shadow:0 0 0 2px rgba(143,228,170,.12);
}

.deck-lane--identity{
  flex:1.16 0 190px;
}

.deck-lane.is-drag-over{
  border-color:rgba(143,228,170,.64);
  box-shadow:0 0 0 2px rgba(143,228,170,.12);
}

.deck-lane-stack{
  flex:1 0 auto;
  min-width:0;
  min-height:0;
  overflow-y:visible;
  overflow-x:visible;
  padding:0px 0px 96px;
}

.deck-board-card{
  position:relative;
  width:100%;
  aspect-ratio:5 / 7;
  height:auto;
  margin-inline:auto;
  border-radius:9px;
  border:1px solid #000;
  overflow:hidden;
  cursor:grab;
  filter:drop-shadow(0 12px 18px rgba(0,0,0,.44));
  transition:transform .18s ease, filter .18s ease;
}

.deck-board-card + .deck-board-card{
  margin-top:-84%;
}

.deck-board-card:hover,
.deck-board-card.is-actions-open{
  z-index:6;
  transform:translateY(-8px);
  filter:drop-shadow(0 18px 28px rgba(0,0,0,.58));
}

.deck-board-card img{
  width:100%;
  height:100%;
  border-radius:9px;
  object-fit:cover;
  background:transparent;
  pointer-events:none;
  transition:filter .18s ease, opacity .18s ease;
}

.deck-board-card-actions{
  position:absolute;
  right:6px;
  bottom:6px;
  z-index:7;
  width:min(78px, calc(100% - 12px));
  display:none;
  gap:6px;
  padding:8px;
  border-radius:12px;
  border:1px solid rgba(215,193,139,.28);
  background:rgba(8,9,9,.94);
  box-shadow:0 18px 44px rgba(0,0,0,.58);
}

.deck-board-card.is-actions-open .deck-board-card-actions{
  display:grid;
}

.deck-board-card-actions strong{
  overflow:hidden;
  color:#fff7df;
  font-size:.76rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.deck-board-card-actions span{
  color:var(--muted);
  font-size:.68rem;
}

.deck-board-card-actions div{
  display:grid;
  grid-template-columns:1fr;
  gap:4px;
}

.deck-board-card-actions button{
  min-height:24px;
  padding:0 5px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
  color:#efe6d2;
  cursor:pointer;
  font-size:.62rem;
}

.deck-group{
  display:grid;
  gap:8px;
}

.deck-group-cards{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}

.deck-group h3{
  margin:0;
  color:var(--gold);
  font-size:.76rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.deck-row{
  display:grid;
  grid-template-columns:44px minmax(0, 1fr) auto;
  gap:10px;
  align-items:center;
  width:100%;
  padding:7px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.025);
  color:inherit;
  cursor:pointer;
  text-align:left;
}

.deck-row[draggable="true"]{
  user-select:none;
}

.deck-row img{
  width:44px;
  height:58px;
  border-radius:7px;
  object-fit:cover;
}

.deck-row strong{
  display:block;
  overflow:hidden;
  color:#fff7df;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.deck-row span{
  color:var(--muted);
  font-size:.78rem;
}

.deck-actions{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
  margin-top:14px;
}

.assistant-actions-section{
  display:grid;
  gap:10px;
}

.deck-actions button{
  min-height:42px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.035);
  color:var(--text);
  cursor:pointer;
}

#deckText{
  margin-top:10px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:.84rem;
}

.analysis-section{
  display:grid;
  gap:10px;
  margin-top:0;
}

.assistant-section{
  display:grid;
  gap:10px;
}

.assistant-section + .assistant-section{
  margin-top:18px;
}

.assistant-separator{
  height:1px;
  width:100%;
  margin-bottom:6px;
  background:linear-gradient(90deg, transparent, rgba(215,193,139,.38), rgba(255,255,255,.08), transparent);
}

.deck-analysis-board{
  display:grid;
  gap:14px;
}

.analysis-area-virtues,
.analysis-area-curve{
  min-width:0;
}

.analysis-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}

.analysis-card{
  min-height:74px;
  display:grid;
  gap:6px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
}

.analysis-card strong{
  display:flex;
  align-items:center;
  gap:8px;
}

.metric-indicator{
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:999px;
  color:#10130f;
  font-size:.75rem;
  font-weight:900;
}

.metric-indicator.good{
  background:#8fe4aa;
}

.metric-indicator.bad{
  background:#ef6b6b;
}

.metric-indicator.neutral{
  background:#e7c879;
}

.analysis-card span{
  color:var(--muted);
  font-size:.76rem;
}

.analysis-card strong{
  color:#fff7df;
  font-size:1.25rem;
}

.function-analysis,
.suggestion-list{
  display:grid;
  gap:8px;
  max-height:240px;
  overflow:auto;
  padding-right:4px;
}

.deck-analysis-board .function-analysis{
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  max-height:176px;
  overflow:auto;
  padding-right:4px;
}

.deck-analysis-board .curve-chart{
  min-height:156px;
}

.deck-current-head{
  align-items:start;
}

.deck-current-head .deck-status{
  /* max-width:58%; */
}

.deck-functions-strip{
  display:grid;
  gap:8px;
  margin:-2px 0 12px;
}

.deck-functions-strip .function-analysis{
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  max-height:none;
  overflow:visible;
  padding-right:0;
}

.function-row,
.suggestion-row{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:10px;
  align-items:center;
  padding:9px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
}

.function-chip{
  display:inline-flex;
  max-width:100%;
  min-height:26px;
  align-items:center;
  gap:7px;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
  color:inherit;
  cursor:default;
  font:inherit;
}

button.function-chip{
  appearance:none;
  cursor:pointer;
}

.function-chip.is-active{
  border-color:rgba(215,193,139,.78);
  background:rgba(215,193,139,.18);
  box-shadow:0 0 0 2px rgba(215,193,139,.12);
}

.function-chip.is-empty{
  cursor:default;
}

.function-chip strong{
  max-width:138px;
  overflow:hidden;
  color:#fff7df;
  font-size:.72rem;
  font-weight:600;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.function-chip span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:var(--gold-strong);
  font-size:.72rem;
  font-weight:800;
}

.function-chip .metric-indicator{
  width:15px;
  height:15px;
  font-size:.56rem;
}

.catalog-card.is-function-dimmed img,
.deck-board-card.is-function-dimmed img,
.identity-board-slot.is-function-dimmed img{
  filter:grayscale(1) saturate(.08) brightness(.66);
  opacity:.62;
}

.catalog-card.is-function-match,
.deck-board-card.is-function-match,
.identity-board-slot.is-function-match{
  border-color:rgba(215,193,139,.88);
  box-shadow:0 0 0 2px rgba(215,193,139,.16), 0 16px 34px rgba(0,0,0,.42);
}

.identity-board-slot.is-function-dimmed img{
  filter:grayscale(1) saturate(.08) brightness(.66) drop-shadow(0 10px 18px rgba(0,0,0,.48));
}

.suggestion-row{
  grid-template-columns:44px minmax(0, 1fr) 44px minmax(70px, .7fr) auto;
}

.suggestion-row.is-empty{
  grid-template-columns:1fr;
}

.suggestion-row img{
  width:44px;
  height:58px;
  border-radius:7px;
  object-fit:cover;
  background:#080909;
}

.function-row strong,
.suggestion-row strong{
  overflow:hidden;
  color:#fff7df;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.suggestion-row.is-empty strong,
.pick-item.is-empty strong{
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
}

.function-row span,
.suggestion-row span{
  color:var(--gold-strong);
  font-weight:700;
}

.suggestion-row > span{
  overflow:hidden;
  color:var(--muted);
  font-size:.72rem;
  font-weight:500;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.suggestion-row button{
  min-height:30px;
  border-radius:999px;
  border:1px solid rgba(215,193,139,.4);
  background:rgba(215,193,139,.12);
  color:#fff7df;
  cursor:pointer;
}

.pick-list{
  display:grid;
  gap:8px;
}

.pick-item{
  display:grid;
  grid-template-columns:34px minmax(0, 1fr) auto;
  gap:8px;
  align-items:center;
  padding:7px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
}

.pick-item.is-empty{
  grid-template-columns:1fr;
  min-height:38px;
}

.pick-item img{
  width:34px;
  height:46px;
  border-radius:6px;
  object-fit:cover;
}

.pick-item strong{
  overflow:hidden;
  color:#fff7df;
  font-size:.82rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pick-item button{
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);
  color:#efe6d2;
  cursor:pointer;
}

.curve-chart{
  display:flex;
  align-items:end;
  gap:8px;
  min-height:150px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
}

.curve-summary{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--muted);
  font-size:.78rem;
}

.curve-summary span{
  display:inline-flex;
  gap:4px;
  min-height:26px;
  align-items:center;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
}

.curve-summary strong{
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:#fff7df;
}

.curve-row{
  position:relative;
  display:grid;
  grid-template-rows:minmax(0, 1fr) auto auto;
  justify-items:center;
  align-items:end;
  gap:6px;
  flex:1;
  min-width:28px;
}

.curve-row.is-sweetspot{
  padding:5px 3px;
  border-radius:12px;
  background:rgba(215,193,139,.08);
  outline:1px solid rgba(215,193,139,.18);
}

.curve-row.is-average strong{
  color:var(--gold-strong);
}

.curve-row strong,
.curve-row span{
  color:var(--muted);
  font-size:.78rem;
}

.curve-track{
  display:flex;
  flex-direction:column-reverse;
  width:100%;
  min-height:96px;
  height:96px;
  overflow:hidden;
  border-radius:10px;
  background:rgba(255,255,255,.05);
}

.curve-average-marker{
  position:absolute;
  left:50%;
  top:-8px;
  transform:translateX(-50%);
  padding:2px 5px;
  border-radius:999px;
  background:#e7c879;
  color:#10130f;
  font-size:.58rem;
  font-style:normal;
  font-weight:900;
  white-space:nowrap;
}

.curve-segment{
  width:100%;
  min-height:3px;
}

.curve-segment.personagem{background:#10130f; box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.curve-segment.milagre{background:#8fe4aa}
.curve-segment.artefato{background:#8e9188}
.curve-segment.pecado{background:#ef6b6b}
.curve-segment.outro{background:#e7c879}

.curve-legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  margin-top:9px;
  color:var(--muted);
  font-size:.76rem;
}

.curve-legend span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.curve-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#b8b0a2;
}

.curve-dot.personagem{background:#10130f; box-shadow:inset 0 0 0 1px rgba(255,255,255,.36)}
.curve-dot.milagre{background:#8fe4aa}
.curve-dot.artefato{background:#8e9188}
.curve-dot.pecado{background:#ef6b6b}
.curve-dot.outro{background:#e7c879}

.virtue-affinity{
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:12px 8px;
  align-items:center;
}

.virtue-mark-compact{
  position:relative;
  display:inline-flex;
  width:44px;
  height:44px;
  min-height:44px;
  align-items:center;
  justify-content:center;
  justify-self:center;
  padding:0;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  overflow:visible;
}

.virtue-mark-compact img{
  width:40px;
  height:40px;
  border-radius:999px;
  object-fit:contain;
}

.pip-badge{
  position:absolute;
  top:-7px;
  right:-6px;
  min-width:19px;
  height:19px;
  padding:0 4px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:var(--gold-strong);
  color:#0e1111;
  font-size:.64rem;
  line-height:17px;
  font-weight:800;
  text-align:center;
}

.pip-badge--positive{background:#75d39d}
.pip-badge--negative{background:#f08a8a; color:#0e1111}
.pip-badge--neutral{background:var(--gold-strong)}

.lore-empty,
.lore-loading{
  grid-column:1 / -1;
  min-height:120px;
  display:grid;
  place-items:center;
  padding:18px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  text-align:center;
}

@media (max-width: 1240px){
  .deckbuilder-layout{
    grid-template-columns:1fr;
  }

  .is-filters-hidden .deckbuilder-layout{
    grid-template-columns:1fr;
  }

  .deckbuilder-layout.is-assistant-hidden{
    grid-template-columns:1fr;
  }

  .deckbuilder-layout.is-catalog-hidden{
    grid-template-columns:1fr;
  }

  .card-catalog{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    max-height:none;
  }
}

@media (max-width: 760px){
  .deckbuilder-shell{
    padding-top:var(--header-h);
  }

  .deckbuilder-toolbar,
  .lore-section-head{
    display:grid;
  }

  .card-catalog{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .identity-grid,
  .deck-analysis-board,
  .deck-group-cards,
  .deck-actions,
  .analysis-grid{
    grid-template-columns:1fr;
  }

  .deck-analysis-board{
    grid-template-areas:
      "analysis"
      "virtues"
      "curve"
      "functions";
  }

  .deck-analysis-board .function-analysis{
    grid-template-columns:1fr;
  }
}
