@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700&family=Sora:wght@300;400;600;700&display=swap");

:root {
  color-scheme: light dark;
  --ink: #0b1a2b;
  --ink-soft: #6b7280;
  --surface: #f7f7f9;
  --surface-strong: #ffffff;
  --surface-alt: #f6f8fa;
  --surface-soft: #f4faf8;
  --accent: #1b8b75;
  --accent-dark: #1b8b75;
  --accent-bright: #14b8a6;
  --accent-text: #042f2e;
  --accent-weak: rgba(27, 139, 117, 0.12);
  --accent-weak-2: rgba(27, 139, 117, 0.16);
  --accent-weak-3: rgba(27, 139, 117, 0.08);
  --accent-weak-4: rgba(27, 139, 117, 0.18);
  --accent-border: rgba(27, 139, 117, 0.4);
  --accent-shadow: rgba(27, 139, 117, 0.3);
  --accent-shadow-soft: rgba(27, 139, 117, 0.2);
  --gold: #f59e0b;
  --warning-text: #b45309;
  --warning-text-strong: #7c2d12;
  --warning-weak: rgba(245, 158, 11, 0.2);
  --warning-weak-2: rgba(245, 158, 11, 0.15);
  --warning-weak-3: rgba(245, 158, 11, 0.25);
  --danger: #b91c1c;
  --shadow: rgba(11, 26, 43, 0.12);
  --shadow-strong: rgba(11, 26, 43, 0.2);
  --surface-glass: rgba(255, 255, 255, 0.7);
  --border: #d8dee5;
  --border-muted: #e2e8f0;
  --neutral-weak: rgba(11, 26, 43, 0.08);
  --neutral-weak-2: rgba(11, 26, 43, 0.04);
  --neutral-weak-3: rgba(11, 26, 43, 0.12);
  --neutral-weak-4: rgba(11, 26, 43, 0.1);
  --blackout: rgba(11, 15, 20, 0.92);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #f8fafc;
    --ink-soft: #a7b4c5;
    --surface: #0b0f14;
    --surface-strong: #111922;
    --surface-alt: #0f1620;
    --surface-soft: #0f1620;
    --accent: #1fbf98;
    --accent-dark: #2dd4bf;
    --accent-bright: #2dd4bf;
    --accent-text: #04221b;
    --accent-weak: rgba(45, 212, 191, 0.18);
    --accent-weak-2: rgba(45, 212, 191, 0.22);
    --accent-weak-3: rgba(45, 212, 191, 0.12);
    --accent-weak-4: rgba(45, 212, 191, 0.28);
    --accent-border: rgba(45, 212, 191, 0.35);
    --accent-shadow: rgba(45, 212, 191, 0.2);
    --accent-shadow-soft: rgba(45, 212, 191, 0.14);
    --gold: #f59e0b;
    --warning-text: #f59e0b;
    --warning-text-strong: #fbbf24;
    --warning-weak: rgba(245, 158, 11, 0.22);
    --warning-weak-2: rgba(245, 158, 11, 0.18);
    --warning-weak-3: rgba(245, 158, 11, 0.28);
    --danger: #f87171;
    --shadow: rgba(0, 0, 0, 0.35);
    --shadow-strong: rgba(0, 0, 0, 0.45);
    --surface-glass: rgba(17, 25, 34, 0.7);
    --border: #1f2a37;
    --border-muted: #243244;
    --neutral-weak: rgba(226, 232, 240, 0.08);
    --neutral-weak-2: rgba(226, 232, 240, 0.04);
    --neutral-weak-3: rgba(226, 232, 240, 0.12);
    --neutral-weak-4: rgba(226, 232, 240, 0.1);
    --blackout: rgba(2, 6, 12, 0.94);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(
    circle at top,
    var(--surface-strong) 0%,
    var(--surface) 55%,
    var(--surface-alt) 100%
  );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(120deg, var(--accent-weak-3), transparent),
    repeating-linear-gradient(
      90deg,
      var(--neutral-weak-2) 0,
      var(--neutral-weak-2) 1px,
      transparent 1px,
      transparent 80px
    );
  pointer-events: none;
  z-index: 0;
}

.page-play #root {
  position: relative;
  z-index: 1;
}

.play-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
  display: grid;
  gap: 1.5rem;
}

.entry-layout {
  display: grid;
  gap: 1.5rem;
}

.entry-panel {
  order: 2;
}

.entry-panel.join {
  order: 1;
}

.play-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-radius: 20px;
  background: var(--surface-strong);
  box-shadow: 0 15px 35px var(--shadow);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.brand h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.6rem;
  margin: 0;
}

.brand span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-weak);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.8rem;
}

.pill.gold {
  background: var(--warning-weak);
  color: var(--warning-text);
}

