
/* Platform extensions UI */
.game-sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.game-sort-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
  display: inline-block;
  appearance: none;
  -webkit-appearance: none;
}
.game-sort-pill.is-active,
.game-sort-pill:hover {
  border-color: var(--red);
  color: var(--text);
  background: rgba(176, 42, 53, 0.12);
}
.games-library-sort-wrap .game-sort-bar {
  margin-top: 14px;
  margin-bottom: 0;
}
.games-library-panel {
  display: none;
  padding-top: 14px;
}
.games-library-panel.is-active {
  display: block;
}
.games-library-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
}
.games-library-empty i {
  display: block;
  margin-bottom: 12px;
}
.games-library-empty p {
  margin: 0 0 12px;
}
.activity-feed {
  display: grid;
  gap: 0;
  padding: 0;
}
.activity-feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
}
.activity-feed-row:last-child {
  border-bottom: none;
}
.activity-feed-row img,
.activity-feed-row .activity-feed-avatar,
.activity-feed-row .avatar-frame-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.activity-feed-row .avatar-frame-wrap,
.activity-feed-row .avatar-frame-wrap--xs {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.activity-feed-text {
  flex: 1;
  min-width: 0;
  color: var(--text);
}
.activity-feed-text a {
  word-break: break-word;
}
.activity-feed-time {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.activity-hub {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  margin-bottom: 20px;
}
.activity-hub .section-header {
  background: #181818;
  border-radius: 0;
}
.activity-hub .section-block-body {
  background: var(--bg);
  margin-bottom: 0;
}
.activity-hub-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.activity-hub-filters--scope {
  gap: 10px;
}
.activity-hub-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.activity-hub-filters-label {
  flex: 0 0 100%;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin: 0 0 2px;
}
.activity-hub-filter {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #d8d8d8;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12px;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.activity-hub-filter:hover {
  border-color: rgba(0, 188, 212, 0.35);
  background: rgba(0, 188, 212, 0.06);
  color: #fff;
}
.activity-hub-filter.is-active {
  border-color: rgba(0, 188, 212, 0.55);
  background: rgba(0, 188, 212, 0.12);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 188, 212, 0.12);
}
.activity-hub .activity-feed-row {
  border-bottom-color: rgba(255, 255, 255, 0.05);
  padding: 10px 16px;
}
.activity-hub-empty,
.activity-hub-placeholder {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  background: var(--bg);
}
.activity-hub-placeholder a {
  color: var(--cyan);
}
.activity-feed-row[hidden] {
  display: none !important;
}
.bug-hunter-rank {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
}
.game-page-extra-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.game-page-extra-sections > .section-block {
  margin-top: 0 !important;
}
.content > .game-page-extra-sections + .section-block,
.content > .game-page-extra-sections ~ .game-feedback-section {
  margin-top: 20px;
}
.game-star-rating--sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.game-star-rating--sidebar .game-star-rating__summary {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.game-star-rating--sidebar .game-star-rating__summary-meta strong {
  font-size: 20px;
}
.game-star-rating--sidebar .game-star-rating__stars {
  font-size: 18px;
}
.game-star-rating--sidebar .game-star-rating__vote {
  padding: 12px;
}
.game-star-rating--sidebar .game-star-rating__input-star {
  font-size: 20px;
}
.game-star-rating__voters-open {
  width: 100%;
  justify-content: center;
  gap: 6px;
}

.game-similar-games-widget .game-library-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 0;
}

.game-similar-games-widget--sidebar {
  margin-top: 0;
}

.game-similar-games-widget--mobile {
  margin-top: 20px;
  margin-bottom: 20px;
}

@media (min-width: 901px) {
  .game-similar-games-widget--mobile {
    display: none;
  }
}

@media (max-width: 900px) {
  .game-similar-games-widget--sidebar {
    display: none;
  }
}
.game-vote-voters-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.game-vote-voters-modal.is-open {
  display: flex;
}
body.game-vote-voters-modal-open {
  overflow: hidden;
}
.game-vote-voters-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.game-vote-voters-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.game-vote-voters-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.game-vote-voters-modal__header h3 {
  margin: 0;
  font-size: 15px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.game-vote-voters-modal__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #161616;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.game-vote-voters-modal__close:hover {
  border-color: var(--red);
  color: var(--red);
}
.game-vote-voters-modal__body {
  overflow: auto;
  padding: 14px 16px 16px;
}
.game-vote-voters-modal__body .game-star-rating__voter-item {
  flex-direction: row;
  align-items: center;
}
.game-vote-voters-modal__body .game-star-rating__voter-date {
  align-self: auto;
}
.game-star-rating {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.game-star-rating__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.game-star-rating__display {
  display: inline-block;
  vertical-align: middle;
}
.game-star-rating__track {
  position: relative;
  display: inline-block;
  line-height: 1;
}
.game-star-rating__stars {
  display: inline-flex;
  gap: 4px;
  font-size: 22px;
}
.game-star-rating__stars--empty {
  color: #3a3a3a;
}
.game-star-rating__stars--filled {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--star-fill, 0%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
  pointer-events: none;
}
.game-star-rating__display--xs .game-star-rating__stars {
  font-size: 12px;
  gap: 2px;
}
.game-star-rating__summary-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
.game-star-rating__summary-meta strong {
  font-size: 24px;
  color: #fff;
  line-height: 1;
}
.game-star-rating__count {
  font-size: 13px;
}
.game-star-rating__vote {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg3);
}
.game-star-rating__vote-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}
.game-star-rating__input {
  display: inline-flex;
  gap: 6px;
}
.game-star-rating__input.is-busy {
  opacity: 0.65;
  pointer-events: none;
}
.game-star-rating__input-star {
  border: none;
  background: transparent;
  color: #444;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}
.game-star-rating__input-star:hover,
.game-star-rating__input-star.is-active {
  color: var(--gold);
}
.game-star-rating__input-star:hover {
  transform: scale(1.08);
}
.game-star-rating__vote-hint,
.game-star-rating__login-hint,
.game-star-rating__locked-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.game-star-rating__locked-hint {
  margin-top: 0;
  line-height: 1.5;
}
.game-star-rating__locked-hint .fa-lock {
  margin-right: 6px;
  color: var(--gold);
}
.game-star-rating__access-gate {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.game-star-rating__access-meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.game-star-rating__access-btn {
  margin-top: 10px;
}
.game-star-rating__unlock-form {
  margin: 0;
}
.game-sidebar-notice__alert {
  margin: 0;
}
.game-sidebar-notice__text {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.game-sidebar-notice__text strong {
  color: var(--text);
}
.game-sidebar-notice__meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.game-sidebar-notice__meta strong {
  color: var(--gold);
}
.game-sidebar-notice .btn-block {
  width: 100%;
}
.game-star-rating__access-alert {
  margin: 10px 0 0;
}
.game-star-rating__flash {
  margin-top: 10px;
}
.game-star-rating__voters-body {
  padding-bottom: 4px;
}
.game-star-rating__voters-empty {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.game-star-rating__voter-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.game-star-rating__voter-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}
.game-star-rating__voter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.game-star-rating__voter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg3);
}
.game-star-rating__voter-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.game-star-rating__voter-name {
  font-size: 13px;
  font-weight: 600;
}
.game-star-rating__voter-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.walkthrough-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.walkthrough-tab {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg3);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}
.walkthrough-tab.is-active {
  border-color: var(--cyan);
  background: rgba(0, 188, 212, 0.1);
}
.walkthrough-panel { display: none; padding-top: 4px; }
.walkthrough-panel.is-active { display: block; }
.walkthrough-panel .post-rich-content {
  padding-bottom: 4px;
}
.post-solved-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(46, 204, 113, 0.35);
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}
.post-card-meta .post-solved-badge,
.post-meta .post-solved-badge {
  margin: 0;
}
.post-solved-badge i {
  font-size: 10px;
}
.post-poll-block {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg3);
}
.post-poll-block.is-expired {
  opacity: 0.85;
}
.post-poll-end-note {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.post-poll-end-note.is-expired {
  color: #ff8a8a;
}
.post-poll-panel {
  margin-top: 4px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(230, 57, 70, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.post-poll-panel.is-enabled {
  border-color: rgba(230, 57, 70, 0.65);
}
.post-poll-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.post-poll-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.post-poll-panel__title i {
  color: var(--red);
}
.post-poll-panel__desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.post-poll-panel__body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.post-poll-panel__body[hidden] {
  display: none !important;
}
.post-poll-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}
.post-poll-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.post-poll-toggle__track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #3a3a3a;
  transition: background 0.2s ease;
  position: relative;
}
.post-poll-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.post-poll-toggle input:checked + .post-poll-toggle__track {
  background: var(--red);
}
.post-poll-toggle input:checked + .post-poll-toggle__track::after {
  transform: translateX(20px);
}
.post-poll-field + .post-poll-field {
  margin-top: 18px;
}
.post-poll-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.post-poll-field label,
.post-poll-field__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b8b8b8;
}
.post-poll-char-count {
  font-size: 12px;
  color: var(--muted);
}
.post-poll-input-wrap {
  position: relative;
}
.post-poll-input-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  pointer-events: none;
}
.post-poll-input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
}
.post-poll-input-wrap input:focus {
  outline: none;
  border-color: rgba(230, 57, 70, 0.55);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.12);
}
.post-poll-input-wrap input:disabled {
  opacity: 0.55;
}
.post-poll-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-poll-option-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-poll-option-row__num {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.post-poll-option-row input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
}
.post-poll-option-row input:focus {
  outline: none;
  border-color: rgba(230, 57, 70, 0.55);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.12);
}
.post-poll-options__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.post-poll-field__hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.post-poll-add-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.post-poll-add-option:hover:not(:disabled) {
  border-color: rgba(230, 57, 70, 0.45);
  background: rgba(230, 57, 70, 0.08);
}
.post-poll-add-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.post-attachments {
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.post-attachments__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.post-attachments__label i {
  color: var(--red);
  font-size: 14px;
}
.post-attachments__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.post-attachment-thumb {
  width: 92px;
  height: 92px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-attachment-thumb:hover {
  border-color: rgba(230, 57, 70, 0.55);
  transform: translateY(-1px);
}
.post-attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-attachments-upload-box {
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}
.post-attachments-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.post-attachments-upload-box input[type="file"]:disabled {
  cursor: not-allowed;
}
.post-attachments-upload-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}
.post-attachments-existing {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.post-attachments-existing__item {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.post-attachments-existing__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-attachments-existing__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  cursor: pointer;
}
.post-attachments-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.post-attachments-preview__item {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(230, 57, 70, 0.35);
}
.post-attachments-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-poll-question {
  font-weight: 600;
  margin-bottom: 10px;
}
.post-poll-option {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
}
.post-poll-option.is-voted { border-color: var(--cyan); }
.post-poll-option.is-readonly {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.post-poll-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 188, 212, 0.12);
  z-index: 0;
  pointer-events: none;
}
.post-poll-option span { position: relative; z-index: 1; }
.post-poll-pct {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.comment-row--solved .comment-body {
  box-shadow: inset 2px 0 0 rgba(46, 204, 113, 0.5);
  padding-left: 10px;
}
.comment-user-badge--solution {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.28), rgba(46, 204, 113, 0.12));
  border-color: rgba(46, 204, 113, 0.45);
  color: #8ef0b0;
}
.comment-actions .comment-solved-form {
  display: inline-flex;
  margin: 0;
}
.game-feedback-action-btn--solution:not(.is-active):hover {
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.45);
  background: rgba(46, 204, 113, 0.08);
}
.game-feedback-action-btn--solution.is-active:hover {
  color: #fff;
  border-color: rgba(230, 57, 70, 0.55);
  background: rgba(230, 57, 70, 0.14);
}
.post-quote-btn {
  position: absolute;
  z-index: 20;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.profile-supporter-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.profile-supporter-badge-date {
  font-weight: 400;
  color: rgba(255, 215, 0, 0.8);
  font-size: 10px;
}
.profile-supporter-badge-date::before {
  content: '·';
  margin: 0 4px;
  opacity: 0.65;
}
.profile-custom-title {
  display: block;
  font-size: 13px;
  color: var(--cyan);
  font-weight: 500;
  margin-top: 2px;
}
.profile-showcase-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.profile-showcase-chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
}
.profile-widget-desc {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.profile-widget-desc strong {
  color: var(--text);
  font-weight: 600;
}
.daily-quest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.daily-quest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg3);
  font-size: 13px;
  color: var(--muted);
}
.daily-quest-item.is-done {
  border-color: rgba(46, 204, 113, 0.45);
  background: rgba(46, 204, 113, 0.08);
  color: var(--text);
}
.daily-quest-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  color: #2ecc71;
  background: var(--bg2);
}
.daily-quest-item.is-done .daily-quest-check {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.15);
}
.login-streak-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.login-streak-day {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg3);
  min-height: 52px;
}
.login-streak-dow {
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
}
.login-streak-check {
  font-size: 12px;
  color: #2ecc71;
  line-height: 1;
}
.login-streak-day.is-active {
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.55);
  color: #2ecc71;
}
.login-streak-day.is-today {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}
.login-streak-footer {
  font-size: 12px;
  color: var(--muted);
  padding-top: 2px;
}
.login-streak-footer strong {
  color: var(--gold);
}
.referral-widget-body {
  display: grid;
  gap: 10px;
}
.referral-code-box {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  user-select: all;
}
.referral-link-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.referral-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.referral-link-input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg3);
  color: var(--text);
  font-size: 12px;
}
.referral-copy-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.session-list { display: grid; gap: 10px; }
.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.session-row:last-child { border-bottom: none; }

