#public-home .lobby-nav {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 5px;
  min-height: 0;
}
#public-home .lobby-nav button {
  min-height: 0;
}
#arena-store {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 12px 24px;
  overflow: auto;
}
#arena-store[hidden],
#arena-store [hidden] {
  display: none !important;
}
.store-title {
  display: flex;
  align-items: center;
  gap: 28px;
}
#arena-store h2 {
  font-size: clamp(24px, 3.3vw, 50px);
  font-style: italic;
  color: #ffe393;
}
.store-title p {
  border-left: 2px solid #dfc569;
  padding-left: 28px;
  font-size: clamp(13px, 1.8vw, 27px);
  font-style: italic;
}
.store-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid #e9ce7b;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(#003a30, #001f25);
}
.store-tabs button {
  border: 0;
  background: none;
  padding: 10px;
  font-size: clamp(18px, 2vw, 32px);
  font-weight: bold;
}
.store-tabs button[aria-selected='true'] {
  background: linear-gradient(#008747, #003a2b);
  box-shadow:
    inset 0 -3px 0 #ffce41,
    inset 0 2px 4px #b2fca373;
}
.store-tabs button + button {
  border-left: 1px solid #bc9a45;
}
#store-diamonds {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 20px;
  min-height: 0;
}
.store-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
}
.store-card {
  min-width: 0;
  min-height: 0;
  border: 2px solid #efca6b;
  border-radius: 26px;
  box-shadow: inset 0 2px 4px #faffbf50;
  background: radial-gradient(at 40% 10%, #005238, #002e27 55%, #001a20);
}
.store-packs .store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 28px 22px;
}
#arena-store h3 {
  font-size: clamp(18px, 2.4vw, 36px);
  color: #ffe39a;
}
#public-home .store-pack-art {
  width: 100%;
  height: 100%;
  flex: 1 1 100px;
  min-height: 0;
  max-height: 300px;
  filter: drop-shadow(0 5px 4px #0005);
}
.store-amount {
  font-size: clamp(32px, 4vw, 66px);
  line-height: 1.05;
  text-shadow: 0 3px 2px #0009;
}
#arena-store .store-unit {
  font-size: clamp(16px, 2vw, 30px);
  font-style: italic;
  margin: 0 0 12px;
}
#public-home .store-buy {
  width: 100%;
  background: linear-gradient(#fff2a6, #ffcc43 55%, #eda508);
  border: 1px solid #fff0b4;
  border-radius: 28px;
  color: #11150b;
  font-weight: bold;
  font-size: clamp(16px, 2vw, 30px);
  padding: 10px 16px;
  box-shadow: 0 2px 0 #a77110;
}
#public-home .store-buy:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}
.store-callout {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid #c6ad64;
  border-radius: 20px;
  padding: 16px 28px;
  background: linear-gradient(120deg, #003a32, #001c26);
}
.store-crown {
  font-size: clamp(40px, 5vw, 82px);
  line-height: 1;
  color: #ffda6e;
  text-shadow: 0 2px 3px #000;
}
#arena-store .store-callout h3 {
  font-size: clamp(16px, 2vw, 30px);
  margin-bottom: 6px;
}
.store-callout p {
  font-size: clamp(12px, 1.3vw, 20px);
}
#store-explore-signage {
  margin-left: auto;
  white-space: nowrap;
  padding: 12px 22px;
  border: 2px solid #e8cd76;
  border-radius: 18px;
  background: #00251f;
  font-weight: bold;
  font-size: clamp(13px, 1.6vw, 24px);
}
#arena-store footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(10px, 1.1vw, 16px);
  color: #dce2db;
}
#arena-store footer span:last-child {
  white-space: nowrap;
  font-style: italic;
}
.signage-editor {
  padding: 14px 24px;
  overflow: auto;
}
.signage-editor header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.signage-editor header span {
  font-size: 12px;
  color: #efd58b;
  white-space: nowrap;
}
.signage-preview {
  padding: 20px 24px;
  margin: 12px 0;
  background: repeating-linear-gradient(0deg, #184b36 0 13px, #1d553d 13px 26px);
  border-radius: 12px;
  border-bottom: 4px solid #d5bf7d;
}
.signage-board {
  background: var(--sign-bg, #00523b);
  color: var(--sign-fg, #fff0b0);
  text-align: center;
  border: 3px solid #edce75;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 7px 0 #091a18;
}
.signage-board strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 2.3vw, 32px);
  line-height: 1.2;
}
.signage-board small,
.signage-board span {
  font-size: 10px;
  letter-spacing: 0.18em;
}
#signage-form {
  display: grid;
  gap: 6px;
}
#signage-form label {
  font-size: clamp(12px, 1.3vw, 19px);
  font-weight: bold;
}
#signage-form label small {
  float: right;
  font-size: 11px;
  font-weight: normal;
}
#signage-form input:not([type='checkbox']),
#signage-form select {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  background: #001e1d;
  color: #fff;
  border: 1px solid #9bbaa7;
  border-radius: 9px;
  padding: 8px 12px;
  font: inherit;
}
#signage-fields {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  min-width: 0;
}
#signage-fields:disabled {
  opacity: 0.6;
}
.signage-enabled {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
#signage-access,
#signage-status {
  font-size: 12px;
  line-height: 1.4;
}
#signage-retry {
  background: #073e31;
  border: 1px solid #dfc575;
  border-radius: 8px;
  padding: 8px;
}
#signage-status:not(:empty) {
  padding: 10px;
  border: 1px solid #58c59c;
  border-radius: 8px;
  background: #003b2c;
  color: #fff;
}
#signage-status.signage-error:not(:empty) {
  border-color: #ffb990;
  background: #51291e;
}
@media (max-height: 600px) {
  .store-packs .store-card {
    display: grid;
    grid-template-columns: 44% 56%;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    text-align: center;
  }
  .store-packs h3 {
    grid-column: 1 / -1;
  }
  #public-home .store-pack-art {
    grid-column: 1;
    grid-row: 2 / 4;
    min-height: 0;
    max-height: 100px;
  }
  .store-amount {
    grid-column: 2;
    align-self: end;
  }
  .store-unit {
    grid-column: 2;
    align-self: start;
  }
  .store-packs .store-buy {
    grid-column: 1 / -1;
  }
  #arena-store {
    gap: 7px;
    padding: 5px 12px;
  }
  .store-title {
    gap: 18px;
  }
  #arena-store h2 {
    font-size: 28px;
  }
  .store-title p {
    padding-left: 18px;
    font-size: 14px;
  }
  .store-tabs button {
    padding: 5px;
    font-size: 18px;
  }
  #store-diamonds {
    gap: 7px;
  }
  .store-packs .store-card {
    padding: 5px 14px 8px;
    border-radius: 18px;
  }
  #arena-store h3 {
    font-size: 19px;
  }
  .store-amount {
    font-size: 30px;
  }
  #arena-store .store-unit {
    font-size: 14px;
    margin-bottom: 4px;
  }
  #public-home .store-buy {
    font-size: 17px;
    padding: 6px 10px;
  }
  .store-callout {
    padding: 6px 14px;
    gap: 12px;
    border-radius: 12px;
  }
  .store-callout .store-crown {
    font-size: 32px;
  }
  #arena-store .store-callout h3 {
    font-size: 16px;
    margin: 0;
  }
  .store-callout p {
    font-size: 11px;
  }
  #store-explore-signage {
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 10px;
  }
  #arena-store footer {
    font-size: 9px;
  }
  .signage-editor {
    padding: 8px 12px;
  }
  .signage-editor header span {
    font-size: 9px;
  }
  .signage-preview {
    padding: 10px;
    margin: 6px 0;
  }
  .signage-board {
    padding: 5px;
  }
  .signage-board small,
  .signage-board span {
    font-size: 8px;
  }
  #signage-form input:not([type='checkbox']),
  #signage-form select {
    padding: 5px 8px;
    font-size: 12px;
  }
}
@media (max-height: 360px) {
  #arena-store {
    gap: 5px;
  }
  #arena-store h2 {
    font-size: 22px;
  }
  .store-title p {
    font-size: 11px;
  }
  .store-tabs button {
    font-size: 15px;
    padding: 3px;
  }
  .store-packs {
    gap: 7px;
  }
  #arena-store h3 {
    font-size: 15px;
  }
  .store-packs .store-card {
    padding: 4px 8px 6px;
  }
  .store-amount {
    font-size: 26px;
  }
  #arena-store .store-unit {
    font-size: 12px;
  }
  #public-home .store-buy {
    font-size: 14px;
    padding: 4px 6px;
  }
  .store-callout .store-crown {
    display: none;
  }
  #arena-store .store-callout h3 {
    font-size: 12px;
  }
  .store-callout p {
    font-size: 9px;
  }
  #arena-store footer {
    font-size: 8px;
  }
  #arena-store footer span:last-child {
    display: none;
  }
  #public-home .lobby-nav {
    padding: 3px;
    gap: 2px;
  }
  #public-home .lobby-nav button {
    padding: 3px;
    font-size: 10px;
  }
  #public-home .lobby-nav svg {
    height: 22px !important;
    width: 22px !important;
  }
}
@media (orientation: portrait) {
  #arena-store {
    grid-template-rows: auto auto auto auto;
  }
  .store-packs {
    grid-template-columns: 1fr;
  }
  #public-home .store-pack-art {
    height: 130px;
    flex: none;
  }
}

