:root {
  --app-yellow: #ffd900;
  --app-yellow-soft: #fff8cf;
  --app-navy: #102746;
  --app-blue: #0675e8;
  --app-ink: #132642;
  --app-muted: #60718a;
  --app-line: #dbe4ee;
  --app-surface: #f4f8fc;
  --app-green: #08795f;
  --app-purple: #3e257d;
}

.fortuna-app-page {
  color: var(--app-ink);
}

.fortuna-app-page code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-hero-card {
  overflow: hidden;
  border-top: 5px solid var(--app-yellow);
}

.app-hero-montage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 348px;
  padding: 22px 18px 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 217, 0, .26), transparent 34%),
    linear-gradient(145deg, #142b4a, #071425);
  gap: 10px;
  align-items: end;
}

.app-hero-montage figure {
  position: relative;
  min-width: 0;
  height: 318px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px 18px 0 0;
  background: #0d1f37;
  box-shadow: 0 18px 32px rgba(0, 0, 0, .28);
}

.app-hero-card .app-hero-montage figure img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top center;
}

.app-hero-card .app-hero-montage figure figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 18, 34, .82);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  backdrop-filter: blur(6px);
}

.app-quick-facts dd {
  overflow-wrap: anywhere;
}

.app-hero-verdict {
  border-color: #cddbea;
  background: linear-gradient(135deg, #eff7ff, #fffdf1);
}

.app-answer-grid,
.app-audit-grid,
.app-ios-grid,
.app-security-grid,
.app-diagnostic-grid,
.app-permission-grid,
.app-method-grid,
.app-bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.app-answer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-answer-grid article,
.app-audit-grid article,
.app-ios-grid article,
.app-security-grid article,
.app-diagnostic-grid article,
.app-permission-grid article,
.app-method-grid article,
.app-bonus-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(13, 39, 72, .06);
}

.app-answer-grid article {
  border-top: 4px solid var(--app-yellow);
}

.app-answer-grid span,
.app-audit-grid span,
.app-ios-grid span,
.app-security-grid span,
.app-diagnostic-grid span,
.app-permission-grid span,
.app-method-grid span,
.app-bonus-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--app-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.app-answer-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--app-navy);
  font-size: 19px;
}

.app-answer-grid p,
.app-audit-grid p,
.app-ios-grid p,
.app-security-grid p,
.app-diagnostic-grid p,
.app-permission-grid p,
.app-method-grid p,
.app-bonus-grid p {
  margin: 0;
}

.app-intent-note,
.app-data-warning,
.app-casino-warning,
.app-finder-note {
  margin-top: 18px;
  padding: 15px 17px;
  border-left: 4px solid var(--app-yellow);
  border-radius: 0 12px 12px 0;
  background: var(--app-yellow-soft);
}

.app-finder-section {
  overflow: hidden;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 93% 5%, rgba(255, 217, 0, .22), transparent 26%),
    linear-gradient(135deg, #112b50, #07172b);
}

.app-finder-section h2,
.app-finder-section h3,
.app-finder-section .eyebrow {
  color: #fff;
}

.app-finder {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
}

.app-finder-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-finder label {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 850;
}

.app-finder select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  color: var(--app-ink);
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.app-finder-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  color: var(--app-ink);
  background: #fff;
}

.app-finder-result span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #4e4000;
  background: var(--app-yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.app-finder-result h3 {
  margin: 0 0 6px;
  color: var(--app-navy);
}

.app-finder-result p {
  margin: 0 0 9px;
}

.app-finder-result code {
  display: inline-block;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 7px;
  color: #194978;
  background: #eef6ff;
}

.app-store-button,
.app-store-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 15px;
  border-radius: 10px;
  color: #102746;
  background: var(--app-yellow);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.app-store-button:hover,
.app-store-links a:hover {
  color: #102746;
  background: #ffe766;
}

.app-finder-note {
  color: #d9e6f5;
  border-left-color: rgba(255, 217, 0, .75);
  background: rgba(255,255,255,.08);
}

.app-download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.app-download-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(13, 39, 72, .08);
}