.settings-access-card { padding-top: 0; }
.settings-access-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin: 0 -20px 16px;
  padding: 0 20px;
}
.settings-access-tabs__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
}
.settings-access-tabs__btn:hover { color: #fff; }
.settings-access-tabs__btn.is-active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.settings-access-pane[hidden] { display: none !important; }
.access-log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.access-log-filters__search {
  flex: 1 1 220px;
  min-width: 0;
  position: relative;
}
.access-log-filters__search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}
.access-log-filters__search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  color: var(--text);
  font-size: 13px;
}
.access-log-filters__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.access-log-filters__field select,
.access-log-filters__field input[type="number"] {
  min-width: 92px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  color: var(--text);
  font-size: 12px;
}
.access-log-filters__field--custom.is-hidden { display: none; }
.access-log-filters__field--search {
  flex: 1 1 220px;
  min-width: 0;
}
.access-log-filters__field--search .access-log-filters__search {
  flex: none;
  width: 100%;
}
.access-log-list { display: grid; gap: 0; }
.access-log-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.access-log-row:last-child { border-bottom: none; }
.access-log-row.is-hidden { display: none; }
.access-log-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  font-size: 18px;
  color: var(--cyan);
}
.access-log-icon .fa-chrome { color: #ea4335; }
.access-log-icon .fa-firefox-browser { color: #ff7139; }
.access-log-icon .fa-safari { color: #0fb5ee; }
.access-log-icon .fa-edge { color: #0078d7; }
.access-log-icon .fa-opera { color: #ff1b2d; }
.access-log-icon .fa-windows { color: #00a4ef; }
.access-log-icon .fa-linux { color: #f8c517; }
.access-log-icon .fa-apple { color: #a2aaad; }
.access-log-icon .fa-android { color: #3ddc84; }
.access-log-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.access-log-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}
.access-log-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.access-log-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}
.access-log-badge--current {
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
}
.access-log-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.access-log-status--success {
  background: rgba(76, 175, 80, 0.14);
  color: #81c784;
}
.access-log-status--failed {
  background: rgba(230, 57, 70, 0.14);
  color: #ff8a8a;
}
.access-log-status--pending {
  background: rgba(255, 193, 7, 0.14);
  color: #ffd54f;
}
.access-log-status--resolved {
  background: rgba(76, 175, 80, 0.14);
  color: #81c784;
}
.access-log-status--dismissed {
  background: rgba(158, 158, 158, 0.14);
  color: #bdbdbd;
}
.report-history-row {
  align-items: flex-start;
}
.report-history-row .access-log-icon {
  margin-top: 2px;
}
.report-history-type {
  color: var(--cyan);
  font-weight: 700;
}
.report-history-target {
  color: #fff;
  text-decoration: none;
}
.report-history-target:hover {
  color: var(--cyan);
}
.report-history-detail {
  display: block;
  margin-top: 4px;
  line-height: 1.45;
  color: #fff;
}
.report-history-detail strong,
.report-history-detail em {
  color: #fff;
}
.report-history-action {
  display: block;
  margin-top: 4px;
  line-height: 1.45;
}
.report-history-action strong {
  color: #ffb4bc;
  font-weight: 700;
}
.report-history-action-text {
  display: block;
  margin-top: 2px;
  color: #fff;
}
.report-history-action-text strong,
.report-history-action-text em {
  color: #fff;
}
.report-history-action-text em {
  font-style: italic;
}
.report-history-action--pending {
  color: #ffd54f;
}
.access-log-action { flex-shrink: 0; margin: 0; min-width: 92px; text-align: right; }
.access-log-current-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
}
.access-log-no-results.is-hidden,
.access-log-empty.is-hidden { display: none; }

.nav-points-link {
  position: relative;
}
.nav-quest-badge {
  position: absolute;
  top: -6px;
  left: 85%;
  margin-left: 2px;
  width: 13px;
  height: 13px;
  min-width: 13px;
  padding: 0;
  border-radius: 999px;
  background: var(--gold, #ffc107);
  color: #111;
  font-size: 9px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg, #111);
  pointer-events: none;
  z-index: 1;
}
/* Site-wide announcement banner */
.site-banner {
  background: linear-gradient(90deg, #1a1200 0%, #2a1800 100%);
  border-bottom: 1px solid #3d2e00;
  color: var(--gold);
  font-size: 13px;
}
.site-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.site-banner-text {
  color: var(--gold);
  text-decoration: none;
  text-align: center;
  flex: 1;
}
.site-banner-text:hover { text-decoration: underline; }
.site-banner-dismiss {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius, 6px);
}
.site-banner-dismiss:hover { color: #fff; background: rgba(255,255,255,.08); }

.game-library-widget {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.game-library-toggle {
  flex-shrink: 0;
  transition: background-color var(--transition, 0.15s ease), border-color var(--transition, 0.15s ease), color var(--transition, 0.15s ease), box-shadow var(--transition, 0.15s ease);
}
.game-library-toggle.is-in-library {
  background: rgba(0, 188, 212, 0.14);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 188, 212, 0.2);
}
.game-library-toggle.is-in-library:hover {
  background: rgba(230, 57, 70, 0.12);
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.18);
}
.game-library-toggle.is-pending,
.game-library-toggle:disabled {
  opacity: 0.65;
  cursor: wait;
}
.game-library-status-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.game-library-status-chips::-webkit-scrollbar {
  height: 4px;
}
.game-library-status-chips::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}
.game-library-status-chips[hidden] {
  display: none !important;
}
.game-library-status-chip {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 5px 10px;
  font-size: 11px;
  font-family: inherit;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition, 0.15s ease), border-color var(--transition, 0.15s ease), color var(--transition, 0.15s ease);
}
.game-library-status-chip:hover:not(:disabled) {
  border-color: var(--cyan);
  color: #fff;
}
.game-library-status-chip.is-active {
  background: rgba(0, 188, 212, 0.14);
  border-color: var(--cyan);
  color: var(--cyan);
  cursor: default;
}
.game-library-status-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .game-library-widget {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .game-library-toggle {
    align-self: flex-start;
  }
  .game-library-status-chips {
    width: 100%;
    padding-bottom: 4px;
  }
}

/* Legacy select styles kept for any cached markup */
.game-library-status-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.game-library-status-wrap::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  pointer-events: none;
  transform: translateY(-50%) rotate(45deg);
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transition: border-color var(--transition, 0.15s ease);
}
.game-library-status-wrap:has(.game-library-status-select:hover)::after,
.game-library-status-wrap:has(.game-library-status-select:focus)::after {
  border-color: #fff;
}
.game-library-status-select {
  min-width: 170px;
  padding: 4px 28px 4px 10px;
  font-size: 12px;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg2);
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius, 6px);
  transition: background-color var(--transition, 0.15s ease), color var(--transition, 0.15s ease), box-shadow var(--transition, 0.15s ease);
}
.game-library-status-select::-ms-expand {
  display: none;
}
.game-library-status-select:hover,
.game-library-status-select:focus {
  background-color: var(--red);
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
}
.game-library-status-select option {
  background: var(--bg2);
  color: var(--text);
}
.game-library-status-select:disabled {
  opacity: 0.6;
  cursor: wait;
  background-color: var(--bg2);
  color: var(--red);
}

.weekly-updated-game-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.weekly-updated-game-row:last-of-type {
  border-bottom: none;
}
.weekly-updated-game-row:hover .weekly-updated-game-title {
  color: var(--cyan);
}
.weekly-updated-game-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.weekly-updated-game-meta {
  font-size: 11px;
  color: var(--muted);
}
.weekly-updated-game-more {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--cyan);
  text-decoration: none;
}
.weekly-updated-game-more:hover {
  text-decoration: underline;
}

.translation-progress-shell {
  padding-top: 24px;
  padding-bottom: 40px;
  box-sizing: border-box;
}
.translation-progress-page {
  padding: 14px;
}
.translation-progress-table-wrap {
  overflow-x: auto;
}
.translation-progress-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.translation-progress-table th,
.translation-progress-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.translation-progress-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.translation-progress-game {
  min-width: 180px;
}
.translation-progress-title {
  display: block;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.translation-progress-title:hover {
  color: var(--cyan);
}
.translation-progress-version {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.translation-progress-bar-cell {
  min-width: 140px;
}
.translation-progress-bar .game-progress-labels {
  font-size: 11px;
}
.translation-progress-translators {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.translation-progress-translator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  overflow: visible;
}
.translation-progress-translator .avatar-frame-wrap {
  flex-shrink: 0;
  --decor-scale: 1;
}
.translation-progress-translator .avatar-frame-wrap--xs {
  width: 28px;
  height: 28px;
}

.game-translators-admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.game-translator-admin-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.game-translator-admin-chip-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.game-translator-admin-chip-user:hover {
  color: var(--cyan);
}
.game-translator-primary-tag {
  font-size: 10px;
  color: var(--gold);
  background: rgba(255, 193, 7, 0.12);
  padding: 2px 6px;
  border-radius: 999px;
}
.game-translator-add-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.game-translator-add-form input[type="text"] {
  flex: 1;
  min-width: 180px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.game-translator-add-form input[type="text"]::placeholder {
  color: var(--muted);
}
.game-translator-add-form input[type="text"]:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
}

.game-translators-display {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.game-translator-display-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  text-decoration: none;
  color: var(--text);
}
.game-translator-display-item:hover {
  color: var(--cyan);
}
.game-translator-display-name {
  font-size: 14px;
  font-weight: 600;
}
.game-translator-display-item .avatar-frame-wrap--sm {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  --decor-scale: 1;
}
.translation-progress-translator:hover {
  color: var(--cyan);
}
@media (max-width: 900px) {
  .translation-progress-table thead {
    display: none;
  }
  .translation-progress-table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .translation-progress-table td {
    display: block;
    border: none;
    padding: 4px 0;
  }
}
@media (max-width: 768px) {
  .translation-progress-shell {
    padding-top: 16px;
    padding-bottom: 36px;
  }
  .translation-progress-page {
    padding: 12px 12px 16px;
  }
  .translation-progress-table tr {
    padding: 12px 0 14px;
  }
  .translation-progress-table tr:last-child {
    padding-bottom: 6px;
  }
}

.game-quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.game-quick-filters-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.game-quick-filter-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}
.game-quick-filter-btn:hover,
.game-quick-filter-btn.is-active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 188, 212, 0.08);
}

