/* PrintPlay Studio — Components: Data Table, Designer, Wizard, Toast, Rules */

/* ── DATA panel ── */
.data-wrap {
  flex: 1;
  overflow: auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

/* Spinner for loading buttons */
.spinner {
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn.loading .spinner {
  display: inline-block;
}

.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.data-toolbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap
}

.ai-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  background: linear-gradient(135deg, #1a1612, #2a2018);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  transition: all .18s
}

.ai-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 22, 18, .3)
}

.data-table-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column
}

.data-table-scroll {
  overflow: auto;
  flex: 1
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem
}

.data-table th {
  background: var(--surface2);
  padding: .55rem .75rem;
  text-align: left;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1
}

.data-table th:first-child {
  width: 36px;
  text-align: center;
  color: var(--text-light)
}

.data-table td {
  padding: 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle
}

.data-table tr:last-child td {
  border-bottom: none
}

.data-table tr:hover td {
  background: var(--surface2)
}

.data-table tr.sel td {
  background: var(--accent-bg)
}

.data-table td:first-child {
  text-align: center;
  font-size: .65rem;
  color: var(--text-light);
  font-weight: 700;
  padding: .5rem;
  width: 36px
}

.cell-input {
  width: 100%;
  padding: .5rem .75rem;
  border: none;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: .82rem;
  color: var(--text);
  font-weight: 600;
  outline: none;
  min-width: 80px
}

.cell-input:focus {
  background: rgba(224, 90, 43, .04)
}

.cell-input::placeholder {
  color: var(--text-light);
  font-weight: 400
}

.add-row-btn {
  width: 100%;
  padding: .6rem;
  border: none;
  border-top: 1.5px dashed var(--border);
  background: var(--surface2);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-light);
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem
}

.add-row-btn:hover {
  color: var(--accent);
  background: var(--accent-bg)
}

.del-row-btn, .dup-row-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--primary);
  opacity: 0.8;
  font-size: 1rem;
  transition: all .15s;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.del-row-btn:hover {
  color: #e74c3c;
  opacity: 1;
  transform: scale(1.1);
}

.dup-row-btn:hover {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.1);
}

.type-badge {
  font-size: .55rem;
  background: var(--surface3);
  color: var(--text-light);
  padding: .1rem .35rem;
  border-radius: 3px;
  margin-left: .4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px
}

/* ── DESIGN panel (card designer) ── */
.design-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* designer toolbar */
.d-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: .75rem;
}

.d-toolbar-l,
.d-toolbar-r {
  flex: 1
}

.d-toolbar-r {
  display: flex;
  justify-content: flex-end
}

.d-toolbar-c {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0
}

.mode-toggle {
  display: inline-flex;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px
}

.view-btn {
  padding: .25rem .45rem;
  border: none;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all .15s;
  white-space: nowrap
}

.view-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm)
}

.d-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: .6rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s
}

.d-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.d-counter {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 44px;
  text-align: center
}

/* stage */
.designer-stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem;
  background: var(--bg);
  position: relative;
  overflow: auto;
  min-height: 0;
}

.designer-stage>.canvas-container {
  margin: auto;
}

.designer-canvas {
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .14), 0 2px 8px rgba(0, 0, 0, .08);
  cursor: default
}

.zone-overlay {
  position: absolute;
  pointer-events: none
}

.zone-hit {
  position: absolute;
  cursor: pointer;
  pointer-events: all;
  border-radius: 2px;
  transition: background .12s
}

.zone-hit:hover {
  background: rgba(224, 90, 43, .08);
  outline: 2px solid rgba(224, 90, 43, .3);
  outline-offset: -1px
}

/* zone inspector */
.zone-inspector {
  background: transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .5rem
}

.inspector-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-muted)
}

.inspector-hd strong {
  color: var(--text)
}

.inspector-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap
}

.inspector-lbl {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-light);
  min-width: 52px
}

/* ── ASSETS panel ── */
.assets-wrap {
  flex: 1;
  overflow: auto;
  padding: 1.5rem 2rem
}

