/* ==========================================================
   XBOX 360 DASHBOARD RESUME — 2012 "Metro" era
   ========================================================== */

:root {
  --green:        #5dc21e;
  --green-dark:   #3f9414;
  --green-deep:   #2e6f0e;
  --ink:          #1d1d1d;
  --tile-label:   rgba(20, 20, 20, 0.55);
  --focus:        #ffffff;
  --font: "Segoe UI", "Selawik", "Helvetica Neue", "Open Sans", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-weight: 300;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 90% at 50% -10%, rgba(255,255,255,0.28), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #bcbcbc 0%, #ababab 38%, #9a9a9a 70%, #8b8b8b 100%);
}

/* subtle vignette + grain so the gray isn't flat */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 140% 120% at 50% 40%, transparent 55%, rgba(0,0,0,0.18) 100%);
  z-index: 1;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* ==========================================================
   BOOT SPLASH
   ========================================================== */
.boot {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(ellipse at 50% 45%, #f4f4f4 0%, #d8d8d8 45%, #b9b9b9 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 34px;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.boot.done { opacity: 0; visibility: hidden; }

.boot-swirl { overflow: visible; filter: drop-shadow(0 10px 26px rgba(0,0,0,0.18)); }

.ribbon-spin {
  transform-origin: 200px 200px;
  transform-box: fill-box;
  animation: ribbonSpin 1.7s cubic-bezier(.32,.05,.4,1) forwards;
}
.ribbon {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: ribbonDraw 0.7s ease-out forwards;
}
.ribbon-green { animation-delay: 0.08s; }

.boot-sphere {
  transform-origin: 200px 200px;
  animation: sphereGrow 0.6s cubic-bezier(.2,1.4,.4,1) forwards;
  animation-delay: 1.35s;
}
.boot-ring {
  transform-origin: 200px 200px;
  animation: ringPing 0.9s ease-out forwards;
  animation-delay: 1.4s;
}

@keyframes ribbonDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes ribbonSpin {
  0%   { transform: rotate(0deg)   scale(1);    opacity: 1; }
  65%  { transform: rotate(300deg) scale(0.85); opacity: 1; }
  100% { transform: rotate(430deg) scale(0.05); opacity: 0; }
}
@keyframes sphereGrow {
  0%   { r: 0; }
  70%  { r: 68; }
  100% { r: 62; }
}
@keyframes ringPing {
  0%   { r: 40; stroke-opacity: 0.8; }
  100% { r: 92; stroke-opacity: 0; }
}

.boot-word {
  font-size: 34px; font-weight: 200; letter-spacing: 10px;
  color: #6c6c6c; text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  animation: bootWordIn 0.6s ease-out forwards;
  animation-delay: 1.55s;
}
.boot-word span { color: var(--green-dark); font-weight: 600; }

@keyframes bootWordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   DASHBOARD FRAME
   ========================================================== */
.dash {
  position: relative; z-index: 2;
  height: 100vh;
  height: 100dvh; /* mobile browsers: track the real viewport as chrome collapses */
  display: flex; flex-direction: column;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.dash.on { opacity: 1; }

/* ---------- top nav ---------- */
.topnav {
  display: flex; align-items: baseline; gap: 44px;
  padding: 42px 0 26px 150px;
  flex: none;
}
.tab {
  font-family: var(--font);
  font-weight: 400;
  font-size: 30px;
  color: #6b6b6b;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  background: none; border: none; cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s, text-shadow 0.2s;
}
.tab:hover { color: #4a4a4a; }
.tab.active {
  color: #fff;
  font-size: 44px;
  font-weight: 350;
  text-shadow: 0 2px 8px rgba(0,0,0,0.38);
}
.tab:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ---------- left search block ---------- */
.edge-search {
  position: absolute; left: 0; top: 46%;
  z-index: 4;
  width: 68px; height: 68px;
  background: rgba(60,60,60,0.85);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 3px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.edge-search:hover { background: var(--green); transform: translateX(4px); }

/* ---------- right peeking column ---------- */
.edge-right {
  position: absolute; right: 0; top: 118px;
  z-index: 4;
  width: 118px;
  display: flex; flex-direction: column; gap: 10px;
}
.edge-tile {
  height: 128px;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 80%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 3px 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px 0 8px 14px;
  transform: translateX(26px);
  transition: transform 0.25s ease, filter 0.2s;
}
.edge-tile:hover { transform: translateX(6px); filter: brightness(1.12); }
.edge-ico { font-size: 30px; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.edge-tile label { font-size: 14px; font-weight: 400; cursor: pointer; }

/* ==========================================================
   STAGE + CHANNELS
   ========================================================== */
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;      /* we own horizontal gestures, browser keeps vertical scroll */
  cursor: grab;
  user-select: none;        /* dragging pans channels; it must never select text */
  -webkit-user-select: none;
}
.stage.grabbing { cursor: grabbing; }
.slider {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.22, 1);
}
.slider.dragging { transition: none; }
.channel {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  overflow-y: auto; overflow-x: hidden;
  padding: 16px 150px 30px;
  opacity: 0.45;
  transition: opacity 0.4s ease;
  scrollbar-width: thin;
}
.channel.active { opacity: 1; }

/* ==========================================================
   TILES — the core unit
   ========================================================== */
.tile {
  position: relative;
  background: #3a3a3a center/cover no-repeat;
  box-shadow: 2px 4px 14px rgba(0,0,0,0.32);
  cursor: pointer;
  overflow: hidden;
  border: 0; padding: 0; text-align: left;
  font-family: var(--font); color: #fff;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.tile-picture {
  position: absolute; inset: 0;
  display: block;
}
.tile-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.tile:hover, .tile.focused {
  transform: scale(1.038);
  z-index: 5;
  box-shadow:
    0 0 0 3px var(--focus),
    0 0 26px rgba(255,255,255,0.55),
    4px 8px 24px rgba(0,0,0,0.4);
}
.tile:focus-visible {
  outline: none;
  transform: scale(1.038); z-index: 5;
  box-shadow: 0 0 0 3px var(--focus), 0 0 26px rgba(255,255,255,0.55), 4px 8px 24px rgba(0,0,0,0.4);
}

.tile .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 7px 12px 8px;
  background: var(--tile-label);
  font-size: 15.5px; font-weight: 400;
  letter-spacing: 0.2px;
  backdrop-filter: blur(2px);
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.tile .label small { font-size: 12px; opacity: 0.8; font-weight: 300; white-space: nowrap; }

/* green utility tiles */
.tile.green {
  background: linear-gradient(160deg, #66cc24 0%, var(--green-dark) 85%);
  display: flex; align-items: center; justify-content: center;
}
.tile.green .big-ico { font-size: 56px; text-shadow: 0 2px 6px rgba(0,0,0,0.28); }

/* solid brand-style tiles (the "ESPN" slot) */
.tile.brand { display: flex; align-items: center; justify-content: center; }
.tile.brand-photo { background-color: #fff; }
.tile.brand-photo .tile-media { object-fit: contain; padding: 18px; }
.tile.white { background: #f4f4f4; color: #2b2b2b; }
.tile.white .label { background: rgba(0,0,0,0.08); color: #2b2b2b; }

/* image gradient scrim so labels read */
.tile.img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 62%, rgba(0,0,0,0.38) 100%);
}

/* ==========================================================
   HOME CHANNEL GRID  (faithful to the screenshot)
   ========================================================== */
.home-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.09fr 1.09fr 1fr;
  grid-template-rows: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  height: 100%;
  max-height: 620px;
  grid-template-areas:
    "play hero hero  side1"
    "pins hero hero  side2"
    "recent p2  p3   side3";
}
.g-play   { grid-area: play; }
.g-hero   { grid-area: hero; }
.g-pins   { grid-area: pins; }
.g-recent { grid-area: recent; }
.g-p2     { grid-area: p2; }
.g-p3     { grid-area: p3; }
.g-side1  { grid-area: side1; }
.g-side2  { grid-area: side2; }
.g-side3  { grid-area: side3; }

.g-hero .label { font-size: 17px; padding: 10px 14px 11px; }

/* ==========================================================
   GENERIC CHANNEL LAYOUTS
   ========================================================== */
.channel h2.ch-title {
  font-size: 21px; font-weight: 400;
  color: #565656;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  margin: 2px 0 14px;
  letter-spacing: 0.4px;
}
.channel .ch-sub {
  font-size: 14px; color: #6b6b6b;
  margin: -8px 0 16px;
}

/* projects grid */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.proj-grid .tile { aspect-ratio: 16 / 9; }

/* experience rows */
.xp-list { display: flex; flex-direction: column; gap: 12px; max-width: 980px; }
.xp-row {
  display: grid;
  grid-template-columns: 200px 1fr 190px;
  min-height: 118px;
  background: linear-gradient(180deg, rgba(48,48,48,0.94), rgba(34,34,34,0.94));
  box-shadow: 2px 4px 14px rgba(0,0,0,0.3);
  cursor: default;
  transition: transform 0.15s, box-shadow 0.15s;
}
.xp-row:hover { transform: scale(1.012); box-shadow: 0 0 0 3px #fff, 2px 6px 20px rgba(0,0,0,0.4); }
.xp-cell { padding: 16px 18px; }
.xp-cell.brandcell {
  background: linear-gradient(160deg, var(--green), var(--green-dark));
  display: flex; flex-direction: column; justify-content: center;
}
.xp-cell.brandcell b { font-size: 19px; font-weight: 600; }
.xp-cell.brandcell span { font-size: 13px; opacity: 0.9; }
.xp-role { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.xp-sum { font-size: 13.5px; color: rgba(255,255,255,0.82); line-height: 1.45; }
.xp-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.xp-tags i {
  font-style: normal; font-size: 11.5px;
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
}
.xp-meta { text-align: right; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.xp-meta .hrs { font-size: 15px; font-weight: 500; color: #9be26a; }
.xp-meta .last { font-size: 12px; color: rgba(255,255,255,0.65); }

/* skills / achievements */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  max-width: 1000px;
}
.skill-card {
  background: linear-gradient(180deg, rgba(48,48,48,0.94), rgba(34,34,34,0.94));
  box-shadow: 2px 4px 14px rgba(0,0,0,0.3);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 6px 14px;
  align-items: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.skill-card:hover { transform: scale(1.02); box-shadow: 0 0 0 3px #fff, 2px 6px 20px rgba(0,0,0,0.4); }
.skill-disc {
  grid-row: span 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a8e072, var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.25);
}
.skill-name { font-size: 15.5px; font-weight: 500; display: flex; gap: 10px; }
.skill-name span { flex: 1 1 auto; min-width: 0; }
.skill-name small { flex: 0 0 auto; align-self: flex-start; font-weight: 300; opacity: 0.7; font-size: 12px; text-align: right; white-space: nowrap; }
.skill-bar {
  height: 9px; background: rgba(255,255,255,0.14); overflow: hidden;
}
.skill-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #7ed63a, #4fae17);
  width: 0;
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ==========================================================
   PROFILE — full-body avatar stage + gamercard
   (like the 360 profile screen: your avatar stands on the
   dash next to your card)
   ========================================================== */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(230px, 330px) 1fr;
  gap: 10px 26px;
  max-width: 1150px;
  height: calc(100% - 12px);
  margin-top: 12px;
  min-height: 470px;
}

/* the avatar "stands" on the dashboard floor */
.avatar-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 420px;
}
.avatar-body {
  position: relative; z-index: 2;
  max-height: min(58vh, 600px);
  max-width: 100%;
  min-height: 0;
  object-fit: contain;
  margin-bottom: 14px;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,0.22));
  animation:
    avatarIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.1) both,
    avatarIdle 4.4s ease-in-out 0.6s infinite;
}
@keyframes avatarIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes avatarIdle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px) scale(1.004); }
}
.avatar-floor {
  position: absolute; z-index: 1;
  bottom: 56px; left: 50%;
  width: 76%; height: 36px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.32), rgba(0,0,0,0) 66%);
}
/* favorite loadout plate under the avatar — equipped gear */
.avatar-loadout {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, rgba(48,48,48,0.94), rgba(34,34,34,0.94));
  box-shadow: 2px 4px 14px rgba(0,0,0,0.3);
  padding: 8px 18px 11px;
  text-align: center;
  opacity: 0;
  animation: loadoutIn 0.5s ease-out 1.2s forwards;
}
.loadout-kicker {
  display: block;
  font-size: 10px; font-weight: 500;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}