.app-sport-card { border-top: 5px solid #ffd900; }
.app-casino-card { border-top: 5px solid #585858; }
.app-poker-card { border-top: 5px solid #4f2a86; }

.app-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  margin-bottom: 14px;
}

.app-card-head img {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  object-fit: cover;
  border-radius: 15px;
}

.app-poker-card .app-card-head img {
  object-fit: contain;
  background: #ffed62;
}

.app-card-head span,
.app-card-head-text > span {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.app-card-head h3,
.app-card-head-text h3 {
  margin: 3px 0 0;
}

.app-card-head-text {
  position: relative;
  display: block;
  padding: 13px 66px 13px 0;
}

.app-card-head-text > strong {
  position: absolute;
  top: 12px;
  right: 0;
  color: var(--app-purple);
  font-size: 25px;
  letter-spacing: 2px;
}

.app-download-card dl {
  margin: 0;
}

.app-download-card dl > div {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid #edf1f5;
}

.app-download-card dt {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 850;
}

.app-download-card dd {
  min-width: 0;
  margin: 0;
}

.app-store-links {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.app-store-links a:last-child {
  color: #fff;
  background: var(--app-navy);
}

.app-snapshot-table {
  margin-top: 24px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-snapshot-table table {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  background: transparent;
}

.app-snapshot-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-snapshot-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.app-snapshot-table tbody {
  display: grid;
  gap: 12px;
  width: 100%;
}

.app-snapshot-table tbody tr {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(150px, .72fr) minmax(220px, 1.18fr);
  width: 100%;
  overflow: hidden;
  border: 1px solid #d6e2ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(13, 39, 72, .06);
}

.app-snapshot-table tbody th,
.app-snapshot-table tbody td {
  display: block;
  min-width: 0;
  padding: 15px 16px;
  border: 0;
  border-right: 1px solid #e2e9f1;
  background: transparent;
  text-align: left;
  vertical-align: top;
}

.app-snapshot-table tbody th {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border-right: 0;
  border-bottom: 1px solid #203d62;
  color: #fff;
  background: linear-gradient(110deg, #112b4d, #1a3c66);
  font-size: 17px;
}

.app-snapshot-table tbody th small {
  display: block;
  margin-top: 2px;
  color: #c9d9e9;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.app-snapshot-table tbody td:last-child {
  border-right: 0;
}

.app-snapshot-table tbody td::before {
  display: block;
  margin-bottom: 9px;
  color: #687a91;
  content: attr(data-label);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.app-product-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 3px solid rgba(255,255,255,.45);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,.18);
}

.app-product-dot-sport { background: #ffd900; }
.app-product-dot-casino { background: #c9c9c9; }
.app-product-dot-poker { background: #a77ad9; }

.app-snapshot-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-snapshot-list li {
  display: grid;
  gap: 2px;
}

.app-snapshot-list strong {
  color: var(--app-navy);
  font-size: 13px;
}

.app-snapshot-list span {
  color: #465c77;
  font-size: 13px;
  line-height: 1.4;
}

.app-ios-pill,
.app-date-tag {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  line-height: 1.25;
}

.app-ios-pill {
  color: #14547f;
  background: #eaf6ff;
  font-size: 13px;
}

.app-date-tag {
  color: #5d4b00;
  background: #fff2a8;
  font-size: 11px;
  font-weight: 850;
}

.app-snapshot-table tbody td p {
  margin: 8px 0 0;
  color: #4c6079;
  font-size: 13px;
  line-height: 1.45;
}

.app-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(230px, .58fr);
  align-items: start;
  gap: 28px;
  margin-top: 18px;
}

.app-product-layout-reverse {
  grid-template-columns: minmax(230px, .58fr) minmax(0, 1.42fr);
}

.app-feature-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.app-feature-list li {
  position: relative;
  padding: 11px 12px 11px 38px;
  border: 1px solid #e2e9f1;
  border-radius: 11px;
  background: #f8fafc;
}

.app-feature-list li::before {
  position: absolute;
  top: 11px;
  left: 13px;
  color: var(--app-green);
  content: "✓";
  font-weight: 950;
}

.app-phone-figure {
  position: sticky;
  top: 110px;
  max-width: 320px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 23px;
  background: linear-gradient(#fff, #f0f5fa);
  box-shadow: 0 18px 38px rgba(13, 39, 72, .12);
}

.app-phone-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  border-radius: 14px;
}

.app-phone-figure figcaption {
  padding: 11px 5px 3px;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.45;
}

.app-audit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-registration-bar {
  align-items: center;
  gap: 18px;
}

.app-registration-bar > div {
  min-width: 0;
}

.app-registration-bar .button {
  max-width: 370px;
  white-space: normal;
}

.app-casino-warning {
  border-left-color: #646464;
  background: #f1f1f1;
}

.app-steps,
.app-troubleshoot-flow ol {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  counter-reset: app-step;
  list-style: none;
}

.app-steps li,
.app-troubleshoot-flow li {
  position: relative;
  min-height: 62px;
  padding: 14px 16px 14px 62px;
  border: 1px solid var(--app-line);
  border-radius: 13px;
  background: #fff;
  counter-increment: app-step;
}

.app-steps li::before,
.app-troubleshoot-flow li::before {
  position: absolute;
  top: 12px;
  left: 13px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #102746;
  background: var(--app-yellow);
  content: counter(app-step);
  font-weight: 950;
}

.app-troubleshoot-flow {
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #102a4c, #13213a);
}

.app-troubleshoot-flow h3 {
  margin: 0;
  color: #fff;
}

.app-troubleshoot-flow li {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
}

.app-troubleshoot-flow li span {
  display: block;
  margin-top: 4px;
  color: #d6e2ef;
}

.app-id-checker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.app-id-checker > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid #cddff1;
  border-radius: 12px;
  background: #f2f8ff;
}

.app-id-checker span {
  display: block;
  margin-bottom: 6px;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 850;
}

.app-id-checker code {
  color: #144b7d;
  font-size: 12px;
}

.app-security-verdict {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #f1b9b9;
  border-radius: 15px;
  background: #fff1f1;
}

.app-security-verdict span {
  display: inline-block;
  margin-bottom: 8px;
  color: #b31717;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.app-security-verdict strong {
  display: block;
  color: #731313;
}

.app-dual-cta,
.app-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  padding: 26px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(255,217,0,.2), transparent 30%),
    linear-gradient(135deg, #172c52, #35227a);
}

.app-dual-cta h3,
.app-final-cta h2 {
  margin: 4px 0 8px;
  color: #fff;
}

.app-dual-cta p,
.app-final-cta p {
  margin: 0;
  color: #d8e2f2;
}

.app-dual-cta span,
.app-final-cta span {
  color: var(--app-yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.app-dual-cta > div:last-child,
.app-final-cta > div:last-child {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.app-dual-cta .button,
.app-final-cta .button {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 48px;
  padding: 12px 15px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.app-method-grid article {
  border-top: 4px solid #9abce0;
}

.app-source-list {
  columns: 2;
  column-gap: 34px;
}

.app-source-list li {
  margin: 0 0 8px;
  break-inside: avoid;
}

.app-author-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.app-author-grid article {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  align-items: start;
  gap: 14px;
  min-width: 0;
  padding: 18px !important;
  border: 1px solid var(--app-line);
  border-top: 4px solid var(--app-yellow);
  border-radius: 16px;
  background: #fff;
}

.app-author-grid img {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
}

.app-author-grid article > div {
  min-width: 0;
}

.app-author-grid span {
  display: block;
  color: #826900;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.app-author-grid h3 {
  margin: 4px 0 6px;
}

.app-author-grid p {
  margin: 0;
  overflow-wrap: anywhere;
}

.app-faq-section {
  overflow: hidden;
  background: linear-gradient(145deg, #f7fbff, #fffdf3);
}

.app-faq-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.app-faq-heading h2 {
  margin-bottom: 0;
}

.app-faq-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.app-faq-badges span {
  padding: 6px 9px;
  border: 1px solid #cfe0f1;
  border-radius: 999px;
  color: #174e80;
  background: #fff;
  font-size: 11px;
  font-weight: 850;
}

.app-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px 12px;
  margin-top: 20px;
}

.app-faq-list details {
  min-width: 0;
  margin: 0 !important;
  border: 1px solid #d8e3ee !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.app-faq-list summary {
  padding: 15px 44px 15px 16px !important;
  overflow-wrap: anywhere;
  font-weight: 850 !important;
}

.app-faq-list details p {
  margin: 0;
  padding: 0 16px 16px;
}

.app-final-cta {
  margin: 28px 0;
}

@media (max-width: 1100px) {
  .app-answer-grid,
  .app-download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-download-card:last-child {
    grid-column: 1 / -1;
  }

  .app-id-checker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-hero-montage {
    min-height: 320px;
  }

  .app-hero-montage figure {
    height: 290px;
  }

  .app-product-layout,
  .app-product-layout-reverse {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .app-product-layout-reverse figure {
    order: 2;
  }

  .app-product-layout-reverse > div {
    order: 1;
  }

  .app-dual-cta,
  .app-final-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-hero-montage {
    min-height: 280px;
    padding: 14px 10px 0;
    gap: 6px;
  }

  .app-hero-montage figure {
    height: 265px;
    border-radius: 12px 12px 0 0;
  }

  .app-hero-montage figcaption {
    font-size: 10px;
  }

  .app-answer-grid,
  .app-audit-grid,
  .app-ios-grid,
  .app-security-grid,
  .app-diagnostic-grid,
  .app-permission-grid,
  .app-method-grid,
  .app-bonus-grid,
  .app-download-grid,
  .app-faq-list,
  .app-author-grid,
  .app-product-layout,
  .app-product-layout-reverse,
  .app-id-checker {
    grid-template-columns: 1fr;
  }

  .app-download-card:last-child {
    grid-column: auto;
  }

  .app-snapshot-table tbody tr {
    grid-template-columns: 1fr;
  }

  .app-snapshot-table tbody td {
    border-right: 0;
    border-bottom: 1px solid #e2e9f1;
  }

  .app-snapshot-table tbody td:last-child {
    border-bottom: 0;
  }

  .app-finder-inputs,
  .app-finder-result {
    grid-template-columns: 1fr;
  }

  .app-store-button {
    width: 100%;
  }

  .app-product-layout-reverse figure,
  .app-product-layout-reverse > div {
    order: initial;
  }

  .app-phone-figure {
    position: static;
    max-width: 340px;
  }

  .app-registration-bar {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .app-registration-bar .button {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }

  .app-source-list {
    columns: 1;
  }

  .app-faq-heading {
    display: grid;
    align-items: start;
  }

  .app-faq-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .app-hero-montage {
    min-height: 224px;
  }

  .app-hero-montage figure {
    height: 215px;
  }

  .app-hero-montage figcaption {
    right: 4px;
    bottom: 5px;
    left: 4px;
    padding: 5px 3px;
  }

  .app-finder,
  .app-dual-cta,
  .app-final-cta,
  .app-troubleshoot-flow {
    padding: 17px;
  }

  .app-answer-grid article,
  .app-audit-grid article,
  .app-ios-grid article,
  .app-security-grid article,
  .app-diagnostic-grid article,
  .app-permission-grid article,
  .app-method-grid article,
  .app-bonus-grid article,
  .app-download-card {
    padding: 16px;
  }

  .app-author-grid article {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    padding: 15px !important;
  }

  .app-author-grid img {
    width: 58px;
    height: 58px;
  }

  .app-steps li,
  .app-troubleshoot-flow li {
    padding-left: 56px;
  }
}
