@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --studio-accent: #6366f1;
  --studio-accent2: #f093fb;
  --studio-bg: #f8f6ff;
  --studio-surface: #fff;
  --studio-text: #1a1a2e;
  --studio-muted: #666;
  --studio-soft: #aaa;
  --studio-border: #e8e4f0;
  --studio-radius: 12px;
  --studio-hero-g1: #667eea;
  --studio-hero-g2: #764ba2;
  --studio-hero-g3: #f093fb;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--studio-text);
  background: var(--studio-bg);
  line-height: 1.6;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

/* Studio nav */
.studio-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--studio-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.studio-id {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--studio-text);
}

.studio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #63d2a1;
  box-shadow: 0 0 8px rgba(99,210,161,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.studio-nav .studio-name { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.03em; }
.studio-nav .studio-label { font-size: 0.72rem; color: var(--studio-accent); text-transform: uppercase; letter-spacing: 0.08em; font-family: 'IBM Plex Mono', monospace; }

.studio-nav .links { display: flex; gap: 1.25rem; }
.studio-nav .links a { color: var(--studio-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; }
.studio-nav .links a:hover { color: var(--studio-text); }

/* Layout */
.container { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }

.page-header { text-align: center; padding: 3rem 0 2rem; }
.page-header h1 { font-size: 2rem; font-weight: 800; }
.page-header p { color: var(--studio-muted); margin-top: 0.5rem; }

.section { padding: 1.5rem 0 2rem; }
.section-label { font-weight: 700; color: var(--studio-soft); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; margin-bottom: 1rem; }

/* Cards */
.card {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: var(--studio-radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: #c7c7f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.06);
}

.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--studio-text); }
.card p { color: var(--studio-muted); font-size: 0.9rem; margin-top: 0.4rem; line-height: 1.5; }

.card .mashup {
  color: var(--studio-accent);
  font-size: 0.78rem;
  margin-top: 0.15rem;
  font-family: 'IBM Plex Mono', monospace;
}

.card .play-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--studio-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.card .play-link:hover { color: #818cf8; }

/* Game card with screenshot */
.game-card-visual { padding: 0; overflow: hidden; }
.game-card-visual h3, .game-card-visual p, .game-card-visual .mashup, .game-card-visual .play-link { padding: 0 1.5rem; }
.game-card-visual h3 { padding-top: 1rem; }
.game-card-visual .play-link { padding-bottom: 1.25rem; display: inline-block; }

.game-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Grids */
.grid-row { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.grid-row > .card { flex: 0 0 260px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }

/* Team */
.team-row { display: flex; align-items: center; gap: 0.35rem; }
.team-row img { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--studio-border); background: var(--studio-surface); transition: transform 0.15s; cursor: pointer; }
.team-row img:hover { transform: scale(1.2); border-color: var(--studio-accent); }
.team-count { color: var(--studio-soft); font-size: 0.8rem; margin-left: 0.5rem; }

.team-card { text-align: center; }
.team-card img { width: 72px; height: 72px; margin-bottom: 1rem; }
.team-slot {
  display: flex;
  flex-direction: column;
}

.slot-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  padding: 0.4rem 0;
  margin-bottom: 0.35rem;
  font-family: 'IBM Plex Mono', monospace;
  border-bottom: 2px dashed #e0daea;
}
.team-card .role { color: var(--studio-accent); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; }
.team-card .bio { color: #555; font-size: 0.9rem; text-align: left; }
.team-card .quote { margin-top: 0.75rem; font-size: 0.82rem; color: #999; font-style: italic; }
.team-card .email { margin-top: 0.5rem; font-size: 0.8rem; color: #bbb; }

/* Phase bar */
.phase-bar { display: flex; align-items: center; flex-wrap: wrap; margin: 1.25rem 0 2rem; }
.phase-step { padding: 0.55rem 0.9rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #bbb; white-space: nowrap; }
.phase-arrow { color: #ccc; font-size: 0.7rem; padding: 0 0.15rem; }
.phase-step.done { color: #63d2a1; }
.phase-step.done::before { content: "✓ "; }
.phase-arrow.done { color: #63d2a1; }
.phase-step.active { color: var(--studio-accent); font-weight: 800; animation: pulse-text 2s ease-in-out infinite; }
@keyframes pulse-text { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

/* Discord-style chat */
.discord-panel {
  background: #313338;
  border: 1px solid #1e1f22;
  border-radius: var(--studio-radius);
  overflow: hidden;
}

.discord-panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #2b2d31;
  border-bottom: 1px solid #1e1f22;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f2f3f5;
}

.discord-panel-header svg { flex-shrink: 0; }

.discord-panel-body {
  padding: 0.75rem 1rem;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1e1f22 transparent;
}

.chat-msg {
  margin-bottom: 0.6rem;
  padding: 0.4rem 0;
}

.chat-msg:hover { background: rgba(255,255,255,0.02); border-radius: 4px; }

.chat-msg-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.chat-msg-head strong { font-size: 0.85rem; }
.chat-msg-head .time { color: #949ba4; font-size: 0.68rem; margin-left: 0.5rem; }
.chat-msg p { color: #dbdee1; font-size: 0.85rem; margin-top: 0.15rem; line-height: 1.45; }

/* Activity */
.activity-item { padding: 0.8rem 0; border-bottom: 1px solid #eee; font-size: 0.85rem; }
.activity-item:last-child { border-bottom: 0; }
.activity-item .act-type { color: var(--studio-accent); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; font-family: 'IBM Plex Mono', monospace; }
.activity-item .act-title { margin-top: 0.15rem; color: var(--studio-text); font-weight: 600; }
.activity-item .act-quote { color: #888; font-size: 0.82rem; margin-top: 0.25rem; font-style: italic; border-left: 2px solid var(--studio-border); padding-left: 0.6rem; }
.activity-item .act-meta { color: var(--studio-soft); font-size: 0.75rem; margin-top: 0.25rem; }

/* Discord bar */
.discord-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: rgba(88,101,242,0.06); border: 1px solid rgba(88,101,242,0.15); border-radius: var(--studio-radius); margin-top: 1.5rem; }
.discord-bar span { color: var(--studio-muted); font-size: 0.9rem; }
.discord-bar a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.2rem; background: #5865F2; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.85rem; }
.discord-bar a:hover { background: #4752c4; }

/* Footer */
footer { text-align: center; padding: 2.5rem 1.5rem; color: var(--studio-soft); font-size: 0.82rem; border-top: 1px solid var(--studio-border); margin-top: 1rem; }
footer a { color: var(--studio-accent); text-decoration: none; }

/* Responsive */
@media (max-width: 700px) {
  .studio-nav { padding: 0.8rem 1rem; }
  .studio-nav .links { gap: 0.8rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Ticket Board (Kanban) */
.ticket-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.ticket-column {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: var(--studio-radius);
  padding: 0.75rem;
  min-height: 200px;
}

.ticket-column-header {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--studio-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--studio-border);
}

.ticket-count {
  background: var(--studio-border);
  color: var(--studio-muted);
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  margin-left: 0.25rem;
}

.ticket-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ticket-card {
  display: block;
  background: var(--studio-bg);
  border: 1px solid var(--studio-border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  color: var(--studio-text);
  transition: all 0.15s;
  font-size: 0.85rem;
}

.ticket-card:hover {
  border-color: var(--studio-accent);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.ticket-card.blocker {
  border-left: 3px solid #e11d48;
}

.ticket-title {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.ticket-agent {
  font-size: 0.75rem;
  color: var(--studio-accent);
  font-weight: 500;
}

.ticket-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.ticket-label {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--studio-border);
  color: var(--studio-muted);
  font-weight: 500;
}

.ticket-label.label-feature { background: #dbeafe; color: #1d4ed8; }
.ticket-label.label-engineer { background: #dbeafe; color: #1d4ed8; }
.ticket-label.label-design { background: #ede9fe; color: #6d28d9; }
.ticket-label.label-bug { background: #ffe4e6; color: #be123c; }
.ticket-label.label-polish { background: #fef3c7; color: #92400e; }
.ticket-label.label-test { background: #d1fae5; color: #065f46; }
.ticket-label.label-qa { background: #d1fae5; color: #065f46; }
.ticket-label.label-audio { background: #e0e7ff; color: #3730a3; }
.ticket-label.label-playtest { background: #fce7f3; color: #9d174d; }
.ticket-label.label-direction { background: #fef9c3; color: #854d0e; }
.ticket-label.label-community { background: #fce7f3; color: #9d174d; }
.ticket-label.label-concept { background: #fee2e2; color: #991b1b; }

.ticket-empty {
  color: var(--studio-soft);
  font-size: 0.8rem;
  font-style: italic;
  padding: 1rem 0;
  text-align: center;
}

@media (max-width: 768px) {
  .ticket-board {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .ticket-board {
    grid-template-columns: 1fr;
  }
}

/* Slot responsibilities (above the card, associated with the role) */
.slot-responsibilities {
  font-size: 0.8rem;
  color: var(--studio-accent);
  font-weight: 500;
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* Profile-style tab nav (like X/Twitter) */
.studio-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--studio-surface);
  border-bottom: 1px solid var(--studio-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.studio-tabs .tab {
  padding: 0.9rem 1.5rem;
  text-decoration: none;
  color: var(--studio-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.studio-tabs .tab:hover {
  color: var(--studio-text);
  background: var(--studio-bg);
}

.studio-tabs .tab.active {
  color: var(--studio-text);
  border-bottom-color: var(--studio-accent);
}

@media (max-width: 600px) {
  .studio-tabs .tab { padding: 0.7rem 0.8rem; font-size: 0.8rem; }
}

/* Equal height team cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.team-slot {
  display: flex;
  flex-direction: column;
}

.team-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-card .bio {
  flex: 1;
}

.team-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* MTG-style character cards */
.mtg-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #2a2a4a;
  transition: all 0.2s;
  position: relative;
}

.mtg-card:hover {
  border-color: var(--studio-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.mtg-portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at top, rgba(148, 163, 184, 0.18), transparent 55%),
    linear-gradient(180deg, #1f2942 0%, #131a2b 100%);
}

.mtg-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.mtg-info {
  padding: 1rem 1.2rem 1.2rem;
  background: linear-gradient(to bottom, #1a1a2e, #12121f);
}

.mtg-info h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.mtg-role {
  color: var(--studio-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.mtg-bio {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Force equal height MTG cards */
.grid-3, #team-grid {
  align-items: stretch;
}

.team-slot {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mtg-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mtg-portrait {
  flex-shrink: 0;
}

.mtg-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mtg-bio {
  flex: 1;
}

@media (max-width: 768px) {
  #team-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  #team-grid { grid-template-columns: 1fr !important; }
}

/* Discord panel — dark theme matching real Discord */
.discord-panel {
  background: #313338 !important;
  border: 1px solid #1e1f22 !important;
  border-radius: 12px;
  overflow: hidden;
}

.discord-panel-header {
  background: #2b2d31 !important;
  color: #b5bac1 !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #1e1f22 !important;
}

.discord-panel-header a {
  color: #5865F2 !important;
}

.discord-panel-body {
  padding: 0.5rem 0 !important;
  background: #313338 !important;
}

.chat-msg {
  display: flex !important;
  gap: 0.75rem !important;
  padding: 0.5rem 1rem !important;
  align-items: flex-start !important;
}

.chat-msg:hover {
  background: #2e3035;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-msg-body {
  flex: 1;
  min-width: 0;
}

.chat-msg-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.chat-msg-head strong {
  font-size: 0.9rem;
}

.chat-msg-head .time {
  color: #949ba4 !important;
  font-size: 0.7rem !important;
}

.chat-msg p {
  color: #dbdee1 !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  margin-top: 0.15rem !important;
}

/* Hero CTAs */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.hero-cta:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}

.hero-cta-accent {
  background: #fff;
  color: var(--studio-accent);
  border-color: #fff;
}

.hero-cta-accent:hover {
  background: #f0f0ff;
  border-color: #f0f0ff;
}

/* Nav CTA button */
.platform-nav .nav-cta {
  background: var(--studio-accent) !important;
  color: #fff !important;
  padding: 0.4rem 1rem !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
}
.platform-nav .nav-cta:hover {
  background: #818cf8 !important;
}
