/* rotar.info links page. Two looks: dark (icon and wallpaper) and cream (banner and headers). */

:root {
  --red: #c3151b;
  --red-hot: #e8261f;
  --cream: #fff2c4;
  --ink: #0d0102;
  --font: 'Poppins', 'Century Gothic', system-ui, sans-serif;
}
.rl { /* dark, the default */
  --bg: #0d0102;
  --bg2: #2a0306;
  --text: #fff4dd;
  --muted: rgba(255, 236, 205, .62);
  --pill: rgba(255, 255, 255, .055);
  --pill-b: rgba(255, 220, 190, .10);
  --pill-hover: rgba(232, 38, 31, .16);
  --accent: #e8261f;
  --burst: url('burst-streaks.webp');
  --burst-op: .34;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.rl.cream {
  --bg: #fff2c4;
  --bg2: #f5e2a6;
  --text: #2a0306;
  --muted: rgba(60, 10, 12, .62);
  --pill: rgba(255, 255, 255, .62);
  --pill-b: rgba(195, 21, 27, .16);
  --pill-hover: rgba(195, 21, 27, .10);
  --accent: #c3151b;
  --burst: url('burst-cream.svg');
  --burst-op: 1;
  --shadow: 0 10px 26px rgba(122, 11, 17, .14);
}

.rl, .rl * { box-sizing: border-box; }
.rl {
  position: relative;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.rl-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.rl-bg .burst {
  position: absolute; left: 50%; top: 10svh; width: 150vmax; height: 150vmax;
  margin-left: -75vmax; margin-top: -75vmax; border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%);
  background: var(--burst) center/cover no-repeat;
  opacity: var(--burst-op);
}
.rl-bg .glow {
  position: absolute; inset: 0;
  background: radial-gradient(60% 38% at 50% 9%, rgba(232, 38, 31, .35), transparent 70%),
              linear-gradient(to bottom, transparent 30%, var(--bg) 78%);
}
.rl.cream .rl-bg .glow {
  background: radial-gradient(55% 32% at 50% 10%, rgba(255, 255, 255, .7), transparent 70%),
              linear-gradient(to bottom, transparent 35%, var(--bg) 82%);
}
.rl-bg .grain { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay; background-size: 160px 160px; }
@keyframes rl-spin { to { transform: rotate(360deg); } }

.rl-main { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; padding: 44px 16px 40px; }

.rl-head { text-align: center; }
.rl-avatar { position: relative; width: 112px; height: 112px; margin: 0 auto 14px; }
.rl-avatar img { width: 100%; height: 100%; border-radius: 50%; display: block; position: relative; z-index: 1;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 12px 40px rgba(232, 38, 31, .45); }
.rl-avatar::before { content: ''; position: absolute; inset: -18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 38, 31, .55), transparent 68%); filter: blur(6px); }
.rl-name { margin: 0; font-weight: 800; font-size: 34px; letter-spacing: -.02em; line-height: 1.05; }
.rl-handle { margin: 4px 0 0; font-weight: 500; font-size: 14px; color: var(--muted); }
.rl-bio { margin: 12px auto 0; max-width: 300px; font-size: 15px; line-height: 1.45; }

