:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #3c4043;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
.entry {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px 70px;
  gap: 12px;
}
.fish {
  display: block;
  width: min(490px, 88vw);
  height: auto;
  aspect-ratio: 980 / 760;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.sign-in { position: relative; min-width: 202px; min-height: 44px; text-align: center; }
.auth-loading { display: inline-flex; align-items: center; justify-content: center; height: 44px; width: 202px; }
.auth-loading > span { width: 15px; height: 15px; border: 1.5px solid #e7f1f5; border-top-color: #9dcfe0; border-radius: 50%; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.account { display: inline-flex; align-items: center; justify-content: center; max-width: min(380px, 84vw); height: 44px; padding: 0 6px 0 17px; border: 1px solid #e1e7e8; border-radius: 24px; gap: 12px; background: #fff; }
.account-name { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/1 Arial, Helvetica, sans-serif; color: #5b686d; }
#google-signout { flex: 0 0 auto; height: 32px; padding: 0 11px; border: 0; border-radius: 18px; background: #f6f9fa; color: #7d898d; font: 12px/1 Arial, Helvetica, sans-serif; cursor: pointer; transition: background .18s, color .18s; }
#google-signout:hover { background: #eaf3f6; color: #4d727f; }
#google-signout:focus-visible { outline: 3px solid #a7dcec; outline-offset: 3px; }
#google-signout:disabled { cursor: progress; opacity: .65; }
#google-signin {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  height: 44px;
  min-width: 202px;
  padding: 0 20px;
  border: 1px solid #dadce0;
  border-radius: 24px;
  background: #fff;
  color: #3c4043;
  font: 500 14px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .1px;
  cursor: pointer;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
  -webkit-tap-highlight-color: transparent;
}
#google-signin:hover { background: #f8fbfd; border-color: #c4d7df; box-shadow: 0 2px 7px #233d4c09; }
#google-signin:active { transform: translateY(1px); }
#google-signin:focus-visible { outline: 3px solid #a7dcec; outline-offset: 4px; }
#google-signin:disabled { cursor: progress; opacity: .7; }
#auth-status {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 85vw);
  text-align: center;
  margin: 18px 0 0;
  color: #6c767b;
  font: 12px/1.5 Arial, Helvetica, sans-serif;
}
@media (max-width: 560px) {
  .entry { padding: 24px 20px 76px; gap: 18px; }
  .fish { width: min(430px, 92vw); }
}
@media (prefers-reduced-motion: reduce) {
  #google-signin, #google-signout { transition: none; }
  .auth-loading > span { animation: none; }
}

canvas[data-fish-interactive] { cursor: pointer; touch-action: pan-y; }
canvas[data-fish-interactive]:focus-visible { outline: 2px solid #a6d6e4; outline-offset: 5px; border-radius: 12px; }