.layout {
  display: grid;
  gap: 1.5rem;
}

.tools-container {
  display: grid;
  gap: 1.5rem;
}

.tabs-layout {
  display: grid;
  gap: 1.5rem;
}

.tabs-nav {
  display: flex;
  gap: 0.6rem;
  background: var(--surface-strong);
  border-radius: 16px;
  padding: 0.6rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px var(--shadow);
}

.tabs-nav a {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.tabs-nav a.active {
  background: var(--accent-weak);
  color: var(--accent-dark);
}

.tab-unread {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--surface-strong);
}

.tabs-content {
  min-width: 0;
}

.tools-tabs {
  display: flex;
  gap: 0.8rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px var(--shadow);
}

.tools-tab {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tools-tab.active {
  background: var(--accent-weak-2);
  color: var(--accent-dark);
}

.tools-layout {
  display: grid;
  gap: 1rem;
}

.player-roster {
  display: grid;
  gap: 0.6rem;
}

.player-roster-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--neutral-weak-2);
  text-align: left;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}

.player-roster-item.active {
  border-color: var(--accent-border);
  background: var(--accent-weak);
}

.player-roster-main {
  display: grid;
  gap: 0.2rem;
}

.player-roster-main strong {
  font-size: 0.95rem;
}

.player-roster-main span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.player-roster-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.player-roster-balance {
  font-weight: 600;
  font-size: 0.9rem;
}

.player-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: var(--accent-weak-3);
  margin-bottom: 0.8rem;
}

.player-summary strong {
  display: block;
  font-size: 1rem;
}

.player-summary span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.player-balance {
  font-size: 1.3rem;
  font-weight: 700;
}

.card {
  background: var(--surface-strong);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: 0 14px 30px var(--shadow);
  border: 1px solid var(--border);
}

.card h2,
.card h3 {
  font-family: "Fraunces", serif;
  margin: 0 0 0.6rem 0;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.balance {
  display: grid;
  gap: 0.4rem;
  font-size: 2rem;
  font-weight: 700;
}

.balance span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.form {
  display: grid;
  gap: 0.8rem;
}

.form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface-strong);
  color: var(--ink);
}

.form select[multiple] {
  min-height: 110px;
}

.form textarea {
  min-height: 90px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.autosave-list {
  display: grid;
  gap: 0.5rem;
}

.autosave-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-glass);
}

.autosave-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.button {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 20px var(--accent-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.secondary {
  background: var(--neutral-weak);
  color: var(--ink);
  box-shadow: none;
}

.button.danger {
  background: var(--danger);
}

.button.small {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.list {
  display: grid;
  gap: 0.75rem;
}

.list.scrollable {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: var(--neutral-weak-2);
}

.list-item strong {
  font-size: 0.9rem;
}

.list-item span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.amount {
  font-weight: 600;
  color: var(--accent-dark);
}

.amount.negative {
  color: var(--danger);
}

.badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent-weak);
  color: var(--accent-dark);
}

.badge.dummy {
  background: var(--warning-weak-2);
  color: var(--warning-text);
}

.badge.offline {
  background: var(--neutral-weak-4);
  color: var(--ink-soft);
}

.status {
  font-weight: 600;
  color: var(--accent-dark);
}

.status.ended {
  color: var(--danger);
}

.qr {
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--surface-strong);
  border-radius: 16px;
  border: 1px dashed var(--border);
}

.qr img {
  width: 180px;
  height: 180px;
}

.chat-shell {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.chat-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: var(--surface-strong);
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 38px var(--shadow);
  overflow: hidden;
  min-height: 70vh;
}

.chat-screen--thread,
.chat-screen--new {
  grid-template-rows: auto 1fr;
}

.chat-screen-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
}

.chat-screen-title h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
}

.chat-screen-title span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.chat-back {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.chat-search {
  padding: 0.9rem 1.6rem;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}

.chat-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  font-family: inherit;
  background: var(--surface-strong);
  color: var(--ink);
}

.chat-list {
  display: grid;
}

.chat-list-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.9rem;
  padding: 0.9rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  background: var(--surface-strong);
  transition: background 0.2s ease;
}

.chat-list-item:hover {
  background: var(--accent-weak-3);
}

.chat-list-item.unread strong {
  font-weight: 700;
}

.chat-list-item.unread .chat-list-bottom p {
  color: var(--ink);
}

.chat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent-weak-4);
}

.chat-avatar--direct {
  background: var(--warning-weak);
  color: var(--warning-text);
}

.chat-avatar--group {
  background: var(--neutral-weak-4);
  color: var(--ink);
}

.chat-list-body {
  display: grid;
  gap: 0.3rem;
}

