/* DECREE Controller — phone / web, thumb-first */
@import url("../../colors_and_type.css");

html, body { margin: 0; padding: 0; background: #1A1714; }
body {
  font-family: var(--font-ui);
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
}

/* phone wrapper */
.phone {
  width: 390px;
  height: 780px;
  background: var(--paper);
  color: var(--ink);
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 8px #2A2622, 0 0 0 10px #0E0D0B;
  display: flex; flex-direction: column;
}

/* iOS-ish status bar — calm */
.phone-status {
  height: 44px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* Top employee strip — the controller's "letterhead" */
.handset-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px 20px 12px;
  border-bottom: 1px solid var(--paper-3);
  gap: 12px;
}
.handset-top .room { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--ink-3); }
.handset-top .room strong { color: var(--ink); }
.handset-top .name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--ink-2); }

/* Body */
.handset-body {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 20px;
  gap: 16px;
  overflow: hidden;
}

/* Sticky action bar */
.handset-action {
  padding: 16px 20px 24px;
  border-top: 2px solid var(--ink);
  background: var(--paper-2);
  display: flex; flex-direction: column; gap: 10px;
}

/* Common controls */
.btn-primary {
  width: 100%;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  padding: 18px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  cursor: pointer;
}
.btn-primary[disabled] { background: var(--ink-3); cursor: not-allowed; }
.btn-ghost {
  width: 100%;
  font-family: var(--font-ui); font-weight: 700; font-size: 12px; letter-spacing: 0.22em;
  padding: 14px; background: transparent; color: var(--ink-2);
  border: 1px solid var(--paper-edge); border-radius: 2px; cursor: pointer;
}
.btn-stamp {
  width: 100%; font-family: var(--font-ui); font-weight: 700; font-size: 13px; letter-spacing: 0.22em;
  padding: 18px; background: var(--stamp); color: var(--paper);
  border: none; border-radius: 2px; cursor: pointer;
}

.field-label {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
  display: flex; justify-content: space-between; align-items: baseline;
}
.field-input {
  width: 100%;
  font-family: var(--font-ui); font-size: 17px;
  background: var(--paper-2); border: 1px solid var(--paper-edge); border-radius: 2px;
  padding: 14px 14px; color: var(--ink); outline: none;
}
.field-input.mono { font-family: var(--font-mono); letter-spacing: 0.16em; font-size: 26px; padding: 18px 16px; }
.field-input:focus { border-color: var(--halcyon); box-shadow: 0 0 0 1px var(--halcyon); }
textarea.field-input { resize: none; min-height: 140px; line-height: 1.4; font-size: 15px; }

.label-tracked { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--ink-3); text-transform: uppercase; }
.mono { font-family: var(--font-mono); }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }

@keyframes stamp-arrive {
  0%   { transform: scale(1.4) rotate(-6deg); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1) rotate(-3deg); opacity: 1; }
}
.stamp-arrive { animation: stamp-arrive 320ms cubic-bezier(0.9, 0, 1, 0.4) both; transform-origin: center; }
@keyframes file-in {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.file-in { animation: file-in 240ms cubic-bezier(0.2, 0, 0, 1) both; }

/* Picker — for vote */
.vote-option {
  padding: 14px 16px;
  background: var(--paper-2);
  border: 1px solid var(--paper-edge);
  border-radius: 2px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
}
.vote-option.selected { border-color: var(--ink); background: var(--halcyon-tint); }
.vote-option.disabled { opacity: 0.45; cursor: not-allowed; }
.vote-option .letter { font-family: var(--font-display); font-weight: 900; font-size: 32px; line-height: 0.9; color: var(--ink); }
.vote-option .text { font-size: 14px; line-height: 1.4; color: var(--ink); }
.vote-option .yours-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; color: var(--ink-3); margin-top: 4px; display: block; }

/* Nav strip beneath phone */
.kit-nav {
  position: fixed;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
  background: rgba(14,13,11,0.96);
  border: 1px solid #312E28;
  padding: 6px;
  z-index: 100;
}
.kit-nav button {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  background: transparent; color: #A39C8E; border: 1px solid transparent;
  padding: 8px 12px; cursor: pointer;
}
.kit-nav button.active { background: #D5CEC0; color: #0E0D0B; }
