:root {
  --bg: #030a11;
  --panel: rgba(5, 20, 31, .9);
  --panel-strong: rgba(8, 31, 46, .96);
  --card: rgba(4, 16, 25, .94);
  --line: #1b6f8a;
  --line-soft: rgba(84, 200, 255, .34);
  --text: #edfaff;
  --muted: #8facbb;
  --cyan: #28d8ff;
  --cyan-2: #5ee9ff;
  --red: #ff564d;
  --red-soft: rgba(255, 86, 77, .17);
  --green: #63e66d;
  --green-soft: rgba(99, 230, 109, .16);
  --yellow: #ffd166;
  --steel: #748997;
  --blackhat: #ff564d;
  --blueshield: #3f8cff;
  --radius: 7px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(16, 85, 118, .28), transparent 34rem),
    radial-gradient(circle at 80% 72%, rgba(28, 84, 104, .18), transparent 26rem),
    linear-gradient(rgba(3, 10, 17, .9), rgba(3, 10, 17, .96)),
    url("../images/background.jpg") center / cover fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(40, 216, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 216, 255, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
}

button,
input,
select {
  font: inherit;
  min-height: 38px;
  border: 1px solid var(--line-soft);
  color: var(--text);
  background: rgba(2, 13, 21, .92);
  border-radius: 4px;
  padding: 0 10px;
}

button {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(40, 216, 255, .22), rgba(4, 25, 38, .92));
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 800;
}

button:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(40, 216, 255, .22);
}

input[type="range"] {
  min-height: 20px;
  padding: 0;
  accent-color: var(--cyan);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-transform: uppercase;
}

h1 {
  color: var(--cyan-2);
  font-size: clamp(1.55rem, 2.4vw, 2.55rem);
  line-height: .95;
  text-shadow: 0 0 18px rgba(40, 216, 255, .38);
}

h2 {
  font-size: clamp(1.25rem, 1.7vw, 1.85rem);
  line-height: 1;
}

h2 span {
  color: var(--text);
}

h3 {
  font-size: .95rem;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 10px 6px 18px;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.game-main {
  min-width: 0;
}

.game-sidebar {
  position: sticky;
  top: 108px;
  align-self: start;
}

.header,
.panel,
.access-legend {
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(40, 216, 255, .1), transparent 14px) top left / 80px 80px no-repeat,
    linear-gradient(315deg, rgba(40, 216, 255, .09), transparent 18px) bottom right / 100px 100px no-repeat,
    rgba(3, 14, 23, .9);
  box-shadow:
    inset 0 0 0 1px rgba(40, 216, 255, .12),
    0 0 28px rgba(40, 216, 255, .08);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(150px, 1.2fr) minmax(160px, .8fr) repeat(2, minmax(124px, .6fr)) minmax(160px, .7fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  background:
    linear-gradient(90deg, rgba(40, 216, 255, .13), transparent 28%),
    rgba(3, 14, 23, .96);
}

.logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(40, 216, 255, .45));
}

.logo-link {
  display: inline-flex;
  border-radius: 6px;
}

.logo-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.header .muted {
  color: var(--cyan-2);
  font-size: .8rem;
}

.header .muted strong {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--line-soft);
  color: var(--text);
  background: rgba(40, 216, 255, .08);
}

.slider-field {
  position: relative;
  padding-left: 14px;
  border-left: 1px solid rgba(40, 216, 255, .18);
}

.slider-field::after {
  content: "2   3   4   5   6";
  color: var(--text);
  word-spacing: 16px;
  font-size: .82rem;
}

.slider-field strong,
.gauge-field strong {
  color: var(--text);
}

.hands-value {
  display: none;
}

.gauge-field {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--text);
  font-size: .82rem;
  text-transform: uppercase;
}

.dial-gauge {
  position: relative;
  width: 112px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 0;
  border-radius: 112px 112px 0 0;
  background:
    repeating-conic-gradient(from 270deg at 50% 100%, rgba(255, 255, 255, .22) 0 6deg, transparent 6deg 12deg),
    conic-gradient(from 270deg at 50% 100%,
      var(--cyan) 0deg 44deg,
      var(--yellow) 44deg 115deg,
      var(--red) 115deg 180deg,
      transparent 180deg 360deg);
}

.dial-gauge::after {
  content: "";
  position: absolute;
  left: 17%;
  right: 17%;
  bottom: 0;
  height: 68%;
  background: #06111a;
  border-radius: 90px 90px 0 0;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .7);
}

.dial-needle {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 82%;
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(40, 216, 255, .9);
  transform: translateX(-50%) rotate(var(--needle));
  transform-origin: bottom center;
}

.dial-center {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -7px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border: 2px solid var(--cyan);
  background: #06111a;
  border-radius: 50%;
}