.chat-list-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-list-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.chat-unread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--surface-strong);
}

.chat-list-top strong {
  font-size: 1rem;
}

.chat-list-top span {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.chat-list-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.chat-list-bottom p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-pill {
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: var(--neutral-weak);
  color: var(--ink-soft);
}

.chat-pill--direct {
  background: var(--warning-weak-3);
  color: var(--warning-text);
}

.chat-pill--global {
  background: var(--accent-weak-4);
  color: var(--accent-dark);
}

.chat-pill--group {
  background: var(--neutral-weak-3);
  color: var(--ink);
}

.chat-fab {
  position: absolute;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 16px 24px var(--accent-shadow);
}

.chat-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.1rem 1.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
}

.chat-thread-leading {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.chat-thread-header h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}

.chat-thread-header span {
  font-size: 0.8rem;
  opacity: 0.9;
}

.chat-thread-tag {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chat-thread {
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--surface-soft);
  min-height: 60vh;
}

.chat-thread-body {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--accent-weak-3), transparent 45%);
}

.chat-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 2.4rem 1rem;
}

.chat-empty span {
  font-size: 0.85rem;
}

.chat-message-row {
  display: flex;
  align-items: flex-start;
}

.chat-message-row.me {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 74%;
  padding: 0.6rem 0.85rem;
  border-radius: 16px 16px 16px 6px;
  background: var(--surface-strong);
  box-shadow: 0 8px 18px var(--shadow);
  display: grid;
  gap: 0.2rem;
}

.chat-bubble.me {
  background: var(--accent-weak-4);
  border-radius: 16px 16px 6px 16px;
}

.chat-sender {
  font-size: 0.7rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.chat-bubble p {
  margin: 0;
  font-size: 0.95rem;
}

.chat-time {
  font-size: 0.65rem;
  color: var(--ink-soft);
  text-align: right;
}

.chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem 1.1rem;
  background: var(--surface-strong);
  border-top: 1px solid var(--border);
}

.chat-composer input {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.7rem 1rem;
  font-family: inherit;
  background: var(--surface-strong);
  color: var(--ink);
}

.chat-send {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.chat-new {
  padding: 1.5rem 1.6rem 2rem;
  display: grid;
  gap: 1.4rem;
  background: var(--surface-alt);
}

.chat-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.chat-toggle button {
  border: none;
  background: transparent;
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.chat-toggle button.active {
  background: var(--accent);
  color: #fff;
}

.chat-field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.chat-field input {
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  background: var(--surface-strong);
  color: var(--ink);
}

.chat-members h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.chat-members-list {
  display: grid;
  gap: 0.6rem;
}

.chat-member {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  cursor: pointer;
}

.chat-member.selected {
  border-color: var(--accent);
  box-shadow: 0 8px 18px var(--accent-shadow-soft);
}

.chat-member input {
  accent-color: var(--accent);
}

.chat-member-name {
  font-weight: 600;
}

.chat-member-meta {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.chat-error {
  color: var(--danger);
  margin: 0;
  font-size: 0.85rem;
}

.blackout {
  position: fixed;
  inset: 0;
  background: var(--blackout);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 10;
  text-align: center;
  padding: 2rem;
}

.blackout h2 {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.blackout span {
  color: rgba(255, 255, 255, 0.8);
}

.split {
  display: grid;
  gap: 1rem;
}

.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.helper {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

@media (min-width: 980px) {
  .layout {
    grid-template-columns: 2.1fr 1fr;
  }

  .tools-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .play-shell {
    padding: 2.5rem 2rem 4rem;
  }

  .entry-layout {
    grid-template-columns: 1fr 1fr;
  }

  .entry-panel.create {
    order: 1;
  }

  .entry-panel.join {
    order: 2;
  }

  .tabs-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }

  .tabs-nav {
    flex-direction: column;
    position: sticky;
    top: 1.5rem;
  }

  .tabs-nav a {
    text-align: left;
  }
}

@media (max-width: 979px) {
  .tabs-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    border-radius: 0;
    justify-content: space-around;
    padding-top: 0.6rem;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
  }

  .tabs-content {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }

  .chat-screen {
    min-height: 70vh;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .chat-screen-header,
  .chat-thread-header {
    padding: 1rem 1.1rem;
  }

  .chat-search {
    padding: 0.8rem 1.1rem;
  }

  .chat-list-item {
    padding: 0.8rem 1.1rem;
  }

  .chat-thread-body {
    padding: 1.1rem;
  }

  .chat-composer {
    padding: 0.8rem 1rem 1rem;
  }

  .chat-fab {
    right: 1.1rem;
    bottom: 1.1rem;
  }

  .chat-new {
    padding: 1.2rem 1.1rem 1.6rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