.loadout-chips { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.loadout-chips i {
  font-style: normal; font-size: 12px; font-weight: 500;
  background: rgba(255,255,255,0.12);
  padding: 3px 10px;
  white-space: nowrap;
}
@keyframes loadoutIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

/* the card stack next to the avatar */
.profile-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  min-width: 0;
}

/* wide gamercard: green identity band + silver stat bar */
.gamercard {
  box-shadow: 2px 4px 14px rgba(0,0,0,0.3);
  overflow: hidden;
}
.gamercard .gc-head {
  background: linear-gradient(160deg, var(--green), var(--green-dark));
  color: #fff; padding: 10px 18px;
  display: flex; align-items: center; gap: 14px;
}
.gc-id { flex: 1 1 auto; min-width: 0; }
.gc-id b { display: block; font-size: 21px; font-weight: 600; }
.gc-id span {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 400; opacity: 0.95;
}
.gc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d8ff9e;
  box-shadow: 0 0 6px #d8ff9e;
}
.gc-pic {
  width: 54px; height: 54px; object-fit: cover; display: block;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 6px rgba(0,0,0,0.28);
}
.gc-score { text-align: right; }
.gc-score b { display: block; font-size: 19px; font-weight: 700; }
.gc-score .gc-stars { font-size: 13px; }
.gc-stars { color: #ffd75e; letter-spacing: 2px; }
.gc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, #efefef, #d9d9d9);
  color: #2a2a2a;
}
.gc-stats div { padding: 8px 18px 9px; border-left: 1px solid rgba(0,0,0,0.09); min-width: 0; }
.gc-stats div:first-child { border-left: none; }
.gc-stats span {
  display: block; font-size: 10.5px; font-weight: 500;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(0,0,0,0.48); margin-bottom: 1px;
}
.gc-stats b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* bottom trio */
.profile-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.ach-tile {
  background: linear-gradient(180deg, rgba(48,48,48,0.94), rgba(34,34,34,0.94));
  box-shadow: 2px 4px 14px rgba(0,0,0,0.3);
  padding: 14px 20px 16px;
}
.ach-tile .tile-kicker {
  display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 8px; font-weight: 400;
}
.pa { display: flex; align-items: center; gap: 11px; padding: 4px 0; }
.pa i {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a8e072, var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 700; font-size: 11px;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.25);
}
.pa b { display: block; font-size: 13.5px; font-weight: 600; }
.pa span { font-size: 12px; line-height: 1.3; color: rgba(255,255,255,0.7); }

