/* 群聊口令页 */

.group-lock {
  max-width: 420px;
  margin: 6vh auto 0;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.group-lock-icon {
  font-size: 40px;
  line-height: 1;
}

.group-lock-title {
  margin: 10px 0 4px;
  font-size: 26px;
  letter-spacing: 0.02em;
}

.group-lock-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  text-align: left;
}

.group-lock-form .label {
  font-size: 13px;
  color: var(--ink-soft);
}

.group-lock-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.group-lock-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* 粘贴板 */

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

.composer textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}

.composer textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.composer-actions {
  display: flex;
  gap: 8px;
}

.clip-gate {
  margin: 0 0 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.clip-gate h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.clip-gate-row {
  display: flex;
  gap: 8px;
  margin: 16px 0 8px;
  flex-wrap: wrap;
}

.clip-gate-row input {
  flex: 1;
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  letter-spacing: 2px;
}

.clip-space-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: var(--accent-soft);
  border: 1px solid #f3d3b8;
  border-radius: 10px;
  color: #8a5a2b;
  font-size: 13px;
}

.clip-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.clip-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clip-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

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

.clip-time {
  color: var(--muted);
  font-size: 12px;
}

.clip-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clip-text {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.65;
}

.clip-image {
  display: block;
  max-width: 100%;
  max-height: 360px;
  margin-top: 10px;
  border-radius: 10px;
  cursor: zoom-in;
}

.linklike {
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.linklike:hover {
  color: var(--danger);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

/* 照片墙 */

.photo-stage {
  margin: 4px 0 18px;
  padding: 22px 22px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.photo-stack {
  position: relative;
  height: 340px;
}

.photo-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(88%, 560px);
  height: 300px;
  transform: translateX(-50%);
  border-radius: 16px;
  overflow: hidden;
  background: #14110e;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.photo-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.photo-blur {
  position: absolute;
  inset: -24px;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.55);
  transform: scale(1.1);
}

.photo-card video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #151515;
  color: rgba(255, 255, 255, 0.8);
  font-size: 40px;
}

