/* The arena configurator of the Maître d'arène: boxes (.gfw-box), buttons (.gf-btn) and values (.gf-val) of the game's own windows, in the colours of the interface theme. Sections on the left, live roster on the right. */
.nd-arenacfg { color: var(--gf-ink, #282638); --edge: var(--gf-tile-edge, #716c94); --blue: #2c5cc4; --red: #b3262b; }
.cf-points { margin: 0 0 8px; }
.cf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 10px; align-items: start; }
.cf-main { display: flex; flex-direction: column; gap: 8px; max-height: min(74vh, 760px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.cf-col { position: sticky; top: 0; align-self: start; max-height: min(74vh, 760px); overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 900px) { .cf-layout { grid-template-columns: 1fr; } .cf-col { position: static; max-height: none; } }
.cf-me { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.cf-me b { font-size: calc(15px * var(--ui-text)); } .cf-party { color: var(--blue); font-weight: 700; }
.cf-card { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px; }
.cf-card > header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 4px; border-bottom: 1px solid var(--edge); }
.cf-card > header b { font-size: var(--fs-lead); } .cf-card > header span { font-size: var(--fs-body); opacity: 0.75; }
.cf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
@media (max-width: 1180px) { .cf-cols { grid-template-columns: 1fr; } }
.cf-side.ally { border-left: 4px solid #4a78d8; } .cf-side.foe { border-left: 4px solid #d2474d; }
.cf-side.ally > header b { color: var(--blue); } .cf-side.foe > header b { color: var(--red); }
/* fields and controls */
.cf-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cf-field > label { font-size: var(--fs-small); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.cf-hint { margin: 0; font-size: calc(11.5px * var(--ui-text)); opacity: 0.75; }
.cf-row, .cf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
@media (max-width: 1180px) { .cf-row, .cf-grid2 { grid-template-columns: 1fr; } }
.cf-seg, .cf-chips, .cf-sizes, .cf-classes, .cf-slots, .cf-strip, .cf-maps { display: flex; flex-wrap: wrap; gap: 3px; }
.cf-sg, .cf-chip, .cf-size, .cf-btn { padding: 3px 10px; font-size: var(--fs-body); font-weight: 700; cursor: pointer; }
.cf-size { min-width: 46px; text-align: center; } .cf-size.rec:not(.on) { box-shadow: inset 0 -2px 0 #9792b7; }
.cf-switch { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 4px; font-size: var(--fs-body); font-weight: 700; }
.cf-switch i { width: 26px; height: 14px; border-radius: 7px; background: #9a96b3; position: relative; transition: background 0.15s; }
.cf-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.cf-switch.on i { background: #3f9a3a; } .cf-switch.on i::after { left: 14px; }
.cf-slider { display: flex; flex-direction: column; gap: 2px; }
.cf-track { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 10px; } /* the track takes a whole line, the typed value and the label sit under it */
.cf-rangewrap { --thumb: 16px; position: relative; flex: 1 0 100%; min-width: 0; padding: 0 2px 16px; box-sizing: border-box; }
.cf-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: var(--thumb); margin: 0; background: transparent; cursor: pointer; }
.cf-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--edge); }
.cf-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--edge); }
.cf-range::-webkit-slider-thumb { -webkit-appearance: none; width: var(--thumb); height: var(--thumb); margin-top: -5px; border-radius: 50%; background: #7a73a8; border: 2px solid #fff; box-shadow: 0 0 0 1px #4a4570; }
.cf-range::-moz-range-thumb { width: calc(var(--thumb) - 4px); height: calc(var(--thumb) - 4px); border-radius: 50%; background: #7a73a8; border: 2px solid #fff; box-shadow: 0 0 0 1px #4a4570; }
.cf-val { min-width: 84px; text-align: right; font-weight: 800; font-size: calc(12.5px * var(--ui-text)); line-height: var(--thumb, 16px); }
.cf-num { width: 66px; padding: 1px 4px; font-size: var(--fs-body); text-align: right; }
.cf-marks { position: absolute; left: 0; right: 0; top: 18px; height: 12px; }
.cf-mark { position: absolute; transform: translateX(-50%); padding: 0 3px; font-size: calc(10.5px * var(--ui-text)); opacity: 0.7; background: none; border: 0; cursor: pointer; white-space: nowrap; color: inherit; }
.cf-mark:hover { opacity: 1; text-decoration: underline; }
.cf-select, .cf-code, .cf-name { padding: 3px 6px; font-size: var(--fs-body); min-width: 0; }
/* scenarios */
.cf-scen .cf-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
.cf-scn { display: grid; grid-template-columns: 24px 1fr; column-gap: 6px; text-align: left; padding: 5px 8px; font-weight: 400; }
.cf-scn i { grid-row: 1 / 3; font-style: normal; font-size: var(--fs-head); align-self: center; } .cf-scn b { font-size: calc(12.5px * var(--ui-text)); } .cf-scn small { font-size: calc(10.5px * var(--ui-text)); opacity: 0.75; line-height: 1.25; }
.cf-saved { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .cf-saved small { font-weight: 800; opacity: 0.7; }
.cf-pre { display: inline-flex; border: 1px solid var(--edge); border-radius: 3px; overflow: hidden; }
.cf-pre button { padding: 2px 8px; font-size: var(--fs-body); background: var(--gf-tile, #cfcce2); color: inherit; border: 0; cursor: pointer; } .cf-pre .x { border-left: 1px solid var(--edge); color: var(--red); font-weight: 800; }
.cf-saveline { display: flex; gap: 6px; } .cf-saveline .cf-name { flex: 1; }
/* arena types and maps */
.cf-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cf-type { display: flex; flex-direction: column; padding: 0; text-align: left; color: inherit; overflow: hidden; cursor: pointer; border: 2px solid var(--edge); }
.cf-type:hover, .cf-map:hover { border-color: #9792b7; } .cf-type.on, .cf-map.on { border-color: #9792b7; box-shadow: 0 0 0 2px #d6d4e3, 0 0 10px rgba(151, 146, 183, 0.7); }
.cf-cover { height: 74px; background: #2a2833 center / cover no-repeat; }
.cf-tbody { display: flex; flex-direction: column; gap: 1px; padding: 5px 8px 6px; } .cf-tbody b { font-size: var(--fs-strong); } .cf-tbody span { font-size: var(--fs-small); opacity: 0.75; line-height: 1.25; } .cf-tbody small { font-size: calc(10.5px * var(--ui-text)); opacity: 0.6; }
.cf-type.fire .cf-tbody b { color: #b6560a; } .cf-type.sprite .cf-tbody b { color: #2f7a2c; } .cf-type.fae .cf-tbody b { color: #1d8a6a; } .cf-type.demon .cf-tbody b { color: #a3262b; } .cf-type.mixed .cf-tbody b { color: #6a4aa8; }
.cf-map { display: flex; flex-direction: column; gap: 2px; width: 104px; padding: 0; color: inherit; overflow: hidden; cursor: pointer; border: 2px solid var(--edge); }
.cf-map small { padding: 2px 4px 3px; font-size: calc(10.5px * var(--ui-text)); font-weight: 700; text-align: center; }
.cf-thumb { height: 52px; background: #2a2833 center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: var(--fs-display); }
/* classes and teams */
.cf-cls { display: flex; flex-direction: column; align-items: center; width: 62px; padding: 2px; } .cf-cls small { font-size: var(--fs-caption); font-weight: 700; }
.cf-fig { display: block; } .cf-any { display: inline-block; width: 30px; height: 38px; line-height: 38px; text-align: center; font-size: var(--fs-display); font-weight: 800; opacity: 0.6; }
.cf-badge { display: inline-flex; width: 34px; height: 34px; overflow: hidden; align-items: flex-start; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #fff, var(--gf-tile, #cfcce2)); border: 2px solid var(--edge); flex: none; }
.cf-badge .cf-fig { margin-top: -2px; max-width: none; } .cf-badge.any { align-items: center; font-weight: 800; opacity: 0.7; }
.cf-synergy { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: calc(11.5px * var(--ui-text)); opacity: 0.9; } .cf-synergy b { font-size: var(--fs-body); } .cf-synergy b.good { color: #2f7a2c; } .cf-synergy b.mid { color: #b6560a; } .cf-synergy b.bad { color: var(--red); }
.cf-slot { display: flex; align-items: center; gap: 4px; padding: 3px 5px; } .cf-slot.fixed { border-color: #6b8fd6; } .cf-slot small { font-weight: 700; color: var(--blue); }
.cf-share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 4px 0; } .cf-share .cf-code { flex: 1; min-width: 160px; }
/* the preview column */
.cf-preview { display: flex; flex-direction: column; gap: 8px; padding: 8px; transition: opacity 0.15s; }
.cf-preview.stale { opacity: 0.6; } .cf-wait { padding: 30px 8px; text-align: center; opacity: 0.7; }
.cf-pmap { height: 84px; border-radius: 3px; background: #2a2833 center / cover no-repeat; border: 1px solid #121117; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.cf-pmapin { width: 100%; padding: 14px 8px 4px; display: flex; justify-content: space-between; align-items: baseline; background: linear-gradient(transparent, rgba(0, 0, 0, 0.82)); } .cf-pmapin b { font-size: var(--fs-lead); } .cf-pmapin span { font-size: var(--fs-small); opacity: 0.85; }
.cf-odds { position: relative; height: 18px; border-radius: 2px; overflow: hidden; background: #b3262b; border: 1px solid #121117; }
.cf-odds i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#6f9bf0, #2c5cc4); transition: width 0.25s; } .cf-odds span { position: absolute; top: 0; font-size: calc(10.5px * var(--ui-text)); font-weight: 800; line-height: 18px; color: #fff; text-shadow: 0 1px 2px #000; } .cf-odds .l { left: 8px; } .cf-odds .r { right: 8px; }
.cf-diff { margin: -4px 0 0; font-size: calc(10.5px * var(--ui-text)); opacity: 0.75; text-align: center; } .cf-diff b { font-size: var(--fs-body); opacity: 1; }
.cf-roster { display: flex; flex-direction: column; gap: 3px; padding: 6px; } .cf-roster.ally { border-left: 4px solid #4a78d8; } .cf-roster.foe { border-left: 4px solid #d2474d; }
.cf-rhead { display: flex; justify-content: space-between; align-items: baseline; } .cf-rhead b { font-size: var(--fs-strong); } .cf-rhead span { font-size: calc(10.5px * var(--ui-text)); opacity: 0.75; }
.cf-roster ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cf-pslot { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 3px; } .cf-pslot.me { background: rgba(74, 120, 216, 0.16); }
.cf-pslot .cf-badge { width: 28px; height: 28px; }
.cf-pname { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; } .cf-pname b { font-size: var(--fs-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cf-pname small { font-size: var(--fs-caption); opacity: 0.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-gs { min-width: 40px; padding: 1px 6px; text-align: right; font-weight: 800; font-size: var(--fs-body); } .cf-chip2.pw { padding: 0 5px; border-radius: 2px; font-size: var(--fs-caption); font-weight: 800; background: #6b6689; color: #fff; }
.cf-notes { margin: 2px 0 0; font-size: calc(10.5px * var(--ui-text)); opacity: 0.8; } .cf-warn { margin: 0; padding: 4px 8px; font-size: var(--fs-small); border-radius: 3px; background: #f3d6d2; border: 1px solid #c25a4a; color: #7a1f14; } .cf-summary { margin: 0; font-size: calc(10.5px * var(--ui-text)); opacity: 0.65; }
.cf-pacts { display: flex; gap: 6px; }
.cf-go { flex: 1; padding: 8px 12px; font-size: calc(15px * var(--ui-text)); font-weight: 800; cursor: pointer; background: linear-gradient(#bff0b4, #7ed36d); border-color: #2f7a2a; color: #123b10; } .cf-go:hover:not(:disabled) { filter: brightness(1.06); } .cf-go:disabled { opacity: 0.55; cursor: default; }
.gfw:has(.nd-arenacfg) { max-width: calc(100vw - 32px); }
