:root {
  --bg: #f6f7f9; --card: #ffffff; --ink: #16181d; --muted: #5d6470; --line: #dfe3e8;
  --accent: #1f6feb; --accent-ink: #ffffff; --good: #1a7f4b; --bad: #b3261e; --warn-bg: #fff6d9;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, "Segoe UI", sans-serif; }
header.top { background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
header.top .brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
header.top nav a { color: var(--muted); margin-left: 16px; font-size: 14px; }
header.top nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
header.top nav .who { color: var(--muted); font-size: 14px; margin-left: 16px; }
header.top nav form.signout { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
header.top nav button.link { margin-left: 16px; font-size: 14px; color: var(--muted); }
main { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }
main.narrow { max-width: 620px; }
h1 { font-size: 26px; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 28px 0 10px; }
p.lead { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 64px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn.bad { color: var(--bad); border-color: var(--bad); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.game { display: flex; gap: 14px; align-items: center; }
.icon { width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(135deg, #ffb347, #ff5e62); flex: none; }
.muted { color: var(--muted); font-size: 14px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tier { border: 2px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; display: block; font-weight: 400; cursor: pointer; }
.tier.picked { border-color: var(--accent); }
.tier .price { font-size: 26px; font-weight: 700; }
.note { background: var(--warn-bg); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.status { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; padding: 0; list-style: none; }
.status li { padding: 6px 12px; border-radius: 999px; background: #e9ecf1; color: var(--muted); font-size: 14px; }
.status li.done { background: #dcf3e6; color: var(--good); }
.status li.now { background: var(--accent); color: #fff; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.tile h3 { margin: 0 0 10px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.phone { width: 100%; max-width: 230px; aspect-ratio: 9 / 16; margin: 0 auto 12px; border-radius: 22px; border: 6px solid #22252b; background: repeating-linear-gradient(45deg, #eef1f5, #eef1f5 12px, #e3e7ee 12px, #e3e7ee 24px); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; padding: 12px; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.badge.good { background: #dcf3e6; color: var(--good); }
.badge.wait { background: #e9ecf1; color: var(--muted); }
details.reject { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
details.reject summary { cursor: pointer; color: var(--bad); font-weight: 600; }
details.reject label { font-weight: 400; margin: 6px 0; }
.launch { position: sticky; bottom: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.copy { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
ol.steps { padding-left: 20px; }
ol.steps > li { margin-bottom: 18px; }
@media (max-width: 480px) { h1 { font-size: 22px; } }
.note.bad { background: #fde8e6; color: var(--bad); }
label.plain { font-weight: 400; }
img.icon { object-fit: cover; background: none; }
/* An ad is laid out for a phone 375 wide; it is drawn at that size and shrunk to two thirds to fit a tile. */
.phone-frame { box-sizing: content-box; width: 250px; height: 444px; margin: 0 auto 12px; border: 6px solid #22252b; border-radius: 22px; overflow: hidden; background: #000; }
.phone-frame iframe { width: 375px; height: 666px; border: 0; display: block; transform: scale(0.6667); transform-origin: 0 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
/* Campaign pictures: the three shapes sit in equal boxes so they can be compared; a click opens one full size. */
.thumb { width: 64px; height: 48px; object-fit: contain; background: #eef1f5; border-radius: 4px; }
.shot { display: block; margin-bottom: 12px; }
.shot img { display: block; width: 100%; height: 240px; object-fit: contain; background: #eef1f5; border-radius: 8px; }
.shot-wait { height: 240px; margin-bottom: 12px; border-radius: 8px; background: #eef1f5; color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.heading-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lines { padding: 4px 20px; }
.line { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.line:first-child { border-top: 0; }
.line .words { flex: 1 1 260px; overflow-wrap: anywhere; }
.line-actions { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.line-actions details.reject { margin-top: 0; border-top: 0; padding-top: 4px; }

form.row { margin: 0; }

/* the creative pack */
.badge.warn { background: var(--warn-bg); color: #7a5b00; }
.badge.bad { background: #fde8e6; color: var(--bad); }
.icon.small { width: 40px; height: 40px; border-radius: 9px; }
.price { font-size: 26px; font-weight: 700; }
ul.contents { margin: 12px 0 0; padding-left: 20px; }
ul.contents li { margin-bottom: 4px; }
.tile.main-item { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; margin-bottom: 8px; }
@media (max-width: 640px) { .tile.main-item { grid-template-columns: 1fr; } }

/* making an item of a pack again, for coins */
header.top nav a.coins { background: #fff3c4; color: #5c4400; border: 1px solid #ecd682; border-radius: 999px; padding: 3px 12px; font-weight: 700; text-decoration: none; }
details.remake { margin-top: 10px; }
details.remake summary { list-style: none; }
details.remake summary::-webkit-details-marker { display: none; }
details.remake[open] summary { margin-bottom: 10px; }
details.remake form { border-top: 1px solid var(--line); padding-top: 10px; }
details.remake label { font-weight: 400; margin: 6px 0; }
details.remake textarea { margin: 6px 0 10px; }
.line-actions details.remake { margin-top: 0; }
.line-actions details.remake form { min-width: 260px; }

/* the legal pages and the footer */
footer.site { max-width: 960px; margin: 0 auto; padding: 0 16px 32px; font-size: 14px; }
footer.site a { color: var(--muted); margin-right: 16px; }
p.summary { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
p.updated { margin: 0 0 12px; }
