@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sora:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --bg: #0a0f18;
  --bg-soft: #121a28;
  --ink: #e9efff;
  --muted: #96a8c8;
  --card: rgba(18, 27, 42, 0.9);
  --card-strong: rgba(22, 33, 51, 0.98);
  --line: rgba(162, 184, 224, 0.2);
  --gold: #d4a74f;
  --gold-2: #ac7f2b;
  --blue: #64b0ef;
  --red: #d36767;
  --ok: #43b275;
  --shadow: 0 20px 34px rgba(2, 5, 11, 0.55);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Outfit", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 6%, rgba(212, 167, 79, 0.22), transparent 28%),
    radial-gradient(circle at 90% 4%, rgba(100, 176, 239, 0.2), transparent 32%),
    linear-gradient(150deg, #070b11 0%, var(--bg) 48%, var(--bg-soft) 100%);
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}

.sidebar {
  padding: 28px 22px;
  background: linear-gradient(180deg, #0b1321 0%, #090f19 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-family: "Sora", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.tagline {
  margin-top: 8px;
  color: rgba(241, 244, 248, 0.76);
  line-height: 1.35;
}

.content {
  padding: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.hidden {
  display: none !important;
}

h2,
h3 {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 16px;
}

.auth-card {
  max-width: 460px;
}

.tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(35, 47, 70, 0.7);
}

.tab {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  color: #1e2432;
  background: linear-gradient(135deg, #efca83, #c5942d);
}

.tab-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  background: rgba(12, 20, 31, 0.96);
}

input:focus {
  outline: none;
  border-color: rgba(212, 167, 79, 0.9);
  box-shadow: 0 0 0 3px rgba(212, 167, 79, 0.2);
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2c6f9f, #23567d);
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.04);
}

