/* Hikari console icons — load AFTER the site's existing /style.css.
 * No Font Awesome Pro, JavaScript, CDN or additional font is required.
 * Paths below are relative to THIS CSS file, not to the HTML page.
 */
.hikari-console-icon {
  display: inline-block;
  width: 1.0714285714em;
  height: 1em;
  flex-shrink: 0;
  font-style: normal;
  line-height: 1;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask-image: var(--hikari-console-svg);
  mask-image: var(--hikari-console-svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.hikari-console--switch { --hikari-console-svg: url("./icons/consoles/switch.svg?v=20261125-3"); }
.hikari-console--ps3    { --hikari-console-svg: url("./icons/consoles/ps3.svg?v=20261129-1"); }
.hikari-console--psp    { --hikari-console-svg: url("./icons/consoles/psp.svg?v=20261125-2"); }
.hikari-console--psvita { --hikari-console-svg: url("./icons/consoles/psvita.svg?v=20261129-1"); }

/* Matches the live site's .download-card i rule (25 November 2026).
 * Restricted to NEW icons: does not resize existing FA icons or cards.
 */
.download-card .hikari-console-icon {
  font-size: var(--hikari-console-size, 42px);
  width: var(--hikari-console-width, 45px);
  height: 1em;
  color: var(--hikari-console-color, #8ac3ff);
}

/* The wide PSP, Vita and PS3 wordmarks need more visual width. Equal negative margins keep
 * its centre and the following text aligned with the existing 45px icons.
 */
.download-card .hikari-console--psp,
.download-card .hikari-console--psvita,
.download-card .hikari-console--ps3 {
  width: calc(var(--hikari-console-width, 45px) + 15px);
  margin-inline: -7.5px;
}