.game-filter-field--genres {
  grid-column: 1 / -1;
}
.game-genre-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.game-genre-filter-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.game-genre-filter-chips::-webkit-scrollbar {
  height: 6px;
}
.game-genre-filter-chips::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}
.game-genre-filter-search {
  flex: 0 0 min(200px, 32%);
  min-width: 140px;
  margin-top: -2px;
}
.game-genre-filter-search input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 10px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.3;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
}
.game-genre-filter-search input::-webkit-calendar-picker-indicator,
.game-genre-filter-search input::-webkit-list-button,
.game-genre-filter-search input::-webkit-inner-spin-button,
.game-genre-filter-search input::-webkit-clear-button {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.game-genre-filter-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.12);
}
.game-genre-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}
.game-genre-chip:hover,
.game-genre-chip.is-active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 188, 212, 0.08);
}

@media (max-width: 768px) {
  .game-genre-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .game-genre-filter-search {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.my-games-hero,
.translation-vote-hero {
  margin-bottom: 18px;
}
.my-games-hero h1,
.translation-vote-hero h1 {
  margin: 0 0 8px;
  font-size: 24px;
}
.my-games-hero p,
.translation-vote-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.my-games-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.my-games-section + .my-games-section {
  margin-top: 16px;
}

.vote-poll-widget .widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vote-poll-voters-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 7px 10px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.vote-poll-voter-weight {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  margin-left: 4px;
}
.vote-poll-voter-multiplier {
  font-size: 9px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.03em;
}
.vote-poll-widget-more {
  font-size: 11px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}
.vote-poll-widget--page {
  border: none;
  background: transparent;
}
.vote-poll-widget--page .widget-body {
  padding: 0;
}
.vote-poll-btn.is-selected {
  border-color: var(--cyan);
  color: var(--cyan);
}
.translation-vote-login-hint {
  padding: 0 16px 16px;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Homepage hero — logo box 550×100 */
.hero {
  align-items: center;
  padding-top: 36px;
}
.hero-logo {
  position: relative;
  width: 100%;
  max-width: 550px;
  height: 150px;
  margin: 0 auto 20px;
  padding: 0 16px;
  box-sizing: border-box;
  overflow: visible;
}
.hero-logo::before {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: max(16px, calc(50% - 195px));
  top: 50%;
  width: 118px;
  height: 64px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.55) 0%, rgba(230, 57, 70, 0.18) 48%, transparent 72%);
  animation: hero-vn-glow-pulse 3s ease-in-out infinite;
}
.hero-logo-img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 550px;
  height: 100px;
  object-fit: cover;
  object-position: center center;
}
.hero-subtitle {
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px 18px;
}
@media (max-width: 768px) {
  .hero {
    padding-top: 24px;
  }
  .hero-logo {
    max-width: 100%;
    height: 150px;
    margin-bottom: 14px;
    padding: 0 12px;
  }
  .hero-logo::before {
    left: max(12px, calc(50% - 38vw));
    width: min(104px, 34vw);
    height: min(58px, 18vw);
  }
  .hero-logo-img {
    max-width: 100%;
    height: 100px;
  }
}