.btn.primary {
  color: #1b2432;
  background: linear-gradient(135deg, #efca83, #c5942d);
}

.btn.ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.btn.ghost.active {
  border-color: rgba(212, 167, 79, 0.95);
  box-shadow: 0 0 0 2px rgba(212, 167, 79, 0.22);
}

.btn.danger {
  color: #1f2023;
  background: linear-gradient(135deg, #e8a39e, #cc6464);
}

.btn.tiny {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 9px;
}

.status-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(14, 24, 38, 0.95);
  color: var(--ink);
  padding: 8px 10px;
  font-size: 13px;
}

.msg {
  min-height: 18px;
  color: var(--blue);
  font-size: 13px;
}

.msg.error,
.error {
  color: var(--red) !important;
}

.muted {
  color: var(--muted);
}

.topbar {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.topbar-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 280px;
}

.header-title {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

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

.top-xp {
  max-width: 360px;
}

.route-page {
  animation: fadeUp 0.24s ease;
}

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

.hero-card {
  grid-column: span 6;
}

.mission-card {
  grid-column: span 3;
}

.home-grid > .card:not(.hero-card):not(.mission-card):not(.inbox-panel) {
  grid-column: span 4;
}

.inbox-panel {
  grid-column: 1 / -1;
}

.field-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  flex: 1;
}

.toggle-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.toggle-row input {
  width: auto;
}

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

.list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.player-name {
  font-weight: 500;
}

.player-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(18, 27, 41, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.player-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: #3cc06f;
}

.online-dot.offline {
  background: #8e98aa;
}

.challenge-section + .challenge-section {
  margin-top: 10px;
}

.section-title {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.challenge-list,
.mission-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.challenge-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 25, 38, 0.9);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.challenge-actions {
  display: flex;
  gap: 6px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inbox-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inbox-pill {
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 10px;
  color: #13273b;
  background: rgba(100, 176, 239, 0.2);
}

.inbox-item {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 10px;
  background: rgba(15, 24, 36, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.play-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 300px;
  gap: 12px;
}

.play-left,
.play-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.play-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.play-center .game-menu,
.play-center #game-info,
.play-center .clocks {
  width: min(100%, 760px);
}

.game-start {
  display: flex;
  justify-content: center;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-name {
  font-weight: 700;
  font-size: 17px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(17, 25, 38, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar.small {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.avatar-icon {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  line-height: 1;
}

.play-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-header {
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.chat {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(13, 21, 34, 0.9);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.chat-line {
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(100, 176, 239, 0.12);
}

.chat-time {
  margin-left: 7px;
  font-size: 11px;
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(18, 27, 41, 0.9);
  padding: 9px;
  text-align: center;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.stat-value {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
}

.xp-box {
  margin-top: 6px;
}

.xp-bar {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(100, 176, 239, 0.2);
  overflow: hidden;
}

.xp-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #efca83, #c5942d);
  transition: width 0.35s ease;
}

.suggestions {
  z-index: 30;
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-strong);
  box-shadow: var(--shadow);
  padding: 5px;
  max-height: 230px;
  overflow-y: auto;
}

.suggestion {
  border: none;
  width: 100%;
  text-align: left;
  border-radius: 9px;
  padding: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink);
}

.suggestion:hover {
  background: rgba(100, 176, 239, 0.14);
}

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

.clock {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 26, 39, 0.94);
  padding: 8px 10px;
}

.clock.active {
  border-color: rgba(212, 167, 79, 0.95);
  box-shadow: 0 0 0 2px rgba(212, 167, 79, 0.22);
}

.clock-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.clock-time {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
}

.board {
  width: min(100%, 760px);
  aspect-ratio: 1;
  border-radius: 16px;
  border: 2px solid rgba(16, 26, 40, 0.7);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  overflow: hidden;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.42);
  margin: 0 auto;
}

.board.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(45deg, rgba(100, 176, 239, 0.12), rgba(212, 167, 79, 0.2)),
    #121c2a;
}

.board-placeholder {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  padding: 10px;
}

.square {
  border: none;
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.square.light {
  background: linear-gradient(135deg, #f0debd 0%, #e6cfaa 100%);
}

.square.dark {
  background: linear-gradient(135deg, #b67f49 0%, #85562f 100%);
}

.square.selected {
  box-shadow: inset 0 0 0 3px rgba(212, 167, 79, 0.96);
}

.square.hover-source {
  box-shadow: inset 0 0 0 3px rgba(88, 196, 130, 0.75);
}

.square.last-move {
  box-shadow: inset 0 0 0 3px rgba(100, 176, 239, 0.5);
}

.square.hint-move::after,
.square.hint-capture::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.square.hint-move::after {
  width: 12px;
  height: 12px;
  background: rgba(23, 80, 119, 0.46);
}

.square.hint-capture::after {
  width: 64%;
  height: 64%;
  border: 4px solid rgba(164, 38, 38, 0.55);
}

.square.drop-preview {
  animation: pulseGreen 0.7s ease-in-out infinite;
}

.square.drop-capture {
  animation: pulseRed 0.7s ease-in-out infinite;
}

.piece {
  user-select: none;
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.26);
}

.piece-white {
  color: #fff7e9;
}

.piece-black {
  color: #161616;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
}

.mission-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 26, 39, 0.94);
  padding: 8px 9px;
}

.mission-title {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  font-size: 13px;
}

.mission-bar {
  margin-top: 6px;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(100, 176, 239, 0.18);
  overflow: hidden;
}

.mission-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, #efca83, #c5942d);
}

.mission-item.completed .mission-progress {
  background: linear-gradient(135deg, #66c38e, #3b9f69);
}

.lock-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffd86f;
  font-size: 12px;
}

.dm-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 10px;
}

.dm-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dm-threads {
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dm-thread {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 26, 39, 0.95);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  text-align: left;
  color: var(--ink);
}

.dm-thread.active {
  border-color: rgba(212, 167, 79, 0.95);
}

.dm-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dm-meta span {
  color: var(--muted);
  font-size: 13px;
}

.dm-unread {
  color: var(--blue) !important;
  font-size: 12px !important;
  font-weight: 600;
}

.dm-header {
  font-weight: 700;
  margin-bottom: 8px;
}

.dm-message {
  align-self: flex-start;
  border-radius: 12px;
  background: rgba(100, 176, 239, 0.14);
  padding: 8px 10px;
  max-width: 86%;
}

.dm-message.mine {
  align-self: flex-end;
  background: rgba(212, 167, 79, 0.2);
}

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

.account-grid > .card {
  grid-column: span 4;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
}

#nameplate-grid,
#frame-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.mission-section + .mission-section {
  margin-top: 10px;
}

.avatar-option {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px;
  background: rgba(18, 29, 43, 0.94);
  cursor: pointer;
  color: var(--ink);
  position: relative;
}

.avatar-option.active {
  border-color: rgba(212, 167, 79, 0.96);
  box-shadow: 0 0 0 2px rgba(212, 167, 79, 0.2);
}

#avatar-grid .avatar-option {
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#avatar-grid .avatar-option .avatar-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
}

.avatar-option:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.avatar-option.locked::after {
  content: "🔒";
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.7);
  backdrop-filter: blur(3px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(700px, 96vw);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 18px;
  background: var(--card-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-card.small {
  width: min(520px, 96vw);
}

#start-friend-panel,
#start-bot-panel,
#start-training-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.end-actions .btn {
  width: 100%;
}

.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1400;
}

.xp-float {
  position: fixed;
  color: #ffd773;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.xp-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7db97, #d1a346);
  box-shadow: 0 0 10px rgba(212, 167, 79, 0.7);
}

.flag-progress {
  background: linear-gradient(
    135deg,
    #000000 0%,
    #000000 14%,
    #784f17 14%,
    #784f17 28%,
    #5bcefa 28%,
    #5bcefa 42%,
    #f5a9b8 42%,
    #f5a9b8 56%,
    #ffffff 56%,
    #ffffff 70%,
    #e40303 70%,
    #ff8c00 76%,
    #ffed00 82%,
    #008026 88%,
    #004dff 94%,
    #750787 100%
  );
}

