:root {
  --ink: #1b2430;
  --muted: #687586;
  --line: #d7e0e9;
  --line-strong: #becbd8;
  --blue: #1f5f99;
  --blue-dark: #123d66;
  --blue-light: #317cbf;
  --red: #b33b4f;
  --gold: #d7a43a;
  --green: #247a5a;
  --paper: #f6f8fa;
  --panel: #ffffff;
  --shadow-soft: 0 10px 28px rgba(29, 48, 70, 0.1);
  --shadow-card: 0 16px 34px rgba(23, 43, 64, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(26, 48, 67, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #eef2f1 0%, #fbfbf7 36%, #e7ebe9 100%);
  background-size: 34px 34px, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 12px 0 42px;
}

.site-header {
  position: relative;
  text-align: center;
  padding: 0 0 22px;
}

.site-header::after {
  content: "";
  display: block;
  width: min(760px, 76%);
  height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, rgba(150, 52, 68, 0.38), transparent);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 182px;
  min-height: 46px;
  padding: 3px 30px 5px;
  color: #202833;
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
  border-bottom: 4px solid #202833;
}

.browser-tip {
  margin: 10px 0 5px;
  color: #62707f;
  font-size: 16px;
  line-height: 1.45;
}

.url-line {
  display: flex;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  color: #b33b4f;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
}

.url-line a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 10px;
  border-radius: 5px;
  transition: color 150ms ease, background 150ms ease;
}

.url-line a:hover,
.url-line a:focus-visible {
  color: #8e2d3d;
  background: rgba(179, 59, 79, 0.08);
  outline: 0;
}

.content-wrap {
  padding: 0 10px;
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 28px;
}

.casino-card {
  position: relative;
  min-height: 414px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 54%, rgba(240, 244, 247, 0.94) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.66), var(--shadow-card);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.casino-card::before {
  content: "";
  position: absolute;
  inset: 62px 0 auto;
  height: 1px;
  background: rgba(27, 36, 48, 0.08);
}

.casino-card:hover {
  transform: translateY(-3px);
  border-color: #9eb4c8;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.7), 0 22px 42px rgba(23, 43, 64, 0.2);
}

.card-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  margin: -1px -1px 0;
  padding: 0 34px;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.14;
  text-align: center;
  overflow-wrap: anywhere;
  background: linear-gradient(180deg, #286ca9 0%, #16466f 100%);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.card-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -26px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 26px 26px 0 0;
  border-color: #103456 transparent transparent transparent;
}

.card-body {
  display: flex;
  min-height: 351px;
  padding: 46px 20px 18px;
  flex-direction: column;
  align-items: center;
}

.logo-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 224px;
  height: 88px;
  margin-bottom: 26px;
  padding: 8px;
}

.logo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(28, 43, 58, 0.08));
}

.logo-frame.is-missing {
  border: 1px dashed #b9c8d6;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
}

.logo-frame.is-missing img {
  display: none;
}

.logo-frame.is-missing::before {
  content: attr(data-title);
  padding: 0 12px;
  color: #405b73;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
}

.bonus {
  margin: 0 0 27px;
  color: var(--red);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
}

.button-stack {
  display: grid;
  width: 100%;
  gap: 8px;
  margin-top: auto;
}

.card-button {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 5px;
  background: linear-gradient(180deg, #357dbf 0%, #1f5f99 54%, #16446d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 3px 7px rgba(21, 62, 104, 0.18);
  transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  overflow-wrap: anywhere;
}

.card-button:hover,
.card-button:focus-visible,
.side-button:hover,
.side-button:focus-visible {
  filter: brightness(1.08);
  outline: 0;
}

.card-button:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18);
}

.empty-front {
  grid-column: 1 / -1;
  padding: 54px 18px;
  color: #667586;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed #b8c6d4;
  border-radius: 6px;
}

.side-promo {
  position: fixed;
  z-index: 20;
  top: 50%;
  width: 166px;
  transform: translateY(-50%);
  color: #fff;
  text-align: center;
  border: 1px solid #8f2633;
  border-radius: 0 8px 8px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #5a1d27 0%, #b72b3d 48%, #681d28 100%);
  box-shadow: 0 16px 30px rgba(32, 17, 20, 0.3);
}

.side-promo-left {
  left: 22px;
}

.side-promo-right {
  right: 22px;
  border-radius: 8px 0 0 8px;
}

.side-name {
  display: block;
  padding: 14px 8px 12px;
  color: #fff5df;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
  background: rgba(22, 18, 20, 0.58);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.52);
}

.side-tag {
  display: block;
  padding: 13px 8px;
  color: #fee94a;
  font-size: 22px;
  font-weight: 900;
  background: rgba(125, 20, 32, 0.72);
}