.assets-upload-zone {
  border: 2.5px dashed var(--border-med);
  border-radius: var(--radius-md);
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: var(--surface)
}

.assets-upload-zone:hover {
  border-color: var(--accent);
  background: var(--accent-bg)
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .85rem;
  margin-top: 1.25rem
}

.asset-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .15s
}

.asset-card:hover {
  border-color: var(--border-med);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px)
}

.asset-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface2)
}

.asset-info {
  padding: .4rem .6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border)
}

.asset-name {
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1
}

/* ── RIGHT PANEL — always visible, shows card preview ── */
.right-panel {
  grid-column: 3;
  grid-row: 2;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.right-hd {
  padding: .75rem .9rem .6rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: .4rem
}

.right-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem .9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem
}

.prev-toggle {
  display: flex;
  background: var(--surface2);
  border-radius: 6px;
  padding: 2px;
  border: 1px solid var(--border)
}

.prev-toggle-btn {
  padding: 3px 10px;
  border: none;
  cursor: pointer;
  background: transparent;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  transition: all .15s;
  text-transform: uppercase;
  letter-spacing: .5px
}

.prev-toggle-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm)
}

.card-nav {
  display: flex;
  align-items: center;
  gap: .4rem
}

.card-nav-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: .6rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s
}

.card-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.card-nav-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 44px;
  text-align: center
}

.preview-stats {
  border-top: 1px solid var(--border);
  padding: .65rem .9rem;
  flex-shrink: 0
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  margin-bottom: .22rem
}

.stat-label {
  color: var(--text-muted);
  font-weight: 600
}

.stat-val {
  color: var(--text);
  font-weight: 800
}

/* ── Design control panel (within right panel when in design mode) ── */
.design-panel {
  overflow-y: auto;
  flex: 1;
  padding: .85rem .9rem
}

.design-section {
  margin-bottom: 1.1rem
}

.design-section-title {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: .55rem;
  display: flex;
  align-items: center;
  gap: .4rem
}

.design-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border)
}

.color-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .35rem
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0
}

.color-swatch input[type=color] {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: none;
  cursor: pointer;
  opacity: 0
}

.color-preset {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0
}

.color-preset:hover {
  border-color: var(--accent);
  transform: scale(1.12)
}

.tpl-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .65rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
  background: var(--surface);
  margin-bottom: .3rem
}

.tpl-row:hover {
  border-color: var(--accent);
  background: var(--accent-bg)
}

/* ── Empty state ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem;
  gap: .65rem;
  color: var(--text-light);
  flex: 1
}

.empty-icon {
  font-size: 2rem
}

.empty-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-muted)
}

.empty-sub {
  font-size: .75rem;
  line-height: 1.6;
  max-width: 200px
}

/* ── RULES ── */
.rules-wrap {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden
}

.rules-toolbar {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2)
}

.rules-fmt-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  transition: all .15s
}

.rules-fmt-btn:hover {
  background: var(--surface3);
  color: var(--text)
}

.rules-textarea {
  width: 100%;
  min-height: 360px;
  padding: .9rem 1rem;
  border: none;
  resize: vertical;
  font-family: 'Nunito', sans-serif;
  font-size: .85rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--surface);
  outline: none
}

.rules-wc {
  padding: .3rem .75rem;
  border-top: 1px solid var(--border);
  font-size: .62rem;
  color: var(--text-light);
  font-weight: 600;
  text-align: right;
  background: var(--surface2)
}

.rules-preview-page {
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 1rem .85rem;
  width: 100%;
  aspect-ratio: 210/297;
  overflow: hidden
}

.rules-preview-title {
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .4rem;
  color: var(--accent)
}

