/* Muhtar truck loader — overlays the legacy game styles */

body.page-game {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: #f3f0ea !important;
  color: #12151c;
  min-height: 100vh;
  padding-bottom: 0 !important;
}

body.page-game .site-header {
  position: sticky;
  background: rgba(243, 240, 234, 0.94);
  backdrop-filter: blur(16px);
}

body.page-game .global-header,
body.page-game .footer {
  display: none !important;
}

#app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 2rem;
}

.play-intro {
  max-width: 38rem;
  margin: 0.75rem auto 1.25rem;
  text-align: center;
}

.play-intro .eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6a7078;
  margin-bottom: 0.5rem;
}

.play-intro h1 {
  font-family: "Cormorant", Palatino, serif;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.45rem;
}

.play-intro p {
  color: #3a4048;
  font-size: 0.98rem;
  margin-bottom: 0;
}

.play-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 1rem auto 0;
  padding: 0;
  list-style: none;
  max-width: 32rem;
  border-top: 1px solid rgba(18, 21, 28, 0.1);
}

.play-steps li {
  flex: 1;
  padding: 0.55rem 0.4rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a7078;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.play-steps li.is-on {
  color: #1a2d44;
  border-bottom-color: #1a2d44;
}

#app.is-loading {
  padding-top: 0.35rem;
  padding-bottom: 0.5rem;
}

#app.is-loading .play-intro {
  display: none;
}

body.page-game.is-loading-truck .site-footer {
  display: none;
}

.type-title {
  font-family: "Cormorant", Palatino, serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  color: #12151c !important;
  text-align: center;
  margin: 0 0 0.35rem;
}

.type-hint {
  text-align: center;
  color: #6a7078;
  font-size: 0.92rem;
  margin: 0 auto 1rem;
  max-width: 32rem;
}

.move-type-btn {
  height: 14rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  box-shadow: none !important;
  background-size: cover !important;
  background-position: center !important;
}

#move-type-selection,
#game-interface {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

#game-interface {
  flex-direction: column;
  margin-bottom: 0 !important;
}

#game-interface.hidden {
  display: none !important;
}

#move-type-selection h2 {
  font-family: "Cormorant", Palatino, serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  color: #12151c !important;
  margin-bottom: 0.35rem !important;
}

.move-type-buttons {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px !important;
  background: rgba(18, 21, 28, 0.1);
  border: 1px solid rgba(18, 21, 28, 0.1);
  padding: 0 !important;
}

.move-type-btn:hover,
.move-type-btn:active {
  transform: none !important;
}

.card-arrow { display: none !important; }

.move-type-btn .btn-text {
  font-family: "Cormorant", Palatino, serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
}

.game-container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.load-board {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 8.5rem);
}

@media (min-width: 901px) {
  .load-board {
    height: calc(100svh - 8.5rem);
  }
}

.load-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 2.1rem;
  margin-bottom: 0.75rem;
}

.load-hint {
  margin: 0;
  font-size: 0.95rem;
  color: #1a2d44;
  font-weight: 600;
}

#change-type-btn {
  justify-self: end;
}

.items-section,
.truck-section {
  background: #faf8f4;
  border: 1px solid rgba(18, 21, 28, 0.1);
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.items-section-head h3,
.items-section h3,
.truck-section h3 {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a7078;
  margin-bottom: 0.55rem;
}

.room-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.55rem;
  margin-bottom: 0.35rem;
  scrollbar-width: thin;
}

.room-tab {
  flex: 0 0 auto;
  border: 1px solid rgba(18, 21, 28, 0.14);
  background: #fff;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  color: #3a4048;
  cursor: pointer;
  white-space: nowrap;
}

.room-tab.is-on {
  background: #1a2d44;
  border-color: #1a2d44;
  color: #faf8f4;
}

body.page-game .items-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(7.4rem, 1fr));
  gap: 0.45rem !important;
  flex: 1;
  min-height: 12rem;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  align-content: start;
  align-items: start;
  padding: 0.15rem !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

body.page-game .item {
  padding: 0.55rem 0.4rem 0.5rem !important;
  width: 100%;
}

body.page-game .item-icon {
  height: 2.1rem !important;
  margin-bottom: 0.2rem !important;
}

body.page-game .item-icon i {
  height: auto;
  font-size: 1.2rem !important;
  margin-bottom: 0;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #1a2d44 !important;
  color: #1a2d44 !important;
  filter: none !important;
}

