:root {
  color-scheme: dark;
  --bg: #101419;
  --panel: #181e25;
  --line: #2a3038;
  --muted: #8c96a3;
  --text: #e9edf2;
  --accent: #efb47b;
  --green: #80b99f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 1px solid var(--line);
  background: #20262e;
  border-radius: 6px;
  padding: 10px 16px;
  transition:
    background 0.16s,
    border-color 0.16s;
}
button:hover:not(:disabled) {
  background: #303944;
  border-color: #66717e;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #241a14;
  font-weight: 650;
}
button.primary:hover:not(:disabled) {
  background: #ffd0a1;
}
button.ghost {
  background: transparent;
}
button.danger {
  color: #f3a5a5;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: #14191f;
  border-right: 1px solid var(--line);
  padding: 31px 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 2px;
  margin: 0 12px 47px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 3.1px;
  color: var(--muted);
  margin-top: 2px;
}
.brand-mark {
  font-family: Georgia, serif;
  font-size: 39px;
  line-height: 1;
  color: var(--accent);
  position: relative;
  letter-spacing: -7px;
}
.brand-mark span {
  position: absolute;
  left: 8px;
  top: -9px;
  font-size: 39px;
}
.nav-label {
  font-size: 9px;
  font-weight: 650;
  color: #697582;
  letter-spacing: 1.8px;
  padding: 0 14px;
  margin: 0 0 14px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
nav button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  border-color: transparent;
  background: transparent;
  padding: 12px 13px;
  font-size: 12px;
  color: #a1aab5;
  white-space: nowrap;
}
nav button span {
  font-size: 20px;
  width: 22px;
  text-align: center;
}
nav button.active {
  color: var(--accent);
  background: #efb47b12;
  border-color: #efb47b23;
}
nav i {
  font-style: normal;
  font-size: 10px;
  padding: 0 5px;
  background: #333943;
  border-radius: 3px;
  margin-left: auto;
}
.studio-label {
  margin-top: 37px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 18px 10px 0;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #9bafa5;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 8px #80b99f22;
}
.sidebar-bottom p {
  font-size: 10px;
  letter-spacing: 0;
  color: #65717c;
  margin: 9px 0 20px;
}
.sidebar-bottom a {
  color: #9ba4ae;
  font-size: 10px;
  letter-spacing: 0;
}
.workspace {
  margin-left: 248px;
}
.topbar {
  height: 84px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 15px;
}
.breadcrumb {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #697481;
}
.breadcrumb span {
  margin: 0 14px;
}
.breadcrumb b {
  color: #adb5bf;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}
.account {
  display: flex;
  align-items: center;
  gap: 24px;
}
.balance {
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--accent);
}
.balance small {
  font-size: 8px;
  color: #8f98a3;
  letter-spacing: 1px;
  margin-left: 7px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 11px;
}
.avatar {
  border: 1px solid #55544f;
  color: var(--accent);
  background: #272b2e;
  padding: 7px 10px;
  border-radius: 50%;
  font-size: 15px;
}
main {
  max-width: 1600px;
  padding: 32px 38px 48px;
  margin: auto;
  min-height: calc(100vh - 145px);
}
.eyebrow {
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 2px;
  font-weight: 650;
  text-transform: uppercase;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-weight: 550;
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 3px 0 5px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.chip {
  font-size: 9px;
  letter-spacing: 1px;
  border: 1px solid #3c424a;
  border-radius: 4px;
  padding: 6px 10px;
  color: #a3adb8;
  white-space: nowrap;
}
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #4a3d32;
  border-radius: 10px;
  min-height: 300px;
  background:
    radial-gradient(ellipse at 81% 25%, #8b725780, transparent 40%),
    linear-gradient(105deg, #1f2529 10%, #3c362d 65%, #292c2b);
  display: flex;
  align-items: center;
  padding: 38px;
  margin-bottom: 25px;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 55%;
}
.hero h2 {
  font-size: 37px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -1.2px;
  margin: 17px 0 16px;
  max-width: 450px;
}
.hero p {
  font-size: 12px;
  color: #b2b2ad;
  max-width: 340px;
  line-height: 1.8;
}
.hero .actions {
  margin: 23px 0 4px;
  display: flex;
  gap: 10px;
}
.hero .actions button {
  font-size: 11px;
  padding: 12px 18px;
}
.hero-art {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  overflow: hidden;
}
.planet {
  width: 155px;
  height: 155px;
  border-radius: 50%;
  position: absolute;
  right: 20%;
  top: 25px;
  background: radial-gradient(circle at 27% 25%, #d5b790, #7b6b58 65%, #443f38);
  box-shadow: 0 0 50px #b6a17c17;
  opacity: 0.8;
}
.planet:after {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px solid #e7d9bf30;
}
.orbit {
  width: 420px;
  height: 130px;
  border: 1px solid #dac7a838;
  border-radius: 50%;
  position: absolute;
  right: 0;
  top: 66px;
  transform: rotate(-28deg);
}
.dune {
  position: absolute;
  width: 160%;
  height: 250px;
  background: linear-gradient(150deg, #8b6c49, #3d382e 70%);
  border-radius: 55% 70% 0 0;
  transform: rotate(-15deg);
  bottom: -170px;
  left: -20%;
}
.dune.back {
  bottom: -125px;
  left: 10%;
  background: linear-gradient(160deg, #8b7a62, #514a3d);
  transform: rotate(12deg);
}
.beacon {
  position: absolute;
  bottom: 31px;
  right: 33%;
  width: 15px;
  height: 75px;
  background: #252824;
  clip-path: polygon(
    30% 0,
    70% 0,
    80% 15%,
    70% 55%,
    100% 100%,
    0 100%,
    30% 55%,
    20% 15%
  );
}
.hero-art:after {
  content: "SECTEUR 07 / LA FRONTIÈRE";
  position: absolute;
  bottom: 20px;
  right: 22px;
  font-size: 7px;
  letter-spacing: 2px;
  color: #c6b99a80;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 29px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #171d23;
  padding: 17px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat .label {
  color: #929da9;
  font-size: 10px;
}
.stat strong {
  display: block;
  font-size: 23px;
  font-weight: 500;
  margin-top: 5px;
}
.stat .stat-icon {
  font-size: 27px;
  color: #5f6b77;
}
.stat small {
  font-size: 10px;
  color: #75808c;
  margin-left: 7px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 15px;
}
.section-head h2 {
  font-size: 16px;
  font-weight: 550;
  margin: 0;
}
.section-head button {
  font-size: 10px;
  color: var(--accent);
  background: transparent;
  border: 0;
  padding: 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 23px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px;
}
.panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 550;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.room-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.room-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.room-row:first-child {
  padding-top: 0;
}
.room-row h3 {
  font-size: 12px;
  margin: 0 0 3px;
}
.room-row p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.room-row .room-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #3b4249;
  border-radius: 7px;
  color: var(--accent);
  font-size: 19px;
}
.room-row button {
  margin-left: auto;
  font-size: 10px;
}
.empty {
  padding: 22px 0;
  color: var(--muted);
  font-size: 12px;
}
.notice {
  color: #b3a38f;
  background: #efb47b08;
  border: 1px solid #efb47b22;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.7;
  margin: 18px 0;
}
.mini-steps {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  margin-top: 15px;
}
.mini-steps span {
  color: var(--accent);
  font-size: 11px;
}
.mini-steps p {
  font-size: 11px;
  margin: 0;
  color: var(--muted);
}
.toolbar {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.toolbar input {
  flex: 1;
}
input,
select {
  color: var(--text);
  background: #10161c;
  border: 1px solid #343d47;
  border-radius: 5px;
  padding: 11px 12px;
  min-width: 0;
  width: 100%;
}
input:focus,
select:focus {
  border-color: var(--accent);
}
label {
  display: block;
  color: #a7b1bc;
  font-size: 11px;
  margin: 15px 0 6px;
}
label input,
label select {
  display: block;
  margin-top: 6px;
}
.toolbar select {
  width: 170px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 21px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
  width: 100%;
  background: #24292e;
  border: 1px solid #665542;
  border-radius: 9px;
  padding: 7px;
  box-shadow: 0 7px 18px #0003;
  overflow: hidden;
  color: #e3ddd0;
}
.card.rare {
  border-color: #be9657;
}
.card.uncommon {
  border-color: #7e98a2;
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 3px;
  font-size: 9px;
  padding: 5px 4px;
  font-weight: 600;
}
.card-top b {
  font-weight: 600;
  background: #dbb378;
  color: #30291e;
  border-radius: 50%;
  padding: 0 5px;
}
.card-art {
  height: 142px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 27%, #e2c792 0 13px, transparent 14px),
    linear-gradient(150deg, #35494f, #8c7960 65%, #373f3c);
}
.card-art:before {
  content: "";
  position: absolute;
  width: 160%;
  height: 60%;
  bottom: -20%;
  left: -15%;
  border-radius: 50%;
  background: #6f6653;
  transform: rotate(-17deg);
}
.card-art.pilot {
  background: radial-gradient(ellipse at 50% 50%, #739397, #1e3544 70%);
}
.card-art.guard {
  background: repeating-linear-gradient(
    90deg,
    #2f3740 0 20px,
    #444647 21px 24px
  );
}
.figure {
  position: absolute;
  left: 36%;
  bottom: 0;
  width: 35%;
  height: 78%;
  background: linear-gradient(90deg, #242b2c, #515049 65%, #292c2d);
  clip-path: polygon(
    33% 0,
    65% 0,
    75% 15%,
    66% 27%,
    90% 35%,
    100% 100%,
    0 100%,
    13% 35%,
    31% 27%,
    24% 15%
  );
}
.figure:after {
  content: "";
  position: absolute;
  top: 18%;
  left: 24%;
  width: 55%;
  height: 3%;
  background: #b9d0bd;
  box-shadow: 0 0 9px #bde5d5;
}
.guard .figure {
  width: 50%;
  left: 25%;
  height: 87%;
}
.pilot .figure {
  transform: rotate(-8deg);
  height: 75%;
}
.card-type {
  font-size: 7px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 8px 4px;
  color: #d0b48d;
}
.card-rule {
  font-size: 9px;
  min-height: 35px;
  padding: 2px 5px;
  color: #b1b3af;
  line-height: 1.5;
}
.card-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #5a554b;
  padding: 7px 0 3px;
  font-size: 12px;
}
.card-stats small {
  font-size: 7px;
  color: #a4a6a1;
  display: block;
  letter-spacing: 0.5px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  color: #8f9aa7;
  font-size: 10px;
  margin: 8px 3px;
}
.card-wrap {
  min-width: 0;
}
.booster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px;
}
.booster-panel {
  text-align: center;
}
.pack {
  height: 220px;
  width: 150px;
  margin: 8px auto 24px;
  background: linear-gradient(
    145deg,
    #a98a5b,
    #242d31 45%,
    #38454c 78%,
    #be9960
  );
  border: 1px solid #c1a477;
  box-shadow: 9px 15px 30px #0006;
  transform: rotate(-6deg);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pack:before,
.pack:after {
  content: "";
  position: absolute;
  height: 10px;
  left: 0;
  right: 0;
  top: 0;
  background: repeating-linear-gradient(90deg, #82735b 0 2px, #b4a285 2px 4px);
}
.pack:after {
  top: auto;
  bottom: 0;
}
.pack span {
  font-size: 9px;
  letter-spacing: 3px;
}
.pack strong {
  font-size: 23px;
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 24px 10px;
}
.pack small {
  font-size: 8px;
  letter-spacing: 2px;
}
.booster-panel p {
  color: var(--muted);
  font-size: 11px;
}
.booster-panel button {
  width: 100%;
  margin-top: 10px;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ledger td,
.ledger th {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}
.ledger th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.positive {
  color: var(--green);
}
.negative {
  color: #dba18b;
}
.tournament {
  margin-bottom: 18px;
}
.tournament .participants {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.participant {
  background: #252d36;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
}
.tournament .actions {
  display: flex;
  gap: 10px;
}
.tournament h3 {
  font-size: 18px;
}
.tournament .reward {
  color: var(--accent);
  font-size: 12px;
}
.match-link {
  display: inline-block;
  margin: 8px 8px 0 0;
  font-size: 11px;
}
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.phase-track {
  display: flex;
  gap: 6px;
  margin: 20px 0;
  overflow: auto;
}
.phase-track span {
  flex: 1;
  white-space: nowrap;
  border: 1px solid var(--line);
  padding: 9px 10px;
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}
.phase-track span.current {
  background: #efb47b14;
  border-color: #b68a60;
  color: var(--accent);
}
.piles {
  display: flex;
  gap: 16px;
  font-size: 10px;
  flex-wrap: wrap;
}
.piles strong {
  font-size: 15px;
  color: #e9edf2;
  margin-left: 4px;
}
.opponent-bar,
.player-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
}
.opponent-bar h3,
.player-bar h3 {
  font-size: 13px;
  margin: 0;
}
.site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.site {
  border: 1px solid #39434d;
  border-radius: 7px;
  background: #151b22;
  padding: 12px;
  min-width: 0;
}
.site.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #efb47b40;
}
.site-title {
  width: 100%;
  background: linear-gradient(115deg, #4b4436, #292e31);
  border: 0;
  font-size: 10px;
  padding: 13px 5px;
  margin: 3px 0;
}
.site-side {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.unit {
  padding: 5px 7px;
  font-size: 10px;
  text-align: left;
  background: #25332f;
  border-color: #3d594c;
}
.unit.enemy {
  background: #382b2c;
  border-color: #594042;
  cursor: default;
}
.site .battle-btn {
  width: 100%;
  font-size: 10px;
  margin-top: 7px;
}
.board-actions {
  display: flex;
  gap: 10px;
  margin: 17px 0;
  flex-wrap: wrap;
}
.board-actions button {
  font-size: 11px;
}
.hand {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 4px 20px;
}
.hand .card {
  min-width: 134px;
  width: 134px;
  flex-shrink: 0;
}
.hand .card-art {
  height: 88px;
}
.hand .card-top {
  font-size: 8px;
}
.hand .card-rule {
  font-size: 8px;
  min-height: 29px;
}
.hand .card-stats {
  font-size: 10px;
}
.log {
  max-height: 180px;
  overflow-y: auto;
  font-size: 11px;
  color: #93a1ae;
  line-height: 1.9;
}
.log div {
  padding: 2px 0;
  border-bottom: 1px solid #ffffff07;
}
.game-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
}
.help-list {
  font-size: 11px;
  color: var(--muted);
  padding-left: 16px;
  line-height: 1.9;
}
.instructions {
  font-size: 11px;
  color: #d0bb9c;
}
.big-balance {
  font-size: 42px;
  font-weight: 350;
  color: var(--accent);
  margin: 15px 0;
}
.auth-title {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 12px;
}
.auth-note {
  font-size: 12px;
  color: var(--muted);
}
dialog {
  border: 1px solid #48505a;
  border-radius: 12px;
  background: #181e25;
  color: var(--text);
  padding: 34px;
  max-width: min(850px, calc(100vw - 30px));
  width: 460px;
  max-height: 90vh;
}
dialog.wide {
  width: 850px;
}
dialog::backdrop {
  background: #080d13cc;
  backdrop-filter: blur(5px);
}
dialog .close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 24px;
  padding: 1px 8px;
}
.modal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 25px;
}
.modal-cards .card-art {
  height: 120px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  padding: 13px 20px;
  background: #303d38;
  border: 1px solid #668675;
  border-radius: 7px;
  z-index: 30;
  max-width: 80vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-size: 12px;
}
#toast.visible {
  opacity: 1;
}
#toast.error {
  background: #482e2e;
  border-color: #b06a65;
}
footer {
  border-top: 1px solid var(--line);
  padding: 20px 38px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #687580;
}
footer > span {
  letter-spacing: 0;
}
.mobile-only {
  display: none;
}
@media (min-width: 1600px) {
  .hero {
    min-height: 355px;
  }
  .hero h2 {
    font-size: 46px;
  }
  .card-art {
    height: 180px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 210px;
  }
  nav button {
    font-size: 10px;
    gap: 8px;
  }
  .brand {
    font-size: 14px;
  }
  .topbar,
  main {
    padding-left: 25px;
    padding-right: 25px;
  }
  .game-columns {
    grid-template-columns: 1fr;
  }
  .game-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .hero h2 {
    font-size: 31px;
  }
  .balance small {
    display: none;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 75px;
    padding: 24px 7px;
  }
  .brand {
    margin: 0 auto 30px;
  }
  .brand > span:last-child,
  .nav-label,
  .sidebar-bottom,
  nav button i {
    display: none;
  }
  nav button {
    font-size: 0;
    justify-content: center;
    padding: 10px 0;
  }
  nav button span {
    font-size: 24px;
  }
  .workspace {
    margin-left: 75px;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .breadcrumb {
    display: none;
  }
  .account {
    justify-content: space-between;
    width: 100%;
  }
  main {
    padding: 24px 20px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 25px;
  }
  .hero-content {
    width: 70%;
  }
  .hero h2 {
    font-size: 29px;
  }
  .hero-art {
    opacity: 0.65;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  footer > span:not(.online) {
    display: none;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 13px;
  }
  .stat-icon {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading .chip {
    display: none;
  }
}
@media (max-width: 520px) {
  .sidebar {
    width: 57px;
  }
  .workspace {
    margin-left: 57px;
  }
  .brand-mark {
    font-size: 31px;
  }
  .brand-mark span {
    font-size: 31px;
    left: 5px;
  }
  .brand {
    margin-bottom: 25px;
  }
  main {
    padding: 20px 13px;
  }
  .topbar {
    padding: 0 13px;
  }
  .profile {
    font-size: 10px;
    gap: 8px;
  }
  .balance {
    font-size: 13px;
  }
  .hero {
    padding: 22px 18px;
    min-height: 320px;
  }
  .hero-content {
    width: 100%;
  }
  .hero h2 {
    font-size: 31px;
    max-width: 250px;
  }
  .hero p {
    max-width: 225px;
  }
  .hero-art {
    opacity: 0.26;
    width: 80%;
  }
  .hero .actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero .actions button {
    padding: 10px 14px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats .stat:last-child {
    grid-column: 1/-1;
    display: flex;
  }
  .stats .stat:last-child strong {
    font-size: 17px;
  }
  .stats .stat:last-child .stat-icon {
    display: block;
    font-size: 20px;
  }
  .stat strong {
    font-size: 20px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card-art {
    height: 112px;
  }
  .card-top {
    font-size: 8px;
  }
  .panel {
    padding: 17px;
  }
  .site-grid {
    gap: 5px;
  }
  .site {
    padding: 5px;
  }
  .site-title {
    font-size: 8px;
    min-height: 48px;
  }
  .unit {
    font-size: 8px;
    padding: 5px 3px;
  }
  .piles {
    gap: 8px;
    font-size: 8px;
  }
  .piles strong {
    font-size: 12px;
  }
  .game-aside {
    grid-template-columns: 1fr;
  }
  .board-header h1 {
    font-size: 20px;
  }
  .board-header button {
    font-size: 10px;
  }
  .toolbar {
    flex-direction: column;
  }
  .toolbar select {
    width: 100%;
  }
  .ledger {
    font-size: 10px;
  }
  .ledger td,
  .ledger th {
    padding: 10px 4px;
  }
  .ledger td:first-child {
    display: none;
  }
  .ledger th:first-child {
    display: none;
  }
  #toast {
    left: 50%;
  }
  footer {
    padding: 18px 13px;
    font-size: 7px;
  }
  .form-grid {
    gap: 0 10px;
  }
  .room-row {
    gap: 10px;
  }
  .room-row button {
    padding: 8px;
  }
  .modal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.game-columns > section {
  min-width: 0;
}
.phase-track {
  max-width: 100%;
}
.card:disabled {
  opacity: 1;
  cursor: default;
}
.hand .card:disabled {
  opacity: 0.65;
}
.hand > .card-wrap {
  flex: 0 0 134px;
}
@media (max-width: 520px) {
  .opponent-bar,
  .player-bar {
    flex-wrap: wrap;
  }
  .opponent-bar .chip,
  .player-bar .chip {
    font-size: 8px;
    padding: 4px 7px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
}
.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 12px;
}
.form-error {
  font-size: 12px;
  color: #f3a5a5;
  margin: 16px 0 0;
}
.form-error:empty {
  display: none;
}
/* SWCCG catalogue and full rules engine */
.official-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 24px;
}
.official-card {
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  min-width: 0;
  transition: transform 0.18s;
}
.official-card:hover:not(:disabled) {
  background: none;
  border: 0;
  transform: translateY(-4px);
}
.official-card img {
  display: block;
  width: 100%;
  aspect-ratio: 357/497;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 24px #0007;
  background: #1b232c;
}
.official-card span {
  display: block;
  font-size: 12px;
  margin: 10px 0 3px;
  color: #e5eaf0;
}
.official-card small {
  font-size: 10px;
  color: #94a6b7;
}
.catalogue-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}
.official-detail {
  display: grid;
  grid-template-columns: minmax(200px, 357px) 1fr;
  gap: 28px;
  align-items: start;
}
.official-detail img {
  width: 100%;
  border-radius: 9px;
}
.official-detail h2 {
  font-size: 24px;
  line-height: 1.25;
}
.official-detail p {
  font-size: 13px;
}
.card-full-text {
  line-height: 1.85;
  color: #e8e2d7;
}
.committee-launch {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.committee-launch > div {
  flex: 1;
  min-width: 250px;
}
.committee-launch select {
  width: 160px;
}
.committee-launch button {
  font-size: 11px;
}
.committee-preview {
  min-height: 420px;
  padding: 35px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 50%, #28384a, #131b24 75%);
  border: 1px solid #344556;
  border-radius: 12px;
  overflow: hidden;
}
.committee-preview > img {
  width: 190px;
  border-radius: 10px;
  box-shadow: 0 20px 60px #0009;
  transform: rotate(-8deg);
}
.committee-preview > img:last-child {
  transform: rotate(8deg);
}
.committee-preview > div {
  max-width: 330px;
}
.committee-preview h2 {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 400;
}
.committee-preview p {
  line-height: 1.8;
  font-size: 13px;
  color: #acb9c6;
}
.engine-help {
  font-size: 11px;
  color: #a6b6c6;
  margin-bottom: 12px;
}
.engine-help a {
  color: #edb780;
  margin-left: 12px;
}
#committee-frame {
  width: 100%;
  height: max(800px, calc(100vh - 160px));
  border: 1px solid #3c4c5a;
  border-radius: 8px;
  background: #10161e;
}
.workspace:has(#committee-frame) main {
  padding: 18px;
  max-width: none;
}
.workspace:has(#committee-frame) .page-heading {
  margin-bottom: 15px;
}
.hero-cards {
  position: absolute;
  inset: 30px 7% 20px auto;
  z-index: 1;
  display: flex;
  gap: 20px;
  align-items: center;
}
.hero-cards img {
  height: 260px;
  border-radius: 12px;
  box-shadow: 0 15px 30px #0008;
  transform: rotate(-13deg);
}
.hero-cards img:last-child {
  transform: rotate(12deg);
  margin-left: -65px;
}
.hero:has(.hero-cards) .hero-art {
  opacity: 0.2;
}
.hero-content {
  z-index: 2;
}
nav button {
  white-space: normal;
}
.sidebar .brand {
  margin-bottom: 30px;
}
@media (max-width: 1100px) {
  .hero-cards {
    opacity: 0.45;
    right: 3%;
  }
  .hero-cards img {
    height: 230px;
  }
  .committee-preview > img {
    width: 140px;
  }
  .committee-preview {
    gap: 20px;
  }
  .committee-preview h2 {
    font-size: 30px;
  }
}
@media (max-width: 750px) {
  .official-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .official-detail {
    grid-template-columns: 1fr;
  }
  .official-detail > img {
    max-width: 357px;
    margin: auto;
  }
  .committee-preview {
    gap: 20px;
    flex-wrap: wrap;
    padding: 25px;
  }
  .committee-preview > div {
    order: -1;
    width: 100%;
  }
  .committee-preview > img {
    width: 115px;
  }
  .committee-launch {
    padding: 16px;
  }
  .committee-launch button {
    flex: 1;
    min-width: 130px;
  }
  .committee-launch select {
    width: 100%;
  }
  #committee-frame {
    height: 1000px;
  }
  .hero-cards {
    opacity: 0.2;
    right: -50px;
  }
  .hero-cards img {
    height: 250px;
  }
  .official-card span {
    font-size: 11px;
  }
}
/* Playing occupies the viewport; setup controls stay on the launch screen. */
body:has(#committee-frame) .sidebar {
  width: 72px;
  padding: 22px 7px;
}
body:has(#committee-frame) .brand {
  margin: 0 auto 24px;
}
body:has(#committee-frame) .brand > span:last-child,
body:has(#committee-frame) .nav-label,
body:has(#committee-frame) .sidebar-bottom,
body:has(#committee-frame) nav i {
  display: none;
}
body:has(#committee-frame) nav button {
  font-size: 0;
  justify-content: center;
  padding: 10px 0;
}
body:has(#committee-frame) nav button span {
  font-size: 23px;
}
body:has(#committee-frame) .workspace {
  margin-left: 72px;
}
body:has(#committee-frame) .topbar {
  height: 56px;
  padding: 0 20px;
}
body:has(#committee-frame) main {
  padding: 0 10px 10px;
  min-height: 0;
}
body:has(#committee-frame) .page-heading,
body:has(#committee-frame) .committee-launch,
body:has(#committee-frame) footer {
  display: none;
}
body:has(#committee-frame) .engine-help {
  margin: 0;
  padding: 10px 4px;
  font-size: 10px;
}
body:has(#committee-frame) #committee-frame {
  height: calc(100dvh - 100px);
  min-height: 580px;
  border-radius: 6px;
}
@media (max-width: 600px) {
  body:has(#committee-frame) .sidebar {
    display: none;
  }
  body:has(#committee-frame) .workspace {
    margin: 0;
  }
  body:has(#committee-frame) .engine-help {
    font-size: 9px;
  }
  body:has(#committee-frame) #committee-frame {
    height: calc(100dvh - 120px);
    min-height: 520px;
  }
}
.practice-panel{margin-top:20px}.owned-quantity{font-size:11px;color:#a9b7c5;margin:9px 0 4px}.deck-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.deck-toolbar select{width:300px}.deck-builder{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}.deck-inventory{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:22px 16px}.deck-inventory-card{min-width:0}.deck-inventory-card>button:last-child{width:100%;font-size:11px;margin-top:8px}.deck-inventory .official-card span{font-size:10px}.deck-inventory .official-card small{display:none}.deck-list{position:sticky;top:20px;max-height:calc(100vh - 110px);overflow:auto}.deck-count{font-size:25px;margin:18px 0;color:#d8b887}.deck-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #ffffff0d;font-size:11px;align-items:center}.deck-row button{padding:3px 10px}.deck-list>button{margin-top:20px;width:100%}.deck-list h3{margin-top:22px}.tournament-rounds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.round-card{background:#101820;border:1px solid #34414d;padding:17px;border-radius:7px}.round-card h3{font-size:13px;margin:12px 0}.round-card button{font-size:10px}.match-error{color:#dda18b!important;max-width:500px}.legacy-details{margin-top:30px;color:#7c8b98;font-size:11px}.legacy-details button{margin:10px;font-size:10px}.engine-help button{font-size:10px;padding:5px 9px;margin-right:12px}.committee-launch select#owned-play-deck{width:270px}.deck-inventory-card[hidden],[data-owned-name][hidden]{display:none!important}
@media(max-width:1000px){.deck-builder{grid-template-columns:1fr}.deck-list{position:static;max-height:none}.tournament-rounds{grid-template-columns:1fr}.committee-launch select#owned-play-deck{width:100%}.deck-toolbar select{width:100%}}@media(max-width:550px){.deck-inventory{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.deck-toolbar button{font-size:10px;padding:8px}.deck-builder .panel{padding:12px}.deck-inventory-card .official-card img{border-radius:6px}.deck-row{font-size:10px}}
.learning-path{margin-bottom:24px;border-color:#b78b59}.learning-chapters{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.learning-chapters span{padding:8px 12px;background:#111923;border:1px solid #354352;border-radius:6px;color:#8190a1}.learning-chapters .unlocked{color:#efbd86;border-color:#b78b59}.learning-quests{padding-left:25px}.learning-quests li{padding:10px 0}.learning-quests p{margin:6px 0}.learning-quests .done strong{color:#82cdb0}.learning-path details{margin-top:20px}.learning-path .actions{flex-wrap:wrap}
/* Original foil sleeves share the creator's exact artwork and specification. */
.booster-art{--pack-accent:#d9a65f;position:relative;isolation:isolate;width:220px;min-height:326px;margin:15px auto 25px;overflow:hidden;border:1px solid color-mix(in srgb,var(--pack-accent) 80%,white);border-radius:5px 5px 12px 12px;background:linear-gradient(115deg,#101822 10%,#253348 47%,#0a1018 73%);box-shadow:inset 2px 0 6px #fff3,inset -3px 0 8px #0009,0 15px 30px #0006;color:#f5f3ed;transform:rotate(-2deg);transition:transform .2s ease,box-shadow .2s ease}.booster-panel:hover .booster-art{transform:rotate(0deg) translateY(-3px)}.booster-art:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(115deg,transparent 28%,color-mix(in srgb,var(--pack-accent) 25%,transparent),transparent 65%)}.pattern-rays:before{background:repeating-conic-gradient(from 20deg at 50% 35%,transparent 0deg 14deg,color-mix(in srgb,var(--pack-accent) 20%,transparent) 15deg 17deg)}.pattern-grid:before{background-image:linear-gradient(color-mix(in srgb,var(--pack-accent) 18%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--pack-accent) 18%,transparent) 1px,transparent 1px);background-size:24px 24px}.booster-crimp{height:14px;background:repeating-linear-gradient(90deg,#0008 0 2px,#fff1 3px 5px),linear-gradient(var(--pack-accent),#39404b);border-bottom:1px solid #fff3}.booster-crimp.bottom{position:absolute;bottom:0;width:100%;height:17px}.booster-brand{padding:17px 16px;font-size:13px;font-weight:800;letter-spacing:3px;text-align:center}.booster-brand span{display:block;font-size:6px;letter-spacing:2px;margin-top:6px;color:var(--pack-accent)}.booster-orbit{position:absolute;top:65px;left:0;width:100%;fill:none;stroke:var(--pack-accent);stroke-width:1;opacity:.65}.booster-seal{position:relative;margin:30px auto 0;font-size:52px;text-align:center;color:var(--pack-accent);text-shadow:0 0 25px var(--pack-accent)}.booster-caption{position:relative;margin-top:45px;padding:10px 12px 30px;text-align:center;background:linear-gradient(transparent,#0a1018ee 25%)}.booster-caption small{display:block;font-size:8px;letter-spacing:2px;color:var(--pack-accent)}.booster-caption strong{display:block;font-size:24px;line-height:1.15;margin:8px 0;text-wrap:balance}.booster-caption>span{font-size:8px;letter-spacing:1.5px}.pack-workshop-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px}.pack-workshop fieldset{min-width:0;border:1px solid #33404d;border-radius:10px;margin:20px 0;padding:22px}.pack-workshop legend{padding:0 10px;color:#edbd8c;font-size:12px;letter-spacing:1px}.pack-workshop textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:70px;background:#10161e;color:#dfe6ed;border:1px solid #34424e;border-radius:5px;padding:10px}.pack-workshop input[type=color]{padding:4px;width:100%;height:42px}.pack-preview{position:sticky;top:24px;align-self:start;border:1px solid #34424e;border-radius:12px;padding:20px;background:#111923}.pack-preview .booster-art{max-width:100%}.pack-rarity-row{display:flex;align-items:center;gap:12px;border-top:1px solid #2c3947;padding:10px 0}.pack-rarity-row span{flex:1}.pack-rarity-row small{color:#8d9baa}.pack-preview h3{font-variant-numeric:tabular-nums}.pack-preview button{width:100%;margin-top:12px}#pack-form-error{color:#f2ac84;font-size:12px}.pack-pool-picker{max-height:230px;overflow:auto;margin-top:12px;display:flex;flex-direction:column;gap:5px}.pack-pool-picker button{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:10px;min-height:38px;padding:9px}.pack-pool-picker button[aria-pressed=true]{border-color:#edbd8c;background:#55432d}.pack-pool-picker small{white-space:nowrap;color:#9aabbd}@media(max-width:950px){.pack-workshop-grid{grid-template-columns:1fr}.pack-preview{position:static;max-width:400px;justify-self:center;width:100%;box-sizing:border-box}}@media(prefers-reduced-motion:reduce){.booster-art{transition:none;transform:none}.booster-panel:hover .booster-art{transform:none}}
.editor-grid:has(.pack-workshop){display:block}.editor-grid:has(.pack-workshop)>#card-form{max-width:640px;margin-top:32px}.learning-quests{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}.learning-quests li{padding:16px;background:#111923;border:1px solid #2e3c49;border-radius:9px}.learning-quests li.done{border-color:#405e51}.learning-quests strong{font-size:14px}.learning-quests p{font-size:12px;line-height:1.6}.learning-path h2{font-size:28px;text-wrap:balance}@media(max-width:750px){.learning-quests{grid-template-columns:1fr}.pack-workshop fieldset{padding:16px}.pack-pool-picker small{font-size:9px}}
.tutorial-entry{display:flex;align-items:center;gap:24px;margin:20px 0;padding:22px;border:1px solid #d3a56d;border-radius:12px;background:linear-gradient(120deg,#2c2924,#13202c)}.tutorial-entry>div{flex:1}.tutorial-entry strong{font-size:20px}.tutorial-entry p{font-size:12px;margin:8px 0}.tutorial-entry button{flex-shrink:0}@media(max-width:850px){.tutorial-entry{align-items:stretch;flex-direction:column}}
.next-objective{margin:20px 0;border-color:#b78b59;background:linear-gradient(120deg,#212a31,#15202b)}.next-objective h2{font-size:24px}.next-objective p{line-height:1.6;font-size:13px}.quest-reward{color:#edbd8c;margin:15px 0;font-weight:600}.deck-quest-guide{margin-bottom:24px;border-color:#c29967}.quest-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:20px 0}.quest-checks span{padding:9px 12px;background:#10161e;border-radius:6px;font-size:12px}.quest-checks .done{color:#8cd1ad}.suggested-swap{display:grid;grid-template-columns:150px 30px 150px minmax(160px,1fr);gap:16px;align-items:center}.suggested-swap .official-card{width:100%;min-width:0}.suggested-swap>div>button:not(.official-card){width:100%;margin:8px 0}.swap-arrow{text-align:center;font-size:24px;color:#edbd8c}.booster-filters{position:sticky;top:0;z-index:5;background:#10161ef5;padding:12px 0}.booster-panel[hidden]{display:none}.booster-illustration{position:absolute;top:75px;left:8px;right:8px;height:155px;overflow:hidden;mask-image:linear-gradient(transparent,#000 12%,#000 82%,transparent);border-radius:3px;opacity:.95}.booster-illustration img{position:absolute;width:calc(100% + 14px);max-width:none;height:auto;left:-7px;top:-78px}.has-illustration .booster-orbit{opacity:.15}.has-illustration .booster-seal{font-size:25px;margin-top:115px;text-align:right;padding-right:15px;z-index:1}.has-illustration .booster-caption{margin-top:0;z-index:1}.booster-brand{position:relative;z-index:1}.pack-picker-row{display:flex;gap:6px}.pack-picker-row>[data-pack-card]{flex:1;min-width:0}.pack-picker-row>[data-pack-cover]{flex-shrink:0;color:#edbd8c}.booster-illustration[hidden]{display:none}@media(max-width:800px){.suggested-swap{grid-template-columns:1fr 20px 1fr}.suggested-swap>div:last-child{grid-column:1/-1}.quest-checks{grid-template-columns:1fr}}@media(max-width:500px){.suggested-swap{gap:8px}.next-objective h2{font-size:21px}}

.chapter-card-review{display:grid;grid-template-columns:170px minmax(0,1fr);gap:24px;align-items:start}.chapter-card-review .official-card{width:100%}.chapter-card-review p{line-height:1.65}.next-objective ol{line-height:1.9;padding-left:20px}@media(max-width:600px){.chapter-card-review{grid-template-columns:1fr}.chapter-card-review .official-card{max-width:160px}.next-objective select{max-width:100%}}

.language-picker{max-width:135px;padding:7px 9px;border:1px solid #40505e;background:#17212c;color:#f0eae1;border-radius:6px}.academy-course{margin-bottom:24px}.course-chapters{display:grid;gap:8px}.course-chapters>details{border:1px solid #354553;border-radius:8px;padding:12px}.course-chapters summary{cursor:pointer;font-weight:600}.course-lessons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.course-lessons button{text-align:start}.course-rule{font-size:18px;line-height:1.8;margin:24px 0}html[dir=rtl] .sidebar{left:auto;right:0}html[dir=rtl] .workspace{margin-left:0;margin-right:245px}html[dir=rtl] .breadcrumb,html[dir=rtl] .panel{text-align:right}@media(max-width:800px){.course-lessons{grid-template-columns:1fr}.language-picker{max-width:95px}html[dir=rtl] .workspace{margin-right:0}}

/* Illustrated deck strips and an unclipped, full-card preview. */
.deck-row{position:relative;gap:5px;padding:0;margin:6px 0;min-height:42px;border:1px solid #49525d;border-radius:6px;background:#101820;transition:transform 160ms ease-out,border-color 160ms ease-out;direction:ltr}
.deck-row-name{position:relative;display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:42px;overflow:hidden;padding:8px 10px;text-align:left;border:0;background:linear-gradient(90deg,#101820 30%,#10182099);isolation:isolate;cursor:grab;touch-action:pan-y;user-select:none}
.deck-row-name img{position:absolute;z-index:-1;inset:0 0 0 auto;width:72%;height:100%;object-fit:cover;object-position:50% 28%;opacity:.45;pointer-events:none}
.deck-row-name span{flex:1;font-size:12px;font-weight:600;text-shadow:0 1px 3px #000;line-height:1.3;min-width:0}
.deck-row-name b{display:grid;place-items:center;min-width:26px;min-height:26px;border-radius:4px;background:#101820e6;color:#f3cc85;font-size:14px;font-variant-numeric:tabular-nums}
.deck-row>[data-deck-remove]{flex:none;min-width:38px;min-height:42px;border:0;border-left:1px solid #ffffff18;border-radius:0 5px 5px 0;padding:6px}
.deck-row:hover,.deck-row:focus-within{border-color:#d5ad70}
.deck-row-name:focus-visible{outline:2px solid #f3cc85;outline-offset:-3px}
.deck-row-dragging{transition:none;cursor:grabbing;z-index:2;box-shadow:0 6px 20px #0006}
.deck-row-removing{border-color:#ed947b;background:#502b29}
.deck-gesture-hint{font-size:11px;color:#afbdc9;line-height:1.6}
.deck-hover-preview{position:fixed;z-index:10020;pointer-events:none;filter:drop-shadow(0 12px 22px #000b)}
.deck-hover-preview img{display:block;max-width:100%;max-height:calc(100vh - 24px);width:auto;height:auto;border-radius:10px;outline:1px solid #ffffff29}
@media(prefers-reduced-motion:reduce){.deck-row{transition:none}}
.deck-inventory .official-card{cursor:grab;touch-action:pan-y}.deck-inventory-card:has(>button:disabled) .official-card{cursor:default}.deck-drop-active{outline:2px dashed #d6b684;outline-offset:3px}.deck-drop-hover{outline:3px solid #8be0b0;background:#1c2b2b}.deck-add-ghost{position:fixed;width:105px;height:147px;object-fit:contain;z-index:10030;pointer-events:none;filter:drop-shadow(0 7px 16px #000a);opacity:.9}.deck-drop-hint{font-size:11px;line-height:1.5;padding:10px;border:1px dashed #657887;border-radius:6px;color:#bdccd5}
.pve-campaign{margin:24px 0}.pve-campaign>label{max-width:360px}.pve-missions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}.pve-missions article{padding:20px;border:1px solid #405061;border-radius:10px;background:#111a24;display:flex;flex-direction:column;gap:12px}.pve-missions h3,.pve-missions p{margin:0}.pve-missions p{font-size:13px;line-height:1.6;flex:1}.pve-missions strong{font-size:12px;color:#e6bd86}.pve-missions button{min-height:44px}@media(max-width:900px){.pve-missions{grid-template-columns:1fr}}
@media(max-width:600px){
 body:has(#committee-frame){overflow:hidden}
 body:has(#committee-frame) main{padding:4px!important}
 body:has(#committee-frame) .engine-help{display:flex;align-items:center;gap:8px;height:44px;padding:0 4px;box-sizing:border-box;overflow:auto;white-space:nowrap}
 body:has(#committee-frame) #committee-frame{height:calc(100dvh - 52px);min-height:0;border-radius:0}
}
