/* Ocean-depth theme for Langlangtuan - 2026-11-26 */
:root {
  --navy:#031a30; --deep:#062b49; --blue:#0b5276; --aqua:#43e0dc;
  --cyan:#b8f5f5; --paper:#062743; --white:#f4fdff; --text:#eafaff;
  --muted:#a8c9d8; --line:rgba(159,225,241,.17);
}
html { min-height:100%; background:#031a30; }
body {
  min-height:100vh; color:var(--text); background-color:#031a30;
  background-image:
    radial-gradient(ellipse 120% 35% at 50% -2%,rgba(91,215,239,.34),transparent 68%),
    radial-gradient(ellipse 90% 36% at 100% 18%,rgba(22,151,190,.22),transparent 70%),
    radial-gradient(ellipse 100% 34% at 0% 48%,rgba(12,105,154,.20),transparent 70%),
    linear-gradient(180deg,#0b5274 0%,#0a4164 27%,#062e4e 58%,#031d37 82%,#011326 100%);
  background-attachment:scroll; background-repeat:no-repeat; background-size:100% 100%; color:var(--text);
}
.topbar {
  background:rgba(2,23,43,.94); border-bottom:1px solid rgba(113,224,239,.2);
  box-shadow:0 8px 28px rgba(0,12,28,.18); backdrop-filter:blur(18px);
}
.brand { color:#f4fdff; }
.brand small { color:#b7dce7; }
.brand-icon { color:var(--aqua);text-shadow:0 0 18px rgba(67,224,220,.4); }
.top-login { color:#efffff;border-color:rgba(157,225,239,.48);background:rgba(255,255,255,.04); }
.avatar {
  background:linear-gradient(145deg,#75f4e8,#1b9cb8);color:#04243b;
  box-shadow:0 0 0 2px rgba(125,236,238,.22);
}
.page { min-height:calc(100vh - 138px);color:var(--text); }
.page-title h1,.section-heading h2,.auth-wrap h1,.page h2,.page h3 { color:#f1fcff; }
.page-title p,.muted { color:#b4d1df; }
.eyebrow,.hero-label { color:#63e9e2;text-shadow:0 0 16px rgba(67,224,220,.22); }
.section-heading>a,.profile-link { color:#71e8e4; }
.ocean-hero {
  background:
    radial-gradient(ellipse at 88% 0%,rgba(79,201,224,.42),transparent 42%),
    radial-gradient(ellipse at 8% 100%,rgba(17,144,176,.35),transparent 48%),
    linear-gradient(145deg,#073451 0%,#075477 52%,#06304e 100%);
  border:1px solid rgba(144,234,244,.24);
  box-shadow:0 18px 42px rgba(0,10,26,.28),inset 0 1px 0 rgba(255,255,255,.1);
}
.ocean-hero:before {
  content:"";position:absolute;width:140%;height:95px;left:-20%;bottom:-40px;
  border-top:1px solid rgba(124,239,237,.35);border-radius:50%;transform:rotate(-5deg);
  box-shadow:0 -12px 0 -11px rgba(124,239,237,.28),0 -24px 0 -23px rgba(124,239,237,.2);
  pointer-events:none;
}
.ocean-hero:after { border-color:rgba(140,233,246,.25); }
.hero-bottom { border-top-color:rgba(255,255,255,.18); }
.hero-bottom small,.ocean-hero p { color:#c5e7ef; }
.hero-wave { color:#70eee5;text-shadow:0 0 18px rgba(67,224,220,.35); }
.upload-banner {
  background:radial-gradient(ellipse at 90% 0%,rgba(75,214,220,.28),transparent 50%),
    linear-gradient(120deg,rgba(7,58,88,.96),rgba(8,111,139,.88));
  border:1px solid rgba(112,228,233,.25);
  box-shadow:0 14px 32px rgba(0,12,28,.2),inset 0 1px 0 rgba(255,255,255,.08);
}
.upload-circle {
  background:linear-gradient(145deg,#83fff0,#37c7d2);color:#052b43;
  box-shadow:0 0 22px rgba(67,224,220,.22);
}
.activity-row,.leader-row,.empty-state,.stat-card,.record-card,.form-card {
  color:#edfaff;background:linear-gradient(145deg,rgba(5,43,70,.86),rgba(3,29,52,.82));
  border:1px solid rgba(142,220,238,.18);
  box-shadow:0 12px 28px rgba(0,10,25,.17),inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter:blur(14px);
}
.activity-row {
  border-radius:16px;margin-bottom:10px;
  transition:border-color .2s ease,transform .2s ease;
}
.activity-row:active,.leader-row:active { transform:scale(.992); }
.activity-icon {
  background:linear-gradient(145deg,rgba(56,190,205,.28),rgba(10,79,113,.55));
  color:#8af5ed;border:1px solid rgba(126,231,234,.18);
}
.activity-info strong,.leader-info strong { color:#f2fcff; }
.activity-info small,.leader-info small { color:#a9cbd9; }
.activity-distance,.leader-distance { color:#70eee5; }
.empty-state { color:#c2dce7; }
.tabs { scrollbar-width:none; }
.tab {
  color:#d9f4f8;background:rgba(4,39,65,.72);
  border:1px solid rgba(149,222,239,.23);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.tab.selected {
  color:#032b43;background:linear-gradient(110deg,#8af8ed,#37cbd7);
  border-color:transparent;box-shadow:0 4px 18px rgba(55,203,215,.2);
}
.leader-list {
  overflow:hidden;border:1px solid rgba(142,220,238,.18);border-radius:18px;
  background:rgba(3,28,50,.38);
}
.leader-row {
  border:0;border-bottom:1px solid rgba(142,220,238,.12);
  border-radius:0;box-shadow:none;background:rgba(5,43,70,.48);
}
.leader-row:last-child { border-bottom:0; }
.leader-row:nth-child(-n+3) { background:linear-gradient(90deg,rgba(14,107,132,.4),rgba(4,42,68,.65)); }
.leader-avatar,.profile-avatar {
  background:linear-gradient(145deg,#62e7e0,#087da7);color:#032943;
  border:1px solid rgba(166,248,246,.35);box-shadow:0 0 16px rgba(50,196,207,.13);
}
.rank-no { color:#c5e7ef; }
.rank-top { filter:drop-shadow(0 2px 5px rgba(0,0,0,.25)); }
.stats-grid { gap:11px; }
.stat-card { border-radius:17px; }
.stat-card small,.stat-card span { color:#b4d1df; }
.stat-card strong { color:#effcff; }
.stat-card.featured {
  background:radial-gradient(ellipse at 90% 0%,rgba(75,220,222,.28),transparent 50%),
    linear-gradient(145deg,#075477,#052b49);
  border-color:rgba(103,231,231,.28);
}
.stat-card.featured strong,.stat-card.featured small,.stat-card.featured span { color:#f3ffff; }
.profile-hero {
  background:radial-gradient(ellipse at 50% 0%,rgba(103,231,232,.3),transparent 55%),
    linear-gradient(145deg,#075477,#052b49 85%);
  border:1px solid rgba(130,228,237,.24);
  box-shadow:0 16px 34px rgba(0,10,26,.22),inset 0 1px 0 rgba(255,255,255,.08);
}
.profile-hero p { color:#c2e4ed; }
.admin-label { color:#83f0e7; }
.avatar-edit-link {
  color:#8af5ed;border-color:rgba(116,234,231,.4);background:rgba(5,37,60,.28);
}
.record-card { border-radius:20px; }
.record-distance strong { color:#72eee5; }
.record-distance span { color:#b5d4df; }
.record-image { border:1px solid rgba(146,223,239,.2); }
.record-notes {
  color:#d8f0f5;background:rgba(3,24,43,.55);border:1px solid rgba(142,220,238,.14);
}
.record-type { color:#7cebe5; }
.record-author small { color:#b2d0dc; }
.record-author-avatar { background:linear-gradient(145deg,#6be9df,#087da7);color:#042b43; }
.form-card { text-align:left; }
.form-card>label,.form-card label { color:#e7f8fc; }
.form-card input:not([type=radio]):not([type=file]),.form-card select,.form-card textarea {
  color:#f0fcff;background:rgba(1,22,41,.62);border:1px solid rgba(143,219,236,.25);
  caret-color:#6cece4;
}
.form-card input::placeholder,.form-card textarea::placeholder { color:#86aebf; }
.form-card input:focus,.form-card textarea:focus,.form-card select:focus {
  border-color:#58dcd8;box-shadow:0 0 0 3px rgba(67,224,220,.12);
}
.form-card input[type="date"] { color-scheme:dark; }
.primary-button {
  color:#032b43;background:linear-gradient(110deg,#8af8ed,#39cbd7);
  box-shadow:0 8px 22px rgba(28,183,196,.2);
}
.primary-button:active { transform:translateY(1px); }
.file-drop {
  color:#e9fbff;background:rgba(3,34,58,.58);border-color:rgba(100,226,230,.5);
}
.file-drop small,.file-name { color:#b6dce5; }
.file-icon { color:#79f1e7; }
.privacy-note {
  color:#c6e5ec;background:rgba(6,67,91,.5);border:1px solid rgba(105,213,221,.18);
}
.type-card { color:#eafaff;background:rgba(4,38,64,.72);border-color:rgba(143,219,236,.22); }
.type-card small { color:#a9cbd9; }
.type-option input:checked+.type-card { background:rgba(15,119,139,.38);border-color:#63e5df; }
.notice { border:1px solid rgba(255,255,255,.12); }
.notice.success { background:rgba(20,117,91,.45);color:#d7fff1; }
.notice.danger { background:rgba(151,55,52,.45);color:#ffe2dc; }
.notice.warning { background:rgba(141,105,33,.45);color:#fff2ca; }
.auth-logo { color:#67e9e1;text-shadow:0 0 25px rgba(67,224,220,.3); }
.auth-wrap .muted { color:#b5d3df; }
.auth-switch { color:#c7e4eb; }
.auth-switch a { color:#7af0e7; }
.bottom-nav {
  background:rgba(2,19,36,.94);border-top:1px solid rgba(125,219,234,.22);
  box-shadow:0 -10px 28px rgba(0,10,24,.22);backdrop-filter:blur(20px);
}
.bottom-nav a { color:#91b2c2; }
.bottom-nav a.active,.bottom-nav .nav-upload { color:#73eee5; }
.nav-upload span {
  color:#042b43;background:linear-gradient(145deg,#91fff0,#42cbd8);
  box-shadow:0 0 18px rgba(67,224,220,.24);
}
a:focus-visible,button:focus-visible { outline:2px solid #79eee6;outline-offset:3px; }
@media(min-width:700px) { body { background-attachment:scroll; } .page { min-height:calc(100vh - 138px); } }
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important;transition:none!important; }
}
/* Daily leaderboard, including historical workout dates. */
.tabs .tab { flex:1 0 auto; text-align:center; padding:10px 12px; }
.day-rank-tools { margin:0 0 14px; padding:14px; border:1px solid rgba(149,222,239,.23); border-radius:16px; background:rgba(4,39,65,.72); }
.day-rank-heading strong,.day-rank-heading small { display:block; }
.day-rank-heading small { color:#a9cbd9; margin-top:5px; }
.day-rank-form { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:12px 0; }
.day-rank-form label { font-size:12px; color:#a9cbd9; margin:0; }
.day-rank-form input[type=date] { flex:1 1 125px; min-width:0; width:auto; margin:0; padding:9px; color-scheme:dark; }
.day-rank-form button { flex:0 0 auto; width:auto; cursor:pointer; margin:0; }
.day-rank-nav { display:flex; justify-content:space-between; gap:10px; font-size:12px; }
.day-rank-nav a { color:#70eee5; }