body.page-game .item-name {
  font-size: 0.78rem;
  color: #12151c;
  font-weight: 650;
}

body.page-game .item.clicked {
  background: #fff !important;
  color: #12151c !important;
  transform: none !important;
}

body.page-game .item-specs {
  font-size: 0.62rem;
}

body.page-game .click-hint {
  display: none !important;
}

body.page-game .items-section::after {
  content: none !important;
  display: none !important;
}

.load-dock {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: stretch;
  margin-top: 0.85rem;
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: #f3f0ea;
  padding: 0.65rem 0 calc(0.65rem + env(safe-area-inset-bottom));
}

.load-dock .stats-panel {
  margin-top: 0;
}

.load-dock .controls {
  margin-top: 0;
  align-items: stretch;
}

.room-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(18, 21, 28, 0.1);
  border-radius: 0 !important;
  color: #12151c !important;
  font-weight: 600;
}

.room-items-container {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.5rem;
  padding: 0.75rem 0 1rem;
}

.room-header.active + .room-items-container {
  display: grid;
}

.item {
  background: #fff !important;
  border: 1px solid rgba(18, 21, 28, 0.12) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.item:hover {
  border-color: #1a2d44 !important;
  transform: none !important;
}

.item-icon,
.item-icon i {
  color: #1a2d44 !important;
}

.add-btn {
  background: #1a2d44 !important;
  border-radius: 0 !important;
}

.truck-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.truck-container {
  flex: 1;
  min-height: 0;
  display: flex;
}

.truck-type {
  font-family: "Cormorant", Palatino, serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.capacity-bar {
  background: rgba(18, 21, 28, 0.08) !important;
  border-radius: 0 !important;
  height: 1.35rem !important;
}

.capacity-fill {
  background: #1a2d44 !important;
  border-radius: 0 !important;
}

.capacity-text {
  color: #12151c !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.truck-visual {
  background: #1a2d44 !important;
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 0 !important;
  flex: 1;
  padding: 0.75rem !important;
  color: #faf8f4;
}

.truck-visual.drag-over {
  outline: 2px solid #c4a574;
  background: #243a56 !important;
  transform: none !important;
}

.truck-icon {
  display: none !important;
}

.truck-cargo {
  width: 100%;
  min-height: 10rem;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.45rem;
}

.drop-zone-text {
  color: rgba(250, 247, 242, 0.55) !important;
  width: 100%;
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.92rem;
}

.drop-zone-text::before {
  display: none !important;
}

.loaded-item {
  background: rgba(250, 247, 242, 0.1) !important;
  border: 1px solid rgba(250, 247, 242, 0.18) !important;
  color: #faf8f4 !important;
  border-radius: 0 !important;
  padding: 0.45rem 0.55rem !important;
  min-width: 7.5rem;
}

.loaded-item .remove-btn {
  background: transparent !important;
  color: #faf8f4 !important;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(18, 21, 28, 0.1);
  border: 1px solid rgba(18, 21, 28, 0.1);
  margin-top: 0;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.stat-item {
  background: #faf8f4;
  padding: 0.65rem 0.85rem;
  text-align: left !important;
}

.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a7078;
}

.stat-value {
  font-family: "Cormorant", Palatino, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #12151c !important;
}

.controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 0;
  justify-content: flex-end;
}

body.page-game .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0.95rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0 !important;
  background: #1a2d44;
  color: #faf8f4;
  cursor: pointer;
}

body.page-game .btn-secondary,
body.page-game .btn-warning {
  background: transparent !important;
  color: #12151c !important;
  border-color: rgba(18, 21, 28, 0.22) !important;
}

body.page-game .modal {
  background: rgba(14, 23, 36, 0.55) !important;
}

body.page-game .modal-content {
  background: #faf8f4 !important;
  border-radius: 0 !important;
  max-width: 40rem;
  width: min(40rem, calc(100vw - 1.5rem));
  max-height: calc(100svh - 2rem);
  overflow: auto;
  box-shadow: 0 24px 60px rgba(18, 21, 28, 0.28);
}

body.page-game .modal-header {
  border-bottom: 1px solid rgba(18, 21, 28, 0.1);
}

