/* Kampong Kitani: the support and privacy pages share this sheet.
   Colours come from the felt letters of the game's logo; the content sits on a felt
   panel with a stitched edge, floating on the lagoon. Fonts are the device's own
   (SF Pro Rounded on iPhone and iPad), so the pages load nothing from other sites. */

:root {
  --lagoon: #1f7fa6;
  --lagoon-deep: #155f80;
  --felt: #fbf1dc;
  --felt-edge: #e9d7b0;
  --teal: #0f6b66;
  --coral: #d9512f;
  --mustard: #f0b823;
  --ink: #2e2a22;
  --ink-soft: #5d5446;
  --rounded: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--lagoon);
  /* gentle water ripples, drawn inline so nothing is fetched */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q15 12 30 20 T60 20 T90 20 T120 20' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 17px/1.6 var(--body);
}

/* Hero: the cast standing on the jetty, with a wavy water edge at the bottom */
.hero {
  position: relative;
  margin: 0;
  height: clamp(220px, 38vw, 520px);
  overflow: hidden;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1200V14Q1125 40 1050 14T900 14T750 14T600 14T450 14T300 14T150 14T0 14Z'/%3E%3C/svg%3E");
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 27px) no-repeat, var(--wave) bottom / 100% 28px no-repeat;
          mask: linear-gradient(#000, #000) top / 100% calc(100% - 27px) no-repeat, var(--wave) bottom / 100% 28px no-repeat;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  display: block;
}

/* The logo is stuck on like a felt badge, half over the picture */
.badge {
  display: block;
  width: min(380px, 74vw);
  margin: calc(min(380px, 74vw) * -0.12) auto 0;
  position: relative;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .16));
}
.badge img { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .badge { animation: stick .7s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
  @keyframes stick {
    from { transform: scale(.6) rotate(-6deg); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

/* Language tabs: felt tags in the logo's colours */
.lang {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 16px 0;
}
html:not(.js) .lang { display: none; }
.lang button {
  font: 700 16px/1 var(--rounded);
  color: var(--felt);
  background: var(--lagoon-deep);
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--felt); color: var(--teal); }
.lang button:nth-child(2)[aria-pressed="true"] { color: var(--coral); }
.lang button:nth-child(3)[aria-pressed="true"] { color: #9a6b00; }
.lang button:focus-visible,
a:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }

/* Felt panel with a stitched edge */
.panel {
  max-width: 720px;
  margin: 22px auto 0;
  padding: 0 16px;
}
.panel section {
  background: var(--felt);
  border-radius: 28px;
  padding: 34px clamp(22px, 5vw, 48px) 30px;
  box-shadow: 0 8px 0 var(--felt-edge), 0 18px 30px rgba(8, 40, 60, .25);
  outline: 2px dashed var(--felt-edge);
  outline-offset: -12px;
}
.panel section + section { margin-top: 30px; }
.js .panel section[hidden] { display: none; }

h1, h2 {
  font-family: var(--rounded);
  color: var(--teal);
  line-height: 1.2;
  margin: 0;
}
h1 { font-size: clamp(28px, 5vw, 38px); font-weight: 800; }
h2 { font-size: 21px; font-weight: 750; margin-top: 30px; }
.updated { color: var(--ink-soft); font-size: 15px; margin: 6px 0 0; }
.lead {
  font-family: var(--rounded);
  font-size: clamp(19px, 2.6vw, 21px);
  line-height: 1.45;
  font-weight: 600;
  margin: 20px 0 6px;
  max-width: 34em;
}

ul.points { list-style: none; padding: 0; margin: 14px 0 0; }
ul.points li {
  position: relative;
  padding-left: 30px;
  margin: 12px 0;
}
/* each point gets a felt dot in one of the logo colours */
ul.points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .45em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--teal);
}
ul.points li:nth-child(4n+2)::before { background: var(--coral); }
ul.points li:nth-child(4n+3)::before { background: var(--mustard); }
ul.points li:nth-child(4n+4)::before { background: var(--lagoon); }

p { margin: 10px 0 0; }
a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

.contact {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed var(--felt-edge);
}

footer {
  max-width: 720px;
  margin: 34px auto 0;
  padding: 0 16px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  color: #d8eef6;
  font-size: 15px;
}
footer a { color: #ffffff; }
footer [data-l] + [data-l]::before { content: " / "; }
html.js footer [data-l] { display: none; }
html.js footer [data-l]::before { content: none; }
html.js[data-l="en"] footer [data-l="en"],
html.js[data-l="ms"] footer [data-l="ms"],
html.js[data-l="zh"] footer [data-l="zh"] { display: inline; }
footer a:hover { color: var(--mustard); }
