/* Shared by the dashboard, the simulator and the QR cards, in the design language of liberatour.com.
   Sizes are in rem so a wall TV scales everything up. */
@import url('assets/fonts/fonts.css');

/* The one place for colour and type. map.js reads the --map-* and --sans values; keep those colours #rrggbb. */
:root {
  --ink: #192744; --paper: #fbf6eb; --card: #fffaf1; --clay: #a94e36; --clay-dark: #8b3e2b; --coral: #ee8c6a;
  --sky: #b8d3e5; --lilac: #b6a6d9; --sun: #f2d77c; --pink: #f3c3b8; --green: #bcd4a2; --muted: #5c6070; --line: #d9d3c4;
  --sans: 'Archivo', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --grain: url('assets/grain.png');
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-ui: cubic-bezier(.2, 0, 0, 1);
  /* Department marks, in the order of hotel.departments (dashboard.js) */
  --dept-0: var(--sky); --dept-1: var(--coral); --dept-2: var(--green); --dept-3: var(--lilac); --dept-4: var(--sun); --dept-5: var(--pink);
  /* The floor plans, drawn by map.js on the sky plate of #stage */
  --map-wall: var(--ink); --map-sill: var(--sun); --map-pick: var(--clay);
  --map-room: var(--card); --map-corridor: var(--line); --map-service: var(--green); --map-lobby: var(--pink); --map-stairs: var(--lilac);
  --map-plaque: var(--ink); --map-plaque-text: var(--paper); --map-name: var(--paper);
  font-size: clamp(14px, 0.95vw, 22px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; overflow: hidden; background: var(--paper) var(--grain); color: var(--ink); font: 400 1rem/1.4 var(--sans); -webkit-font-smoothing: antialiased; }
main { flex: 1; min-height: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

/* Pills: links and secondary buttons are ink-outlined; the primary action is clay. */
.bar a, #logout, .pick button, #depts button, #floors button, .chat .acts button, .qr button {
  display: inline-flex; flex: none; align-items: center; gap: .45em; padding: .4em .95em; border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); font-weight: 500; line-height: 1.15; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease-ui), color .2s var(--ease-ui);
}
.bar a:hover, #logout:hover, .pick button:hover, #depts button:hover, #floors button:hover, .chat .acts button:hover, .qr button:hover { background: rgba(25, 39, 68, .08); }
.pick .on, .pick .on:hover, #depts .on, #depts .on:hover, #floors .on, #floors .on:hover { background: var(--ink); color: var(--paper); }
.screen form button, #print, #go { padding: .55em 1.25em; border: 0; border-radius: 999px; background: var(--clay); color: var(--paper); font-weight: 500; line-height: 1.15; cursor: pointer; transition: background-color .2s var(--ease-ui); }
.screen form button:hover, #print:hover, #go:hover { background: var(--clay-dark); }
#logout { font-size: .86rem; }