body.page-game .modal-header h2 {
  font-family: "Cormorant", Palatino, serif;
  font-weight: 500;
  font-size: 1.7rem;
}

.share-form {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(18, 21, 28, 0.1);
}

.share-form h3 {
  font-family: "Cormorant", Palatino, serif;
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.share-form .share-lede {
  color: #3a4048;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.share-form label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a7078;
  margin: 0.7rem 0 0.3rem;
}

.share-form input,
.share-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 21, 28, 0.2);
  background: #fff;
  padding: 0.75rem 0.8rem;
  font: inherit;
}

.share-form textarea { min-height: 5rem; resize: vertical; }

.share-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.share-error {
  color: #8a2f2f;
  font-size: 0.85rem;
  margin: 0.6rem 0 0;
}

.share-form .btn {
  width: 100%;
  margin-top: 1.1rem;
}

.share-success {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.share-success h3 {
  font-family: "Cormorant", Palatino, serif;
  font-size: 1.8rem;
  margin: 0.4rem 0 0.6rem;
}

.share-mailhint {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
}

.packing-option {
  display: block;
  border: 1px solid rgba(18, 21, 28, 0.12);
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.5rem;
  background: #fff;
}

.packing-option .option-title {
  display: block;
  font-weight: 600;
}

.packing-option .option-desc,
.packing-option .option-price {
  display: block;
  font-size: 0.85rem;
  color: #6a7078;
}

.cost-disclaimer,
.range-note {
  font-size: 0.85rem;
  color: #6a7078;
}

.loaded-item-card {
  border: 1px solid rgba(18, 21, 28, 0.1);
  background: #fff;
  border-radius: 0 !important;
}

.notification {
  background: #1a2d44 !important;
  color: #faf8f4 !important;
  border-radius: 0 !important;
}

@media (max-width: 900px) {
  body.page-game .site-footer {
    display: none !important;
  }

  .game-container,
  .move-type-buttons,
  .share-form .field-row,
  .load-dock {
    grid-template-columns: 1fr;
  }

  #app {
    padding: 0.45rem 0.8rem 0.75rem;
  }

  body.page-game .header-inner {
    height: 3.35rem;
  }

  .play-intro {
    margin: 0.2rem auto 0.7rem;
  }

  .play-intro .eyebrow {
    margin-bottom: 0.3rem;
  }

  .play-intro h1 {
    font-size: 1.55rem;
    margin-bottom: 0.3rem;
  }

  .play-intro p {
    font-size: 0.86rem;
  }

  .play-steps {
    margin-top: 0.55rem;
    max-width: none;
  }

  .play-steps li {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.2rem 0.35rem;
  }

  .type-title,
  #move-type-selection h2 {
    font-size: 1.15rem !important;
  }

  .type-hint {
    font-size: 0.82rem;
    margin-bottom: 0.65rem;
  }

  .move-type-btn { height: 6.5rem !important; }

  .move-type-btn .btn-text {
    font-size: 1.4rem !important;
  }

  .move-type-btn .card-content {
    padding: 0.85rem 1rem;
  }

  .load-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    min-height: 0;
    margin-bottom: 0.5rem;
    align-items: start;
  }

  .load-hint {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .load-board {
    height: auto;
    min-height: 0;
  }

  .game-container {
    min-height: 0;
  }

  .items-section,
  .truck-section {
    padding: 0.55rem 0.65rem 0.6rem;
  }

  .items-section-head h3,
  .items-section h3,
  .truck-section h3 {
    margin-bottom: 0.35rem;
  }

  .room-tabs {
    padding-bottom: 0.4rem;
    margin-bottom: 0.2rem;
    gap: 0.28rem;
  }

  .room-tab {
    padding: 0.32rem 0.55rem;
    font-size: 0.72rem;
  }

  body.page-game .items-section::after {
    content: none !important;
    display: none !important;
  }

  body.page-game .items-grid {
    min-height: 0 !important;
    max-height: none !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    align-items: stretch;
  }

  body.page-game .item {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left !important;
    min-height: 5.75rem !important;
    height: auto !important;
    padding: 0.7rem 0.7rem 0.6rem !important;
    overflow: hidden !important;
    gap: 0.2rem;
  }

  body.page-game .item-icon {
    height: 1.5rem !important;
    margin-bottom: 0.15rem !important;
    justify-content: flex-start !important;
  }

  body.page-game .item-icon i {
    font-size: 1.15rem !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #1a2d44 !important;
    color: #1a2d44 !important;
    filter: none !important;
  }

  body.page-game .item-name {
    font-size: 0.9rem !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    color: #12151c !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    margin: 0 !important;
  }

  body.page-game .item-specs {
    font-size: 0.7rem !important;
    line-height: 1.3;
    color: #6a7078 !important;
    margin-top: auto;
    width: 100%;
  }

  body.page-game .add-btn {
    display: none !important;
  }

  .truck-info {
    margin-bottom: 0.45rem;
    gap: 0.5rem;
  }

  .truck-type {
    font-size: 1.15rem;
  }

  .capacity-display {
    margin-left: 0 !important;
  }

  .truck-visual {
    min-height: 4.4rem !important;
    max-height: 6.2rem;
    padding: 0.45rem !important;
  }

  .truck-cargo {
    min-height: 0;
    max-height: 5.4rem;
    overflow: auto;
  }

  .drop-zone-text {
    padding: 0.55rem 0.4rem;
    font-size: 0.8rem;
  }

  .loaded-item {
    min-width: 0;
    padding: 0.32rem 0.4rem !important;
  }

  .load-dock {
    margin-top: 0.45rem;
    gap: 0.45rem;
    padding: 0.4rem 0 calc(0.45rem + env(safe-area-inset-bottom));
    position: relative;
  }

  .stat-item {
    padding: 0.4rem 0.5rem;
  }

  .stat-value {
    font-size: 1.05rem;
  }

  .load-dock .controls {
    position: static;
    padding: 0;
    justify-content: stretch;
    gap: 0.45rem;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .load-dock .controls .btn {
    flex: 1;
    min-width: 0 !important;
    padding: 0.75rem 0.6rem;
    font-size: 0.68rem;
  }

  body.page-game .items-section h3,
  body.page-game .truck-section h3 {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: 0.68rem !important;
  }
}

@media (max-width: 700px) {
  body.page-game.is-loading-truck {
    display: flex;
    flex-direction: column;
    height: 100svh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.page-game.is-loading-truck .site-header {
    flex-shrink: 0;
  }

  body.page-game.is-loading-truck #app {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.35rem 0.7rem 0;
    overflow: hidden;
  }

  body.page-game.is-loading-truck #game-interface {
    display: flex !important;
    flex: 1;
    min-height: 0;
    flex-direction: column;
  }

  body.page-game.is-loading-truck .load-board {
    height: auto;
    min-height: 0;
    flex: 1;
    overflow: hidden;
  }

  body.page-game.is-loading-truck .game-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 0.45rem;
  }

  body.page-game.is-loading-truck .items-section {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  body.page-game.is-loading-truck .truck-section {
    flex: 0 0 auto;
  }

  body.page-game.is-loading-truck .truck-section > h3 {
    display: none;
  }

  body.page-game.is-loading-truck .load-dock {
    flex-shrink: 0;
  }

  body.page-game.is-loading-truck #app,
  body.page-game.is-loading-truck .load-board,
  body.page-game.is-loading-truck .game-container,
  body.page-game.is-loading-truck .items-section,
  body.page-game.is-loading-truck .truck-section,
  body.page-game.is-loading-truck .load-dock {
    max-width: 100%;
  }

  .truck-visual {
    min-height: 3.1rem !important;
    max-height: 4.4rem;
  }

  .truck-info {
    margin-bottom: 0.35rem;
  }
}

