/* FED - SOLDIERBOY. Frutiger Metro look (glass, gloss, aqua/lime/pink) on the 50 Cent site's layout: centered column, big banner on top, nav under it, content panels below.
   All artwork is from the supplied packs (see tools/prep_assets.py). */

:root {
  --aqua: #2fb4ee; --blue: #0a74d4; --deep: #0b3b63; --lime: #7ed321; --pink: #ff3fa4; --purple: #7a2bbd;
  --ink: #12304a; --line: #8fd3ff;
  --glass: rgba(255, 255, 255, .82);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 13px/1.45 Verdana, Tahoma, "Segoe UI", sans-serif;
  background: #1b8fe0 url(../img/bg-blue.jpg) center top / cover fixed no-repeat; min-height: 100vh; overflow-x: hidden;
}
a { color: var(--blue); }
button, input { font: inherit; }
[hidden] { display: none !important; }

/* ---------- sky ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky .cloud { position: absolute; left: -10%; bottom: -6%; width: 120%; opacity: .85; }
.sky .bub { position: absolute; opacity: .55; animation: drift 22s ease-in-out infinite; }
.sky .b1 { left: -60px; top: 18%; width: 360px; }
.sky .b2 { right: -90px; top: 42%; width: 320px; animation-duration: 28s; animation-delay: -9s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(24px, -34px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }

/* ---------- top bar ---------- */
.topbar { background: linear-gradient(#2d4258, #0e1a27); border-bottom: 2px solid var(--lime); box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.topbar-in { width: min(1000px, calc(100% - 24px)); margin: 0 auto; height: 34px; display: flex; align-items: center; gap: 14px; }
.brand { color: #fff; font: 900 15px/1 "Arial Black", Verdana, sans-serif; letter-spacing: 2px; text-decoration: none; }
.brand span { color: var(--lime); }
.ribbon { font-size: 10px; letter-spacing: .5px; color: #ffe27a; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 226, 122, .5); border-radius: 10px; padding: 2px 10px; }
.who { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #dff3ff; font-size: 12px; }
.who a, .who button { color: #fff; background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }
.who img { width: 22px; height: 22px; border-radius: 50%; }

.wrap { width: min(1000px, calc(100% - 24px)); margin: 0 auto; }

/* ---------- HERO / top banner ---------- */
.hero {
  position: relative; height: 512px; margin-top: 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .62) 0%, rgba(150, 215, 255, .42) 42%, rgba(18, 125, 225, .62) 100%);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 12px 34px rgba(0, 55, 130, .5), inset 0 0 46px rgba(255, 255, 255, .65);
}
.hero .deco { position: absolute; pointer-events: none; user-select: none; }
.hero .flare { left: -150px; top: -110px; width: 720px; mix-blend-mode: screen; opacity: .85; }
.hero .stars { right: 150px; top: 18px; width: 330px; opacity: .5; }
.hero .skyline { left: 0; bottom: 0; width: 100%; opacity: .55; clip-path: inset(0 round 0 0 16px 16px); }
.hero .orb, .hero .heart { animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0, 40, 90, .35)); }
.hero .o1 { left: -22px; top: 150px; width: 66px; z-index: 3; }
.hero .o2 { left: 586px; top: 66px; width: 46px; animation-delay: -2s; z-index: 3; }
.hero .o3 { right: 318px; bottom: 90px; width: 40px; animation-delay: -4s; z-index: 3; }
.hero .h1 { left: 590px; bottom: 30px; width: 54px; --r: -12deg; animation-delay: -1s; z-index: 7; }
.hero .h2 { right: 20px; top: 150px; width: 44px; --r: 14deg; animation-delay: -3s; z-index: 3; }
.hero .target { right: 34px; top: 16px; width: 86px; opacity: .8; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-title { position: absolute; left: 30px; top: 16px; z-index: 5; }
.hero-title .kicker { color: #fff; font: 700 11px/1 Verdana, sans-serif; letter-spacing: 4px; text-shadow: 0 1px 3px rgba(0, 40, 90, .7); margin: 0 0 2px 4px; }
.hero-title .logo { display: block; width: 380px; max-width: 70vw; filter: sepia(1) hue-rotate(48deg) saturate(5.5) brightness(1.18) drop-shadow(0 3px 6px rgba(0, 50, 20, .55)); }
.hero-title .sub { color: #fff; font: 700 11px/1 Verdana, sans-serif; letter-spacing: 3px; text-shadow: 0 1px 3px rgba(0, 40, 90, .8); margin: 2px 0 0 4px; }

/* the video: the main thing on the page */
.player { position: absolute; left: 30px; top: 118px; width: 600px; border: 6px solid rgba(255, 255, 255, .95); border-radius: 14px; background: #000; overflow: hidden; z-index: 4;
  box-shadow: 0 0 0 2px rgba(126, 211, 33, .85), 0 0 30px rgba(126, 211, 33, .55), 0 14px 26px rgba(0, 40, 90, .55); }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: cover; }
.play-big { position: absolute; left: 50%; top: calc(50% - 17px); width: 92px; height: 92px; margin: -46px 0 0 -46px; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 50% 22%, #f4ffd0 0%, #9be83a 38%, #4eab0e 100%); box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 8px 24px rgba(0, 0, 0, .55), inset 0 -6px 10px rgba(0, 80, 0, .35); transition: transform .15s; }
.play-big:hover { transform: scale(1.07); }
.play-big span { position: absolute; left: 38px; top: 26px; border-style: solid; border-width: 20px 0 20px 32px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 2px 2px rgba(0, 60, 0, .6)); }
.player.playing .play-big { opacity: 0; pointer-events: none; }
.player-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; background: linear-gradient(#49b8f7, #0a6fcb); color: #fff; }
.plabel { flex: 1; font-weight: 700; font-size: 11px; letter-spacing: 3px; text-shadow: 0 1px 2px rgba(0, 40, 90, .7); }
.pbtn { border: 1px solid rgba(255, 255, 255, .85); border-radius: 12px; background: linear-gradient(rgba(255, 255, 255, .85), rgba(190, 230, 255, .55) 50%, rgba(60, 170, 240, .5)); color: #0b3b63; font-weight: 700; font-size: 11px; padding: 3px 12px; cursor: pointer; }

.hero .fed { position: absolute; right: 8px; bottom: 2px; height: 520px; width: auto; z-index: 6; pointer-events: none;
  filter: drop-shadow(0 0 16px rgba(255, 63, 164, .95)) drop-shadow(0 0 4px rgba(255, 255, 255, .9)) drop-shadow(0 8px 14px rgba(0, 20, 60, .4)); }
.hero-cta { position: absolute; right: 150px; top: 24px; z-index: 7; display: flex; flex-direction: column; gap: 8px; }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 14px; padding-left: 6px; position: relative; z-index: 2; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 20px 6px 8px; border-radius: 999px; text-decoration: none; color: var(--deep);
  background: linear-gradient(#fff, #d3ecff 55%, #a3d6ff); border: 1px solid #7fc2f3; box-shadow: 0 3px 7px rgba(0, 50, 110, .35), inset 0 1px 0 #fff; transition: transform .12s; }
.tabs a:hover { transform: translateY(-2px); }
.tabs a img { width: 30px; height: 30px; }
.tabs a b { font: 900 12px/1 "Arial Black", Verdana, sans-serif; letter-spacing: 1.5px; }
.tabs a.on { background: linear-gradient(#efffc9, #9be83a 55%, #5cb812); border-color: #4a9a10; color: #123500; }

/* ---------- panels ---------- */
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 7px 20px rgba(0, 60, 140, .35), inset 0 1px 0 #fff; backdrop-filter: blur(3px); }
.ph { display: flex; align-items: center; gap: 8px; padding: 6px 10px; color: #fff; background: linear-gradient(#5fc7ff, #1784e0 58%, #0c68bd); border-bottom: 1px solid #0a5aa6; }
.ph img { width: 22px; height: 22px; }
.ph h2 { margin: 0; font: 900 12px/1 "Arial Black", Verdana, sans-serif; letter-spacing: 2.5px; text-shadow: 0 1px 2px rgba(0, 40, 90, .7); }
.ph .count { margin-left: auto; font-size: 11px; }
.x { margin-left: auto; width: 24px; height: 24px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; background: rgba(255, 255, 255, .25); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.cols { display: grid; grid-template-columns: 1fr 320px; gap: 14px; align-items: start; }

/* chat */
.chat-body { position: relative; height: 400px; }
.log { height: 100%; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; scroll-behavior: smooth; }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; }
.msg img { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.msg .meta { font-size: 11px; color: #5b7893; }
.msg .meta .nm { font-weight: 700; font-size: 12px; cursor: pointer; margin-right: 6px; }
.msg .tx { word-break: break-word; }
.msg.mine .tx { background: #eaffd0; border-radius: 8px; padding: 2px 8px; }
.n0 { color: #0a74d4; } .n1 { color: #d11a8a; } .n2 { color: #3a9a00; } .n3 { color: #7a2bbd; } .n4 { color: #d27700; } .n5 { color: #0a8f93; }
.gate { position: absolute; inset: 0; background: rgba(240, 250, 255, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.gate img { width: 74px; animation: bob 5s ease-in-out infinite; }
.row { display: flex; gap: 8px; }
.send { display: flex; gap: 8px; padding: 8px; border-top: 1px solid #bfe3ff; background: rgba(230, 245, 255, .8); }
.send input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid #7fc2f3; border-radius: 20px; background: #fff; outline: none; }
.send input:focus { box-shadow: 0 0 0 3px rgba(47, 180, 238, .35); }

/* buttons */
.btn { display: inline-block; border: 1px solid; border-radius: 999px; padding: 7px 18px; font: 900 11px/1.3 "Arial Black", Verdana, sans-serif; letter-spacing: 1.2px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .1s, filter .1s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.lime { color: #123500; border-color: #4a9a10; background: linear-gradient(#efffc9, #9be83a 52%, #5cb812); box-shadow: 0 2px 5px rgba(0, 60, 0, .35), inset 0 1px 0 #fff; }
.btn.pink { color: #fff; border-color: #c4106f; background: linear-gradient(#ffd0ec, #ff5db4 52%, #e21c8a); text-shadow: 0 1px 2px rgba(120, 0, 60, .6); box-shadow: 0 2px 5px rgba(120, 0, 60, .35), inset 0 1px 0 #ffe6f5; }
.btn.aqua { color: #08305a; border-color: #2f8fd0; background: linear-gradient(#fff, #c9e9ff 52%, #77c1f5); box-shadow: 0 2px 5px rgba(0, 60, 130, .3), inset 0 1px 0 #fff; }
.btn.big { padding: 11px 26px; font-size: 13px; width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }

/* side column */
.people { list-style: none; margin: 0; padding: 6px 8px; max-height: 230px; overflow-y: auto; }
.people li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 9px; cursor: pointer; }
.people li:hover { background: #e3f4ff; }
.people img { width: 26px; height: 26px; border-radius: 50%; }
.people .nm { font-weight: 700; }
.people .st { font-size: 10px; color: #6a88a1; display: block; }
.people .grow { flex: 1; min-width: 0; }
.people .mini { border: 1px solid #7fc2f3; border-radius: 10px; background: #fff; color: var(--deep); font-size: 10px; font-weight: 700; padding: 1px 8px; cursor: pointer; }
.people .mini.go { background: #b8f06a; border-color: #5cb812; }
.empty { margin: 0; padding: 8px 14px 12px; color: #6a88a1; font-size: 12px; }
.me { padding: 12px; }
.me .big-av { width: 84px; height: 84px; display: block; margin: 0 auto 6px; filter: drop-shadow(0 6px 8px rgba(0, 40, 90, .35)); }
.me h3 { margin: 0; text-align: center; font: 900 15px/1.2 "Arial Black", Verdana, sans-serif; letter-spacing: 1px; }
.me .status { text-align: center; color: #4b6b85; min-height: 18px; margin: 2px 0 8px; }
.me .badge { display: inline-block; background: var(--pink); color: #fff; border-radius: 8px; padding: 0 7px; font-size: 10px; letter-spacing: 1px; margin-left: 6px; vertical-align: middle; }
.me .row { justify-content: center; flex-wrap: wrap; }
.join { text-align: center; }
.join img { width: 64px; }

/* bg colours of a profile card */
.bg-pink { --pa: #ffd8ee; --pb: #ff7cc4; } .bg-blue { --pa: #d6efff; --pb: #62bdf6; } .bg-green { --pa: #e7ffc4; --pb: #8fdc36; }
.bg-purple { --pa: #ead8ff; --pb: #a96ee6; } .bg-gold { --pa: #fff0bd; --pb: #f1c232; } .bg-dark { --pa: #5b6b7a; --pb: #1c2733; color: #fff; }
.card-bg { background: linear-gradient(var(--pa), var(--pb)); }

/* other pages */
.wide .ring, .wide .game { padding: 20px 22px; }
.ring { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; }
.ring-art { position: relative; }
.ring-art .cover { width: 100%; border-radius: 12px; border: 5px solid #fff; box-shadow: 0 0 24px rgba(255, 63, 164, .55), 0 10px 24px rgba(0, 40, 90, .45); display: block; }
.ring-art .deco-speaker { position: absolute; right: -40px; bottom: -34px; width: 150px; pointer-events: none; }
.ring-body h3, .game h3 { margin: 0 0 6px; font: 900 22px/1.15 "Arial Black", Verdana, sans-serif; color: var(--deep); letter-spacing: 1px; }
.ring-body audio { width: 100%; margin: 6px 0 14px; }
.ring-dl { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.how { margin: 0; padding-left: 18px; color: #3d5d78; }
.how li { margin-bottom: 6px; }
.game { display: flex; gap: 26px; align-items: center; }
.g-globe { width: 170px; animation: bob 7s ease-in-out infinite; filter: drop-shadow(0 8px 12px rgba(0, 40, 90, .35)); }
.game p { margin: 0 0 8px; }
.game .small { font-size: 11px; letter-spacing: 3px; color: #5b7893; }
.loadbar { height: 18px; max-width: 380px; border-radius: 10px; background: #d5ecff; border: 1px solid #8fd3ff; overflow: hidden; margin-top: 12px; }
.loadbar i { display: block; height: 100%; width: 62%; background: repeating-linear-gradient(115deg, #9be83a 0 14px, #6cc215 14px 28px); animation: stripes 1.1s linear infinite; }
@keyframes stripes { to { background-position: 56px 0; } }
.modbox { padding: 14px 16px; }
.modbox table { width: 100%; border-collapse: collapse; }
.modbox td, .modbox th { text-align: left; padding: 6px 8px; border-bottom: 1px solid #cfe9fb; vertical-align: top; }

/* dialogs */
.dlg { border: 2px solid #fff; border-radius: 16px; padding: 0; overflow: hidden; width: min(440px, 92vw); box-shadow: 0 24px 70px rgba(0, 30, 80, .65); background: #f2faff; color: var(--ink); }
.dlg.small { width: min(340px, 92vw); }
.dlg::backdrop { background: rgba(8, 40, 90, .6); backdrop-filter: blur(3px); }
.dbody { padding: 14px 16px 16px; }
.dbody label { display: block; margin-bottom: 10px; font-weight: 700; font-size: 12px; }
.dbody label small { font-weight: 400; color: #6a88a1; }
.dbody input { display: block; width: 100%; margin-top: 4px; padding: 9px 12px; border: 1px solid #7fc2f3; border-radius: 10px; background: #fff; outline: none; font-weight: 400; }
.dbody input:focus { box-shadow: 0 0 0 3px rgba(47, 180, 238, .35); }
.dbody .sub { font: 900 10px/1 "Arial Black", Verdana, sans-serif; letter-spacing: 2px; color: var(--deep); margin: 8px 0 6px; }
.dbody details { margin-top: 14px; }
.dbody summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.seg { display: flex; margin-bottom: 12px; border: 1px solid #7fc2f3; border-radius: 999px; overflow: hidden; }
.seg button { flex: 1; border: 0; padding: 8px; background: #fff; color: var(--deep); font: 900 11px/1 "Arial Black", Verdana, sans-serif; letter-spacing: 1.5px; cursor: pointer; }
.seg button.on { background: linear-gradient(#efffc9, #9be83a 55%, #5cb812); color: #123500; }
.err { color: #c4104f; min-height: 18px; margin: 4px 0 8px; font-size: 12px; font-weight: 700; }
.hint { font-size: 11px; color: #6a88a1; min-height: 14px; margin-bottom: 6px; }
.tiny { font-size: 10px; color: #6a88a1; margin: 10px 0 0; }
.captcha { min-height: 4px; margin-bottom: 6px; }
.avgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px; }
.avgrid button { border: 2px solid transparent; border-radius: 12px; background: #fff; padding: 4px; cursor: pointer; }
.avgrid button.on { border-color: var(--lime); box-shadow: 0 0 10px rgba(126, 211, 33, .8); }
.avgrid img { width: 100%; display: block; }
.bgs { display: flex; gap: 8px; margin-bottom: 8px; }
.bgs button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; background: linear-gradient(var(--pa), var(--pb)); box-shadow: 0 2px 4px rgba(0, 40, 90, .4); }
.bgs button.on { outline: 3px solid var(--lime); }
.ucard { text-align: center; padding: 10px 8px; border-radius: 12px; margin-bottom: 10px; }
.ucard img { width: 76px; filter: drop-shadow(0 5px 7px rgba(0, 40, 90, .35)); }
.ucard h3 { margin: 4px 0 0; font: 900 15px/1.2 "Arial Black", Verdana, sans-serif; }
.ucard p { margin: 2px 0; font-size: 12px; }
.ucard .since { font-size: 10px; opacity: .75; }

/* private messages */
.dm { position: fixed; right: 16px; bottom: 0; width: 320px; z-index: 60; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 -4px 24px rgba(0, 40, 90, .4); overflow: hidden; }
.dm-log { height: 250px; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #f6fbff; }
.dm-log .b { max-width: 80%; padding: 6px 10px; border-radius: 14px; background: #fff; border: 1px solid #cfe9fb; word-break: break-word; }
.dm-log .b.me { align-self: flex-end; background: #dff9b8; border-color: #9bd24f; }

.toasts { position: fixed; top: 44px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; max-width: min(420px, 92vw); padding: 9px 16px; border-radius: 12px; font-weight: 700; font-size: 12px; background: #fff; border: 2px solid var(--aqua); box-shadow: 0 8px 24px rgba(0, 40, 90, .4); animation: pop .25s ease-out; }
.toast.bad { border-color: #ff3fa4; color: #a30e5e; }
.toast.ok { border-color: var(--lime); color: #2c6a00; }
@keyframes pop { from { transform: translateY(-10px) scale(.96); opacity: 0; } }

footer { text-align: center; margin: 26px 0 30px; color: #fff; text-shadow: 0 1px 3px rgba(0, 40, 90, .7); }
footer img { width: 100%; opacity: .35; display: block; margin-bottom: 8px; }
footer p { margin: 0; font-size: 11px; letter-spacing: 1px; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .hero { height: auto; padding: 14px 12px 20px; }
  .hero-title, .player, .hero-cta { position: relative; left: auto; top: auto; right: auto; }
  .hero-title { margin-bottom: 10px; }
  .hero-title .logo { width: min(340px, 80vw); }
  .player { width: 100%; max-width: 640px; margin: 0 auto; }
  .hero .fed { position: relative; display: block; right: auto; bottom: auto; height: 260px; margin: 10px auto -6px; }
  .hero-cta { flex-direction: row; justify-content: center; margin-top: 10px; }
  .hero .stars, .hero .o2, .hero .o3, .hero .h1, .hero .h2 { display: none; }
  .tabs { margin-top: 18px; }
  .hero .fed { height: 260px; }
  .plabel { letter-spacing: 1.5px; font-size: 10px; }
  .tabs a { padding: 4px 14px 4px 5px; gap: 6px; }
  .tabs a img { width: 24px; height: 24px; }
  .tabs a b { font-size: 11px; letter-spacing: 1px; }
  .cols { grid-template-columns: 1fr; }
  .ring { grid-template-columns: 1fr; }
  .ring-art { max-width: 320px; margin: 0 auto; }
  .game { flex-direction: column; text-align: center; }
  .dm { right: 0; left: 0; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
