:root {
  --canvas: #0b2c29;
  --canvas-text: #f2f6ed;
  --canvas-muted: #c2d8ce;
  --ink: #17372f;
  --ink-2: #35564b;
  --muted: #50675d;
  --lime: #dcf78c;
  --lime-strong: #c8ed66;
  --surface: #f7faf4;
  --surface-raised: #fffef9;
  --line: #d8e3d8;
  --surface-tint: #e7f0e6;
  --radius-panel: 20px;
  --shadow: 0 14px 36px rgb(0 20 18 / 15%);
  --surface-focus: #15715e;
}

body {
  background-image: radial-gradient(ellipse at 12% 36rem, #17473f, transparent 50rem);
}

h1, h2, h3, h4 { letter-spacing: normal; overflow-wrap: anywhere; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
:is(.paper, .news-card, .sticky-card) :focus-visible { outline-color: var(--surface-focus); }
.skip-link {
  position: absolute;
  z-index: 25;
  inset-inline-start: 16px;
  inset-block-start: 12px;
  transform: translateY(calc(-100% - 20px));
  border-radius: 10px;
  padding: 8px 16px;
  color: var(--dark);
  background: var(--lime);
}
.skip-link:focus { transform: none; }

.site-header { background: #0b2926; border-color: #34584c; box-shadow: none; }
.header-inner { min-height: 74px; gap: clamp(14px, 2vw, 28px); }
.brand { min-width: 0; }
.brand-text { min-width: 0; }
.brand-text small { font-size: 11px; letter-spacing: normal; max-width: 21ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.brand-emblem { box-shadow: 0 0 22px rgb(220 247 140 / 13%); }
.brand-contest-image { object-fit: cover; border: 1px solid #88a68f; }
.main-nav { gap: clamp(3px, .7vw, 12px); }
.nav-link { border-radius: 10px; padding: 9px 11px; font-size: 13px; }
.nav-link:hover, .nav-link.active, .menu-toggle[aria-expanded=true] { background: #244a3e; }
.nav-link.active::after { display: none; }
.header-actions { flex-shrink: 0; }
.header-actions .text-button, .header-actions .login-link { padding: 8px 6px; }
.header-actions .text-button:hover { color: var(--lime); }
.header-actions .login-link[aria-current=page] { color: var(--lime); }
.menu-toggle { flex: 0 0 40px; height: 40px; padding: 8px; }
.menu-icon { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }

.hero, .page-heading, .auth-section {
  background: radial-gradient(ellipse at 20% 5%, #245a49 0%, transparent 56%), linear-gradient(140deg, #102e2a, #154640 75%, #103936);
  border-color: #477365;
  position: relative;
}
.hero-grid { gap: clamp(24px, 5vw, 78px); padding-block: clamp(42px, 6.3vw, 96px); }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4.6rem); font-weight: 900; letter-spacing: normal; line-height: 1.35; margin: 20px 0 14px; text-align: center; align-items: center; align-self: center; align-content: center;}
.hero-description { font-size: clamp(1rem, 1.6vw, 1.2rem); margin-bottom: 0; }
.hero-buttons { margin-top: 26px; }
.eyebrow { font-size: 12px; background: #1d4538; color: var(--lime); border-color: #568569; }
.eyebrow-closed { color: #ffdfaa; border-color: #94805b; }
.eyebrow-closed .live-dot { background: #ffcf79; box-shadow: 0 0 0 4px rgb(255 207 121 / 15%); }
.hero-visual { min-height: 0; aspect-ratio: 1.14; border-radius: 18px 62px 18px 18px; }
.hero .hero-visual-poster {
  width: 70%;
  height: 15cm;
  max-height: none;
  margin-block-start: 1cm;
  margin-inline: auto;
  border-radius: 0;
}
.hero-visual-poster .hero-image {
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility 0s .5s;
}
.hero-visual-poster .hero-image.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual-poster .hero-image { transition: none; }
}
.hero-slideshow-toggle[hidden] { display: none; }
.hero-slideshow-toggle {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 16px;
  background: var(--canvas);
  color: var(--canvas-text);
}
.hero-copy-container {
  width: 100%;
  padding: clamp(24px, 4vw, 56px) clamp(15px, 4vw, 64px);
}
.hero-copy-container .hero-copy {
  padding: 0;
  text-align: center;
}
.hero-copy-container .hero-copy h1 { max-width: none; text-wrap: balance; }
.hero-copy-container .hero-description { margin-inline: auto; }
.hero-copy-container .hero-buttons { justify-content: center; }
.hero-visual:not(.hero-visual-poster) .center-symbol { color: var(--lime); font-size: clamp(5rem, 11vw, 11rem); text-shadow: 0 0 70px rgb(220 247 140 / 36%); }
.stat-strip { background: transparent; border: 0; padding-top: 18px; }
.stat-grid { padding-block: 0; gap: 12px; }
.stat, .stat:nth-child(3) { padding: 15px 18px; border: 1px solid #456c60; border-radius: 14px; background: #183e37; text-align: start; }
.stat strong { font-size: clamp(1.05rem, 2vw, 1.45rem); }
.stat span { font-size: 13px; }

.section { padding-block: clamp(36px, 5.6vw, 72px); }
.section-head { gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.overline, .chapter, .auth-aside .eyebrow { font-family: inherit; font-size: 12px; font-weight: 800; line-height: 1.8; letter-spacing: normal; direction: inherit; }
.page-heading .overline, .section-head .overline, .cta-banner .overline { display: flex; align-items: center; gap: 9px; }
.page-heading .overline::before, .section-head .overline::before, .cta-banner .overline::before { content: ''; width: 16px; height: 2px; border-radius: 99px; background: currentColor; }
.about-grid { align-items: stretch; }
.about-description { padding: clamp(20px, 3vw, 34px); border-radius: var(--radius-panel); border: 1px solid #3f6659; background: #123731; }
.about-description p { font-size: 16px; }
.about-description .btn-dark { border-color: #789e83; }
.paper, .feature-card, .news-card, .empty-state, .sticky-card {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}
.feature-card:nth-child(2), .sticky-card { background: var(--surface-tint); }
.feature-card p, .content-paper p { font-size: 14px; }
.feature-icon { border-radius: 12px; }
.news-section { background: #0a2523; border-color: #2e544a; }
.news-card { padding: 0; min-height: 0; overflow: hidden; }
.news-card-copy { display: flex; flex-direction: column; flex: 1; padding: clamp(18px, 3vw, 28px); }
.news-card h3 { margin: 12px 0 8px; }
.news-card p { font-size: 14px; overflow-wrap: anywhere; }
.news-card-top { justify-content: flex-start; gap: 8px 12px; flex-wrap: wrap; }
.news-card .news-thumb { height: auto; aspect-ratio: 1.95; border-radius: 0; margin: 0; }
.news-mark { display: grid; place-items: center; align-self: flex-start; margin: 20px 24px -9px; width: 42px; height: 42px; color: #1d664e; background: var(--surface-tint); border-radius: 12px; font-size: 21px; }
.news-grid > .news-card:only-child { grid-column: 1 / -1; }
.news-grid > .news-card-with-image:only-child { display: grid; grid-template-columns: 1fr 1.2fr; }
.news-grid > .news-card-with-image:only-child .news-thumb { aspect-ratio: auto; height: 100%; min-height: 205px; position: relative; }
.news-grid > .news-card-with-image:only-child .news-thumb img { position: absolute; inset: 0; }
.news-card .read-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.news-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}
.news-carousel-page { scroll-snap-align: start; min-width: 0; padding-block: 5px; }
.news-carousel-track:focus-visible { outline-offset: 2px; }
.news-carousel-controls:not([hidden]) {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}
.news-carousel-arrow, .news-carousel-dot {
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--canvas-text);
  cursor: pointer;
  border-radius: 50%;
}
.news-carousel-arrow {
  width: 44px;
  height: 44px;
  font-size: 22px;
  border: 1px solid currentColor;
  background: transparent;
}
.news-carousel-arrow:not(:disabled):hover { background: var(--lime); color: var(--ink); }
.news-carousel-arrow:disabled { opacity: .45; cursor: default; }
.news-carousel-dot { width: 32px; height: 44px; border: 0; background: transparent; }
.news-carousel-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.news-carousel-dot[aria-current="true"] { color: var(--lime); }
.news-carousel-dot[aria-current="true"]::before { background: currentColor; }
.news-card:hover .read-link, .table-link:hover, .auth-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tag { color: #245b46; background: #deeddd; font-size: 11px; }
.tag-important { color: #794b14; background: #f6e0b6; }
.empty-state { border-style: dashed; background: var(--surface-tint); }
.cta-banner { border-radius: 18px 46px 18px 18px; background: linear-gradient(115deg, #123a33, #226043); border-color: #577e60; }
.cta-banner::before { pointer-events: none; left: 9%; }

.page-heading { padding-block: clamp(32px, 5vw, 65px); overflow: hidden; }
.page-heading > .container { position: relative; z-index: 1; }
.page-heading::after { content: ''; position: absolute; inset-inline-end: max(2vw, calc((100% - 1160px) / 2)); top: -8rem; width: 21rem; aspect-ratio: 1; border: 1px solid rgb(221 247 183 / 16%); transform: rotate(28deg); border-radius: 75px; box-shadow: 0 0 0 32px rgb(221 247 183 / 5%), 0 0 0 64px rgb(221 247 183 / 4%); pointer-events: none; }
.page-heading h1 { line-height: 1.35; max-width: 27ch; color: var(--canvas-text); }
.page-heading p { font-size: 15px; max-width: 65ch; overflow-wrap: anywhere; }
.back-link { display: inline-flex; min-height: 32px; align-items: center; }
.article-heading > .container { max-width: 850px; }
.article-cover { border: 1px solid var(--line); background: var(--surface-tint); }
.article-body { overflow-wrap: anywhere; }
.chapter { display: inline-flex; color: #216350; }
.content-paper { border-inline-start: 3px solid #a6cdb5; }
.detail-row { border-color: #c7d9ca; }
.gate-layout { max-width: 920px; margin-inline: auto; }
.gate-card { display: flex; flex-direction: column; }
.gate-card p { flex: 1; min-height: auto; }

.auth-section { min-height: 0; }
.auth-layout { max-width: 1010px; gap: clamp(28px, 7vw, 100px); }
.auth-aside { position: relative; isolation: isolate; }
.auth-aside h1 { line-height: 1.4; margin: 14px 0; }
.auth-accent { display: grid; width: clamp(88px, 11vw, 150px); aspect-ratio: 1; place-items: center; border-radius: 30px; border: 1px solid #527d68; background: #204e40; font-size: clamp(42px, 5.5vw, 82px); color: var(--lime); font-family: Tahoma, sans-serif; }
.auth-card, .form-panel { border-top: 4px solid #7ebca4; }
.auth-card { padding: clamp(22px, 3.5vw, 42px); }
.auth-single { max-width: 560px; padding-block: clamp(28px, 6vw, 70px); }
.form-stack label { font-size: 13px; }
.field-label { line-height: 1.5; }
.form-stack input:not([type=checkbox]):not([type=radio]), .form-stack textarea, .form-stack select { min-height: 45px; background: var(--surface-raised); border-color: #a6b9ae; font-size: 14px; }
.form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus { border-color: var(--surface-focus) !important; box-shadow: 0 0 0 3px rgb(21 113 94 / 20%); }
.form-stack :is(input[type=radio], input[type=checkbox]) { accent-color: var(--surface-focus); }
.form-section-head { margin: 6px 0 0; padding-block: 8px; border-bottom: 1px solid var(--line); }
.form-stack .team-fields[hidden], .form-stack [hidden] { display: none; }
.form-stack label.radio-card, .upload-dashboard, .attachment-existing, .rules-upload, .image-preview, .competition-image-preview { background: var(--surface-tint); }
.upload-box { background: #ecf4e4; border-color: #6e9a83; }
.upload-box:hover { background: #e5efdf; }
.file-row { background: var(--surface-raised); border-color: var(--line); }
.policy-note, .tracking-box { background: #e7f1cf; border-color: #b9cba1; }
.dashboard-main, .dashboard-aside { min-width: 0; }
.tracking-box > div { flex-wrap: wrap; gap: 10px; }
.tracking-box strong { max-width: 100%; font-size: clamp(.92rem, 3.9vw, 1.5rem); letter-spacing: .035em; overflow-wrap: anywhere; }
.copy-button { flex-shrink: 0; }
.summary-grid > div { padding: 11px 12px; background: #edf3eb; border-radius: 10px; min-width: 0; overflow-wrap: anywhere; }
.status-pill { font-size: 11px; }
.status-submitted { color: #6c4b13; background: #f7e8bd; }
.status-approved { color: #215741; background: #d9efdc; }
.status-rejected { color: #842d39; background: #f8e0e3; }

.admin-jump a:hover { border-color: #9fc5a7; }
.mini-stat:nth-child(n) { border: 1px solid var(--line); background: var(--surface); border-top: 4px solid #89bfa8; border-radius: 14px; }
.mini-stat:nth-child(2) { border-top-color: #e5b862; }
.mini-stat:nth-child(3) { border-top-color: #68b88e; }
.mini-stat:nth-child(4) { border-top-color: #83b8c5; }
.table-scroll { border: 1px solid var(--line); border-radius: 12px; }
.table-scroll thead { background: #dfece2; color: #234e3d; }
.table-scroll td, .table-scroll th { border-color: var(--line); }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr:hover { background: #e6f0e5; }
.table-scroll-hint { display: none; font-size: 12px; color: var(--muted); margin: 0 0 9px; }
.notice-actions, .action-line { flex-wrap: wrap; }
.notice-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.site-footer { background: #092521; border-color: #365d51; }
.footer-contact { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .header-inner { min-height: 68px; flex-wrap: wrap; }
  .menu-toggle { display: grid; place-items: center; margin-inline-start: auto; }
  .main-nav { order: 5; display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-bottom: 12px; }
  .main-nav.nav-open { display: flex; }
  .header-actions { margin-inline-start: 0; }
}
@media (max-width: 840px) {
  .auth-aside { padding: 0; }
  .auth-accent { display: none; }
  .auth-layout { max-width: 620px; }
  .hero-visual { max-height: 450px; width: 100%; }
  .guide-layout, .form-layout, .dashboard-grid, .review-layout { grid-template-columns: minmax(0, 1fr); }
  .table-scroll-hint { display: block; }
}
@media (max-width: 600px) {
  .hero .hero-visual-poster {
    width: calc(100% - 32px);
    height: min(42vh, 340px);
    height: min(42svh, 340px);
    margin-block-start: 12px;
  }
  .hero-visual-poster .hero-image { object-fit: contain; }
  .hero-copy-container { padding-block: 18px 24px; }
  .hero-copy-container .hero-copy h1 {
    font-size: clamp(1.55rem, 6vw, 2.15rem);
    margin-block: 10px 6px;
  }
  .hero-copy-container .hero-description { font-size: .95rem; line-height: 1.7; }
  .hero-copy-container .hero-buttons { margin-top: 14px; }
  .header-inner { gap: 7px; }
  .brand { gap: 7px; flex-shrink: 1; }
  .brand-text small { font-size: 10px; max-width: 96px; }
  .header-actions .btn-sm span { display: none; }
  .stat:nth-child(2) { border-inline-end: 1px solid #456c60; }
  .news-grid > .news-card-with-image:only-child { display: flex; }
  .news-grid > .news-card-with-image:only-child .news-thumb { aspect-ratio: 1.95; height: auto; min-height: 0; }
  .page-heading::after { opacity: .5; inset-inline-end: -11rem; }
  .notice-row { flex-direction: column; align-items: flex-start; gap: 5px; }
  .gate-card, .content-paper, .form-panel, .article, .status-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .news-card, .news-card .news-thumb img { transition: none; }
  .btn:hover, .news-card:hover, .news-card:hover .news-thumb img { transform: none; }
}
.upload-error-panel h1 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  margin-block: 1rem .5rem;
}

.upload-error-panel p {
  line-height: 1.9;
  margin-block: 0 1.5rem;
}
