/* links.ripperwing.com — link-in-bio pages. Same colours, font and button shapes as ripperwing.com (main/src/styles.css). */
:root {
  --color-bg: #000;
  --color-text: #fff;
  --color-muted: #ccc;
  --color-border: #222;
  --color-surface: rgb(13, 13, 13);
  --color-accent: #814ac8;
  --color-accent-light: #df7afe;
  --color-accent-rgb: 129 74 200;
  --font: "Figtree", Arial, sans-serif;
  --radius-card: 8px;
  --radius-box: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  text-align: center;
}

.cover {
  width: 100%;
  aspect-ratio: 460 / 215;
  object-fit: cover;
  border-radius: var(--radius-box);
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.logo {
  border-radius: 16px;
}

/* Game page screenshots: a row of 16:9 images, slid by js/slider.js */
.shots {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-box);
  box-shadow: inset 0 0 0 1px var(--color-border);
  background: var(--color-surface);
}

.shots__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.shots__img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.title {
  margin: 20px 0 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* A game logo image in place of the title text (games[i].logo) */
.title--logo {
  width: 100%;
}

.title--logo img {
  width: 100%;
  height: auto;
}

.hook {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-muted);
}

.label {
  align-self: stretch;
  margin: 28px 0 0;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: var(--color-muted);
}

/* Big tappable buttons */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 52px;
  border-radius: var(--radius-box);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-border);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

/* No icon on the left: the label may use the full width (wide game fonts) */
.link--plain {
  padding-left: 16px;
  padding-right: 16px;
}

.link:hover {
  box-shadow: inset 0 0 0 1px var(--color-accent-light);
  background: rgb(var(--color-accent-rgb) / 0.15);
}

.link--primary {
  background: var(--color-accent);
  box-shadow: none;
}

.link--primary:hover {
  background: var(--color-accent);
  box-shadow: none;
  opacity: 0.85;
}

/* Line above "Get Content Creator Access" */
.note {
  margin-top: 8px;
  padding: 0 8px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--color-muted);
}

.link .icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

/* Root page: one card per game */
.games {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}

.game {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius-box);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-border);
  text-align: left;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.game:hover {
  box-shadow: inset 0 0 0 1px var(--color-accent-light);
  background: rgb(var(--color-accent-rgb) / 0.15);
}

.game__cover {
  flex: none;
  width: 112px;
  aspect-ratio: 460 / 215;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.game__title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
}

.game__arrow {
  flex: none;
  color: var(--color-muted);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.social:hover {
  color: var(--color-text);
  background: rgb(var(--color-accent-rgb) / 0.2);
}

.back {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent-light);
}

.back:hover {
  text-decoration: underline;
}

.foot {
  margin-top: 20px;
  font-size: 13px;
  color: #888;
}

.foot__link:hover {
  color: var(--color-muted);
}

a:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 3px;
}

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