.rl-latest { display: block; margin: 26px 0 0; border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--pill); border: 1px solid var(--pill-b); box-shadow: var(--shadow); position: relative; }
.rl-latest .thumb { position: relative; aspect-ratio: 16 / 9; background: #000 center/cover no-repeat; }
.rl-latest .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); }
.rl-latest .tag { position: absolute; z-index: 1; top: 10px; left: 10px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 5px 9px; border-radius: 6px; }
.rl-latest .play { position: absolute; z-index: 1; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.rl-latest .play::before { content: ''; margin-left: 4px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.rl-latest .meta { padding: 12px 14px 14px; }
.rl-latest .kicker { font-size: 12px; color: var(--muted); font-weight: 500; }
.rl-latest .title { font-size: 16px; font-weight: 600; line-height: 1.3; margin-top: 2px; }

.rl-latest.short { display: flex; align-items: stretch; }
.rl-latest.short .thumb { flex: none; width: 104px; aspect-ratio: 9 / 16; background-size: cover; background-position: center; }
.rl-latest.short .thumb::after { display: none; }
.rl-latest.short .play { width: 36px; height: 36px; right: 34px; bottom: 74px; opacity: .92; }
.rl-latest.short .meta { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px 16px; }
.rl-latest.short .tag { position: static; align-self: flex-start; }
.rl-latest.short .play { display: none; }
.rl-latest.short .title { font-size: 18px; font-weight: 700; margin: 0; }

.rl-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.rl-link { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px 10px 10px;
  border-radius: 16px; background: var(--pill); border: 1px solid var(--pill-b); color: inherit; text-decoration: none;
  box-shadow: var(--shadow); overflow: hidden; transition: transform .18s ease, background .2s ease, border-color .2s ease;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rl-link:active { transform: scale(.975); }
@media (hover: hover) { .rl-link:hover { background: var(--pill-hover); border-color: rgba(232, 38, 31, .45); transform: translateY(-1px); } }
.rl-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rl-link .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .35); }
.rl.cream .rl-link .ico { background: #2a0306; }
.rl-link .ico i { width: 22px; height: 22px; background: #fff; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.rl-link .txt { flex: 1; min-width: 0; }
.rl-link .lbl { display: block; font-weight: 600; font-size: 16px; line-height: 1.2; }
.rl-link .sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.rl-link .arr { flex: none; width: 9px; height: 9px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); margin-right: 4px; }
/* holo sheen that sweeps on press and hover */
.rl-link::after { content: ''; position: absolute; inset: -1px; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 42%, rgba(255,120,120,.16) 48%, rgba(255,240,180,.18) 54%, transparent 66%);
  transform: translateX(-60%); transition: opacity .2s; }
.rl-link:hover::after, .rl-link:active::after { opacity: 1; animation: rl-sheen .9s ease forwards; }
@keyframes rl-sheen { from { transform: translateX(-60%); } to { transform: translateX(60%); } }

/* the two play tiles: rip a pack, the binder */
.rl-play { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.rl-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 200px; padding: 14px 12px 16px; border-radius: 18px;
  text-decoration: none; color: #fff4dd; overflow: hidden; border: 1px solid rgba(232, 38, 31, .5); text-align: center;
  background: linear-gradient(160deg, #3a0508, #0d0102 75%); box-shadow: 0 14px 34px rgba(232, 38, 31, .2); transition: transform .18s ease; }
.rl-tile:active { transform: scale(.97); }
@media (hover: hover) { .rl-tile:hover { transform: translateY(-2px); } }
.rl-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rl-tile b { font-size: 17px; font-weight: 800; line-height: 1.15; position: relative; }
.rl-tile .art { position: absolute; left: 0; right: 0; top: 12px; height: 140px; display: flex; justify-content: center; align-items: center; }
.rl-tile::before { content: ''; position: absolute; inset: 0; background: url('burst-streaks.webp') center 34% / 170% no-repeat; opacity: .28;
  -webkit-mask: radial-gradient(circle at 50% 38%, #000 10%, transparent 65%); mask: radial-gradient(circle at 50% 38%, #000 10%, transparent 65%); }
/* floating mini Rotar pack: foil, crimps, the head */
.rl-pack .pk { position: relative; width: 78px; height: 118px; border-radius: 5px; transform: rotate(-8deg); animation: rl-wiggle 3.2s ease-in-out infinite;
  background: linear-gradient(115deg, #7a0b11 0%, #e8261f 30%, #ffb3a6 42%, #c3151b 52%, #640910 75%, #e8261f 100%); background-size: 220% 100%;
  box-shadow: 0 14px 26px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.18); }
.rl-pack .pk::before, .rl-pack .pk::after { content: ''; position: absolute; left: 0; right: 0; height: 9px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 2px, rgba(0,0,0,.15) 2px 4px); }
.rl-pack .pk::before { top: 0; border-radius: 5px 5px 0 0; } .rl-pack .pk::after { bottom: 0; border-radius: 0 0 5px 5px; }
.rl-pack .pk img { position: absolute; left: 50%; top: 52%; width: 60px; height: 60px; transform: translate(-50%, -50%); }
@keyframes rl-wiggle { 0%, 100% { transform: rotate(-8deg); background-position: 0 0; } 50% { transform: rotate(-3deg) translateY(-4px); background-position: 100% 0; } }
/* floating mini binder: black leatherette, rings on the spine, the Rotar logo, a red strap */
.rl-binder .bd { position: relative; width: 98px; height: 112px; border-radius: 6px 9px 9px 6px; transform: rotate(7deg); animation: rl-bob 3.6s ease-in-out infinite;
  background: radial-gradient(120% 90% at 30% 20%, #2b2426, #121011 60%, #0a0909); box-shadow: 0 14px 26px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08), inset 10px 0 0 #070606; }
.rl-binder .bd .rings { position: absolute; left: 3px; top: 16px; bottom: 16px; width: 6px;
  background: radial-gradient(circle, #d9dde0 0 2.6px, transparent 3px) center top / 6px 28px repeat-y; opacity: .9; }
.rl-binder .bd img { position: absolute; left: 54%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: 0 0 0 2px #0a0909, 0 0 0 3.5px #c3151b, 0 4px 14px rgba(232, 38, 31, .45); }
.rl-binder .bd .strap { position: absolute; right: 12px; top: -2px; bottom: -2px; width: 7px; border-radius: 2px; background: linear-gradient(90deg, #7a0b11, #c3151b, #7a0b11); box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
@keyframes rl-bob { 0%, 100% { transform: rotate(7deg); } 50% { transform: rotate(4deg) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .rl-pack .pk, .rl-binder .bd { animation: none; } }

.rl-foot { margin-top: 30px; text-align: center; font-size: 12px; color: var(--muted); display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.rl-foot button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rl-foot button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* entrance: cards dealt in one after another */
.rl.enter .rl-head, .rl.enter .rl-latest, .rl.enter .rl-link, .rl.enter .rl-play, .rl.enter .rl-foot {
  animation: rl-deal .55s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rl-deal { from { opacity: 0; transform: translateY(18px) rotate(-1.5deg) scale(.97); } }

@media (prefers-reduced-motion: reduce) {
  .rl-bg .burst { animation: none; }
  .rl.enter .rl-head, .rl.enter .rl-latest, .rl.enter .rl-link, .rl.enter .rl-play, .rl.enter .rl-foot { animation: none; }
  .rl-link::after { display: none; }
}

/* desktop: same centred column, a touch wider */
@media (min-width: 960px) {
  .rl-main { max-width: 500px; padding-top: 64px; }
}

/* prototype-only look switch */
.rl-look { position: fixed; z-index: 50; right: 12px; bottom: 12px; display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px); font: 600 12px var(--font); }
.rl-look button { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 999px; color: #fff; }
.rl-look button[aria-pressed="true"] { background: #e8261f; }

.rl-legal { flex-basis: 100%; font-size: 11.5px; opacity: .9; }
