/* My room — Pleyi Memphis style, minimal layout */

.my-room-body,
.hub-body.my-room-body {
  background: transparent;
}

.my-room-body .hub-memphis-bg {
  display: block;
  opacity: 0.82;
}

.my-room-body .hub-main {
  max-width: 820px;
}

.my-room-body .hub-back {
  margin-bottom: 12px;
}

/* Guest */

.room-guest-card {
  max-width: 440px;
  margin: 32px auto 64px;
  padding: clamp(28px, 5vw, 40px);
  text-align: center;
  border-radius: calc(var(--radius) + 4px);
  rotate: 0deg !important;
}

.room-guest-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.room-guest-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 36px);
}

.room-guest-lead {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--body);
  line-height: 1.55;
}

.room-guest-dev {
  margin: -8px 0 16px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  background: color-mix(in srgb, var(--memyellow) 50%, #fff);
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.room-guest-card .btn {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.room-guest-card .btn + .btn {
  margin-top: 10px;
}

.room-guest-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero */

.room-hero {
  text-align: center;
  margin-bottom: clamp(16px, 3vw, 24px);
}

.room-hero .hub-title {
  margin-top: 8px;
}

.room-greeting {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}

/* Logged-in content */

.room-content {
  position: relative;
}

/* Inline lesson calendar */

.room-calendar {
  max-width: 360px;
  margin: 0 auto clamp(20px, 4vw, 28px);
  padding: 16px 14px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
}

.room-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.room-cal-month {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  flex: 1;
}

.room-cal-nav {
  width: 32px;
  height: 32px;
  padding: 0;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  cursor: pointer;
}

.room-cal-nav:hover {
  background: rgba(255, 255, 255, 0.8);
}

.room-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.room-cal-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  padding: 2px 0 6px;
}

.room-cal-cell {
  aspect-ratio: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.room-cal-cell--empty {
  pointer-events: none;
}

.room-cal-num {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.room-cal-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric, #00c9b7);
  font-size: 0;
  line-height: 6px;
  text-align: center;
}

.room-cal-cell.has-lessons .room-cal-mark {
  min-width: 6px;
  width: auto;
  min-height: 6px;
  height: auto;
  padding: 0 3px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  line-height: 14px;
}

.room-cal-cell.is-today {
  background: rgba(0, 201, 183, 0.18);
}

.room-cal-cell.is-selected {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  background: rgba(255, 255, 255, 0.95);
}

.room-cal-cell.has-lessons:not(.is-selected) .room-cal-num {
  font-weight: 900;
}

.room-cal-day {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.room-cal-day-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.room-cal-day-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.room-cal-day-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

.room-cal-lesson-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.room-cal-lesson-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.room-cal-day-empty {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
}

/* Inline game-list sections */

.room-list-section {
  max-width: 480px;
  margin: 0 auto 28px;
}

.room-list-heading {
  margin: 0 0 12px;
  font-size: clamp(18px, 3.2vw, 22px);
  font-weight: 900;
  text-align: center;
  color: var(--ink);
}

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

.room-foot-link {
  margin: 18px 0 0;
  text-align: center;
}

.room-foot-link .room-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: clamp(13px, 2.5vw, 15px);
  font-weight: 900;
  color: var(--ink);
  background: var(--memteal, #00e5cc);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  transition: transform 0.15s var(--ease);
}

.room-foot-link .room-create-btn:hover {
  transform: translateY(-2px);
}

.room-foot-link .btn-sm {
  font-size: 14px;
  padding: 10px 20px;
}

.room-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
}

.room-list-info {
  flex: 1;
  min-width: 0;
}

.room-list-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-list-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.room-list-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.room-list-star {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  font-family: inherit;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
}

.room-list-star.is-active {
  color: var(--ink);
}

.room-list-play {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  color: var(--ink);
  background: var(--memyellow, #ffe066);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
}

.room-list-play:hover {
  transform: translateY(-1px);
}

.room-list-delete {
  padding: 4px 8px;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
}

.room-list-delete:hover {
  opacity: 1;
}

.room-list-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.6;
}

.room-list-empty a {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 640px) {
  .room-calendar {
    max-width: 100%;
    padding: 14px 10px 12px;
  }

  .room-cal-num {
    font-size: 12px;
  }

  .room-list-section {
    max-width: 100%;
  }
}
