.play-page {
  --play-ink: #11243c;
  --play-muted: #516176;
  --play-accent: #185d97;
  --play-panel: #fbfdff;
  --play-border: #dce7f3;
  --play-control: #edf3f8;
  --play-gutter: clamp(14px, 2.2vw, 24px);
  --play-button: clamp(36px, 10vw, 43px);
  color: var(--play-ink);
}

.play-page .game-container { margin-block: clamp(14px, 2.4vw, 28px); }
.play-main { min-width: 0; display: grid; align-content: start; gap: 12px; }

.play-card,
.play-page .bottom-container {
  padding: var(--play-gutter);
  border: 1px solid var(--play-border);
  border-radius: 18px;
  background: var(--play-panel);
  box-shadow: 0 2px 7px #123c6510;
}

.play-summary h1 {
  margin: 0;
  color: var(--play-ink);
  font-size: clamp(1.4rem, 3.1vw, 2.125rem);
  line-height: 1.2;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.play-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin: 8px 0 14px;
  color: var(--play-muted);
  font-weight: 600;
}

.play-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(5px, 1.8vw, 10px);
}

.play-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: var(--play-button);
  height: var(--play-button);
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--play-ink);
  background: var(--play-control);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.play-action i { font-size: 1.06rem; }
.play-action:hover { color: var(--play-accent); background: #e2eef8; text-decoration: none; }
.play-action[aria-pressed="true"], .play-menu[open] > .play-action { color: #114b79; background: #d7eafb; }
.play-action:disabled { cursor: default; }
.play-action:focus-visible, .play-menu-panel :focus-visible { outline: 2px solid var(--play-accent); outline-offset: 2px; }

.play-votes {
  display: inline-flex;
  border-radius: 999px;
  background: var(--play-control);
}

.play-votes .play-action {
  position: relative;
  width: auto;
  min-width: var(--play-button);
  font-weight: 700;
  padding: 0 clamp(6px, 1.9vw, 12px);
  font-variant-numeric: tabular-nums;
}

.play-votes .play-action + .play-action::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 1px;
  height: 45%;
  background: #cbd9e6;
}

.play-menu { position: relative; }
.play-menu summary::-webkit-details-marker { display: none; }
.play-menu-panel {
  position: absolute;
  z-index: 10;
  inset: calc(100% + 7px) 0 auto auto;
  width: max-content;
  max-width: min(13rem, 70vw);
  padding: 5px;
  border: 1px solid var(--play-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 15px #10264026;
}
.play-menu-panel :is(a, button) {
  display: block;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: var(--play-ink);
  text-align: start;
  text-decoration: none;
  font-size: .875rem;
}
.play-menu-panel :is(a, button):hover { background: var(--play-control); }
.play-status { flex-basis: 100%; margin: 2px 0 0; color: var(--play-muted); font-size: .875rem; }

.play-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--play-ink);
  font-size: clamp(1.03rem, 2vw, 1.28rem);
  font-weight: 800;
  line-height: 1.22;
}
.play-section-icon {
  display: grid;
  flex: 0 0 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
  background: #e4f0ff;
  color: var(--play-accent);
  font-size: .91rem;
}
.play-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.play-tags a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 9px;
  background: #e4f3dc;
  color: #285b36;
  font-size: .91rem;
  font-weight: 600;
  text-decoration: none;
}
.play-tags a:hover { background: #d4ebc8; }

.play-comments #comment-form,
.play-comments .comment-require-login-wrapper {
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid var(--play-border);
  border-radius: 14px;
  background: #f8fbff;
}
.play-comments .comment-profile-avatar { flex-shrink: 0; margin: 0; }
.play-comments .comment-profile-avatar img { width: 38px; height: 38px; float: none; }
.play-comments .comment-form-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  border: 0;
  border-inline-start: 1px solid var(--play-border);
  border-radius: 0;
  padding: 0 0 0 9px;
  background: transparent;
  box-shadow: none;
}
.play-comments .tpl-alert-tooshort { grid-column: 1 / -1; }
.play-comments .tpl-comment-input { background: transparent; resize: vertical; min-height: 40px; padding: 6px 0; }
.play-comments .post-comment-btn-wrapper { float: none; margin: 0; }
.play-comments .tpl-post-comment-btn {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  border-color: #236ac0;
  background: #236ac0;
  font-size: 1rem;
}
.play-comments .comment-alert {
  margin: 0;
  padding: 5px 0 5px 9px;
  border-inline-start: 1px solid var(--play-border);
  border-radius: 0;
  background: transparent;
  color: var(--play-accent);
  text-align: start;
  text-decoration: none;
}
.play-comments .comment-alert:hover { text-decoration: underline; }
.play-comments #tpl-comment-list:not(:empty) { margin-top: 14px; }

.play-details { container-type: inline-size; background: #fff; }
.play-summary { display: grid; gap: 12px; align-items: start; }
.play-meta { margin-bottom: 0; }
.play-actions { --play-control: #f3f3f4; color: #232529; }
.play-icon { display: inline-block; width: 20px; height: 20px; flex: none; fill: currentColor; }
.icon-reply { transform: scaleX(-1); }
.play-actions .play-action { color: inherit; }
.play-label, .icon-hand-thumbs-up-fill { display: none; }
[data-play-vote="upvote"][aria-pressed="true"] { color: #c5372b; background: var(--play-control); }
[data-play-vote="upvote"][aria-pressed="true"] .icon-hand-thumbs-up { display: none; }
[data-play-vote="upvote"][aria-pressed="true"] .icon-hand-thumbs-up-fill { display: block; }

@container (min-width: 39rem) {
  .play-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
  .play-actions { justify-content: flex-end; }
}
@container (min-width: 52rem) {
  .play-label { display: inline; }
  .play-action:has(.play-label) { width: auto; padding-inline: 15px; gap: 9px; }
}

.play-description, .play-comments, .play-leaderboard {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e7eaee;
}
.play-details .play-section-title { font-size: 1.1rem; margin-bottom: 8px; }
.play-categories { display: flex; gap: 9px 16px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.play-categories .play-section-title { margin: 0; font-size: .96rem; font-weight: 600; }
.play-tags a { background: #f0f4ed; color: #50624d; font-weight: 500; border-radius: 999px; }
.play-tags a:hover { background: #e3ebde; }

.play-description img { max-width: 100%; height: auto; }
.play-description { overflow-wrap: anywhere; }
.single-description + .play-instructions-title, .play-description .play-tags { margin-top: 12px; }
