:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202723;
  background: #f6f7f2;
  --green: #214e3d;
  --muted: #526158;
  --line: #d3dacf;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(18px, 5vw, 72px); min-height: 68px;
  background: #fbfcf8; border-bottom: 1px solid var(--line);
}
.brand { color: #263f31; font-size: 24px; font-weight: 700; letter-spacing: -1.5px; display: flex; align-items: center; }
.brand > span:last-child { font-weight: 420; }
.bird { width: 23px; height: 23px; margin-right: 10px; background: var(--green); clip-path: polygon(0 5%,47% 40%,100% 0,71% 57%,88% 54%,40% 100%,39% 68%); }
.private, .crumb, .footer, #status, #feedback, .hint { color: var(--muted); font-size: 13px; }
.private::before { content: ""; display: inline-block; width: 7px; height: 7px; background: #39735b; border-radius: 50%; margin-right: 7px; }
main { max-width: 1410px; margin: auto; padding: 32px clamp(18px, 5vw, 72px); }
.intro { margin-bottom: 22px; }
.crumb { margin: 0 0 10px; }
.crumb span { margin: 0 5px; color: #78877a; }
h1 { font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-size: clamp(38px, 4.2vw, 60px); line-height: 1.05; font-weight: 500; letter-spacing: -.05em; margin: 0; }
.panels { display: grid; grid-template-columns: minmax(265px, .85fr) minmax(300px, 1.5fr); gap: 18px; align-items: start; }
section { background: #fff; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.controls { padding: 24px; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
p { line-height: 1.55; }
.controls > p:not(#feedback) { color: var(--muted); }
#word-form { display: grid; gap: 7px; margin-top: 23px; }
label { font-size: 13px; font-weight: 600; }
.entry { display: flex; gap: 6px; }
input, button { font: inherit; }
input { border: 1px solid #aebdb1; border-radius: 7px; padding: 9px 10px; min-width: 0; flex: 1; }
button { background: #fff; color: var(--green); cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
input:focus-visible, button:focus-visible { outline: 3px solid #527bcd; outline-offset: 2px; }
.primary, .secondary { font-size: 14px; font-weight: 600; border-radius: 7px; padding: 9px 14px; }
.primary { background: var(--green); color: #fff; border: 0; }
.secondary { border: 1px solid #c4cfc5; }
#feedback:empty { display: none; }
.hint { margin-top: 25px; }
.device { overflow: hidden; }
.device-bar, .footer { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 13px 17px; }
.stage { display: grid; place-items: center; padding: 12px; min-height: 220px; background: #e9eee7; border-block: 1px solid var(--line); }
#placeholder { text-align: center; max-width: 32ch; padding: 18px; color: var(--muted); }
#screen { display: block; max-width: 100%; max-height: min(65svh, 780px); height: auto; width: auto; cursor: pointer; touch-action: manipulation; user-select: none; }
.link { border: none; padding: 5px; font-size: 13px; font-weight: 650; }
.link:hover:not(:disabled) { text-decoration: underline; }
@media (max-width: 720px) {
  header { min-height: 54px; }
  main { padding-top: 20px; }
  .panels { display: flex; flex-direction: column; }
  .panels section { width: 100%; }
  .device { order: -1; }
  .controls { padding: 18px; }
  #screen { max-height: 48svh; }
}

.start-panel { grid-area: 1 / 1; text-align: center; }
#screen { grid-area: 1 / 1; z-index: 1; }
.start-panel p { margin: 0; }
.start-panel a { color: var(--green); font-weight: 600; }
