/* Parent Portal -- see parent.js. Lab look: deep purple room, cyan monitor
   glass, juice green, Londrina Solid. */
.pp-layer {
  --pp-bg: #1b1626;
  --pp-bg2: #2a2240;
  --pp-glass: #84fffe;
  --pp-glass-dim: #c9fffe;
  --pp-ink: #0c3b3f;
  --pp-ink-2: rgba(12, 59, 63, 0.72);
  --pp-juice: #62ba34;
  --pp-juice-light: #b8f28a;
  --pp-spend: #f5861f;
  --pp-time: #3b8d99;
  --pp-white: #fff;
  position: fixed;
  inset: 0;
  z-index: 2147483000; /* above everything, the dev bar included */
  display: none;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(132, 255, 254, 0.18), transparent 55%),
    linear-gradient(180deg, var(--pp-bg2), var(--pp-bg));
  color: var(--pp-white);
  font-family: "Londrina Solid", system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: 0.03em;
}
.pp-layer.is-on { display: block; animation: pp-in 0.25s ease-out; }
@keyframes pp-in { from { opacity: 0; } }

.pp-kicker { margin: 0; font-weight: 400; font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--pp-glass); }
.pp-x {
  border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; font: 900 18px/1 "Londrina Solid", sans-serif;
}
.pp-x:hover, .pp-x:focus-visible { background: rgba(255, 255, 255, 0.24); outline: none; }
.pp-cta {
  border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer;
  background: var(--pp-spend); color: #fff;
  font: 900 18px/1 "Londrina Solid", sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); transition: transform 0.12s ease;
}
.pp-cta:hover, .pp-cta:focus-visible { transform: translateY(-2px); outline: none; }

/* ---- grown-up check ---- */
.pp-gate {
  position: relative; width: min(440px, calc(100% - 32px)); margin: 12vh auto 0; padding: 32px 28px 28px;
  border-radius: 24px; background: var(--pp-glass); color: var(--pp-ink); text-align: center;
  box-shadow: 0 0 0 8px #0f2a2c, 0 0 60px rgba(132, 255, 254, 0.35);
}
.pp-gate .pp-x { position: absolute; top: 12px; right: 12px; background: rgba(12, 59, 63, 0.12); color: var(--pp-ink); }
.pp-gate .pp-kicker { color: var(--pp-ink-2); }
.pp-gate-title { margin: 4px 0 10px; font-weight: 900; font-size: 40px; text-transform: uppercase; letter-spacing: 0.04em; }
.pp-gate-text { margin: 0 0 18px; font-size: 20px; }
.pp-times { font-family: system-ui, sans-serif; font-weight: 700; }
.pp-gate-form { display: flex; gap: 10px; justify-content: center; }
.pp-gate-form input {
  width: 110px; padding: 10px 14px; border: 3px solid var(--pp-ink); border-radius: 14px;
  font: 400 22px "Londrina Solid", sans-serif; text-align: center; color: var(--pp-ink); background: #fff;
}
.pp-gate-err { margin: 12px 0 0; color: #b3261e; font-weight: 400; }

/* ---- dashboard ---- */
.pp-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 40px; }
.pp-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pp-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.pp-brand img { height: 52px; width: auto; filter: drop-shadow(0 0 12px rgba(184, 242, 138, 0.6)); }
.pp-brand h1 { margin: 0; font-weight: 900; font-size: 38px; line-height: 1; text-transform: uppercase; letter-spacing: 0.04em; }
.pp-kid { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 17px; }
.pp-kid img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--pp-glass); }
.pp-kid b { font-weight: 900; }
.pp-range { display: flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.pp-range button {
  border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; background: none; color: #fff;
  font: 400 15px "Londrina Solid", sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}
.pp-range button.is-on { background: var(--pp-glass); color: var(--pp-ink); }

.pp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.pp-tile {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px;
  background: var(--pp-glass); color: var(--pp-ink); box-shadow: inset 0 0 0 4px rgba(12, 59, 63, 0.15);
}
.pp-tile-label { font-weight: 400; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pp-ink-2); }
.pp-tile-value { font-weight: 900; font-size: 40px; line-height: 1.05; }
.pp-tile-sub { font-size: 15px; color: var(--pp-ink-2); }

.pp-bonus {
  display: flex; align-items: center; gap: 18px; padding: 16px 22px; margin-bottom: 14px; border-radius: 20px;
  background: linear-gradient(90deg, rgba(98, 186, 52, 0.35), rgba(184, 242, 138, 0.18));
  box-shadow: inset 0 0 0 2px rgba(184, 242, 138, 0.6);
}
.pp-bonus img { height: 56px; width: auto; flex: 0 0 auto; }
.pp-bonus div { flex: 1; }
.pp-bonus h2 { margin: 0 0 2px; font-weight: 900; font-size: 24px; text-transform: uppercase; letter-spacing: 0.04em; }
.pp-bonus p { margin: 0; font-size: 17px; line-height: 1.3; }
.pp-bonus.is-claimed { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2); }
.pp-check { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--pp-juice); font-weight: 900; font-size: 24px; }
.pp-bonus.is-pop { animation: pp-pop 0.6s ease-out; }
@keyframes pp-pop { 30% { transform: scale(1.03); box-shadow: inset 0 0 0 2px var(--pp-juice-light), 0 0 40px rgba(184, 242, 138, 0.6); } }

