/* Final plan Phase H: Sponsors in Minecraft-style block frames.
   Diamond = diamond block, Gold = gold block, Silver = iron block.
   Pure CSS (bevel via inset shadows, pixel texture via gradients); the logo
   sits on a neutral "item plate" so any logo stays legible, and is scaled
   with object-fit: contain (aspect ratio always preserved). */

.tvx-sponsors-body { max-width: 1100px; }

.tvx-sponsor-tier { margin: 0 0 32px; }
.tvx-sponsor-tier-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--tvx-font-pixel, monospace);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 1.05rem; margin: 0 0 14px; color: #f4f4f4;
  text-shadow: 2px 2px 0 #000;
}
.tvx-sponsor-tier-gem { width: 18px; height: 18px; flex: none; background: var(--b-face);
  box-shadow: inset 3px 3px 0 var(--b-light), inset -3px -3px 0 var(--b-dark), 0 0 0 2px var(--b-edge); }

.tvx-sponsor-tier-diamond { --b-face: #4fd8d2; --b-light: #b4fff9; --b-dark: #1d8f8b; --b-edge: #0b4644; --b-px: #35c3bd; --cols: 300px; --plate: 150px; }
.tvx-sponsor-tier-gold    { --b-face: #f6cf3f; --b-light: #fff3a1; --b-dark: #b07f0c; --b-edge: #5c3f04; --b-px: #e4b72a; --cols: 240px; --plate: 120px; }
.tvx-sponsor-tier-silver  { --b-face: #d3d3d3; --b-light: #ffffff; --b-dark: #8c8c8c; --b-edge: #3f3f3f; --b-px: #bdbdbd; --cols: 190px; --plate: 96px; }

.tvx-sponsor-tier .tvx-sponsor-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--cols), 100%), 1fr));
}
.tvx-sponsor-cell { display: flex; }

.tvx-sponsor-block {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  padding: 14px; color: #111; text-decoration: none;
  background-color: var(--b-face);
  /* 4px pixel speckle, like a block texture */
  background-image:
    linear-gradient(45deg, var(--b-px) 25%, transparent 25%, transparent 75%, var(--b-px) 75%),
    linear-gradient(45deg, var(--b-px) 25%, transparent 25%, transparent 75%, var(--b-px) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px;
  box-shadow:
    inset 6px 6px 0 var(--b-light),
    inset -6px -6px 0 var(--b-dark),
    0 0 0 3px var(--b-edge),
    6px 6px 0 3px rgba(0, 0, 0, 0.45);
  image-rendering: pixelated;
}
a.tvx-sponsor-block { cursor: pointer; transition: transform 120ms steps(2), box-shadow 120ms steps(2); }
a.tvx-sponsor-block:hover { transform: translate(-2px, -2px); }
a.tvx-sponsor-block:focus-visible { outline: 4px solid #ffffff; outline-offset: 6px; }

.tvx-sponsor-plate {
  display: flex; align-items: center; justify-content: center;
  height: var(--plate); padding: 10px;
  background: #f3efe4;
  box-shadow: inset 3px 3px 0 #8b8577, inset -3px -3px 0 #ffffff, 0 0 0 2px var(--b-edge);
}
.tvx-sponsor-tier .tvx-sponsor-logo {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; image-rendering: auto;
}
.tvx-sponsor-wordmark { font-weight: 700; font-size: 1.2rem; text-align: center; overflow-wrap: anywhere; color: #222; }
.tvx-sponsor-tier .tvx-sponsor-name {
  font-size: 0.95rem; font-weight: 700; text-align: center; overflow-wrap: anywhere;
  color: #111; background: rgba(255, 255, 255, 0.72); padding: 2px 6px;
}

@media (max-width: 480px) {
  .tvx-sponsor-tier .tvx-sponsor-grid { gap: 14px; }
  .tvx-sponsor-block { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  a.tvx-sponsor-block { transition: none; }
  a.tvx-sponsor-block:hover { transform: none; }
}
@media (forced-colors: active) {
  .tvx-sponsor-block { border: 3px solid CanvasText; }
}

/* final2-dev.1: staff preview (same markup as the public page) */
.tvx-sponsor-preview { padding: 12px; background: #11161a; border: 1px solid #2f3d48; }
.tvx-sponsor-preview .tvx-sponsor-tier-title { font-size: 0.9rem; }
.tvx-sponsor-cell.is-hidden-preview .tvx-sponsor-block { opacity: 0.55; outline: 3px dashed #fbbf24; outline-offset: 2px; }
.tvx-sponsor-hidden-tag { align-self: center; padding: 1px 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  color: #2a1a02; background: #fbbf24; }