.media-sound {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.photo-card.pos-0 {
  z-index: 5;
  transform: translateX(-50%) translateY(0) rotate(0deg);
}

.photo-card.pos-1 {
  z-index: 4;
  transform: translateX(-50%) translateY(10px) scale(0.97) rotate(-1.6deg);
  opacity: 0.95;
}

.photo-card.pos-2 {
  z-index: 3;
  transform: translateX(-50%) translateY(20px) scale(0.94) rotate(1.8deg);
  opacity: 0.9;
}

.photo-card.pos-3 {
  z-index: 2;
  transform: translateX(-50%) translateY(30px) scale(0.91) rotate(-2.4deg);
  opacity: 0.85;
}

.photo-card.is-top {
  cursor: pointer;
}

.photo-del {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.photo-card:hover .photo-del,
.photo-del:focus-visible {
  opacity: 1;
}

.photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.photo-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

.dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(36, 32, 28, 0.18);
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}

.dot.is-active {
  width: 18px;
  border-radius: 4px;
  background: var(--accent);
}

.photo-hint {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* 聊天 */

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

.chat-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 460px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-item {
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-name {
  font-size: 13px;
  font-weight: 600;
}

.chat-time {
  color: var(--muted);
  font-size: 12px;
}

.chat-del {
  margin-left: auto;
}

.chat-text {
  margin: 6px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.chat-form textarea {
  resize: vertical;
}

.chat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.chat-empty {
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
}

/* 上传弹窗 */

.modal-open {
  overflow: hidden;
}

.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 25, 20, 0.45);
}

.upload-modal[hidden] {
  display: none;
}

.upload-panel {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.upload-head h2 {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.dropzone {
  margin-top: 14px;
  padding: 22px 16px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone-icon {
  font-size: 30px;
  color: var(--muted);
}

.dropzone-title {
  margin: 6px 0 2px;
  font-weight: 600;
}

.dropzone-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.upload-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  max-height: 180px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upload-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}

.upload-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-size {
  color: var(--muted);
  font-size: 12px;
}

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

/* 展示模式与左右切换 */

.media-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}

.mode-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mode-btn {
  border: 0;
  background: none;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.mode-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.photo-stage {
  position: relative;
}

.media-nav {
  position: absolute;
  top: 38%;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 15, 10, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.2s, opacity 0.2s;
}

.media-nav:hover {
  background: rgba(20, 15, 10, 0.55);
  opacity: 1;
}

.media-nav.prev {
  left: 10px;
}

.media-nav.next {
  right: 10px;
}

/* 满天星 */

.star-stage {
  position: relative;
  height: 56vh;
  min-height: 360px;
  max-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: radial-gradient(circle at 20% 20%, #1b2438, #0b0f18 60%, #05070c);
}

.star-tile {
  position: absolute;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  animation-name: starDrift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

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

.star-tile:hover {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25), 0 12px 30px rgba(0, 0, 0, 0.6);
}

.tile-video {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #151515;
  color: #fff;
  font-size: 26px;
}

@keyframes starDrift {
  from {
    transform: translate3d(0, 0, 0) rotate(-3deg);
  }
  to {
    transform: translate3d(14px, -22px, 0) rotate(3deg);
  }
}

/* 满天星大图 */

.star-view {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(5, 7, 12, 0.92);
}

.star-view[hidden] {
  display: none;
}

.star-view-media img {
  display: block;
  width: 96vw;
  height: 94vh;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
}

.star-view-media video {
  display: block;
  max-width: 94vw;
  max-height: 82vh;
  border-radius: 10px;
  object-fit: contain;
}

.star-view-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.star-view-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.star-view-nav.prev {
  left: 18px;
}

.star-view-nav.next {
  right: 18px;
}

/* 全部媒体 */

.all-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-menu {
  position: fixed;
  z-index: 400;
  display: flex;
  flex-direction: column;
  min-width: 140px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.media-menu[hidden] {
  display: none;
}

.media-menu button {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.media-menu button:hover {
  background: var(--accent-soft);
}

.all-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0 10px;
}

.all-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.all-tab span {
  font-size: 11px;
  color: var(--muted);
}

.all-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.all-tab.is-active span {
  color: rgba(255, 255, 255, 0.85);
}

.dedup-group {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.dedup-group:last-child {
  border-bottom: 0;
}

.dedup-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px;
}

.dedup-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  cursor: pointer;
}

.dedup-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.dedup-item.is-keep {
  cursor: default;
  padding-top: 20px;
}

.dedup-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dedup-img.is-dupe {
  opacity: 0.75;
}

.dedup-img.is-zoom {
  cursor: zoom-in;
}

.dedup-tag {
  font-size: 11px;
}

.dedup-progress {
  padding: 8px 0;
}

.usage-bar.is-scanning i {
  width: 36%;
  animation: scanMove 1.1s ease-in-out infinite;
}

@keyframes scanMove {
  0% { margin-left: 0; }
  50% { margin-left: 64%; }
  100% { margin-left: 0; }
}

.dedup-panel {
  margin: 12px 0;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.dedup-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow: auto;
  margin: 10px 0;
}

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

.dedup-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dedup-img.is-dupe {
  opacity: 0.6;
  outline: 2px solid rgba(194, 69, 58, 0.35);
}

.dedup-tag {
  font-size: 11px;
}

.dedup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 16, 12, 0.5);
}

.review-modal[hidden] {
  display: none;
}

.review-card {
  width: min(420px, 100%);
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.review-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.review-card p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.review-rules {
  margin: 12px 0 18px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1px solid #f3d3b8;
  border-radius: 12px;
}

.review-rules p {
  margin: 0 0 6px;
  color: #8a5a2b;
  font-weight: 600;
}

.review-rules ul {
  margin: 0;
  padding-left: 20px;
  color: #8a5a2b;
  line-height: 1.8;
}

.review-note {
  margin: 0 0 10px;
  padding: 8px 12px;
  background: var(--accent-soft);
  border: 1px solid #f3d3b8;
  border-radius: 10px;
  color: #8a5a2b;
  font-size: 13px;
}

.all-summary {
  margin: 14px 0 6px;
}

.usage-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.usage-bar {
  height: 8px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.usage-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #e8a15f, #dd7440);
  transition: width 0.3s;
}

.all-section h3 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0 8px;
  font-size: 15px;
}

.all-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 16, 12, 0.55);
}

.all-modal[hidden] {
  display: none;
}

.all-panel {
  width: min(900px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.all-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.all-head h2 {
  margin: 0;
  font-size: 20px;
}

.all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0 8px;
}

.all-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #151515;
  cursor: pointer;
}

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

.all-del {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
}

.all-tile:hover .all-del {
  opacity: 1;
}

/* 小恐龙 */

.game-stage {
  position: relative;
  height: calc(100vh - 250px);
  min-height: 420px;
  max-height: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #0a1020;
}

body.is-game .page-narrow {
  max-width: 1100px;
}

.game-toast {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffd479;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
  animation: treasureIn 0.3s ease;
}

.game-toast[hidden] {
  display: none;
}

@keyframes treasureIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.game-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.game-hud {
  position: absolute;
  top: 10px;
  right: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.game-hud b {
  font-size: 18px;
}

.game-tip {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  white-space: nowrap;
}

.game-media {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

.game-media[hidden] {
  display: none;
}

.game-media-body img,
.game-media-body video {
  display: block;
  max-width: 80vw;
  max-height: 64vh;
  border-radius: 12px;
}

.game-media-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 6;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .all-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }

  .all-del {
    opacity: 1;
  }

  .game-stage {
    height: 52vh;
    min-height: 300px;
  }

  .game-media-body img,
  .game-media-body video {
    max-width: 90vw;
    max-height: 56vh;
  }
}

@media (max-width: 640px) {
  .photo-stack {
    height: 260px;
  }

  .photo-card {
    height: 220px;
    width: 92%;
  }

  .chat-list {
    max-height: 56vh;
  }

  .composer-bar {
    align-items: stretch;
  }

  .composer-actions {
    justify-content: flex-end;
  }

  .upload-modal {
    padding: 0;
    align-items: stretch;
  }

  .upload-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .upload-list {
    max-height: none;
    flex: 1;
  }

  .dropzone {
    padding: 18px 12px;
  }

  .media-nav {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .star-stage {
    height: 52vh;
    min-height: 300px;
  }

  .star-view {
    padding: 0;
  }

  .star-view-nav {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .star-view-nav.prev {
    left: 6px;
  }

  .star-view-nav.next {
    right: 6px;
  }
}