#store-signage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(5, max-content);
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
}
.signage-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.signage-product {
  padding: 12px 16px;
  text-align: center;
  display: grid;
  gap: 4px;
}
#arena-store .signage-product h3 {
  font-size: clamp(17px, 1.8vw, 28px);
}
.signage-product p {
  font-size: clamp(10px, 1vw, 15px);
}
.signage-product > strong {
  font-size: clamp(24px, 2.6vw, 38px);
  color: #fff0c7;
}
#public-home .signage-product .store-buy {
  font-size: clamp(11px, 1.1vw, 17px);
  padding: 7px;
}
.signage-slot-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
#arena-store .signage-slot-heading h3 {
  font-size: clamp(15px, 1.6vw, 24px);
}
.signage-slot-heading p {
  font-size: clamp(10px, 1vw, 15px);
}
.signage-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.signage-slots article {
  border: 1px solid #b5a061;
  border-radius: 12px;
  background: #002c2a;
  padding: 10px 14px;
  min-width: 0;
}
.signage-slots article.available {
  border-color: #58c59c;
}
.signage-slots strong {
  color: #ffe6a3;
  font-size: clamp(12px, 1.2vw, 18px);
}
.signage-slots p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(11px, 1.1vw, 16px);
  padding: 4px 0;
}
.signage-slots small {
  color: #b7d3c5;
  font-size: clamp(10px, 0.9vw, 13px);
}
.signage-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  padding: 16px 22px;
}
.signage-workspace .signage-preview {
  align-self: center;
  margin: 0;
}
.signage-preview > p {
  text-align: center;
  padding-top: 18px;
  font-size: 12px;
  color: #e4f1e8;
}
.signage-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.premium-signage > h3 {
  color: #ffe59b;
  margin-bottom: 6px;
}
.premium-signage > p {
  margin-bottom: 10px;
  font-size: 13px;
}
.premium-signage .store-card {
  border-color: #fff0ba;
  background: linear-gradient(135deg, #483313, #102f2b);
}
.signage-form-grid > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
@media (max-height: 600px) {
  #store-signage {
    grid-template-rows: repeat(5, max-content);
    gap: 8px;
  }
  .signage-product {
    padding: 7px 10px;
    border-radius: 16px;
  }
  .signage-slot-heading {
    align-items: start;
  }
  .signage-workspace {
    gap: 12px;
    padding: 10px 12px;
  }
  .signage-slots article {
    padding: 6px 8px;
  }
}
@media (max-width: 700px) {
  .signage-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .signage-slot-heading {
    flex-direction: column;
    gap: 2px;
  }
  .signage-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .signage-workspace .signage-preview {
    padding: 8px;
  }
  .signage-slots {
    gap: 6px;
  }
}

