﻿:root {
  --bg: #ecece8;
  --paper: #f7f7f4;
  --ink: #111;
  --line: #2a2a2a;
  --soft-line: #c9c9c3;
  --muted: #666;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: linear-gradient(140deg, #f5f5f1, var(--bg));
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
}

.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 18%, rgba(0, 0, 0, 0.04), transparent 28%),
    radial-gradient(circle at 80% 82%, rgba(0, 0, 0, 0.04), transparent 30%);
  z-index: 0;
}

.profile-page {
  position: relative;
  z-index: 1;
  width: min(1380px, 95vw);
  margin: 18px auto 24px;
  display: grid;
  gap: 14px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #121212;
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  padding: 11px 14px;
  color: #f4f4f4;
  box-shadow: var(--shadow);
}

.top-bar h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 40px;
  letter-spacing: 0.08em;
  line-height: 0.9;
}

.top-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.menu-item {
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  color: #ececec;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.menu-item:hover,
.menu-item.active {
  background: #f1f1ef;
  color: #101010;
  border-color: #f1f1ef;
}

.cover-area {
  position: relative;
  min-height: clamp(340px, 55vh, 520px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #2b2b2b;
  box-shadow: var(--shadow);
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(128deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.52));
}

.cover-lines {
  position: absolute;
  inset: -15% -8% -25%;
  background: repeating-linear-gradient(-18deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 26px);
  opacity: 0.28;
  pointer-events: none;
}

.cover-area::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -65px;
  height: 120px;
  background: repeating-linear-gradient(-18deg, rgba(0, 0, 0, 0.15) 0 2px, transparent 2px 24px);
  opacity: 0.33;
  pointer-events: none;
}

.cover-refresh {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(16, 16, 16, 0.64);
  color: #f2f2f2;
  border-radius: 10px;
  padding: 9px 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.cover-refresh:disabled {
  opacity: 0.5;
  cursor: wait;
}

.cover-last-sync {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  margin: 0;
  font-size: 12px;
  color: #dadada;
}

.profile-floating {
  position: absolute;
  left: 20px;
  top: 56px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(12, 12, 12, 0.63);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  padding: 10px 12px;
}

.profile-floating img {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.profile-nick {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.profile-sub {
  margin: 2px 0 0;
  color: #d6d6d6;
  font-size: 13px;
}

.tier-pills {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.tier-pills article {
  background: rgba(12, 12, 12, 0.63);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  padding: 9px 10px;
}

.tier-pills span {
  display: block;
  color: #bfbfbf;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.tier-pills strong {
  color: #fff;
  font-size: 19px;
  line-height: 1.1;
}

.tier-pill-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.me-section {
  background: #101010;
  border: 1px solid #2f2f2f;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.me-section .section-title h2 {
  color: #f2f2f2;
}

.me-section .section-title p {
  color: #ababab;
}

.me-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.me-card {
  background: #171717;
  border: 1px solid #343434;
  border-radius: 14px;
  padding: 12px;
}

.me-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #f2f2f2;
}

.gear-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.gear-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #1f1f1f;
  padding: 7px;
}

.gear-item img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
}

.gear-item span {
  display: block;
  font-size: 12px;
  color: #a9a9a9;
}

.gear-item strong {
  font-size: 14px;
  color: #f1f1f1;
}

.me-pr-card {
  display: grid;
  align-content: start;
  order: 1;
}

.me-gear-card {
  order: 2;
}

.pr-text {
  margin: 0;
  min-height: 180px;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  background: #1f1f1f;
  color: #f1f1f1;
  padding: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.game-cards {
  background: var(--paper);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.section-title h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 38px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cards-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.game-tall-card {
  background: #fff;
  border: 1px solid #c9c9c3;
  border-radius: 14px;
  padding: 12px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-tall-card header {
  border-bottom: 1px solid #d8d8d2;
  padding-bottom: 10px;
}

.game-tall-card header p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #666;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  color: #111;
}

.tier-badge em {
  font-style: normal;
}

.game-nickname {
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid #e0e0dc;
  border-radius: 10px;
  background: #f8f8f5;
  color: #3a3a3a;
  font-size: 13px;
}

.game-nickname strong {
  color: #111;
  font-weight: 700;
}

.card-block {
  border: 1px solid #e0e0dc;
  border-radius: 10px;
  background: #f8f8f5;
  padding: 10px;
}

.card-block h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #333;
}

.card-block p {
  margin: 0;
  color: #222;
}

.metrics-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metrics-two p {
  background: #fff;
  border: 1px solid #ddddda;
  border-radius: 8px;
  padding: 8px;
}

.metrics-two span {
  display: block;
  font-size: 12px;
  color: #686868;
}

.metrics-two strong {
  font-size: 20px;
  color: #121212;
}

.setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.setting-grid p {
  background: #fff;
  border: 1px solid #ddddda;
  border-radius: 8px;
  padding: 8px;
}

.setting-grid span {
  display: block;
  font-size: 12px;
  color: #686868;
}

.setting-grid strong {
  font-size: 20px;
  color: #121212;
}

.most-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.most-list li {
  border-top: 1px solid #dfdfdb;
  padding: 7px 0;
  color: #222;
  font-size: 14px;
}

.most-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.hero-row {
  display: grid;
  grid-template-columns: 148px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid #d4d4d0;
}

.hero-meta span {
  color: #1d1d1d;
}

.hero-bar {
  height: 8px;
  border-radius: 999px;
  background: #e6e6e2;
  overflow: hidden;
}

.hero-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.hero-row strong {
  text-align: right;
  font-size: 13px;
}

.latest-block {
  margin-top: auto;
}

.latest-block p {
  font-size: 15px;
  color: #141414;
}

.single-line {
  font-size: 15px;
  line-height: 1.35;
}

.clips-section {
  background: #101010;
  border: 1px solid #2e2e2e;
  border-radius: var(--radius);
  padding: 14px;
  color: #f2f2f2;
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.section-head h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.section-head p {
  margin: 0;
  color: #a9a9a9;
}

.clips-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.clip-card {
  background: #171717;
  border: 1px solid #343434;
  border-radius: 10px;
  padding: 8px;
}

.clip-card video {
  width: 100%;
  max-height: 180px;
  border-radius: 7px;
  background: #000;
}

.clip-card p {
  margin: 8px 0 0;
  color: #d0d0d0;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.48s ease forwards;
}

.reveal:nth-child(1) {
  animation-delay: 0.06s;
}

.reveal:nth-child(2) {
  animation-delay: 0.12s;
}

.reveal:nth-child(3) {
  animation-delay: 0.18s;
}

.reveal:nth-child(4) {
  animation-delay: 0.24s;
}

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

@media (max-width: 1100px) {
  .cards-grid,
  .tier-pills,
  .clips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .tier-pills,
  .me-grid,
  .cards-grid,
  .clips-grid,
  .metrics-two,
  .setting-grid {
    grid-template-columns: 1fr;
  }

  .profile-floating {
    top: 60px;
    right: 20px;
    left: 20px;
  }

  .tier-pills {
    bottom: 14px;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .profile-page {
    width: 94vw;
    margin: 12px auto 20px;
    gap: 10px;
  }

  .top-bar,
  .cover-area,
  .game-cards,
  .clips-section {
    border-radius: 12px;
  }

  .cover-refresh {
    top: 10px;
    right: 10px;
    padding: 8px 10px;
  }

  .profile-nick {
    font-size: 20px;
  }

  .tier-badge {
    font-size: 21px;
  }

  .game-tall-card {
    min-height: 380px;
  }
}