.actions {
  display: grid;
  gap: 9px;
}

.actions button {
  min-width: 150px;
}

.actions button:last-child {
  min-height: 50px;
  color: #03131d;
  background: linear-gradient(180deg, #68e8ff, #14a8d7);
  border-color: #74eeff;
}

.panel {
  margin-top: 12px;
  padding: 22px;
}

.vlan-panel {
  width: min(1040px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.vlan-public {
  margin-top: 14px;
}

.vlan-head {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.vlan-head h2 {
  color: var(--cyan-2);
}

.vlan-head .muted {
  max-width: 350px;
  margin-top: 12px;
  color: #bfd7e2;
  line-height: 1.35;
}

.team-bonuses {
  display: grid;
  grid-template-columns: repeat(2, 118px);
  gap: 14px;
}

.team-bonuses label {
  min-height: 96px;
  place-items: center;
  padding: 12px;
  text-align: center;
  background: rgba(0, 0, 0, .26);
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

.team-bonuses label:first-child {
  color: var(--blackhat);
}

.team-bonuses label:nth-child(2) {
  color: var(--green);
}

.bonus-counter {
  appearance: textfield;
  -moz-appearance: textfield;
  width: 3.8ch;
  min-width: 3.8ch;
  max-width: 3.8ch;
  min-height: 32px;
  padding: 0;
  border: 0;
  color: currentColor;
  background: transparent;
  text-align: center;
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  justify-self: center;
}

.bonus-counter.modifier-positive,
.bonus-counter.modifier-negative,
.bonus-counter.modifier-neutral {
  border-color: transparent;
  background: transparent;
}

.bonus-counter.modifier-positive {
  color: var(--green);
}

.bonus-counter.modifier-negative {
  color: var(--red);
}

.bonus-counter.modifier-neutral {
  color: var(--yellow);
}

.bonus-counter::-webkit-outer-spin-button,
.bonus-counter::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.resolve-zone {
  grid-column: 1 / -1;
  min-height: 36px;
  color: var(--cyan-2);
  border-color: rgba(40, 216, 255, .85);
  background: rgba(40, 216, 255, .09);
}

.vlan-layout,
.vlan-layout.compact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(145px, 170px) minmax(390px, 1fr) minmax(145px, 170px);
  grid-template-areas:
    "extLeft public extRight"
    ". inter inter";
  gap: 14px 18px;
  align-items: start;
}

.vlan-layout.compact {
  grid-template-areas:
    "extLeft public extRight"
    ". inter inter";
}

.section {
  position: relative;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(40, 216, 255, .72);
  background:
    linear-gradient(135deg, rgba(40, 216, 255, .1), transparent 28%),
    rgba(2, 12, 19, .82);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.section-title h3 {
  color: #cbeefa;
  font-size: .78rem;
}

.section-title .muted {
  color: var(--muted);
  font-size: .72rem;
}

.ext-left {
  grid-area: extLeft;
  align-self: center;
}

.ext-right {
  grid-area: extRight;
  align-self: center;
}

.inter-zone {
  grid-area: inter;
  /* justify-self: center; */
  width: min(390px, 100%);
}

.public-zone {
  grid-area: public;
  width: min(620px, 100%);
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.public-zone .section-title {
  display: none;
}

.slot-row-labels {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
}

.slot-row-labels span {
  display: block;
  padding: 6px 10px;
  border: 1px solid rgba(40, 216, 255, .35);
  border-radius: 8px;
  background: rgba(2, 12, 19, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

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

.slot {
  min-height: 136px;
  min-width: 0;
}

.slot,
.access-slot,
.drawn-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: space-between;
  overflow: hidden;
  padding: 9px;
  border: 1px solid rgba(94, 233, 255, .8);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(94, 233, 255, .12), transparent 30%),
    radial-gradient(circle at 50% 40%, rgba(40, 216, 255, .14), transparent 42%),
    #06131d;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .05),
    0 0 14px rgba(40, 216, 255, .1);
}

.slot::before,
.access-slot::before,
.drawn-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  opacity: .55;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 13%, rgba(40, 216, 255, .22) 13% 14%, transparent 14% 34%, rgba(40, 216, 255, .18) 34% 35%, transparent 35%),
    linear-gradient(0deg, transparent 0 20%, rgba(40, 216, 255, .2) 20% 21%, transparent 21% 64%, rgba(40, 216, 255, .16) 64% 65%, transparent 65%);
}

.slot::after,
.access-slot::after {
  content: "⌕";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid currentColor;
  color: var(--cyan-2);
  background: rgba(0, 0, 0, .3);
  border-radius: 50%;
  font-size: 1.25rem;
  z-index: 0;
}

.slot.hidden,
.access-slot.hidden {
  color: var(--steel);
  border-color: rgba(164, 184, 196, .65);
  border-style: solid;
}

.slot.hidden button:disabled {
  opacity: .45;
  cursor: not-allowed;
  border-color: rgba(164, 184, 196, .45);
  box-shadow: none;
}

.slot.hidden::after,
.access-slot.hidden::after {
  content: "⌂";
  color: #a9bac5;
}

.slot.fichier {
  border-color: var(--cyan);
}

.slot.vide {
  border-color: rgba(164, 184, 196, .6);
  opacity: .82;
}

.slot.leurre {
  border-color: var(--green);
  box-shadow: 0 0 18px rgba(99, 230, 109, .13);
}

.slot-code,
.card-back,
.access-state {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
}

.card-name {
  position: relative;
  z-index: 2;
  min-height: 32px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.15;
}

.card-content,
.access-details,
.access-choice {
  position: relative;
  z-index: 2;
}

.extract-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: .78rem;
}

.extract-row input {
  min-height: auto;
  width: auto;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

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

.inter-grid.one {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.access-slot {
  min-height: 132px;
  font-size: .76rem;
}

.access-slot.compromised {
  color: var(--red);
  border-color: var(--red);
  background:
    linear-gradient(135deg, var(--red-soft), transparent 35%),
    #120908;
}

.access-slot.open {
  color: var(--green);
  border-color: var(--green);
  background:
    linear-gradient(135deg, var(--green-soft), transparent 35%),
    #07150c;
  opacity: 1;
}

.access-slot.compromised::after {
  color: var(--red);
}

.access-slot.open::after {
  color: var(--green);
}

.access-choice,
.deck-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deck-actions button,
.access-choice button {
  min-height: 30px;
  padding: 0 7px;
  font-size: .72rem;
}

.access-card {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.access-card-head,
.drawn-card-title {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
}

.access-card-head span,
.access-card-head em,
.drawn-card-title span,
.drawn-card-title em {
  padding: 4px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--muted);
  font-size: .72rem;
  font-style: normal;
}

.access-card h4 {
  margin: 0;
  line-height: 1.15;
  font-size: .9rem;
}

.access-card p,
.answer-box {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.25;
}

.access-proposals {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--text);
  font-size: .76rem;
}

.access-proposals button {
  min-height: auto;
  padding: 7px;
  text-align: left;
  line-height: 1.25;
}

.access-proposals button.is-correct {
  border-color: var(--green);
  background: rgba(99, 230, 109, .18);
}

.access-proposals button.is-wrong {
  border-color: var(--red);
  background: rgba(255, 86, 77, .18);
}

.access-proposals button.is-selected {
  color: var(--text);
}

.answer-box {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(8, 19, 29, .8);
}

.answer-box strong {
  font-size: .84rem;
  color: var(--text);
}

.answer-box--success {
  border-color: rgba(99, 230, 109, .55);
  background: rgba(99, 230, 109, .14);
}

.answer-box--error {
  border-color: rgba(255, 86, 77, .55);
  background: rgba(255, 86, 77, .14);
}

.access-slot.hidden .access-details {
  display: none;
}

.muted {
  color: var(--muted);
  font-size: .82rem;
  margin-top: 4px;
}

.access-legend {
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px auto 0;
  padding: 8px 18px;
  text-transform: uppercase;
  font-size: .8rem;
}

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

.legend-item::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.legend-hidden {
  color: var(--steel);
}

.legend-compromised {
  color: var(--red);
}

.legend-open {
  color: var(--green);
}

.board-dock {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 0;
}

.board-dock .panel {
  margin-top: 0;
}

.decks-panel--collapsed .decks-box,
.resolution-panel--collapsed .resolution-box {
  display: none;
}

.decks-box,
.resolution-box {
  margin-top: 12px;
}

.decks-grid {
  display: grid;
  gap: 14px;
}

.deck-box {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(2, 12, 19, .72);
  border-radius: var(--radius);
}

.deck-box--question {
  border-color: rgba(40, 216, 255, .65);
}

.deck-box--action {
  border-color: rgba(255, 209, 102, .65);
}

.deck-head {
  display: grid;
  gap: 10px;
}

.drawn-card {
  min-height: 180px;
  place-items: center;
}

.drawn-card-title {
  width: 100%;
}

.card-editor {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.card-editor label {
  min-width: 0;
}

.card-editor input,
.card-editor select,
.card-editor textarea {
  width: 100%;
}

.card-editor textarea {
  min-height: 74px;
  resize: vertical;
  padding: 10px;
}

.card-editor label:nth-child(3),
.card-editor label:nth-child(4) {
  grid-column: 1 / -1;
}

.card-editor label.card-editor-full {
  grid-column: 1 / -1;
}

.resolution-versus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.resolution-side--defense {
  order: 1;
}

.resolution-center {
  order: 2;
}

.resolution-side--attack {
  order: 3;
}

.resolution-side,
.resolution-center {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}

.resolution-side--attack {
  border-color: rgba(255, 86, 77, .65);
  background: linear-gradient(180deg, rgba(255, 86, 77, .18), rgba(255, 86, 77, .04));
}

.resolution-side--attack h3 {
  color: var(--red);
}

.resolution-side--attack.is-winner {
  box-shadow: 0 0 0 2px rgba(255, 86, 77, .52), 0 0 28px rgba(255, 86, 77, .25);
}

.resolution-side--defense {
  border-color: rgba(63, 140, 255, .72);
  background: linear-gradient(180deg, rgba(63, 140, 255, .2), rgba(63, 140, 255, .04));
}

.resolution-side--defense h3 {
  color: #5aa3ff;
}

.resolution-side--defense.is-winner {
  box-shadow: 0 0 0 2px rgba(63, 140, 255, .52), 0 0 28px rgba(63, 140, 255, .25);
}

.resolution-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  text-align: center;
  border-color: var(--cyan);
  background:
    radial-gradient(circle, rgba(40, 216, 255, .18), transparent 60%),
    rgba(2, 12, 19, .92);
}

.duel-label {
  color: var(--cyan-2);
  text-transform: uppercase;
  font-size: 1.15rem;
  font-weight: 900;
}

.dice-result {
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, .24);
  border-radius: var(--radius);
  text-align: center;
}

.dice-result span {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
}

#resolutionWinner {
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 900;
}

#resolutionWinner.winner-attack {
  color: var(--red);
}

#resolutionWinner.winner-defense {
  color: var(--green);
}