.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pp-card { padding: 18px 20px 20px; border-radius: 20px; background: #f4fffe; color: var(--pp-ink); }
.pp-card h3 { margin: 0; font-weight: 900; font-size: 24px; text-transform: uppercase; letter-spacing: 0.04em; }
.pp-card-sub { margin: 2px 0 14px; font-size: 15px; color: var(--pp-ink-2); }
.pp-card h4, .pp-sub { margin: 0 0 8px; font-weight: 400; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pp-ink-2); }
.pp-sub { margin-top: 16px; }
.pp-empty { margin: 0; padding: 14px; border-radius: 12px; background: rgba(12, 59, 63, 0.06); font-size: 16px; color: var(--pp-ink-2); }
.pp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* bar lists: one series each, thin bars, value in ink */
.pp-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-bars li { display: grid; grid-template-columns: minmax(0, 9em) 1fr auto; align-items: center; gap: 10px; font-size: 16px; }
.pp-two .pp-bars li { grid-template-columns: 1fr auto; grid-template-areas: "l v" "t t"; row-gap: 3px; }
.pp-two .pp-bar-label { grid-area: l; }
.pp-two .pp-bar-val { grid-area: v; }
.pp-two .pp-bar-track { grid-area: t; }
.pp-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-bar-track { height: 12px; border-radius: 4px; background: rgba(12, 59, 63, 0.08); overflow: hidden; }
.pp-bar-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--pp-time); }
.pp-bars.is-earn i { background: var(--pp-juice); }
.pp-bars.is-spend i { background: var(--pp-spend); }
.pp-bar-val { font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-bars li:hover .pp-bar-track { box-shadow: 0 0 0 2px rgba(12, 59, 63, 0.25); }

.pp-feed, .pp-rounds, .pp-missed, .pp-eps { list-style: none; margin: 0; padding: 0; }
.pp-feed li { display: grid; grid-template-columns: 4.5em 1fr auto; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid rgba(12, 59, 63, 0.1); font-size: 15px; }
.pp-feed time, .pp-rounds time, .pp-eps time { font-size: 13px; color: var(--pp-ink-2); white-space: nowrap; }
.pp-amt { font-weight: 900; }
.pp-amt.is-plus { color: #2e7d1f; }
.pp-amt.is-minus { color: #b85a0b; }

.pp-rounds { margin-bottom: 14px; }
.pp-rounds li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t s" "b w"; gap: 4px 12px; padding: 8px 0; border-top: 1px solid rgba(12, 59, 63, 0.1); }
.pp-round-title { grid-area: t; font-size: 16px; font-weight: 400; }
.pp-score { grid-area: s; font-weight: 900; font-size: 18px; }
.pp-round-bar { grid-area: b; height: 10px; border-radius: 4px; background: rgba(12, 59, 63, 0.08); align-self: center; overflow: hidden; }
.pp-round-bar i { display: block; height: 100%; background: var(--pp-time); border-radius: 0 4px 4px 0; }
.pp-rounds time { grid-area: w; }
.pp-missed { display: flex; flex-direction: column; gap: 8px; }
.pp-missed li { padding: 10px 12px; border-radius: 12px; background: #fff4e8; box-shadow: inset 3px 0 0 var(--pp-spend); }
.pp-q { margin: 0 0 4px; font-size: 16px; font-weight: 400; }
.pp-a { margin: 0; font-size: 15px; }
.pp-a b { font-weight: 900; }
.pp-picked { color: var(--pp-ink-2); }
.pp-from { margin: 4px 0 0; font-size: 13px; color: var(--pp-ink-2); }
.pp-tip { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(132, 255, 254, 0.35); font-size: 15px; }
.pp-tip b { font-weight: 900; }
.pp-eps { display: flex; flex-direction: column; gap: 6px; }
.pp-eps li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(12, 59, 63, 0.06); font-size: 16px; }
.pp-eps b { font-weight: 400; }
.pp-foot { margin: 18px 0 0; text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* console screen: the way in */
.pp-door { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 2); text-align: center; }
.pp-door p { margin: 0; max-width: 80%; font-size: calc(var(--u) * 4.2); line-height: 1.25; }

@media (max-width: 860px) {
  .pp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-grid { grid-template-columns: 1fr; }
  .pp-two { grid-template-columns: 1fr; }
  .pp-bonus { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .pp-brand h1 { font-size: 30px; }
  .pp-tile-value { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-layer.is-on, .pp-bonus.is-pop { animation: none; }
  .pp-cta { transition: none; }
}

/* sites opened inside the lab (sites.js) */
.st-layer { position: fixed; inset: 0; z-index: 70; display: none; background: #0f0d19; }
.st-layer.is-on { display: block; }
.st-layer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.st-back {
  position: absolute; z-index: 1; top: 12px; left: 12px; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer;
  background: #173334; color: #fff; font: 400 16px "Londrina Solid", sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.st-back:hover, .st-back:focus-visible { background: #3b8d99; outline: none; }

/* Feedback pages on the work table (feedback.js). Each panel is laid out at
   a fixed size (sheet 1040x1360, card 1040x800, i.e. 2x) and mapped onto the paper. */
.fb-sheet, .fb-card {
  position: fixed; left: 0; top: 0; z-index: 12; transform-origin: 0 0; box-sizing: border-box;
  color: #173334; font-family: "Londrina Solid", system-ui, sans-serif; font-weight: 300;
}
.fb-sheet { display: flex; flex-direction: column; padding: 72px 76px; }
.fb-topic { margin: 0 0 64px; font-weight: 400; font-size: 52px; letter-spacing: 0.06em; text-transform: uppercase; color: #3b8d99; }
.fb-kicker { margin: 0; font-weight: 400; font-size: 36px; letter-spacing: 0.15em; text-transform: uppercase; color: #3b8d99; }
.fb-title { margin: 0 0 8px; font-weight: 900; font-size: 108px; line-height: 0.95; text-transform: uppercase; color: #173334; }
.fb-form { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.fb-form textarea {
  flex: 1; resize: none; padding: 32px 36px; border: 6px solid rgba(23, 51, 52, 0.35); border-radius: 28px;
  background: rgba(255, 255, 255, 0.55); color: #173334;
  font: 300 48px/1.35 "Londrina Solid", system-ui, sans-serif; letter-spacing: 0.03em;
}
.fb-form textarea::placeholder { color: rgba(23, 51, 52, 0.45); }
.fb-form textarea:focus { outline: none; border-color: #3b8d99; background: rgba(255, 255, 255, 0.8); }
.fb-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fb-status { font-size: 40px; color: rgba(23, 51, 52, 0.75); }
.fb-btn {
  border: 0; border-radius: 1998px; padding: 28px 60px; cursor: pointer; background: #f5861f; color: #fff;
  font: 900 48px/1 "Londrina Solid", sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2); transition: transform 0.12s ease;
}
.fb-btn:hover, .fb-btn:focus-visible { transform: translateY(-4px); outline: none; }
.fb-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.fb-btn.is-quiet { background: #3b8d99; }
.fb-thanks { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; text-align: center; }
.fb-thanks img { height: 220px; width: auto; }
.fb-thanks p { margin: 0; font-size: 60px; line-height: 1.25; }
.fb-thanks b { font-weight: 900; }
.fb-card { display: flex; flex-direction: column; justify-content: center; padding: 60px 72px; }
.fb-hand { margin: 0; font-family: "Gochi Hand", "Comic Sans MS", cursive; font-size: 112px; line-height: 1.15; color: #1a1626; }
.fb-small { font-size: 52px; color: rgba(26, 22, 38, 0.7); }
@media (prefers-reduced-motion: reduce) { .fb-btn { transition: none; } }
.fb-card-title { margin: 0 0 20px; font-family: "Londrina Solid", system-ui, sans-serif; font-weight: 900; font-size: 230px; line-height: 0.9; text-transform: uppercase; color: #173334; }

/* Parent Portal: player tag review */
.pp-tag { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.pp-tag-name { font-weight: 900; font-size: 34px; letter-spacing: 0.02em; }
.pp-tag-st { padding: 4px 12px; border-radius: 999px; font-weight: 400; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.pp-tag-st.is-pending { background: #ffe39a; color: #6b4a00; }
.pp-tag-st.is-approved { background: #c9efb2; color: #1f5c12; }
.pp-tag-st.is-declined { background: #ffd6d2; color: #8a1f17; }
.pp-tag-when { margin: 6px 0 12px; }
.pp-tag-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-ghost {
  border: 2px solid rgba(23, 51, 52, 0.35); border-radius: 999px; padding: 10px 20px; cursor: pointer; background: none; color: #173334;
  font: 400 16px "Londrina Solid", sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}
.pp-ghost:hover, .pp-ghost:focus-visible { border-color: #173334; outline: none; }
.fb-earned { margin: 0; font-weight: 900; font-size: 64px !important; color: #2e7d1f; }

/* the juice drop on the form: what a note earns */
.fb-sheet { position: fixed; }
.fb-reward { position: absolute; top: 44px; right: 60px; width: 140px; height: 170px; } /* clear of the note box below (no tangents) */
.fb-reward img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25)); }
.fb-reward span {
  position: absolute; left: 0; right: 0; top: 62%; transform: translateY(-50%); text-align: center;
  font: 900 66px/1 "Londrina Solid", system-ui, sans-serif; color: #fff;
  -webkit-text-stroke: 7px #1f5c12; paint-order: stroke fill;
}
