/* New pieces use the arcade's existing colours, fonts and small identity icons. */
.profile-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.profile-actions #edit-space { color: #81a6ea; }
button.web-badge { cursor: pointer; border: 0; color: inherit; font: inherit; }
.pin-dialog { width: min(510px, calc(100vw - 32px)); }
#pin-content { min-height: 0; overflow-y: auto; }
.pin-object { display: flex; align-items: center; gap: 22px; margin: 2px 0 24px; }
.pin-object .web-badge { flex: none; }
.pin-object p { color: #b9c8e4; margin: 0; font-size: 15px; }
.pin-people { display: grid; gap: 10px; padding: 0; list-style: none; margin: 12px 0 0; }
.pin-people a { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid #263a69; background: #050b23; text-decoration: none; }
.pin-people a:hover, .pin-people a:focus-visible { border-color: var(--blue-hi); background: #142858; }
.pin-people img { width: 32px; height: 32px; object-fit: contain; border-radius: 50%; }
.pin-note { color: #a7b9db; font-size: 14px; }
.space-dialog { width: min(740px, calc(100vw - 32px)); }
#space-workshop { display: flex; flex-direction: column; min-height: 0; }
.space-fields { min-height: 0; overflow-y: auto; padding: 3px 12px 4px 3px; scrollbar-gutter: stable; }
.space-fields > label, .space-field-pair { margin-bottom: 20px; }
.space-fields textarea { width: 100%; min-height: 72px; resize: vertical; max-height: 240px; border: 1px solid #5677bb; border-radius: 3px; padding: 8px; background: #050b23; color: #fff; font: 16px/1.5 var(--text); }
.space-fields textarea:focus-visible { outline: 2px solid #ffd84a; outline-offset: 2px; }
.field-hint { font-size: 12px; color: #899abd; }
.space-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.space-links-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.space-links-head h3 { font: 11px var(--pixel); color: #ffd884; }
.space-links { display: grid; gap: 10px; margin: 8px 0 16px; }
.space-link { display: grid; grid-template-columns: minmax(90px, .6fr) minmax(140px, 1.4fr) 30px; gap: 10px; align-items: end; }
.space-link label { min-width: 0; font-size: 12px; }
.space-link .quiet-button { align-self: end; min-height: 40px; }
#space-dirty { color: #ffd884; font-size: 13px; }
#space-save { margin-left: auto; }
.mixtape { width: 100%; max-width: 1500px; margin: 0 auto; flex: none; display: grid; grid-template-columns: 64px minmax(100px, 1fr) auto minmax(100px, 180px) 80px 26px; align-items: center; gap: 16px; padding: 10px 14px; border: 1px solid #9bb9ff; border-radius: 3px 12px 3px 3px; box-shadow: 0 0 0 2px #142e88; background: linear-gradient(110deg, #09163e, #03071a 70%); }
.tape-shell { width: 64px; height: 43px; border: 2px solid #9ab3ec; border-radius: 4px; padding: 2px 5px; background: #0e2050; box-shadow: inset 0 -7px #070d20; }
.tape-shell > span { display: block; color: #ffd884; font: 7px/1.5 var(--pixel); text-align: center; }
.tape-reels { display: flex; justify-content: space-between; padding-top: 4px; }
.tape-reels i { width: 16px; height: 16px; border: 3px dashed #b4c6e9; border-radius: 50%; animation: tape-spin 4s linear infinite; animation-play-state: paused; }
.mixtape[data-state="playing"] .tape-reels i { animation-play-state: running; }
@keyframes tape-spin { to { transform: rotate(360deg); } }
.tape-caption { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
#tape-member { width: fit-content; font-size: 12px; color: #83bcff; text-decoration: none; }
#tape-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tape-status { font-size: 11px; color: #9aacca; }
#tape-status a { margin-left: 6px; }
.tape-transport { display: flex; gap: 6px; }
.tape-transport button { border: 1px solid #415e9d; background: #0a1b4c; min-width: 32px; min-height: 32px; cursor: pointer; font-size: 13px; }
.tape-transport #tape-play { background: #102a80; border-color: #9bb9ff; }
.tape-transport button:hover, .tape-transport button:focus-visible { background: #1b3b9c; outline: 1px solid #c8dcff; }
.tape-timeline, .tape-volume { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mixtape input { width: 100%; margin: 0; accent-color: #7fa9ff; height: 18px; cursor: pointer; }
#tape-time, .tape-volume { font-size: 10px; color: #9aacca; }
.mixtape #tape-close { font-size: 24px; padding: 0; }
.record-dialog { width: min(700px, calc(100vw - 32px)); }
.record-list { overflow-y: auto; min-height: 0; padding: 0; list-style: none; margin: 18px 0 0; }
.record-list button { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 8px; border: 0; border-top: 1px solid #25355b; text-align: left; cursor: pointer; background: none; }
.record-list button:hover, .record-list button:focus-visible, .record-list button[aria-pressed="true"] { background: #142858; outline: none; }
.record-number { color: #ffd884; font-size: 12px; }
.record-credit { display: flex; flex-direction: column; min-width: 0; }
.record-credit small { color: #9aacca; }
.record-duration { color: #9aacca; font-size: 12px; }
.record-shuffle { align-self: flex-start; flex-shrink: 0; }
.mixtape + .foot { margin-top: 0; }
@media (min-width: 761px) {
  .has-mixtape .arcade { height: 100dvh; }
  .has-mixtape .select { flex: 1 1 auto; min-height: 0; padding: 0; gap: clamp(12px, 2dvh, 24px); }
}
@media (min-width: 761px) and (max-height: 700px) {
  .has-mixtape .slot-frame { width: min(100%, 24dvh); }
  .has-mixtape .select-title { font-size: clamp(20px, 3.4vw, 54px); }
}
@media (max-width: 1000px) {
  .mixtape { grid-template-columns: 48px minmax(0, 1fr) auto 24px; gap: 10px; }
  .tape-shell { width: 48px; padding-left: 3px; padding-right: 3px; }
  .tape-timeline { grid-column: 2 / 4; flex-direction: row; align-items: center; }
  .tape-timeline input { flex: 1; min-width: 0; }
  #tape-time { white-space: nowrap; }
  .tape-volume { grid-column: 1; grid-row: 2; }
  #tape-close { grid-row: 1; grid-column: 4; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .details-card:not(.no-feed) { grid-template-columns: minmax(330px, 38%) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .space-field-pair { grid-template-columns: 1fr; gap: 16px; }
  .space-link { grid-template-columns: minmax(70px, .6fr) minmax(100px, 1fr) 24px; gap: 6px; }
  .space-link label { font-size: 11px; }
  .tape-shell { display: none; }
  .mixtape { grid-template-columns: minmax(0, 1fr) auto 20px; padding: 10px; }
  .tape-timeline { grid-column: 1 / 3; }
  #tape-close { grid-column: 3; }
  .tape-transport button { min-width: 29px; }
  .tape-volume { grid-column: 1 / 4; grid-row: 3; flex-direction: row; align-items: center; gap: 10px; }
  .tape-volume input { width: 100px; }
  .foot { flex-wrap: wrap; row-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tape-reels i, .select-hint, .slot.is-active .slot-up, .slot.is-chosen .slot-frame, .slot.is-chosen .slot-band { animation: none; }
}
