/* Shared public-site system.  This layer intentionally changes presentation
   only; each page keeps its existing markup, links, and interactive features. */
:root {
  --public-ink: #102f43;
  --public-blue: #168fda;
  --public-blue-dark: #0872ae;
  --public-canvas: #f6f8fa;
  --public-surface: #ffffff;
  --public-line: #d7e2e8;
  --public-muted: #5e7483;
  --public-accent: #ecb83d;
}

html { background: var(--public-canvas); }
body { color: var(--public-ink); background: var(--public-canvas); font-family: "Nunito", system-ui, sans-serif; font-weight: 700; }
:focus-visible { outline: 3px solid rgba(17, 107, 151, .38); outline-offset: 3px; }
.shell { width: min(1160px, calc(100% - 48px)); }

.brand { font-size: 1.08rem; letter-spacing: -.025em; text-shadow: none; }
.brand-mark { border-radius: 11px; box-shadow: none; transform: none; }
.button { min-height: 42px; padding: 9px 15px; border: 1px solid var(--public-blue); border-radius: 8px; color: #fff; background: var(--public-blue); box-shadow: none; font-family: "Nunito", system-ui, sans-serif; font-size: .83rem; font-weight: 900; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { background: var(--public-blue-dark); border-color: var(--public-blue-dark); box-shadow: none; transform: none; }
.button:active { box-shadow: none; transform: none; }
.button.light,
.button.outline,
.button.ghost { border-color: rgba(255,255,255,.72); color: #fff; background: transparent; box-shadow: none; }
.button.light:hover,
.button.outline:hover,
.button.ghost:hover { color: var(--public-blue-dark); border-color: #fff; background: #fff; box-shadow: none; }
.eyebrow { padding: 5px 8px; border: 1px solid var(--public-line); border-radius: 6px; color: var(--public-blue-dark); background: #eef5f8; font-size: .66rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.hero .eyebrow { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }

/* Public navigation and page framing */
.site-header,
.topbar { border: 0; }
.header-actions,
.top-actions { gap: 16px; }
.text-link,
.top-actions .guide-link { font-size: .78rem; font-weight: 800; text-decoration: none; }
.text-link:hover,
.top-actions .guide-link:hover { text-decoration: none; opacity: .76; }
.hero,
#main-content .hero { color: #fff; background: #158fce; }
.hero::before,
.hero::after,
#main-content .hero::before,
#main-content .hero::after,
.hero-orb { display: none; }
.hero h1,
#main-content h1 { letter-spacing: -.045em; line-height: .96; text-shadow: none; }
.hero h1 span,
#main-content h1 span,
#main-content h1 strong { color: #fff; }
.hero-copy > p:not(.eyebrow),
#main-content .hero-copy > p:not(.eyebrow) { color: rgba(255,255,255,.82); }

.site-footer,
.footer { padding: 30px 0; color: #d8effa; background: #0871ad; }
.footer-brand,
.site-footer .footer-brand { color: #fff; }
.site-footer nav a:hover,
.footer nav a:hover { color: #fff; }

/* Landing page: image-led, quieter supporting content */
#main-content .hero { min-height: min(760px, 100svh); }
#main-content .hero-grid { grid-template-columns: minmax(0, .87fr) minmax(360px, 1.13fr); gap: 42px; padding-top: 116px; padding-bottom: 48px; }
#main-content .hero-art-wrap::before { display: none; }
#main-content .hero-art { right: -2%; bottom: 4px; width: min(108%, 630px); filter: drop-shadow(0 18px 18px rgba(0, 29, 44, .26)); transform: none; }
#main-content .bubble { right: 8%; bottom: 18%; padding: 8px 10px; border: 0; border-radius: 7px; color: var(--public-ink); box-shadow: 0 8px 22px rgba(0, 29, 44, .16); font-family: "Nunito", system-ui, sans-serif; font-size: .76rem; }
#main-content .how { padding: 92px 0; background: var(--public-surface); }
#main-content .how::after { display: none; }
#main-content .section-heading { max-width: 620px; margin-bottom: 48px; }
#main-content .section-heading .eyebrow { color: var(--public-blue-dark); background: #eef5f8; }
#main-content .section-heading h2 { color: var(--public-ink); font-size: clamp(2rem, 3.8vw, 3.25rem); }
#main-content .section-heading p { color: var(--public-muted); font-size: .9rem; }
#main-content .steps { gap: 0; border-top: 1px solid var(--public-line); border-bottom: 1px solid var(--public-line); }
#main-content .step { min-height: 0; padding: 27px 24px 30px; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
#main-content .step + .step { border-left: 1px solid var(--public-line); }
#main-content .step:nth-child(2),
#main-content .step:nth-child(3) { background: transparent; }
#main-content .step-number { width: 30px; height: 30px; margin: 0 0 19px; border-radius: 6px; color: var(--public-blue-dark); background: #e6f1f6; box-shadow: none; font-family: "Nunito", system-ui, sans-serif; font-size: .72rem; font-weight: 900; }
#main-content .step h3 { color: var(--public-ink); font-size: 1.18rem; }
#main-content .step p { margin-left: 0; color: var(--public-muted); font-size: .8rem; }
#main-content .studio { padding: 84px 0; background: #0878bb; }
#main-content .studio-photo { border: 0; border-radius: 12px; box-shadow: 0 16px 30px rgba(0, 22, 34, .22); }
#main-content .studio-copy h2 { font-size: clamp(2rem, 3.7vw, 3.15rem); }
#main-content .studio-copy p { color: #d0dde4; }
#main-content .studio-copy .button { color: var(--public-blue-dark); border-color: #fff; background: #fff; }

/* Public SFX catalogue */
.hero-grid { min-height: 500px; padding-top: 116px; padding-bottom: 52px; }
.hero h1 { font-size: clamp(2.8rem, 5vw, 4.7rem); }
.hero-art { opacity: .96; }
.sound-card { border: 0; border-radius: 8px; box-shadow: 0 12px 22px rgba(0, 31, 46, .18); font-family: "Nunito", system-ui, sans-serif; font-size: .72rem; transform: none; }
.record { border-width: 8px; box-shadow: none; transform: none; }
.card-top { top: 14px; right: 16px; }.card-mid { right: 4px; bottom: 86px; }.card-bottom { bottom: 14px; left: 8px; }
.packs-section { padding: 84px 0 96px; }
.section-heading h2 { color: var(--public-ink); font-size: clamp(2rem, 3.7vw, 3.2rem); }
.section-description { color: var(--public-muted); }
.upload-prompt { border-color: var(--public-line); border-radius: 8px; box-shadow: none; }
.upload-prompt:hover { transform: none; border-color: #a9c8d8; }
.upload-icon { border-radius: 8px; background: var(--public-blue); }
.toolbar { margin: 32px 0 18px; }
.search-field,
.sort-field { min-height: 44px; border-color: var(--public-line); border-radius: 8px; box-shadow: none; }
.sort-field select { min-height: 42px; }
.packs-grid { gap: 22px; }
.packs-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pack-card { border-color: var(--public-line); border-radius: 12px; box-shadow: none; }
.pack-card:hover { border-color: #a9c8d8; box-shadow: 0 11px 24px rgba(16, 58, 80, .1); transform: translateY(-2px); }
.pack-cover { border-radius: 11px 11px 0 0; background: #edf5f8; }
.pack-cover img { padding: 10px; }
.cover-note { right: 9px; bottom: 9px; border-radius: 6px; box-shadow: 0 2px 6px rgba(16, 58, 80, .12); }
.pack-body { padding: 15px; }
.pack-body h3 { font-size: 1.08rem; }
.creator { color: var(--public-muted); }
.tag { border-radius: 6px; }
.view-button { margin-top: 14px; border-color: var(--public-line); border-radius: 7px; color: var(--public-blue-dark); background: #f6fafc; font-family: "Nunito", system-ui, sans-serif; font-weight: 900; }
.view-button:hover { background: var(--public-blue); }
.modal-backdrop { background: rgba(10, 38, 53, .62); backdrop-filter: none; }
.pack-modal { border-color: var(--public-line); border-radius: 12px; box-shadow: 0 22px 54px rgba(0, 24, 38, .27); }
.close-button { border-radius: 7px; }
.modal-icon { border-radius: 9px; }.clip-row { border-color: var(--public-line); border-radius: 8px; }.play-button { border-radius: 7px; background: var(--public-blue); }
.modal-actions { gap: 9px; }.modal-upload-link { border-radius: 7px; }.report-button { border-radius: 7px; font-family: "Nunito", system-ui, sans-serif; font-weight: 900; }
.report-field select { border-color: var(--public-line); border-radius: 7px; }

/* Creator guide */
.hero-reward { border: 1px solid #d3e1e8; border-radius: 12px; background: #fff; box-shadow: 0 18px 32px rgba(0, 27, 41, .18); transform: none; }
.hero-reward::after,
.spark { display: none; }
.hero-reward > strong { color: var(--public-blue-dark); }.hero-reward em { color: #c98719; }
.guide-section,
.tips-section { padding: 88px 0; background: var(--public-surface); }
.guide-section .section-heading,
.tips-section .section-heading { margin-bottom: 46px; }
.steps { gap: 0; }
.step { min-height: 0; padding: 22px 18px 28px; border: 0; border-top: 2px solid #c6dce7; border-radius: 0; background: transparent; box-shadow: none; }
.step:nth-child(even) { background: transparent; }.step + .step { margin-left: 20px; }
.step-number { top: 13px; right: 13px; border-radius: 6px; background: var(--public-blue); }
.step-icon { border-radius: 8px; background: #e9f3f7; }.step-icon.yellow { background: #fbf0d0; }
.step h3 { color: var(--public-ink); font-size: 1.13rem; }.step p { color: var(--public-muted); }
.reward-section { padding: 86px 0; background: #0878bb; }
.reward-rules { border-color: rgba(255,255,255,.3); border-radius: 12px; background: transparent; box-shadow: none; }
.reward-rules li i { border-radius: 5px; }.reward-button { color: var(--public-blue-dark); background: #fff; box-shadow: none; }
.tips-grid { gap: 0; border-top: 1px solid var(--public-line); border-bottom: 1px solid var(--public-line); }
.tips-grid article { padding: 25px 22px; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; }.tips-grid article + article { border-left: 1px solid var(--public-line); }
.tips-grid article > span { width: 42px; height: 42px; margin: 0 0 14px; border-radius: 8px; }.tips-grid h3 { color: var(--public-ink); font-size: 1.1rem; }.tips-grid p { margin-left: 0; color: var(--public-muted); }

@media (max-width: 850px) {
  #main-content .hero-grid { grid-template-columns: 1fr; gap: 14px; padding-top: 108px; text-align: center; }
  #main-content .hero-copy { margin: 0 auto; }
  #main-content .hero-actions { justify-content: center; }
  #main-content .hero-art-wrap { width: min(100%, 610px); min-height: 390px; margin: 0 auto; }
  #main-content .hero-art { right: 0; }
  .step + .step { margin-left: 0; }
  .packs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .shell { width: min(calc(100% - 32px), 560px); }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .header-actions,
  .top-actions { gap: 8px; }
  .header-actions .button,
  .top-actions .button { min-height: 38px; padding: 8px 10px; border-radius: 7px; }
  .hero-grid { min-height: 0; padding: 98px 0 38px; text-align: center; }
  .hero-copy { margin: auto; }
  .hero-actions { justify-content: center; }
  .hero-actions .button { flex: 1 1 150px; }
  /* Keep the stage art in its own flow area on small screens so the
     absolutely positioned image cannot climb over the action buttons. */
  #main-content .hero-art-wrap { height: clamp(340px, 102vw, 470px); min-height: 0; margin-top: 20px; }
  #main-content .hero-art { top: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; }
  #main-content .bubble { right: 4%; bottom: 14%; }
  .hero h1,
  #main-content h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  #main-content .hero { min-height: 0; }
  #main-content .hero-art-wrap { min-height: min(92vw, 360px); }
  #main-content .bubble { right: 4%; bottom: 16%; }
  #main-content .how,
  .guide-section,
  .tips-section,
  .packs-section { padding: 62px 0; }
  #main-content .section-heading,
  .guide-section .section-heading,
  .tips-section .section-heading { margin-bottom: 32px; }
  #main-content .steps,
  .tips-grid { display: block; border-top: 1px solid var(--public-line); border-bottom: 1px solid var(--public-line); }
  #main-content .step,
  .tips-grid article { display: grid; grid-template-columns: 40px 1fr; gap: 13px; padding: 18px 0; text-align: left; }
  #main-content .step + .step,
  .tips-grid article + article { border-top: 1px solid var(--public-line); border-left: 0; }
  #main-content .step-number { grid-row: span 2; width: 30px; height: 30px; margin: 0; }
  #main-content .step p { grid-column: 2; margin: 3px 0 0; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .step { padding: 18px 0 21px 68px; }.step + .step { margin-left: 0; }.step-icon { top: 18px; left: 0; width: 46px; height: 46px; }.step-number { right: 0; }
  .tips-grid article > span { grid-row: span 2; width: 40px; height: 40px; margin: 0; }.tips-grid article p { grid-column: 2; }
  .packs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; gap: 9px; }
  .pack-card { width: auto; border-radius: 8px; }
  .pack-card:hover { transform: none; }
  .pack-cover { border-radius: 7px 7px 0 0; }
  .pack-cover img { padding: 4px; }
  .cover-note { right: 5px; bottom: 5px; padding: 4px 5px; font-size: .52rem; }
  .pack-body { padding: 8px; }
  .pack-body h3 { font-size: .78rem; letter-spacing: -.02em; }
  .creator { margin-top: 4px; font-size: .56rem; overflow-wrap: anywhere; }
  .pack-tags { gap: 4px; margin-top: 8px; }
  .tag { gap: 3px; padding: 3px 5px; border-radius: 4px; font-size: .49rem; }
  .view-button { gap: 3px; margin-top: 8px; padding: 6px 7px; border-radius: 5px; font-size: .61rem; }
  .footer-inner,
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (min-width: 1500px) {
  .packs-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* SFX cover: keep the image edge-to-edge and isolate the preview icon size. */
.pack-card { overflow: hidden; }
.pack-cover {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 11px 11px 0 0;
  appearance: none;
  line-height: normal;
}
.pack-cover img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  object-fit: cover;
}
.pack-cover > i { font-size: 3rem; }
.cover-note { z-index: 1; line-height: 1; }
.cover-note i { font-size: .68rem; }
.pack-body { min-width: 0; }
.pack-body h3,
.creator { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.tag {
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding-right: 4px;
  padding-left: 4px;
  white-space: nowrap;
}
.view-button { min-height: 42px; margin-top: auto; }

@media (max-width: 650px) {
  .pack-cover { border-radius: 7px 7px 0 0; }
  .cover-note { gap: 4px; padding: 4px 5px; font-size: .52rem; }
  .cover-note i { font-size: .52rem; }
  .pack-tags { min-height: 24px; }
  .view-button { min-height: 30px; }
}