/* Shop cosmetics */
.profile-shop-badge,
.points-shop-badge-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 203, 255, 0.35);
  background: rgba(126, 203, 255, 0.08);
  color: #9fdcff;
  font-size: 12px;
  font-weight: 600;
}
.premium-profile-card.theme-aurora .profile-cover-banner,
.premium-profile-card.theme-midnight .profile-cover-banner {
  position: relative;
  overflow: hidden;
}
.premium-profile-card.theme-aurora .profile-cover-banner {
  background: linear-gradient(120deg, #1a0033 0%, #004d5c 45%, #2b1055 100%);
}
.premium-profile-card.theme-aurora .profile-cover-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 105, 180, 0.25), transparent 45%),
              radial-gradient(circle at 80% 30%, rgba(126, 203, 255, 0.25), transparent 40%);
  pointer-events: none;
}
.premium-profile-card.theme-midnight .profile-cover-banner {
  background: linear-gradient(135deg, #050816 0%, #111827 55%, #1e1b4b 100%);
}
.points-shop-color-preview {
  font-size: 18px;
  font-weight: 700;
}
.points-shop-theme-preview {
  width: 100%;
  min-height: 72px;
  overflow: hidden;
  border-radius: var(--radius);
}
.points-shop-theme-preview-bar {
  display: block;
  height: 72px;
}
.points-shop-section + .points-shop-section {
  margin-top: 20px;
}

/* Collections */
.profile-collections-grid,
.collections-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px;
  align-items: stretch;
}
.profile-collection-card,
.collection-manage-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg3);
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  height: 100%;
}
.profile-collection-card:hover {
  border-color: rgba(126, 203, 255, 0.45);
}
.profile-collection-card strong,
.collection-manage-card__head strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}
.collection-manage-card__head {
  min-width: 0;
}
.collection-manage-card__head a {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.profile-collection-card span,
.collection-manage-card__desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
}
.collection-manage-card__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: calc(1.5em * 2);
}
.collection-manage-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.collection-manage-card__count {
  color: var(--cyan);
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}
.profile-collection-card em {
  font-style: normal;
  color: var(--cyan);
  font-size: 12px;
}
.collections-hero,
.collection-view-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.collections-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.collection-add-game-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.collection-add-game-row input[type="number"] {
  width: 110px;
}
.collection-add-game-row input[type="text"] {
  flex: 1;
  min-width: 140px;
}
.collection-manage-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
}
.collection-manage-card__actions form,
.collection-manage-card__actions .collection-delete-form {
  display: flex;
  margin: 0;
}
.collection-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.collection-panel-body {
  padding: 20px 24px;
}
.collection-settings-form .form-group,
.collections-create-form .form-group {
  margin-bottom: 18px;
}
.collection-form-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
  padding-top: 4px;
}
.collection-edit-danger {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.collection-edit-danger__note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.collection-games-editor {
  margin-top: 20px;
  overflow: visible;
}
.collection-games-editor.section-block,
.collection-games-editor .collection-panel-body {
  overflow: visible;
}
.collection-games-empty {
  margin-top: 20px;
}
.collection-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.collection-view-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
.collection-view-hero h1 {
  margin-bottom: 8px;
}
.collection-view-hero p {
  margin: 0 0 8px;
}
@media (max-width: 640px) {
  .collections-form-grid {
    grid-template-columns: 1fr;
  }
}

.collection-title-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.collection-title-meta code,
.collection-slug-link {
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.collection-slug-link {
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.collection-slug-link:hover {
  color: #fff;
  background: rgba(126, 203, 255, 0.15);
  text-decoration: underline;
}
.collection-slug-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
  cursor: default;
  text-decoration: none;
}

.collections-page .form-group input:not([type="checkbox"]):not([type="radio"]),
.collections-page .form-group textarea,
.collection-edit-panel .form-group input:not([type="checkbox"]):not([type="radio"]),
.collection-edit-panel .form-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.collections-page .form-group textarea,
.collection-edit-panel .form-group textarea {
  resize: vertical;
  min-height: 72px;
}
.collections-page .form-group input:focus:not([type="checkbox"]):not([type="radio"]),
.collections-page .form-group textarea:focus,
.collection-edit-panel .form-group input:focus:not([type="checkbox"]):not([type="radio"]),
.collection-edit-panel .form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
}

.collection-game-picker {
  position: relative;
  margin-bottom: 18px;
  overflow: visible;
}
.collection-game-picker-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.collection-game-picker-desc {
  margin: 0 0 12px;
}
.collection-game-search-form {
  margin: 0;
}
.collection-game-search-row {
  align-items: stretch;
}
.collection-game-search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.collection-game-search-row .search-bar-input {
  width: 100%;
  min-width: 0;
}
.collection-game-search-hint {
  margin: 8px 0 0;
  min-height: 18px;
}
.collection-game-picker-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 120;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  max-height: min(320px, 50vh);
  overflow-y: auto;
  overflow-x: hidden;
}
.collection-game-picker-results[hidden] {
  display: none !important;
}
.collection-game-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}
.collection-game-picker-item:last-child {
  border-bottom: 0;
}
.collection-game-picker-item:hover,
.collection-game-picker-item:focus-visible {
  background: var(--bg3);
  outline: none;
}
.collection-game-picker-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.collection-game-picker-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collection-game-picker-item-slug {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collection-game-picker-item-action {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: rgba(230, 57, 70, 0.12);
  font-size: 12px;
}
.collection-game-picker-item:hover .collection-game-picker-item-action,
.collection-game-picker-item:focus-visible .collection-game-picker-item-action {
  background: rgba(230, 57, 70, 0.22);
  color: #fff;
}
.collection-game-picker-thumb {
  width: 44px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--bg3);
}
.collection-game-picker-thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px solid var(--border);
}
.collection-game-picker-empty,
.collection-game-picker-status {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.collection-game-picker-empty--error {
  color: #ffb4b4;
}

.collection-edit-games-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.collection-edit-game-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(0, 0, 0, 0.12);
  transition: border-color var(--transition), background var(--transition);
}
.collection-edit-game-row:hover {
  border-color: rgba(126, 203, 255, 0.22);
  background: rgba(126, 203, 255, 0.04);
}
.collection-edit-game-note-row,
.collection-edit-game-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.collection-edit-game-actions {
  justify-content: flex-end;
}
.collection-note-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  margin: 0;
}
.collection-remove-form {
  display: flex;
  flex-shrink: 0;
  margin: 0;
}
.collection-note-form .btn,
.collection-remove-form .btn {
  flex-shrink: 0;
}
.collection-note-input {
  width: 100%;
  flex: 1;
  min-width: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.collection-note-input::placeholder {
  color: var(--muted);
}
.collection-note-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
}
.collection-edit-game-cover {
  display: block;
  width: 64px;
  height: 46px;
  border-radius: 6px;
  overflow: hidden;
}
.collection-edit-game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-edit-game-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--bg2);
  color: var(--muted);
}
.collection-edit-game-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.collection-edit-game-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}
.collection-edit-game-title:hover {
  color: var(--cyan);
}
.collection-edit-panel + .collection-games-editor {
  margin-top: 20px;
}