body.page-game .modal-content.inv-sheet {
  display: flex;
  flex-direction: column;
  max-width: 42rem;
  width: min(42rem, calc(100vw - 1.25rem));
  max-height: min(46rem, calc(100svh - 1rem));
  overflow: hidden;
}

body.page-game .inv-sheet .modal-header {
  flex-shrink: 0;
  padding: 1rem 1.15rem 0.85rem;
  align-items: flex-start;
  gap: 0.75rem;
}

body.page-game .inv-sheet .modal-header h2 {
  font-size: 1.45rem;
  margin: 0 0 0.65rem;
}

.inv-heading {
  min-width: 0;
  flex: 1;
}

.inv-steps {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.inv-step-tab {
  border: 1px solid rgba(18, 21, 28, 0.14);
  background: #fff;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6a7078;
  cursor: pointer;
}

.inv-step-tab span {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.2rem;
  border-radius: 999px;
  background: rgba(18, 21, 28, 0.08);
  line-height: 1.15rem;
  text-align: center;
  font-size: 0.7rem;
}

.inv-step-tab em {
  font-style: normal;
}

.inv-step-tab.is-active {
  background: #1a2d44;
  border-color: #1a2d44;
  color: #faf8f4;
}

.inv-step-tab.is-active span {
  background: rgba(250, 248, 244, 0.18);
}

body.page-game .inv-sheet .modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.15rem 0.5rem;
}