/* Top bar */
.bar { display: flex; flex: none; align-items: center; gap: .75rem; padding: .45rem 1.2rem; border-bottom: 1px solid var(--line); }
.bar h1 { flex: 0 1 auto; min-width: 6em; margin: 0 .3rem 0 0; overflow: hidden; font: 800 1.85rem/1.05 var(--sans); letter-spacing: -.045em; white-space: nowrap; text-overflow: ellipsis; }   /* in a crowded bar the name gives way first */
.bar a { font-size: .86rem; }
/* A big numeral with a two-line eyebrow beside it: the bar stays one short line and the map keeps its height. */
.stats { display: flex; margin: 0 auto 0 0; }
.stats div { display: flex; align-items: center; gap: .5rem; padding: .1rem .85rem; border-left: 1px solid var(--line); }
.stats dd { margin: 0; font: 800 1.95rem/.95 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats dt { max-width: 9.6em; color: var(--muted); font: 500 .7rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
/* Each figure's dot is the colour of its tasks' stickers on the map: a key for the map. */
.stats .open dt::before, .stats .claimed dt::before, .stats .done dt::before { content: ''; display: inline-block; width: .8em; height: .8em; margin: 0 .4em -.1em 0; border: 1px solid var(--ink); border-radius: 50%; background: var(--card); }
.stats .claimed dt::before { background: var(--ink); }
.stats .done dt::before { background: var(--green); }
.conn, .mode { display: inline-flex; flex: none; align-items: center; gap: .5em; padding: .4em .9em; border-radius: 999px; font-size: .86rem; font-weight: 500; line-height: 1.15; white-space: nowrap; }
.conn { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.conn::before { content: ''; width: .62em; height: .62em; border: 1px solid var(--ink); border-radius: 50%; background: var(--sun); }
.conn.live::before { background: var(--green); }
.conn.down { color: var(--clay-dark); }
.conn.down::before { border-color: var(--clay); background: var(--clay); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
/* "Assistant stopped" is a sun sticker. One line, no taller than the figures: a taller bar would shrink the
   stage without a resize, and the map only refits on resize. */
.mode { padding: .25em .7em .3em; border-radius: 4px; background: var(--sun); box-shadow: 0 6px 14px -8px rgba(25, 39, 68, .6); font: 400 .9rem/1.15 var(--serif); transform: rotate(-2deg); cursor: help; }
.notice { flex: none; margin: 0; padding: .6rem 1.4rem; background: var(--sun) var(--grain); font-weight: 500; }

/* Dashboard: the floors on a sky plate */
.dash main { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 25vw, 460px); }
#stage { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; place-items: center; min-width: 0; margin: .45rem 0 .45rem .7rem; padding: 0 12px; overflow: hidden; border-radius: 6px; background: var(--sky) var(--grain); }
#floors { grid-row: 1; display: flex; gap: .35rem; justify-self: stretch; padding: .6rem 0 .25rem; overflow-x: auto; }
#floors button { padding: .25em .85em; }
#floors b:not(:empty) { min-width: 1.55em; padding: .05em .45em; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .78em; text-align: center; }
#floors .on b.n:not(:empty) { background: var(--paper); color: var(--ink); }
#floors .late:not(:empty) { background: var(--clay); color: var(--paper); }
/* The three promises as a stamp in the plate's corner, under the canvas so the floors always cover it */
.stamp { position: absolute; top: .9rem; right: .9rem; width: 7.2rem; height: 7.2rem; fill: var(--ink); font: 500 8.3px var(--sans); letter-spacing: .08em; transform: rotate(-12deg); }
#floors:not([hidden]) + .stamp { display: none; }
#map { grid-row: 2; position: relative; line-height: 0; }
#list { display: none; }
#map canvas { display: block; }
#over { position: absolute; inset: 0; z-index: 1; pointer-events: none; line-height: 1.25; }
#legend { grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1.4rem; padding: .2rem 0 .45rem; font-size: .84rem; }
#legend em { font: 400 .9rem/1.3 var(--serif); }
#depts { display: flex; flex-wrap: wrap; gap: .3rem; }
#depts button { padding: .28em .8em; }
#depts button:has(.chip) { padding-left: .3em; }
.flabel { position: absolute; transform: translateY(-50%); font: 500 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
/* Department mark: a small square of the department's colour with its initial */
.chip { display: inline-grid; flex: none; place-items: center; width: 1.5em; height: 1.5em; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); font: normal 800 .82em/1 var(--sans); }

/* Task bubbles are stickers: one per area, on its outer wall, in a lane above or below the floor (placed by
   dashboard.js). Two lines of text and the lead fit in 2.5rem; dashboard.js keeps that much free.
   Cream while waiting, sun when late, clay when told upward, ink once claimed, green as it fades out done. */
.bub { position: absolute; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 0 .4em; width: max-content; max-width: 12.5rem; margin: 0; padding: .14rem .45rem .16rem .28rem; border: 0; border-radius: 4px; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px rgba(25, 39, 68, .16), 0 6px 14px -8px rgba(25, 39, 68, .6); font: 400 .84rem/1.1 var(--serif); text-align: left; cursor: pointer; pointer-events: auto; transform: rotate(var(--tilt, -.8deg)); transition: opacity .6s var(--ease); }
.bub:nth-child(even) { --tilt: .7deg; }
.bub::after { content: ''; position: absolute; top: 100%; left: var(--tx, 50%); width: 2px; height: calc(var(--lead, 4px) + 2px); background: var(--ink); }
.bub.below::after { top: auto; bottom: 100%; }
.bub .chip { width: 1.4em; height: 1.4em; margin-top: .02em; font-size: .78em; }
.bub b { font-weight: 400; }
.bub small { color: var(--muted); font: 500 .68rem/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bub em { font: normal 800 .78rem/1 var(--sans); }
.bub:not(.far, .off) em { display: none; }
.bub.amber { background: var(--sun); }
.bub.amber small { color: var(--ink); }
.bub.red { background: var(--clay); color: var(--paper); }
.bub.claimed { background: var(--ink); color: var(--paper); }
.bub.red small, .bub.claimed small { color: var(--paper); }   /* full paper: on clay anything lighter drops under 4.5:1 */
.bub.done { background: var(--green); }
.bub.done small { color: var(--ink); }
.bub.gone { opacity: 0; }
.talk { position: absolute; padding: 0 .32em .22em; border: 2px solid var(--ink); border-radius: .7em .7em 0 .7em; background: var(--card); font: 800 .82rem/1 var(--sans); transform: translate(-100%, -100%); animation: bob 1s steps(2) infinite; pointer-events: none; }
.talk.hang { border-radius: .7em 0 .7em .7em; transform: translateX(-100%); }
#think { position: absolute; margin: 0 0 0 -6px; padding: .05em .6em .15em; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font: 800 .92rem/1.2 var(--sans); white-space: nowrap; animation: bob 1s steps(2) infinite; }
@keyframes bob { 50% { margin-top: -3px; } }

/* Dashboard: feed and room panel, set like the calendar list: bold time, the line, hairlines between rows */
#side { position: relative; display: flex; flex-direction: column; min-height: 0; padding: .75rem 1.3rem 0 1.2rem; }
#side > h2 { margin: 0; padding: 0 0 .55rem; border-bottom: 1px solid var(--ink); font: 800 1.5rem/1 var(--sans); letter-spacing: -.04em; }
#feed { flex: 1; min-height: 0; margin: 0 -.4rem 0 0; padding: 0 .4rem 1rem 0; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
#feed li { display: grid; grid-template-columns: 3em .65em minmax(0, 1fr); gap: .55rem; padding: .48rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere; }
#feed li > * { grid-row: 1; }
#feed time { grid-column: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
#feed span { grid-column: 3; }
#feed li::before { content: ''; grid-row: 1; grid-column: 2; width: .65em; height: .65em; margin-top: .38em; border-radius: 50%; }
#feed li[data-room] { cursor: pointer; }
#feed li[data-room]:hover { background: rgba(25, 39, 68, .045); }
/* The kind of event is the dot; its colour matches the sticker the task wears on the map. */
#feed .open::before, #feed .claim::before, #feed .done::before, #feed .wait::before, #feed .note::before { border: 1px solid var(--ink); }
#feed .open::before { background: var(--card); }
#feed .open { font-weight: 500; }
#feed .claim::before { background: var(--ink); }
#feed .done::before { background: var(--green); }
#feed .wait::before { background: var(--sun); }
#feed .note::before { background: var(--lilac); }
#feed .hand::before { background: var(--clay); }
#feed .hand { color: var(--clay-dark); font-weight: 500; }
#feed .in span, #feed .out span { color: var(--muted); font-family: var(--serif); }
#panel { position: absolute; inset: 0; display: flex; flex-direction: column; padding: .9rem 1.3rem 0 1.2rem; background: var(--paper) var(--grain); }
#panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0 0 .6rem; border-bottom: 1px solid var(--ink); }
#panel header h2 { margin: 0 0 .25rem; font: 800 1.9rem/1 var(--sans); letter-spacing: -.045em; }
#room-guest { font: 400 1rem/1.3 var(--serif); color: var(--muted); }
#room-close { display: grid; flex: none; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0 0 .15rem; border: 1px solid var(--ink); border-radius: 50%; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; }
#room-close:hover { background: var(--ink); color: var(--paper); }
#panel h3, #list h3 { margin: 1rem 0 .3rem; color: var(--ink); font: 500 .74rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
#room-tasks { display: grid; margin: 0; padding: 0; list-style: none; }
#room-tasks li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .1rem .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
#room-tasks li span { font-weight: 500; }
#room-tasks .chip { grid-row: span 2; }
#room-tasks small, #panel .none { color: var(--muted); }
#room-chat .none { margin: auto; font: 400 .95rem var(--serif); }
#room-tasks .none { display: block; font-family: var(--serif); }
#room-chat { margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 6px; }

/* Phone: the map gives way to a list of tasks; the room panel covers the screen. The room number is a slip
   in the colour its sticker has on the map. */
#list .row { display: grid; grid-template-columns: 3.7rem auto minmax(0, 1fr); align-items: center; gap: .15rem .55rem; width: 100%; margin: 0; padding: .6rem 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
#list h3 { margin-top: 1.3rem; padding-bottom: .4rem; border-bottom: 1px solid var(--ink); }
#list .row .chip { grid-area: 1 / 2; }
#list .row b { grid-area: 1 / 3; }
#list .row strong { grid-area: 1 / 1 / span 2; justify-self: start; padding: .3rem .45rem; border-radius: 4px; background: var(--card); box-shadow: inset 0 0 0 1px var(--ink); font: 800 1.1rem/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; transform: rotate(-1.5deg); }
#list .row b { font-weight: 500; }
#list .row small { grid-area: 2 / 2 / auto / span 2; color: var(--muted); font-size: .86rem; }
#list .amber strong { background: var(--sun); }
#list .red strong { background: var(--clay); box-shadow: none; color: var(--paper); }
#list .claimed strong { background: var(--ink); color: var(--paper); }
#list .none { margin: 1.5rem 0; color: var(--muted); font-family: var(--serif); text-align: center; }
@media (max-width: 700px) {
  html, body { height: auto; }
  body { overflow: visible; }
  .bar { flex-wrap: wrap; gap: .5rem; padding: .9rem 1rem .8rem; }
  .bar h1 { flex: 1 1 100%; margin: 0 0 .3rem; font-size: 1.85rem; }
  .bar > a, .bar .conn, .bar .mode, #logout { order: 2; }
  .stats { order: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 0; width: 100%; margin: .2rem 0 .5rem; }
  .stats div { padding: 0 .8rem; }
  .stats div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats dd { font-size: 1.7rem; }
  .dash main { display: block; }
  #stage { display: flex; flex-direction: column; align-items: stretch; margin: 0; padding: 0 1rem 1rem; overflow: visible; border-radius: 0; background: none; }
  .dash #map, .dash #floors, #legend em, .stamp { display: none; }
  #legend { order: -1; justify-content: flex-start; padding: .9rem 0 0; }
  #list { display: block; }
  #side { padding: 1.2rem 1rem 0; }
  #feed { overflow: visible; }
  #panel { position: fixed; z-index: 5; padding: 1rem 1rem 0; }
}

/* Chat threads (room panel and simulator): paper ground, cream and sky messages, the words in the serif */
.chat { display: flex; flex: 1; flex-direction: column; gap: .45rem; min-height: 0; padding: .8rem; overflow-y: auto; background: var(--paper) var(--grain); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.chat .msg { position: relative; display: flex; flex: none; flex-direction: column; align-self: flex-start; max-width: 85%; padding: .38rem .65rem .25rem; border-radius: 2px 6px 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow-wrap: anywhere; }
.chat .msg.mine { align-self: flex-end; border-radius: 6px 2px 6px 6px; background: var(--sky); box-shadow: none; }
.chat .who { color: var(--clay-dark); font: 500 .78rem/1.3 var(--sans); }
.chat .who:empty { display: none; }
.chat .quote { display: flex; flex-direction: column; margin: .15rem 0 .3rem; padding: .2rem .5rem; border-left: 3px solid var(--clay); border-radius: 2px; background: rgba(25, 39, 68, .06); font: 400 .85em/1.3 var(--serif); }
.chat .quote b { font: 500 .9em var(--sans); }
.chat .text { font: 400 .98rem/1.38 var(--serif); white-space: pre-wrap; }
.chat time { align-self: flex-end; color: var(--muted); font-size: .7em; font-variant-numeric: tabular-nums; }
.chat .msg.mine time { color: var(--ink); opacity: .75; }
.chat .reacts:not(:empty) { position: absolute; bottom: -.8rem; left: .4rem; padding: 0 .35rem; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: .85em; }
.chat .msg:has(.reacts:not(:empty)) { margin-bottom: .75rem; }
.chat .sel { outline: 2px solid var(--clay); outline-offset: 2px; }
.chat .acts { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0 .2rem; }
.chat .acts button { padding: .22em .7em; font-size: .84em; }

/* Simulator: three numbered threads */
.bar .sub { margin-right: auto; color: var(--muted); font: 400 1.05rem/1.2 var(--serif); }
.sim main { display: grid; grid-template-columns: repeat(3, minmax(0, 34rem)); justify-content: center; gap: 1.4rem; padding: 1rem 1.4rem 1.2rem; counter-reset: col; }
@media (max-width: 900px) { .sim main { grid-template-columns: minmax(0, 1fr); overflow-y: auto; } .sim .phone { height: 80vh; } }
.phone { display: flex; flex-direction: column; gap: .55rem; min-height: 0; counter-increment: col; }
.phone > h2 { display: flex; align-items: baseline; gap: .6rem; margin: 0; font: 800 1.55rem/1 var(--sans); letter-spacing: -.045em; }
.phone > h2::before { content: counter(col, decimal-leading-zero); color: var(--muted); font: 500 .74rem/1 var(--sans); letter-spacing: .08em; }
.pick { display: flex; flex-wrap: wrap; gap: .3rem; }
.pick button { font-size: .88rem; }
select { max-width: 100%; padding: .38em 2em .38em .85em; border: 1px solid var(--ink); border-radius: 999px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23192744' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .8em center; font-size: .88rem; appearance: none; cursor: pointer; }
.qr { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--muted); font: 400 .95rem var(--serif); }
.qr button { font: 500 .88rem var(--sans); }
.screen { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; border: 1px solid var(--ink); border-radius: 6px; background: var(--card); }
.screen > header { display: flex; flex-direction: column; gap: .1rem; padding: .6rem 1rem .55rem; border-bottom: 1px solid var(--ink); background: var(--sky) var(--grain); }
.screen > header b { font: 800 1.1rem/1.15 var(--sans); letter-spacing: -.02em; }
.screen > header small { min-height: 1.3em; font-size: .8rem; }
.phone:nth-child(2) .screen > header { background-color: var(--sun); }
#o-col .screen > header { background-color: var(--ink); color: var(--paper); }
.screen form { display: flex; gap: .5rem; padding: .6rem; border-top: 1px solid var(--line); background: var(--card); }
.screen input { flex: 1; min-width: 0; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.screen input:focus { border-color: var(--ink); outline: 0; }
#s-chat .msg { cursor: pointer; }
#s-quote { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .6rem .35rem 1rem; border-top: 1px solid var(--line); border-left: 3px solid var(--clay); background: var(--card); font: 400 .88rem var(--serif); }
#s-quote b { font-weight: 400; }
#s-quote button { border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; }

/* Room QR cards: A4 sheets of six postcards, shown as paper on screen, printed edge to edge with cut lines */
.qrs { display: block; overflow: auto; }
#sheets { display: grid; justify-content: center; gap: 1.5rem; padding: 1.5rem 1rem 3rem; }
.sheet { display: grid; grid-template: repeat(3, 1fr) / repeat(2, 1fr); width: 210mm; height: 297mm; padding: 10mm; background: #fff; box-shadow: 0 .5rem 1.4rem -.4rem rgba(25, 39, 68, .35); }
.card { display: grid; grid-template: "hotel hotel" auto "room code" minmax(0, 1fr) "how how" auto / minmax(0, 1fr) auto; gap: 3mm 4mm; padding: 7mm 7mm 6mm; border: .3mm dashed var(--line); background: var(--card); break-inside: avoid; color: var(--ink); }
.card p { margin: 0; }
.card .hotel { grid-area: hotel; align-self: start; padding-bottom: 2.5mm; border-bottom: .3mm solid var(--ink); font: 500 8.5pt/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.card .room { grid-area: room; display: flex; flex-direction: column; align-items: flex-start; gap: 2.5mm; align-self: center; font: 800 46pt/.9 var(--sans); letter-spacing: -.05em; }
.card .room small { padding: 1mm 2.5mm 1.3mm; border-radius: 1mm; background: var(--ink); color: var(--paper); font: 400 11pt/1 var(--serif); letter-spacing: 0; transform: rotate(-3deg); }
.card svg { grid-area: code; align-self: center; width: 40mm; height: 40mm; fill: var(--ink); }
.card .how { grid-area: how; padding-top: 2.5mm; border-top: .3mm dashed var(--ink); color: var(--muted); font: 400 10pt/1.4 var(--serif); }
.card .how::first-line { color: var(--ink); }   /* Turkish first, then the English in muted ink */
@page { size: A4; margin: 0; }
@media print {
  .qrs .bar, .qrs .notice { display: none; }
  .qrs, #sheets { display: block; padding: 0; background: #fff; }
  .sheet { height: 296mm; box-shadow: none; break-after: page; print-color-adjust: exact; }
  .sheet:last-child { break-after: auto; }
}
@media screen and (max-width: 800px) {   /* a phone: one card per row, not paper; A4 print is ~794 px wide */
  .sheet { width: auto; height: auto; grid-template: none; gap: 1rem; padding: 1rem; }
  .card { min-height: 52mm; }
}

/* Login (/giris): the form on paper; beside it a sky plate where the map's characters wear the three promises
   as their task stickers. */
.signin { overflow: auto; }
.signin main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
#form { display: flex; flex-direction: column; align-self: center; justify-self: center; width: min(100%, 27rem); padding: 2.5rem 1.5rem; }
.eyebrow { margin: 0 0 1.1rem; font: 500 .8rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
#form h1 { margin: 0 0 1rem; font: 800 3.4rem/1 var(--sans); letter-spacing: -.05em; overflow-wrap: anywhere; }
.lede { margin: 0 0 2rem; font: 400 1.15rem/1.55 var(--serif); }
#form label { margin: 0 0 .45rem; font: 500 .76rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
#form input { margin: 0 0 1.2rem; padding: .75rem 1.15rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--card); font-size: 1.05rem; }
#form input:focus-visible { outline-offset: 1px; }
.error { margin: -.2rem 0 1.2rem; color: var(--clay-dark); font: 400 1.02rem/1.4 var(--serif); }
#go { align-self: flex-start; margin-top: .3rem; padding: .8em 1.6em; font-size: 1.02rem; }
#go::after { content: '→' / ''; margin-left: .6em; }
#go:disabled { background: var(--clay); opacity: .55; cursor: progress; }
.plate { position: relative; display: grid; place-items: center; margin: .9rem; overflow: hidden; border-radius: 6px; background: var(--sky) var(--grain); }
.plate .stamp { top: 1.6rem; right: 1.6rem; width: 9rem; height: 9rem; }
.cast { display: flex; align-items: flex-end; gap: 2.2rem; --s: 5; }
.cast figure { display: flex; flex-direction: column; align-items: center; gap: calc(var(--s) * 2px); margin: 0; }
.cast figure:nth-child(2) { margin-bottom: 3rem; }
.cast figcaption { position: relative; max-width: 8.5em; padding: .35em .7em .4em; border-radius: 4px; background: var(--card); box-shadow: 0 6px 14px -8px rgba(25, 39, 68, .6); font: 400 1.05rem/1.2 var(--serif); text-align: center; transform: rotate(-2deg); }
.cast figure:nth-child(2) figcaption { background: var(--sun); transform: rotate(1.5deg); }
.cast figure:nth-child(3) figcaption { background: var(--ink); color: var(--paper); transform: rotate(-1deg); }
.cast i { width: calc(16px * var(--s)); height: calc(24px * var(--s)); background: url('assets/chars.png') 0 calc(var(--r) * -24px * var(--s)) / calc(256px * var(--s)) calc(144px * var(--s)) no-repeat; image-rendering: pixelated; }
@media (max-width: 760px) {
  .signin main { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .plate { order: -1; min-height: 11rem; margin: .7rem .7rem 0; padding: 1.2rem 0 1rem; }
  .plate .stamp { display: none; }
  .cast { gap: 1rem; --s: 3; }
  .cast figure:nth-child(2) { margin-bottom: 1.4rem; }
  .cast figcaption { max-width: 7em; font-size: .82rem; }
  #form { align-self: start; padding: 1.6rem 1.2rem 2rem; }
  #form h1 { font-size: 2.6rem; }
}