.flag-rainbow {
  background: linear-gradient(180deg, #e40303 0%, #ff8c00 17%, #ffed00 34%, #008026 50%, #004dff 67%, #750787 100%);
}

.flag-trans {
  background: linear-gradient(180deg, #5bcefa 0%, #5bcefa 20%, #f5a9b8 20%, #f5a9b8 40%, #ffffff 40%, #ffffff 60%, #f5a9b8 60%, #f5a9b8 80%, #5bcefa 80%, #5bcefa 100%);
}

.flag-bi {
  background: linear-gradient(180deg, #d60270 0%, #d60270 40%, #9b4f96 40%, #9b4f96 60%, #0038a8 60%, #0038a8 100%);
}

.flag-pan {
  background: linear-gradient(180deg, #ff218c 0%, #ff218c 33%, #ffd800 33%, #ffd800 66%, #21b1ff 66%, #21b1ff 100%);
}

.flag-ace {
  background: linear-gradient(180deg, #000000 0%, #000000 25%, #a3a3a3 25%, #a3a3a3 50%, #ffffff 50%, #ffffff 75%, #800080 75%, #800080 100%);
}

.flag-nb {
  background: linear-gradient(180deg, #f7e24b 0%, #f7e24b 25%, #ffffff 25%, #ffffff 50%, #9c59d1 50%, #9c59d1 75%, #2d2d2d 75%, #2d2d2d 100%);
}

.flag-genderfluid {
  background: linear-gradient(180deg, #ff75a2 0%, #ff75a2 20%, #ffffff 20%, #ffffff 40%, #be18d6 40%, #be18d6 60%, #000000 60%, #000000 80%, #333ebd 80%, #333ebd 100%);
}

.flag-genderqueer {
  background: linear-gradient(180deg, #b57edc 0%, #b57edc 33%, #ffffff 33%, #ffffff 66%, #4a8123 66%, #4a8123 100%);
}

.flag-poly {
  background: linear-gradient(180deg, #f61cb9 0%, #f61cb9 33%, #1f8c45 33%, #1f8c45 66%, #0f4fc6 66%, #0f4fc6 100%);
}

.flag-lesbian {
  background: linear-gradient(180deg, #d52d00 0%, #d52d00 20%, #ef7627 20%, #ef7627 40%, #ff9a56 40%, #ff9a56 60%, #ffffff 60%, #ffffff 70%, #d162a4 70%, #d162a4 85%, #b55690 85%, #b55690 100%);
}

.flag-ally {
  background: repeating-linear-gradient(135deg, #000000 0%, #000000 10%, #ffffff 10%, #ffffff 20%);
}

.flag-intersex {
  background: radial-gradient(circle at 50% 50%, transparent 0 32%, #7a1fa2 33% 43%, transparent 44%), #ffd800;
}

.flag-agender {
  background: linear-gradient(180deg, #000000 0%, #000000 14%, #b5b5b5 14%, #b5b5b5 28%, #ffffff 28%, #ffffff 42%, #b7f684 42%, #b7f684 58%, #ffffff 58%, #ffffff 72%, #b5b5b5 72%, #b5b5b5 86%, #000000 86%, #000000 100%);
}

.flag-aromantic {
  background: linear-gradient(180deg, #3da542 0%, #3da542 20%, #a8d378 20%, #a8d378 40%, #ffffff 40%, #ffffff 60%, #a9a9a9 60%, #a9a9a9 80%, #000000 80%, #000000 100%);
}

.flag-demiboy {
  background: linear-gradient(180deg, #7f7f7f 0%, #7f7f7f 20%, #c4c4c4 20%, #c4c4c4 40%, #9fd9ff 40%, #9fd9ff 60%, #c4c4c4 60%, #c4c4c4 80%, #7f7f7f 80%, #7f7f7f 100%);
}

.flag-demigirl {
  background: linear-gradient(180deg, #7f7f7f 0%, #7f7f7f 20%, #c4c4c4 20%, #c4c4c4 40%, #f7b3d3 40%, #f7b3d3 60%, #c4c4c4 60%, #c4c4c4 80%, #7f7f7f 80%, #7f7f7f 100%);
}

@keyframes fadeUp {
  from {
    opacity: 0.68;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGreen {
  0%,
  100% {
    box-shadow: inset 0 0 0 3px rgba(80, 220, 120, 0.75);
  }
  50% {
    box-shadow: inset 0 0 0 3px rgba(80, 220, 120, 0.35);
  }
}

@keyframes pulseRed {
  0%,
  100% {
    box-shadow: inset 0 0 0 3px rgba(220, 82, 82, 0.8);
  }
  50% {
    box-shadow: inset 0 0 0 3px rgba(220, 82, 82, 0.34);
  }
}

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

  .hero-card,
  .mission-card,
  .home-grid > .card:not(.inbox-panel),
  .account-grid > .card {
    grid-column: span 12;
  }
}

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

  .sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .content {
    padding: 14px;
  }

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

  .dm-layout {
    grid-template-columns: 1fr;
  }

  .clocks {
    grid-template-columns: 1fr;
  }

  .board {
    width: min(100%, 95vw);
  }
}
