/* Hallmark: MakeYard, published player. One black stage for the game. */
/* Critique: keep the title, creator and share action together above the playable area. */
:root {
  color-scheme: dark;
  --page: #0b0b0c;
  --text: #f5f5f5;
  --muted: #b3b3b8;
  --line: #303033;
  --control: #202023;
  --focus: #e6d5ff;
  --frame: #151620;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
body {
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  margin: 0;
}
header {
  border-bottom: 1px solid var(--line);
}
.bar,
main {
  width: min(100%, 58rem);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.bar {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 750;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}
.brand img {
  border-radius: 0.45rem;
}
button {
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--control);
  color: var(--text);
  font: 600 0.875rem var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1rem;
  cursor: pointer;
}
button:active {
  background: var(--line);
}
button:disabled {
  background: var(--page);
  color: var(--muted);
  cursor: progress;
}
button svg {
  width: 1.1rem;
  height: 1.1rem;
}
button:focus-visible,
input:focus-visible,
iframe:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
main {
  padding-block: clamp(1.25rem, 4vw, 2.75rem)
    max(1rem, env(safe-area-inset-bottom));
}
h1 {
  text-wrap: balance;
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
  letter-spacing: -0.055em;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.03;
}
.work p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.5rem 0 1.25rem;
}
iframe {
  width: 100%;
  height: clamp(34rem, 73svh, 48rem);
  display: block;
  background: var(--frame);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
output:not(:empty),
label {
  display: block;
  margin-bottom: 1rem;
}
input {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  background: var(--control);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 0.5rem;
  padding: 0.7rem;
  font: inherit;
}
[hidden] {
  display: none;
}
