.ugc {
  --tablet: min(56rem, max(38rem, (100vh - 17rem) * 1.2459));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--tablet)); gap: 3rem; align-items: start;
  padding-top: 3.5rem;
}
.ugc > .sign { margin-top: .75rem; }

.face { position: relative; container-type: inline-size; aspect-ratio: 760 / 610; display: flex; flex-direction: column; }
.face > * { --u: calc(100cqw / 760); }

.face .screen-bar { flex: none; grid-template-columns: 1fr minmax(0, auto) 1fr; gap: .75rem; padding: .375rem .375rem 0; }
.back { justify-self: start; }
.face .screen-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.find { justify-self: end; display: flex; gap: .375rem; min-width: 0; }
.find input {
  flex: 1 1 9.5rem; width: 9.5rem; min-width: 4rem; height: 2.75rem; padding: 0 .875rem;
  background: var(--row); color: #fff; border: 0; border-radius: 0;
  font: inherit; font-size: 1.125rem;
  -webkit-appearance: none; appearance: none;
}
.find input::placeholder { color: var(--subtle); opacity: 1; }
.find input::-webkit-search-cancel-button { -webkit-appearance: none; }
.find input:focus-visible { outline-offset: -3px; }
.find .key { flex: none; }
.btn.make:hover { background: #27BE3C; }
.key.off, .key.off:hover { background: var(--control); opacity: .45; cursor: default; }

.face > .cards { flex: 1; gap: calc(6 * var(--u)); margin: calc(62 * var(--u)) calc(11 * var(--u)); }
.face .cards li { flex: 1 1 0; }
.face .card {
  --draw-h: calc(150 * var(--u));
  flex: 1 1 0; width: auto; height: auto; justify-content: flex-start;
  padding: calc(40 * var(--u)) calc(10 * var(--u)) 0;
  font-size: calc(44 * var(--u)); line-height: 1.15;
}
.face .draw { margin: 0 0 calc(14 * var(--u)); }
.face .card-line { margin-top: calc(10 * var(--u)); font-size: calc(20 * var(--u)); }

.ask { flex: 1; display: flex; flex-direction: column; align-items: center; gap: calc(20 * var(--u)); padding-top: calc(52 * var(--u)); }
.ask-line { max-width: calc(600 * var(--u)); margin-bottom: calc(16 * var(--u)); text-align: center; text-wrap: balance; font-size: calc(27 * var(--u)); line-height: 1.3; }
.btn.wide { position: relative; justify-content: center; width: calc(460 * var(--u)); min-height: calc(96 * var(--u)); font-size: calc(32 * var(--u)); }
.btn.wide img { position: absolute; left: calc(24 * var(--u)); top: 50%; margin: -16px 0 0; }

.filters { flex: none; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; padding: .5rem .375rem .625rem; }
.filters .btn { min-height: 2.25rem; }
.filters.chips { padding-top: 0; }
.filters.chips .btn { padding: 0 .875rem; }

.map-tiles {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: calc(14 * var(--u)); padding: 0 calc(24 * var(--u));
}
.map-tile { position: relative; min-width: 0; min-height: 0; background: var(--row); }
.map-tile a { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.map-tile a:focus-visible { outline-offset: -6px; }
.map-tile a:hover .map-name { text-decoration: underline; text-underline-offset: .2em; }
.map-art { display: block; overflow: hidden; background: repeating-linear-gradient(45deg, #1C2229 0 .8rem, #252D36 .8rem 1.6rem); }
.map-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-tile .map-art { position: absolute; inset: calc(6 * var(--u)); }
.map-caption {
  position: absolute; left: calc(6 * var(--u)); right: calc(6 * var(--u)); bottom: calc(6 * var(--u));
  display: flex; flex-direction: column; justify-content: center; min-height: calc(38 * var(--u));
  padding: calc(2 * var(--u)) calc(6 * var(--u)) calc(3 * var(--u));
  background: rgba(0, 0, 0, .62); text-align: center;
}
.map-name { display: block; font-size: clamp(.875rem, calc(17 * var(--u)), 1.25rem); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-id { display: block; color: var(--subtle); font-size: clamp(.75rem, calc(13 * var(--u)), 1rem); line-height: 1.3; letter-spacing: .06em; }
.map-corner, .map-verified {
  position: absolute; top: calc(9 * var(--u));
  font-size: clamp(.75rem, calc(15 * var(--u)), 1.125rem); line-height: 1.3;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 3px #000;
}
.map-corner { left: calc(12 * var(--u)); }
.map-corner.playing { color: var(--playing); }
.map-verified { right: calc(12 * var(--u)); max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.list-none { flex: 1; display: grid; place-items: center; padding: 0 1rem; text-align: center; font-size: clamp(1.125rem, calc(25 * var(--u)), 1.75rem); line-height: 1.3; }

.list-foot { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; padding: calc(10 * var(--u)) .375rem .375rem; }
.list-foot .pager { grid-column: 1; justify-self: start; }
.list-foot .sort { grid-column: 2; }
.list-foot .create { grid-column: 3; justify-self: end; }

.one { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: calc(30 * var(--u)); padding: 0 calc(24 * var(--u)) calc(44 * var(--u)); }
.one-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: calc(36 * var(--u)); align-items: center; }
.one-art { position: relative; aspect-ratio: 16 / 9; }
.one-tag { position: absolute; top: calc(8 * var(--u)); right: calc(8 * var(--u)); background: var(--verify); padding: .15em .8em .2em; font-size: calc(17 * var(--u)); line-height: 1.3; }
.one-facts { flex-direction: column; gap: calc(18 * var(--u)); }
.one-facts dt { font-size: calc(20 * var(--u)); }
.one-facts dd { font-size: calc(30 * var(--u)); }
.one-facts .one-id { font-size: calc(54 * var(--u)); line-height: 1.1; letter-spacing: .14em; }
.one-notice { text-align: center; font-size: calc(20 * var(--u)); line-height: 1.3; }
.one-notice.problem { color: var(--problem); }
.one-by { color: var(--subtle); font-size: calc(21 * var(--u)); line-height: 1.3; }
.one-by + .one-facts, .one-facts + .one-by { margin-top: calc(14 * var(--u)); }
.one-foot { color: var(--subtle); text-align: center; font-size: calc(19 * var(--u)); line-height: 1.3; }
.one-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(14 * var(--u)); }
.one-keys .btn { min-width: calc(204 * var(--u)); justify-content: center; }
.one-keys .btn.primary { min-width: calc(420 * var(--u)); min-height: calc(60 * var(--u)); font-size: calc(26 * var(--u)); }

@media (max-width: 1100px) {
  .ugc { display: block; }
  .ugc > .sign { margin-top: 0; }
  .ugc .tv { max-width: var(--tablet); margin: 0 auto; }
}

@media (max-width: 700px) {
  .ugc { padding-top: 4.5rem; }
  .face { aspect-ratio: auto; }
  .face > * { --u: 1px; }

  .face > .cards { flex-direction: column; gap: .375rem; margin: .5rem; }
  .face .card {
    --draw-h: 5rem;
    display: grid; grid-template-columns: 5.75rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .875rem; align-content: center;
    height: 7.75rem; padding: .875rem 1rem; font-size: 1.75rem;
  }
  .face .draw { grid-row: 1 / span 2; align-self: center; justify-self: center; margin: 0; }
  .face .card-name { align-self: end; }
  .face .card-line { align-self: start; margin-top: .125rem; font-size: .9375rem; text-align: left; }

  .face .screen-bar { grid-template-columns: auto minmax(0, 1fr); padding: .625rem .5rem 0; }
  .face .screen-title { white-space: normal; overflow-wrap: anywhere; }
  .find { justify-self: stretch; }

  .ask { gap: .625rem; padding: 1.25rem .625rem 1.5rem; }
  .ask-line { max-width: none; margin-bottom: .75rem; font-size: 1.375rem; }
  .btn.wide { width: 100%; min-height: 4.5rem; font-size: 1.5rem; }
  .btn.wide img { left: 1rem; }

  .map-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: .5rem; padding: 0 .5rem; }
  .map-tile { aspect-ratio: 228 / 124; }
  .map-name { font-size: .9375rem; }
  .list-none { padding: 4rem 1rem; }
  .list-foot { grid-template-columns: 1fr 1fr; gap: .5rem; padding: .625rem .5rem .5rem; }
  .list-foot .pager { grid-column: 1 / -1; justify-self: center; }
  .list-foot .sort { grid-column: 1; justify-self: start; }
  .list-foot .create { grid-column: 2; }

  .one { gap: 1.125rem; padding: .75rem .625rem 1.5rem; }
  .one-body { grid-template-columns: minmax(0, 1fr); gap: 1.125rem; }
  .one-facts { gap: .75rem; padding: 0 .25rem; }
  .one-facts dt { font-size: 1.125rem; }
  .one-facts dd { font-size: 1.625rem; }
  .one-facts .one-id { font-size: 2.75rem; }
  .one-tag { font-size: 1rem; }
  .one-notice { font-size: 1.125rem; }
  .one-by { font-size: 1.125rem; }
  .one-foot { font-size: 1rem; }
  .one-keys { gap: .5rem; }
  .one-keys .btn, .one-keys .btn.primary { min-width: 0; flex: 1 1 100%; min-height: 3.5rem; font-size: 1.375rem; }
}