.inv-panel[hidden] {
  display: none !important;
}

.inv-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.inv-stat {
  background: #fff;
  border: 1px solid rgba(18, 21, 28, 0.1);
  padding: 0.65rem 0.7rem;
}

.inv-stat span {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7078;
  margin-bottom: 0.2rem;
}

.inv-stat strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
}

.inv-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.inv-section-head h3,
.packing-section h3,
.cost-section h3 {
  margin: 0;
  font-size: 1.05rem;
}

.items-actions {
  display: flex;
  gap: 0.7rem;
}

.btn-text {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  color: #1a2d44;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.btn-text.danger { color: #8a2b2b; }

body.page-game .inv-sheet .loaded-items-section,
body.page-game .inv-sheet .packing-section,
body.page-game .inv-sheet .box-requirements,
body.page-game .inv-sheet .cost-section {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

body.page-game .btn[hidden],
body.page-game [hidden] {
  display: none !important;
}

body.page-game .inv-sheet .loaded-items-list {
  max-height: 11.5rem;
  overflow: auto !important;
  margin-bottom: 0.85rem;
}

body.page-game .inv-sheet .packing-section {
  position: relative;
  z-index: 1;
  background: #faf8f4;
}

body.page-game .inv-sheet .remove-item-btn {
  min-width: 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 1px solid rgba(18, 21, 28, 0.14);
  background: #fff;
  color: #12151c;
  font-size: 1.1rem;
  line-height: 1;
}

body.page-game .inv-sheet .loaded-item-card {
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.4rem;
  gap: 0.45rem;
}

body.page-game .inv-sheet .loaded-item-specs {
  font-size: 0.72rem;
}

body.page-game .inv-sheet .packing-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 0.55rem;
}

body.page-game .inv-sheet .packing-option {
  display: block;
  margin: 0;
  padding: 0.7rem 0.7rem 0.75rem;
}

body.page-game .inv-sheet .packing-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.page-game .inv-sheet .packing-option:has(input:checked),
body.page-game .inv-sheet .packing-option.is-selected {
  border-color: #1a2d44;
  background: #1a2d44;
  color: #faf8f4;
}

body.page-game .inv-sheet .packing-option:has(input:checked) .option-desc,
body.page-game .inv-sheet .packing-option:has(input:checked) .option-price,
body.page-game .inv-sheet .packing-option.is-selected .option-desc,
body.page-game .inv-sheet .packing-option.is-selected .option-price {
  color: rgba(250, 248, 244, 0.78);
}

.inv-materials {
  border: 1px solid rgba(18, 21, 28, 0.1);
  background: #fff;
  padding: 0.2rem 0.85rem 0.2rem;
  margin-bottom: 0.4rem;
}

.inv-materials summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.7rem 0;
}

.inv-materials .box-requirements {
  padding-bottom: 0.7rem;
}

body.page-game .inv-sheet .share-form {
  margin: 0;
  padding: 0;
  border: 0;
}

body.page-game .inv-sheet .modal-footer.inv-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.15rem calc(0.85rem + env(safe-area-inset-bottom));
}

body.page-game .inv-sheet .inv-footer #play-again {
  margin-right: auto;
}

body.page-game .inv-sheet .inv-footer .btn {
  min-width: 7.5rem;
}

@media (max-width: 720px) {
  .inv-stats {
    grid-template-columns: 1fr 1fr;
  }

  body.page-game .inv-sheet .packing-options {
    grid-template-columns: 1fr;
  }

  .inv-step-tab em { display: none; }

  body.page-game .inv-sheet .modal-footer.inv-footer {
    flex-wrap: wrap;
  }

  body.page-game .inv-sheet .inv-footer #play-again {
    order: 3;
    width: 100%;
    margin: 0.15rem 0 0;
    text-align: center;
  }
}
