/* Offerwall-network layer (second reference: established crypto offerwalls).
   Adds vivid activity art, coin reward pills, the tilted offer wall, advertiser goal columns
   and the CPA goal chain. Loaded after home.css. */

/* Vivid activity art tiles */
.art { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px -6px rgba(0,0,0,.5); }
.art .icon { width: 20px; height: 20px; stroke-width: 2; }
.art-sun { background: linear-gradient(140deg, #ffcf3f, #ff8a1f); color: #2a1600; }
.art-ember { background: linear-gradient(140deg, #ff8a3d, #f0412c); }
.art-violet { background: linear-gradient(140deg, #9a7bff, #6a3ff5); }
.art-sea { background: linear-gradient(140deg, #3fd6c4, #0f9b8e); }
.art-sky { background: linear-gradient(140deg, #5cb2ff, #2d6bf0); }
.art-rose { background: linear-gradient(140deg, #ff7ab6, #e0336f); }
.art-leaf { background: linear-gradient(140deg, #7fe07a, #22a35a); }

/* Coin reward pill */
.coin { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 7px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.coin .icon { width: 15px; height: 15px; stroke-width: 2; }
.type-tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line); }

/* Hero panel v2: filter chips + vivid rows */
.ow-filters { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
.ow-filters span { height: 30px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.ow-filters span.is-active { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.ow-row2 { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 16px; margin: 0 8px; border-radius: 12px; animation: row-in .7s cubic-bezier(.16,1,.3,1) both; }
.ow-row2 + .ow-row2 { margin-top: 2px; }
.ow-row2:hover { background: var(--surface-2); }
.ow-row2.is-hot { background: var(--gold-wash); box-shadow: inset 0 0 0 1px rgba(255,194,45,.35); }
.ow-row2:nth-of-type(2) { animation-delay: .08s; } .ow-row2:nth-of-type(3) { animation-delay: .16s; } .ow-row2:nth-of-type(4) { animation-delay: .24s; } .ow-row2:nth-of-type(5) { animation-delay: .32s; }
.ow-list { padding: 8px 0; }
.ow-credited { position: absolute; left: -40px; bottom: -30px; display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: credited 1s cubic-bezier(.16,1,.3,1) .6s both; }
.ow-credited .ok { width: 32px; height: 32px; border-radius: 50%; background: var(--green-wash); color: var(--green); display: grid; place-items: center; flex: none; }
.ow-credited strong { display: block; font-size: 14px; }
.ow-credited small { display: block; font-size: 12px; color: var(--text-3); }
@keyframes credited { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* Inside the offerwall: tilted wall */
.wall-section { padding-top: 112px; overflow: hidden; }
.wall-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.wall-head .lead { margin: 16px auto 0; }
.wall { position: relative; height: 560px; perspective: 1600px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 80%, transparent 100%); mask-composite: intersect; }
.wall-plane { position: absolute; left: 50%; top: 50%; width: 1720px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; transform: translate(-50%, -50%) rotateX(32deg) rotateZ(-10deg); transform-style: preserve-3d; animation: drift 38s linear infinite alternate; }
@keyframes drift { from { transform: translate(-50%, -50%) rotateX(32deg) rotateZ(-10deg) translateX(-60px); } to { transform: translate(-50%, -50%) rotateX(32deg) rotateZ(-10deg) translateX(60px); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: 0 18px 30px -18px rgba(0,0,0,.7); }
.tile .cover { width: 100%; height: 112px; border-radius: 12px; display: grid; place-items: center; position: relative; overflow: hidden; }
.tile .cover .icon { width: 44px; height: 44px; stroke-width: 1.6; }
.tile .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 45%); }
.tile strong { display: block; margin-top: 10px; font-size: 14px; letter-spacing: -0.01em; }
.tile small { display: block; font-size: 12px; color: var(--text-3); }
.tile footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.tile .coin { height: 24px; font-size: 12px; }
.wall-note { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 8px; }

/* Advertiser goals */
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.goal { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.goal-top { display: flex; align-items: center; gap: 12px; }
.goal h3 { font-size: 20px; letter-spacing: -0.02em; margin-top: 20px; line-height: 1.25; }
.goal ul { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.goal li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.goal li strong { font-size: 14px; }
.goal li span { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.goal p { margin-top: 16px; font-size: 14px; color: var(--text-2); }
.goal .link { margin-top: auto; padding-top: 20px; }
.goals-cta { display: flex; justify-content: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

/* CPA goal chain */
.chain { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.chain-visual { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-md); }
.chain-offer { display: flex; gap: 14px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.chain-offer strong { display: block; font-size: 16px; }
.chain-offer small { color: var(--text-3); font-size: 13px; }
.chain-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.chain-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; position: relative; }
.chain-steps li + li::before { content: ""; position: absolute; left: 31px; top: -11px; height: 10px; width: 2px; background: var(--line); }
.chain-steps .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.chain-steps li.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.chain-steps li.done .n .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.chain-steps li.now { box-shadow: inset 0 0 0 1px rgba(255,194,45,.45); background: var(--gold-wash); }
.chain-steps strong { display: block; font-size: 14px; }
.chain-steps code { font-size: 12px; color: var(--text-3); }
.chain-note { margin-top: 16px; font-size: 12px; color: var(--text-3); display: flex; gap: 8px; align-items: center; }
.chain-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.chain-points li { display: flex; gap: 14px; }
.chain-points strong { display: block; font-size: 16px; }
.chain-points span { display: block; color: var(--text-2); font-size: 15px; margin-top: 2px; }

/* How it works strip */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); margin-top: 56px; counter-reset: flow; }
.flow li { list-style: none; padding: 24px; display: flex; gap: 14px; counter-increment: flow; }
.flow li + li { border-left: 1px solid var(--line-soft); }
.flow li::before { content: counter(flow); width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.flow strong { display: block; font-size: 15px; }
.flow span { display: block; font-size: 13px; color: var(--text-3); margin-top: 4px; }

@media (max-width: 1080px) {
  .goals { grid-template-columns: minmax(0, 1fr); }
  .chain { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(3) { border-left: 0; }
  .flow li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .ow-credited { left: 12px; }
}
@media (max-width: 720px) {
  .wall { height: 420px; }
  .wall-plane { width: 1300px; gap: 12px; }
  .ow-row2 { grid-template-columns: minmax(0, 1fr) auto; margin: 0 4px; padding: 10px 12px; }
  .ow-row2 .type-tag { display: none; }
  .ow-credited { position: static; margin-top: 12px; animation: none; }
  .flow { grid-template-columns: 1fr; }
  .flow li + li { border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (prefers-reduced-motion: reduce) { .wall-plane { animation: none; } }