.collection-visibility-group {
  margin-bottom: 0;
}
.collection-visibility-group > label {
  margin-bottom: 6px;
}
.collection-visibility-intro {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.collection-visibility-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.collection-visibility-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg3);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.collection-visibility-option:hover {
  border-color: rgba(126, 203, 255, 0.35);
}
.collection-visibility-option input {
  flex-shrink: 0;
  margin: 0;
}
.collection-visibility-option__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.collection-visibility-option__text strong {
  font-size: 14px;
  line-height: 1.3;
}
.collection-visibility-option__hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.collection-visibility-option:has(input:checked),
.collection-visibility-option.is-checked {
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.06);
}
.badge-info {
  color: #7ecbff;
  background: rgba(126, 203, 255, 0.12);
  border: 1px solid rgba(126, 203, 255, 0.25);
}

@media (max-width: 640px) {
  .collection-panel-body {
    padding: 16px;
  }
  .collection-games-editor.section-block {
    overflow: visible;
  }
  .collection-game-search-row {
    flex-direction: column;
  }
  .collection-game-search-row .search-bar-submit {
    width: 100%;
    justify-content: center;
  }
  .collection-edit-game-row {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 14px;
  }
  .collection-edit-game-cover {
    width: 56px;
    height: 40px;
  }
  .collection-edit-game-note-row {
    gap: 6px;
  }
  .collection-note-form {
    flex: 1;
    min-width: 0;
  }
  .collection-note-input {
    padding: 8px 10px;
    font-size: 16px;
  }
}