/* ── Wizard ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(26, 22, 18, .55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: overlayIn .18s ease
}

.overlay.hidden {
  display: none
}

@keyframes overlayIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.wizard-modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: 700px;
  max-width: 96vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: wizardIn .22s cubic-bezier(.34, 1.4, .64, 1)
}

@keyframes wizardIn {
  from {
    opacity: 0;
    transform: scale(.93) translateY(16px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.wizard-hd {
  padding: 1.3rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0
}

.wizard-hd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem
}

.wizard-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text)
}

.wizard-subtitle {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .12rem;
  line-height: 1.5
}

.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0
}

.step-dot {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-light);
  transition: color .2s
}

.step-dot.active {
  color: var(--accent)
}

.step-dot.done {
  color: #2d8a5e
}

.step-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-med);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  font-weight: 800;
  transition: all .2s;
  flex-shrink: 0
}

.step-dot.active .step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(224, 90, 43, .35)
}

.step-dot.done .step-circle {
  border-color: #2d8a5e;
  background: #2d8a5e;
  color: #fff
}

.step-line {
  width: 28px;
  height: 2px;
  background: var(--border);
  margin: 0 .25rem;
  border-radius: 1px;
  transition: background .2s
}

.step-line.done {
  background: #2d8a5e
}

.wizard-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.3rem 1.5rem
}

.wizard-footer {
  padding: .9rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--surface2)
}

.step-content {
  display: none
}

.step-content.active {
  display: block;
  animation: fadeIn .18s ease
}

.game-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-bottom: 1.2rem
}

.game-type-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all .18s;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  position: relative;
  overflow: hidden
}

.game-type-card:hover {
  border-color: var(--border-med);
  box-shadow: var(--shadow);
  transform: translateY(-2px)
}

.game-type-card.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
  box-shadow: 0 0 0 3px var(--accent-bg2)
}

.game-type-visual {
  height: 70px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center
}

.game-type-name {
  font-size: .88rem;
  font-weight: 800;
  color: var(--text)
}

.game-type-desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.5
}

.gtc-check {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .6rem;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 800
}

.game-type-card.selected .gtc-check {
  display: flex
}

.tpl-section-label {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin: 1rem 0 .6rem;
  display: flex;
  align-items: center;
  gap: .5rem
}

.tpl-section-label::before,
.tpl-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border)
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .55rem
}

.tpl-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all .15s;
  background: var(--surface);
  display: flex;
  flex-direction: column
}

.tpl-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow)
}

.tpl-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-bg2)
}

.tpl-thumb {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2)
}

.tpl-name {
  padding: .28rem .4rem;
  font-size: .63rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border)
}

.tpl-card.selected .tpl-name {
  color: var(--accent)
}

.tpl-picker-modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: 540px;
  max-width: 96vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: wizardIn .22s cubic-bezier(.34, 1.4, .64, 1)
}

.add-col-modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: 400px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: wizardIn .22s cubic-bezier(.34, 1.4, .64, 1);
  padding: 1.5rem
}

/* ── Toast ── */
.toast-wrap {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  pointer-events: none
}

.toast {
  background: var(--text);
  color: #fff;
  padding: .55rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn .2s cubic-bezier(.34, 1.4, .64, 1);
  display: flex;
  align-items: center;
  gap: .4rem;
  pointer-events: all;
  max-width: 250px
}

.toast.success {
  background: #2d8a5e
}

.toast.error {
  background: #c0392b
}

.toast.warning {
  background: #b07a10
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.95)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ── Export Dropdown ── */
.export-dropdown {
  position: relative;
  display: inline-block;
}

.export-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: var(--surface);
  min-width: 165px;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  z-index: 1000;
  overflow: hidden;
  animation: toastIn 0.15s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.export-dropdown:hover .export-dropdown-menu {
  display: flex;
  flex-direction: column;
}

/* Disable hover menu when loading */
.export-dropdown:has(.btn.loading) .export-dropdown-menu {
  display: none !important;
}

.export-dropdown:has(.btn.loading) {
  pointer-events: none;
}

.export-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.6rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.1s;
}

.export-btn:hover {
  background-color: var(--accent-bg);
  color: var(--accent);
}

.export-btn:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

/* Mobile */
.mobile-warn {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1rem
}

@media(max-width:900px) {
  .mobile-warn {
    display: flex
  }
}