.bio-tile {
  background: linear-gradient(180deg, rgba(48,48,48,0.94), rgba(34,34,34,0.94));
  box-shadow: 2px 4px 14px rgba(0,0,0,0.3);
  padding: 16px 22px 18px;
}
.bio-tile h3 { font-size: 21px; font-weight: 350; margin-bottom: 3px; }
.bio-tile .role-line { color: #9be26a; font-size: 13.5px; margin-bottom: 9px; }
.bio-tile p { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.88); }
.bio-tile .motto { margin-top: 14px; font-style: italic; font-size: 13px; color: rgba(255,255,255,0.6); }

.edu-tile {
  background: linear-gradient(160deg, #2c6db0, #1c4a7c);
  box-shadow: 2px 4px 14px rgba(0,0,0,0.3);
  padding: 14px 20px 16px;
}
.edu-tile b { font-size: 14.5px; font-weight: 600; display: block; }
.edu-tile span { font-size: 12px; opacity: 0.85; display: block; margin-bottom: 5px; }
.edu-tile .tile-kicker, .fun-tile .tile-kicker {
  display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 8px; font-weight: 400;
}
.fun-tile {
  background: linear-gradient(160deg, #8e34b5, #5c1e7a);
  box-shadow: 2px 4px 14px rgba(0,0,0,0.3);
  padding: 14px 20px 16px;
  font-size: 13.5px; line-height: 1.7;
}

/* contact channel */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  max-width: 900px;
}
.contact-tile {
  min-height: 130px;
  text-decoration: none; color: #fff;
  background: linear-gradient(180deg, rgba(48,48,48,0.94), rgba(34,34,34,0.94));
  box-shadow: 2px 4px 14px rgba(0,0,0,0.3);
  padding: 16px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.15s, box-shadow 0.15s;
}
.contact-tile:hover { transform: scale(1.03); box-shadow: 0 0 0 3px #fff, 2px 6px 20px rgba(0,0,0,0.4); }
.contact-tile.primary { background: linear-gradient(160deg, var(--green), var(--green-dark)); }
.contact-tile b { font-size: 18px; font-weight: 500; }
.contact-tile span { font-size: 13.5px; opacity: 0.85; word-break: break-all; }

/* bing (easter egg) */
.bing-box { max-width: 760px; }
.bing-search {
  display: flex; align-items: center; background: #fff; max-width: 560px;
  border-radius: 24px; padding: 4px 4px 4px 20px;
  box-shadow: 2px 4px 14px rgba(0,0,0,0.35);
  transition: box-shadow 0.15s ease;
}
.bing-search:focus-within { box-shadow: 0 0 0 2px var(--green), 2px 4px 14px rgba(0,0,0,0.35); }
.bing-search input {
  flex: 1; border: 0; padding: 12px 8px;
  font-family: var(--font); font-size: 16px; color: #333;
  outline: none; background: transparent;
}
.bing-search .go {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); border: 0; color: #fff;
  font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.bing-search .go:hover { background: var(--green-dark); transform: scale(1.05); }
.bing-results { margin-top: 26px; display: flex; flex-direction: column; gap: 4px; }
.bing-result {
  padding: 14px 18px; border-radius: 10px; cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.bing-result:hover, .bing-result:focus-visible {
  background: rgba(255,255,255,0.12);
  outline: none;
}
.bing-result:active { transform: scale(0.99); }
.bing-result cite {
  display: block; font-style: normal; font-size: 12.5px;
  color: #b9f09a; letter-spacing: 0.2px; margin-bottom: 3px;
}
.bing-result b { font-size: 17px; font-weight: 400; color: #cfe9ff; text-decoration: underline; cursor: pointer; }
.bing-result p { font-size: 13.5px; color: rgba(255,255,255,0.85); max-width: 60ch; margin-top: 4px; line-height: 1.45; }
.bing-result i { font-style: normal; font-size: 12px; color: rgba(255,255,255,0.55); display: block; margin-top: 4px; }

/* ==========================================================
   LEGEND (bottom bar)
   ========================================================== */
.legend {
  flex: none;
  display: flex; align-items: center; gap: 9px;
  padding: 14px 0 20px 150px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-glyph {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  box-shadow: inset 0 -3px 5px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.3);
}
.btn-glyph.a { background: radial-gradient(circle at 35% 30%, #97d759, #3f9414); }
.btn-glyph.y { background: radial-gradient(circle at 35% 30%, #ffd97a, #c79100); }
.btn-glyph.b { background: radial-gradient(circle at 35% 30%, #ff8a7a, #b3200e); }
.legend-label { margin-right: 14px; }
.legend-hint { margin-left: auto; margin-right: 160px; font-size: 12.5px; color: rgba(255,255,255,0.6); }

/* ==========================================================
   PROJECT VIEW — a real page for each project, not a popup.
   Slides in full-screen from the right, like drilling into a
   game's hub on the 360 dash.
   ========================================================== */
.pview-wrap { position: fixed; inset: 0; z-index: 55; }
.pview-wrap[hidden] { display: none; }
.pview {
  position: absolute; inset: 0;
  overflow-y: auto;
  background: linear-gradient(180deg, #3a3a3a, #1e1e1e);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.22, 1);
  box-shadow: -12px 0 50px rgba(0,0,0,0.5);
  scrollbar-width: thin;
}
.pview-wrap.open .pview { transform: translateX(0); }

.pview-top {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 36px;
  background: linear-gradient(180deg, rgba(15,15,15,0.85) 0%, rgba(15,15,15,0.55) 70%, transparent 100%);
}
.pview-back {
  display: flex; align-items: center; gap: 9px;
  background: none; border: 0; cursor: pointer;
  color: #fff; font-family: var(--font); font-size: 15px; font-weight: 400;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  padding: 6px 8px;
}
.pview-back:hover { color: #d9ffb8; }
.pview-pager { display: flex; align-items: center; gap: 12px; }
.pview-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.3);
  color: #fff; font-size: 16px; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.pview-arrow:hover { background: rgba(255,255,255,0.18); transform: scale(1.08); }
.pview-count { font-size: 12.5px; color: rgba(255,255,255,0.75); min-width: 44px; text-align: center; }

.pview h3 { font-size: 36px; font-weight: 300; letter-spacing: 1px; }
.pview .m-tagline { color: #9be26a; font-size: 16px; margin: 4px 0 16px; }
.pview .m-meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  font-size: 13.5px; color: rgba(255,255,255,0.75);
  padding: 12px 0 16px; border-top: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 18px;
}
.pview .m-meta b { color: #fff; font-weight: 500; }
.pview p.m-desc { font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,0.9); max-width: 70ch; }
.pview .m-bullets {
  margin: 12px 0 0; padding-left: 20px;
  max-width: 70ch; list-style: disc;
}
.pview .m-bullets li {
  font-size: 14.5px; line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin-bottom: 8px;
}
.pview .m-tech { margin: 18px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.pview .m-tech i {
  font-style: normal; font-size: 12.5px;
  background: rgba(255,255,255,0.12);
  padding: 4px 11px;
}
.pview h4 { font-size: 15px; font-weight: 500; margin: 22px 0 10px; color: rgba(255,255,255,0.85); letter-spacing: 0.5px; }
.rview-download {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(160deg, var(--green), var(--green-dark));
  color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 9px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  transition: transform 0.15s, filter 0.15s;
}
.rview-download:hover { transform: scale(1.03); filter: brightness(1.08); }
.r-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px;
  font-size: 13.5px; color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}
.r-row b { color: #fff; font-weight: 500; }
.r-block { margin-bottom: 26px; }
.r-block:last-child { margin-bottom: 0; }
.m-ach { display: flex; flex-direction: column; gap: 8px; }
.m-ach .ach {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.07);
  padding: 10px 15px;
}
.m-ach .ach .disc {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a8e072, var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.m-ach .ach b { font-size: 14.5px; font-weight: 500; display: block; }
.m-ach .ach span { font-size: 12.5px; color: rgba(255,255,255,0.7); }
.m-links { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.m-links a {
  color: #fff; text-decoration: none; font-size: 14px;
  background: linear-gradient(160deg, var(--green), var(--green-dark));
  padding: 10px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: filter 0.15s, transform 0.15s;
}
.m-links a:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* ---------- SPLIT — art left, marketplace info right ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(320px, 44%) 1fr;
  min-height: 100vh;
  margin-top: -74px;
}
.split-art {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
}
.split-art-picture {
  flex: 1;
  display: block;
  min-height: 0;
  overflow: hidden;
}
.split-art-image { width: 100%; height: 100%; object-fit: cover; }
.split-art-bar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 22px;
  background: linear-gradient(160deg, var(--green), var(--green-dark));
}
.split-art-bar b { font-size: 17px; font-weight: 600; letter-spacing: 0.5px; }
.split-art-bar span { font-size: 13px; opacity: 0.9; }
.split-info { padding: 100px 48px 60px; max-width: 640px; }
.split-info h3 { font-size: 32px; font-weight: 300; letter-spacing: 1px; }
.split-rows { margin: 16px 0 18px; border-top: 1px solid rgba(255,255,255,0.12); }
.split-rows > div {
  display: grid; grid-template-columns: 130px 1fr;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 13.5px;
}
.split-rows dt { color: rgba(255,255,255,0.6); }
.split-rows dd { color: #fff; font-weight: 500; }

@media (max-width: 760px) {
  .pview-top { padding: 14px 20px; }
  .pview h3 { font-size: 26px; }
  .split { grid-template-columns: 1fr; margin-top: -64px; }
  .split-art { position: relative; height: 42vh; }
  .split-info { padding: 26px 22px 50px; }
}

/* ==========================================================
   ACHIEVEMENT TOAST
   ========================================================== */
.toast {
  position: fixed; left: 50%; bottom: -110px; z-index: 60;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 13px;
  background: linear-gradient(180deg, #3d3d3d, #1f1f1f);
  border-radius: 40px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.55), 0 10px 30px rgba(0,0,0,0.5);
  padding: 9px 26px 9px 10px;
  transition: bottom 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.show { bottom: 64px; }
.toast-disc {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a8e072, var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.3);
}
.toast-text b { display: block; font-size: 13px; font-weight: 600; }
.toast-text i { font-style: normal; font-size: 12.5px; color: rgba(255,255,255,0.8); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .topnav { padding-left: 60px; gap: 26px; }
  .tab { font-size: 22px; }
  .tab.active { font-size: 32px; }
  .channel { padding: 0 60px 30px; }
  .legend { padding-left: 60px; }
  .legend-hint { margin-right: 70px; }
  .edge-right { display: none; }
  .edge-search { display: none; }
}
@media (max-width: 1100px) {
  .profile-row { grid-template-columns: 1fr; }
  .gc-stats { grid-template-columns: repeat(2, 1fr); }
  .gc-stats div:nth-child(odd) { border-left: none; }
}
@media (max-width: 760px) {
  /* boot splash scaled down */
  .boot { gap: 24px; }
  .boot-swirl { width: 180px; height: 180px; }
  .boot-word { font-size: 22px; letter-spacing: 6px; }

  /* nav: one-line scrolling channel strip, active tab auto-centers */
  .topnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 24px;
    padding: 18px 20px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .tab { font-size: 19px; flex: none; }
  .tab.active { font-size: 27px; }

  /* leave room for the guide bar at the bottom */
  .channel { padding: 4px 14px calc(100px + env(safe-area-inset-bottom)); }

  /* home keeps a real dashboard grid — hero on top, tiles in pairs */
  .home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 8px;
    height: auto; max-height: none;
    grid-template-areas:
      "hero  hero"
      "play  side1"
      "p2    p3"
      "pins  recent"
      "side2 side3";
  }
  .home-grid .tile { min-height: 0; aspect-ratio: 16 / 10; }
  .g-hero { aspect-ratio: 16 / 9; }
  .tile.green .big-ico { font-size: 40px; }
  .tile .label { font-size: 13px; padding: 6px 10px 7px; }
  .tile .label span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-width: 0;
  }
  .tile .label small { overflow: hidden; text-overflow: ellipsis; }
  .g-hero .label { font-size: 14.5px; padding: 8px 11px 9px; }

  /* profile */
  .profile-grid { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .gamercard .gc-head { flex-wrap: wrap; }
  .avatar-stage { min-height: 0; order: -1; }
  .avatar-body { max-height: 36vh; margin-bottom: 10px; }
  .avatar-floor { bottom: 50px; }

  /* experience rows stack; company band becomes a header strip */
  .xp-row { grid-template-columns: 1fr; }
  .xp-cell.brandcell {
    flex-direction: row; justify-content: space-between; align-items: baseline;
    gap: 10px; padding: 11px 18px;
  }
  .xp-meta {
    text-align: left; flex-direction: row;
    justify-content: space-between; align-items: baseline;
    padding-top: 0;
  }

  /* single-column lists, paired contact tiles */
  .proj-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-tile { min-height: 110px; padding: 13px 14px; }
  .contact-tile b { font-size: 15.5px; }
  .contact-tile span { font-size: 12px; }

  /* legend is replaced by the mobile guide bar */
  .legend { display: none; }

  /* toast sits above the guide bar */
  .toast { max-width: calc(100vw - 24px); white-space: nowrap; }
  .toast-text i { white-space: normal; }
  .toast.show { bottom: calc(88px + env(safe-area-inset-bottom)); }

  /* project view chrome */
  .pview-top { padding: 12px 14px; }
  .pview { padding-bottom: env(safe-area-inset-bottom); }
}

/* ==========================================================
   MOBILE GUIDE — bottom bar with the Xbox guide orb, plus a
   slide-up "guide" sheet (channels + gamercard + quick actions),
   standing in for the edge tiles and legend on small screens
   ========================================================== */
.mbar { display: none; }

@media (max-width: 760px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; align-items: stretch; justify-content: space-between;
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(20,20,20,0.5) 35%, rgba(20,20,20,0.78) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
.mbar-side {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.mbar-side .ico { font-size: 19px; line-height: 1; }
.mbar-side:active { color: #b9f09a; }
.mbar-guide {
  flex: none;
  width: 60px; height: 60px;
  margin-top: -24px;               /* orb pops above the bar, controller-style */
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.88);
  background: radial-gradient(circle at 35% 28%, #c2f186, #5dc21e 55%, var(--green-deep));
  box-shadow: 0 6px 18px rgba(0,0,0,0.45), inset 0 -7px 12px rgba(0,0,0,0.28);
  color: #fff;
  font-family: var(--font); font-size: 27px; font-weight: 700; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.mbar-guide:active { transform: scale(0.93); filter: brightness(1.12); }
.mbar-guide span { transform: translateY(-2px); text-shadow: 0 1px 3px rgba(0,0,0,0.35); }

.guide-wrap { position: fixed; inset: 0; z-index: 70; }
.guide-wrap[hidden] { display: none; }
.guide-scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0; transition: opacity 0.3s ease;
}
.guide-wrap.open .guide-scrim { opacity: 1; }
.guide {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 84vh; overflow-y: auto;
  background: linear-gradient(180deg, #3d3d3d, #212121);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.22, 0.8, 0.22, 1);
  scrollbar-width: thin;
}
.guide-wrap.open .guide { transform: none; }

.guide-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: linear-gradient(160deg, var(--green), var(--green-dark));
  border-radius: 16px 16px 0 0;
}
.guide-head img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 6px rgba(0,0,0,0.28);
}
.guide-id { flex: 1 1 auto; min-width: 0; }
.guide-id b { display: block; font-size: 18px; font-weight: 600; }
.guide-id span { font-size: 12px; opacity: 0.95; }
.guide-id .gc-stars { font-size: 11px; }
.guide-x {
  background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,0.85); font-size: 28px; line-height: 1;
  padding: 2px 8px;
}

.guide-sec { padding: 14px 16px 2px; }
.guide-kicker {
  display: block; font-size: 10px; font-weight: 500;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.guide-chs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.guide-ch {
  font-family: var(--font); font-size: 15px; font-weight: 400;
  color: #fff; background: rgba(255,255,255,0.08);
  border: 0; cursor: pointer;
  padding: 13px 10px;
  text-align: center;
  transition: background 0.15s ease;
}
.guide-ch.on {
  background: linear-gradient(160deg, var(--green), var(--green-dark));
  font-weight: 500;
}
.guide-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding-bottom: 8px; }
.guide-link {
  text-decoration: none; color: #fff;
  background: rgba(255,255,255,0.08);
  padding: 11px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.guide-link b { font-size: 13.5px; font-weight: 500; }
.guide-link span { font-size: 11.5px; opacity: 0.75; word-break: break-all; }
