.hackathon-page { color: #315f73; }
.hackathon-page [hidden] { display: none !important; }
.hackathon-page button { cursor: pointer; }
.hackathon-page button:disabled { cursor: not-allowed; }
.hackathon-page button:focus-visible, .hackathon-page summary:focus-visible { outline: 3px solid #70bddc; outline-offset: 4px; }
.hackathon-page .header-inner { min-height: 70px; max-width: 960px; padding: 10px 18px; }
.hackathon-page .header-inner.partner-header { justify-content: center; min-height: 82px; padding: 13px 16px; }
.partner-logos { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 22px); max-width: 100%; }
.partner-mark { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; overflow: hidden; }
.partner-mark img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.partner-university { width: 44px; height: 56px; }
.partner-university img { flex: 0 0 auto; width: 60px; height: 60px; }
.partner-sw { width: 96px; height: 50px; }
.partner-youth { width: 50px; height: 56px; }
.partner-youth img { transform: scale(1.2); }
.partner-faculty { width: 48px; height: 48px; border-radius: 50%; background: #000; }
.partner-computer img { transform: scale(1.04); }
.partner-game img { transform: scale(1.23); }
.partner-mobility img { transform: translateY(-2%) scale(1.2); }
.partner-ai img { transform: translateY(-2%) scale(1.22); }
.tab-bar { position: sticky; top: 0; z-index: 20; padding: 10px 16px; background: rgba(238, 249, 255, .94); border-bottom: 1px solid rgba(177, 221, 241, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.page-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 600px; margin: auto; padding: 4px; gap: 4px; border: 1px solid #d5eaf3; border-radius: 14px; background: #e7f3fa; }
.page-tabs a { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 10px; color: #5c7d8c; font-size: 14px; }
.page-tabs a[aria-current] { background: rgba(255, 255, 255, .94); color: #255e77; font-weight: 700; box-shadow: 0 3px 10px rgba(80, 150, 180, .09); }
.hack-container { position: relative; width: calc(100% - 28px); max-width: 900px; margin: auto; padding: 24px 0 32px; }
.hack-container > * { min-width: 0; }
.soft-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .76); box-shadow: var(--shadow); }
.hack-intro { margin-bottom: 24px; }
.hack-intro h1 { margin: 14px 0 12px; font-size: 27px; line-height: 1.45; letter-spacing: -.025em; color: #22566d; }
.hack-intro h1 span { display: block; }
.team-intro { padding: 2px 8px 0; }
.team-intro h1 { font-size: 25px; }
.team-intro h1 span { display: inline; }
.intro-topline { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.intro-topline > a { min-height: 36px; display: inline-flex; align-items: center; color: #567f92; font-size: 12px; }
.intro-description { margin-bottom: 10px; font-size: 14px; line-height: 1.8; }
.small-label { margin: 0; color: #587f90; font-size: 12px; }
.fine-print { color: #5c7d8c; font-size: 12px; line-height: 1.75; }
.hack-intro .fine-print { margin-bottom: 0; }
.intro-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #dceef5; font-size: 12px; }
.status-open { color: #30765e; background: #e1f5ed; }
.compact-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.compact-heading h2 { margin: 0; font-size: 19px; font-weight: 600; }
.compact-heading > span { color: #5c7d8c; font-size: 12px; white-space: nowrap; }
.section-help { margin: 0 0 16px; color: #5c7d8c; font-size: 12px; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.team-card { display: flex; flex-direction: column; min-width: 0; min-height: 174px; padding: 16px; border: 1px solid #c5e3f0; border-radius: 18px; background: rgba(255, 255, 255, .79); box-shadow: 0 6px 20px rgba(80, 170, 210, .08); color: #315f73; text-align: left; -webkit-tap-highlight-color: rgba(130, 211, 242, .2); transition: border-color .15s ease, background .15s ease; }
.team-card:active { background: #f0faff; border-color: #87c6e0; }
.team-card-top { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 4px; font-size: 13px; }
.team-count { padding: 2px 8px; border-radius: 999px; background: #edf7fc; color: #537e91; font-size: 11px; white-space: nowrap; }
.team-card-name { display: block; margin: 14px 0 12px; font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.team-seats { display: flex; gap: 7px; margin-top: auto; }
.seat { width: 21px; height: 21px; border: 1px solid #c5e0eb; border-radius: 50%; background: rgba(244, 250, 253, .8); }
.seat.occupied { border-color: #86c6e2; background: #b8e5f8; box-shadow: inset 0 0 0 4px #e1f5fd; }
.team-card-hint { display: block; margin-top: 10px; font-size: 11px; color: #5c7d8c; line-height: 1.6; }
.team-card.is-full { background: rgba(244, 248, 250, .85); }
.team-card.is-full .team-count { color: #667c85; background: #e5edf1; }
.team-completion-note { margin: 22px 4px 0; color: #5c7d8c; font-size: 12px; line-height: 1.8; }
.notice { margin: 0 0 20px; padding: 15px 17px; border: 1px solid #cee7f2; border-radius: 14px; background: rgba(255, 255, 255, .76); color: #456f83; font-size: 13px; line-height: 1.75; }
.notice p { margin: 5px 0 0; }
.notice .button { margin-top: 12px; }
.notice-success { color: #2f715b; border-color: #c4e6d9; background: #f0fbf6; }
.notice-error { color: #935050; border-color: #eccfcf; background: #fff6f6; }
.registration-notice { font-size: 12px; background: rgba(246, 252, 255, .8); }
.information-section { margin-bottom: 20px; }
.information-section h2 { margin: 0 0 18px; font-size: 19px; font-weight: 600; }
.short-facts { margin: 0; }
.short-facts > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #e0eef4; }
.short-facts > div:first-child { padding-top: 0; }
.short-facts > div:last-child { border: 0; padding-bottom: 0; }
.short-facts dt { color: #5c7d8c; font-size: 13px; }
.short-facts dd { margin: 0; font-size: 14px; }
.gentle-note { margin: 20px 0 0; padding-top: 17px; border-top: 1px solid #e0eef4; color: #5c7d8c; font-size: 12px; }
.schedule-section { margin: 26px 0; }
.schedule-day { margin-bottom: 12px; padding: 0; overflow: hidden; }
.schedule-day > summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; }
.schedule-day > summary::-webkit-details-marker { display: none; }
.schedule-day summary small { margin-left: 10px; font-size: 12px; font-weight: 400; color: #5c7d8c; }
.expand-mark { color: #6f9bae; font-size: 20px; font-weight: 400; }
.schedule-day[open] .expand-mark { transform: rotate(45deg); }
.schedule-list { list-style: none; margin: 0; padding: 0 22px 18px; }
.schedule-list li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-top: 1px solid #dfeef5; }
.schedule-time { padding-top: 1px; color: #5c7d8c; font-size: 11px; white-space: nowrap; }
.schedule-list strong { font-size: 13px; font-weight: 600; }
.schedule-list p { margin: 4px 0 0; color: #5c7d8c; font-size: 12px; }
.award-list { list-style: none; margin: 0; padding: 0; }
.award-list li { padding: 16px 0; border-top: 1px solid #dfeef5; }
.award-list li:first-child { padding-top: 0; border-top: 0; }
.award-list li:last-child { padding-bottom: 0; }
.award-name { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; font-size: 14px; }
.award-name span { color: #648696; font-size: 12px; }
.award-prize strong { color: #33738c; font-size: 15px; font-weight: 600; }
.award-prize small { display: block; margin-top: 3px; color: #5c7d8c; font-size: 12px; }
.details-content { padding: 0 22px 22px; font-size: 13px; }
.criteria-list { margin: 20px 0 0; }
.criteria-list > div { padding: 12px 0; border-top: 1px solid #dfeef5; }
.criteria-list dt { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.criteria-list dt strong { color: #487e95; font-size: 13px; }
.criteria-list dd { margin: 4px 0 0; color: #5c7d8c; font-size: 12px; }
.judging-details { margin-bottom: 24px; }
.wide-button { width: 100%; min-height: 48px; }
.hack-footer { padding-bottom: calc(25px + env(safe-area-inset-bottom, 0px)); }
.hack-footer-content { max-width: 720px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(177, 221, 241, .55); }
.hack-footer-title { margin: 0 0 10px; color: #527b8e; font-size: 12px; font-weight: 600; }
.hack-contact { margin: 0 0 22px; color: #608294; font-size: 13px; line-height: 1.9; text-align: center; }
.hack-contact a { display: inline-flex; align-items: center; min-height: 44px; color: #397993; font-weight: 600; }
.self-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.self-text-button { min-height: 44px; padding: 4px; border: 0; background: transparent; color: #5b8295; font: inherit; font-size: 12px; }
.self-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.self-dialog-actions .button { flex: 1; min-height: 48px; }
.hackathon-page .button-secondary { border: 1px solid #c8e2ef; background: #f1f9fd; color: #46758b; }
.hack-organizers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 16px; margin: 0; padding: 0; list-style: none; color: #638595; font-size: 12px; line-height: 1.8; }
.hack-organizers > li { word-break: keep-all; }
.hack-organizers > li:first-child { grid-column: 1 / -1; }
.dialog-is-open, .dialog-is-open body { overflow: hidden; }
.modal-overlay { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: max(14px, env(safe-area-inset-top, 0px)) 14px max(14px, env(safe-area-inset-bottom, 0px)); background: rgba(37, 70, 87, .25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.team-dialog-card { width: 100%; max-width: 480px; max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border: 1px solid #cfe6f0; border-radius: 23px; background: #f8fcff; box-shadow: 0 18px 70px rgba(37, 90, 117, .19); }
.dialog-top { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 13px 0 24px; background: #f8fcff; z-index: 1; }
.dialog-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #52798b; font-size: 29px; line-height: 1; }
.dialog-content { padding: 0 24px 26px; }
.dialog-content h2 { margin: 3px 0 8px; color: #255b73; font-size: 23px; line-height: 1.5; overflow-wrap: anywhere; }
.dialog-meta { margin: 0 0 18px; color: #5c7d8c; font-size: 13px; }
.empty-team { padding: 26px 18px; border-radius: 15px; background: #edf7fc; text-align: center; color: #5c7d8c; font-size: 13px; }
.member-card { padding: 15px 16px; margin-bottom: 10px; border: 1px solid #d9eaf3; border-radius: 14px; background: #fff; }
.member-card h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.member-meta { margin: 0 0 8px; color: #5c7d8c; font-size: 12px; }
.member-interests { margin: 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.member-privacy { margin: 14px 0; }
.dialog-actions .button { width: 100%; }
.dialog-actions .notice { margin-bottom: 0; }
#create-team-form { margin-top: 18px; }
#create-team-form .fine-print { margin: 9px 0 18px; }
.form-heading { margin-bottom: 22px; padding: 0 6px; }
.form-heading .back-link { margin-top: 0; }
.form-heading h1 { margin: 12px 0 7px; color: #22566d; font-size: 25px; }
.form-heading p { margin: 0; color: #5c7d8c; font-size: 13px; }
.selected-team { margin-bottom: 18px; padding: 20px 24px; }
.selected-team > span { display: block; font-size: 12px; color: #5c7d8c; }
.selected-team > strong { display: block; margin-top: 5px; color: #2c647c; font-size: 19px; }
.selected-team p { margin: 6px 0 0; color: #5c7d8c; font-size: 12px; }
.form-section { margin-bottom: 18px; }
.form-section h2 { margin: 0 0 18px; font-size: 18px; font-weight: 600; }
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; margin-bottom: 8px; color: #3a697e; font-size: 14px; font-weight: 600; }
.form-control { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 13px; border: 1px solid #c9e1ed; border-radius: 11px; background: rgba(255, 255, 255, .9); color: #28566b; font-family: inherit; font-size: 16px; line-height: 1.5; box-shadow: none; }
.form-control::placeholder { color: #7c969f; font-size: 14px; }
.form-control:focus { outline: 3px solid rgba(114, 196, 229, .23); border-color: #80bdd7; }
textarea.form-control { resize: vertical; }
.form-control[aria-invalid="true"] { border-color: #d59696; }
.field .fine-print { margin: 8px 0 0; }
.optional { margin-left: 6px; color: #6c8794; font-size: 12px; font-weight: 400; }
.field-error { margin: 7px 0 0; color: #a04343; font-size: 12px; }
.check-row { display: flex; align-items: flex-start; gap: 11px; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 13px; }
.check-row input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #3d9fc4; }
.check-row > span { min-width: 0; }
.check-row strong { font-size: 13px; font-weight: 600; }
.check-row small { display: block; margin-top: 6px; color: #5c7d8c; font-size: 12px; line-height: 1.8; }
.consent-section .check-row + .check-row { margin-top: 14px; padding-top: 18px; border-top: 1px solid #dfeef5; }
.form-submit-area { padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.form-submit-area > p { color: #5c7d8c; font-size: 12px; }
.form-submit-area > .fine-print { margin-top: 10px; }
.hackathon-page .button:disabled { color: #617d89; background: #dfedf3; box-shadow: none; border-color: #cfdee7; }

@media (min-width: 700px) {
    .hack-organizers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .team-card { min-height: 188px; }
    .hack-intro h1 span { display: inline; }
    .hack-intro h1 { font-size: 30px; }
    .hack-container.narrow-container { max-width: 720px; }
    .award-list li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; }
    .award-name { align-items: flex-start; }
}
@media (min-width: 960px) {
    .team-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
    .hack-container { width: calc(100% - 24px); }
    .team-grid { gap: 9px; }
    .team-card { padding: 13px; min-height: 172px; }
    .team-card-name { font-size: 13px; }
    .seat { width: 18px; height: 18px; }
    .team-seats { gap: 6px; }
    .soft-card { padding: 20px; }
    .schedule-day { padding: 0; }
    .schedule-list { padding-left: 16px; padding-right: 16px; }
    .schedule-list li { grid-template-columns: 78px minmax(0, 1fr); gap: 9px; }
    .schedule-time { font-size: 10px; }
    .dialog-content { padding-left: 20px; padding-right: 20px; }
    .hack-intro h1 { font-size: 25px; }
}
@media (max-width: 520px) {
    .hackathon-page .header-inner.partner-header { min-height: 68px; padding: 10px 12px; }
    .partner-logos { gap: 10px; }
    .partner-university { width: 32px; height: 44px; }
    .partner-university img { width: 46px; height: 46px; }
    .partner-sw { width: 64px; height: 40px; }
    .partner-youth { width: 36px; height: 44px; }
    .partner-faculty { width: 36px; height: 36px; }
}
@media (max-width: 380px) {
    .partner-logos { gap: 6px; }
    .partner-university { width: 26px; height: 40px; }
    .partner-university img { width: 42px; height: 42px; }
    .partner-sw { width: 50px; height: 34px; }
    .partner-youth { width: 30px; height: 40px; }
    .partner-faculty { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .team-card { transition: none; }
}