/* Rental designs: previews remain available without a purchased item. */
.signage-preview label {
  display: block;
  color: #ffe3a0;
  font-size: 12px;
  margin: 5px 0;
}
#signage-style {
  width: 100%;
  background: #062d3c;
  color: #fff0c2;
  border: 1px solid #b8a05b;
  border-radius: 6px;
  padding: 5px;
}
.signage-board[data-style='led'] {
  border-style: dotted;
  border-width: 5px;
  animation: signage-led 1.6s linear infinite;
}
.signage-board[data-style='blink'] strong {
  animation: signage-blink 1.6s ease-in-out infinite;
}
.signage-board[data-style='neon'] strong {
  animation: signage-neon 1.6s ease-in-out infinite;
}
@keyframes signage-led {
  0%,
  100% {
    border-color: #fff3c0;
    box-shadow: 0 0 12px #ffe58a88;
  }
  50% {
    border-color: #d7a632;
    box-shadow: 0 0 3px #ffe58a44;
  }
}
@keyframes signage-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
@keyframes signage-neon {
  0%,
  100% {
    text-shadow: 0 0 4px var(--sign-fg);
  }
  50% {
    text-shadow:
      0 0 12px var(--sign-fg),
      0 0 24px var(--sign-fg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .signage-board[data-style],
  .signage-board[data-style] strong {
    animation: none;
  }
  .signage-board[data-style='neon'] strong {
    text-shadow: 0 0 6px var(--sign-fg);
  }
}