.side-copy {
  display: block;
  padding: 14px 8px;
  color: #ffe9e9;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.side-button {
  position: relative;
  display: flex;
  width: 106px;
  height: 106px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.16;
  background: linear-gradient(180deg, #b63337 0%, #741823 100%);
  border: 2px solid rgba(255, 220, 220, 0.58);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.05), 0 8px 16px rgba(55, 9, 16, 0.28);
  transition: filter 150ms ease, transform 150ms ease;
}

.side-button::before,
.side-button::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #f1d9d9;
}

.side-button::before {
  top: -8px;
  left: -8px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.side-button::after {
  right: -8px;
  bottom: -8px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 10px);
  background: rgba(25, 36, 49, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(23, 31, 43, 0.24);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.admin-body {
  background:
    linear-gradient(90deg, rgba(31, 95, 153, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f4f7fa 0%, #edf2f6 100%);
  background-size: 32px 32px, auto;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 15px 24px;
  color: #fff;
  background: linear-gradient(135deg, #123d66 0%, #1f5f99 64%, #247a5a 100%);
  box-shadow: 0 10px 24px rgba(23, 61, 99, 0.2);
}

.admin-topbar h1 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.2;
}

.admin-topbar span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.admin-topbar .save-state {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  color: #173d63;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  border-radius: 4px;
  background: #d8f2e6;
}

.admin-topbar .save-state.is-dirty {
  color: #7c3a0c;
  background: #ffe0b8;
}

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.admin-layout {
  display: grid;
  grid-template-columns: 372px minmax(0, 1fr);
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  margin: 20px auto 44px;
}

.admin-list-panel,
.admin-editor-panel,
.admin-settings-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.admin-settings-panel {
  grid-column: 1 / -1;
}

.admin-list-panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e4ebf2;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.list-toolbar {
  padding: 12px 14px;
  border-bottom: 1px solid #e4ebf2;
  background: #f7fafc;
}

.list-toolbar input {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #cbd7e3;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(23, 43, 64, 0.04);
}

.filter-bar,
.batch-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.filter-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  color: #173d63;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid #cbd7e3;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.filter-button:hover {
  border-color: #8fb1cf;
  background: #f0f6fb;
}

.filter-button.is-active {
  color: #fff;
  border-color: #1f5f99;
  background: #1f5f99;
}

.batch-bar .ghost-button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 13px;
}

.list-toolbar input:focus,
.form-grid input:focus,
.settings-block input:focus,
.settings-block textarea:focus {
  border-color: #1f5f99;
  outline: 3px solid rgba(31, 95, 153, 0.14);
}

.platform-list {
  display: grid;
  max-height: calc(100vh - 170px);
  overflow: auto;
}

.platform-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  border: 0;
  border-bottom: 1px solid #edf2f6;
  background: #fff;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.platform-row:hover,
.platform-row.is-active {
  background: #edf6fd;
}

.platform-row.is-active {
  box-shadow: inset 4px 0 0 #1f5f99;
}

.platform-row.is-hidden {
  color: #8b96a3;
  background: #fafbfc;
}

.platform-row.is-hidden:not(.is-active) {
  opacity: 0.78;
}

.row-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 42px;
  background: #f7f9fb;
  border: 1px solid #e1e8ef;
  border-radius: 5px;
}

.row-logo.is-missing::before {
  content: attr(data-title);
  padding: 0 6px;
  color: #52677d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.platform-row img {
  width: 62px;
  height: 42px;
  object-fit: contain;
  background: #f7f9fb;
  border: 1px solid #e1e8ef;
  border-radius: 5px;
}

.platform-row img.is-broken {
  opacity: 0.22;
}

.row-logo img {
  width: auto;
  height: auto;
  max-width: 56px;
  max-height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.row-logo.is-missing img {
  display: none;
}

.platform-row strong,
.platform-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-row strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
}

.row-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  border-radius: 4px;
  background: #8b96a3;
}

.platform-row small {
  margin-top: 4px;
  color: #7b8794;
  font-size: 13px;
}

.empty-list {
  padding: 24px 16px;
  color: #7b8794;
  text-align: center;
}

.admin-form {
  padding: 18px;
}

.editor-preview {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 124px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31, 95, 153, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #f9fbfd 0%, #ffffff 100%);
  background-size: 24px 24px, auto;
}

.preview-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 80px;
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  background: #fff;
}

.preview-logo img {
  max-width: 112px;
  max-height: 60px;
  object-fit: contain;
}

.preview-logo.is-missing img {
  display: none;
}

.preview-logo.is-missing::before {
  content: attr(data-title);
  padding: 0 10px;
  color: #496278;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
}

.preview-copy {
  min-width: 0;
}

.preview-copy strong,
.preview-copy span,
.preview-copy small,
.preview-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-copy em {
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 4px 8px;
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  border-radius: 4px;
  background: var(--green);
}

.preview-copy em.is-hidden {
  background: #8b96a3;
}

.preview-copy strong {
  color: #173d63;
  font-size: 24px;
}