.resolution-formula {
  display: grid;
  grid-template-columns: auto minmax(2.4rem, auto) auto auto minmax(2.4rem, auto) auto auto minmax(2.8rem, auto);
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.resolution-formula--reverse {
  grid-template-columns: auto minmax(2.8rem, auto) auto auto minmax(2.4rem, auto) auto auto minmax(2.4rem, auto);
}

.resolution-formula strong,
.resolution-center strong {
  min-width: 2.4rem;
  padding: .45rem .65rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(0, 0, 0, .25);
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.resolution-formula strong.modifier-positive {
  color: var(--green);
  border-color: rgba(99, 230, 109, .85);
  background: rgba(99, 230, 109, .14);
}

.resolution-formula strong.modifier-negative {
  color: var(--red);
  border-color: rgba(255, 86, 77, .85);
  background: rgba(255, 86, 77, .14);
}

.resolution-formula strong.modifier-neutral {
  color: var(--yellow);
  border-color: rgba(255, 209, 102, .7);
  background: rgba(255, 209, 102, .12);
}

.formula-part {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
}

.formula-operator {
  color: var(--cyan-2);
  font-weight: 900;
}

@media (max-width: 1120px) {
  .header {
    grid-template-columns: auto 1fr 1fr 1fr;
  }

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

  .vlan-panel {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .header,
  .vlan-head,
  .game-layout,
  .board-dock,
  .resolution-versus {
    grid-template-columns: 1fr;
  }

  .game-sidebar {
    position: static;
    top: auto;
  }

  .vlan-layout,
  .vlan-layout.compact {
    grid-template-columns: 1fr;
    grid-template-areas:
      "extLeft"
      "public"
      "extRight"
      "inter";
  }

  .vlan-layout::before,
  .vlan-layout::after {
    display: none;
  }

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

  .slots,
  .decks-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  body {
    background: #030a11;
  }

  .header {
    position: static;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .vlan-panel {
    width: 100%;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .game-layout {
    display: block;
  }

  .game-sidebar {
    position: static;
  }

  .vlan-layout,
  .vlan-layout.compact {
    grid-template-columns: 1fr;
    grid-template-areas:
      "public"
      "extLeft"
      "extRight"
      "inter";
  }

  .vlan-layout::before,
  .vlan-layout::after {
    display: none;
  }

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

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

  .access-slot,
  .slot {
    min-height: 120px;
  }
}

@media (max-width: 640px) {
  .page {
    padding-inline: 8px;
  }

  .panel,
  .header {
    padding: 14px;
  }

  .logo {
    width: 58px;
    height: 58px;
  }

  .slots,
  .decks-grid,
  .team-bonuses,
  .card-editor,
  .actions,
  .resolution-formula,
  .resolution-formula--reverse {
    grid-template-columns: 1fr;
  }

  .slot {
    min-height: 130px;
  }

  .drawn-card-title,
  .access-card-head {
    grid-template-columns: 1fr;
  }
}
