:root {
  --bg: #fcfbf8;
  --ink: #191b1d;
  --soft: #8b8f96;
  --line: #e8e5de;
  --accent: #b45309;
  --do: #2f8a4c;
  --dont: #c2410c;
  --card: #f3efe4;
  --boxb: #e3dcc8;
}
* { box-sizing: border-box; border-radius: 0 !important; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 ui-sans-serif, -apple-system, "Segoe UI", Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* nav, same shape as the creator materials site */
nav.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 24px;
  background: rgba(252, 251, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.brand { color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.3px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.mark { font-size: 20px; }
.sub { color: var(--soft); border-left: 1px solid var(--line); padding-left: 14px; white-space: nowrap; }
.links { margin-left: auto; display: flex; height: 100%; overflow-x: auto; scrollbar-width: none; }
.links::-webkit-scrollbar { display: none; }
.links a {
  display: flex; align-items: center; padding: 0 14px; height: 100%;
  color: var(--ink); white-space: nowrap; border-bottom: 1px solid transparent;
}
.links a:hover { text-decoration: none; color: var(--accent); }
.links a.on { font-weight: 600; border-bottom-color: var(--accent); }

main { max-width: 1180px; margin: 0 auto; padding: 0 24px 120px; }
.intro h1 { font-size: 34px; letter-spacing: -0.6px; line-height: 1.3; margin: 40px 0 24px; }

/* rate box (upload) */
.rate { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.drop {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 96px; padding: 18px 22px; cursor: pointer; overflow: hidden;
  border: 1px dashed var(--boxb); background: var(--card);
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: #efe9da; }
.drop.busy { cursor: default; border-style: solid; }
.drop.busy:hover { border-color: var(--boxb); background: var(--card); }
.drop-main { font-weight: 600; overflow-wrap: anywhere; }
.drop-sub { color: var(--soft); font-size: 14px; }
.drop-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.drop-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width .2s linear; }
.drop-msg { margin: 10px 0 0; font-size: 14px; color: #b42323; }

/* guide */
.section { padding-top: 56px; }
.section > h2 {
  position: sticky; top: 52px; z-index: 10;
  margin: 0; padding: 14px 0 12px;
  font-size: 38px; letter-spacing: -0.8px; line-height: 1.2;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
.group > h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; color: var(--accent); margin: 40px 0 4px; }
.rule {
  display: grid; grid-template-columns: minmax(240px, 1.15fr) minmax(0, 1fr); gap: 36px;
  align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.rule-text { display: flex; gap: 16px; align-items: flex-start; }
.tick { flex: 0 0 30px; width: 30px; height: 30px; margin-top: 4px; background: #22a04b; display: flex; align-items: center; justify-content: center; }
.tick svg { width: 22px; height: 22px; }
.rule-body { min-width: 0; }
.rule-text p { margin: 0; font-size: 24px; line-height: 1.45; letter-spacing: -0.2px; }
.rule-num { font-weight: 700; }
.tag { display: inline-block; font-size: 18px; font-weight: 700; padding: 8px 16px; margin-bottom: 12px; line-height: 1.3; }
.tag.good { color: #176b34; background: #e3f5e8; border: 2px solid #8fd3a5; }
.tick.empty { background: #fff; border: 2px solid #9aa0a6; }
.tag.fmt { color: var(--ink); background: #f3efe4; border: 2px solid var(--boxb); }
.format-intro { font-size: 24px; line-height: 1.45; margin: 22px 0 0; }
.tag.alt { color: #1f4f8a; background: #e5eefa; border: 2px solid #a7c3ea; }

.examples { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: #d9d4c7 transparent; }
.ex { flex: 1 1 0; min-width: 92px; max-width: 168px; }
.ex-video { position: relative; aspect-ratio: 9/16; background: #e9e5da; cursor: pointer; overflow: hidden; }
.ex-video video, .ex-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-tag { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--do); display: flex; align-items: center; gap: 8px; }
.ex-tag .mk { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #22a04b; font-size: 15px; }
.ex.dont .ex-tag .mk { background: #d64545; }
.ex.dont .ex-tag { color: #b42323; }
.ex-link { display: inline-block; font-size: 13px; margin-top: 6px; }
.ex-sim { font-size: 13px; color: var(--soft); margin-top: 0; }
.ex-empty { color: var(--soft); font-size: 14px; }

/* footer */
.foot { max-width: 1180px; margin: 0 auto; padding: 18px 24px 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.foot a { color: var(--soft); }
.foot a:hover { color: var(--accent); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20,20,20,.86); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-inner { display: flex; flex-direction: column; gap: 10px; height: 88vh; max-width: 92vw; }
.lb-inner video { height: calc(88vh - 40px); max-width: 92vw; aspect-ratio: 9/16; background: #000; }
.lb-meta { display: flex; justify-content: flex-end; gap: 16px; font-size: 14px; }
.lb-meta a { color: #f3b46b; }
.lb-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 820px) {
  nav.top { padding: 0 16px; }
  .sub { display: none; }
  main { padding: 0 16px 80px; }
  .foot { padding: 16px 16px 32px; }
  .rule { gap: 22px; }
  .rule-text p { font-size: 20px; }
  .group > h3 { font-size: 26px; }
  .section > h2 { font-size: 32px; }
}
@media (max-width: 600px) {
  .rule { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .section > h2 { font-size: 26px; }
  .group > h3 { font-size: 22px; }
  .rule-text p { font-size: 19px; }
}
