.gms-block {
  --gms-primary: var(--wp--preset--color--primary, #6554e8);
  --gms-text: var(--wp--preset--color--text, #29243b);
  --gms-muted: var(--wp--preset--color--muted, #706981);
  --gms-border: var(--wp--preset--color--border, #e0edef);
  color: inherit;
  min-width: 0;
}
.gms-block [hidden],
.gms-block[hidden] {
  display: none !important;
}
.gms-block * {
  box-sizing: border-box;
}
.gms-block :is(button, input, select, textarea) {
  font: inherit;
}
.gms-block :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #068295;
  outline-offset: 4px;
}
.gms-block h2,
.gms-block h3 {
  color: inherit;
  font-family: inherit;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.gms-block h2 {
  font-size: clamp(1.625em, 3vw, 2.375em);
}
.gms-block h3 {
  font-size: 1.375em;
}
.gms-block p {
  line-height: 1.6;
}
.gms-content {
  min-width: 0;
}
.gms-content > .gms-actions,
.gms-content > .gms-form,
.gms-content > .gms-panel {
  margin-bottom: 24px;
}
.gms-button,
.gms-game-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 21px;
  background: var(--gms-primary, #6554e8);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.gms-button:hover,
.gms-game-secondary:hover {
  box-shadow: 0 6px 18px #6554e827;
  transform: translateY(-1px);
  color: white;
}
.gms-button-secondary,
.gms-game-secondary {
  background: #f1fafb;
  border-color: #dcf0f3;
  color: #20586a;
}
.gms-button-secondary:hover,
.gms-game-secondary:hover {
  color: #20586a;
}
.gms-button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
.gms-text-button,
.gms-link {
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--gms-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 650;
  cursor: pointer;
  font-size: 14px;
}
.gms-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.gms-form {
  display: grid;
  gap: 18px;
}
.gms-form > .gms-button {
  justify-self: start;
}
.gms-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.gms-field label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.gms-field :is(input:not([type='checkbox']):not([type='color']), select, textarea) {
  width: 100%;
  border: 1px solid #d2e3e6;
  border-radius: 10px;
  min-height: 46px;
  padding: 10px 13px;
  color: var(--gms-text, #29243b);
  background: white;
  font-size: 15px;
  max-width: 100%;
}
.gms-field input[type='color'] {
  border: 1px solid #d2e3e6;
  border-radius: 9px;
  height: 46px;
  width: 100%;
  padding: 5px;
  background: white;
}
.gms-field input[type='file'] {
  font-size: 14px;
  padding: 10px;
}
.gms-field textarea {
  resize: vertical;
}
.gms-field small,
.gms-help {
  color: var(--gms-muted, #706981);
  font-size: 13px;
  line-height: 1.5;
}
.gms-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}
.gms-checkbox input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--gms-primary, #6554e8);
}
.gms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.gms-panel {
  padding: 28px;
  border: 1px solid var(--gms-border, #e0edef);
  background: var(--wp--preset--color--surface, #fff);
  border-radius: 20px;
  min-width: 0;
}
.gms-panel > h3:first-child {
  margin-top: 0;
}
.gms-panel > *:last-child {
  margin-bottom: 0;
}
.gms-message {
  padding: 15px 18px;
  border-radius: 12px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
}
.gms-message-error {
  color: #8b2936;
  background: #fff0f1;
  border: 1px solid #f4cbd1;
}
.gms-message-success {
  color: #23634c;
  background: #ebf8f0;
  border: 1px solid #c9e8d7;
}
.gms-message-info {
  color: #235367;
  background: #f0f9fb;
  border: 1px solid #daf1f4;
}
.gms-empty {
  text-align: center;
  padding: 42px 24px;
  border: 1px dashed #d3eaed;
  border-radius: 22px;
  grid-column: 1/-1;
}
.gms-empty p {
  max-width: 540px;
  margin: 12px auto 24px;
  color: var(--gms-muted);
}
.gms-empty-symbol {
  display: inline-grid;
  place-items: center;
  font-size: 32px;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #ddf5f6;
  color: #076a79;
}
.gms-badge {
  display: inline-block;
  border-radius: 100px;
  background: #e2f5f7;
  color: #1f5869;
  padding: 5px 11px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.gms-loading {
  padding: 28px;
  text-align: center;
  color: var(--gms-muted);
}
.gms-block-game-player { position: relative; }
.gms-game-loader {
  position: relative;
  isolation: isolate;
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: min(70svh, 32rem);
  overflow: hidden;
  padding: 32px 16px;
  color: #163456;
  background: radial-gradient(ellipse at 12% 100%, #ccf3ee, transparent 56%),
              radial-gradient(ellipse at 94% 8%, #e0e7ff, transparent 53%), #f4faff;
}
.gms-game-screen .gms-game-loader { min-height: 100svh; }
.gms-game-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#7392ba55 1px, transparent 1.4px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse 19rem 12rem at center, transparent 25%, #0009 64%, transparent);
}
.gms-loader-pad {
  position: relative;
  width: 72px;
  height: 48px;
  border: 1px solid #3154ca;
  border-radius: 22px 22px 16px 16px;
  background: linear-gradient(155deg, #6689ff, #3f62df 65%, #394fc8);
  box-shadow: inset 0 2px 1px #ffffff85, 0 5px 0 #293fa2, 0 11px 18px -6px #28499a60;
  transform: rotate(-7deg);
}
.gms-loader-pad::before, .gms-loader-pad::after { content: ""; position: absolute; }
.gms-loader-pad::before {
  left: 13px;
  top: 15px;
  width: 17px;
  height: 17px;
  background: linear-gradient(90deg, transparent 32%, white 32% 68%, transparent 68%),
              linear-gradient(transparent 32%, white 32% 68%, transparent 68%);
}
.gms-loader-pad::after {
  right: 12px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffde81;
  box-shadow: -8px 10px 0 #a7ffea;
}
.gms-loader-label {
  margin-block: 22px 13px;
  font: 650 clamp(17px, 2vw, 21px)/1.3 system-ui, sans-serif;
  letter-spacing: -.02em;
}
.gms-loader-track {
  width: 96px;
  height: 4px;
  overflow: hidden;
  border-radius: 8px;
  background: #d5e3f2;
}
.gms-loader-track::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: #4765da;
  transform: translateX(75%);
}
@media (prefers-reduced-motion: no-preference) {
  .gms-loader-track::after { animation: gms-loader-glide 1.1s ease-in-out infinite alternate; }
}
@keyframes gms-loader-glide { from { transform: translateX(0); } to { transform: translateX(150%); } }
/* Keep the game measurable while its module mounts behind the server-rendered loader. */
.gms-game-loader + .gms-content { position: absolute; inset: 0 0 auto; visibility: hidden; }
.gms-block-game-player:has(> noscript p) > .gms-game-loader { display: none; }
.gms-workspace-badges { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.gms-workspace-top .gms-workspace-badges { margin-top:6px; }
.gms-workspace-tag {
  display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px;
  background:#eaf3f7; color:#24475a; font-size:13px; font-weight:650; line-height:1.4;
}
.gms-plan-free { background:#edf3fc; color:#294d7f; }
.gms-plan-unlimited { background:#d8f5ec; color:#0f5a46; }
.gms-hosting-name { margin-inline-start:8px; overflow-wrap:anywhere; }
.gms-break {
  overflow-wrap: anywhere;
}
.gms-account-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.gms-account-heading h2 {
  margin: 8px 0;
}
.gms-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gms-primary);
  text-transform: uppercase;
}
.gms-directory-filters {
  display: flex;
  align-items: end;
  gap: 18px;
  margin-bottom: 28px;
}
.gms-directory-filters > .gms-field:first-child {
  flex: 1;
}
.gms-directory-filters > .gms-field:last-child {
  width: 230px;
}
.gms-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.gms-campaign-card {
  border: 1px solid var(--gms-border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--wp--preset--color--surface, #fff);
  box-shadow: 0 3px 0 #32264c04;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  min-width: 0;
}
.gms-campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px #32264c0b;
}
.gms-game-art {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}
.gms-card-body {
  padding: 24px;
}
.gms-card-body h3 {
  font-size: 1.375em;
  margin: 13px 0 10px;
}
.gms-card-body h3 a {
  color: inherit;
  text-decoration: none;
}
.gms-card-body > p {
  font-size: 0.875em;
  color: var(--gms-muted);
  margin: 0 0 20px;
}
.gms-block.has-text-color .gms-card-body > p {
  color: inherit;
}
.gms-card-action {
  color: var(--gms-primary);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.gms-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gms-muted);
  font-weight: 650;
}
.gms-workspace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.gms-workspace-top > .gms-field {
  width: min(100%, 360px);
}
.gms-workspace-tabs {
  display: flex;
  gap: 6px;
  overflow: auto;
  border-bottom: 1px solid var(--gms-border);
  margin: 0 0 32px;
  padding-bottom: 8px;
}
.gms-workspace-tabs a {
  padding: 10px 16px;
  white-space: nowrap;
  border-radius: 10px;
  text-decoration: none;
  color: var(--gms-muted);
  font-size: 14px;
  font-weight: 650;
}
.gms-workspace-tabs a[aria-current='page'] {
  background: #ecf8f9;
  color: #12586b;
}
.gms-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.gms-stat {
  background: #fff;
  border: 1px solid var(--gms-border);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  gap: 8px;
}
.gms-stat strong {
  font-size: 36px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.gms-stat span {
  font-size: 13px;
  color: var(--gms-muted);
}
.gms-campaign-list {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}
.gms-editor-section {
  border: 1px solid var(--gms-border);
  border-radius: 16px;
  background: #fff;
  margin: 18px 0;
  overflow: hidden;
}
.gms-editor-section > summary {
  padding: 18px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
  list-style-position: inside;
}
.gms-editor-section-body {
  padding: 8px 22px 24px;
  display: grid;
  gap: 20px;
}
.gms-editor-section-body > .gms-form {
  margin: 0;
}
.gms-image-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gms-image-picker img {
  object-fit: contain;
}
.gms-image-picker > .gms-field {
  border: 1px solid var(--gms-border);
  border-radius: 12px;
  padding: 14px;
}
.gms-quiz-editor {
  display: grid;
  gap: 20px;
}
.gms-quiz-editor > .gms-panel {
  display: grid;
  gap: 16px;
}
.gms-table-scroll {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--gms-border);
  border-radius: 16px;
}
.gms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  background: #fff;
}
.gms-table th,
.gms-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #e9f3f5;
  vertical-align: top;
  min-width: 100px;
}
.gms-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f6fbfc;
  color: #706981;
}
.gms-table tr:last-child td {
  border: 0;
}
.gms-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.gms-media-grid .gms-panel img {
  max-width: 100%;
  height: 130px;
  object-fit: contain;
  display: block;
  margin: 14px auto;
}
.gms-media-grid h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.gms-media-grid small {
  display: block;
}
.gms-play-shell {
  background: var(--gms-game-background, #f6fcfd);
  border: 1px solid #e2f4f7;
  border-radius: 30px;
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
  max-width: 850px;
  margin: auto;
}
.gms-play-shell > h2 {
  margin: 18px 0 12px;
}
.gms-game-intro {
  max-width: 580px;
  margin: 0 auto 20px;
  color: #6f6580;
}
.gms-game-stage {
  padding: 12px 0;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
}
.gms-game-stage > .gms-button {
  margin: 12px auto;
}
.gms-game-hint {
  font-size: 12px;
  color: #746c85;
  max-width: 470px;
  margin: 20px auto;
}
.gms-business-logo {
  width: 120px;
  height: 64px;
  object-fit: contain;
  margin: auto;
}
.gms-play-timer {
  font-size: 14px;
  font-weight: 750;
  color: #615085;
}
.gms-game-result:not(:empty) {
  margin-top: 30px;
  text-align: left;
}
.gms-game-result .gms-empty {
  text-align: center;
}
.gms-game-terms {
  text-align: left;
  margin-top: 24px;
  font-size: 13px;
  color: #746c85;
}
.gms-game-terms summary {
  cursor: pointer;
}
.gms-coupon {
  background: white;
  border: 1px solid #d6eaed;
  border-radius: 24px;
  max-width: 620px;
  margin: 0 auto 24px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 12px 32px #44366308;
}
.gms-coupon-top {
  border-bottom: 2px dashed #e0f0f3;
  padding-bottom: 22px;
}
.gms-coupon-top h2 {
  font-size: 30px;
  margin: 18px 0 12px;
}
.gms-coupon-top p {
  margin: 10px 0;
  font-size: 14px;
}
.gms-qr {
  width: 185px;
  max-width: 100%;
  margin: 22px auto 8px;
}
.gms-qr svg {
  width: 100%;
  height: auto;
  display: block;
}
.gms-reward-code,
.gms-external-code {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.gms-coupon-terms {
  text-align: left;
  padding: 22px 0;
}
.gms-coupon-terms h3 {
  font-size: 18px;
}
.gms-coupon-terms p {
  font-size: 14px;
}
.gms-coupon-terms small {
  color: #746c85;
}
.gms-coupon > .gms-actions {
  justify-content: center;
}
.gms-coupon .gms-panel {
  margin-top: 22px;
}
.gms-rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.gms-editor-card {
  border: 1px solid #d5eaed;
  border-radius: 18px;
  padding: 24px;
  background: #fafdfd;
}
.gms-editor-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #7965df;
}
.gms-editor-note {
  font-size: 12px;
  color: #706981;
}
.gms-admin {
  max-width: 1100px;
}
.gms-admin .gms-block {
  margin-top: 28px;
}
.gms-admin .gms-block h2 {
  font-size: 26px;
}
.gms-admin .gms-block h3 {
  font-size: 20px;
}
@media (max-width: 1000px) {
  .gms-game-grid,
  .gms-media-grid,
  .gms-rewards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .gms-game-grid,
  .gms-grid,
  .gms-media-grid,
  .gms-rewards-grid {
    grid-template-columns: 1fr;
  }
  .gms-directory-filters {
    align-items: stretch;
    flex-direction: column;
  }
  .gms-directory-filters > .gms-field:last-child {
    width: 100%;
  }
  .gms-workspace-top,
  .gms-account-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .gms-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .gms-stat {
    padding: 20px 15px;
  }
  .gms-stat strong {
    font-size: 30px;
  }
  .gms-panel {
    padding: 22px;
  }
  .gms-card-body {
    padding: 22px;
  }
  .gms-image-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gms-editor-section-body {
    padding: 6px 16px 20px;
  }
  .gms-play-shell {
    padding: 24px 16px;
    border-radius: 22px;
  }
  .gms-coupon {
    padding: 24px 18px;
  }
  .gms-coupon-top h2 {
    font-size: 26px;
  }
  .gms-workspace-tabs {
    margin-inline: -8px;
  }
  .gms-game-result .gms-form {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gms-block * {
    scroll-behavior: auto;
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  body * {
    visibility: hidden;
  }
  .gms-coupon,
  .gms-coupon * {
    visibility: visible;
  }
  .gms-coupon {
    position: absolute;
    inset: 0;
    margin: auto;
    box-shadow: none;
    border: 0;
  }
  .gms-coupon button,
  .gms-coupon .gms-actions {
    display: none;
  }
}

.gms-play-shell {
  --gms-primary: var(--gms-game-accent, #6554e8);
}
.gms-game-stage {
  overflow: clip;
}
.gms-game-stage .gms-wheel {
  max-width: 100%;
}
.gms-game-stage .gms-flip-card:not(:disabled),
.gms-game-stage .gms-reels {
  background: var(--gms-game-accent, #7965df);
}
.gms-game-stage .gms-slide-tile:not(.has-image),
.gms-game-stage .gms-reel {
  color: var(--gms-game-accent, #7965df);
}

.gms-reward-image {
  width: 160px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 24px auto;
}
.gms-offer-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--gms-primary);
}
.gms-game-symbol {
  max-width: 80%;
  max-height: 90px;
  object-fit: contain;
}
.gms-game-stage .gms-gift-box img {
  display: block;
  max-width: 100%;
  height: 85px;
  object-fit: contain;
  margin: 0 auto 10px;
}
.gms-game-stage .gms-balloon img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}
.gms-quiz-image {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  border-radius: 14px;
  margin: 12px auto;
}
.gms-wheel-symbol {
  position: absolute;
  width: 38px;
  height: 38px;
  object-fit: contain;
  left: calc(50% - 19px);
  top: calc(50% - 19px);
}

.gms-scratch-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gms-meter-icon {
  position: absolute;
  max-width: none;
  width: 38px;
  height: 38px;
  object-fit: contain;
  left: -15px;
  top: 20px;
}
.gms-game-stage .gms-meter {
  margin-top: 52px;
  margin-bottom: 52px;
}

.gms-play-shell :where(h2, h3, button, input, select, textarea) {
  font-family: inherit;
}

.gms-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.gms-section-heading h3 {
  margin: 0.25rem 0;
}
.gms-item-row {
  border: 1px solid #ddedef;
  border-radius: 16px;
  margin: 1.25rem 0;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  background: #fff;
}
.gms-item-row legend {
  font-weight: 650;
  font-size: 0.85rem;
  padding: 0 0.5rem;
}
.gms-item-row > .gms-actions {
  grid-column: 1/-1;
}
.gms-field input[type='color'] {
  height: 44px;
  min-height: 44px;
  padding: 4px;
}
.gms-field.has-error input,
.gms-field.has-error select {
  border-color: #b5324b;
}
.gms-field-error {
  color: #9c253d;
  font-size: 0.8rem;
}
.gms-review-errors {
  background: #fff2f4;
  border: 1px solid #f2cbd4;
  border-radius: 16px;
  padding: 1rem 1rem 1rem 2rem;
}
.gms-stock-counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}
.gms-stock-counts span {
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  color: #4c606a;
}
.gms-stock-counts strong {
  font-size: 1.4rem;
  color: #1c3544;
}
.gms-report-summary { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:16px; align-items:stretch; }
.gms-report-summary > :is(.gms-panel,.gms-trend) { box-sizing:border-box; min-width:0; margin:0; padding:clamp(16px,2vw,28px); border:1px solid #d3e0e7; border-radius:18px; background:white; }
.gms-report-summary h3,.gms-report-table-heading { margin:0; color:#182c43; font-size:clamp(1.14rem,1.45vw,1.4rem); line-height:1.25; }
.gms-report-summary figcaption .gms-help { display:block; margin:4px 0 0; }
.gms-report-summary .gms-stock-counts { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.gms-report-summary .gms-stock-counts span { gap:4px; padding:12px; border-radius:10px; background:#edf7f8; color:#33515c; font-size:.82rem; font-weight:600; line-height:1.35; }
.gms-report-summary .gms-stock-counts strong { color:#155465; font-size:1.5rem; }
.gms-report-summary .gms-text-button { display:inline-flex; }
.gms-report-table-heading { margin-top:6px; }
.gms-placement-breakdown { min-width:0; padding:12px 16px; border:1px solid #d3e0e7; border-radius:12px; background:#fff; }
.gms-placement-breakdown > summary { cursor:pointer; color:#175c6b; font-weight:700; }
@media(max-width:781px) { .gms-report-summary { grid-template-columns:minmax(0,1fr); } }
@media(max-width:480px) { .gms-report-summary .gms-stock-counts span { padding:9px; } }
.gms-offer-list {
  display: grid;
  gap: 1rem;
}
.gms-offer-list > .gms-panel {
  margin: 0;
}
.gms-experience {
  --gms-game-accent: #6c3ce5;
  --gms-game-background: #f5fbfc;
  background: #fff;
  color: #2a1d3b;
  border-radius: 24px;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
  max-width: 760px;
  margin: auto;
}
.gms-play-heading {
  text-align: center;
  margin: 0 auto 1rem;
  max-width: 520px;
}
.gms-play-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0.6rem 0;
}
.gms-play-heading > p:last-child {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6e627d;
}
.gms-experience .gms-game-stage {
  background: var(--gms-game-background);
  padding: 1.5rem 1rem;
  border-radius: 22px;
  position: relative;
  min-height: 200px;
  background-size: cover;
  background-position: center;
}
.gms-experience .gms-button {
  background: var(--gms-game-accent);
  border-color: var(--gms-game-accent);
}
.gms-experience .gms-button-secondary {
  background: #fff;
  color: #452273;
}
.gms-symbol {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0.5rem;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.2;
}
.gms-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gms-experience .gms-game-result:not(:empty) {
  padding-top: 1.5rem;
}
.gms-reservation-time {
  background: #fff1cf;
  color: #6b4b08;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 650;
}
.gms-answer-review {
  border-bottom: 1px solid #dfe9eb;
  padding: 1rem 0;
}
.gms-game-result:focus {
  outline: none;
}
.gms-experience button:focus-visible,
.gms-builder button:focus-visible {
  outline: 3px solid #abdfe7;
  outline-offset: 3px;
}
.gms-play-timer {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  font-weight: 700;
  color: #385563;
}
.gms-play-timer:empty {
  display: none;
}
@media (max-width: 900px) {
  .gms-item-row {
    gap: 0.75rem;
  }
  .gms-experience .gms-game-stage {
    padding: 1.5rem 0.5rem;
  }
}
@media (max-width: 480px) {
  .gms-item-row {
    grid-template-columns: 1fr;
  }
  .gms-stock-counts {
    grid-template-columns: repeat(2, 1fr);
  }
  .gms-section-heading {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gms-experience * {
    scroll-behavior: auto !important;
  }
}
.gms-outcome-reveal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #e8f6f8;
}
.gms-outcome-reveal img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.gms-redemption-result {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: start;
}
.gms-redemption-result > .gms-message {
  grid-column: 1/-1;
}
.gms-redemption-result .gms-coupon {
  width: 100%;
  margin: 0;
}
.gms-checkout-actions {
  position: sticky;
  top: 20px;
}
.gms-coupon-conditions {
  padding: 1.25rem;
  border-block: 1px dashed #b8dfe5;
  margin: 1rem 0;
  background: #fafdfd;
}
.gms-coupon-conditions li {
  margin: 0.5rem 0;
  line-height: 1.6;
}
.gms-redemption-intro {
  max-width: 600px;
}
@media (max-width: 780px) {
  .gms-redemption-result {
    grid-template-columns: 1fr;
  }
  .gms-checkout-actions {
    position: static;
  }
}
.gms-report-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
  background: #f5fbfc;
  border: 1px solid #e0eff1;
  border-radius: 18px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.gms-report-filters > div[aria-live] {
  grid-column: 1/-1;
}
.gms-report-filters > button {
  justify-self: start;
}
.gms-pagination {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}
.gms-pagination > span {
  margin-right: auto;
}
.gms-admin {
  max-width: 1280px;
  padding: 1rem 1.5rem 3rem;
}
.gms-admin > .gms-eyebrow {
  margin-bottom: 0.25rem;
}
.gms-admin > h1 {
  font-size: 2rem;
  font-weight: 650;
  margin-bottom: 1.5rem;
}
.gms-admin .gms-content > form {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  background: #fff;
  padding: 1rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}
.gms-admin .gms-table-scroll {
  background: #fff;
  border: 1px solid #dfecee;
  border-radius: 16px;
}
.gms-admin .gms-block {
  padding: 0;
}
.gms-stats-grid {
  margin-bottom: 1.5rem;
}
.gms-stat {
  border: 1px solid #deebed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 20px #33204405;
}
.gms-stat strong {
  font-variant-numeric: tabular-nums;
}
.gms-campaign-list > .gms-panel[hidden] {
  display: none;
}
@media (max-width: 700px) {
  .gms-report-filters {
    grid-template-columns: 1fr 1fr;
  }
  .gms-report-filters .gms-field:first-child {
    grid-column: 1/-1;
  }
  .gms-pagination {
    flex-wrap: wrap;
  }
  .gms-admin {
    padding: 0.5rem;
  }
}

.gms-offer-section {
  border: 1px solid var(--gms-border, #e2eef0);
  border-radius: 16px;
  padding: 1.25rem;
  margin: 0 0 1.5rem;
  min-width: 0;
}
.gms-offer-section legend {
  padding-inline: 0.5rem;
  font-weight: 750;
  font-size: 0.95rem;
}
.gms-offer-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.gms-offer-fields .gms-field:has(textarea) {
  grid-column: 1/-1;
}
.gms-offer-fields .gms-field[hidden] {
  display: none;
}
.gms-workspace-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--wp--preset--color--background, #fbfefe);
  padding-block: 0.75rem;
}
.gms-field input,
.gms-field select,
.gms-field textarea {
  max-width: 100%;
}
.gms-content,
.gms-panel,
.gms-play-heading,
.gms-coupon {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .gms-offer-fields {
    grid-template-columns: 1fr;
  }
  .gms-offer-section {
    padding: 0.75rem;
  }
}
.gms-symbol {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.25rem;
}
.gms-symbol-icon {
  width: 70%;
  height: 100%;
  max-height: 70px;
  margin: auto;
}
.gms-symbol-label {
  font-size: 0.72em;
  text-align: center;
}
.gms-symbol:has(> img) {
  grid-template-rows: 1fr;
}
.gms-balloon-target .gms-symbol {
  width: 100%;
  height: 100%;
  padding: 0.35rem;
  background: transparent !important;
}
.gms-balloon-target .gms-symbol-icon {
  max-height: 48px;
}
.gms-balloon-target .gms-symbol-label {
  display: none;
}
.gms-game-stage[inert] button {
  cursor: default;
}
.gms-game-stage[inert] > .gms-button {
  opacity: 0.55;
}
.gms-experience .gms-button:not(.gms-button-secondary),
.gms-experience .gms-button:not(.gms-button-secondary):hover {
  color: var(--gms-game-ink, #fff);
}

/* Standalone public play route, including loading and resumed results. */
.gms-game-screen :is(.gms-site-header,.gms-footer),
.gms-game-screen .wp-block-group:has(> [data-gms="game-player"]) > .wp-block-group {display:none}
.gms-game-screen :is(.entry-content,.wp-block-group):has([data-gms="game-player"]),
.gms-game-screen [data-gms="game-player"],.gms-game-screen [data-gms="game-player"]>.gms-content {
  box-sizing:border-box; margin:0!important; padding:0!important; max-width:none!important; width:100%;
}
.gms-game-screen [data-gms="game-player"] {min-height:100svh;background:var(--wp--preset--color--surface,#faf7ff)}
.gms-game-screen .gms-content>:is(.gms-panel,.gms-play-shell,.gms-experience):not(.market-arcade) {
  box-sizing:border-box;min-height:100svh;max-width:none;margin:0;border:0;border-radius:0;
  padding:clamp(20px,5svh,56px) max(5vw,calc((100% - 780px)/2));box-shadow:none;
  display:flex;flex-direction:column;justify-content:center;gap:12px;
}
.gms-game-screen .gms-content>.gms-panel>.gms-button {align-self:flex-start}
.gms-player-brand {display:block;width:fit-content;max-width:100%;margin:0 auto 12px;text-align:center;font-weight:700}
.gms-player-brand img {display:block;width:auto;max-width:200px;height:54px;object-fit:contain}
.gms-player-footer {margin-top:auto;text-align:center;padding:12px;font:14px/1.4 system-ui,sans-serif}
.gms-player-footer details {max-width:62ch;margin:auto}
.gms-player-footer summary {cursor:pointer;text-decoration:underline;padding:8px;min-height:30px}
.gms-player-footer p {margin:.4em auto;color:inherit}
.gms-game-screen .gms-player-footer.gms-game-terms {text-align:center}
@media (min-width: 1000px) {
  /* Keep controls inside the open counter area of the full-bleed public stage. */
  .gms-game-screen .gms-experience.market-round:not([data-market-result]) {
    padding-inline:15vw;
    grid-template-columns:minmax(0,1fr) minmax(0,2.1fr) minmax(0,.95fr);
  }
  .gms-game-screen .market-welcome .market-intro h1 {
    max-width: none;
    font-size:clamp(48px,4.9vw,72px);
  }
}
.market-arcade .gms-practice-notice {position:absolute;inset:4px 0 auto;text-align:center;font-size:12px;font-weight:bold;background:#fff3dc;color:#502951}
.market-arcade[data-font="serif"] {font-family:Georgia,serif}

/* Player information stays in the browser's modal layer, outside the stage layout. */
.gms-popup-trigger {
  appearance: none; background: transparent; border: 0; box-shadow: none;
  border-radius: 8px; color: inherit; cursor: pointer; font: inherit; font-weight: 700;
  padding: 8px 12px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px;
}
.gms-popup-trigger:focus-visible, .gms-player-dialog button:focus-visible,
.gms-dialog-content:focus-visible { outline: 3px solid #ba76d0; outline-offset: 2px; }
.gms-wheel-odds {color: #512853;}
.gms-player-dialog {
  position: fixed; inset: 0; margin: auto; padding: 0; box-sizing: border-box;
  width: min(26rem, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  overflow: hidden; border: 3px double #ba905b; border-radius: 18px;
  background: #fff5df; color: #38233f; box-shadow: 0 16px 54px #25132955;
  text-align: start; font: 16px/1.5 system-ui, sans-serif;
}
.gms-player-dialog::backdrop { background: rgb(34 20 37 / 68%); }
.gms-dialog-panel { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); }
.gms-dialog-panel > header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid #dcc7a2;
}
.gms-player-dialog .gms-dialog-panel h2 { margin: 0; color: #38233f; font: bold 1.55rem/1.15 Georgia, serif; }
.gms-dialog-close {
  cursor: pointer; min-height: 44px; padding: 6px 16px; border: 1px solid #93799e;
  border-radius: 10px; background: #fffaf0; color: #492753; font: bold 15px/1.2 system-ui,sans-serif;
}
.gms-modal-close {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  box-sizing:border-box; min-width:44px; min-height:44px; flex:none;
  padding:6px 12px; border:1px solid #acc9d2; border-radius:12px;
  background:#fff; color:#184553; cursor:pointer;
  box-shadow:0 2px 8px #17314816; font:700 14px/1.2 system-ui,sans-serif;
}
.gms-modal-close::before {
  content:""; flex:none; width:18px; height:18px; background:currentColor;
  mask:url("./art/controls/close.svg") center / contain no-repeat;
}
.gms-modal-close:hover { background:#e4f6f8; color:#103e4b; }
.gms-modal-close:focus-visible { outline:3px solid #266eac; outline-offset:2px; }
.gms-dialog-panel > header { padding:8px 10px 8px 16px; }
.gms-dialog-content { overflow: auto; overscroll-behavior: contain; padding: 14px 18px 20px; }
.gms-dialog-content p { white-space: pre-line; margin: 0; color: inherit; }
.gms-dialog-content h3 { margin: 0 0 8px; font: bold 15px/1.4 system-ui,sans-serif; }
.gms-dialog-content ul { list-style: none; padding: 0; margin: 0; }
.gms-dialog-content li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dotted #cfb68f; }
.gms-dialog-content li:last-child { border: 0; }
.gms-dialog-content li img { flex: none; width: 28px; height: 28px; object-fit: contain; }
.gms-dialog-content li strong { margin-inline-start: auto; }
.gms-dialog-content a { display: inline-block; margin-top: 10px; }
html:has(.gms-player-dialog[open]) { overflow: hidden; }

.gms-experience.market-round:not([data-market-result]) .market-status {
  display: block; block-size: 1.45em; line-height: 1.45;
  max-inline-size: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 700px) {
  :is(.gms-content, .gms-builder-preview) .market-arcade:is(.market-round, .market-welcome) {
    padding: clamp(18px, 4svh, 40px) max(8px, env(safe-area-inset-right))
             max(12px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .market-welcome.market-arcade .market-welcome-body {
    gap: clamp(6px, 1.1svh, 12px);
    padding-block: 10px;
  }
  .market-welcome.market-arcade .market-welcome-body > .market-wheel {
    width: min(80%, 34svh, 345px);
  }
  .gms-experience.market-round:not([data-market-result]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "brand brand" "head head" "stage stage" "hint hint" "odds foot";
    grid-template-rows: auto minmax(max-content, .75fr) auto minmax(max-content, 1fr) auto;
    align-content: start; row-gap: clamp(4px, 1svh, 10px);
  }
  .gms-experience.market-round:not([data-market-result]) .gms-play-heading { align-self: end; margin: 0; }
  .gms-experience.market-round .market-key { display: contents; }
  .gms-experience.market-round .market-key > p { grid-area: hint; align-self: start; }
  .gms-experience.market-round .gms-wheel-odds { grid-area: odds; justify-self: end; }
  .gms-experience.market-round .gms-player-footer { grid-area: foot; justify-self: start; }
  .gms-experience.market-round .gms-wheel-odds > .gms-popup-trigger {
    color: #40233f;
    background: #fff2d4;
    border: 1px solid #a67d47;
    border-radius: 16px;
  }
  .gms-experience.market-round:not(:has(.gms-wheel-odds)) .gms-player-footer,
  .gms-experience.market-round:not(:has(.gms-player-footer)) .gms-wheel-odds {
    grid-column: 1 / -1; justify-self: center;
  }
  .gms-experience.market-round .gms-game-stage { row-gap: 6px; }
  .gms-experience.market-round:not([data-market-result]) .market-wheel-button { width: min(100%, 52svh, 470px); }
  .gms-experience.market-round[data-market-result] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "brand brand" ". ." "stage stage" "result result" ". ." "odds foot";
    grid-template-rows: auto minmax(0, 1fr) auto auto minmax(0, 1fr) auto;
    row-gap: clamp(4px, 1svh, 10px);
  }
  .gms-experience.market-round[data-market-result] .market-wheel-button { width: min(48vw, 23svh, 210px); }
  .gms-experience.market-round .market-key > p { margin: 0; }
  .market-arcade .gms-player-footer { min-width: 0; }
}

@media (max-width: 700px) and (max-height: 700px) {
  .gms-experience.market-round:not([data-market-result]) { grid-template-rows: auto auto auto minmax(min-content,1fr) auto; }
  .gms-experience.market-round .gms-player-footer { max-width: 100%; }
  .market-round .gms-popup-trigger { padding-inline: 8px; font-size: 14px; }
  .gms-content .gms-experience.market-round { padding-block: 10px max(6px, env(safe-area-inset-bottom)); }
  .gms-content .market-round .market-brand img { width: 150px; }
  .gms-experience.market-round:not([data-market-result]) .market-wheel-button {
    width: min(100%, max(175px, calc((100svh - 278px) * .92)));
  }
  .gms-experience.market-round:not([data-market-result]) .gms-play-heading h2 { margin: 0; font-size: 26px; }
}
/* Campaign colors are inherited by the instrument and its controls, including draft previews. */
.gms-modern-arcade {
  --arcade-deep:color-mix(in srgb,var(--arcade-accent) 64%,#142035);
  --arcade-tint:color-mix(in srgb,var(--arcade-accent) 13%,#fff);
  --arcade-rim:color-mix(in srgb,var(--arcade-accent) 57%,white);
  box-sizing:border-box;
}
.gms-content .gms-modern-arcade,.gms-experience.gms-modern-arcade,.gms-arcade-welcome.gms-modern-arcade {
  color:var(--arcade-ink);background-color:var(--arcade-surface);
  background-image:radial-gradient(ellipse at 100% 15%,transparent 0 13%,color-mix(in srgb,var(--arcade-ink) 4%,transparent) 13.3% 18%,transparent 18.4%),radial-gradient(ellipse at 3% 107%,transparent 0 15%,color-mix(in srgb,var(--arcade-ink) 4%,transparent) 15.3% 24%,transparent 24.3%);
}
.gms-arcade-welcome {display:grid;align-content:center;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);grid-template-areas:"brand board" "copy board" "actions board" "terms terms";gap:1rem clamp(20px,5vw,84px);min-height:100svh;padding:clamp(24px,5vw,75px) max(4vw,calc((100vw - 1180px)/2));}
.gms-arcade-welcome .gms-player-brand {grid-area:brand;justify-self:start}
.gms-arcade-welcome .gms-arcade-copy {grid-area:copy}
.gms-modern-arcade .gms-arcade-copy h1,.gms-modern-arcade .gms-play-heading h2 {color:inherit;line-height:1.04;letter-spacing:-.055em;text-wrap:balance}
.gms-modern-arcade .gms-arcade-copy h1 {margin:0 0 .3em;font-size:clamp(36px,4.8vw,76px)}
.gms-arcade-welcome .gms-arcade-copy p {color:inherit;margin:.55em 0;max-width:43ch}
.gms-arcade-welcome .gms-arcade-actions {grid-area:actions;display:grid;justify-items:start;gap:.6rem}
.gms-modern-arcade .gms-arcade-actions a:not(.gms-button),.gms-modern-arcade .gms-popup-trigger {color:inherit}
.gms-arcade-welcome .gms-player-footer {grid-area:terms}
.gms-arcade-welcome .gms-arcade-instrument {position:relative;isolation:isolate;overflow:hidden;grid-area:board;align-self:center;display:grid;place-items:center;aspect-ratio:1.1;border-radius:38%;background:radial-gradient(ellipse at 50% 34%,#fff 0%,var(--arcade-tint) 37%,var(--arcade-rim) 100%);box-shadow:inset 0 3px 1px #fff8,0 7px 0 var(--arcade-deep),0 20px 30px #29243818;}
.gms-arcade-illustration {display:block;width:74%;height:80%;object-fit:contain;filter:drop-shadow(0 14px 7px #24213f26)}
.gms-arcade-backdrop {position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.gms-modern-arcade .gms-player-brand,.market-arcade.gms-modern-arcade .market-brand {color:#222239;background:#fffaf2;border:1px solid #28283e30;padding:7px 17px;border-radius:40px;font:700 16px/1.3 system-ui,sans-serif;box-shadow:0 2px 0 #28283e18;text-transform:none;letter-spacing:-.02em}
.gms-modern-arcade .gms-player-brand {display:inline-flex;width:fit-content;align-items:center;min-height:35px}
.gms-modern-arcade .gms-play-heading > p:last-child,.gms-modern-arcade .gms-play-timer {color:inherit}
.gms-modern-arcade .gms-play-heading > .gms-eyebrow {color:inherit}
.gms-modern-arcade .gms-play-heading h2 {font-size:clamp(26px,3.7vw,54px);margin:.35em 0}
.gms-experience.gms-modern-arcade:not(.market-round) .gms-game-stage {
  color:#23283a;background-color:var(--arcade-tint);border:3px solid var(--arcade-rim);
  border-radius:26px;box-shadow:0 5px 0 var(--arcade-deep),0 12px 30px #25253a17;
}
.gms-modern-arcade .gms-button:not(.gms-button-secondary),.gms-modern-arcade.market-arcade .market-claim > summary,.gms-experience.gms-modern-arcade .gms-button:not(.gms-button-secondary):hover {
  background:var(--arcade-accent);border:1px solid var(--arcade-deep);border-radius:16px;color:var(--arcade-on);box-shadow:0 4px 0 var(--arcade-deep);text-shadow:none;
}
.gms-modern-arcade .gms-button-secondary {background:white;color:#24243b}
.gms-modern-arcade :is(.gms-game-result .gms-panel,.gms-form) {color:#282637;background:#fffaf1;border-radius:18px}
.gms-modern-arcade .gms-game-result .gms-panel {border:2px solid var(--arcade-rim);box-shadow:0 4px 0 var(--arcade-deep)}
.gms-modern-arcade .gms-arcade-actions .gms-form {padding:1rem}
.gms-modern-arcade .gms-game-result :is(h3,p) {color:inherit}
.gms-modern-arcade .gms-pick-card:not(.is-revealed),.gms-modern-arcade .gms-memory-card:not(.is-open):not(.is-matched) {background-color:var(--arcade-accent);background-image:repeating-linear-gradient(135deg,transparent 0 14px,#ffffff15 15px 17px,transparent 18px 31px);color:var(--arcade-on);box-shadow:0 3px 0 var(--arcade-deep)}
.gms-modern-arcade .gms-memory-card.is-matched {outline:2px solid #137153;outline-offset:-5px}
.gms-modern-arcade .gms-slot-machine,.gms-modern-arcade .gms-slide-grid {background:linear-gradient(165deg,var(--arcade-rim),var(--arcade-accent) 56%,var(--arcade-deep));box-shadow:0 5px 0 var(--arcade-deep),inset 0 2px 0 #fff9;border:3px solid var(--arcade-rim)}
.gms-modern-arcade .gms-slot-caption {background:var(--arcade-accent);color:var(--arcade-on);width:fit-content;border-radius:20px;margin:12px auto 0;padding:4px 9px}
.gms-modern-arcade .gms-slide-empty {background:var(--arcade-deep)}
.gms-modern-arcade .gms-scratch-card {border:5px solid var(--arcade-accent);box-shadow:0 5px 0 var(--arcade-deep);border-radius:22px}
.gms-modern-arcade .gms-meter-track,.gms-modern-arcade .gms-balloon-sky {border-color:var(--arcade-accent);box-shadow:0 4px 0 var(--arcade-deep)}
.gms-modern-arcade .gms-meter-marker {color:var(--arcade-deep)}
.gms-modern-arcade .gms-box-choice,.gms-modern-arcade .gms-trivia-answer {border:2px solid var(--arcade-rim);box-shadow:0 3px 0 var(--arcade-rim)}
.gms-modern-arcade .gms-box-choice.is-open,.gms-modern-arcade .gms-trivia-answer.is-selected {outline:3px solid var(--arcade-deep);outline-offset:1px}
.gms-modern-arcade .gms-answer-letter {color:var(--arcade-on);background:var(--arcade-accent)}
.gms-modern-arcade.market-arcade {--plum:var(--arcade-ink);--market-accent:var(--arcade-accent);--cream:#fffaf1}
.gms-modern-arcade.market-arcade:not([data-font="serif"]) :is(h1,h2,h3) {font-family:inherit}
.gms-modern-arcade.market-arcade .market-wheel svg>circle:nth-child(2),.gms-modern-arcade.market-arcade .market-wheel svg>circle[r="47"] {fill:var(--arcade-accent);stroke:var(--arcade-deep)}
.gms-modern-arcade.market-arcade .market-wheel svg>circle[r="3.6"] {fill:var(--arcade-rim);stroke:var(--arcade-deep)}
.gms-modern-arcade.market-arcade .gms-game-result .gms-panel {color:#282637;background:#fffaf1;border:2px solid var(--arcade-rim);box-shadow:0 4px 0 var(--arcade-deep)}
.gms-modern-arcade :focus-visible {outline:2px solid #101828;outline-offset:3px;box-shadow:0 0 0 5px white}
@media(max-width:700px){
 .gms-arcade-welcome{grid-template-columns:minmax(0,1fr);grid-template-areas:"brand" "copy" "board" "actions" "terms";text-align:center;align-content:center;justify-items:center;padding:16px 12px;gap:11px}
 .gms-arcade-welcome .gms-player-brand{justify-self:center}
 .gms-arcade-welcome .gms-arcade-instrument{width:min(82vw,29svh);border-radius:33%}
 .gms-arcade-welcome .gms-arcade-actions{justify-items:center}
 .gms-modern-arcade .gms-arcade-copy h1{font-size:clamp(31px,8vw,42px)}
 .gms-game-screen .gms-content>.gms-modern-arcade.gms-experience:not(.market-round){padding:16px 10px}
 .gms-experience.gms-modern-arcade:not(.market-round) .gms-game-stage{padding:12px 7px}
}

.gms-arcade-welcome .gms-arcade-instrument:has(.gms-welcome-instrument){box-shadow:none;background:radial-gradient(ellipse,var(--arcade-rim) -70%,transparent 67%);border-radius:16px}
.gms-welcome-instrument{display:block;width:100%;height:auto;filter:drop-shadow(0 8px 6px #23243c1a);--frame-accent:var(--arcade-accent);--frame-on:var(--arcade-on);--frame-deep:var(--arcade-deep);--frame-light:var(--arcade-rim)}
@media(max-width:700px){.gms-arcade-welcome .gms-arcade-instrument:has(.gms-welcome-instrument){width:min(98%,46svh);aspect-ratio:4/3}}

.gms-modern-arcade .gms-player-brand:empty{display:none}
.gms-modern-arcade[data-arcade-result]:not(.market-round) .gms-play-heading :is(h2,p:last-child){display:none}
.gms-modern-arcade[data-arcade-result]:not(.market-round) .gms-play-heading{margin:0 auto}
.gms-experience.gms-modern-arcade[data-arcade-result]:not(.market-round) .gms-game-result{display:grid;gap:10px;padding:0;color:var(--arcade-ink);justify-items:stretch;scroll-margin-top:12px}
.gms-modern-arcade[data-arcade-result]:not(.market-round) .gms-game-result .gms-panel{margin:0;padding:clamp(14px,3vw,32px)}
.gms-modern-arcade[data-arcade-result]:not(.market-round) .gms-game-result .gms-panel>h3:first-child{font-size:clamp(25px,4vw,42px);letter-spacing:-.045em;line-height:1.1}
.gms-modern-arcade[data-arcade-result]:not(.market-round) .gms-game-stage{width:min(100%,430px);align-self:center;margin-top:8px}
.gms-modern-arcade[data-arcade-result]:not(.market-round) .gms-game-stage :is(.gms-memory-grid,.gms-pick-grid,.gms-slide-grid){max-width:320px}
@media(min-width:850px){
.gms-game-screen .gms-content>.gms-modern-arcade.gms-experience[data-arcade-result]:not(.market-round){display:grid;grid-template-areas:"brand brand" "score score" "result board" "terms terms";grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-content:center;align-items:center;gap:16px 32px;padding:32px max(4vw,calc((100vw - 1160px)/2))}
.gms-modern-arcade[data-arcade-result]:not(.market-round) .gms-play-heading{grid-area:brand}
.gms-modern-arcade[data-arcade-result]:not(.market-round) .gms-play-timer{grid-area:score}
.gms-modern-arcade[data-arcade-result]:not(.market-round) .gms-game-result{grid-area:result}
.gms-modern-arcade[data-arcade-result]:not(.market-round) .gms-game-stage{grid-area:board;justify-self:center}
.gms-modern-arcade[data-arcade-result]:not(.market-round) .gms-game-terms{grid-area:terms}
}

@media screen {
 .gms-game-screen [data-gms="coupon"]>.gms-content{margin:0 auto;max-width:none;padding:0}
 .gms-pocket-pass{display:grid;justify-items:center;align-content:start;min-height:100svh;padding:clamp(12px,3.5vw,40px) 10px;box-sizing:border-box;background:radial-gradient(at 50% 14%,#f8ebce,transparent 56%),linear-gradient(140deg,#d4c2e9,#f6e7e1 62%,#bcded9)}
 .gms-pocket-pass .gms-coupon{box-sizing:border-box;width:min(100%,490px);padding:clamp(16px,3.5vw,30px);border:5px double #bf965d;background:linear-gradient(150deg,#fffdf2,#fff2da);color:#31273c;border-radius:23px;box-shadow:0 6px 0 #805f53,0 20px 35px -12px #4e385966}
 .gms-pocket-pass .gms-coupon-top{border-bottom:2px dashed #c7aa85}
 .gms-pocket-pass .gms-coupon-top h2{margin:8px 0;font-size:clamp(24px,5vw,38px);letter-spacing:-.04em;line-height:1.08}
 .gms-pocket-pass .gms-qr{width:155px;margin:8px auto;background:#fff}
 .gms-pocket-pass .gms-coupon-conditions{background:#fff9f0;border:1px dashed #b89a70;border-radius:12px}
 .gms-pocket-pass .gms-reward-code{overflow-wrap:anywhere}
}
@media screen {
 body.gms-game-screen:has(.gms-pocket-pass) .wp-block-post-content>:not([data-gms="coupon"]):not(:has([data-gms="coupon"])){display:none}
 body.gms-game-screen:has(.gms-pocket-pass) .wp-block-post-content,body.gms-game-screen:has(.gms-pocket-pass) .wp-block-post-content :is(.wp-block-group,.gms-shell):has(.gms-pocket-pass){margin:0!important;padding:0!important;max-width:none;width:100%}
 body.gms-game-screen:has(.gms-pocket-pass) [data-gms="coupon"]{width:100%;max-width:none;margin:0!important}
}
@media screen {
 body.gms-game-screen:has(.gms-pocket-pass) .wp-block-group:has(>[data-gms="coupon"])>.wp-block-group:has(+[data-gms="coupon"]){display:none}
}

.gms-library-filters {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.gms-library-filters button {
  appearance:none;
  border:1px solid #bcc8e2;
  border-radius:999px;
  background:#fff;
  color:#273652;
  padding:9px 17px;
  min-height:44px;
  font:inherit;
  font-weight:650;
  line-height:1.3;
  cursor:pointer;
}
.gms-library-filters button:hover {border-color:#304de4;color:#263fba}
.gms-library-filters button[aria-pressed="true"] {background:#304de4;border-color:#304de4;color:#fff}
.gms-library-filters button:focus-visible {outline:3px solid #23388d;outline-offset:3px}
.gms-library-status {margin:12px 0;color:#4d5871;font-size:.92rem}
.gms-game-grid[aria-busy="true"] {opacity:.55}

/* Reward actions follow the usable width of the ticket or result panel. */
.gms-game-result .gms-reward-claim,
.gms-game-result :is(.gms-receive-controls, .market-claim, .gms-claim-ticket) {
  box-sizing: border-box;
  width: 100%;
  justify-self: stretch;
}
.gms-game-result .gms-reward-claim > button[type="submit"],
.gms-modern-arcade.gms-experience[data-scenery] .gms-game-result .gms-reward-claim > .gms-button,
.gms-experience.gms-modern-arcade[data-scenery] .gms-game-result :is(.gms-receive-controls, .market-claim, .gms-claim-ticket) > .gms-button {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 48px;
  justify-self: stretch;
  justify-content: center;
  text-align: center;
  font-size: 17px;
  line-height: 1.25;
}

/* Campaign controls share the same visual language in the owner and agency screens. */
.gms-block :is(.gms-button,.gms-text-button,.gms-admin-shortcut,.gms-step,.gms-workspace-tabs a):is(:link,:visited,:hover,:focus,:active),
.gms-block .gms-text-button {text-decoration:none}
.gms-block:not([data-gms="game-player"]) :is(.gms-help,.gms-field,.gms-text-button,td,select){font-weight:600}

.gms-create-campaign-row {margin-block:18px 24px}
.gms-campaign-identity {display:flex;align-items:center;gap:clamp(12px,2vw,20px);margin-bottom:14px}
.gms-campaign-identity img {width:clamp(88px,13vw,144px);height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:9px;flex:none}
.gms-campaign-identity h3 {margin:0;min-width:0;overflow-wrap:anywhere}
.gms-offer-advanced {min-width:0;margin-block:14px;padding:12px 16px;background:#f3fbfc;border:1px solid #cbe3e6;border-radius:12px}
.gms-offer-advanced summary {font-weight:650;color:#185363;cursor:pointer}
.gms-offer-advanced[open]>summary {margin-bottom:14px}
.gms-offer-schedule {grid-column:1/-1;margin:0}
.gms-offer-list>.gms-action-chip {justify-self:start}
.gms-offer-edit .gms-form>[aria-live]:empty,
[data-gms="coupon-list"] .gms-form>[aria-live]:empty {display:none}
.gms-offer-list~.gms-text-button {display:inline-flex;margin-top:14px}
.gms-code-example {font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
[data-gms="coupon-list"] .gms-content>.gms-panel {margin-block:0 20px}
[data-gms="coupon-list"] .gms-panel>.gms-action-chip {margin-block:2px 14px}
.gms-offer-list+.gms-offer-edit:not(:empty) {margin-top:20px}
.gms-block .gms-action-chip[aria-pressed="true"] {background:#d2eff1;border-color:#62a9af;color:#104d59}

/* Reward details open in the native top layer so claiming never resizes the board. */
dialog.gms-player-dialog.gms-claim-dialog {
  --claim-accent: var(--market-accent, var(--arcade-accent, #245b70));
  --action-width: 100%;
  width: min(29rem, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid #c7d5d4;
  border-radius: 20px;
  background: #fff;
  color: #203231;
  box-shadow: 0 24px 80px #112b3466;
}
.gms-player-dialog.gms-claim-dialog::backdrop { background: #132329ad; backdrop-filter: blur(4px); }
dialog.gms-claim-dialog .gms-dialog-panel { max-height: calc(100dvh - 26px); background: #fff; color: #203231; }
dialog.gms-claim-dialog .gms-dialog-panel > header {
  flex: none; padding: 14px 16px 14px 20px;
  background: color-mix(in srgb, var(--claim-accent) 7%, white);
  border-bottom: 1px solid #dce6e5;
}
dialog.gms-claim-dialog .gms-dialog-panel h2 {
  font: 750 clamp(20px, 3vw, 25px)/1.15 system-ui, sans-serif; letter-spacing: -.035em; color: #192e2d;
}
dialog.gms-claim-dialog .gms-dialog-content { min-height: 0; padding: 18px 20px 22px; }
dialog.gms-claim-dialog .gms-claim-offer { margin: 0 0 16px; }
dialog.gms-claim-dialog .gms-claim-offer strong { font-size: 1.13rem; line-height: 1.3; color: #233432; }
dialog.gms-claim-dialog .gms-claim-offer p { font: 500 .92rem/1.45 system-ui, sans-serif; color: #526360; margin: 4px 0 0; }
dialog.gms-claim-dialog .gms-reward-claim { padding: 0; margin: 0; border: 0; box-shadow: none; background: none; text-align: start; }
dialog.gms-claim-dialog .gms-reward-claim input:not([type="checkbox"]) { width: 100%; box-sizing: border-box; min-height: 44px; font-size: 16px; }
dialog.gms-claim-dialog .gms-reward-claim > button { box-sizing: border-box; width: 100%; margin: 0; }
dialog.gms-claim-dialog .gms-reward-claim > [aria-live]:empty { display:none; }
