/* Contest, Oasis, fee desk, and thesis */
.scene-press .press-facts > :last-child { grid-column: 1 / -1; border-inline-end: 0; }
[data-view="oasis"] .mast-competition { display: inline-flex; }
[data-view="oasis"] :is(main, .journal-footer) { margin-inline-start: 0; }
[data-view="oasis"] :is(.contest-sidebar, .contest-menu-toggle) { display: none; }
body:not(:has(.round-dialog[open])) .round-only { display: none; }

[data-view="contest"] #round-title { font-size: clamp(2.75rem, 6.2vw, 5.9rem); max-width: 12ch; }
.contest-title em { color: #861046; font-style: normal; }
.contest-tagline { margin: .65rem 0; font: 800 clamp(1.35rem, 3vw, 2rem)/1.1 Georgia, serif; }
.contest-steps a { overflow-wrap: anywhere; }

.round-dialog {
  padding: .8rem;
  width: min(1150px, calc(100% - 1.4rem));
  max-width: none;
  max-height: calc(100% - 1.4rem);
  overflow: auto;
  margin: auto;
  border: 3px solid var(--ink);
  box-shadow: 6px 7px var(--ink);
  background: #fff9e9;
  color: var(--ink);
}
.round-dialog::backdrop { background: #21171fb3; }
.round-dialog:not([open]) { display: none; }
.round-close { display: flex; justify-content: flex-end; margin: 0 0 .5rem; }
.round-close .button { min-height: 36px; padding: .26rem .55rem; }
.round-dialog #maker { padding-top: 0; }
.round-dialog .studio-editor { position: static; }
.round-dialog .studio-title { display: none; }
.round-dialog .round-workspace { display: grid; }
.round-dialog .workspace-entries { display: block; }
.round-dialog #entry-post { width: 100%; max-width: 420px; padding: .35rem; border: 2px solid var(--ink); background: white; }
.round-dialog #maker .wrap { width: 100%; }
.round-dialog .meme-preview canvas { max-height: min(43svh, 440px); }
#entry-post:disabled { opacity: .65; }
.entry > img { display: block; width: 100%; height: auto; }

.oasis { min-height: 142svh; padding-block: 1rem 0; }
.oasis-scene {
  position: sticky; top: var(--mast-height);
  min-height: min(74svh, 690px);
  overflow: hidden; isolation: isolate;
  border: 2px solid var(--ink); box-shadow: 5px 6px var(--ink);
  padding: clamp(1rem, 5vw, 3rem);
  background: linear-gradient(#d6e8ff,#e5d9ff 88%);
}
.oasis-scene h1 { position: relative; z-index: 2; font-size: clamp(2.75rem,8vw,7.5rem); }
.oasis-pigeon {
  position: absolute; z-index: 0;
  top: 33%; left: calc(6% + var(--oasis-progress, 0) * 66%);
  width: min(26%, 210px);
  height: auto;
  transform: scaleX(-1) rotate(calc(-10deg + var(--oasis-progress, 0) * 18deg)) translateY(calc(var(--oasis-progress, 0) * -25px));
}
.oasis-clouds {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: clamp(.5rem, 2vw, 2rem);
  margin-top: clamp(6rem, 33svh, 22rem);
}
.oasis-clouds a {
  display: grid; place-items: center; padding: 1rem .33rem;
  min-height: 70px; text-align: center;
  border: 2px solid var(--ink); border-radius: 47% 48% 43% 46%;
  box-shadow: 3px 4px var(--ink);
  background: #fff;
  font: 850 clamp(.9rem,2vw,1.5rem)/1.1 Georgia,serif;
}
.oasis-clouds a:nth-child(2) { transform: translateY(-15px); }
.oasis-clouds a:hover { background: #ffe5f2; }

.art-tools {
  margin: .7rem 0;
  padding: .6rem;
  border: 1px solid var(--ink);
}
.art-tools summary { cursor: pointer; font-weight: 800; }
.art-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .35rem; padding-top: .45rem; }
.art-controls :is(input, select) { width: 100%; min-width: 0; }
.art-tools p { font-size: .78rem; margin-top: .6rem; }
.pfp-workbench { display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,.6fr); gap: clamp(.8rem,3vw,2.5rem); }
#pfp-preview { width: min(100%, 480px); height: auto; border: 2px solid var(--ink); }
.pfp-controls { display: grid; gap: .6rem; align-content: start; }
.pfp-controls select { width: 100%; margin-top: .18rem; padding: .35rem; background: white; border: 2px solid var(--ink); }

#briefing .wall .item { border: 2px solid var(--ink); }
#briefing .wall .item:first-child { background: #fff0b8; }
#briefing .wall .item:last-child { background: #ffdced; }
.manga-panels .item { border: 3px solid var(--ink); background: white; }
.manga-panels .item img { display: block; width: 100%; height: 132px; object-fit: contain; border-bottom: 2px solid var(--ink); margin-bottom: .65rem; }
.manga-panels .item:nth-child(2n) img { background: #efe4ff; }
.manga-panels .item:nth-child(2n+1) img { background: #fff1c8; }

@media (max-width: 600px) {
  .round-dialog { padding: .5rem; }
  .oasis-clouds { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; margin-top: clamp(5rem,24svh,14rem); }
  .oasis-clouds a { min-height: 60px; padding: .5rem .2rem; }
  .pfp-workbench { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .oasis { min-height: 0; }
  .oasis-scene { position: relative; top: auto; }
}
