/* ============================================================================
   PLAKATVEGG (fase 3 D+E) — gjemt eksperiment-flate. Helt additivt; ingen av
   disse reglene treffer den vanlige appen (egne #wall- og .wt-selektorer).
   ============================================================================ */
#wallScreen {
  position: fixed; inset: 0; z-index: 76; display: none; flex-direction: column;
  background: radial-gradient(1000px 600px at 50% -5%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%), var(--bg);
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
}
#wallScreen.open { display: flex; }
.wall-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; max-width: 1080px; margin: 0 auto; width: 100%; }
.wall-head h2 { font-family: var(--font-display); margin: 0; font-size: clamp(22px, 4vw, 34px); }
.wall-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; max-width: 60ch; }
#wallClose { border: 1px solid var(--line); background: rgba(255,255,255,.07); color: var(--text); border-radius: 999px; padding: 9px 14px; cursor: pointer; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.wall-status { max-width: 1080px; margin: 8px auto 0; width: 100%; color: var(--accent-2); font-size: 13px; min-height: 18px; line-height: 1.4; }

.wall-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px;
  max-width: 1080px; margin: 14px auto 0; width: 100%; overflow-y: auto; flex: 1;
  padding-bottom: 92px; align-content: start;
}
.wtile { cursor: pointer; transition: transform .25s var(--ease); }
.wtile:hover { transform: translateY(-3px); }
.wtile.sel { transform: translateY(-3px) scale(1.02); }
.wt-poster {
  position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden;
  background-size: cover; background-position: center;
  border: 2px solid var(--line); box-shadow: 0 10px 26px rgba(0,0,0,.45);
}
.wtile.sel .wt-poster { border-color: var(--accent); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 40%, transparent); }
.wtile.up .wt-poster { outline: 2px solid var(--up); outline-offset: -2px; }
.wtile.down .wt-poster { outline: 2px solid var(--down); outline-offset: -2px; }
.wt-rank { position: absolute; top: 6px; left: 6px; background: rgba(8,8,12,.72); color: var(--accent-2); font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.wt-vote { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; display: grid; place-content: center; border-radius: 50%; font-size: 11px; font-weight: 800; }
.wt-vote.up { background: var(--up); color: #06281c; }
.wt-vote.down { background: var(--down); color: #2a0810; }
.wt-check { position: absolute; inset: 0; display: grid; place-content: center; font-size: 40px; color: #fff; background: color-mix(in srgb, var(--accent) 28%, rgba(0,0,0,.42)); font-weight: 800; }
.wt-title { font-weight: 700; font-size: 13px; margin-top: 7px; line-height: 1.25; }
.wt-uuid { font-size: 10px; color: var(--muted); margin-top: 2px; font-family: ui-monospace, "SF Mono", monospace; letter-spacing: .02em; }

.wall-bar {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; z-index: 78;
  background: rgba(8,8,12,.82); backdrop-filter: blur(12px); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 10px; box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.wall-bar button { border: 0; cursor: pointer; border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 13px; font-family: var(--font-body); }
.wall-bar .primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #14110a; }
.wall-bar .ghost { background: rgba(255,255,255,.07); color: var(--text); }
.wall-bar button:disabled { opacity: .4; cursor: not-allowed; }

#wallBtn {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 79; display: none;
  background: rgba(8,8,12,.8); backdrop-filter: blur(10px); color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.45);
}
