/* Screens around a shift: the duty roster (#14) and the newspaper (#15). */
.screen {
  position: fixed; inset: 0; z-index: 20; overflow: auto; box-sizing: border-box; padding: 24px 16px;
  display: flex; justify-content: center; align-items: flex-start;
  background: rgba(8, 10, 9, 0.72); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 300ms ease-out;
}
.screen.shown { opacity: 1; }
.screen.leaving { pointer-events: none; }
.screen button { font: inherit; cursor: pointer; }

/* Duty roster */
.roster .sheet {
  box-sizing: border-box; width: min(880px, 100%); margin: auto 0; background: #efe9d8; color: #1d1b17;
  padding: 28px 32px 32px; border-radius: 2px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  font: 16px/1.4 "Old Standard TT", Georgia, "Times New Roman", serif;
}
.roster header { border-bottom: 2px solid #1d1b17; margin-bottom: 18px; padding-bottom: 8px; }
.roster header { display: flex; gap: 14px; align-items: center; }
.roster .crest { font: 14px/1 "Russo One", "Arial Black", sans-serif; letter-spacing: 0.06em; color: #7a1a14; }
.roster h1 { margin: 6px 0 0; font: 30px/1.1 "Russo One", "Arial Black", sans-serif; text-transform: uppercase; }
.roster .cols { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.roster .shifts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.roster .shifts button {
  width: 100%; text-align: left; background: none; border: 1px solid #b9b19c; color: inherit;
  padding: 8px 10px; border-radius: 2px;
}
.roster .shifts button.active { background: #1d1b17; border-color: #1d1b17; color: #efe9d8; }
.roster .shifts .n { display: block; font: 11px/1.3 "Russo One", "Arial Black", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.roster .shifts .best { display: block; font-size: 12px; opacity: 0.7; }
.roster .date { font: 12px/1 "Russo One", "Arial Black", sans-serif; text-transform: uppercase; letter-spacing: 0.1em; color: #4a5a50; }
.roster h2 { margin: 6px 0 12px; font: bold 26px/1.15 "Old Standard TT", Georgia, "Times New Roman", serif; }
.roster dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 0 0 12px; }
.roster dt { color: #4a5a50; }
.roster dd { margin: 0; font-weight: bold; }
.roster h3 { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #7a1a14; }
.roster .new { margin: 0; padding-left: 18px; }
.roster .new code { font-size: 12px; color: #4a5a50; }
.roster .logged { margin: 10px 0 0; font-size: 13px; font-style: italic; color: #4a5a50; }
.roster .begin {
  margin-top: 22px; background: #7a1a14; color: #f4eee0; border: 0; padding: 10px 22px; border-radius: 2px;
  font: 16px/1 "Russo One", "Arial Black", sans-serif; letter-spacing: 0.04em; text-transform: uppercase;
}
@media (max-width: 640px) {
  .roster .sheet { padding: 20px 18px 24px; }
  .roster .cols { grid-template-columns: 1fr; gap: 18px; }
}

/* Closing time */
.closing { align-items: center; background: rgba(8, 10, 9, 0.4); backdrop-filter: none; }
.closing .banner {
  margin: auto 0; text-align: center; color: #f4eee0; font: 20px/1.3 "Russo One", "Arial Black", sans-serif;
  text-transform: uppercase; letter-spacing: 0.12em; text-shadow: 0 2px 10px #000;
}
.closing .time { font: bold 64px/1 ui-monospace, monospace; color: #e8b04a; letter-spacing: 0; }

/* The newspaper */
.paper-screen.shown .paper { animation: paper-in 700ms cubic-bezier(.2, .8, .3, 1) both; }
@keyframes paper-in {
  from { transform: scale(0.2) rotate(-540deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.paper {
  box-sizing: border-box; width: min(1040px, 100%); background: #f1ede2; color: #1b1a17;
  padding: 22px 30px 26px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  font: 16px/1.45 "Old Standard TT", Georgia, "Times New Roman", serif;
}
.masthead { text-align: center; border-bottom: 4px double #1b1a17; padding-bottom: 8px; margin-bottom: 18px; }
.masthead .ears { display: flex; justify-content: space-between; font: 11px/1 "Russo One", "Arial Black", sans-serif; text-transform: uppercase; letter-spacing: 0.1em; }
.masthead .title { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 28px); }
.masthead .title .seal { flex: none; width: clamp(36px, 8vw, 64px); height: auto; --seal-ground: #f1ede2; }
.masthead h1 { margin: 6px 0 8px; font: bold clamp(30px, 7vw, 62px)/1 "Old Standard TT", Georgia, "Times New Roman", serif; letter-spacing: -0.01em; }
.masthead .dateline { border-top: 1px solid #1b1a17; padding-top: 6px; font-size: 13px; font-style: italic; }

.paper .front { display: grid; grid-template-columns: 1fr 290px; gap: 26px; }
.paper aside { border-left: 1px solid #1b1a17; padding-left: 22px; }
.paper .rest { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 24px; }

.paper article { padding: 12px 0 16px; border-top: 1px solid #1b1a17; min-width: 0; }
.paper article.lead { border-top: 0; padding-top: 0; }
.paper .kicker { font: 11px/1.2 "Russo One", "Arial Black", sans-serif; text-transform: uppercase; letter-spacing: 0.12em; color: #7a1a14; }
.paper article.undetectable_breach .kicker, .paper article.clean .kicker { color: #4a5a50; }
.paper h2 { margin: 4px 0 8px; font: bold 23px/1.15 "Old Standard TT", Georgia, "Times New Roman", serif; }
.paper article.lead h2 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.05; }
.paper aside h2 { font-size: 17px; }
.paper p { margin: 0 0 8px; }
.paper figure { margin: 10px 0; }
.paper pre {
  margin: 0; padding: 10px 12px; background: #e3ddcd; border: 1px solid #c8c0aa; overflow-x: auto;
  font: 12px/1.45 "Courier Prime", ui-monospace, monospace; white-space: pre-wrap; word-break: break-all;
}
.paper aside pre { font-size: 11px; }
.paper mark { background: none; color: #b0170d; font-weight: bold; text-decoration: underline wavy #b0170d; text-underline-offset: 3px; }
.paper figcaption { margin-top: 6px; font-size: 13px; font-style: italic; }
.paper .verdict { font-size: 14px; }
.paper .verdict code { font-size: 12px; }
.paper .points { font: bold 13px/1 "Courier Prime", ui-monospace, monospace; white-space: nowrap; color: #7a1a14; }
.paper .refs { font-size: 13px; }
.paper article.brief { padding: 8px 0 10px; }
.paper article.brief h2 { font-size: 15px; margin-bottom: 4px; }
.paper .again { font-style: italic; }
.paper .note { font-size: 13px; font-style: italic; }
.paper .refs a { color: #1b4d7a; }

.paper aside h3 { margin: 0 0 8px; font: 13px/1.2 "Russo One", "Arial Black", sans-serif; text-transform: uppercase; letter-spacing: 0.1em; }
.paper .review { margin-bottom: 18px; }
.paper .review .score { font: bold 46px/1 "Old Standard TT", Georgia, "Times New Roman", serif; margin-bottom: 8px; }
.paper .review .score small { font-size: 15px; font-weight: normal; }
.paper .review table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.paper .review td { padding: 3px 0; border-bottom: 1px dotted #8f8875; }
.paper .review td:last-child { text-align: right; font-weight: bold; }
.paper .review p { font-size: 13px; }

.paper footer { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 4px double #1b1a17; }
.paper footer button { background: none; border: 1px solid #1b1a17; color: #1b1a17; padding: 8px 18px; font: bold 15px/1 "Old Standard TT", Georgia, "Times New Roman", serif; }
.paper footer button.primary { background: #1b1a17; color: #f1ede2; }

@media (max-width: 760px) {
  .paper { padding: 16px 16px 20px; }
  .paper .front { grid-template-columns: 1fr; }
  .paper aside { border-left: 0; padding-left: 0; border-top: 4px double #1b1a17; padding-top: 12px; }
  .paper .rest { grid-template-columns: 1fr; }
}

/* Transfer order (#23) */
.transfer .sheet { position: relative; width: min(640px, 100%); }
.transfer .briefing { margin: 12px 0; }
.transfer .stamp-mark {
  position: absolute; right: 36px; bottom: 30px; transform: rotate(-8deg);
  font: 30px/1 "Russo One", "Arial Black", sans-serif; color: rgba(122, 26, 20, 0.75);
  border: 4px solid rgba(122, 26, 20, 0.75); padding: 6px 12px; border-radius: 6px; letter-spacing: 0.06em;
}