.preview-copy span {
  margin-top: 7px;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.preview-copy small {
  margin-top: 7px;
  color: #667586;
  font-size: 14px;
}

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

.form-grid label {
  display: grid;
  gap: 7px;
}

.form-grid span {
  color: #435163;
  font-size: 14px;
  font-weight: 800;
}

.form-grid input,
.settings-block input,
.settings-block textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #cbd7e3;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(23, 43, 64, 0.04);
}

.settings-block textarea {
  min-height: 74px;
  resize: vertical;
  line-height: 1.45;
}

.wide-field {
  grid-column: 1 / -1;
}

.logo-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.logo-tools .ghost-button {
  min-height: 34px;
  padding: 7px 12px;
}

.logo-tools small {
  color: #728091;
  font-size: 13px;
  line-height: 1.35;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4ebf2;
}

.settings-head h2,
.settings-block h3 {
  margin: 0;
}

.settings-head h2 {
  font-size: 20px;
}

.settings-head span {
  display: block;
  margin-top: 5px;
  color: #6b7786;
  font-size: 14px;
}

.settings-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e4ebf2;
}

.settings-block h3 {
  margin-bottom: 14px;
  color: #173d63;
  font-size: 17px;
}

.url-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

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

.promo-settings-grid > div {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e4ebf2;
  border-radius: 8px;
  background: #f8fafc;
}

.promo-settings-grid label {
  display: grid;
  gap: 7px;
}

.promo-settings-grid label > span {
  color: #435163;
  font-size: 14px;
  font-weight: 800;
}

.check-field {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px !important;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.platform-visible-field {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #dbe4ee;
  border-radius: 5px;
  background: #f8fafc;
}

.editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e4ebf2;
}

.editor-footer div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.danger-button,
.small-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  border-radius: 5px;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.small-button:hover {
  filter: brightness(1.04);
}

.primary-button:focus-visible,
.ghost-button:focus-visible,
.danger-button:focus-visible,
.small-button:focus-visible,
.filter-button:focus-visible {
  outline: 3px solid rgba(31, 95, 153, 0.2);
  outline-offset: 2px;
}

.primary-button:active,
.ghost-button:active,
.danger-button:active,
.small-button:active,
.filter-button:active {
  transform: translateY(1px);
}

.primary-button {
  color: #fff;
  border: 1px solid #317cbf;
  background: linear-gradient(180deg, #317cbf 0%, #1f5f99 100%);
  box-shadow: 0 6px 14px rgba(31, 95, 153, 0.18);
}

.ghost-button {
  color: #173d63;
  border: 1px solid #cbd7e3;
  background: #fff;
}

.ghost-button:hover {
  border-color: #8fb1cf;
  background: #f5f9fc;
}

.admin-topbar .ghost-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.admin-topbar .ghost-button:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.18);
}

.danger-button {
  color: #fff;
  border: 1px solid #a73442;
  background: linear-gradient(180deg, #bf4658 0%, #a73442 100%);
  box-shadow: 0 6px 14px rgba(179, 59, 79, 0.16);
}

.small-button {
  min-height: 34px;
  color: #fff;
  border: 1px solid #317cbf;
  background: #1f5f99;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 1780px) {
  .side-promo {
    display: none;
  }
}

@media (max-width: 1280px) {
  .casino-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 28px, 760px);
  }

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

  .admin-topbar {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .platform-list {
    max-height: 360px;
  }

  .url-line {
    gap: 10px 18px;
    font-size: 19px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 440px);
    padding-top: 6px;
  }

  .brand-mark {
    min-width: 146px;
    min-height: 38px;
    font-size: 25px;
  }

  .browser-tip {
    font-size: 14px;
  }

  .url-line {
    display: grid;
    gap: 5px;
    font-size: 17px;
  }

  .content-wrap {
    padding: 0;
  }

  .casino-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .casino-card {
    min-height: 378px;
  }

  .card-title {
    height: 56px;
    font-size: 27px;
  }

  .card-body {
    min-height: 321px;
    padding: 36px 16px 16px;
  }

  .logo-frame {
    width: 205px;
    height: 78px;
    margin-bottom: 20px;
  }

  .bonus {
    margin-bottom: 22px;
    font-size: 30px;
  }

  .card-button {
    min-height: 44px;
    font-size: 18px;
  }

  .admin-topbar {
    padding: 14px 16px;
  }

  .admin-topbar .save-state {
    margin-top: 6px;
    margin-left: 0;
  }

  .admin-layout {
    width: min(100% - 20px, 440px);
    margin-top: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .editor-footer {
    flex-direction: column-reverse;
  }

  .settings-head {
    align-items: stretch;
    flex-direction: column;
  }

  .url-editor-grid,
  .promo-settings-grid {
    grid-template-columns: 1fr;
  }

  .editor-preview {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .logo-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar,
  .batch-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .preview-copy {
    width: 100%;
  }

  .editor-footer div,
  .primary-button,
  .ghost-button,
  .danger-button {
    width: 100%;
  }
}
